自动保护倒换APS状态处理方法、装置及APS节点Automatic protection switching APS state processing method, device and APS node
技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种自动保护倒换APS状态处理方法、装置及APS节点。The present invention relates to the field of communications, and in particular, to an automatic protection switching APS state processing method and apparatus, and an APS node.
背景技术Background technique
分组传送网(Packet Transfer Network,简称为PTN)支持多种基于分组交换业务的双向点对点连接通道,具有适合各种粗细颗粒业务、端到端的组网能力,提供了更加适合于IP业务特性的传输管道。保护特性是PTN的一大特色,具备丰富的保护方式,遇到网络故障时能够实现基于50ms的电信级业务保护倒换,实现传输级别的业务保护和恢复。The Packet Transfer Network (PTN) supports a variety of bidirectional point-to-point connection channels based on packet switching services. It has the ability to adapt to various granular services and end-to-end networking capabilities, and provides transmissions more suitable for IP service characteristics. pipeline. The protection feature is a major feature of the PTN. It has a rich protection mode. When a network failure occurs, it can implement a 50-ms carrier-class service protection switching to achieve service level protection and recovery at the transmission level.
PTN设备需要遵从《分组传送网(PTN)设备技术要求》的相关说明,在10.3.7.2一节中,详细描述了环网节点APS(自动保护倒换)协议状态和状态机的具体方案。已有的APS协议的实现中,存在如下的隐患(以保护锁定和强制倒换为例)。图1是相关技术中APS状态机各个状态间迁移的拓扑结构图,如图1所示,该拓扑图简单如下:A(西向)——(东向)B(西向)——(东向)C(西向)——(东向)A。The PTN equipment needs to comply with the relevant instructions of the Packet Transport Network (PTN) Equipment Technical Requirements. In Section 10.3.7.2, the specific scheme of the ring node APS (Automatic Protection Switching) protocol status and state machine is described in detail. In the implementation of the existing APS protocol, the following hidden dangers exist (taking protection lock and forced switching as an example). 1 is a topological structural diagram of transitions between states of an APS state machine in the related art. As shown in FIG. 1, the topology diagram is as follows: A (westward) - (eastward) B (westward) - (eastward) C (westward) - (eastward) A.
步骤1,在A的西向下发保护闭锁;B的东向下发强制倒换。 Step 1, in the west of A, the protection is blocked; the eastward of B is forced to switch.
由于保护闭锁优先级高,所以此时A点上APS协议请求为LP(保护闭锁);B上面APS协议请求为LP(保护闭锁)。Because the protection blocking priority is high, the APS protocol request at point A is LP (protection blocking); the APS protocol request above B is LP (protection blocking).
步骤2,状态稳定后,此时A的西向和东向都应该发送保护闭锁的请求码,B在东向短径应答RR(反向请求),西向长径发送LP请求码。Step 2: After the state is stable, the west and east directions of A should send a request code for protection blocking, B responds to the RR in the east direction (reverse request), and sends the LP request code to the west long path.
步骤3,某个时刻,B点的APS字节刚好送出,报文尚未送达A;此时A点用户取消LP设置,发出NR(无请求)。 Step 3. At a certain moment, the APS byte of point B is just sent out, and the message has not been delivered to A; at this time, the user at point A cancels the LP setting and issues NR (no request).
步骤4,B收到A送过来的无请求码,此时配置的FS(强制倒换)优先级最高,进入倒换状态;A西向收到RR码,东向收到LP,再次进入LP。In step 4, B receives the no-request code sent by A. At this time, the configured FS (forced switching) has the highest priority and enters the switching state; A receives the RR code in the west direction, receives the LP in the east direction, and enters the LP again.
步骤5,A西向发出RR码,东向发出LP;B东向发出FS,西向发出FS。
In step 5, A sends an RR code to the west, and LP to the east; B sends FS to the east and FS to the west.
步骤6,A收到对方发出的APS之后,西向发出RR码,东向发出FS,进入倒换状态;B的东向发出RR,西向发出LP,进入保护锁定状态。Step 6: After receiving the APS sent by the other party, A sends an RR code to the west, and sends an FS to the east to enter the switching state. B sends the RR to the east and LP to the west to enter the protection lock state.
步骤7,AB再次收到对方发出的APS之后,西向发出RR码,东向发出LP;B的东向发出RR,西向发出FS。Step 7, after the AB receives the APS sent by the other party again, the RR code is issued in the west direction, and the LP is sent in the east direction; the RR is issued in the east direction and the FS is issued in the west direction.
之后就一直在步骤6和7之间循环,最终节点的APS状态就会一直在保护锁定LP和强制倒换FS之间来回切换,导致业务丢包,影响业务的稳定。After that, the APS state of the node is switched back and forth between the protection lock LP and the forced switching FS, resulting in packet loss and affecting service stability.
因此,在相关技术中,节点的APS状态存在在保护闭锁LP和强制倒换FS之间来回切换的状态,导致业务丢包,影响到业务稳定的问题。Therefore, in the related art, the APS state of the node is in a state of switching back and forth between the protection latching LP and the forced switching FS, resulting in packet loss of the service and affecting the stability of the service.
发明内容Summary of the invention
本发明提供了一种自动保护倒换APS状态处理方法、装置及自动保护倒换APS节点,以至少解决相关技术中,节点的APS状态存在在保护闭锁LP和强制倒换FS之间来回切换的状态,导致业务丢包,影响到业务稳定的问题。The present invention provides an automatic protection switching APS state processing method and device, and an automatic protection switching APS node, so as to at least solve the related art, the node APS state exists in a state of switching back and forth between the protection blocking LP and the forced switching FS, resulting in Business packet loss affects the stability of the business.
根据本发明的一方面,提供了一种自动保护倒换APS状态处理方法,包括:自动保护倒换APS节点确定自动保护倒换APS节点的节点状态为以下至少之一:所述APS节点发出反向请求RR码,并且接收到非信号失效SF和非信号劣化SD的反向请求码和除所述APS节点之外的其他节点发出的RR码;所述APS节点发出反向请求RR码,并且在接收到信号失效SF和信号劣化SD的反向请求码和除所述APS节点之外的其他节点发出的RR码之后,进入恢复等待WTR时间,且超过所述WTR时间;撤消所述APS节点的倒换状态。According to an aspect of the present invention, an automatic protection switching APS state processing method is provided, including: an automatic protection switching APS node determines that a node state of an automatic protection switching APS node is at least one of the following: the APS node issues a reverse request RR a code, and receiving a reverse request code of the non-signal failure SF and the non-signal degraded SD and an RR code sent by other nodes than the APS node; the APS node issues a reverse request RR code, and upon receiving After the reverse request code of the signal failure SF and the signal degradation SD and the RR code sent by other nodes than the APS node, the recovery waits for the WTR time and exceeds the WTR time; the switching state of the APS node is revoked .
优选地,在所述节点状态为所述APS节点发出反向请求RR码,并且接收到非信号失效SF和非信号劣化SD的反向请求码和除所述APS节点之外的其他节点发出的RR码之后,还包括:确定在所述APS节点没有检测到段层故障和/或没有接收到人工倒换操作命令。Preferably, the node request status is a reverse request RR code for the APS node, and a reverse request code for receiving a non-signal failure SF and a non-signal degradation SD and a node issued by a node other than the APS node After the RR code, the method further includes: determining that no segment fault is detected at the APS node and/or no manual switching operation command is received.
优选地,确定所述APS节点的节点状态为所述APS节点发出反向请求RR码,并且接收到所述非SF和所述非SD的反向请求码和除所述APS节点之外的其他节点发出的RR码包括:确定所述APS节点在短径上接收到除所述APS节点之外的其他节点发出的RR码,在长径上接收到非SF和非SD的反向请求码。Preferably, determining a node status of the APS node to send a reverse request RR code to the APS node, and receiving the non-SF and the non-SD reverse request code and other than the APS node The RR code sent by the node includes: determining that the APS node receives an RR code sent by a node other than the APS node on a short path, and receives a non-SF and non-SD reverse request code on a long path.
优选地,确定所述APS节点的节点状态为所述APS节点发出反向请求RR码,并且在接收到所述SF和所述SD的反向请求码和除所述APS节点之外的其他节点发出
的RR码之后,进入恢复等待WTR时间,且超过所述WTR时间包括:确定所述APS节点在短径上接收到除所述APS节点之外的其他节点发出的RR码,在长径上接收到所述SF和所述SD的反向请求码。Preferably, determining a node status of the APS node is a reverse request RR code sent by the APS node, and receiving a reverse request code of the SF and the SD and other nodes except the APS node Issue
After the RR code, entering the recovery waiting WTR time, and exceeding the WTR time includes: determining that the APS node receives the RR code sent by other nodes than the APS node on the short path, and receives the long path. Reverse request code to the SF and the SD.
优选地,撤消所述APS节点的倒换状态包括:将所述APS节点的倒换状态切换到空闲状态。Preferably, the reversing the switching state of the APS node comprises: switching the switching state of the APS node to an idle state.
根据本发明的还一方面,提供了一种自动保护倒换APS状态处理装置,包括:第一确定模块,设置为确定自动保护倒换APS节点的节点状态为以下至少之一:所述APS节点发出反向请求RR码,并且接收到非信号失效SF和非信号劣化SD的反向请求码和除所述APS节点之外的其他节点发出的RR码;所述APS节点发出反向请求RR码,并且在接收到信号失效SF和信号劣化SD的反向请求码和除所述APS节点之外的其他节点发出的RR码之后,进入恢复等待WTR时间,且超过所述WTR时间;撤消模块,设置为撤消所述APS节点的倒换状态。According to still another aspect of the present invention, there is provided an automatic protection switching APS state processing apparatus, including: a first determining module, configured to determine that a node state of an automatic protection switching APS node is at least one of: the APS node sends an inverse Requesting an RR code, and receiving a reverse request code of a non-signal failure SF and a non-signal degraded SD and an RR code sent by a node other than the APS node; the APS node issues a reverse request RR code, and After receiving the reverse request code of the signal failure SF and the signal degradation SD and the RR code sent by other nodes than the APS node, entering the recovery waiting WTR time and exceeding the WTR time; the undo module is set to The switching state of the APS node is revoked.
优选地,所述APS状态处理装置还包括:第二确定模块,设置为确定在所述APS节点没有检测到段层故障和/或没有接收到人工倒换操作命令。Preferably, the APS state processing device further comprises: a second determining module, configured to determine that no segment fault is detected at the APS node and/or no manual switching operation command is received.
优选地,所述第一确定模块包括:第一确定单元,设置为确定所述APS节点在短径上接收到除所述APS节点之外的其他节点发出的RR码,在长径上接收到非SF和非SD的反向请求码。Preferably, the first determining module includes: a first determining unit, configured to determine that the APS node receives an RR code sent by a node other than the APS node on a short path, and receives the RR code on a long path. Non-SF and non-SD reverse request codes.
优选地,所述第一确定模块包括:第二确定单元,设置为确定所述APS节点在短径上接收到除所述APS节点之外的其他节点发出的RR码,在长径上接收到所述SF和所述SD的反向请求码。Preferably, the first determining module includes: a second determining unit, configured to determine that the APS node receives an RR code sent by a node other than the APS node on a short path, and receives the long code The reverse request code of the SF and the SD.
优选地,所述撤消模块包括:切换单元,设置为将所述APS节点的倒换状态切换到空闲状态。Preferably, the undo module comprises: a switching unit configured to switch the switching state of the APS node to an idle state.
根据本发明的再一方面,提供了一种自动保护倒换APS节点,包括上述任一项所述的装置。According to still another aspect of the present invention, there is provided an automatic protection switching APS node, comprising the apparatus of any of the above.
通过本发明,采用自动保护倒换APS节点确定自动保护倒换APS节点的节点状态为以下至少之一:所述APS节点发出反向请求RR码,并且接收到非信号失效SF和非信号劣化SD的反向请求码和除所述APS节点之外的其他节点发出的RR码;所述APS节点发出反向请求RR码,并且在接收到信号失效SF和信号劣化SD的反向请求码和除所述APS节点之外的其他节点发出的RR码之后,进入恢复等待WTR时间,
且超过所述WTR时间;撤消所述APS节点的倒换状态,解决了相关技术中存在的节点的APS状态在不同倒换状态中来回切换,导致业务丢包,影响到业务稳定的问题,进而达到了节省了保护倒换的处理时间,提高了业务的稳定性的效果。According to the present invention, the automatic protection switching APS node is used to determine that the node state of the automatic protection switching APS node is at least one of the following: the APS node sends a reverse request RR code, and receives a non-signal failure SF and a non-signal degradation SD a request code and an RR code issued by a node other than the APS node; the APS node issues a reverse request RR code, and receives a reverse request code for the signal failure SF and the signal degradation SD and After the RR code sent by other nodes other than the APS node, the recovery waits for the WTR time.
And the WTR time is exceeded; the switching state of the APS node is cancelled, and the APS state of the node in the related technology is switched back and forth in different switching states, causing service packet loss and affecting service stability, thereby achieving the problem. It saves the processing time of protection switching and improves the stability of the business.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是相关技术中APS状态机各个状态间迁移的拓扑结构图;1 is a topological structural diagram of transitions between states of an APS state machine in the related art;
图2是根据本发明实施例的自动保护倒换APS状态处理方法的流程图;2 is a flowchart of an automatic protection switching APS state processing method according to an embodiment of the present invention;
图3是根据本发明实施例的自动保护倒换APS状态处理装置的结构框图;3 is a structural block diagram of an automatic protection switching APS state processing apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的自动保护倒换APS状态处理装置的优选结构框图;4 is a block diagram showing a preferred structure of an automatic protection switching APS state processing apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的自动保护倒换APS状态处理装置中第一确定模块32的优选结构框图一;5 is a block diagram 1 of a preferred structure of the first determining module 32 in the automatic protection switching APS state processing apparatus according to an embodiment of the present invention;
图6是根据本发明实施例的自动保护倒换APS状态处理装置中第一确定模块32的优选结构框图二;6 is a block diagram 2 of a preferred structure of the first determining module 32 in the automatic protection switching APS state processing apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的自动保护倒换APS状态处理装置中撤消模块34的优选结构框图;7 is a block diagram showing a preferred structure of an undo module 34 in an automatic protection switching APS state processing apparatus according to an embodiment of the present invention;
图8是根据本发明实施例的自动保护倒换APS节点的结构框图;8 is a structural block diagram of an automatic protection switching APS node according to an embodiment of the present invention;
图9是根据本发明优选实施方式的倒换状态到空闲状态迁移的流程图。9 is a flow diagram of a switch state to idle state transition in accordance with a preferred embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种自动保护倒换APS状态处理方法,图2是根据本发明实施例的自动保护倒换APS状态处理方法的流程图,如图2所示,该流程包括如下步骤:
In this embodiment, an automatic protection switching APS state processing method is provided. FIG. 2 is a flowchart of an automatic protection switching APS state processing method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,确定自动保护倒换APS节点的节点状态为以下至少之一:APS节点发出反向请求RR码,并且接收到非信号失效SF和非信号劣化SD的反向请求码和除该APS节点之外的其他节点发出的RR码;APS节点发出反向请求RR码,并且在接收到信号失效SF和信号劣化SD的反向请求码和除该APS节点之外的其他节点发出的RR码之后,进入恢复等待WTR时间,且超过该WTR时间;Step S202, determining that the node status of the automatic protection switching APS node is at least one of the following: the APS node sends a reverse request RR code, and receives a reverse request code of the non-signal failed SF and the non-signal degraded SD and the APS node RR code sent by other nodes; the APS node sends a reverse request RR code, and after receiving the reverse request code of the signal failure SF and the signal degradation SD and the RR code sent by other nodes than the APS node, Entering recovery waits for WTR time and exceeds the WTR time;
步骤S204,撤消APS节点的倒换状态。In step S204, the switching state of the APS node is revoked.
通过上述步骤,依据节点状态判断APS节点是否处于死循环的需要撤消的状态,即判断节点状态是否满足预定条件,当APS节点发出反向请求RR码,并且接收到非信号失效SF和非信号劣化SD的反向请求码和除该APS节点之外的其他节点发出的RR码,或者确定了该APS节点发出反向请求RR码,并且在接收到信号失效SF和信号劣化SD的反向请求码和除该APS节点之外的其他节点发出的RR码之后,进入恢复等待WTR时间,且超过该WTR时间时,可以确定需要对APS节点执行倒换状态的变更处理,之后撤销该APS节点的倒换状态,相对于相关技术中,节点一直处于来回切换的循环,导致业务丢包。采用上述处理,不仅有效地解决了相关技术中的上述问题,而且在一定程度上节省了保护倒换的处理时间,提高了业务的稳定性的效果。Through the above steps, it is determined whether the APS node is in an infinite loop state according to the state of the node, that is, whether the node state satisfies a predetermined condition, when the APS node issues a reverse request RR code, and receives non-signal failure SF and non-signal degradation. The reverse request code of the SD and the RR code sent by other nodes than the APS node, or the reverse request code that the APS node issues the reverse request RR code and receives the signal failure SF and the signal degradation SD And after the RR code sent by the other node except the APS node, the recovery waits for the WTR time, and when the WTR time is exceeded, it may be determined that the APS node needs to perform the change process of the switching state, and then the switching state of the APS node is cancelled. Compared with the related art, the node is always in a loop of switching back and forth, resulting in packet loss of the service. The above processing not only effectively solves the above problems in the related art, but also saves the processing time of the protection switching to a certain extent, and improves the stability of the service.
优选地,在节点状态为APS节点发出反向请求RR码,并且接收到非信号失效SF和非信号劣化SD的反向请求码和除该APS节点之外的其他节点发出的RR码之后,还可以对APS节点是否检测到段层故障和/或接收到人工倒换操作命令,在该APS节点没有检测到段层故障和/或没有接收到人工倒换操作命令,才确定节点状态满足预定条件。Preferably, after the node status is a reverse request RR code for the APS node, and the reverse request code of the non-signal failure SF and the non-signal degraded SD and the RR code sent by other nodes than the APS node are received, Whether the APS node detects a segment layer fault and/or receives a manual switching operation command, and determines that the node state satisfies the predetermined condition after the APS node does not detect the segment layer fault and/or does not receive the manual switching operation command.
另外,在节点状态为APS节点发出反向请求RR码,并且接收到非SF和非SD的反向请求码和除该APS节点之外的其他节点发出的RR码的情况下,确定节点状态满足预定条件时,可以确定以下内容:确定APS节点在短径上接收到反向请求码,在长径上接收到非SF和非SD的反向请求码。In addition, when the node status is a reverse request RR code for the APS node, and the non-SF and non-SD reverse request code and the RR code sent by other nodes than the APS node are received, it is determined that the node status is satisfied. When the condition is predetermined, the following can be determined: it is determined that the APS node receives the reverse request code on the short path, and receives the non-SF and non-SD reverse request code on the long path.
以及,在节点状态为APS节点发出反向请求RR码,并且接收到SF和SD的反向请求码和除该APS节点之外的其他节点发出的RR码的情况下,确定节点状态满足预定条件时,可以确定以下内容:确定APS节点在短径上接收到反向请求码,在长径上接收到SF和SD的反向请求码。And, when the node status is a reverse request RR code for the APS node, and the reverse request code of the SF and the SD and the RR code sent by the other node except the APS node are received, determining that the node status satisfies the predetermined condition At this time, the following can be determined: it is determined that the APS node receives the reverse request code on the short path, and receives the reverse request code of the SF and the SD on the long path.
撤消APS节点的倒换状态可以是将APS节点的倒换状态切换到空闲状态。
The undoing state of the APS node may be to switch the switching state of the APS node to the idle state.
在本实施例中还提供了一种自动保护倒换APS状态处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, an automatic protection switching APS state processing device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图3是根据本发明实施例的自动保护倒换APS状态处理装置的结构框图,如图3所示,该装置包括第一确定模块32和撤消模块34,下面对该装置进行说明。3 is a block diagram showing the structure of an automatic protection switching APS state processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a first determining module 32 and an undoing module 34, which will be described below.
第一确定模块32,设置为确定自动保护倒换APS节点的节点状态为以下至少之一:APS节点发出反向请求RR码,并且接收到非信号失效SF和非信号劣化SD的反向请求码和除该APS节点之外的其他节点发出的RR码;APS节点发出反向请求RR码,并且在接收到信号失效SF和信号劣化SD的反向请求码和除该APS节点之外的其他节点发出的RR码之后,进入恢复等待WTR时间,且超过该WTR时间;撤消模块34,连接至上述第一确定模块32,设置为撤消APS节点的倒换状态。The first determining module 32 is configured to determine that the node status of the automatic protection switching APS node is at least one of the following: the APS node sends a reverse request RR code, and receives a reverse request code of the non-signal failure SF and the non-signal degradation SD. An RR code sent by a node other than the APS node; the APS node issues a reverse request RR code, and a reverse request code that receives the signal failure SF and the signal degradation SD and other nodes other than the APS node After the RR code, the recovery waits for the WTR time and exceeds the WTR time; the undo module 34 is connected to the first determining module 32, and is set to undo the switching state of the APS node.
图4是根据本发明实施例的自动保护倒换APS状态处理装置的优选结构框图,如图4所示,该装置除包括图3所示的模块外,还包括第二确定模块42,下面对该第二确定模块42进行说明。4 is a block diagram of a preferred structure of an automatic protection switching APS state processing apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes a second determining module 42 in addition to the module shown in FIG. The second determining module 42 is described.
第二确定模块42,连接至上述第一确定模块32和撤销模块34,设置为在节点状态为APS节点发出反向请求RR码,并且接收到非信号失效SF和非信号劣化SD的反向请求码和除该APS节点之外的其他节点发出的RR码之后,确定在APS节点没有检测到段层故障和/或没有接收到人工倒换操作命令。The second determining module 42 is connected to the first determining module 32 and the undoing module 34, and is configured to issue a reverse request RR code for the APS node in the node state, and receive a reverse request of the non-signal failure SF and the non-signal degradation SD. After the code and the RR code sent by other nodes than the APS node, it is determined that no segment fault is detected at the APS node and/or no manual switching operation command is received.
图5是根据本发明实施例的自动保护倒换APS状态处理装置中第一确定模块32的优选结构框图一,如图5所示,该第一确定模块32包括第一确定单元52,下面对该第一确定单元52进行说明。FIG. 5 is a block diagram of a preferred structure of the first determining module 32 in the automatic protection switching APS state processing apparatus according to the embodiment of the present invention. As shown in FIG. 5, the first determining module 32 includes a first determining unit 52. The first determining unit 52 is explained.
第一确定单元52,设置为确定APS节点在短径上接收到除该APS节点之外的其他节点发出的RR码,在长径上接收到非SF和非SD的反向请求码。The first determining unit 52 is configured to determine that the APS node receives the RR code sent by other nodes than the APS node on the short path, and receives the non-SF and non-SD reverse request codes on the long path.
图6是根据本发明实施例的自动保护倒换APS状态处理装置中第一确定模块32的优选结构框图二,如图6所示,该第一确定模块32包括第二确定单元62,下面对该第二确定62进行说明。FIG. 6 is a block diagram of a preferred structure of the first determining module 32 in the automatic protection switching APS state processing apparatus according to the embodiment of the present invention. As shown in FIG. 6, the first determining module 32 includes a second determining unit 62. This second determination 62 is described.
第二确定单元62,设置为确定APS节点在短径上接收到除该APS节点之外的其他节点发出的RR码,在长径上接收到SF和SD的反向请求码。
The second determining unit 62 is configured to determine that the APS node receives the RR code sent by other nodes than the APS node on the short path, and receives the reverse request code of the SF and the SD on the long path.
图7是根据本发明实施例的自动保护倒换APS状态处理装置中撤消模块34的优选结构框图,如图7所示,该撤消模块34包括:切换单元72,下面对该切换单元72进行说明。FIG. 7 is a block diagram showing a preferred structure of the undo module 34 in the automatic protection switching APS state processing apparatus according to the embodiment of the present invention. As shown in FIG. 7, the undo module 34 includes: a switching unit 72, and the switching unit 72 is described below. .
切换单元72,设置为将APS节点的倒换状态切换到空闲状态。The switching unit 72 is configured to switch the switching state of the APS node to the idle state.
图8是根据本发明实施例的自动保护倒换APS节点的结构框图,如图8所示,该APS节点80包括上述任一项APS状态处理装置82。FIG. 8 is a structural block diagram of an automatic protection switching APS node according to an embodiment of the present invention. As shown in FIG. 8, the APS node 80 includes any one of the APS state processing devices 82 described above.
针对相关技术中,节点的APS状态不稳定导致的倒换状态来回切换的问题,提出一种提高环网保护状态稳定性方案。该方案的主要内容包括:Aiming at the problem that the switching state of the node is switched back and forth caused by the unstable APS state of the node in the related art, a scheme for improving the stability of the ring network protection state is proposed. The main contents of the program include:
1,《分组传送网(PTN)设备技术要求》所描述的环网保护倒换APS状态机的描述。1. Description of the ring network protection switching APS state machine described in "Technical Requirements for Packet Transport Network (PTN) Equipment".
2,如果节点收到非SF和SD的反向请求码,并且本身也同时发出反向请求码,则撤销本节点的原来的倒换状态。2. If the node receives the reverse request code of non-SF and SD, and also sends the reverse request code itself, the original switching state of the node is cancelled.
3,如果节点收到SF和SD的反向请求码,并且本身也同时发出反向请求码,则应该进入WTR时间,并在WTR时间结束后撤销本节点的倒换状态。3. If the node receives the reverse request code of SF and SD, and also sends the reverse request code itself, it should enter the WTR time and cancel the switching state of the node after the WTR time ends.
下面结合实例进行说明。The following description will be made with reference to examples.
该提高环网保护状态稳定方案包括以下步骤:The method for improving the ring network protection state stability includes the following steps:
拓扑图简单如下:A(西向)——(东向)B(西向)——(东向)C(西向)——(东向)A。The topology map is as follows: A (westward) - (eastward) B (westward) - (eastward) C (westward) - (eastward) A.
第一步,在A的西向下发保护闭锁;B的东向下发强制倒换。In the first step, the protection is blocked in the west of A; the forced downward switching is performed in the east of B.
由于保护闭锁优先级高,所以此时A点上APS协议状态为保护闭锁;B上面APS协议状态为保护闭锁。Because the protection blocking priority is high, the APS protocol status at point A is protection blocking; the APS protocol status on B is protection blocking.
第二步,状态稳定后,此时A的西向和东向都应该发送保护闭锁的请求码,B在东向短径应答RR,西向长径发送LP请求码。In the second step, after the state is stable, the west and east directions of A should send a request code for protection lockout. B responds to the RR in the east direction and sends the LP request code to the west long path.
第三步,某个时刻,B点的保护锁定APS字节刚好送出,报文尚未送达A;此时A点用户取消LP设置,发出无请求码。
The third step, at some point, the protection point A of the point B is just sent out, the message has not been delivered to A; at this time, the user at point A cancels the LP setting and issues a no-request code.
第四步,A西向收到RR码,东向收到LP码,再次进入保护锁定状态;B收到A送过来的无请求码,此时配置的FS优先级最高,进入强制倒换状态。In the fourth step, the A receives the RR code in the west direction, receives the LP code in the east direction, and enters the protection lock state again. B receives the no-request code sent by A. The FS priority is the highest and the forced switching state is entered.
第五步,A西向发出RR码,东向发出LP;B东向发出FS,西向发出FS。In the fifth step, A sends the RR code to the west and LP to the east; B sends the FS to the east and FS to the west.
第六步,A节点西向收到RR码,东向收到FS码,此时根据模块2,撤销保护锁定状态,进入无倒换状态;B此时东向收到RR码,西向收到LP码,此时重新计算倒换状态,依然保持强制倒换状态。In the sixth step, the A node receives the RR code in the west direction and receives the FS code in the east direction. At this time, according to the module 2, the protection lock state is revoked and the non-switching state is entered; B receives the RR code in the east direction and receives the LP code in the west direction. At this time, the switching state is recalculated and the forced switching state is still maintained.
第七步,AB再次收到对方发出的APS之后,A节点西向发出RR码,东向发出FS;B的东向发出FS,西向发出FS。In the seventh step, after AB receives the APS sent by the other party again, the A node sends the RR code to the west and the FS to the east; B sends the FS to the east and FS to the west.
至此,环网倒换状态稳定为强制倒换状态。At this point, the ring network switching state is stable to the forced switching state.
通过上述实施例及优选实施方式,不仅解决了节点保护状态来回切换的问题,而且节省了保护倒换处理的时间,提高了业务的稳定性。The above embodiments and the preferred embodiments not only solve the problem that the node protection state is switched back and forth, but also save the protection switching time and improve the stability of the service.
下面附图对本发明优选实施方式进行说明。The following drawings illustrate preferred embodiments of the invention.
图9是根据本发明优选实施方式的倒换状态到空闲状态迁移的流程图,如图9所示,该流程包括如下步骤:9 is a flow chart of a transition state to an idle state transition according to a preferred embodiment of the present invention. As shown in FIG. 9, the flow includes the following steps:
步骤S902,判断WTR是否超时,如果WTR超时,应该放弃桥接和倒换,迁移到空闲态,并向东西向发出NR请求码。In step S902, it is determined whether the WTR is timed out. If the WTR times out, the bridge and the switchover should be abandoned, the transition to the idle state, and the NR request code be sent to the east-west direction.
步骤S904,判断外部发起的人工倒换命令是否被清楚,如果外部发起的人工倒换命令被清除,应该放弃桥接和倒换,迁移到空闲态,并向东西向发出NR请求码。In step S904, it is judged whether the externally initiated manual switching command is clear. If the externally initiated manual switching command is cleared, the bridge and the switching should be abandoned, the transition to the idle state, and the NR request code be sent to the east-west direction.
步骤S906,判断在东西向是否都收到NR请求,如果在东西向都收到NR请求,应该放弃桥接和倒换,迁移到空闲态,并向东西向发出NR请求码。In step S906, it is determined whether the NR request is received in the east-west direction. If the NR request is received in the east-west direction, the bridge and the switchover should be abandoned, the transition to the idle state, and the NR request code be sent to the east-west direction.
步骤S908,判断是否收到自己发出的APS请求,如果在东向或西向收到自己发出的APS请求,并判断同时有没有收到其他的APS请求。In step S908, it is determined whether the APS request sent by itself is received, and if the APS request sent by itself is received in the east or west direction, it is determined whether another APS request has been received at the same time.
步骤S910,如果同时没有收到其它的APS请求时,应该立刻迁移到空闲态,并且向东西向发出NR请求码。Step S910, if no other APS request is received at the same time, it should immediately migrate to the idle state and issue an NR request code to the east-west direction.
步骤S912,如果收到其他APS请求,根据当前收到的最高的APS请求来动作。
Step S912, if another APS request is received, the action is performed according to the highest received APS request currently received.
步骤S914,节点在短径上收到RR码,长径收到非SF/SD的倒换码,如果此时节点没有检测到段层故障,也没有收到外部的人工操作命令,那么进入到空闲状态,发出NR码。Step S914, the node receives the RR code on the short path, and receives the non-SF/SD switching code in the long path. If the node does not detect the segment layer fault at this time, and does not receive the external manual operation command, then the node enters the idle state. Status, issued NR code.
步骤S916,如果在短径上收到RR码,长径收到SF/SD的倒换码,则不应该撤销倒换,而是进入到WTR状态。In step S916, if the RR code is received on the short path and the SF/SD switching code is received in the long path, the switching should not be cancelled, but the WTR state is entered.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,通过上述实施例及优选实施方式,解决了相关技术中存在的节点的APS状态在不同倒换状态中来回切换,导致业务丢包,影响到业务稳定的问题,进而达到了节省了保护倒换的处理时间,提高了业务的稳定性的效果。
As described above, the foregoing embodiments and the preferred embodiments are provided to solve the problem that the APS state of the node in the related art is switched back and forth in different switching states, causing service packet loss and affecting service stability, thereby achieving protection. The processing time of the switching improves the stability of the business.