CN107800601B - Ring network switching protection method, device and system - Google Patents

Ring network switching protection method, device and system Download PDF

Info

Publication number
CN107800601B
CN107800601B CN201610807100.4A CN201610807100A CN107800601B CN 107800601 B CN107800601 B CN 107800601B CN 201610807100 A CN201610807100 A CN 201610807100A CN 107800601 B CN107800601 B CN 107800601B
Authority
CN
China
Prior art keywords
segment
node
wtr
segments
ring network
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.)
Active
Application number
CN201610807100.4A
Other languages
Chinese (zh)
Other versions
CN107800601A (en
Inventor
吕枝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610807100.4A priority Critical patent/CN107800601B/en
Priority to PCT/CN2017/097926 priority patent/WO2018045863A1/en
Publication of CN107800601A publication Critical patent/CN107800601A/en
Application granted granted Critical
Publication of CN107800601B publication Critical patent/CN107800601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method, a device and a system for protecting ring network switching, wherein the method comprises the following steps: acquiring segment values of all segments in a WTR switching state in a ring network during fault recovery, and determining a first node corresponding to the maximum segment value in the segment values of all the segments; and switching the second nodes corresponding to other segment values in the segment values of all the segments from the WTR switch state to the WTR punch-through state, wherein the other segment values are the segment values except the maximum segment value in the segment values of all the segments. The technical scheme of the invention solves the problems that in the related technology, when a plurality of nodes in the ring network all have instantaneous failure, the ring network switching fails and other unnecessary switching is triggered, thereby achieving the effect that only one node keeps the WTR switching state when the plurality of nodes in the ring network all have instantaneous failure, and avoiding the occurrence of the conditions of ring network switching failure and triggering other unnecessary switching.

Description

Ring network switching protection method, device and system
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, and a system for protecting ring network switching.
Background
After 3G has emerged, operators face unprecedented intense competition when a new round of communication technology wave comes, and the IP of the mobile backhaul network puts new requirements on a new generation of metro transport networks, wherein the carrier-level protection is an important index. High reliability is a basic requirement of telecommunication equipment and is a basic starting point for telecom operators to build networks. In a bearer network, the availability requirement of network equipment reaches 99.999%, which roughly corresponds to the time of equipment shutdown maintenance caused by various possible reasons in continuous operation of one year being less than 5 minutes. On the other hand, it is required to perform fast protection switching when a fault occurs, and especially, a switching time of less than 50ms is required for services such as voice sensitive to delay. Therefore, a protection method for Packet Transport Network (PTN) is particularly concerned nowadays.
The protection modes of the PTN comprise equipment level protection, network level protection and access link protection. In the network level protection, Label Switched Path/Pseudo wire (LSP/PW) linear protection, ring network protection, dual homing protection, and the like are included. In order to ensure high reliability, various protection schemes are proposed at present: such as linear superposition ring network protection, full ring network protection, etc. In the protection schemes, the service layer protection is single-ring network protection. And only when the looped network protection of the single loop is unsuccessful, triggering linear protection or protection of other loops. In order to ensure that the protection performance of the whole network can reach the performance requirement of 50ms, the ring network protection performance is very important to meet the requirement. When the ring network protection achieves the protection purpose, the operations such as linear protection or cross-ring protection and the like cannot be triggered. This can save the switching time and increase the switching performance.
In the related art, the ring network protection mode is basically a Wrapping mode. In this way, when a section fails, the flow to that section will be switched to the opposite direction, away from the defective section. As shown in FIG. 1, the working flow is Na-Nb-Nc-Nd in the normal state of the looped network, and as shown in FIG. 2, after the Nb-Nc section fails, the flow path is Na-Nb-Na-Nf-Ne-Nd-Nc-Nd.
Generally, in ring network protection, the protection path is a bidirectional ring tunnel. The working tunnel may be any segment on the ring. In order to allow for the up and down traffic on any node of the ring, a ring protection scheme has been proposed that shares a working tunnel. In this protection mode, the longest path on the ring is the shared working tunnel. Each traffic tunnel may be any segment of a shared working tunnel. As shown in fig. 3, the shared working tunnel is Na-Nb-Nc-Nd-Ne-Nf, and the traffic tunnels may be Nb-Nc-Nd, Nc-Nd-Ne-Nf, etc. If the traffic tunnel is Nd-Ne-Nf, the path of the traffic is Nd-Ne-Nf under normal conditions. After Nb-Nc, Ne-Nf failure, the service flow is infinitely circulated like Nd-Ne-Nd-Nc-Nd-Ne-Nd, etc., and the service is not available. Therefore, when a multi-point fault occurs, at present, no flow can be sent on an upper service node to avoid the occurrence of traffic congestion, but in order to enable the service to be recovered as soon as possible, only one segment is in a switching state as long as the service is recovered.
Within the present G8132 protocol, only high priority requests can override low priority requests. When multipoint fails, if one section of ordered recovery is performed, the last section of recovery can be in a switching state through message interaction. If the multi-point failure recovers at the same time, a situation that the multi-point enters the Wait To Recovery (WTR) at the same time may occur. In the related art, when a plurality of nodes in the ring network all have a transient interruption fault, the plurality of nodes are caused to maintain the WTR switching state, which causes the ring network switching failure and triggers unnecessary other switching.
In view of the above problems, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the invention provides a protection method, a device and a system for ring network switching, which are used for at least solving the problems that when a plurality of nodes in a ring network have instantaneous failure in the related art, the plurality of nodes keep WTR switching states, and then the ring network switching fails and unnecessary other switching is triggered.
According to an embodiment of the present invention, a method for protecting ring network switching is provided, including: acquiring segment values of all segments in a WTR switching state in a ring network during fault recovery, and determining a first node corresponding to the maximum segment value in the segment values of all the segments, wherein the segment value is used for indicating the size of each segment in the ring network; and switching a second node corresponding to other segment values in the segment values of all the segments from the WTR switching state to a WTR punch-through state, wherein the other segment values are segment values except the maximum segment value in the segment values of all the segments.
Optionally, the obtaining segment values of all segments in the ring network in the WTR switching state during fault recovery, and determining a first node corresponding to a maximum segment value in the segment values of all segments, includes: sequentially judging whether the third nodes corresponding to each section in all fault sections in the ring network are in the WTR switching state when the fault is recovered; determining a fourth node in the WTR switching state in the third node; and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
Optionally, when both the two segments connected to the third node recover from the failure, determining that the node state corresponding to the segment with the larger segment value in the two segments connected to the third node is the node state of the third node.
Optionally, each of the all segments includes a first endpoint and a second endpoint connected to two ends of the segment, where the first endpoint includes a first identifier unique to the whole network, and the second endpoint includes a second identifier unique to the whole network.
Optionally, before obtaining segment values of all segments in the ring network in the WTR switching state during fault recovery, the method further includes: determining a segment value for each segment based on the first identification of the first endpoint and the second identification of the second endpoint for that segment.
Optionally, the segment value of each segment is determined by the following formula:
V=MAX(NODE ID1×a+NODE ID2,NODE ID1+NODE ID2×a),
wherein MAX () represents taking the maximum value, V is the segment value of each segment, NODE ID1 is the first flag, NODE ID2 is the second flag, and a is a constant.
Optionally, the segment values of all segments in the ring network are obtained from a received Automatic Protection Switching (APS) message.
According to another embodiment of the present invention, a protection device for ring network switching is provided, which includes: a first processing module, configured to obtain segment values of all segments in a WTR switching state in a ring network during fault recovery, and determine a first node corresponding to a largest segment value of the segment values of all the segments, where the segment value is used to indicate a size of each segment in the ring network; a second processing module, configured to maintain the first node in the WTR switching state, and switch a second node corresponding to another segment value in the segment values of all the segments from the WTR switching state to a WTR pass-through state, where the another segment value is a segment value except for the maximum segment value in the segment values of all the segments.
Optionally, the first processing module is further configured to sequentially determine whether a third node corresponding to each of all fault segments in the ring network is in the WTR switching state when the fault is recovered; determining a fourth node in the WTR switching state in the third node; and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
Optionally, the apparatus further comprises: a determining module, configured to determine a segment value of each segment in the ring network according to a first identifier of a first end and a second identifier of a second end of each segment before obtaining the segment value of all segments in the WTR switching state in the ring network when the fault is recovered, where each segment includes the first end and the second end connected to both ends of the segment, the first end includes the first identifier unique to the entire network, and the second end includes the second identifier unique to the entire network.
According to another embodiment of the present invention, a protection system for ring network switching is provided, including: when a plurality of sections have faults, a designated node in the nodes is used for acquiring the section values of all the sections in a WTR switching state in the ring network during fault recovery and determining a first node corresponding to the largest section value in the section values of all the sections, wherein the section value is used for indicating the size of each section in the ring network; and switching a second node corresponding to other segment values in the segment values of all the segments from the WTR switching state to a WTR punch-through state, wherein the other segment values are segment values except the maximum segment value in the segment values of all the segments.
Optionally, the designated node is further configured to sequentially determine whether a third node corresponding to each of all fault segments in the ring network is in the WTR switching state when the fault is recovered; determining a fourth node in the WTR switching state in the third node; and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
Optionally, the designated node is further configured to determine, before obtaining segment values of all segments in the ring network in the WTR switching state when the fault is recovered, the segment value of each segment according to a first identifier of a first end point and a second identifier of a second end point of each segment in the all segments, where each segment includes the first end point and the second end point connected to both ends of the segment, the first end point includes the first identifier unique to the entire network, and the second end point includes the second identifier unique to the entire network.
According to still another embodiment of the present invention, there is also provided a storage medium. The storage medium is configured to store program code for performing the steps of: acquiring segment values of all segments in a WTR switching state in a ring network during fault recovery, and determining a first node corresponding to the maximum segment value in the segment values of all the segments, wherein the segment value is used for indicating the size of each segment in the ring network; and switching a second node corresponding to other segment values in the segment values of all the segments from the WTR switching state to a WTR punch-through state, wherein the other segment values are segment values except the maximum segment value in the segment values of all the segments.
Optionally, the storage medium is further arranged to store program code for performing the steps of: sequentially judging whether the third nodes corresponding to each section in all fault sections in the ring network are in the WTR switching state when the fault is recovered; determining a fourth node in the WTR switching state in the third node; and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and when the two sections connected with the third node are recovered from the fault, determining that the node state corresponding to the section with the larger value in the two sections connected with the third node is the node state of the third node.
Optionally, the storage medium is further arranged to store program code for performing the steps of: determining a segment value for each segment based on the first identification of the first endpoint and the second identification of the second endpoint for that segment.
Optionally, the storage medium is further arranged to store program code for performing the steps of: determining a segment value for each segment by:
V=MAX(NODE ID1×a+NODE ID2,NODE ID1+NODE ID2×a),
wherein MAX () represents taking the maximum value, V is the segment value of each segment, NODE ID1 is the first flag, NODE ID2 is the second flag, and a is a constant.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and acquiring the segment values of all the segments in the ring network from the received APS message.
Through the invention, because the segment values of all the segments in the WTR switching state in the ring network are obtained when the fault is recovered, the node corresponding to the maximum segment value in the segment values of all the segments is determined, the node is kept in the WTR switching state, and the nodes corresponding to other segment values are switched from the WTR switching state to the WTR through state, therefore, the problems that in the related technology, when a plurality of nodes in the ring network generate a transient interruption fault, a plurality of nodes keep the WTR switching state, the ring network is failed to switch and unnecessary other switching is triggered can be solved, the problem that only one node keeps the WTR switching state when the plurality of nodes in the ring network generate the transient interruption fault is achieved, and the effects of the ring network switching failure and the triggering of the unnecessary other switching are avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of a ring network in a normal state in the related art;
FIG. 2 is a schematic diagram of a ring network in a failure state protected by a Wrapping method in the related art;
fig. 3 is a schematic diagram of a ring network sharing a working tunnel in the related art;
fig. 4 is a schematic diagram of a network architecture for protection of ring network switching according to an embodiment of the present invention;
fig. 5 is a flowchart of a ring network switching protection method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the identification of nodes and segments in a ring network according to an embodiment of the present invention;
fig. 7 is a flowchart of a protection method for ring network switching according to an alternative embodiment of the present invention;
fig. 8 is a block diagram of a ring network switching protection device according to an embodiment of the present invention;
fig. 9 is a block diagram of a ring network switching protection device according to an alternative embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
For the purpose of understanding the embodiments of the present application, technical terms referred to in the embodiments of the present application are explained as follows:
the WTR switching state refers to: when the current segment fails and recovers, the node connected with the current segment is in a state;
the WTR punch-through state refers to: when the current segment is failed and then is recovered, the node which is not connected with the current segment is in the state.
Example 1
Fig. 4 is a schematic diagram of a network architecture for protection of ring network switching according to an embodiment of the present invention, as shown in fig. 4, the ring network includes a plurality of nodes, i.e., Na, Nb, Nc, Nd, Ne, and Nf, and a segment formed by paths between adjacent nodes in the nodes. When the Nb-Nc and Ne-Nf sections fail and recover from the failure, Nb, Nc, Ne, and Nf obtain the section value of the Nb-Nc section and the section value of the Ne-Nf section, and one or more nodes in Nb, Nc, Ne, and Nf compare the section values of the Nb-Nc and Ne-Nf sections, when the section value of Ne-Nf is greater than the Nb-Nc section value, Ne and Nf keep the WTR switching state, and Nb and Nc are switched from the WTR switching state to the WTR feedthrough state, or vice versa, and the embodiments of the present invention are not repeated.
In this embodiment, a protection method for ring network switching operating in the network architecture is provided, and fig. 5 is a flowchart of a protection method for ring network switching according to an embodiment of the present invention, as shown in fig. 5, the process includes steps S502 to S504, where:
step S502, acquiring segment values of all segments in a WTR switching state in the ring network during fault recovery, and determining a first node corresponding to the largest segment value in the segment values of all the segments, wherein the segment value is used for indicating the size of each segment in the ring network;
in an optional embodiment, the segment values of all segments in the ring network in the WTR switching state are acquired from the received APS message;
step S504, keep the first node in the WTR switching state, and switch the second node corresponding to the other segment values in the segment values of all the segments from the WTR switching state to the WTR pass-through state, where the other segment values are the segment values except the maximum segment value in the segment values of all the segments.
In this embodiment, since nodes are connected to both ends of each segment in the ring network, the first node refers to two end points connected to the segment with the largest segment value. The failure recovery refers to the recovery of the corresponding failure of the node and the segment after the segment fails. The main body of the above steps may be a node in the ring network, or the above steps may be executed by cooperation of a plurality of nodes, or a control device located at a third party other than the node, but is not limited thereto.
Through the steps, because the segment values of all the segments in the WTR switching state in the ring network are obtained when the fault is recovered, the node corresponding to the maximum segment value in the segment values of all the segments is determined, the node is kept in the WTR switching state, and the nodes corresponding to other segment values are switched from the WTR switching state to the WTR through state, therefore, the problems that in the related technology, when a plurality of nodes in the ring network all have instantaneous failure, a plurality of nodes keep the WTR switching state, the ring network switching fails and unnecessary other switching is triggered can be solved, the problem that only one node keeps the WTR switching state when a plurality of nodes in the ring network all have instantaneous failure is achieved, and the effects of ring network switching failure and triggering of unnecessary other switching are avoided.
In an alternative embodiment, in step S502, the first node corresponding to the largest segment value of the segment values of all the segments may be determined as follows: sequentially judging whether a third node corresponding to each section in all fault sections in the ring network is in a WTR switching state when the fault is recovered; determining a fourth node in a WTR switching state in the third node; and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node. In this embodiment, the node in the WTR pass-through state can be eliminated by first determining the state of the node in the ring network during the failure recovery, and only the node in the WTR switching state is compared, so that the processing procedure for determining the first node is greatly simplified, and then it is quickly and effectively ensured that only one node is in the WTR switching state, thereby avoiding the occurrence of the ring network switching failure and the triggering of unnecessary other switching.
In an optional embodiment, when both the two segments connected to the third node recover from the failure, it is determined that the node state corresponding to the segment with the larger segment value in the two segments connected to the third node is the node state of the third node. In this embodiment, when both the two segments connected to the third node are recovered from the failure, the two segments connected to the third node may be a west segment and an east segment, the third node compares whether the segment value of the west segment is greater than the segment value of the east segment, and only when the segment value of the west segment is greater than the segment value of the east segment, the state of the third node jumps to the node state of the west segment. Otherwise, the current state maintains the node state of the east segment. By comparing and judging the node states, the node states are ensured not to be incapable of being judged due to the difference of the segment values of the two segments connected with the node.
In an optional embodiment, each of the above-mentioned all segments includes a first endpoint and a second endpoint connected to both ends thereof, where the first endpoint includes a first identifier unique to the whole network, and the second endpoint includes a second identifier unique to the whole network. In this embodiment, each node in the ring network is marked with a unique identifier of the whole network, where the range of the identifier may be 1 to 127, and thus any one segment on the ring network may be uniquely identified by the identifiers of two nodes of the segment, as shown in fig. 6, the identifier of the node is a value in parentheses, such as Nf (127), 127 is an identifier of Nf, and the segment between nodes Na and Nf may be represented as (1, 127) or (127, 1). By the method, all nodes and sections among the nodes in the ring network can be marked, so that each node and section among the nodes in the ring network are effectively distinguished, and a foundation is laid for calculating the section value.
In an alternative embodiment, before step S502, the segment value of each segment may also be determined according to the first identifier of the first endpoint and the second identifier of the second endpoint. In this embodiment, since the first identifier and the second identifier are both unique in the entire network, the segment value of the segment determined according to the identifiers will not be repeated, and then the segment value can be used to determine the node state of the node.
In an alternative embodiment, the segment value for each segment is determined by the following formula:
V=MAX(NODE ID1×a+NODE ID2,NODE ID1+NODE ID2×a),
wherein, MAX () represents the maximum value, the above V is the segment value of each segment, NODE ID1 is the first flag, NODE ID2 is the second flag, and a is a constant.
In this embodiment, the value of a needs to satisfy the requirement that the segment value of any segment in the ring network calculated by the above formula is not repeated, and in this embodiment, the value of a may be 1000, but is not limited thereto. The segment value of the segment is effectively calculated according to the node and the segment in the identified ring network through the formula, but the formula is only an optional calculation mode of the invention and is not limited thereto.
In an optional embodiment, fig. 7 is a flowchart of a protection method for ring network switching according to an optional embodiment of the present invention, as shown in fig. 7, when Nb-Nc and Ne-Nf segments fail, the flowchart includes the following steps:
step S702, configuring identification for each node and segment in the ring network;
step S704, the Nb node senses the failure recovery, enters a WTR switching state and constructs an APS message of the WTR to be sent to Nc through the short-path Nb-Nc and the long-path Nb-Na-Nf-Ne-Nd-Nc;
step S706, the Nc node senses the failure recovery, enters a WTR switching state and constructs an APS message of the WTR to be sent to the Nb through the short-path Nc-Nb and the long-path Nc-Nd-Ne-Nf-Na-Nb;
step S708, the Ne node senses the failure recovery, enters a WTR switching state and constructs an APS message of the WTR to be sent to Nf through the short path Ne-Nf and the long path Ne-Nd-Nc-Nb-Na-Nf;
step S710, the Nf node senses the failure recovery, enters a WTR switching state and constructs an APS message of the WTR to be sent to Ne through a short-path Nf-Ne and a long-path Nf-Na-Nb-Nc-Nd-Ne;
step S712, Ne receives the APS message of long-path WTR sent from Nb to Nc, the current state of Ne is the WTR switching state, the segment value of the current segment is 127005, the segment value of the WTR request segment passing through is 3002, the passing through segment is smaller than the current segment, and the current node Ne maintains the original WTR switching state;
step S714, when Ne receives the APS message sent by Nc to Nb long-path WTR, the current state of Ne is the WTR switching state, the segment value of the current segment is 127005, the segment value of the passing-through WTR request segment is 3002, the passing-through segment is smaller than the current segment, and the current node Ne maintains the original WTR switching state;
step S716, Nf receives the APS message sent by Nc to the long-diameter WTR of Nb, the current state of Nf is the switching state of WTR, the segment value of the current segment is 127005, the segment value of the pass-through WTR request segment is 3002, the pass-through segment is smaller than the current segment, and the current node Nf maintains the original switching state of WTR;
step S718, Nf receives the APS message of the long-diameter WTR sent from Nb to Nc, the current state of Nf is the switching state of WTR, the segment value of the current segment is 127005, the segment value of the pass-through WTR request segment is 3002, the pass-through segment is smaller than the current segment, and the current node Nf maintains the original switching state of WTR;
step S720, Nb receives APS message of long diameter WTR sent by Ne to Nf, the current state of Nb is switching state of WTR, the segment value of the current segment is 3002, the segment value of the through WTR request segment is 127005, the through segment is larger than the current segment, the current node Nb is switched to WTR through state from WTR switching state;
step S722, Nb receives the APS message of the long-diameter WTR sent by Nf to Ne, the current state of Nb is the switching state of WTR, the segment value of the current segment is 3002, the segment value of the passing-through WTR request segment is 127005, the passing-through segment is larger than the current segment, and the current node Nb is switched from the WTR switching state to the WTR passing-through state;
step S724, Nc receives the APS message of the long-diameter WTR sent by Ne to Nf, Nc is currently in the switching state of WTR, the segment value of the current segment is 3002, the segment value of the punchthrough WTR request segment is 127005, the punchthrough segment is larger than the current segment, and the current node Nb is switched from the switching state of WTR to the punchthrough state of WTR;
in step S726, Nc receives the APS message of the long-path WTR sent by Nf to Ne, the current state of Nc is the switching state of WTR, the segment value of the current segment is 3002, the segment value of the punchthrough WTR request segment is 127005, the punchthrough segment is larger than the current segment, and the current node Nb is switched from the switching state of WTR to the punchthrough state of WTR.
In this embodiment, as shown in fig. 6, identifiers are configured for each node and segment in the ring network, steps S704 to S710 do not have a sequence, and may be executed sequentially or simultaneously, and steps S712 to S726 do not have a sequence, and may be executed sequentially or simultaneously, and optionally, after the nodes (e.g., Nb and Nc) perform WTR punch-through states, the comparison and/or handover process is not executed when APS packets of the long-diameter WTR are received. By executing the comparison and switching process in this embodiment, only the Ne-Nf section in the entire ring network is in the WTR switching state, and all other nodes are in the WTR through state, at this time, the ring network protection is effective, which solves the problem in the related art that when a plurality of nodes in the ring network all have a transient failure, the plurality of nodes keep the WTR switching state, which causes the ring network switching failure and triggers unnecessary other switching, and achieves the effect that when a plurality of nodes in the ring network all have a transient failure, only one node keeps the WTR switching state, thereby avoiding the occurrence of the ring network switching failure and triggering unnecessary other switching.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a protection device for ring network switching is further provided, where the protection device is used to implement the foregoing embodiments and preferred embodiments, and details of the foregoing description are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of a structure of a protection device for switching a ring network according to an embodiment of the present invention, and as shown in fig. 8, the protection device includes a first processing module 82, configured to obtain segment values of all segments in a WTR switching state in the ring network when a fault is recovered, and determine a first node corresponding to a maximum segment value in the segment values of all the segments, where the segment value is used to indicate a size of each segment in the ring network; the second processing module 84 is configured to keep the first node in the WTR switching state, and switch the second node corresponding to the other segment values in the segment values of all the segments from the WTR switching state to the WTR pass-through state, where the other segment values are the segment values except for the maximum segment value in the segment values of all the segments.
In an optional embodiment, the first processing module 82 is further configured to sequentially determine whether a third node corresponding to each of all fault segments in the ring network is in a WTR switching state when the fault is recovered; determining a fourth node in a WTR switching state in the third node; and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
In an optional embodiment, fig. 9 is a block diagram of a structure of a ring network switching protection device according to an optional embodiment of the present invention, and as shown in fig. 9, the device includes, in addition to all modules shown in fig. 8, further: a determining module 92, configured to determine a segment value of each segment in the ring network according to a first identifier of a first end and a second identifier of a second end of each segment in all the segments before obtaining the segment value of all the segments in the WTR switching state in the ring network during fault recovery, where each segment includes the first end and the second end connected to both ends of the segment, the first end includes a first identifier unique to the entire network, and the second end includes a second identifier unique to the entire network.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
In this embodiment, a protection system for ring network switching is further provided, where the system is used to implement the foregoing embodiments and preferred embodiments, and details of the system are not repeated, and a schematic diagram of the system may be the network architecture diagram shown in fig. 4, but is not limited thereto.
The protection system for switching the ring network comprises: a node in a ring network, a segment formed by paths between adjacent nodes in the node, wherein, when a plurality of segments have faults, a designated node in the node is used for acquiring segment values of all segments in a WTR switching state in the ring network when the faults are recovered, and determining a first node corresponding to the maximum segment value in the segment values of all the segments, wherein the segment value is used for indicating the size of each segment in the ring network; and switching the second nodes corresponding to other segment values in the segment values of all the segments from the WTR switch state to the WTR punch-through state, wherein the other segment values are the segment values except the maximum segment value in the segment values of all the segments.
In an optional embodiment, the designated node is further configured to sequentially determine whether a third node corresponding to each of all fault segments in the ring network is in a WTR switching state when the fault is recovered; determining a fourth node in a WTR switching state in the third node; and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
In an optional embodiment, the designated node is further configured to determine, before obtaining segment values of all segments in a WTR switching state in the ring network during fault recovery, the segment value of each segment according to a first identifier of a first end point and a second identifier of a second end point of each segment in all the segments, where each segment includes the first end point and the second end point connected to both ends of the segment, the first end point includes a first identifier unique to the entire network, and the second end point includes a second identifier unique to the entire network.
Example 4
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps: s1, acquiring segment values of all segments in a WTR switching state in the ring network during fault recovery, and determining a first node corresponding to the largest segment value in the segment values of all the segments, wherein the segment value is used for indicating the size of each segment in the ring network; s2, keep the first node in the WTR switching state, and switch the second node corresponding to the other segment values in the segment values of all the segments from the WTR switching state to the WTR pass-through state, wherein the other segment values are the segment values except the maximum segment value in the segment values of all the segments.
Optionally, the storage medium is further arranged to store program code for performing the steps of: s1, sequentially judging whether the third node corresponding to each section in all fault sections in the ring network is in a WTR switching state when the fault is recovered; s2, determining a fourth node in the WTR switching state in the third node; and S3, sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and when the two sections connected with the third node are recovered in fault, determining that the node state corresponding to the section with the larger value in the two sections connected with the third node is the node state of the third node.
Optionally, the storage medium is further arranged to store program code for performing the steps of: segment values for each segment are determined based on a first identification of a first endpoint and a second identification of a second endpoint for the segment.
Optionally, the storage medium is further arranged to store program code for performing the steps of: the segment value for each segment is determined by the following formula:
V=MAX(NODE ID1×a+NODE ID2,NODE ID1+NODE ID2×a),
where MAX () denotes a maximum value, V is a segment value of each segment, NODE ID1 is a first flag, NODE ID2 is a second flag, and a is a constant.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and acquiring segment values of all segments in the ring network from the received APS message.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. A protection method for ring network switching is characterized by comprising the following steps:
acquiring all segments in a WTR switching state in a ring network during fault recovery to indicate segment values of the size of each segment in the ring network, and determining a first node corresponding to the maximum segment value in the segment values of all the segments;
keeping the first node in the WTR switching state, and switching the second node corresponding to the other segment values in the segment values of all the segments from the WTR switching state to the WTR punch-through state, where the other segment values are the segment values except the maximum segment value in the segment values of all the segments;
the WTR switching state refers to a state of a node connected with a current segment when the current segment fails and is recovered; the WTR punch-through state refers to a state of a node which is not connected with the current segment when the current segment fails and recovers.
2. The method of claim 1, wherein obtaining segment values of all segments in a WTR switching state in a ring network during fault recovery, and determining a first node corresponding to a maximum segment value among the segment values of all the segments comprises:
sequentially judging whether the third nodes corresponding to each section in all fault sections in the ring network are in the WTR switching state when the fault is recovered;
determining a fourth node in the WTR switching state in the third node;
and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
3. The method according to claim 2, wherein when both of the two segments connected to the third node are recovered from the failure, it is determined that the node state corresponding to the segment with the larger value in the two segments connected to the third node is the node state of the third node.
4. The method of claim 1, wherein each of the all segments comprises a first endpoint and a second endpoint connected to two ends of the segment, wherein the first endpoint comprises a first network-wide unique identifier and the second endpoint comprises a second network-wide unique identifier.
5. The method of claim 4, wherein before obtaining the segment values of all segments in the ring network in the WTR switching state at the time of failure recovery, the method further comprises: determining a segment value for each segment based on the first identification of the first endpoint and the second identification of the second endpoint for that segment.
6. The method of claim 5, wherein the segment value for each segment is determined by the following formula:
MAX (NODE ID1 × a + NODE ID2, NODE ID1+ NODE ID2 × a), where MAX () represents the maximum value, V is the segment value of each segment, NODE ID1 is the first marker, NODE ID2 is the second marker, and a is a constant.
7. The method according to claim 1, wherein the segment values of all segments in the ring network are obtained from the received APS messages.
8. A protection device for ring network switching is characterized by comprising:
a first processing module, configured to obtain segment values, which are used to indicate the size of each segment in a ring network, of all segments in a WTR switching state in the ring network when a fault is recovered, and determine a first node corresponding to a maximum segment value in the segment values of all the segments;
a second processing module, configured to maintain the first node in the WTR switching state, and switch a second node corresponding to another segment value in the segment values of all the segments from the WTR switching state to a WTR pass-through state, where the another segment value is a segment value except the maximum segment value in the segment values of all the segments;
the WTR switching state refers to a state of a node connected with a current segment when the current segment fails and is recovered; the WTR punch-through state refers to a state of a node which is not connected with the current segment when the current segment fails and recovers.
9. The apparatus according to claim 8, wherein the first processing module is further configured to sequentially determine whether a third node corresponding to each of all fault segments in the ring network is in the WTR switching state when the fault is recovered; determining a fourth node in the WTR switching state in the third node; and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
10. The apparatus of claim 8, further comprising: a determining module, configured to determine a segment value of each segment in the ring network according to a first identifier of a first end and a second identifier of a second end of each segment before obtaining the segment value of all segments in the WTR switching state in the ring network when the fault is recovered, where each segment includes the first end and the second end connected to both ends of the segment, the first end includes the first identifier unique to the entire network, and the second end includes the second identifier unique to the entire network.
11. A protection system for switching a ring network is characterized by comprising: when a plurality of sections fail, a designated node in the nodes is used for acquiring all sections in a WTR switching state in the ring network when the failure is recovered, and is used for indicating the section value of each section in the ring network, and determining a first node corresponding to the maximum section value in the section values of all the sections; keeping the first node in the WTR switching state, and switching the second node corresponding to the other segment values in the segment values of all the segments from the WTR switching state to the WTR punch-through state, where the other segment values are the segment values except the maximum segment value in the segment values of all the segments;
the WTR switching state refers to a state of a node connected with a current segment when the current segment fails and is recovered; the WTR punch-through state refers to a state of a node which is not connected with the current segment when the current segment fails and recovers.
12. The system according to claim 11, wherein the designated node is further configured to sequentially determine whether a third node corresponding to each of all fault segments in the ring network is in the WTR switching state when the fault is recovered; determining a fourth node in the WTR switching state in the third node; and sequentially comparing the segment values of the fourth nodes, and taking the node corresponding to the maximum segment value in the segment values of the fourth nodes as the first node.
13. The system according to claim 11, wherein the designated node is further configured to determine, before obtaining the segment value of all segments in the ring network in the WTR switching state at the time of the failure recovery, the segment value of each segment according to a first identifier of a first end point and a second identifier of a second end point of each segment in the all segments, where each segment includes the first end point and the second end point connected to both ends thereof, the first end point includes the first identifier unique to the whole network, and the second end point includes the second identifier unique to the whole network.
CN201610807100.4A 2016-09-06 2016-09-06 Ring network switching protection method, device and system Active CN107800601B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610807100.4A CN107800601B (en) 2016-09-06 2016-09-06 Ring network switching protection method, device and system
PCT/CN2017/097926 WO2018045863A1 (en) 2016-09-06 2017-08-17 Ring network switching protection method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610807100.4A CN107800601B (en) 2016-09-06 2016-09-06 Ring network switching protection method, device and system

Publications (2)

Publication Number Publication Date
CN107800601A CN107800601A (en) 2018-03-13
CN107800601B true CN107800601B (en) 2021-10-29

Family

ID=61530693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610807100.4A Active CN107800601B (en) 2016-09-06 2016-09-06 Ring network switching protection method, device and system

Country Status (2)

Country Link
CN (1) CN107800601B (en)
WO (1) WO2018045863A1 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1129261C (en) * 1999-07-15 2003-11-26 华为技术有限公司 Protective reversing and detecting method of synchronously triggered multiplexing band under multiple securities mechanism
CN100589353C (en) * 2004-07-20 2010-02-10 中兴通讯股份有限公司 Automatic protection switching method of two-fibre ring SDH system
CN101141364A (en) * 2006-09-07 2008-03-12 华为技术有限公司 Method and device for implementing protection rearrangement in ring ethernet
CN101453264A (en) * 2007-12-04 2009-06-10 华为技术有限公司 Self-healing protection method and apparatus for optical network
CN101626272B (en) * 2008-07-10 2013-03-20 中兴通讯股份有限公司 Method for realizing error connection prevention in optical network
CN101599798B (en) * 2009-07-02 2012-10-10 中兴通讯股份有限公司 Method and device for processing multi-span section working channel fault in annular optical transport network
WO2011080829A1 (en) * 2009-12-28 2011-07-07 富士通株式会社 Switching method of optical transport ring network and node device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Fiber Fault Management and Protection Solution for Ring-and-Spur WDM/TDM Long-Reach PON;Maged Abdullah Esmail,Habib Fathallah;《2011 IEEE Global Telecommunications Conference》;20120119;全文 *
分组传送网(PTN)断路保护机制研究;赵晓春;《中国优秀硕士学位论文全文数据库》;20150715;全文 *

Also Published As

Publication number Publication date
CN107800601A (en) 2018-03-13
WO2018045863A1 (en) 2018-03-15

Similar Documents

Publication Publication Date Title
US11134029B2 (en) Communication method, communications device, and storage medium
EP2364539B1 (en) A system and method of implementing lightweight not-via ip fast reroutes in a telecommunications network
US8797845B2 (en) Failure recovery method in non revertive mode of ethernet ring network
US7042838B1 (en) Method and apparatus for forwarding data in a data communications network
US20070223368A1 (en) Failure recovery method and node, and network
EP2467973B1 (en) Method and means for state transition of Ethernet linear protection switching
CN103490921B (en) Network protection method, device, lower link point and system
CN112822102B (en) Link switching method, device, equipment, system and storage medium
CN106453074A (en) Switching method and apparatus
US10164823B2 (en) Protection method and system for multi-domain network, and node
CN110138656B (en) Service processing method and device
CN107800601B (en) Ring network switching protection method, device and system
JP2022512470A (en) Communication method and equipment
CN115152192B (en) PCE controlled network reliability
CN103248508A (en) Port protecting method, device and system
US11490178B2 (en) Method for establishing service path, network device, and system
EP2566114B1 (en) Method and network equipment for dynamically adjusting switching loop
US10756813B1 (en) Broadband subscriber switchover in a ring network
EP2919405B1 (en) Mesh protection method and device
CN106941436B (en) Message transmission method and device
KR20160025960A (en) Control switch method for solving problem of controller in software defined network
CN106921568B (en) Network protection method and device
WO2017059733A1 (en) Method and apparatus for avoiding traffic storm caused by network sharing ring protection
CN107528759B (en) Service processing method, service ring-out node and ring network
CN109218135B (en) BFD detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20180417

Address after: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant after: ZTE Corporation

Address before: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant before: Nanjing Zhongxing Software Co., Ltd.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant