CN1319320C - Method for realizing link state feed-through in network - Google Patents
Method for realizing link state feed-through in network Download PDFInfo
- Publication number
- CN1319320C CN1319320C CNB021525315A CN02152531A CN1319320C CN 1319320 C CN1319320 C CN 1319320C CN B021525315 A CNB021525315 A CN B021525315A CN 02152531 A CN02152531 A CN 02152531A CN 1319320 C CN1319320 C CN 1319320C
- Authority
- CN
- China
- Prior art keywords
- link
- network
- control frame
- access point
- service equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种实现网络中链路状态穿通的方法,为在链路出现故障的情况下通知对端,本方法包括以下步骤:服务设备检测网络中链路是否出现故障;当网络中链路出现故障时,服务设备利用所述控制帧将链路故障信息传递给对端服务设备;对端服务设备响应接收到的含有链路故障信息的所述控制帧而断开用户链路并进行相应的处理;以及故障端的用户与对端的用户通过备份网络进行通信,当所述链路恢复正常时,恢复端服务设备向对端服务设备发送含有链路故障恢复信息的控制帧,重新在所述链路上建立所述用户之间的通信。本发明能够在链路出现故障的情况下通知对端又能够保证在网络正常工作时付出尽量小额外开销。
The invention discloses a method for realizing link status break-through in a network. In order to notify the opposite end when a link fails, the method includes the following steps: a service device detects whether a link in the network fails; When a fault occurs on the link, the service device uses the control frame to transmit the link failure information to the peer service device; the peer service device disconnects the user link in response to the received control frame containing the link fault information and performs corresponding processing; and the user at the fault end communicates with the user at the opposite end through the backup network. establish communication between the users over the link. The present invention can notify the opposite end when the link fails and can ensure that the extra cost is as small as possible when the network works normally.
Description
技术领域technical field
本发明涉及网络通信,特别涉及一种在点对点接入网络上实现接入点链路状态、服务链路状态穿通的方法。The invention relates to network communication, in particular to a method for realizing pass-through of access point link state and service link state on a point-to-point access network.
技术背景technical background
在工程应用中,用户间的数据通过接入设备进入网络以实现数据交互。图1是用户通过点对点接入网络进行数据交互的示意图。如图1所示,正常情况下,用户1、用户2通过服务设备和链路建立通信,链路主要包括接入点链路1、服务网络以及接入点链路2。当链路出现故障时,即,接入点链路或者服务网络出现故障时,用户1与用户2的通信中断。对于重要的用户,出现此类故障时需要启动备份网络,以保证重要数据能够正常传输。备份网络可以采取多种形式,例如多租用一条链路,或者在用户1和用户2之间搭建无线通信或卫星通信等。当接入点链路出现故障时,用户能够检测到链路的故障,并启动备份网络,试图使用备份网络与对端用户进行通信。可是对于对端用户而言,它并不知道发生了链路故障,仍然使用原网络进行通信;结果两用户间的通信处于断开状态。当服务网络出现故障时,两端用户根本不知道网络不能使用,于是两端通信断开。如果能够把链路的状态传递给对端用户,即实现链路状态穿通功能,那么对端用户就可以启动备份网络,在备份网络上重新建立与用户1或用户2的链接。In engineering applications, data between users enters the network through access devices to achieve data interaction. FIG. 1 is a schematic diagram of data interaction between users through a point-to-point access network. As shown in FIG. 1 , under normal circumstances,
为了让对端用户知道链路发生了故障,可采用多种方法,一种典型的方法是:用户1和用户2之间通过定时对告方式,将本端的链接信息告诉对方,当长时间收不到对端发送过来的链接信息时,认为链路发生了故障,用户停止对告链接信息,自动使用备份网络进行通信;另一种典型的方法是:用户1和用户2实时检测备份网络的使用情况,只要检测到有任何一方使用了备份网络,另外一方也改为使用备份网络。In order to let the remote user know that the link has failed, various methods can be adopted. A typical method is:
上述方法虽然在一定程度上可以解决问题,但却存在一些弊端:第一、在正常情况下,定时对告链接信息会占用网络带宽,从而需付出额外的网络开销;第二、当网络出现拥塞时,对告链接信息会出现延时,有可能因错误判断而导致错误的操作;第三、如果对备份网络检测,需要占用备份网络的部分带宽,这也会给网络带来额外开销;第四、当链路恢复正常时,双方怎样离开备份网络、回到工作网络也是一个问题。Although the above method can solve the problem to a certain extent, there are some disadvantages: first, under normal circumstances, the regular reporting link information will occupy the network bandwidth, which requires additional network overhead; second, when the network is congested , there will be a delay in reporting link information, which may lead to wrong operations due to wrong judgments; third, if the backup network is detected, it needs to occupy part of the bandwidth of the backup network, which will also bring additional overhead to the network; 4. When the link returns to normal, how both parties leave the backup network and return to the working network is also a problem.
发明内容Contents of the invention
为了解决现有技术中存在的上述弊端,本发明的目的在于提出一种既能够在链路出现故障的情况下通知对端又能够保证在网络正常工作时付出尽量小额外开销的网络中链路状态穿通方法。In order to solve the above-mentioned drawbacks in the prior art, the purpose of the present invention is to propose a link in the network that can notify the opposite end in the event of a link failure and ensure that the network works normally with as little extra overhead as possible. State passthrough method.
为了实现本发明的上述目的,提供了一种实现网络中链路状态穿通的方法,该方法包括以下步骤:服务设备检测网络中链路是否出现故障;当网络中链路出现故障时,服务设备利用所述控制帧将链路故障信息传递给对端服务设备;对端服务设备响应接收到的含有链路故障信息的所述控制帧而断开用户链路并进行相应的处理;以及故障端的用户与对端的用户通过备份网络进行通信。In order to achieve the above-mentioned purpose of the present invention, a method for realizing link status pass-through in the network is provided. The method includes the following steps: the service device detects whether the link in the network fails; when the link in the network fails, the service device Use the control frame to transmit the link failure information to the peer service device; the peer service device disconnects the user link in response to the received control frame containing the link fault information and performs corresponding processing; and the faulty end The user communicates with the peer user through the backup network.
根据本发明所述的方法还包括以下步骤:The method according to the present invention also includes the following steps:
当所述链路恢复正常时,恢复端服务设备向对端服务设备发送含有链路故障恢复信息的控制帧,重新在所述链路上建立所述用户之间的通信。When the link returns to normal, the service device at the recovery end sends a control frame containing link failure recovery information to the service device at the opposite end, and re-establishes the communication between the users on the link.
所述控制帧中至少包括网络状态信息,用于表明是否出现链路故障。所述控制帧可为标准以太网帧,所述网络状态信息填入所述以太网帧的操作码字段中,或是封装协议控制帧,所述网络状态信息填入所述封装协议控制帧的控制字段中,或是信号标签字节,所述网络状态信息填入所述信号标签字节中。The control frame includes at least network status information, which is used to indicate whether a link failure occurs. The control frame can be a standard Ethernet frame, and the network state information is filled in the operation code field of the Ethernet frame, or an encapsulation protocol control frame, and the network state information is filled in the encapsulation protocol control frame In the control field, or the signal label byte, the network status information is filled in the signal label byte.
步骤A还包括去抖处理的以下步骤:Step A also includes the following steps of the debounce process:
仅当链路在预定时间内持续不可用时,才判断链路出现故障;以及仅当链路在预定时间内持续可用时,才判断链路恢复正常。Only when the link continues to be unavailable for a predetermined time, it is judged that the link is faulty; and only when the link is continuously available for a predetermined time, it is judged that the link returns to normal.
如果所述链路故障为接入点故障,则故障端的服务设备将向对端服务设备发送含有接入点出现故障信息的所述控制帧,在接收到含有接入点出现故障信息的所述控制帧后,所述对端服务设备将断开与对端用户的连接,然后故障端的用户与对端用户通过备份网络进行通信;If the link failure is an access point failure, the service device at the faulty end will send the control frame containing the failure information of the access point to the opposite service device, and after receiving the control frame containing the failure information of the access point After the control frame, the opposite end service device will disconnect the connection with the opposite end user, and then the user at the faulty end communicates with the opposite end user through the backup network;
如果所述链路故障为服务网络故障,则故障端的服务设备将向对端服务设备发送含有服务网络出现故障信息的所述控制帧,并且断开与故障端用户的链接,在接收到含有服务网络出现故障信息的所述控制帧后,所述对端服务设备将断开与对端用户的连接,然后故障端的用户与对端用户通过备份网络进行通信。If the link failure is a failure of the service network, the service device at the faulty end will send the control frame containing the failure information of the service network to the opposite service device, and disconnect the link with the user at the faulty end. After the control frame of failure information appears on the network, the peer service device will disconnect from the peer user, and then the user at the fault end communicates with the peer user through the backup network.
在链路故障为服务网络故障的情况下,仅当确定了所述服务网络自身的保护功能失效之后,再执行与服务网络故障相对应的处理步骤。In the case that the link failure is a service network failure, the processing steps corresponding to the service network failure are executed only after it is determined that the protection function of the service network itself fails.
本发明的有益效果是:1)在链路工作正常情况下,不会发送控制帧进行控制,这样就不会占用工作网络和备份网络的带宽,从而节省了额外开销;2)通过利用控制帧机制来控制链路的断开和恢复,对原有网络不会产生副作用,从而方便了网络的升级和维护;3)在本发明中,对链路故障及恢复的判断采用了“去抖”处理,从而提高了网络的可靠性和易用性。The beneficial effects of the present invention are: 1) when the link is working normally, no control frame will be sent for control, so that the bandwidth of the working network and the backup network will not be occupied, thereby saving extra overhead; 2) by using the control frame mechanism to control the disconnection and recovery of the link, which will not produce side effects on the original network, thereby facilitating the upgrading and maintenance of the network; 3) in the present invention, "debounce" is adopted for the judgment of link failure and recovery processing, thereby improving the reliability and ease of use of the network.
附图说明Description of drawings
图1是用户通过点对点接入网络进行数据交互的示意图;Figure 1 is a schematic diagram of data interaction between users through a point-to-point access network;
图2是根据本发明所述链路状态穿通方法的流程框图;Fig. 2 is a block flow diagram of the method for passing through the link state according to the present invention;
图3是根据本发明实施例所述的标准模式下的链路状态穿通过程图;Fig. 3 is a link state traversal process diagram in standard mode according to an embodiment of the present invention;
图4是根据本发明实施例所述的扩展模式下的链路状态穿通过程图;FIG. 4 is a process diagram of link state traversal in extended mode according to an embodiment of the present invention;
图5是根据本发明实施例所述的去抖处理的时序图;FIG. 5 is a timing diagram of debounce processing according to an embodiment of the present invention;
图6是根据本发明实施例所述的告警和事件的上报图示;FIG. 6 is an illustration of reporting alarms and events according to an embodiment of the present invention;
图7是根据本发明实施例所述的链路穿通实现状态迁移图;FIG. 7 is a state transition diagram for realizing link pass-through according to an embodiment of the present invention;
图8是根据本发明实施例所述的控制帧的组成示意图;Fig. 8 is a schematic diagram of composition of a control frame according to an embodiment of the present invention;
图9是适用于本发明所述链路穿通方法的一种网络结构;FIG. 9 is a network structure applicable to the link pass-through method of the present invention;
图10是适用于本发明所述链路穿通方法的另一种网络结构。Fig. 10 is another network structure applicable to the link pass-through method of the present invention.
具体实施方式Detailed ways
图2是根据本发明所述链路状态穿通方法的总体技术流程框图。如图2所示,首先服务设备检测网络中链路是否出现故障S1;当出现链路故障时S2,故障端的服务设备利用所述控制帧将链路故障信息通过服务网络传递给对端服务设备S3,在接收到来自所述服务设备的控制帧之后,对端服务设备将进行相应的处理S4,之后,故障端的用户与对端的用户通过备份网络进行通信S5。Fig. 2 is a block diagram of the overall technical flow of the link state pass-through method according to the present invention. As shown in Figure 2, the service device first detects whether a link in the network is faulty S1; when a link fault occurs S2, the service device at the faulty end uses the control frame to transmit the link fault information to the peer service device through the service network S3, after receiving the control frame from the service device, the service device at the opposite end will perform corresponding processing S4, and then the user at the faulty end communicates with the user at the opposite end through the backup network S5.
控制帧可采用不同的方式来定义,下面介绍三种实现方式。The control frame can be defined in different ways, three implementation ways are introduced below.
(1)、使用标准以太网帧定义控制帧,并实现链路状态穿通功能在IP OVER SDH(基于SDH的IP)网络中,用户为以太网交换机,服务设备为SDH以太网接入设备。首先根据以太网帧格式定义如图8所示的控制帧,该控制帧包括以下内容:(1) Use the standard Ethernet frame to define the control frame, and realize the link state pass-through function. In the IP OVER SDH (IP based on SDH) network, the user is an Ethernet switch, and the service device is an SDH Ethernet access device. First define the control frame as shown in Figure 8 according to the Ethernet frame format, the control frame includes the following content:
目的地址(6字节):全球唯一媒体访问控制(MAC)地址;Destination address (6 bytes): globally unique media access control (MAC) address;
源地址(6字节):全球唯一MAC地址;Source address (6 bytes): globally unique MAC address;
类型字段(2字节):0xE140-表示该帧为链路状态穿通功能控制帧;Type field (2 bytes): 0xE140-indicates that the frame is a link state passthrough function control frame;
操作码字段(2字节):Opcode field (2 bytes):
0x0000-网络故障消除(Non_Broken报文),0x0000-network fault elimination (Non_Broken message),
0x0200-网络发生故障(Broken报文);0x0200-Network failure (Broken message);
填充字段(44字节):填入填充字节;Padding field (44 bytes): fill in padding bytes;
校验字段(4字节):填入以太网的循环冗余Crc32校验值。Check field (4 bytes): fill in the cyclic redundancy Crc32 check value of Ethernet.
其次定义几个时间参数:可以参考使用T0=500毫秒,T1=1~5秒,T2=5~10秒,T3=20毫秒~1秒,T4=30秒~300秒。Secondly, several time parameters are defined: T0=500 milliseconds, T1=1-5 seconds, T2=5-10 seconds, T3=20 milliseconds-1 second, T4=30 seconds-300 seconds can be referred to.
定义好控制帧格式和时间参数后,服务设备检测服务网络工作情况及接入点链路的链接情况,按照上文说明进行控制即可实现链路状态穿通功能。After defining the control frame format and time parameters, the service device detects the working status of the service network and the link status of the access point link, and controls according to the above description to realize the link status passthrough function.
考虑在网络维护中,有时需要区分故障点,以方便网络维护;此时应将操作码字段进行扩展。扩展后的操作码定义为:Considering that in network maintenance, it is sometimes necessary to distinguish fault points to facilitate network maintenance; at this time, the opcode field should be expanded. The expanded opcode is defined as:
0x0000-接入点故障消除(Non_Broken报文),0x0000-The access point fault is eliminated (Non_Broken message),
0x0100-服务网络故障消除(Non_Broken报文),0x0100-the service network fault is eliminated (Non_Broken message),
0x0200-接入点发生故障(Broken报文),0x0200-access point failure (Broken message),
0x0300-服务网络发生故障(Broken报文);0x0300-service network failure (Broken message);
当故障端检测到接入点故障时,发送接入点故障报文;当故障端检测到服务网络故障时,发送服务网络故障报文。设备可以选择是否支持扩展模式操作码。When the failure end detects an access point failure, it sends an access point failure message; when it detects a service network failure, it sends a service network failure message. Devices can choose whether to support extended mode opcodes.
(2)、使用封装协议控制帧实现链路状态穿通功能(2), using the encapsulation protocol control frame to realize the link state pass-through function
在使用封装协议实现链路状态穿通功能时,可以使用封装协议的控制字段来定义控制帧。如果使用链路接入规程-SDHLAPS/端对端协议PPP/高级数据链路控制HDLC封装协议,控制字段可以定义如下:When the encapsulation protocol is used to implement the link state passthrough function, the control field of the encapsulation protocol can be used to define the control frame. If Link Access Procedure-SDHLAPS/P2P Protocol/High-level Data Link Control HDLC encapsulation protocol is used, the control field can be defined as follows:
0x70-网络故障消除(Non_Broken报文),0x72-网络发生故障(Broken报文);0x70-network failure elimination (Non_Broken message), 0x72-network failure (Broken message);
正常情况下,控制字段填写默认的控制值。当链路故障时,故障端设备在控制字段填入具有如上特殊含义的控制值,用来通知对端设备此时的链路状态。对端设备收到代表链路故障的控制值时,根据控制值进行处理。当链路恢复后,设备恢复发送正常的控制值。Normally, the control field is filled with the default control value. When the link fails, the faulty end device fills in the control field with the control value with the above special meaning, which is used to notify the peer device of the link status at this time. When the peer device receives a control value representing a link failure, it processes it according to the control value. When the link is restored, the device resumes sending normal control values.
同样设备可以选择使用扩展的控制值,扩展控制字段定义如下:Similarly, the device can choose to use the extended control value, and the extended control field is defined as follows:
0x70-接入点故障消除(Non_Broken报文),0x71-服务网络故障消除(Non_Broken报文),0x72-接入点发生故障(Broken报文),0x73-服务网络发生故障(Broken报文);0x70-access point failure elimination (Non_Broken message), 0x71-service network failure elimination (Non_Broken message), 0x72-access point failure (Broken message), 0x73-service network failure (Broken message);
(3)、SDH中使用信号标签字节实现链路状态穿通功能(3) In SDH, the signal label byte is used to realize the link state pass-through function
下面是对信号标签的具体定义:The following is the specific definition of the signal label:
0x70-网络故障消除(Non_Broken报文),0x72-网络发生故障(Broken报文);0x70-network failure elimination (Non_Broken message), 0x72-network failure (Broken message);
扩展后的定义:The expanded definition:
0x70-接入点故障消除(Non_Broken报文),0x71-服务网络故障消除(Non_Broken报文),0x72-接入点发生故障(Broken报文),0x73-5服务网络发生故障(Broken报文);0x70-access point failure (Non_Broken message), 0x71-service network failure (Non_Broken message), 0x72-access point failure (Broken message), 0x73-5 service network failure (Broken message) ;
SDH中信号标签使用通道开销中的C2/V5字节传送。Signal labels in SDH are transmitted using C2/V5 bytes in channel overhead.
对于VC3/VC4级别的业务,正常情况下C2字节传送正常的信号标签值。当链路发生故障时,故障检测端设备发送链路故障C2值,以通知对端设备此时的链路状态。对端设备收到代表链路故障的C2字节后,不应该上报信号失配告警,而是进行链路状态穿通功能的处理;并根据链路状态穿通功能的状态机进行状态转换。当故障端链路恢复,设备回到正常工作状态后,设备重新发送正常的C2值。For VC3/VC4-level services, under normal circumstances, the C2 byte transmits a normal signal label value. When a link fails, the fault detection end device sends a link fault C2 value to inform the peer end device of the link status at this time. After the peer device receives the C2 byte representing the link failure, it should not report the signal mismatch alarm, but process the link state passthrough function; and perform state transition according to the state machine of the link state passthrough function. When the link at the faulty end recovers and the device returns to the normal working state, the device resends the normal C2 value.
对于VC1/2级别的业务,使用V5字节传送链路状态穿通功能控制帧,工作机制与VC3/VC4级别的业务一致。需要注意的是:正常情况下V5字节的5~7bit传送正常的信号标签。由于添加了链路状态穿通功能,所以需要扩展使用V5字节。根据标准,扩展使用时,V5字节的5~7bit填写101,扩展的信号标签填写到K4字节的bit1,32帧K4的bit1构成一32bit位串,使用12~19bit来传送扩展信号标签。For VC1/2-level services, V5 bytes are used to transmit link state passthrough function control frames, and the working mechanism is consistent with VC3/VC4-level services. It should be noted that: under normal circumstances, the 5-7 bits of the V5 byte transmit normal signal labels. Since the link state passthrough function is added, the V5 byte needs to be extended. According to the standard, when extended, fill in 101 in the 5~7 bits of the V5 byte, and fill in the bit1 of the K4 byte for the extended signal label. The bit1 of the 32-frame K4 constitutes a 32-bit bit string, and use 12~19 bits to transmit the extended signal label.
1.接入点故障模式下的链路穿通1. Link passthrough in access point failure mode
图3是根据本发明实施例所述的标准模式下的链路状态穿通过程图,如图3所示,其处理过程如下:Fig. 3 is a link state traversal process diagram in the standard mode according to an embodiment of the present invention. As shown in Fig. 3, the processing process is as follows:
t0时刻,用户1与服务设备A链接的链路出现故障。此时服务设备A向对端的服务设备B发送连续的Broken原语,把本端的故障告诉服务设备B,原语使用控制帧格式。At time t0, the link between
t1时刻,服务设备B收到链接故障的Broken原语;经过处理后,知道服务设备A处出现了链路故障,于是断开与用户2的链接;用户1与服务设备A的链路链接状态穿通到了服务设备B与用户2之间的链路链接状态。此时用户1和用户2可以使用备份网络进行通信。At time t1, service device B receives the Broken primitive of the link failure; after processing, it knows that there is a link failure at service device A, so it disconnects the link with
t2时刻,用户1与服务设备A间的链路得到恢复;此时服务设备A向服务设备B发送Non_Broken原语,告诉设备B本端链路得到恢复。At time t2, the link between
t3时刻,服务设备B收到Non_Broken原语;经过处理后,知道设备A处的链路故障消失;于是重新在原来的网络上建立与用户2的链接。At time t3, service device B receives the Non_Broken primitive; after processing, it knows that the link failure at device A has disappeared; then re-establishes a link with
2.服务网络故障模式下的链路状态穿通2. Link state passthrough in service network failure mode
图4是根据本发明实施例所述的扩展模式下的链路状态穿通过程图,如图4所示,其处理过程如下:Fig. 4 is a process diagram of link state traversal in the extended mode according to an embodiment of the present invention. As shown in Fig. 4, the processing process is as follows:
t0时刻,服务设备A检测到服务网络不可用,向对端发送Broken原语,并切断与本端用户的链接;At time t0, service device A detects that the service network is unavailable, sends a Broken primitive to the peer end, and cuts off the link with the local user;
t1时刻,服务设备B收到Broken原语,于是切断与用户2的链接;此后用户1和用户2使用备份网络进行通信;直到服务网络得到恢复。At time t1, service device B receives the Broken primitive and cuts off the connection with
需要注意的是,服务网络通常具有自己的网络保护功能,具有一定的网络保护能力。为了避免混乱,要求链路状态穿通功能实行晚启动,即,仅当确定了服务网络的保护功能失效后,再启动链路状态穿通功能。It should be noted that the service network usually has its own network protection function and has certain network protection capabilities. In order to avoid confusion, the link state passthrough function is required to be started late, that is, the link state passthrough function is started only after it is determined that the protection function of the serving network is invalid.
3.链路状态穿通功能的去抖处理3. Debounce processing of link state pass-through function
链路状态穿通功能在实现时,有可能因为链路的时好时坏(抖动)而出现错误的操作处理,为了消除链路的抖动问题,可以采用去抖处理。图5是根据本发明实施例所述的去抖处理的时序图,如图5所示,其主要过程为:When the link status pass-through function is implemented, there may be erroneous operation and processing due to the ups and downs (jitter) of the link. In order to eliminate the jitter problem of the link, dejitter processing can be used. FIG. 5 is a timing diagram of debounce processing according to an embodiment of the present invention. As shown in FIG. 5 , the main process is:
仅当链路持续T0时间不可用时,才判断链路出现故障;如果链路故障时间小于T0,那么保持原来的链路状态不变;Only when the link is unavailable for T0 time, the link is judged to be faulty; if the link failure time is less than T0, then the original link status remains unchanged;
仅当链路持续T0时间可以用时,才判断链路工作正常。Only when the link is available for T0 time, can it be judged that the link is working normally.
4.链路状态穿通功能下的告警和事件4. Alarms and events under the link status passthrough function
在链路状态穿通过程中,需要对各种情况进行监视和报告。图6示出了在链路状态穿通功能下的告警和事件,如图6所示,其主要内容为:During link state traversal, various conditions need to be monitored and reported. Figure 6 shows the alarms and events under the link state passthrough function, as shown in Figure 6, its main content is:
I.服务设备检测到接入点链路故障时,上报本端接入点故障告警,只有当检测到接入点链路故障消失时才停止上报;I. When the service device detects the failure of the access point link, it reports the local access point failure alarm, and only stops reporting when it detects that the access point link failure disappears;
II.服务设备第一次收到Broken控制帧时,上报对端链路故障事件,同样当第一次收到Non_Broken控制帧时,上报对端链路故障消除事件;II. When the service device receives the Broken control frame for the first time, it reports the peer link failure event, and when it receives the Non_Broken control frame for the first time, it reports the peer link fault elimination event;
III.服务设备检测到服务网络故障时,可以使用服务网络原有的告警进行上报,也可以使用专门的告警进行上报。III. When the service device detects a fault in the service network, it can use the original alarm of the service network to report, or use a special alarm to report.
5.链路状态穿通功能的状态机转换5. State machine conversion of the link state pass-through function
在链路状态穿通功能下有多种状态,随着链路情况的变化,这些状态之间可以发生转换。下面将参考图7对链路状态穿通功能下的各种状态及其转换进行详细说明。图7是根据本发明实施例所述的链路穿通实现状态迁移图,如图7所示,链路状态穿通功能的具体实现过程由一个包含4个基本状态的状态机组成,以下是状态机的4个基本状态定义:There are multiple states under the link state pass-through function, and transitions between these states can occur as the link situation changes. Various states and their transitions under the link state passthrough function will be described in detail below with reference to FIG. 7 . Fig. 7 is a state transition diagram for realizing link pass-through according to an embodiment of the present invention. As shown in Fig. 7, the specific realization process of the link state pass-through function consists of a state machine including 4 basic states. The following is the state machine The 4 basic state definitions of :
正常工作状态:接入点和服务网络都处于正常状态;Normal working state: both the access point and the service network are in normal state;
等待恢复状态:当服务设备收到Broken控制帧后,进入等待恢复状态;Waiting for recovery state: When the service device receives the Broken control frame, it enters the state of waiting for recovery;
接入点故障状态:用户与服务设备间的路径出现故障,用户与服务设备间不能进行正常的通信;Access point failure state: the path between the user and the service device is faulty, and normal communication between the user and the service device cannot be carried out;
服务网络故障状态:服务设备之间的服务网络出现故障,不能进行正常的通信。Service network failure status: The service network between service devices fails, and normal communication cannot be performed.
状态迁移过程概括如下:The state transition process can be summarized as follows:
◆正常工作状态:◆Normal working status:
1).如果检测到服务网络持续T0时间不可用,那么向对端设备发送Broken控制帧,告诉对端设备本端检测出服务网络不可用,然后进入服务网络故障状态;1). If it is detected that the service network is unavailable for T0 time, then send a Broken control frame to the peer device to tell the peer device that the service network is detected to be unavailable, and then enter the service network failure state;
2).如果检测到接入点网络持续T1时间不可用,那么向对端设备发送Broken控制帧,告诉对端设备本端检测出接入点网络不可用,然后进入接入点故障状态;2). If it is detected that the access point network is unavailable for T1 time, then send a Broken control frame to the peer device to tell the peer device that the local end detects that the access point network is unavailable, and then enter the access point failure state;
3).如果收到Broken控制帧,表示对端网络故障,那么本端服务设备切断与用户的链接端口,然后进入等待恢复状态;3). If the Broken control frame is received, indicating that the peer network is faulty, then the local service device cuts off the link port with the user, and then enters the waiting recovery state;
◆等待恢复状态:设备如果进入该状态,表示收到了Broken控制帧。此时本端设备的接入点网络可能是好的,不应该对接入点网络进行尝试性的链接。◆Waiting for recovery state: If the device enters this state, it means that it has received a Broken control frame. At this time, the access point network of the local device may be good, and a tentative link to the access point network should not be performed.
1).如果设备检测到服务网络持续T0不可用,那么向对端设备发送Broken控制帧,告诉对端设备本端检测出服务网络不可用,然后进入服务网络故障状态;该步骤是可选的;1). If the device detects that the service network continues to be unavailable at T0, then send a Broken control frame to the peer device to tell the peer device that the service network is unavailable at the local end, and then enter the service network failure state; this step is optional ;
2).设备每间隔T1时间就断开一次与用户的链接,防止服务设备没有和用户断开链路的事故;如果能够保证进入等待恢复状态前设备与用户的接入点链接是切断的,那么该步骤也是可选的;2). The device disconnects the link with the user every T1 interval to prevent the accident that the service device does not disconnect the link with the user; if it can be guaranteed that the access point link between the device and the user is cut off before entering the waiting recovery state, Then this step is also optional;
3).如果设备持续T2时间没有收到Broken报文,那么可能是对端进入了正常工作状态或等待恢复状态;本端设备此时应该链接与用户的接入点链路并主动回到正常工作状态,以防止发生死锁;3). If the device does not receive the Broken message for T2, it may be that the peer end has entered the normal working state or is waiting for recovery; the local device should link to the user's access point link and actively return to normal work state to prevent deadlocks;
4).如果设备收到Non_Broken控制帧,表示对端链路故障已经恢复,现在可以正常工作;那么本设备应该链接与用户的接入点链路,然后进入正常工作状态;4). If the device receives the Non_Broken control frame, it means that the peer link has recovered and can work normally now; then the device should link with the user's access point link, and then enter the normal working state;
5).如果设备收到Broken报文,表示对端设备的链路还处于故障状态,重新开始T2计数;5). If the device receives the Broken message, it means that the link of the peer device is still in a fault state, and restarts T2 counting;
◆服务网络故障状态:设备进入该状态,表示检测到服务网络发生了故障。◆Service network failure state: The device enters this state, indicating that the service network has detected a failure.
1).继续检查服务网络是否正常,如果服务网络仍然有故障,那么定时T3发送Broken报文,告诉对端设备服务网络故障(此处不管是否对端设备能够收到);1). Continue to check whether the service network is normal. If the service network is still faulty, then periodically send a Broken message at T3 to tell the peer device that the service network is faulty (whether the peer device can receive it or not);
2).继续检查服务网络是否正常,如果服务网络持续T0时间无故障,那么认为服务网络已经恢复正常;此时向对端发送Non_Broken报文,并直接回到正常工作状态,重新开始新的检测。。2). Continue to check whether the service network is normal. If the service network continues to have no faults for T0, then it is considered that the service network has returned to normal; at this time, a Non_Broken message is sent to the peer, and it returns to the normal working state directly, and a new detection is started . .
◆接入点故障状态:设备进入该状态,表示检测到本端接入点发生故障。在此状态下,需要定时尝试恢复接入点的链路。◆Access point failure state: The device enters this state, which means that the local access point is detected to be faulty. In this state, regular attempts are made to restore the link to the access point.
1).检测本端服务网络的状态,如果检测到服务网络不可用,那么发送Broken报文,并进入到服务网络故障状态;本步骤是可选的;1). Detect the state of the service network at the local end. If it is detected that the service network is unavailable, then send a Broken message and enter the service network failure state; this step is optional;
2).T1、T4周期交替工作;在T1(T1至少应该保证正常链接服务设备与用户之间的所需时间)期间,设备尝试链接接入点链路,如果链接成功那么发送Non_Broken控制帧给对端,然后进入正常工作状态;否则再次切断接入点链路进入T4阶段;在T4阶段里,服务设备定时T3向对端发送Broken报文,告诉对端设备本端发生了网络故障;T4阶段结束后设备重新进入T1阶段;2). T1 and T4 cycles work alternately; during T1 (T1 should at least ensure the required time between the normal link service device and the user), the device tries to link the access point link, and if the link is successful, it sends a Non_Broken control frame to The opposite end, and then enter the normal working state; otherwise, cut off the access point link again and enter the T4 stage; in the T4 stage, the service device sends a Broken message to the opposite end at regular intervals T3, telling the opposite end that a network failure has occurred at the end; T4 After the stage ends, the equipment re-enters the T1 stage;
3).如果收到Broken控制帧,那么表示服务网络或对端接入点有故障,重新开始T4阶段计数;3). If a Broken control frame is received, it means that the service network or the peer access point is faulty, and the T4 stage counting is restarted;
4).如果收到Non_Broken报文,表示对端网络已经恢复;此时本端设备应该立即进入T1阶段;尝试恢复网络链接。4). If a Non_Broken message is received, it means that the peer network has been restored; at this time, the local device should immediately enter the T1 stage; try to restore the network link.
虽然以上对本发明所作的说明是参考具体实施例来进行的,但是,本领域的技术人员应该明白,这些说明并不意味着对本发明的限制。例如,在上述实施例中,链路状态穿通技术被应用于图1所示网络结构当中。但是,该技术也同样适用于其他形式的网络结构,图9和图10示出了其中可采用本发明所述链路穿通技术的两种网络结构形式。如图9所示,第一种网络结构为:用户1和2可以在服务设备处开通两个端口的业务,两个端口可以是一主一备,也可是互做主备。此时两个端口都可以使用链路状态穿通功能。不过当服务网络出现故障时,用户1和用户2间的通信仍然会断开。如图10所示,第二种网络结构为:工作链路和备份链路不走一个网络,是完全独立的。用户1分别在服务设备A0和服务设备A1处开通业务;同样用户2在服务设备B0和服务设备B1上开通业务。正常情况下用户1和用户2使用服务网络0通信,故障发生时用户1和用户2使用服务网络1通信。这种结构可以保证服务网络0出现故障时用户之间的通信仍然可以进行。因此,对本发明的限制是由其权利要求书来定义的,任何对本发明的修改和变换都不会脱离本发明的精神和范围。Although the above descriptions of the present invention are made with reference to specific embodiments, those skilled in the art should understand that these descriptions are not meant to limit the present invention. For example, in the foregoing embodiments, the link state passthrough technology is applied to the network structure shown in FIG. 1 . However, this technology is also applicable to other forms of network structures, and Fig. 9 and Fig. 10 show two forms of network structures in which the link pass-through technology of the present invention can be used. As shown in Figure 9, the first network structure is:
Claims (13)
Priority Applications (11)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB021525315A CN1319320C (en) | 2002-10-22 | 2002-11-21 | Method for realizing link state feed-through in network |
| CA2506914A CA2506914C (en) | 2002-11-21 | 2003-08-13 | A method of achieving the network link status passing-through in network |
| RU2005119311/09A RU2304849C2 (en) | 2002-11-21 | 2003-08-13 | Method affording transmission of information about communication line condition in network |
| AT03811325T ATE400939T1 (en) | 2002-11-21 | 2003-08-13 | METHOD FOR SIGNALING A CONNECTION ERROR IN A NETWORK |
| US10/535,858 US7660240B2 (en) | 2002-11-21 | 2003-08-13 | Method of achieving the network link status penetrate |
| PCT/CN2003/000668 WO2004047366A1 (en) | 2002-11-21 | 2003-08-13 | A method of achieving the network link status penetrate |
| EP03811325A EP1568171B1 (en) | 2002-11-21 | 2003-08-13 | Method for signaling a link fault in a network |
| AU2003261567A AU2003261567A1 (en) | 2002-11-21 | 2003-08-13 | A method of achieving the network link status penetrate |
| ES03811325T ES2309393T3 (en) | 2002-11-21 | 2003-08-13 | METHOD TO SIGN A LINK FAILURE IN A NETWORK. |
| DE60322096T DE60322096D1 (en) | 2002-11-21 | 2003-08-13 | Method for signaling a connection error in a network |
| BR0316505-1A BR0316505A (en) | 2002-11-21 | 2003-08-13 | Method for implementing link state that passes through the network |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN02145670.4 | 2002-10-22 | ||
| CN02145670 | 2002-10-22 | ||
| CNB021525315A CN1319320C (en) | 2002-10-22 | 2002-11-21 | Method for realizing link state feed-through in network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1492623A CN1492623A (en) | 2004-04-28 |
| CN1319320C true CN1319320C (en) | 2007-05-30 |
Family
ID=34276043
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB021525315A Expired - Lifetime CN1319320C (en) | 2002-10-22 | 2002-11-21 | Method for realizing link state feed-through in network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1319320C (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009082923A1 (en) * | 2007-12-14 | 2009-07-09 | Huawei Technologies Co., Ltd. | Link fault processing method and data forwarding device |
Families Citing this family (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006116896A1 (en) * | 2005-04-30 | 2006-11-09 | Zte Corporation | Rapid restoration method for ason |
| CN100438454C (en) * | 2006-01-23 | 2008-11-26 | 华为技术有限公司 | A Method for Detection of Ethernet Operation and Maintenance Continuity |
| CN100446476C (en) * | 2006-08-02 | 2008-12-24 | 华为技术有限公司 | Method and device for intercommunication of network fault detection results |
| CN101136789A (en) * | 2006-08-30 | 2008-03-05 | 华为技术有限公司 | A method and device for realizing end-to-end link detection and routing strategy switching |
| CN1968144B (en) * | 2006-09-01 | 2014-04-02 | 华为技术有限公司 | Operation, management and maintenance handling method and device |
| CN1964249B (en) * | 2006-10-20 | 2010-08-25 | 华为技术有限公司 | A method and device for realizing point-to-multipoint network link state passthrough |
| CN101163057B (en) * | 2007-11-20 | 2012-04-04 | 华为技术有限公司 | Fault notifying method and apparatus, and service receiving method and apparatus |
| CN101183894A (en) * | 2007-12-12 | 2008-05-21 | 华为技术有限公司 | Star card resource sharing method and equipment, base station equipment and network system |
| CN101465762B (en) * | 2008-12-02 | 2011-05-04 | 华为技术有限公司 | Method, equipment and system for detecting error connection between protection set ports |
| CN101662398B (en) * | 2009-10-14 | 2012-01-04 | 烽火通信科技股份有限公司 | Method for transferring alarm of client access link in transmission system |
| CN101795186B (en) * | 2010-03-04 | 2013-01-23 | 华为技术有限公司 | Linkage disconnecting method, system and equipment |
| CN104796271A (en) * | 2014-01-17 | 2015-07-22 | 中兴通讯股份有限公司 | Connecting method and connecting device |
| CN103929359B (en) * | 2014-03-21 | 2017-02-08 | 烽火通信科技股份有限公司 | System, method and device for achieving link state punch through function based on PTN |
| CN104113372B (en) * | 2014-08-11 | 2017-01-18 | 烽火通信科技股份有限公司 | Link alarming transmission method and device in optical network equipment |
| CN106559234B (en) * | 2015-09-28 | 2021-02-19 | 中兴通讯股份有限公司 | Control message sending method and device |
| CN105487941A (en) * | 2015-11-27 | 2016-04-13 | 武汉微创光电股份有限公司 | Service disconnection and connection recovery test system and service disconnection and connection recovery test method |
| CN107995641B (en) * | 2018-01-31 | 2019-02-01 | 成都物梦工场信息技术有限公司 | Method, device and computer-readable storage medium for managing communication failure between terminal and real-time base station |
| CN108337692B (en) * | 2018-01-31 | 2021-04-27 | 成都物梦工场信息技术有限公司 | Management method, device and computer readable storage medium for communication fault between terminal and management base station |
| CN115603802B (en) * | 2022-11-30 | 2023-03-10 | 中国船舶集团有限公司第七〇七研究所 | Time-frequency reference equipment, fault positioning method thereof and optical fiber ring network recovery method |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5406564A (en) * | 1990-11-27 | 1995-04-11 | Fujitsu Limited | Communication line backup system |
| CN1189269A (en) * | 1995-06-26 | 1998-07-29 | 艾利森电话股份有限公司 | Self-healing network |
| JPH1117686A (en) * | 1997-06-20 | 1999-01-22 | Oki Electric Ind Co Ltd | Atm exchange system |
| CN1207224A (en) * | 1996-11-12 | 1999-02-03 | 株式会社东芝 | Communication network system and communication line path control method thereof |
| CN1248838A (en) * | 1998-09-18 | 2000-03-29 | Lg情报通信株式会社 | Extending system and method for internal communication net |
| US6272107B1 (en) * | 1998-05-12 | 2001-08-07 | 3Com Corporation | Method of path restoration in an ATM network utilizing point to point switched virtual circuits |
| CN1342362A (en) * | 1998-11-10 | 2002-03-27 | 霍尼韦尔有限公司 | fault-tolerant network |
-
2002
- 2002-11-21 CN CNB021525315A patent/CN1319320C/en not_active Expired - Lifetime
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5406564A (en) * | 1990-11-27 | 1995-04-11 | Fujitsu Limited | Communication line backup system |
| CN1189269A (en) * | 1995-06-26 | 1998-07-29 | 艾利森电话股份有限公司 | Self-healing network |
| CN1207224A (en) * | 1996-11-12 | 1999-02-03 | 株式会社东芝 | Communication network system and communication line path control method thereof |
| JPH1117686A (en) * | 1997-06-20 | 1999-01-22 | Oki Electric Ind Co Ltd | Atm exchange system |
| US6272107B1 (en) * | 1998-05-12 | 2001-08-07 | 3Com Corporation | Method of path restoration in an ATM network utilizing point to point switched virtual circuits |
| CN1248838A (en) * | 1998-09-18 | 2000-03-29 | Lg情报通信株式会社 | Extending system and method for internal communication net |
| CN1342362A (en) * | 1998-11-10 | 2002-03-27 | 霍尼韦尔有限公司 | fault-tolerant network |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009082923A1 (en) * | 2007-12-14 | 2009-07-09 | Huawei Technologies Co., Ltd. | Link fault processing method and data forwarding device |
| US8331222B2 (en) | 2007-12-14 | 2012-12-11 | Huawei Technologies Co., Ltd. | Link fault handling method and data forwarding apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1492623A (en) | 2004-04-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1319320C (en) | Method for realizing link state feed-through in network | |
| US6311288B1 (en) | System and method for virtual circuit backup in a communication network | |
| CN1246994C (en) | Method and system for implementing a fast recovery process in a local area network | |
| EP2763359B1 (en) | Communication system, sending device, communication device, failure notification method and non-temporary computer-readable medium storing program | |
| US20090199040A1 (en) | Method and device for implementing link pass through in point-to-multipoint network | |
| CN101702658B (en) | Implement method of ring network protection and system thereof | |
| CN101877646B (en) | Protection switching method and node equipment | |
| CA2506914C (en) | A method of achieving the network link status passing-through in network | |
| CN107517117B (en) | IP layer OAM (operation administration and maintenance) alarm method and device and network node | |
| EP3403378B1 (en) | Fault propagation in segmented protection | |
| US8811157B2 (en) | Protection switching method and system for ethernet dual-homed link | |
| US9013977B2 (en) | Method and system for reducing traffic disturbance in a communication network caused by intermittent failure | |
| CN101317388B (en) | Apparatus and method for multi-protocol label switching label-switched path protection switching | |
| CN113645312A (en) | Method and device for protecting sub-ring network link based on ERPS protocol | |
| CN101809942A (en) | Method, apparatus and communication system for avoiding loops in an Ethernet ring system with an underlying 802.3ad network | |
| CN100466564C (en) | Fault monitoring method and device for virtual leased line | |
| EP1742420A1 (en) | A failure management method and apparatus for interworking ethernet and multiple protocol label switch network | |
| CN101436938A (en) | Method, system and switching equipment for halting/recovering port transmitting and receiving service | |
| CN101764714A (en) | Channel failure reversing method, node and signal transmission system | |
| CN100428728C (en) | Implementation method of multiplex section protection protocol | |
| CN115529223A (en) | Dual-redundancy network card switching method based on cascade switch | |
| JP3897012B2 (en) | Path failure detection method, detection apparatus, and program thereof | |
| KR101046009B1 (en) | How to detect network failure | |
| CN101668358A (en) | Examining method of protection switching and device thereof | |
| CN101090405B (en) | Fault state transmission method in E1 grade connection configuration |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CX01 | Expiry of patent term |
Granted publication date: 20070530 |
|
| CX01 | Expiry of patent term |