[go: up one dir, main page]

WO2013044741A1 - Method and apparatus for fault handling in ring topology network and routing device - Google Patents

Method and apparatus for fault handling in ring topology network and routing device Download PDF

Info

Publication number
WO2013044741A1
WO2013044741A1 PCT/CN2012/081566 CN2012081566W WO2013044741A1 WO 2013044741 A1 WO2013044741 A1 WO 2013044741A1 CN 2012081566 W CN2012081566 W CN 2012081566W WO 2013044741 A1 WO2013044741 A1 WO 2013044741A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
ring topology
topology network
fault
fault message
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.)
Ceased
Application number
PCT/CN2012/081566
Other languages
French (fr)
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2013044741A1 publication Critical patent/WO2013044741A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • 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

Definitions

  • the present invention relates to the field of communications, and in particular, to a fault processing method, apparatus, and routing device for a ring topology network. Background technique
  • the ring topology network has the characteristics of simple networking, easy deployment, and backup links, the ring topology is often used for networking in actual network deployment.
  • ring network technologies such as Resilient Packet Ring (RPR) can provide fast failover switching
  • IP/Ethernet rings are rapidly evolving due to their price and versatility. Network technology instead.
  • the fault processing method of the ring topology network is a Loop Free Alternate (LFA) solution, which can pre-calculate a loop-free backup path for a network topology that meets specific conditions. Thereby achieving a fast protection switching at the time of failure.
  • LFA Loop Free Alternate
  • the embodiment of the present invention provides a fault processing method, a device, and a routing device for a ring topology network.
  • the embodiment of the present invention provides a fault processing method for a ring topology network, where the method includes: whether data forwarding between devices fails;
  • the node R1 and/or the node R2 transfer the fault message along the non-faulty link to the next next node until the ring is reached.
  • a sink node R c and a sink node R C 2 on the topology network, the sink node R c and the sink node are used to terminate the fault message.
  • the node R on the ring topology network receives the fault message sent by the node R1 that detects the data forwarding failure;
  • the node R sends the fault message to the neighboring node of the node R in the same direction as the direction in which the node R1 sends the fault message until the fault message reaches the ring topology Aggregation nodes on the network!
  • a sink node R, the sink node R c and the sink node are configured to forward traffic on the ring topology network to the outside of the ring topology network or to send traffic outside the ring topology network to the The fault message is forwarded and terminated on the ring topology network.
  • a fault detection module configured to detect whether a data forwarding between the node R1 and the node R2 is faulty
  • the fault message sending module is configured to: if the fault detecting module detects that the data forwarding between the node R1 and the node R2 is faulty, move the fault message along the non-faulty link to the node R1 and/or the node The next node of R2 passes until it reaches the sink node R c and the sink node R on the ring topology network, and the sink node R c and the sink node are used to terminate the fault message.
  • the embodiment of the present invention provides a routing device, where the routing device includes the foregoing embodiment.
  • Fault processing device for a ring topology network Fault processing device for a ring topology network.
  • the fault message receiving module is configured to receive a fault message sent by the node R1 that detects the data forwarding fault
  • a fault message delivery module configured to send the fault message received by the fault message receiving module to the neighboring node of the node R in the same direction as the direction in which the node R1 sends the fault message, Until the fault message arrives at the aggregation node on the ring topology network!
  • a sink node R, the sink node R c and the sink node are configured to forward traffic on the ring topology network to the outside of the ring topology network or to send traffic outside the ring topology network to the The fault message is forwarded and terminated on the ring topology network.
  • the embodiment of the present invention provides a routing device, where the routing device includes the fault processing device of the ring topology network provided by the foregoing embodiment.
  • the node R1 and/or the node R2 that fails due to data forwarding can transmit the fault message along the non-faulty link to the next next node until the fault message reaches the ring topology network.
  • the protection switching can be initiated in a short time when the network is faulty.
  • FIG. 1 is a schematic diagram of a loop-free backup path from a source node to a destination node in a ring topology network provided by the prior art
  • FIG. 2 is a schematic flowchart of a fault processing method of a ring topology network according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of fault message transmission when a link of a ring topology network according to an embodiment of the present invention fails
  • FIG. 4 is a schematic flow chart of a fault processing method for a ring topology network according to another embodiment of the present invention.
  • FIG. 6a is a schematic structural diagram of a fault processing apparatus of a ring topology network according to an embodiment of the present invention
  • FIG. 6b is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention.
  • the process diagram mainly includes the steps:
  • any neighboring nodes R1 and/or R2 on the ring topology network detect whether the data forwarding between the node R1 and the node R2 is faulty.
  • the existing LFA scheme has specific requirements for the network topology. As shown in Figure 1, it is assumed that the source node of the data stream is S, the destination node is D, and N is a neighbor node of S. DDistance— opt ( ) indicates the shortest distance between the two nodes (ie, the minimum path cost), then only the shortest distance between the nodes in the network topology satisfies Distance— opt ( N, D ) ⁇ Distance — opt (N , S ) + Distance— opt ( S, D ), the path from the source node S to the destination node D has a loop-free backup path, that is, the loop-free backup path is from the source node S to the node N. Then from node N to destination node D.
  • the computing node calculates the source node S to the destination node according to the path cost value (the number next to the link (ie, the straight line in the figure)).
  • the shortest path of D is SED, and the next hop of the primary path is node E.
  • the loop-free backup path judgment formula that is, Distance_opt (N, D) ⁇ Distance_opt (N, S) + Distance- opt (S, D)
  • the distance from node N to node D is 3, which is smaller than the sum of the shortest path (8) of NS and the shortest path (9) of SD.
  • the fault processing method of the ring topology network is applicable to a ring topology network in which all neighboring nodes can detect data forwarding failures.
  • the node R1 and/or the node R2 transmit the fault message along the non-faulty link to the next next node until the next node Arrive at the aggregation node on the ring topology network! ⁇ and sink node R.
  • the convergence node R C and the aggregation node on the ring topology network are mainly used to forward the traffic sent by other nodes on the ring topology network to the ring topology network, or The traffic outside the ring topology network is transferred to other nodes on the ring topology network. hair.
  • the ring topology network shown in Figure 3 (arrow indicates the direction of fault message transmission)
  • data forwarding between node R1 and node R2 fails, node R1 and/or node R2 will follow the failure message along the failure.
  • the links are passed next to the respective next node until reaching the sink node R c and the sink node R on the ring topology network, or the nodes R1 and R2 pass the fault message from both directions until reaching the convergence on the ring topology network Node R c and sink node R C 2 .
  • the node R1 delivers the fault message along the non-faulty link to its next node R3, and the node R3 also transmits the received fault message to its next node R4, which is ...
  • node after node R4 repeats the same action until the fault message is delivered to the sink node Rc ; likewise, node R2 also passes the fault message along the non-faulty link to its next next node R6, node R6
  • the received fault message is passed to its next node R7, and the node following node R7 repeats the same action until the fault message is delivered to the sink node R.
  • Convergence node! ⁇ and the sink node terminates the fault message after receiving the fault message, that is, the sink node! ⁇ and the aggregation node no longer continue to pass fault messages to other nodes on the ring topology network.
  • the sink node R c and the sink node terminate the fault message coming from two directions, that is, equivalent to the sink node R c (or the sink node R ) and the ring extension Node R1 (or node R2) on the network is bounded, and the ring topology network is divided into left and right halves.
  • the nodes on each ring topology network will only receive fault messages from one side of the ring topology network. , to quickly notify the fault information somewhere on the ring topology network to all nodes on the ring topology network.
  • the node R1 and/or the node R2 that are faulty due to data forwarding can move the fault message along the non-faulty link to the next next node. Pass until the fault message reaches the aggregation node on the ring topology network! ⁇ and sink node R. Therefore, the fault processing method of the ring topology network provided by the embodiment of the present invention can quickly notify the fault message hop by hop on the ring topology network, and the nodes on the ring topology network can quickly learn the fault, so that the ring topology can be satisfied. The protection switching can be initiated in a short time when the network is faulty.
  • each node on the ring topology network (including the adjacent nodes R1 and R2 in which the link fails in the foregoing embodiment) can be pre-computed to the destination node (in FIG. 3, the sink node R c and the sink node R) Backup path, for example, assuming the primary port is faulty, calculating the backup path, etc., therefore,
  • the neighboring nodes R1 and R2 whose data forwarding fails may trigger a protection switching when the fault is detected, and switch the data transmission channel to the pre-calculated backup path.
  • any adjacent nodes R1 and R2 on the ring topology network may detect whether a link between the node R1 and the node R2 is connected through Bidirectional Forwarding Detection (BFD). malfunction.
  • BFD Bidirectional Forwarding Detection
  • the so-called two-way forwarding detection is a forwarding plane fault detection standard formulated by the Internet Engineering Task Force (IETF), which enables light load and universal forwarding plane fast fault detection.
  • the detection mechanism of the BFD is that the two nodes establish a BFD session and send BFD control packets periodically along the path between them. If a party does not receive BFD control packets within a specified period of time, the BFD session is considered to be on the path. A failure has occurred.
  • any neighboring nodes R1 and/or R2 on the ring topology network are detected
  • the node R1 or R2 detects whether the opposite end node of the link between the node R1 and the node R2 is faulty through BFD. If the node R2 fails, the node R1 will follow the failure message along the failure. The link is passed to the next node next to the node R1 until it reaches the sink node on the ring topology network! And the sink node R, or if the node R1 fails, the node R2 passes the fault message along the non-failed link to the next node immediately adjacent to the node R2 until it reaches the ring topology network. Convergence node! ⁇ and sink node R.
  • the method further includes: the any adjacent node R1 and R2 establish a BFD session between the R1 and the R2.
  • FIG. 4 it is a schematic flowchart of a fault processing method for a ring topology network according to another embodiment of the present invention, which mainly includes the following steps:
  • the node R on the ring topology network receives the fault message sent by the node R1 that detects the data forwarding failure.
  • the node R1 sends a fault message along the non-faulty link to the next node immediately adjacent to the node R1. Passing until reaching the sink node R c and the sink node R on the ring topology network, or if the node R1 fails, the node R2 sends a fault message along the non-faulty link to the node R2 The next node passes until it reaches the sink node R c and the sink node on the ring topology network.
  • the node R1 that detects the data forwarding failure may be a node adjacent to the node R, or may not be an adjacent node, that is, there are other nodes between the node R1 and the node R.
  • the fault message received by the node R is forwarded hop by hop by other nodes between the node R1 and the node R.
  • the convergence node R C and the aggregation node on the ring topology network are mainly used to forward the traffic sent by other nodes on the ring topology network to the ring topology network, or Traffic outside the ring topology network is forwarded to other nodes on the ring topology network.
  • the link between the node R1 and the node R2 fails, and the node R1 and the node R2 respectively follow the failure message along the chain that has not failed. The way is passed to the next next node, or node R1 and node R2 pass the fault message from both directions.
  • node R will receive a failure message transmitted by node R1 from clockwise direction.
  • the fault message also passes the fault message in a clockwise direction to its next next node R', and the node R' also passes the received fault message in a clockwise direction to its next next node R3, ....
  • the node after node R3 repeats the same action until the fault message is delivered to the sink node Rc ; likewise, assume that node R4 is immediately next node of node R2, and the link between node R4 and node R2 is not In the event of a failure, when the node R4 receives the fault message transmitted by the node R2 from the counterclockwise direction, the node R4 will also transmit the fault message in the counterclockwise direction to the next node R5 immediately adjacent thereto, and the node R5 will also receive the fault. The message is delivered in a counterclockwise direction to its next next node R6, and the node following node R6 repeats the same action until the fault message is passed to the sink node R ⁇ .
  • Convergence node! ⁇ and the sink node terminates the fault message after receiving the fault message, that is, the sink node! ⁇ and the aggregation node no longer continue to pass fault messages to other nodes on the ring topology network.
  • the way in which the fault message is transmitted from the node R1 and the node R2 and the convergence node R c and the sink node terminate the fault message can be seen, the sink node! ⁇ and the sink node terminates the fault message coming from both directions, that is, equivalent to the sink node R c (or Convergence node!
  • the fault message enables fast notification of fault information somewhere on the ring topology network to all nodes on the ring topology network.
  • the node R triggers protection switching while the node R receives the direction from the node R1 that detected the data forwarding failure to send the failure message to the neighboring node of the node R.
  • the so-called uplink traffic refers to the traffic sent by a node (for example, node R) on the ring topology network to the sink node R c or the sink node
  • the downlink traffic refers to the sink node.
  • Rc Wei sink node R ⁇ traffic sent to a node (for example, node R) on the ring topology network.
  • the node R triggers protection switching in the following manners. Manner 1: If the node R sends the uplink traffic before the fault occurs, and the direction in which the node R1 sends the fault message is opposite to the direction in which the node R sends the uplink traffic, the node R sends the uplink traffic. Switching to the same direction as the direction in which the node R1 sends the fault message, the uplink traffic is sent along the switched path. For example, if the node R sends the upstream traffic in the counterclockwise direction before the fault occurs, the node R1 sends the fault message clockwise.
  • the node R determines that the path for transmitting the upstream traffic in the counterclockwise direction has failed. At this time, the node R switches the transmission direction of the uplink traffic to the clockwise direction, and sends the uplink traffic along the switched path, that is, according to The uplink traffic is sent in a clockwise direction, thereby implementing fast protection switching of uplink traffic.
  • the node R3 sends the upstream traffic in the clockwise direction before the fault occurs, the node R1 also sends the fault message clockwise, because the direction of the uplink traffic sent by the node R3 and the direction of the fault message sent by the receiving node R1. Similarly, the node R3 determines that the path for transmitting the upstream traffic in the clockwise direction does not fail. At this time, the node R3 does not need to initiate protection switching, that is, the node R3 still transmits the upstream traffic in a clockwise direction.
  • the method provided by the embodiment of the present invention can implement the loop-free forwarding of the traffic. . Manner 2: If the node R sends the destination address and the node Ri, the downlink traffic source address of the same uplink traffic, and receives the uplink traffic sent by the node Ri before the fault occurs, the node R The outbound interface of the downlink traffic is changed to the inbound interface of the uplink traffic, and the downlink traffic is sent on the path that the node Ri′ sends the uplink traffic.
  • the node R may check the uplink traffic sent by the received node Ri, and obtain the source address Adds of the uplink traffic sent by the node Ri.
  • the rce and the inbound interface ⁇ find the entry in the local (ie, node R) routing table and the forwarding table. If the destination address of the downstream traffic sent by the node R matches the node Ri, the source address of the uplink traffic sent is Adds. If the rce is the same, the outbound interface corresponding to the entry is changed to the node Ri, and the inbound interface of the sent upstream traffic is ⁇ ⁇ , that is, the outgoing interface of the downstream traffic sent by the node R becomes the node Ri, and the sent upstream traffic is sent. In the interface In ⁇ .
  • the node R continues to transmit the downlink traffic on the path that the node Ri sends the uplink traffic, that is, the path that the node R sends the downlink traffic is the same as the node Ri, and the path for sending the uplink traffic is the same.
  • the traffic is switched to the correct acyclic path (here, the node Ri is assumed, and the nodes along the upstream traffic have triggered the protection switching when the fault occurs, and the upstream traffic is switched to the backup path), then the downstream traffic can also pass the correct acyclic.
  • the path is forwarded.
  • the downlink traffic sent by the node R is the traffic sent by the convergence node R C or the sink node to the node Ri′ and forwarded by the node R.
  • Manner 3 If the node R sends uplink traffic or downlink traffic before the failure occurs, and receives the router identification information of the node R1 that detects the data forwarding failure (for example, obtaining the router identification information of the node R1 by using the fault message), The node R triggers protection switching according to the pre-configured or saved ring network topology information and the fault occurrence location, that is, when the node R1 that first detects the data forwarding failure and the neighbor node R2 send a fault message to the neighbor node,
  • the BFD packet carries the router ID (node ID) of the node (node R1 or node R2), and the node that receives the BFD packet along the route also carries the node R1 or the BFD packet.
  • FIG. 6a it is a fault processing device of a ring topology network according to an embodiment of the present invention.
  • the device may be any adjacent node R1 and/or R2 located on a ring topology network.
  • the fault processing device of the ring topology network illustrated in FIG. 6a includes a fault detecting module 601 and a fault message sending module 602, wherein: the fault detecting module 601 is configured to detect whether data forwarding between the node R1 and the node R2 is faulty. .
  • the fault message sending module 602 is configured to: if the fault detecting module 601 detects that the data forwarding between the node R1 and the node R2 is faulty, move the fault message along the non-faulty link to the node R1 and/or Or the next node of node R2 passes until it reaches the sink node on the ring topology network! And a sink node R, the sink node R c and the sink node are used to terminate the fault message.
  • the aggregation node R c and the aggregation node on the ring topology network are mainly used to forward the traffic sent by other nodes on the ring topology network to the ring topology network, or the ring is Traffic outside the topology network is forwarded to other nodes on the ring topology network.
  • the arrow indicates the fault message transmission direction
  • the data forwarding between the node R1 and the node R2 fails, and the fault message sending module 602 on the node R1 or the node R2 will follow the fault message.
  • the failure-free link is transmitted to the next node immediately adjacent to the node R1 and/or the node R2 until reaching the sink node R c and the sink node R on the ring topology network, or the fault message sending module 602 separates the fault message from two The directions are passed until reaching the sink node R c and the sink node R on the ring topology network.
  • the fault message sending module 602 on the node R1 passes the fault message along the non-faulty link to its next node R3, and the node R3 also transmits the received fault message to its next node R4.
  • the aggregation node! ⁇ and the sink node terminates the fault message coming from two directions, that is, equivalent to the ring topology with the sink node R c (or the sink node R c and the node R1 (or node R2 ) on the ring topology network
  • the network is divided into left and right halves.
  • the nodes on each ring topology network only receive fault messages from one side of the ring topology network. In this way, the fault information of somewhere on the ring topology network is quickly notified to the ring. Topology of all nodes on the network.
  • each functional module is only an example, and the actual application may be considered according to requirements, such as configuration requirements of corresponding hardware or convenience of implementation of software.
  • the function distribution is completed by different functional modules, that is, the internal structure of the fault processing device of the ring topology network is divided into different functional modules to complete all or part of the functions described above.
  • the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be executed by corresponding hardware.
  • the foregoing fault detection module may have the foregoing detection Whether the data forwarding between the node R1 and the node R2 fails, such as a fault detector, may also be a general processor or other hardware device capable of executing a corresponding computer program to perform the foregoing functions; The module may be configured to perform the foregoing if the fault detection module (or fault detector) detects that the data forwarding between the node R1 and the node R2 is faulty, and then the fault message is along the link that is not faulty. The next node of node R1 and/or node R2 is passed until it reaches the sink node on the ring topology network!
  • a fault detector may also be a general processor or other hardware device capable of executing a corresponding computer program to perform the foregoing functions;
  • the module may be configured to perform the foregoing if the fault detection module (or fault detector) detects that the data forwarding between the node R1 and the node R2 is faulty, and then the fault message is along the
  • the hardware of the aggregation node function may also be a general processor or other hardware device capable of executing the corresponding computer program to perform the aforementioned functions (the various descriptions of the embodiments described above may be applied to the various embodiments provided herein).
  • the fault detection module 601 illustrated in FIG. 6a may further include a first detecting unit 6011, and the fault message sending module 602 further includes a first sending unit 6021, such as the ring topology network provided by another embodiment of the present invention as shown in FIG. 6b.
  • Fault handling device wherein:
  • the first detecting unit 6011 is configured to perform bidirectional forwarding detection (Bidirectional Forwarding) Detection, BFD) to detect whether a link between the node R1 and the node R2 is faulty; the first sending unit 6021 is configured to transmit a fault message to the next node immediately adjacent to the node R1 and the node R2 until the ring is reached.
  • BFD bidirectional forwarding detection
  • the fault detection module 601 illustrated in FIG. 6a may further include a second detecting unit 6012, and the fault message sending module 602 further includes a second sending unit 6022, such as the ring topology network provided by another embodiment of the present invention as shown in FIG. 6c.
  • the fault processing device wherein: the opposite end node of the link between the nodes R2 fails;
  • the second sending unit 6022 is configured to transmit a fault message to the next node immediately adjacent to the node R1 or the node R2 until reaching the sink node R c and the sink node R ⁇ on the ring topology network.
  • the second sending unit 6022 transmits the fault message along the link that has not failed to the next node immediately adjacent to the node R1 until reaching the ring.
  • the next node next to the node R2 passes until it reaches the sink node on the ring topology network! ⁇ and aggregation nodes.
  • the embodiment of the present invention further provides a routing device, where the routing device includes the fault processing device of the ring topology network shown in FIG. 6 or FIG.
  • FIG. 8 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention.
  • the device may be any node 1 located on the ring topology network without detecting a data forwarding failure.
  • the fault handling apparatus of the exemplary ring topology network of Figure 8 includes a fault message receiving module 801 and a fault message delivery module 802, wherein:
  • the fault message receiving module 801 is configured to receive a fault message sent by the node R1 that detects the data forwarding fault. Similar to the embodiment of FIG. 6a to FIG. 6b or FIG. 7, in this embodiment, the shortest path from the next hop node to the destination node of the backup path is not required to pass through the computing node itself (refer to the foregoing embodiment).
  • Figure 1 and its corresponding textual description section as long as the node R1 and its neighboring node R2 can
  • the sink node R c and the sink node R c2 on the ring topology network are mainly used on the ring topology network.
  • the traffic sent by other nodes is forwarded to the ring topology network, or the traffic outside the ring topology network is forwarded to other nodes on the ring topology network.
  • the link between the node R1 and the node R2 fails, and the node R1 and the node R2 respectively follow the failure message along the chain that has not failed.
  • next next node or node R1 and node R2 pass the fault message from both directions.
  • node R is immediately adjacent to the next node of node R1, and the link between node R and node R1 does not fail
  • the fault message delivery module 802 on the node R transmits the fault message to the immediately adjacent one in the clockwise direction.
  • the next node R', the node R' also passes the received fault message in a clockwise direction to the next node R3 immediately adjacent to it, and the node after the node R3 repeats the same action until the fault message is transmitted to the sink node R.
  • node R4 is next to the next node of node R2, and the link between node R4 and node R2 does not fail, then when the fault message receiving module 801 on node R4 receives node R2 from counterclockwise When the fault message is transmitted in the direction, the fault message delivery module 802 on the node R4 also transmits the fault message to the next node R5 immediately adjacent thereto in the counterclockwise direction, and the node R5 also transmits the received fault message to the counterclockwise direction to the counterclockwise direction. The next node R6 is passed, and the node after node R6 repeats the same action until the fault message is transmitted to the sink node R. Convergence node!
  • the fault processing apparatus of the ring topology network illustrated in FIG. 8 further includes a protection switching trigger module 901, such as the fault processing apparatus of the ring topology network provided by another embodiment of the present invention as shown in FIG.
  • the protection switching triggering module 901 is configured to receive, at the node R, a fault message sent by the node R1 that detects the data forwarding failure or send the fault message in the same direction as the direction in which the node R1 sends the fault message. At the same time as the adjacent node of the node R, the protection switching is triggered.
  • the so-called uplink traffic refers to the traffic sent by a node (for example, node R) on the ring topology network to the sink node R c or the sink node
  • the downlink traffic refers to the sink node.
  • Rc Wei sink node R ⁇ traffic sent to a node (for example, node R) on the ring topology network.
  • the protection switching trigger module 901 illustrated in FIG. 9 may include a first protection switching trigger unit 1001, such as the fault processing apparatus of the ring topology network provided by another embodiment of the present invention as shown in FIG.
  • the node R3 sends the upstream traffic in the clockwise direction before the fault occurs, the node R1 also sends the fault message clockwise, because the direction of the uplink traffic sent by the node R3 and the direction of the fault message sent by the receiving node R1. Similarly, the node R3 determines that the path for transmitting the upstream traffic in the clockwise direction does not fail. At this time, the node R3 does not need to initiate protection switching, that is, the node R3 still transmits the upstream traffic in a clockwise direction. Since each of the other nodes on the ring topology network, such as the node R, can learn the fault information and can quickly and consistently switch to the protection path, the method provided by the embodiment of the present invention can implement the loop-free forwarding of the traffic. .
  • the protection switching trigger module 901 illustrated in FIG. 9 may include a second protection switching trigger unit 1101, such as the fault processing apparatus of the ring topology network provided by another embodiment of the present invention as shown in FIG.
  • the second protection switching triggering unit 1101 is configured to: if the node R sends the downlink traffic whose destination address is the same as the uplink traffic source address sent by the node Ri and the node Ri before the fault occurs, the uplink is sent by the node Ri. And the node R changes the outbound interface of the downlink traffic to an inbound interface of the uplink traffic of the node Ri, so that the node R sends the path on the path that sends the uplink traffic on the node Ri. Describe the downstream traffic.
  • the protection switching trigger module 901 illustrated in FIG. 9 may include a third protection switching trigger unit 1201, such as the fault processing apparatus of the ring topology network provided by another embodiment of the present invention as shown in FIG.
  • the third protection switching triggering unit 1201 is configured to: if the node R sends uplink traffic or downlink traffic before the fault occurs, and receives the router identifier information of the node R1 that detects the data forwarding fault (for example, obtaining the node R1 by using the fault message) The router identification information) triggers protection switching according to the pre-configured or saved ring network topology information and the fault occurrence location.
  • the embodiment of the present invention further provides a routing device, where the routing device includes the fault processing device of the ring topology network of any of the examples of FIG. 8 to FIG.
  • Any adjacent nodes R1 and R2 on the ring topology network detect whether data forwarding between the node R1 and the node R2 fails;
  • the node R1 and/or the node R2 transfer the fault message along the non-faulty link to the next next node until the ring is reached.
  • a sink node R c and a sink node R C 2 on the topology network, the sink node R c and the sink node are used to terminate the fault message.
  • the node R on the ring topology network receives the fault message sent by the node R1 that detects the data forwarding failure;
  • the program may be stored in a computer readable storage medium.
  • the storage medium may include: a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

Embodiments of the present invention provide a method and an apparatus for fault handling in a ring topology network and a routing device, so as to rapidly advertise and deliver a fault to nodes in the ring topology network. The method comprises: any neighboring nodes R1 and R2 in the ring topology network detecting whether a fault occurs to data forwarding between the node R1 and/or the node R2; and if a fault occurs to data forwarding between the node R1 and the node R2, the node R1 and/or the node R2 delivering a fault message to a respective adjacent next node along a normal link until the fault message reaches a convergence node Rc1 and a convergence node Rc2 in the ring topology network. Through the method for fault handling in a ring topology network that is provided by the embodiments of the present invention, a fault message can be advertised hop by hop rapidly in the ring topology network, and all nodes in the ring topology network can learn of the fault rapidly, so that the requirement for starting protection switching in a short time when the ring topology network is faulty is met.

Description

环形拓朴网络的故障处理方法、 装置和一种路由设备 本申请要求于 2011 年 9 月 28 日提交中国专利局、 申请号为 201110298135.7、发明名称为 "环形拓朴网络的故障处理方法、 装置和一种路 由设备" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Fault processing method, device and routing device for ring topology network The present application claims to be filed on September 28, 2011, the Chinese Patent Office, the application number is 201110298135.7, and the invention name is "the fault processing method and device of the ring topology network. Priority of a Chinese patent application for a routing device, the entire contents of which is hereby incorporated by reference. Technical field

本发明涉及通信领域, 尤其涉及环形拓朴网络的故障处理方法、 装置和 一种路由设备。 背景技术  The present invention relates to the field of communications, and in particular, to a fault processing method, apparatus, and routing device for a ring topology network. Background technique

由于环形拓朴网络具有组网简单、 容易部署并且可以提供备份链路等特 点, 因此, 在实际网络部署中经常釆用环形拓朴进行组网。 对于环形拓朴网 络, 虽然诸如弹性分组环 (Resilient Packet Ring, RPR)之类的环网技术可以提 供快速的故障保护倒换, 但因其价格和通用性存在劣势而被快速发展的 IP/Ethernet环网技术代替。  Because the ring topology network has the characteristics of simple networking, easy deployment, and backup links, the ring topology is often used for networking in actual network deployment. For ring topology networks, although ring network technologies such as Resilient Packet Ring (RPR) can provide fast failover switching, IP/Ethernet rings are rapidly evolving due to their price and versatility. Network technology instead.

与其他环形拓朴网络类似,对于 IP/Ethernet环形拓朴网络, 如何在故障时 实现快速保护倒换也是一个十分重要的问题。 目前基于 IP路由收敛的方式无 法满足 50ms (毫秒) 的保护倒换需求, 因此, 需要提高 IP/Ethernet环形拓朴 网络保护倒换方面的能力。 对于保护倒换而言, 从故障发生到检测出故障的 时间越短, 越可能在要求的时间内实现保护倒换。 从上述这一点来看, 故障 的快速通告也是实现快速保护倒换的重要一环。 现有技术提供的环形拓朴网 络的故障处理方法是无环路备份路径(Loop Free Alternate , LFA)方案, 该方 案对满足特定条件的网络拓朴, 能够预先计算出无环路的备份路径, 从而实 现故障时的快速保护倒换。  Similar to other ring topology networks, how to implement fast protection switching in the event of a fault is also a very important issue for IP/Ethernet ring topology networks. Currently, the IP-based route convergence method cannot meet the protection switching requirement of 50 ms (milliseconds). Therefore, the IP/Ethernet ring topology network protection switching capability needs to be improved. For protection switching, the shorter the time from the occurrence of a fault to the detection of a fault, the more likely it is to implement a protection switchover within the required time. From the above point of view, the fast notification of the fault is also an important part of achieving fast protection switching. The fault processing method of the ring topology network provided by the prior art is a Loop Free Alternate (LFA) solution, which can pre-calculate a loop-free backup path for a network topology that meets specific conditions. Thereby achieving a fast protection switching at the time of failure.

本案发明人经过长期研究与实践发现, 上述现有的 LFA方案对网络拓朴 有着特定要求, 即, 要求备份路径的下一跳节点到目的节点的最短路径一定 不能经过计算节点本身, 否则在路由收敛前将出现数据转发环路。 然而, 在 环形拓朴网络中, 备份路径的下一跳节点到目的节点的最短路径一定不能经 过计算节点本身这一条件对于环上的大多数节点都无法满足, 因此, 现有的 LFA方案不适用于环形拓朴网络的快速保护倒换。 The inventor of the present invention has found through long-term research and practice that the above existing LFA scheme has specific requirements on the network topology, that is, the shortest path from the next hop node to the destination node of the backup path must not pass through the computing node itself, otherwise the route is A data forwarding loop will occur before convergence. However, in a ring topology network, the condition that the shortest path of the backup path from the next hop node to the destination node must not pass through the compute node itself cannot be satisfied for most nodes on the ring. Therefore, the existing The LFA scheme does not apply to fast protection switching of ring topology networks.

发明内容 Summary of the invention

本发明实施例提供环形拓朴网络的故障处理方法、装置和一种路由设备, 本发明实施例提供一种环形拓朴网络的故障处理方法, 所述方法包括: 间的数据转发是否出现故障;  The embodiment of the present invention provides a fault processing method, a device, and a routing device for a ring topology network. The embodiment of the present invention provides a fault processing method for a ring topology network, where the method includes: whether data forwarding between devices fails;

若所述节点 R1和节点 R2之间的数据转发出现故障, 则所述节点 R1和 /或 所述节点 R2将故障消息沿着未出现故障的链路向紧邻各自的下一节点传递直 至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 RC2, 所述汇聚节点 Rc和汇 聚节点 用于终结所述故障消息。 If the data forwarding between the node R1 and the node R2 fails, the node R1 and/or the node R2 transfer the fault message along the non-faulty link to the next next node until the ring is reached. A sink node R c and a sink node R C 2 on the topology network, the sink node R c and the sink node are used to terminate the fault message.

本发明另一实施例提供一种环形拓朴网络的故障处理方法, 所述方法包 括:  Another embodiment of the present invention provides a fault processing method for a ring topology network, where the method includes:

环形拓朴网络上的节点 R接收来自检测到数据转发故障的节点 R1发送的 故障消息;  The node R on the ring topology network receives the fault message sent by the node R1 that detects the data forwarding failure;

所述节点 R将所述故障消息以与所述节点 R1发送所述故障消息的方向相 同的方向将所述故障消息发送至所述节点 R的相邻节点,直至所述故障消息到 达环形拓朴网络上的汇聚节点!^和汇聚节点 R , 所述汇聚节点 Rc和汇聚节 点 用于将所述环形拓朴网络上的流量向所述环形拓朴网络外转发或将所 述环形拓朴网络外的流量向所述环形拓朴网络上转发并终结所述故障消息。 The node R sends the fault message to the neighboring node of the node R in the same direction as the direction in which the node R1 sends the fault message until the fault message reaches the ring topology Aggregation nodes on the network! And a sink node R, the sink node R c and the sink node are configured to forward traffic on the ring topology network to the outside of the ring topology network or to send traffic outside the ring topology network to the The fault message is forwarded and terminated on the ring topology network.

本发明实施例提供一种环形拓朴网络的故障处理装置, 所述装置为位于 环形拓朴网络上的任意相邻节点 R1和 /或 R2 , 所述装置包括:  The embodiment of the present invention provides a fault processing apparatus for a ring topology network, where the device is any adjacent node R1 and/or R2 located on a ring topology network, and the device includes:

故障检测模块, 用于检测连接所述节点 R1和节点 R2之间的数据转发是否 出现故障;  a fault detection module, configured to detect whether a data forwarding between the node R1 and the node R2 is faulty;

故障消息发送模块, 用于若所述故障检测模块检测到节点 R1和节点 R2之 间的数据转发出现故障, 则将故障消息沿着未出现故障的链路向紧邻所述节 点 R1和 /或节点 R2的下一节点传递直至到达环形拓朴网络上的汇聚节点 Rc和 汇聚节点 R , 所述汇聚节点 Rc和汇聚节点 用于终结所述故障消息。 The fault message sending module is configured to: if the fault detecting module detects that the data forwarding between the node R1 and the node R2 is faulty, move the fault message along the non-faulty link to the node R1 and/or the node The next node of R2 passes until it reaches the sink node R c and the sink node R on the ring topology network, and the sink node R c and the sink node are used to terminate the fault message.

本发明实施例提供一种路由设备, 所述路由设备包括上述实施例提供的 环形拓朴网络的故障处理装置。 The embodiment of the present invention provides a routing device, where the routing device includes the foregoing embodiment. Fault processing device for a ring topology network.

本发明另一实施例提供一种环形拓朴网络的故障处理装置, 所述装置为 位于环形拓朴网络上的任意节点 R, 所述装置包括:  Another embodiment of the present invention provides a fault processing apparatus for a ring topology network, where the device is any node R located on a ring topology network, and the device includes:

故障消息接收模块, 用于接收检测到数据转发故障的节点 R1发送的故障 消息;  The fault message receiving module is configured to receive a fault message sent by the node R1 that detects the data forwarding fault;

故障消息传递模块, 用于将所述故障消息接收模块接收的故障消息以与 所述节点 R1发送所述故障消息的方向相同的方向将所述故障消息发送至所述 节点 R的相邻节点, 直至所述故障消息到达环形拓朴网络上的汇聚节点!^和 汇聚节点 R , 所述汇聚节点 Rc和汇聚节点 用于将所述环形拓朴网络上的 流量向所述环形拓朴网络外转发或将所述环形拓朴网络外的流量向所述环形 拓朴网络上转发并终结所述故障消息。 a fault message delivery module, configured to send the fault message received by the fault message receiving module to the neighboring node of the node R in the same direction as the direction in which the node R1 sends the fault message, Until the fault message arrives at the aggregation node on the ring topology network! And a sink node R, the sink node R c and the sink node are configured to forward traffic on the ring topology network to the outside of the ring topology network or to send traffic outside the ring topology network to the The fault message is forwarded and terminated on the ring topology network.

本发明实施例提供一种路由设备, 所述路由设备包括上述实施例提供的 环形拓朴网络的故障处理装置。  The embodiment of the present invention provides a routing device, where the routing device includes the fault processing device of the ring topology network provided by the foregoing embodiment.

从上述本发明实施例可知,由于数据转发出现故障的节点 R1和 /或节点 R2 能够将故障消息沿着未出现故障的链路向紧邻各自的下一节点传递, 直至故 障消息到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 R 。 因此, 本发明实 施例提供的环形拓朴网络的故障处理方法可以将故障消息在环形拓朴网络上 逐跳快速通告, 环形拓朴网络上的节点都能够迅速获知故障, 如此可以满足 环形拓朴网络故障时能够在短时间内启动保护倒换的要求。 It can be seen from the above embodiments of the present invention that the node R1 and/or the node R2 that fails due to data forwarding can transmit the fault message along the non-faulty link to the next next node until the fault message reaches the ring topology network. Convergence node R c and aggregation node R on. Therefore, the fault processing method of the ring topology network provided by the embodiment of the present invention can quickly notify the fault message hop by hop on the ring topology network, and the nodes on the ring topology network can quickly learn the fault, so that the ring topology can be satisfied. The protection switching can be initiated in a short time when the network is faulty.

附图说明 DRAWINGS

为了更清楚地说明本发明实施例的技术方案, 下面将对现有技术或实施 例描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图 仅仅是本发明的一些实施例, 对于本领域技术人员来讲, 还可以如这些附图 获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the prior art or the embodiments will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, other figures can also be obtained as those skilled in the art.

图 1是现有技术提供的环形拓朴网络中从源节点到目的节点存在无环备 份路径的示意图;  1 is a schematic diagram of a loop-free backup path from a source node to a destination node in a ring topology network provided by the prior art;

图 2是本发明实施例提供的环形拓朴网络的故障处理方法流程示意图; 图 3是本发明实施例提供的环形拓朴网络的链路出现故障时故障消息传 递示意图; 2 is a schematic flowchart of a fault processing method of a ring topology network according to an embodiment of the present invention; FIG. 3 is a schematic diagram of fault message transmission when a link of a ring topology network according to an embodiment of the present invention fails;

图 4是本发明另一实施例提供的环形拓朴网络的故障处理方法流程示意 图;  4 is a schematic flow chart of a fault processing method for a ring topology network according to another embodiment of the present invention;

图 5是本发明另一实施例提供的环形拓朴网络的链路出现故障时故障消 息传递示意图;  FIG. 5 is a schematic diagram of fault message delivery when a link of a ring topology network is faulty according to another embodiment of the present invention; FIG.

图 6a是本发明实施例提供的环形拓朴网络的故障处理装置结构示意图; 图 6b是本发明另一实施例提供的环形拓朴网络的故障处理装置结构示意 图;  6a is a schematic structural diagram of a fault processing apparatus of a ring topology network according to an embodiment of the present invention; FIG. 6b is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention;

图 6c是本发明另一实施例提供的环形拓朴网络的故障处理装置结构示意 图;  6c is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention;

图 7是本发明另一实施例提供的环形拓朴网络的故障处理装置结构示意 图;  7 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention;

图 8是本发明另一实施例提供的环形拓朴网络的故障处理装置结构示意 图;  FIG. 8 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention; FIG.

图 9是本发明另一实施例提供的环形拓朴网络的故障处理装置结构示意 图;  FIG. 9 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention; FIG.

图 10是本发明另一实施例提供的环形拓朴网络的故障处理装置结构示意 图;  FIG. 10 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention; FIG.

图 11是本发明另一实施例提供的环形拓朴网络的故障处理装置结构示意 图;  11 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention;

图 12是本发明另一实施例提供的环形拓朴网络的故障处理装置结构示意 图。  FIG. 12 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention.

具体实施方式 detailed description

下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域技术人员所获得的所有 其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention are within the scope of the present invention.

请参阅附图 2,是本发明实施例提供的一种环形拓朴网络的故障处理方法 流程示意图, 主要包括步骤: Referring to FIG. 2, a fault processing method for a ring topology network according to an embodiment of the present invention is provided. The process diagram mainly includes the steps:

5201 , 环形拓朴网络上的任意相邻节点 R1和 /或 R2检测连接所述节点 R1 和节点 R2之间的数据转发是否出现故障。  5201, any neighboring nodes R1 and/or R2 on the ring topology network detect whether the data forwarding between the node R1 and the node R2 is faulty.

现有的 LFA方案对网络拓朴有着特定要求, 如附图 1所示, 假设数据流的 源节点是 S, 目的节点是 D, N是 S的一个邻居节点。 釆用 Distance— opt ( )表 示两个节点之间的最短距离 (即最小路径开销), 那么, 只有当网络拓朴中节 点之间的最短距离满足 Distance— opt ( N, D ) < Distance— opt ( N , S ) + Distance— opt ( S, D ) 的条件下, 从源节点 S到目的节点 D的路径才存在无环 备份路径, 即无环路备份路径为由源节点 S到节点 N, 再由节点 N到目的节点 D。如附图 1所示,计算节点(即附图 1中数据流的源节点 S )根据路径成本( cost ) 值(链路(即图中直线)旁的数字)计算出源节点 S到目的节点 D的最短路径 为 S-E-D, 主用路径的下一跳为节点 E。 根据上述现有技术提供的无环路备份 路径判断公式(即 Distance— opt ( N, D ) < Distance— opt ( N, S ) + Distance— opt ( S, D ) ), 由于备份路径下一跳为节点 N, 节点 N到节点 D的距离为 3 , 小于 N-S的最短路径( 8 )与 S-D的最短路径( 9 )之和, 则源节点 S到目的节点 D存 在无环路备份路径, 其下一跳为节点 N; 若不满足无环路备份路径判断公式, 则说明节点 N到目的节点 D的最短路径要经过源节点 S, 此时就产生了 S-N-S 的环路。  The existing LFA scheme has specific requirements for the network topology. As shown in Figure 1, it is assumed that the source node of the data stream is S, the destination node is D, and N is a neighbor node of S. DDistance— opt ( ) indicates the shortest distance between the two nodes (ie, the minimum path cost), then only the shortest distance between the nodes in the network topology satisfies Distance— opt ( N, D ) < Distance — opt (N , S ) + Distance— opt ( S, D ), the path from the source node S to the destination node D has a loop-free backup path, that is, the loop-free backup path is from the source node S to the node N. Then from node N to destination node D. As shown in FIG. 1, the computing node (ie, the source node S of the data stream in FIG. 1) calculates the source node S to the destination node according to the path cost value (the number next to the link (ie, the straight line in the figure)). The shortest path of D is SED, and the next hop of the primary path is node E. According to the above-mentioned prior art, the loop-free backup path judgment formula (that is, Distance_opt (N, D) < Distance_opt (N, S) + Distance- opt (S, D)), due to the backup path next hop For node N, the distance from node N to node D is 3, which is smaller than the sum of the shortest path (8) of NS and the shortest path (9) of SD. Then, there is a loop-free backup path from source node S to destination node D. One hop is the node N; if the loop-free backup path judgment formula is not satisfied, it indicates that the shortest path from the node N to the destination node D passes through the source node S, and a loop of the SNS is generated.

对环形拓朴网络本身及其环形拓朴网络上的节点, 在本发明实施例中, 并没有如前述背景技术中提及的限制条件, 只要相邻节点能够检测出所述相 邻节点之间的数据转发是否出现故障。 因此, 本发明实施例提供的环形拓朴 网络的故障处理方法适用于所有相邻节点能够检测数据转发故障的环形拓朴 网络。  For the ring topology network itself and the nodes on the ring topology network, in the embodiment of the present invention, there is no restriction condition as mentioned in the foregoing background art, as long as the adjacent node can detect between the adjacent nodes. Whether the data forwarding has failed. Therefore, the fault processing method of the ring topology network provided by the embodiment of the present invention is applicable to a ring topology network in which all neighboring nodes can detect data forwarding failures.

5202, 若所述节点 R1和节点 R2之间的数据转发出现故障, 则所述节点 R1 和 /或所述节点 R2将故障消息沿着未出现故障的链路向紧邻各自的下一节点 传递直至到达环形拓朴网络上的汇聚节点!^和汇聚节点 R 。  5202, if the data forwarding between the node R1 and the node R2 fails, the node R1 and/or the node R2 transmit the fault message along the non-faulty link to the next next node until the next node Arrive at the aggregation node on the ring topology network! ^ and sink node R.

在本发明实施例中, 环形拓朴网络上的汇聚节 RC和汇聚节点 主要 用于将所述环形拓朴网络上的其他节点发送过来的流量向环形拓朴网络外转 发, 或者将所述环形拓朴网络外的流量向所述环形拓朴网络上的其他节点转 发。 如附图 3所示的环形拓朴网络(箭头表示故障消息传递方向), 节点 R1和 节点 R2之间的数据转发出现故障, 则节点 R1和 /或节点 R2将故障消息沿着未 出现故障的链路向紧邻各自的下一节点传递直至到达环形拓朴网络上的汇聚 节点 Rc和汇聚节点 R , 或者节点 R1和节点 R2将故障消息从两个方向传递直 至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 RC2。 例如, 节点 R1将故障 消息沿着未出现故障的链路向其紧邻的下一节点 R3传递, 节点 R3也将收到的 故障消息向其紧邻的下一节点 R4传递, ... ..., 节点 R4之后的节点重复同样的 动作, 直至故障消息传递至汇聚节点 Rc ; 同样地, 节点 R2也将故障消息沿着 未出现故障的链路向其紧邻的下一节点 R6传递, 节点 R6将收到的故障消息向 其紧邻的下一节点 R7传递, ... ..., 节点 R7之后的节点重复同样的动作, 直至 故障消息传递至汇聚节点 R 。 汇聚节点!^和汇聚节点 在收到所述故障消 息后终结所述故障消息, 即, 汇聚节点!^和汇聚节点 不再继续将故障消 息向环形拓朴网络上的其他节点传递。 从节点 R1和节点 R2传递故障消息的方 式以及汇聚节点!^和汇聚节点 终结所述故障消息的方式可以看出, 汇聚 节点 Rc和汇聚节点 终结从两个方向过来的故障消息, 即, 相当于以汇聚 节点 Rc (或汇聚节点 R )和环形拓朴网络上的节点 R1 (或节点 R2 )为界, 将环形拓朴网络分成左右两半, 每个环形拓朴网络上的节点只会从环形拓朴 网络上的一侧收到故障消息, 如此, 实现将环形拓朴网络上某处的故障信息 快速地通告给环形拓朴网络上的所有节点。 In the embodiment of the present invention, the convergence node R C and the aggregation node on the ring topology network are mainly used to forward the traffic sent by other nodes on the ring topology network to the ring topology network, or The traffic outside the ring topology network is transferred to other nodes on the ring topology network. hair. As shown in the ring topology network shown in Figure 3 (arrow indicates the direction of fault message transmission), data forwarding between node R1 and node R2 fails, node R1 and/or node R2 will follow the failure message along the failure. The links are passed next to the respective next node until reaching the sink node R c and the sink node R on the ring topology network, or the nodes R1 and R2 pass the fault message from both directions until reaching the convergence on the ring topology network Node R c and sink node R C 2 . For example, the node R1 delivers the fault message along the non-faulty link to its next node R3, and the node R3 also transmits the received fault message to its next node R4, which is ... The node after node R4 repeats the same action until the fault message is delivered to the sink node Rc ; likewise, node R2 also passes the fault message along the non-faulty link to its next next node R6, node R6 The received fault message is passed to its next node R7, and the node following node R7 repeats the same action until the fault message is delivered to the sink node R. Convergence node! ^ and the sink node terminates the fault message after receiving the fault message, that is, the sink node! ^ and the aggregation node no longer continue to pass fault messages to other nodes on the ring topology network. The way to send fault messages from node R1 and node R2 and the aggregation node! ^ and the way in which the sink node terminates the fault message, it can be seen that the sink node R c and the sink node terminate the fault message coming from two directions, that is, equivalent to the sink node R c (or the sink node R ) and the ring extension Node R1 (or node R2) on the network is bounded, and the ring topology network is divided into left and right halves. The nodes on each ring topology network will only receive fault messages from one side of the ring topology network. , to quickly notify the fault information somewhere on the ring topology network to all nodes on the ring topology network.

从上述本发明实施例提供的环形拓朴网络的故障处理方法可知, 由于数 据转发出现故障的节点 R1和 /或节点 R2能够将故障消息沿着未出现故障的链 路向紧邻各自的下一节点传递, 直至故障消息到达环形拓朴网络上的汇聚节 点!^和汇聚节点 R 。 因此, 本发明实施例提供的环形拓朴网络的故障处理 方法可以将故障消息在环形拓朴网络上逐跳快速通告, 环形拓朴网络上的节 点都能够迅速获知故障, 如此可以满足环形拓朴网络故障时能够在短时间内 启动保护倒换的要求。  According to the fault processing method of the ring topology network provided by the foregoing embodiment of the present invention, the node R1 and/or the node R2 that are faulty due to data forwarding can move the fault message along the non-faulty link to the next next node. Pass until the fault message reaches the aggregation node on the ring topology network! ^ and sink node R. Therefore, the fault processing method of the ring topology network provided by the embodiment of the present invention can quickly notify the fault message hop by hop on the ring topology network, and the nodes on the ring topology network can quickly learn the fault, so that the ring topology can be satisfied. The protection switching can be initiated in a short time when the network is faulty.

由于环形拓朴网络上的每个节点 (包括前述实施例中链路出现故障的相 邻节点 R1和 R2 ) 可以预先计算到目的节点 (在附图 3中是汇聚节点 Rc和汇聚 节点 R ) 的备份路径, 例如, 假设主用端口故障, 计算备份路径等, 因此, 在本发明实施例中, 数据转发出现故障的相邻节点 R1和 R2可以在检测到所述 故障时触发保护倒换, 将数据的传递通道切换至预先计算出的备份路径上。 Since each node on the ring topology network (including the adjacent nodes R1 and R2 in which the link fails in the foregoing embodiment) can be pre-computed to the destination node (in FIG. 3, the sink node R c and the sink node R) Backup path, for example, assuming the primary port is faulty, calculating the backup path, etc., therefore, In the embodiment of the present invention, the neighboring nodes R1 and R2 whose data forwarding fails may trigger a protection switching when the fault is detected, and switch the data transmission channel to the pre-calculated backup path.

在本发明一个实施例中, 环形拓朴网络上的任意相邻节点 R1和 R2可以通 过双向转发检测 (Bidirectional Forwarding Detection , BFD)来检测连接所述节 点 R1和节点 R2之间的链路是否出现故障。 所谓双向转发检测, 是互联网工程 任务组(Internet Engineering Task Force, IETF )制定的转发平面故障检测标 准, 能够实现轻负荷、 通用的转发平面快速故障检测。 BFD的检测机制是两 个节点建立 BFD会话 (Session ) , 并沿它们之间的路径周期性地发送 BFD控 制报文, 如果一方在既定的时间内没有收到 BFD控制报文, 则认为路径上发 生了故障。 BFD控制报文封装在用户数据报协议(User Datagram Protocol, UDP )报文中传送,会话开始阶段, 双方系统通过控制报文中携带的参数(例 如, 会话标识符、 期望的收发报文最小时间间隔和本端 BFD会话状态等)进 行协商。 协商成功后, 即以协商的报文收发时间在彼此之间的路径上定时发 送 BFD控制报文。  In an embodiment of the present invention, any adjacent nodes R1 and R2 on the ring topology network may detect whether a link between the node R1 and the node R2 is connected through Bidirectional Forwarding Detection (BFD). malfunction. The so-called two-way forwarding detection is a forwarding plane fault detection standard formulated by the Internet Engineering Task Force (IETF), which enables light load and universal forwarding plane fast fault detection. The detection mechanism of the BFD is that the two nodes establish a BFD session and send BFD control packets periodically along the path between them. If a party does not receive BFD control packets within a specified period of time, the BFD session is considered to be on the path. A failure has occurred. The BFD control packet is encapsulated in a User Datagram Protocol (UDP) packet. At the beginning of the session, the two systems control the parameters carried in the packet (for example, the session identifier and the minimum time required for sending and receiving packets). The interval is negotiated with the local BFD session status, and so on. After the negotiation succeeds, the BFD control packet is sent periodically on the path between the packets.

本发明实施例是对 BFD的一种扩展, 即, 所述任意相邻节点 R1和 R2通过 BFD检测到连接所述节点 R1和节点 R2之间的链路出现故障后,所述节点 R1和 所述节点 R2将故障消息分别沿着未出现故障的链路向紧邻各自的下一节点传 递直至到达环形拓朴网络上的汇聚节点!^和汇聚节点 R 。  The embodiment of the present invention is an extension of the BFD, that is, the node R1 and the node are detected by the BFD after the link between the node R1 and the node R2 is faulty. The node R2 transmits the fault message along the non-faulty link to the next next node until it reaches the sink node on the ring topology network! ^ and sink node R.

在本发明另一实施例中,环形拓朴网络上的任意相邻节点 R1和 /或 R2检测  In another embodiment of the invention, any neighboring nodes R1 and/or R2 on the ring topology network are detected

节点 R1或 R2通过 BFD检测构成所述节点 R1和节点 R2之间的链路的对端节点 是否出现故障, 若所述节点 R2出现故障, 则所述节点 R1将故障消息沿着未出 现故障的链路向紧邻所述节点 R1的下一节点传递直至到达环形拓朴网络上的 汇聚节点!^和汇聚节点 R , 或者若所述节点 R1出现故障, 则所述节点 R2将 故障消息沿着未出现故障的链路向紧邻所述节点 R2的下一节点传递直至到达 环形拓朴网络上的汇聚节点!^和汇聚节点 R 。 The node R1 or R2 detects whether the opposite end node of the link between the node R1 and the node R2 is faulty through BFD. If the node R2 fails, the node R1 will follow the failure message along the failure. The link is passed to the next node next to the node R1 until it reaches the sink node on the ring topology network! And the sink node R, or if the node R1 fails, the node R2 passes the fault message along the non-failed link to the next node immediately adjacent to the node R2 until it reaches the ring topology network. Convergence node! ^ and sink node R.

从上述对 BFD机制的说明, 可以理解的是, 在本发明实施例中, 环形拓 节点 R2之间的链路是否出现故障或者所述环形拓朴网络上的任意相邻节点 From the foregoing description of the BFD mechanism, it can be understood that, in the embodiment of the present invention, the ring extension Whether the link between the nodes R2 fails or any adjacent nodes on the ring topology network

对端节点是否出现故障之前还包括:所述任意相邻节点 R1和 R2在 R1和 R2之间 建立 BFD会话(Session ) 。 Before the failure of the peer node, the method further includes: the any adjacent node R1 and R2 establish a BFD session between the R1 and the R2.

请参阅附图 4,是本发明另一实施例提供的环形拓朴网络的故障处理方法 流程示意图, 主要包括步骤:  Referring to FIG. 4, it is a schematic flowchart of a fault processing method for a ring topology network according to another embodiment of the present invention, which mainly includes the following steps:

S401 , 环形拓朴网络上的节点 R接收来自检测到数据转发故障的节点 R1 发送的故障消息。  S401. The node R on the ring topology network receives the fault message sent by the node R1 that detects the data forwarding failure.

对环形拓朴网络上的节点, 在本发明实施例中, 并不要求备份路径的下 一跳节点到目的节点的最短路径一定不能经过计算节点本身 (参阅前述实施 例附图 1及其对应的文字说明部分), 只要相邻节点 (例如, 本实施例中的节 点 R1与其相邻节点 R2 )能够检测出所述相邻节点之间的数据转发是否出现故 障。 因此, 本发明实施例提供的环形拓朴网络的故障处理方法适用于所有相 邻节点能够检测链路故障的环形拓朴网络。 转发检测(Bidirectional Forwarding Detection , BFD)来检测所述节点 Rl和节点 For the node on the ring topology network, in the embodiment of the present invention, the shortest path from the next hop node to the destination node of the backup path is not required to pass through the computing node itself (refer to FIG. 1 of the foregoing embodiment and its corresponding The text description section) can detect whether or not data forwarding between the adjacent nodes is faulty as long as the adjacent node (for example, the node R1 in this embodiment and its neighboring node R2). Therefore, the fault processing method of the ring topology network provided by the embodiment of the present invention is applicable to a ring topology network in which all neighboring nodes can detect link failure. Bidirectional Forwarding Detection (BFD) to detect the node R1 and node

R2之间的数据转发是否出现故障,利用 BFD向各自的相邻节点传递故障信息, 进而逐跳将故障信息传递到环形拓朴网络上的所有节点。 如附图 5所示, 若节 点 R1与其相邻节点 R2通过 BFD检测到连接所述节点 R1和节点 R2之间的链路 出现故障, 则所述节点 R1和所述节点 R2将故障消息沿着未出现故障的链路向 紧邻各自的下一节点传递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节 点 R ; 或者, 所述任意相邻节点 R1或 R2通过 BFD检测构成所述节点 R1和节 点 R2之间的链路的对端节点是否出现故障, 若所述节点 R2出现故障, 则所述 节点 R1将故障消息沿着未出现故障的链路向紧邻所述节点 R1的下一节点传 递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 R , 或者若所述节点 R1出现故障, 则所述节点 R2将故障消息沿着未出现故障的链路向紧邻所述节 点 R2的下一节点传递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 Rc2„ Whether the data forwarding between R2 is faulty, the BFD is used to transmit fault information to the neighboring nodes, and then the fault information is transmitted hop by hop to all nodes on the ring topology network. As shown in FIG. 5, if the node R1 and its neighboring node R2 detect through BFD that the link between the node R1 and the node R2 fails, the node R1 and the node R2 will follow the fault message. The link that has not failed is transmitted to the next next node until it reaches the sink node R c and the sink node R on the ring topology network; or the arbitrary neighbor node R1 or R2 forms the node R1 through BFD detection. Whether the opposite end node of the link between the node R2 and the node R2 fails, if the node R2 fails, the node R1 sends a fault message along the non-faulty link to the next node immediately adjacent to the node R1. Passing until reaching the sink node R c and the sink node R on the ring topology network, or if the node R1 fails, the node R2 sends a fault message along the non-faulty link to the node R2 The next node passes until it reaches the sink node R c and the sink node on the ring topology network. Rc2

需要说明的是, 在步骤 S401中, 检测到数据转发故障的节点 R1可以是与 节点 R相邻的节点, 也可以不是相邻的节点, 即, 节点 R1与节点 R之间还有其 他节点, 此时, 节点 R接收到的故障消息是由节点 R1与节点 R之间的其他节点 逐跳转发而来。  It should be noted that, in step S401, the node R1 that detects the data forwarding failure may be a node adjacent to the node R, or may not be an adjacent node, that is, there are other nodes between the node R1 and the node R. At this time, the fault message received by the node R is forwarded hop by hop by other nodes between the node R1 and the node R.

S402 , 节点 R将所述故障消息以与所述节点 R1发送所述故障消息的方向 相同的方向将所述故障消息发送至所述节点 R的相邻节点,直至所述故障消息 到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 R 。 S402. The node R sends the fault message to the neighboring node of the node R in the same direction as the direction in which the node R1 sends the fault message, until the fault message reaches the ring topology. Aggregation node R c and sink node R on the network.

在本发明实施例中, 环形拓朴网络上的汇聚节 RC和汇聚节点 主要 用于将所述环形拓朴网络上的其他节点发送过来的流量向环形拓朴网络外转 发, 或者将所述环形拓朴网络外的流量向所述环形拓朴网络上的其他节点转 发。 如附图 5所示的环形拓朴网络(箭头表示故障消息传递方向), 节点 R1和 节点 R2之间的链路出现故障,则节点 R1和节点 R2将故障消息分别沿着未出现 故障的链路向紧邻各自的下一节点传递, 或者节点 R1和节点 R2将故障消息分 别从两个方向传递。 例如, 假设节点 R是节点 R1的紧邻下一节点, 且节点 R和 节点 R1之间的链路没有出现故障, 则当节点 R接收节点 R1从顺时针方向传递 过来的故障消息时 ,节点 R将故障消息也按照顺时针方向将故障消息传递至其 紧邻的下一节点 R' , 节点 R'也将收到的故障消息按照顺时针方向传递至其紧 邻的下一节点 R3传递, ... ..., 节点 R3之后的节点重复同样的动作, 直至故障 消息传递至汇聚节点 Rc ; 同样地,假设节点 R4是节点 R2的紧邻下一节点, 且 节点 R4和节点 R2之间的链路没有出现故障,则当节点 R4接收节点 R2从逆时针 方向传递过来的故障消息时, 节点 R4将也按照逆时针方向将故障消息传递至 其紧邻的下一节点 R5 , 节点 R5也将收到的故障消息按照逆时针方向传递至其 紧邻的下一节点 R6传递, ... ..., 节点 R6之后的节点重复同样的动作, 直至故 障消息传递至汇聚节点 R^。 汇聚节点!^和汇聚节点 在收到所述故障消息 后终结所述故障消息, 即, 汇聚节点!^和汇聚节点 不再继续将故障消息 向环形拓朴网络上的其他节点传递。 从节点 R1和节点 R2传递故障消息的方式 以及汇聚节点 Rc和汇聚节点 终结所述故障消息可以看出, 汇聚节点!^和 汇聚节点 终结从两个方向过来的故障消息, 即,相当于以汇聚节点 Rc (或 汇聚节点!^ 和环形拓朴网络上的节点 Rl (或节点 R2 )为界, 将环形拓朴网 络分成左右两半, 每个环形拓朴网络上的节点只会从环形拓朴网络上的一侧 收到故障消息, 如此, 实现将环形拓朴网络上某处的故障信息快速地通告给 环形拓朴网络上的所有节点。 In the embodiment of the present invention, the convergence node R C and the aggregation node on the ring topology network are mainly used to forward the traffic sent by other nodes on the ring topology network to the ring topology network, or Traffic outside the ring topology network is forwarded to other nodes on the ring topology network. As shown in the ring topology network shown in FIG. 5 (the arrow indicates the direction of the fault message transmission), the link between the node R1 and the node R2 fails, and the node R1 and the node R2 respectively follow the failure message along the chain that has not failed. The way is passed to the next next node, or node R1 and node R2 pass the fault message from both directions. For example, assuming that node R is immediately adjacent to the next node of node R1, and the link between node R and node R1 does not fail, node R will receive a failure message transmitted by node R1 from clockwise direction. The fault message also passes the fault message in a clockwise direction to its next next node R', and the node R' also passes the received fault message in a clockwise direction to its next next node R3, .... .., the node after node R3 repeats the same action until the fault message is delivered to the sink node Rc ; likewise, assume that node R4 is immediately next node of node R2, and the link between node R4 and node R2 is not In the event of a failure, when the node R4 receives the fault message transmitted by the node R2 from the counterclockwise direction, the node R4 will also transmit the fault message in the counterclockwise direction to the next node R5 immediately adjacent thereto, and the node R5 will also receive the fault. The message is delivered in a counterclockwise direction to its next next node R6, and the node following node R6 repeats the same action until the fault message is passed to the sink node R^. Convergence node! ^ and the sink node terminates the fault message after receiving the fault message, that is, the sink node! ^ and the aggregation node no longer continue to pass fault messages to other nodes on the ring topology network. The way in which the fault message is transmitted from the node R1 and the node R2 and the convergence node R c and the sink node terminate the fault message can be seen, the sink node! ^ and the sink node terminates the fault message coming from both directions, that is, equivalent to the sink node R c (or Convergence node! ^ and the node Rl (or node R2) on the ring topology network are bounded, the ring topology network is divided into left and right halves, and the nodes on each ring topology network are only received from one side of the ring topology network. The fault message, as such, enables fast notification of fault information somewhere on the ring topology network to all nodes on the ring topology network.

附图 5所示实施例中, 在节点 R接收来自检测到数据转发故障的节点 R1发 的方向将所述故障消息发送至节点 R的相邻节点的同时, 节点 R触发保护倒 换。在进一步说明节点 R触发保护倒换的方式之前, 需要说明的是关于上行流 量和下行流量的含义。 如附图 5示例的环形拓朴网络, 所谓上行流量, 是指环 形拓朴网络上某个节点(例如, 节点 R )向汇聚节点 Rc或汇聚节点 发送的 流量, 而下行流量是指汇聚节点 Rc威汇聚节点 R ^向环形拓朴网络上的某个 节点 (例如, 节点 R )发送的流量。 In the embodiment shown in FIG. 5, the node R triggers protection switching while the node R receives the direction from the node R1 that detected the data forwarding failure to send the failure message to the neighboring node of the node R. Before further explaining the manner in which the node R triggers the protection switching, it is necessary to explain the meanings of the upstream traffic and the downstream traffic. The circular topology network as illustrated in FIG. 5, the so-called uplink traffic refers to the traffic sent by a node (for example, node R) on the ring topology network to the sink node R c or the sink node, and the downlink traffic refers to the sink node. Rc Wei sink node R ^ traffic sent to a node (for example, node R) on the ring topology network.

具体地, 在本发明实施例中, 节点 R触发保护倒换有如下几种方式。 方式一: 若在故障出现前节点 R发送上行流量且节点 R1发送所述故障消 息的方向与所述节点 R发送所述上行流量的方向相反, 则所述节点 R将所述上 行流量的发送方向切换至与所述节点 R1发送所述故障消息的方向相同的方 向, 沿切换后的路径发送所述上行流量。 例如, 若在故障出现前, 节点 R按照 逆时针方向发送上行流量, 节点 R1是按照顺时针发送故障消息, 由于节点 R 发送上行流量的方向与收到节点 R1发送的故障消息的方向相反, 则节点 R判 断原来按照逆时针方向传递所述上行流量的路径发生了故障, 此时, 节点 R 将所述上行流量的发送方向切换至顺时针方向, 沿切换后的路径发送上行流 量, 即, 按照顺时针方向发送所述上行流量, 从而实现了上行流量的快速保 护倒换。 相反的情形是, 若在故障出现前, 节点 R3按照顺时针方向发送上行 流量, 节点 R1也是按照顺时针发送故障消息, 由于节点 R3发送上行流量的方 向与收到节点 R1发送的故障消息的方向相同, 则节点 R3判断原来按照顺时针 方向传递所述上行流量的路径没有发生故障, 此时, 节点 R3无需启动保护倒 换, 即, 节点 R3仍然按照顺时针方向发送所述上行流量。 由于环形拓朴网络 上的其他每个节点如节点 R—样,都能够得知故障信息且可以快速一致地倒换 到保护路径, 因此, 本发明实施例提供的方法能够实现流量的无环路转发。 方式二: 若在故障出现前节点 R发送目的地址与节点 Ri, 发送的上行流 量源地址相同的下行流量且收到所述节点 Ri, 发送的所述上行流量, 则所述 节点 R将所述下行流量的出接口更改为所述上行流量的入接口, 在所述节点 Ri' 发送所述上行流量的路径上发送所述下行流量。 具体地, 节点 R可以对收 到的节点 Ri, 发送的的上行流量进行检查, 通过获取节点 Ri, 发送的上行流 量的源地址 Adds。《rce和入接口 Ιηφ , 在本地 (即节点 R )路由表和转发表中 查找表项, 若匹配到节点 R发送的下行流量的目的地址与节点 Ri, 发送的上 行流量的源地址 Adds。《rce相同, 则将该表项对应的出接口更改为节点 Ri, 发 送的上行流量的入接口 ΙηίΡ , 即, 此时节点 R发送的下行流量的出接口变成节 点 Ri, 发送的上行流量的入接口 In^。 如此, 相当于节点 R在所述节点 Ri, 发 送所述上行流量的路径上继续发送其下行流量, 即节点 R发送下行流量的路 径与节点 Ri, 发送上行流量的路径相同, 如此, 只要保证上行流量切换到正 确无环的路径上 (这里假设节点 Ri, 以及上行流量沿途各个节点在故障发生 时已经触发保护倒换, 将上行流量切换至备份路径上), 则下行流量也可以通 过正确的无环路径进行转发。 需要说明的是, 本实施例中, 所述节点 R发送的 下行流量是所述汇聚节 RC或汇聚节点 向所述节点 Ri' 发送并由所述节 点 R转发的流量。 Specifically, in the embodiment of the present invention, the node R triggers protection switching in the following manners. Manner 1: If the node R sends the uplink traffic before the fault occurs, and the direction in which the node R1 sends the fault message is opposite to the direction in which the node R sends the uplink traffic, the node R sends the uplink traffic. Switching to the same direction as the direction in which the node R1 sends the fault message, the uplink traffic is sent along the switched path. For example, if the node R sends the upstream traffic in the counterclockwise direction before the fault occurs, the node R1 sends the fault message clockwise. Because the direction in which the node R sends the uplink traffic is opposite to the direction of the fault message sent by the receiving node R1, The node R determines that the path for transmitting the upstream traffic in the counterclockwise direction has failed. At this time, the node R switches the transmission direction of the uplink traffic to the clockwise direction, and sends the uplink traffic along the switched path, that is, according to The uplink traffic is sent in a clockwise direction, thereby implementing fast protection switching of uplink traffic. The opposite situation is, if the node R3 sends the upstream traffic in the clockwise direction before the fault occurs, the node R1 also sends the fault message clockwise, because the direction of the uplink traffic sent by the node R3 and the direction of the fault message sent by the receiving node R1. Similarly, the node R3 determines that the path for transmitting the upstream traffic in the clockwise direction does not fail. At this time, the node R3 does not need to initiate protection switching, that is, the node R3 still transmits the upstream traffic in a clockwise direction. Since each of the other nodes on the ring topology network, such as the node R, can learn the fault information and can quickly and consistently switch to the protection path, the method provided by the embodiment of the present invention can implement the loop-free forwarding of the traffic. . Manner 2: If the node R sends the destination address and the node Ri, the downlink traffic source address of the same uplink traffic, and receives the uplink traffic sent by the node Ri before the fault occurs, the node R The outbound interface of the downlink traffic is changed to the inbound interface of the uplink traffic, and the downlink traffic is sent on the path that the node Ri′ sends the uplink traffic. Specifically, the node R may check the uplink traffic sent by the received node Ri, and obtain the source address Adds of the uplink traffic sent by the node Ri. The rce and the inbound interface Ιηφ find the entry in the local (ie, node R) routing table and the forwarding table. If the destination address of the downstream traffic sent by the node R matches the node Ri, the source address of the uplink traffic sent is Adds. If the rce is the same, the outbound interface corresponding to the entry is changed to the node Ri, and the inbound interface of the sent upstream traffic is Ιηί Ρ , that is, the outgoing interface of the downstream traffic sent by the node R becomes the node Ri, and the sent upstream traffic is sent. In the interface In^. In this way, the node R continues to transmit the downlink traffic on the path that the node Ri sends the uplink traffic, that is, the path that the node R sends the downlink traffic is the same as the node Ri, and the path for sending the uplink traffic is the same. The traffic is switched to the correct acyclic path (here, the node Ri is assumed, and the nodes along the upstream traffic have triggered the protection switching when the fault occurs, and the upstream traffic is switched to the backup path), then the downstream traffic can also pass the correct acyclic. The path is forwarded. It should be noted that, in this embodiment, the downlink traffic sent by the node R is the traffic sent by the convergence node R C or the sink node to the node Ri′ and forwarded by the node R.

方式三:若在故障出现前所述节点 R发送上行流量或下行流量且收到检测 到数据转发故障的节点 R1的路由器标识信息 (例如, 通过故障消息获得节点 R1的路由器标识信息 ), 则所述节点 R根据预先配置或保存的环形网络拓朴信 息和所述故障发生位置触发保护倒换, 即, 首先检测到数据转发故障的节点 R1与其相邻节点 R2在向邻居节点发送故障消息时 , 在 BFD报文中携带本节点 (节点 R1或节点 R2 ) 的路由器标识(Router ID )信息, 而沿途收到 BFD^艮文 的节点在转发 BFD报文时也在该 BFD报文中携带节点 R1或节点 R2的路由器 标识信息; 节点 R在收到故障消息后,根据其保存的环形网络拓朴信息和故障 发生位置,刷新到达环形拓朴网络上目的地址以及经由汇聚节点 Rc和汇聚节 点 到达环形拓朴网络外目的地址的路由, 从而实现快速保护倒换, 使上行 流量和下行流量都能够在检测到故障后进行正确转发。 Manner 3: If the node R sends uplink traffic or downlink traffic before the failure occurs, and receives the router identification information of the node R1 that detects the data forwarding failure (for example, obtaining the router identification information of the node R1 by using the fault message), The node R triggers protection switching according to the pre-configured or saved ring network topology information and the fault occurrence location, that is, when the node R1 that first detects the data forwarding failure and the neighbor node R2 send a fault message to the neighbor node, The BFD packet carries the router ID (node ID) of the node (node R1 or node R2), and the node that receives the BFD packet along the route also carries the node R1 or the BFD packet. The router identification information of the node R2; after receiving the fault message, the node R refreshes the destination address on the ring topology network and reaches the ring through the sink node R c and the sink node according to the ring network topology information and the fault occurrence location saved by the node R. Routing the destination address of the network outside the network to implement fast protection switching, enabling both upstream and downstream traffic to be detected. Correct forward fault.

请参阅附图 6a, 是本发明实施例提供的环形拓朴网络的故障处理装置结 构示意图。该装置可以是位于环形拓朴网络上的任意相邻节点 R1和 /或 R2。为 了便于说明, 仅仅示出了与本发明实施例相关的部分。 附图 6a示例的环形拓 朴网络的故障处理装置包括故障检测模块 601和故障消息发送模块 602,其中: 故障检测模块 601 , 用于检测所述节点 R1和节点 R2之间的数据转发是否 出现故障。 Referring to FIG. 6a, it is a fault processing device of a ring topology network according to an embodiment of the present invention. Schematic diagram. The device may be any adjacent node R1 and/or R2 located on a ring topology network. For the convenience of description, only parts related to the embodiment of the present invention are shown. The fault processing device of the ring topology network illustrated in FIG. 6a includes a fault detecting module 601 and a fault message sending module 602, wherein: the fault detecting module 601 is configured to detect whether data forwarding between the node R1 and the node R2 is faulty. .

在本实施例中, 对环形拓朴网络上的节点, 不要求备份路径的下一跳节 点到目的节点的最短路径一定不能经过计算节点本身(参阅前述实施例附图 1 及其对应的文字说明部分), 只要相邻节点 R1和 R2能够检测出所述相邻节点 之间的数据转发是否出现故障。  In this embodiment, for the node on the ring topology network, the shortest path from the next hop node to the destination node of the backup path is not required to pass through the computing node itself (refer to FIG. 1 of the foregoing embodiment and its corresponding text description). Partly), as long as the neighboring nodes R1 and R2 are able to detect whether data forwarding between the neighboring nodes has failed.

故障消息发送模块 602 , 用于若所述故障检测模块 601检测到节点 R1和节 点 R2之间的数据转发出现故障, 则将故障消息沿着未出现故障的链路向紧邻 所述节点 R1和 /或节点 R2的下一节点传递直至到达环形拓朴网络上的汇聚节 点!^和汇聚节点 R , 所述汇聚节点 Rc和汇聚节点 用于终结所述故障消 息。 The fault message sending module 602 is configured to: if the fault detecting module 601 detects that the data forwarding between the node R1 and the node R2 is faulty, move the fault message along the non-faulty link to the node R1 and/or Or the next node of node R2 passes until it reaches the sink node on the ring topology network! And a sink node R, the sink node R c and the sink node are used to terminate the fault message.

在本实施例中, 环形拓朴网络上的汇聚节点 Rc和汇聚节点 主要用于 将所述环形拓朴网络上的其他节点发送过来的流量向环形拓朴网络外转发, 或者将所述环形拓朴网络外的流量向所述环形拓朴网络上的其他节点转发。 如附图 3所示的环形拓朴网络(箭头表示故障消息传递方向), 节点 R1和节点 R2之间的数据转发出现故障, 则节点 R1或节点 R2上的故障消息发送模块 602 将故障消息沿着未出现故障的链路向紧邻节点 R1和 /或节点 R2的下一节点传 递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 R , 或者故障消息发 送模块 602将故障消息分别从两个方向传递直至到达环形拓朴网络上的汇聚 节点 Rc和汇聚节点 R 。 例如, 节点 R1上的故障消息发送模块 602将故障消息 沿着未出现故障的链路向其紧邻的下一节点 R3传递, 节点 R3也将收到的故障 消息向其紧邻的下一节点 R4传递, ... ...,节点 R4之后的节点重复同样的动作, 直至故障消息传递至汇聚节点 Rc ;同样地,节点 R2上的故障消息发送模块 602 也将故障消息沿着未出现故障的链路向其紧邻的下一节点 R6传递, 节点 R6将 收到的故障消息向其紧邻的下一节点 R7传递, ... ... , 节点 R7之后的节点重复 同样的动作, 直至故障消息传递至汇聚节点 R 。 汇聚节点!^和汇聚节点 在收到所述故障消息后终结所述故障消息, 即, 汇聚节点!^和汇聚节点 不再继续将故障消息向环形拓朴网络上的其他节点传递。 从节点 R1和节点 R2 上的故障消息发送模块 602传递故障消息的方式以及汇聚节点!^和汇聚节点 终结所述故障消息可以看出, 汇聚节点!^和汇聚节点 终结从两个方向 过来的故障消息, 即, 相当于以汇聚节点 Rc (或汇聚节点 Rc 和环形拓朴 网络上的节点 R1 (或节点 R2 )为界, 将环形拓朴网络分成左右两半, 每个环 形拓朴网络上的节点只会从环形拓朴网络上的一侧收到故障消息, 如此, 实 现将环形拓朴网络上某处的故障信息快速地通告给环形拓朴网络上的所有节 点。 In this embodiment, the aggregation node R c and the aggregation node on the ring topology network are mainly used to forward the traffic sent by other nodes on the ring topology network to the ring topology network, or the ring is Traffic outside the topology network is forwarded to other nodes on the ring topology network. As shown in the ring topology network shown in FIG. 3 (the arrow indicates the fault message transmission direction), the data forwarding between the node R1 and the node R2 fails, and the fault message sending module 602 on the node R1 or the node R2 will follow the fault message. The failure-free link is transmitted to the next node immediately adjacent to the node R1 and/or the node R2 until reaching the sink node R c and the sink node R on the ring topology network, or the fault message sending module 602 separates the fault message from two The directions are passed until reaching the sink node R c and the sink node R on the ring topology network. For example, the fault message sending module 602 on the node R1 passes the fault message along the non-faulty link to its next node R3, and the node R3 also transmits the received fault message to its next node R4. , ..., the node after the node R4 repeats the same action until the fault message is delivered to the sink node R c ; likewise, the fault message sending module 602 on the node R2 also follows the fault message along the faultless The link is passed to its next node R6, and the node R6 passes the received fault message to its next node R7, and the node after node R7 repeats the same action until the fault message Pass to the aggregation node R. Convergence node! ^ and aggregation nodes Terminating the fault message after receiving the fault message, that is, the sink node! ^ and the aggregation node no longer continue to pass fault messages to other nodes on the ring topology network. The manner in which the fault message transmission module 602 from the node R1 and the node R2 transmits the fault message and the aggregation node! ^ And the aggregation node terminates the fault message can be seen, the aggregation node! ^ and the sink node terminates the fault message coming from two directions, that is, equivalent to the ring topology with the sink node R c (or the sink node R c and the node R1 (or node R2 ) on the ring topology network The network is divided into left and right halves. The nodes on each ring topology network only receive fault messages from one side of the ring topology network. In this way, the fault information of somewhere on the ring topology network is quickly notified to the ring. Topology of all nodes on the network.

需要说明的是, 以上环形拓朴网络的故障处理装置的实施方式中, 各功 能模块的划分仅是举例说明, 实际应用中可以根据需要, 例如相应硬件的配 置要求或者软件的实现的便利考虑, 而将上述功能分配由不同的功能模块完 成, 即将所述环形拓朴网络的故障处理装置的内部结构划分成不同的功能模 块, 以完成以上描述的全部或者部分功能。 而且, 实际应用中, 本实施例中 的相应的功能模块可以是由相应的硬件实现, 也可以由相应的硬件执行相应 的软件完成, 例如, 前述的故障检测模块, 可以是具有执行前述检测所述节 点 R1和节点 R2之间的数据转发是否出现故障的硬件, 例如故障检测器, 也可 以是能够执行相应计算机程序从而完成前述功能的一般处理器或者其他硬件 设备; 再如前述的故障消息发送模块, 可以是具有执行前述若所述故障检测 模块(或故障检测器)检测到节点 R1和节点 R2之间的数据转发出现故障, 则 将故障消息沿着未出现故障的链路向紧邻所述节点 R1和 /或节点 R2的下一节 点传递直至到达环形拓朴网络上的汇聚节点!^和汇聚节点 功能的硬件, 例如故障消息发送器, 也可以是能够执行相应计算机程序从而完成前述功能 的一般处理器或者其他硬件设备(本说明书提供的各个实施例都可应用上述 描述原则 )。  It should be noted that, in the implementation manner of the fault processing apparatus of the above-mentioned ring topology network, the division of each functional module is only an example, and the actual application may be considered according to requirements, such as configuration requirements of corresponding hardware or convenience of implementation of software. The function distribution is completed by different functional modules, that is, the internal structure of the fault processing device of the ring topology network is divided into different functional modules to complete all or part of the functions described above. Moreover, in practical applications, the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be executed by corresponding hardware. For example, the foregoing fault detection module may have the foregoing detection Whether the data forwarding between the node R1 and the node R2 fails, such as a fault detector, may also be a general processor or other hardware device capable of executing a corresponding computer program to perform the foregoing functions; The module may be configured to perform the foregoing if the fault detection module (or fault detector) detects that the data forwarding between the node R1 and the node R2 is faulty, and then the fault message is along the link that is not faulty. The next node of node R1 and/or node R2 is passed until it reaches the sink node on the ring topology network! ^ and the hardware of the aggregation node function, such as the fault message sender, may also be a general processor or other hardware device capable of executing the corresponding computer program to perform the aforementioned functions (the various descriptions of the embodiments described above may be applied to the various embodiments provided herein).

附图 6a示例的故障检测模块 601可以进一步包括第一检测单元 6011 , 故障 消息发送模块 602进一步包括第一发送单元 6021 ,如附图 6b所示本发明另一实 施例提供的环形拓朴网络的故障处理装置, 其中:  The fault detection module 601 illustrated in FIG. 6a may further include a first detecting unit 6011, and the fault message sending module 602 further includes a first sending unit 6021, such as the ring topology network provided by another embodiment of the present invention as shown in FIG. 6b. Fault handling device, wherein:

第一检测单元 6011 , 用于通过双向转发检测(Bidirectional Forwarding Detection, BFD)来检测连接所述节点 Rl和节点 R2之间的链路是否出现故障; 第一发送单元 6021 , 用于向紧邻所述节点 R1和节点 R2的下一节点传递故 障消息直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 R^。 The first detecting unit 6011 is configured to perform bidirectional forwarding detection (Bidirectional Forwarding) Detection, BFD) to detect whether a link between the node R1 and the node R2 is faulty; the first sending unit 6021 is configured to transmit a fault message to the next node immediately adjacent to the node R1 and the node R2 until the ring is reached The aggregation node R c and the convergence node R^ on the topology network.

附图 6a示例的故障检测模块 601也可以进一步包括第二检测单元 6012 ,故 障消息发送模块 602进一步包括第二发送单元 6022 ,如附图 6c所示本发明另一 实施例提供的环形拓朴网络的故障处理装置, 其中: 节点 R2之间的链路的对端节点是否出现故障;  The fault detection module 601 illustrated in FIG. 6a may further include a second detecting unit 6012, and the fault message sending module 602 further includes a second sending unit 6022, such as the ring topology network provided by another embodiment of the present invention as shown in FIG. 6c. The fault processing device, wherein: the opposite end node of the link between the nodes R2 fails;

第二发送单元 6022, 用于向紧邻所述节点 R1或节点 R2的下一节点传递故 障消息直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 R^。 The second sending unit 6022 is configured to transmit a fault message to the next node immediately adjacent to the node R1 or the node R2 until reaching the sink node R c and the sink node R^ on the ring topology network.

即, 若第二检测单元 6012检测到所述节点 R2出现故障, 则所述第二发送 单元 6022将故障消息沿着未出现故障的链路向紧邻所述节点 R1的下一节点传 递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 R , 或者若第二检测 单元 6012检测到所述节点 R1出现故障, 则所述第二发送单元 6022将故障消息 沿着未出现故障的链路向紧邻所述节点 R2的下一节点传递直至到达环形拓朴 网络上的汇聚节点!^和汇聚节点 。 That is, if the second detecting unit 6012 detects that the node R2 is faulty, the second sending unit 6022 transmits the fault message along the link that has not failed to the next node immediately adjacent to the node R1 until reaching the ring. The sink node R c and the sink node R on the topology network, or if the second detecting unit 6012 detects that the node R1 is faulty, the second sending unit 6022 sends a fault message along the link that does not fail. The next node next to the node R2 passes until it reaches the sink node on the ring topology network! ^ and aggregation nodes.

附图 6a至附图 6c任示例的环形拓朴网络的故障处理装置可以进一步包括 会话建立模块 701, 如附图 7所示本发明另一实施例提供的环形拓朴网络的故 障处理装置。 会话建立模块 701用于在所述任意相邻节点 R1和 R2之间建立 BFD会话 ( Session )。  The fault processing apparatus of the ring topology network of any of the illustrated FIGS. 6a to 6c may further include a session establishing module 701, such as the fault processing apparatus of the ring topology network provided by another embodiment of the present invention as shown in FIG. The session establishing module 701 is configured to establish a BFD session (Session) between the any adjacent nodes R1 and R2.

本发明实施例还提供一种路由设备, 所述路由设备包括附图 6或附图 7示 例的环形拓朴网络的故障处理装置。  The embodiment of the present invention further provides a routing device, where the routing device includes the fault processing device of the ring topology network shown in FIG. 6 or FIG.

请参阅附图 8,是本发明另一实施例提供的环形拓朴网络的故障处理装置 结构示意图。 该装置可以是位于环形拓朴网络上没有检测到数据转发故障的 任意节点1。 为了便于说明, 仅仅示出了与本发明实施例相关的部分。 附图 8 示例的环形拓朴网络的故障处理装置包括故障消息接收模块 801和故障消息 传递模块 802, 其中:  FIG. 8 is a schematic structural diagram of a fault processing apparatus of a ring topology network according to another embodiment of the present invention. The device may be any node 1 located on the ring topology network without detecting a data forwarding failure. For the convenience of description, only parts related to the embodiment of the present invention are shown. The fault handling apparatus of the exemplary ring topology network of Figure 8 includes a fault message receiving module 801 and a fault message delivery module 802, wherein:

故障消息接收模块 801,用于接收检测到数据转发故障的节点 R1发送的故 障消息。 与附图 6a至附图 6b或附图 7的实施例类似, 在本实施例中, 并不要求备份 路径的下一跳节点到目的节点的最短路径一定不能经过计算节点本身 (参阅 前述实施例附图 1及其对应的文字说明部分), 只要节点 R1与其相邻节点 R2能 The fault message receiving module 801 is configured to receive a fault message sent by the node R1 that detects the data forwarding fault. Similar to the embodiment of FIG. 6a to FIG. 6b or FIG. 7, in this embodiment, the shortest path from the next hop node to the destination node of the backup path is not required to pass through the computing node itself (refer to the foregoing embodiment). Figure 1 and its corresponding textual description section), as long as the node R1 and its neighboring node R2 can

(Bidirectional Forwarding Detection , BFD)来检测所述节点 R1和节点 R2之间的 数据转发是否出现故障, 利用 BFD向各自的相邻节点传递故障信息, 进而逐 跳将故障信息传递到环形拓朴网络上的所有节点, 即, 若节点 R1与其相邻节 点 R2通过 BFD检测到连接所述节点 R1和节点 R2之间的链路出现故障,则所述 节点 R1和 /或所述节点 R2将故障消息沿着未出现故障的链路向紧邻各自的下 一节点传递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 R , 或者, 所述任意相邻节点 R1或 R2通过 BFD检测构成所述节点 R1和节点 R2之间的链 路的对端节点是否出现故障, 若所述节点 R2出现故障, 则所述节点 R1将故障 消息沿着未出现故障的链路向紧邻所述节点 R1的下一节点传递直至到达环形 拓朴网络上的汇聚节点1^和汇聚节点 RC2 , 或者若所述节点 R1出现故障, 则 所述节点 R2将故障消息沿着未出现故障的链路向紧邻所述节点 R2的下一节 点传递直至到达环形拓朴网络上的汇聚节点1^和汇聚节点 R 。 (Bidirectional Forwarding Detection, BFD) to detect whether the data forwarding between the node R1 and the node R2 is faulty, and use BFD to transmit fault information to the respective neighboring nodes, and then transmit the fault information to the ring topology network hop by hop. All nodes, that is, if the node R1 and its neighboring node R2 detect through BFD that the link between the node R1 and the node R2 fails, the node R1 and/or the node R2 will follow the fault message. The link that has not failed is transmitted to the next next node until it reaches the sink node R c and the sink node R on the ring topology network, or the arbitrary neighbor node R1 or R2 forms the node through BFD detection. Whether the opposite end node of the link between R1 and node R2 fails, and if the node R2 fails, the node R1 sends a fault message along the non-faulty link to the next next to the node R1. transmitting nodes until reaching convergence node on the ring network topology and the convergence node 1 ^ R C 2, R1 or if the node fails, the failure message to the node R2 along without failure Proximate the link to the next node node R2 is transmitted on the ring until the convergence node 1 ^ network topology and aggregation node R reaches.

故障消息传递模块 802, 用于将所述故障消息接收模块 801接收的故障消 至所述节点 R的相邻节点,直至所述故障消息到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 R 。 The fault message delivery module 802 is configured to cancel the fault received by the fault message receiving module 801 to the neighboring node of the node R until the fault message reaches the sink node R c and the sink node R on the ring topology network. .

与附图 6a至附图 6c或附图 7的实施例类似, 在本实施例中, 环形拓朴网络 上的汇聚节点 Rc和汇聚节点 Rc2主要用于将所述环形拓朴网络上的其他节点 发送过来的流量向环形拓朴网络外转发, 或者将所述环形拓朴网络外的流量 向所述环形拓朴网络上的其他节点转发。 如附图 5所示的环形拓朴网络(箭头 表示故障消息传递方向), 节点 R1和节点 R2之间的链路出现故障, 则节点 R1 和节点 R2将故障消息分别沿着未出现故障的链路向紧邻各自的下一节点传 递, 或者节点 R1和节点 R2将故障消息分别从两个方向传递。 例如, 假设节点 R是节点 R1的紧邻下一节点,且节点 R和节点 R1之间的链路没有出现故障, 则 当节点 R上的故障消息接收模块 801接收到节点 R1从顺时针方向传递过来的 故障消息时, 节点 R上的故障消息传递模块 802将故障消息也按照顺时针方向 将故障消息传递至其紧邻的下一节点 R' , 节点 R'也将收到的故障消息按照顺 时针方向传递至其紧邻的下一节点 R3传递, , 节点 R3之后的节点重复同 样的动作, 直至故障消息传递至汇聚节点 Rc ; 同样地,假设节点 R4是节点 R2 的紧邻下一节点, 且节点 R4和节点 R2之间的链路没有出现故障, 则当节点 R4 上的故障消息接收模块 801收到节点 R2从逆时针方向传递过来的故障消息时, 节点 R4上的故障消息传递模块 802也按照逆时针方向将故障消息传递至其紧 邻的下一节点 R5 , 节点 R5也将收到的故障消息按照逆时针方向传递至其紧邻 的下一节点 R6传递, ... ..., 节点 R6之后的节点重复同样的动作, 直至故障消 息传递至汇聚节点 R 。 汇聚节点!^和汇聚节点 在收到所述故障消息后终 结所述故障消息, 即, 汇聚节点!^和汇聚节点 不再继续将故障消息向环 形拓朴网络上的其他节点传递。 从节点 R1和节点 R2传递故障消息的方式以及 汇聚节点!^和汇聚节点 终结所述故障消息可以看出, 汇聚节点 Rc和汇聚 节点 终结从两个方向过来的故障消息, 即, 相当于以汇聚节点 Rc (或汇 聚节点 Rc 和环形拓朴网络上的节点 R1 (或节点 R2 )为界, 将环形拓朴网络 分成左右两半, 每个环形拓朴网络上的节点只会从环形拓朴网络上的一侧收 到故障消息, 如此, 实现将环形拓朴网络上某处的故障信息快速地通告给环 形拓朴网络上的所有节点。 Similar to the embodiment of FIG. 6a to FIG. 6c or FIG. 7, in this embodiment, the sink node R c and the sink node R c2 on the ring topology network are mainly used on the ring topology network. The traffic sent by other nodes is forwarded to the ring topology network, or the traffic outside the ring topology network is forwarded to other nodes on the ring topology network. As shown in the ring topology network shown in FIG. 5 (the arrow indicates the direction of the fault message transmission), the link between the node R1 and the node R2 fails, and the node R1 and the node R2 respectively follow the failure message along the chain that has not failed. The way is passed to the next next node, or node R1 and node R2 pass the fault message from both directions. For example, assuming that node R is immediately adjacent to the next node of node R1, and the link between node R and node R1 does not fail, then When the fault message receiving module 801 on the node R receives the fault message transmitted by the node R1 from the clockwise direction, the fault message delivery module 802 on the node R transmits the fault message to the immediately adjacent one in the clockwise direction. The next node R', the node R' also passes the received fault message in a clockwise direction to the next node R3 immediately adjacent to it, and the node after the node R3 repeats the same action until the fault message is transmitted to the sink node R. c . Similarly, assuming node R4 is next to the next node of node R2, and the link between node R4 and node R2 does not fail, then when the fault message receiving module 801 on node R4 receives node R2 from counterclockwise When the fault message is transmitted in the direction, the fault message delivery module 802 on the node R4 also transmits the fault message to the next node R5 immediately adjacent thereto in the counterclockwise direction, and the node R5 also transmits the received fault message to the counterclockwise direction to the counterclockwise direction. The next node R6 is passed, and the node after node R6 repeats the same action until the fault message is transmitted to the sink node R. Convergence node! ^ and the sink node terminates the fault message after receiving the fault message, that is, the sink node! ^ and the aggregation node no longer continue to pass fault messages to other nodes on the ring topology network. The way to send fault messages from node R1 and node R2 and the aggregation node! ^ And the sink node terminates the fault message, it can be seen that the sink node R c and the sink node terminate the fault message coming from two directions, that is, equivalent to the sink node R c (or the sink node R c and the ring topology network) The node R1 (or node R2) is bounded, and the ring topology network is divided into left and right halves. The nodes on each ring topology network only receive fault messages from one side of the ring topology network. The fault information somewhere on the ring topology network is quickly advertised to all nodes on the ring topology network.

附图 8示例的环形拓朴网络的故障处理装置进一步包括保护倒换触发模 块 901 ,如附图 9所示本发明另一实施例提供的环形拓朴网络的故障处理装置。 保护倒换触发模块 901用于在节点 R接收来自检测到数据转发故障的节点 R1 发送的故障消息或者将故障消息以与所述节点 R1发送所述故障消息的方向相 同的方向将所述故障消息发送至节点 R的相邻节点的同时, 触发保护倒换。  The fault processing apparatus of the ring topology network illustrated in FIG. 8 further includes a protection switching trigger module 901, such as the fault processing apparatus of the ring topology network provided by another embodiment of the present invention as shown in FIG. The protection switching triggering module 901 is configured to receive, at the node R, a fault message sent by the node R1 that detects the data forwarding failure or send the fault message in the same direction as the direction in which the node R1 sends the fault message. At the same time as the adjacent node of the node R, the protection switching is triggered.

在进一步说明节点 R触发保护倒换的方式之前,需要说明的是关于上行流 量和下行流量的含义。 如附图 5示例的环形拓朴网络, 所谓上行流量, 是指环 形拓朴网络上某个节点(例如, 节点 R )向汇聚节点 Rc或汇聚节点 发送的 流量, 而下行流量是指汇聚节点 Rc威汇聚节点 R ^向环形拓朴网络上的某个 节点 (例如, 节点 R )发送的流量。 附图 9示例的保护倒换触发模块 901可以包括第一保护倒换触发单元 1001 ,如附图 10所示本发明另一实施例提供的环形拓朴网络的故障处理装置。 第一保护倒换触发单元 1001用于若在所述故障出现前所述节点 R发送上行流 量且所述节点 R1发送所述故障消息的方向与所述节点 R发送所述上行流量的 发送方向相反, 则将所述上行流量的发送方向切换至与所述节点 R1发送所述 故障消息的方向相同的方向, 使所述节点 R沿切换后的路径发送所述上行流 量。 例如, 若在故障出现前, 节点 R按照逆时针方向发送上行流量, 节点 R1 是按照顺时针发送故障消息, 由于节点 R发送上行流量的方向与收到节点 R1 发送的故障消息的方向相反,则节点 R判断原来按照逆时针方向传递所述上行 流量的路径发生了故障,此时,节点 R上的第一保护倒换触发单元 1001将所述 上行流量的发送方向切换至顺时针方向,使得节点 R沿切换后的路径发送上行 流量, 即, 按照顺时针方向发送所述上行流量, 从而实现了上行流量的快速 保护倒换。 相反的情形是, 若在故障出现前, 节点 R3按照顺时针方向发送上 行流量, 节点 R1也是按照顺时针发送故障消息, 由于节点 R3发送上行流量的 方向与收到节点 R1发送的故障消息的方向相同, 则节点 R3判断原来按照顺时 针方向传递所述上行流量的路径没有发生故障, 此时, 节点 R3无需启动保护 倒换, 即, 节点 R3仍然按照顺时针方向发送所述上行流量。 由于环形拓朴网 络上的其他每个节点如节点 R—样,都能够得知故障信息且可以快速一致地倒 换到保护路径, 因此, 本发明实施例提供的方法能够实现流量的无环路转发。 Before further explaining the manner in which the node R triggers the protection switching, it is necessary to explain the meanings of the upstream traffic and the downstream traffic. The circular topology network as illustrated in FIG. 5, the so-called uplink traffic refers to the traffic sent by a node (for example, node R) on the ring topology network to the sink node R c or the sink node, and the downlink traffic refers to the sink node. Rc Wei sink node R ^ traffic sent to a node (for example, node R) on the ring topology network. The protection switching trigger module 901 illustrated in FIG. 9 may include a first protection switching trigger unit 1001, such as the fault processing apparatus of the ring topology network provided by another embodiment of the present invention as shown in FIG. The first protection switching triggering unit 1001 is configured to: if the node R sends uplink traffic before the fault occurs, and the direction in which the node R1 sends the fault message is opposite to the sending direction in which the node R sends the uplink traffic, Transmitting the uplink traffic to the same direction as the direction in which the node R1 sends the fault message, and causing the node R to send the uplink traffic along the switched path. For example, if the node R sends the upstream traffic in the counterclockwise direction before the fault occurs, the node R1 sends the fault message clockwise. Because the direction of the uplink traffic sent by the node R is opposite to the direction of the fault message sent by the receiving node R1, The node R determines that the path that originally transmitted the upstream traffic in the counterclockwise direction has failed. At this time, the first protection switching triggering unit 1001 on the node R switches the sending direction of the upstream traffic to a clockwise direction, so that the node R The uplink traffic is sent along the switched path, that is, the uplink traffic is sent in a clockwise direction, thereby implementing fast protection switching of the uplink traffic. The opposite situation is, if the node R3 sends the upstream traffic in the clockwise direction before the fault occurs, the node R1 also sends the fault message clockwise, because the direction of the uplink traffic sent by the node R3 and the direction of the fault message sent by the receiving node R1. Similarly, the node R3 determines that the path for transmitting the upstream traffic in the clockwise direction does not fail. At this time, the node R3 does not need to initiate protection switching, that is, the node R3 still transmits the upstream traffic in a clockwise direction. Since each of the other nodes on the ring topology network, such as the node R, can learn the fault information and can quickly and consistently switch to the protection path, the method provided by the embodiment of the present invention can implement the loop-free forwarding of the traffic. .

附图 9示例的保护倒换触发模块 901可以包括第二保护倒换触发单元 1101 ,如附图 11所示本发明另一实施例提供的环形拓朴网络的故障处理装置。 第二保护倒换触发单元 1101用于若在所述故障出现前所述节点 R发送目的地 址与节点 Ri, 发送的上行流量源地址相同的下行流量且收到所述节点 Ri, 发 送的所述上行流量, 则所述节点 R将所述下行流量的出接口更改为所述节点 Ri, 的上行流量的入接口, 使得所述节点 R在所述节点 Ri, 发送所述上行流量 的路径上发送所述下行流量。具体地, 节点 R上的第二保护倒换触发单元 1101 可以对收到的节点 Ri, 的上行流量进行检查, 通过获取节点 Ri, 发送的上行 流量的源地址 Adds。《rce和入接口 In^, 在本地 (即节点 R )路由表和转发表 中查找表项, 若匹配到节点 R发送的下行流量的目的地址与节点 Ri, 发送的 上行流量的源地址 Adds。《rce相同, 则将该表项对应的出接口更改为节点 Ri, 发送的上行流量的入接口 In^, 即, 此时节点 R发送的下行流量的出接口变成 节点 Ri, 发送的上行流量的入接口 In^。 如此, 相当于节点 R在所述节点 R' 发送所述上行流量的路径上继续发送其下行流量, 即节点 R发送下行流量的 路径与节点 发送上行流量的路径相同, 如此, 只要保证上行流量切换到 正确无环的路径上 (这里假设节点 Ri, 以及上行流量沿途各个节点在故障发 生时已经触发保护倒换, 将上行流量切换至备份路径上), 则下行流量也可以 通过正确的无环路径进行转发。 需要说明的是, 本实施例中, 所述节点 R发送 的下行流量是所述汇聚节点 Rci或汇聚节点 向所述节点 Ri' 发送并由所述 节点 R转发的流量。 The protection switching trigger module 901 illustrated in FIG. 9 may include a second protection switching trigger unit 1101, such as the fault processing apparatus of the ring topology network provided by another embodiment of the present invention as shown in FIG. The second protection switching triggering unit 1101 is configured to: if the node R sends the downlink traffic whose destination address is the same as the uplink traffic source address sent by the node Ri and the node Ri before the fault occurs, the uplink is sent by the node Ri. And the node R changes the outbound interface of the downlink traffic to an inbound interface of the uplink traffic of the node Ri, so that the node R sends the path on the path that sends the uplink traffic on the node Ri. Describe the downstream traffic. Specifically, the second protection switching triggering unit 1101 on the node R may check the uplink traffic of the received node Ri, and obtain the source address Adds of the uplink traffic sent by the node Ri. Rce and the inbound interface In^, look up the entry in the local (ie node R) routing table and forwarding table, if it matches the destination address of the downstream traffic sent by the node R and the node Ri, the sent The source address of the upstream traffic is Adds. If the rce is the same, the outbound interface corresponding to the entry is changed to the node Ri, and the inbound interface of the sent upstream traffic is In^, that is, the outgoing interface of the downstream traffic sent by the node R becomes the node Ri, and the uplink traffic is sent. In the interface In^. In this way, the node R continues to transmit the downlink traffic on the path that the node R′ sends the uplink traffic, that is, the path that the node R sends the downlink traffic is the same as the path that the node sends the uplink traffic, so that the uplink traffic switching is guaranteed. On the correct acyclic path (assuming that the node Ri, and the nodes along the upstream traffic have triggered the protection switching when the fault occurs, switching the upstream traffic to the backup path), the downstream traffic can also be performed through the correct acyclic path. Forward. It should be noted that, in this embodiment, the downlink traffic sent by the node R is the traffic sent by the sink node Rci or the sink node to the node Ri′ and forwarded by the node R.

附图 9示例的保护倒换触发模块 901可以包括第三保护倒换触发单元 1201 ,如附图 12所示本发明另一实施例提供的环形拓朴网络的故障处理装置。 第三保护倒换触发单元 1201用于若在所述故障出现前所述节点 R发送上行流 量或下行流量且收到检测到数据转发故障的节点 R1的路由器标识信息(例如, 通过故障消息获得节点 R1的路由器标识信息 ),则根据预先配置或保存的环形 网络拓朴信息和所述故障发生位置触发保护倒换。 具体地, 首先检测到故障 的节点 R1与其相邻节点 R2在向邻居节点发送故障消息时 , 在 BFD报文中携带 本节点(节点 R1或节点 R2 )的路由器标识( Router ID )信息, 而沿途收到 BFD 报文的节点在转发 BFD报文时也在该 BFD报文中携带节点 R1或节点 R2的路 由器标识信息; 在节点 R上的故障消息接收模块 801收到故障消息后, 第三保 护倒换触发单元 1201根据其保存的环形网络拓朴信息和故障发生位置, 刷新 到达环形拓朴网络上目的地址以及经由汇聚节点 Rc和汇聚节点 到达环形 拓朴网络外目的地址的路由, 从而实现快速保护倒换, 使上行流量和下行流 量都能够在检测到故障后进行正确转发。 The protection switching trigger module 901 illustrated in FIG. 9 may include a third protection switching trigger unit 1201, such as the fault processing apparatus of the ring topology network provided by another embodiment of the present invention as shown in FIG. The third protection switching triggering unit 1201 is configured to: if the node R sends uplink traffic or downlink traffic before the fault occurs, and receives the router identifier information of the node R1 that detects the data forwarding fault (for example, obtaining the node R1 by using the fault message) The router identification information) triggers protection switching according to the pre-configured or saved ring network topology information and the fault occurrence location. Specifically, the node R1 that first detects the fault and the neighboring node R2, when transmitting the fault message to the neighboring node, carry the router ID (node ID) information of the node (node R1 or node R2) in the BFD packet, and along the way The node that receives the BFD packet carries the router identification information of the node R1 or the node R2 in the BFD packet when forwarding the BFD packet. After the fault message receiving module 801 on the node R receives the fault message, the third protection is performed. The switching trigger unit 1201 refreshes the destination address on the ring topology network and the route to the destination address outside the ring topology network through the sink node R c and the sink node according to the saved ring topology information and the fault occurrence location, thereby achieving fast Protection switching enables both upstream and downstream traffic to be correctly forwarded after a failure is detected.

本发明实施例还提供一种路由设备, 所述路由设备包括附图 8至附图 12 任一示例的环形拓朴网络的故障处理装置。  The embodiment of the present invention further provides a routing device, where the routing device includes the fault processing device of the ring topology network of any of the examples of FIG. 8 to FIG.

需要说明的是,上述装置各模块 /单元之间的信息交互、执行过程等内容, 由于与本发明方法实施例基于同一构思, 其带来的技术效果与本发明方法实 施例相同, 具体内容可参见本发明方法实施例中的叙述, 此处不再赘述。 本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成, 比如以下各种方法的一种或多 种或全部: It should be noted that the information interaction between the modules/units of the foregoing device, the execution process, and the like are the same as the embodiment of the method of the present invention. Reference is made to the description in the method embodiment of the present invention, and details are not described herein again. One of ordinary skill in the art will appreciate that all or part of the various steps of the above-described embodiments may be performed by a program to instruct related hardware, such as one or more or all of the following various methods:

方法一:  method one:

环形拓朴网络上的任意相邻节点 R1和 R2检测所述节点 R1和节点 R2之间 的数据转发是否出现故障;  Any adjacent nodes R1 and R2 on the ring topology network detect whether data forwarding between the node R1 and the node R2 fails;

若所述节点 R1和节点 R2之间的数据转发出现故障, 则所述节点 R1和 /或 所述节点 R2将故障消息沿着未出现故障的链路向紧邻各自的下一节点传递直 至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 RC2 , 所述汇聚节点 Rc和汇 聚节点 用于终结所述故障消息。 If the data forwarding between the node R1 and the node R2 fails, the node R1 and/or the node R2 transfer the fault message along the non-faulty link to the next next node until the ring is reached. A sink node R c and a sink node R C 2 on the topology network, the sink node R c and the sink node are used to terminate the fault message.

方法二:  Method Two:

环形拓朴网络上的节点 R接收来自检测到数据转发故障的节点 R1发送的 故障消息;  The node R on the ring topology network receives the fault message sent by the node R1 that detects the data forwarding failure;

所述节点 R将所述故障消息以与所述节点 R1发送所述故障消息的方向相 同的方向将所述故障消息发送至所述节点 R的相邻节点,直至所述故障消息到 达环形拓朴网络上的汇聚节点!^和汇聚节点 R , 所述汇聚节点 Rc和汇聚节 点 用于将所述环形拓朴网络上的流量向所述环形拓朴网络外转发或将所 述环形拓朴网络外的流量向所述环形拓朴网络上转发并终结所述故障消息。 The node R sends the fault message to the neighboring node of the node R in the same direction as the direction in which the node R1 sends the fault message until the fault message reaches the ring topology Aggregation nodes on the network! And a sink node R, the sink node R c and the sink node are configured to forward traffic on the ring topology network to the outside of the ring topology network or to send traffic outside the ring topology network to the The fault message is forwarded and terminated on the ring topology network.

该程序可以存储于一计算机可读存储介质中, 存储介质可以包括: 只读 存储器( ROM, Read Only Memory )、随机存取存储器( RAM, Random Access Memory ). 磁盘或光盘等。  The program may be stored in a computer readable storage medium. The storage medium may include: a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

以上对本发明实施例提供的环形拓朴网络的故障处理方法、 装置和一种 式进行了阐述, 以上实施例的说明只是用于帮助理解本发明的方法及其核心 思想; 同时, 对于本领域的一般技术人员, 依据本发明的思想, 在具体实施 方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对 本发明的限制。  The method, the device and the formula for the fault processing of the ring topology network provided by the embodiment of the present invention are described above. The description of the above embodiments is only for helping to understand the method and the core idea of the present invention; The present invention is not limited by the scope of the present invention, and the details of the present invention are not limited by the scope of the present invention.

Claims

权 利 要 求 书 Claim 1、 一种环形拓朴网络的故障处理方法, 其特征在于, 所述方法包括: 环形拓朴网络上的任意相邻节点 R1和 /或 R2检测所述节点 R1和节点 R2 之间的数据转发是否出现故障;  A fault processing method for a ring topology network, the method comprising: detecting, by any adjacent node R1 and/or R2 on a ring topology network, data forwarding between the node R1 and the node R2 Whether there is a failure; 若所述节点 R1和节点 R2之间的数据转发出现故障, 则所述节点 R1和 / 或所述节点 R2将故障消息沿着未出现故障的链路向紧邻各自的下一节点传 递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 , 所述汇聚节点 Rc和汇聚节点 用于终结所述故障消息。 If the data forwarding between the node R1 and the node R2 fails, the node R1 and/or the node R2 transmits a fault message along the non-faulty link to the next next node until the ring is reached. A sink node R c and a sink node on the topology network, the sink node R c and the sink node are used to terminate the fault message. 2、 如权利要求 1所述的方法, 其特征在于, 所述环形拓朴网络上的任 意相邻节点 R1和 /或 R2检测所述节点 R1和节点 R2之间的数据转发是否出现 故障为: 所述环形拓朴网络上的任意相邻节点 R1和 R2通过双向转发检测 BFD检测连接所述节点 R 1和节点 R2之间的链路是否出现故障;  2. The method according to claim 1, wherein any adjacent node R1 and/or R2 on the ring topology network detects whether data forwarding between the node R1 and the node R2 is faulty: Any adjacent nodes R1 and R2 on the ring topology network detect whether the link between the node R 1 and the node R2 is faulty through the bidirectional forwarding detection BFD; 若连接所述节点 R1和节点 R2之间的链路出现故障, 则所述节点 R1和 / 或所述节点 R2将故障消息沿着未出现故障的链路向紧邻各自的下一节点传 递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 为: 所述节点 R 1 和所述节点 R2将故障消息分别沿着未出现故障的链路向紧邻各自的下一节 点传递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 。 If a link connecting the node R1 and the node R2 fails, the node R1 and/or the node R2 transmits a fault message along the non-faulty link to the next next node until reaching The sink node R c and the sink node on the ring topology network are: the node R 1 and the node R2 respectively transmit fault messages along the non-faulty link to the next next node until reaching the ring topology Aggregation node R c and sink node on the network. 3、 如权利要求 1所述的方法, 其特征在于, 所述环形拓朴网络上的任 意相邻节点 R1和 /或 R2检测所述节点 R1和节点 R2之间的数据转发是否出现 故障为: 所述环形拓朴网络上的任意相邻节点 R1或 R2通过双向转发检测 BFD检测构成所述节点 R 1和节点 R2之间的链路的对端节点是否出现故障; 若所述构成所述节点 R 1和节点 R2之间的链路的对端节点出现故障, 则 所述节点 R1和 /或所述节点 R2将故障消息沿着未出现故障的链路向紧邻各 自的下一节点传递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 RC2 为: 若所述节点 R2出现故障, 则所述节点 R1将故障消息沿着未出现故障的 链路向紧邻所述节点 R1的下一节点传递直至到达环形拓朴网络上的汇聚节 点!^和汇聚节点 R , 或者若所述节点 R1出现故障, 则所述节点 R2将故障 消息沿着未出现故障的链路向紧邻所述节点 R2的下一节点传递直至到达环 形拓朴网络上的汇聚节点 Rc和汇聚节点1 ^。 3. The method according to claim 1, wherein any adjacent node R1 and/or R2 on the ring topology network detects whether data forwarding between the node R1 and the node R2 is faulty: Any adjacent node R1 or R2 on the ring topology network detects whether a peer node of the link between the node R1 and the node R2 is faulty by means of bidirectional forwarding detection BFD; if the node is configured If the opposite end node of the link between R 1 and node R2 fails, the node R1 and/or the node R2 pass the fault message along the non-faulty link to the next next node until reaching Aggregation node R c and convergence node R C 2 on a ring topology network If: the node R2 fails, the node R1 transmits the fault message along the non-faulty link to the next node immediately adjacent to the node R1 until reaching the sink node on the ring topology network! And the sink node R, or if the node R1 fails, the node R2 passes the fault message along the non-failed link to the next node immediately adjacent to the node R2 until it reaches the ring topology network. Aggregate node R c and sink node 1 ^. 4、 如权利要求 2或 3所述的方法, 其特征在于, 所述环形拓朴网络上的 任意相邻节点 R1和 R2通过双向转发检测 BFD检测连接所述节点 R1和节点 R2之间的链路是否出现故障或者所述环形拓朴网络上的任意相邻节点 R1 或 R2通过双向转发检测 BFD检测构成所述节点 R 1和节点 R2之间的链路的 对端节点是否出现故障之前还包括:  The method according to claim 2 or 3, wherein any adjacent nodes R1 and R2 on the ring topology network detect the connection between the node R1 and the node R2 by means of bidirectional forwarding detection BFD detection. Whether the road is faulty or any adjacent node R1 or R2 on the ring topology network detects the BFD through the bidirectional forwarding detection BFD to detect whether the peer node forming the link between the node R1 and the node R2 fails. : 所述任意相邻节点 R1和 R2在 R1和 R2之间建立 BFD会话。  The any neighboring nodes R1 and R2 establish a BFD session between R1 and R2. 5、 一种环形拓朴网络的故障处理方法, 其特征在于, 所述方法包括: 环形拓朴网络上的节点 R接收来自检测到数据转发故障的节点 R 1发送 的故障消息;  A fault processing method for a ring topology network, the method comprising: the node R on the ring topology network receives a fault message sent by the node R1 detecting the data forwarding failure; 所述节点 R将所述故障消息以与所述节点 R1发送所述故障消息的方向 相同的方向将所述故障消息发送至所述节点 R的相邻节点,直至所述故障消 息到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 , 所述汇聚节点 Rc和 汇聚节点 用于将所述环形拓朴网络上的流量向所述环形拓朴网络外转 发或将所述环形拓朴网络外的流量向所述环形拓朴网络上转发并终结所述 故障消息。 The node R sends the fault message to the neighboring node of the node R in the same direction as the direction in which the node R1 sends the fault message until the fault message reaches the ring topology a sink node R c and a sink node on the network, where the sink node R c and the sink node are used to forward traffic on the ring topology network to the outside of the ring topology network or outside the ring topology network The traffic is forwarded to the ring topology network and the fault message is terminated. 6、 如权利要求 5所述的方法, 其特征在于, 所述节点 R接收来自检测到 数据转发故障的节点 R1发送的故障消息或者将所述故障消息以与所述节点 R1发送所述故障消息的方向相同的方向将所述故障消息发送至所述节点 R 的相邻节点的同时进一步包括:  6. The method according to claim 5, wherein the node R receives a fault message sent from a node R1 that detects a data forwarding failure or sends the fault message to the fault message with the node R1. The direction of the same direction is sent to the neighboring node of the node R while the direction is the same: 所述节点 R触发保护倒换。 The node R triggers protection switching. 7、 如权利要求 6所述的方法, 其特征在于, 所述节点 R触发保护倒换包 括: 7. The method according to claim 6, wherein the triggering protection switching of the node R comprises: 若在所述故障出现前所述节点 R发送上行流量且所述节点 R1发送所述 故障消息的方向与所述节点 R发送所述上行流量的发送方向相反,则所述节 点 R将所述上行流量的发送方向切换至与所述节点 R1发送所述故障消息的 方向相同的方向, 沿切换后的路径发送所述上行流量;  If the node R sends the uplink traffic before the failure occurs, and the direction in which the node R1 sends the fault message is opposite to the sending direction in which the node R sends the uplink traffic, the node R sends the uplink The sending direction of the traffic is switched to the same direction as the direction in which the node R1 sends the fault message, and the uplink traffic is sent along the switched path; 所述上行流量为所述节点 R向所述汇聚节点!^或汇聚节点 发送的 流量。  The uplink traffic is the node R to the sink node! ^ or the traffic sent by the aggregation node. 8、 如权利要求 6所述的方法, 其特征在于, 所述节点 R触发保护倒换包 括:  8. The method according to claim 6, wherein the triggering protection switching of the node R comprises: 若在所述故障出现前, 所述节点 R发送目的地址与节点 Ri, 发送的上行 流量源地址相同的下行流量且收到所述节点 Ri, 发送的所述上行流量, 则 所述节点 R将所述下行流量的出接口更改为所述节点 Ri,的上行流量的入接 口, 在所述节点 Ri, 发送所述上行流量的路径上发送所述下行流量;  If, before the occurrence of the fault, the node R sends the downlink traffic whose destination address is the same as the node Ri, the transmitted uplink traffic source address, and receives the uplink traffic sent by the node Ri, the node R The outbound interface of the downlink traffic is changed to the inbound interface of the uplink traffic of the node Ri, and the downlink traffic is sent on the path of the node Ri that sends the uplink traffic; 所述下行流量为所述汇聚节点!^或汇聚节点 向所述节点 Ri'发送并 由所述节点 R转发的流量, 所述上行流量为所述节点 Ri, 向所述汇聚节点 Rd或汇聚节点 发送并由所述节点 R转发的流量。  The downstream traffic is the aggregation node! ^ or traffic sent by the sink node to the node Ri' and forwarded by the node R, the uplink traffic is the node Ri, the traffic sent to the sink node Rd or the sink node and forwarded by the node R . 9、 如权利要求 6所述的方法, 其特征在于, 所述节点 R触发保护倒换包 括:  9. The method according to claim 6, wherein the triggering protection switching by the node R comprises: 若在所述故障出现前所述节点 R发送上行流量或下行流量且收到所述 节点 R1的路由器标识信息, 则所述节点 R根据保存的环形网络拓朴信息和 所述故障发生位置触发保护倒换。  If the node R sends the uplink traffic or the downlink traffic and receives the router identification information of the node R1 before the fault occurs, the node R triggers protection according to the saved ring network topology information and the fault occurrence location. Switched. 10、 一种环形拓朴网络的故障处理装置, 其特征在于, 所述装置为位 于环形拓朴网络上的任意相邻节点 R1和 /或 R2 , 所述装置包括:  10. A fault processing apparatus for a ring topology network, wherein the apparatus is any adjacent node R1 and/or R2 located on a ring topology network, the apparatus comprising: 故障检测模块,用于检测所述节点 R1和 /或节点 R2之间的数据转发是否 出现故障; A fault detection module, configured to detect whether data forwarding between the node R1 and/or the node R2 is error occured; 故障消息发送模块, 用于若所述故障检测模块检测到节点 R1和 /或节点 R2之间的数据转发出现故障, 则将故障消息沿着未出现故障的链路向紧邻 所述节点 R1和 /或节点 R2的下一节点传递直至到达环形拓朴网络上的汇聚 节点 Rc和汇聚节点 R ,所述汇聚节点 Rc和汇聚节点 用于终结所述故障 消息。 And a fault message sending module, configured to: if the fault detecting module detects that the data forwarding between the node R1 and/or the node R2 fails, direct the fault message along the link that does not fail to the node R1 and/or Or the next node of the node R2 passes until reaching the sink node R c and the sink node R on the ring topology network, and the sink node R c and the sink node are used to terminate the fault message. 11、 如权利要求 10所述的装置, 其特征在于, 所述故障检测模块包括: 第一检测单元, 用于通过双向转发检测 BFD检测连接所述节点 R1和节 点 R2之间的链路是否出现故障;  The device according to claim 10, wherein the fault detecting module comprises: a first detecting unit, configured to detect, by means of bidirectional forwarding, detecting whether a link between the node R1 and the node R2 is connected malfunction; 所述故障消息发送模块包括:  The fault message sending module includes: 第一发送单元, 用于向紧邻所述节点 R1和节点 R2的下一节点传递直至 到达环形拓朴网络上的汇聚节 RC和汇聚节点1 ^。 The first sending unit is configured to transmit to the next node adjacent to the node R1 and the node R2 until reaching the convergence node R C and the aggregation node 1 ^ on the ring topology network. 12、 如权利要求 10所述的装置, 其特征在于, 所述故障检测模块包括: 第二检测单元, 用于通过双向转发检测 BFD检测构成所述节点 R1和节 点 R2之间的链路的对端节点是否出现故障;  The device according to claim 10, wherein the fault detecting module comprises: a second detecting unit, configured to detect a pair of links between the node R1 and the node R2 by means of bidirectional forwarding detection BFD detection Whether the end node is faulty; 所述故障消息发送模块包括:  The fault message sending module includes: 第二发送单元, 用于将所述故障消息沿着未出现故障的链路向紧邻所 述节点 R1或节点 R2的下一节点传递直至到达环形拓朴网络上的汇聚节点 Rc和汇聚节点 RC2。 a second sending unit, configured to transmit the fault message along a link that does not fail to a next node that is immediately adjacent to the node R1 or the node R2 until reaching a sink node R c and a sink node R on the ring topology network C 2. 13、 如权利要求 11或 12所述的装置, 其特征在于, 所述装置还包括: 会话建立模块, 用于所述任意相邻节点 R1和 R2之间建立 BFD会话。 The device according to claim 11 or 12, wherein the device further comprises: a session establishing module, configured to establish a BFD session between the neighboring nodes R1 and R2. 14、 一种路由设备, 其特征在于, 所述路由设备包括权利要求 10至权 利要求 13任意一项所述的环形拓朴网络的故障处理装置。 A routing device, characterized in that the routing device comprises the fault processing device of the ring topology network according to any one of claims 10 to 13. 15、 一种环形拓朴网络的故障处理装置, 其特征在于, 所述装置为位 于环形拓朴网络上的任意节点 R, 所述装置包括: 故障消息接收模块, 用于接收检测到数据转发故障的节点 R1发送的故 障消息; A fault processing apparatus for a ring topology network, wherein the device is any node R located on a ring topology network, and the device includes: a fault message receiving module, configured to receive a fault message sent by the node R1 that detects a data forwarding fault; 故障消息传递模块, 用于将所述故障消息接收模块接收的故障消息以 与所述节点 R1发送所述故障消息的方向相同的方向将所述故障消息发送至 所述节点 R的相邻节点,直至所述故障消息到达环形拓朴网络上的汇聚节点 Rd和汇聚节点 ,所述汇聚节点 Rc和汇聚节点 Re ^用于将所述环形拓朴网 络上的流量向所述环形拓朴网络外转发或将所述环形拓朴网络外的流量向 所述环形拓朴网络上转发并终结所述故障消息。 a fault message delivery module, configured to send the fault message received by the fault message receiving module to the neighboring node of the node R in the same direction as the direction in which the node R1 sends the fault message, Until the fault message arrives at the sink node Rd and the sink node on the ring topology network, the sink node R c and the sink node Re ^ are used to flow traffic on the ring topology network outside the ring topology network Forwarding or forwarding traffic outside the ring topology network to the ring topology network and terminating the fault message. 16、 如权利要求 15所述的装置, 其特征在于, 所述装置进一步包括: 保护倒换触发模块, 用于触发保护倒换。  The device according to claim 15, wherein the device further comprises: a protection switching trigger module, configured to trigger protection switching. 17、 如权利要求 16所述的装置, 其特征在于, 所述保护倒换触发模块 包括:  The device according to claim 16, wherein the protection switching trigger module comprises: 第一保护倒换触发单元,用于若在所述故障出现前所述节点 R发送上行 流量且所述节点 R1发送所述故障消息的方向与所述节点 R发送所述上行流 量的发送方向相反, 则将所述上行流量的发送方向切换至与所述节点 R1发 送所述故障消息的方向相同的方向,使所述节点 R沿切换后的路径发送所述 上行流量;  a first protection switching triggering unit, configured to: if the node R sends uplink traffic before the fault occurs, and the direction in which the node R1 sends the fault message is opposite to the sending direction in which the node R sends the uplink traffic, Transmitting the direction of the uplink traffic to the same direction as the direction in which the node R1 sends the fault message, and causing the node R to send the uplink traffic along the switched path; 所述上行流量为所述节点 R向所述汇聚节点!^或汇聚节点 发送的 流量。  The uplink traffic is the node R to the sink node! ^ or the traffic sent by the aggregation node. 18、 如权利要求 17所述的装置, 其特征在于, 所述保护倒换触发模块 包括:  The device according to claim 17, wherein the protection switching trigger module comprises: 第二保护倒换触发单元,用于若在所述故障出现前所述节点 R发送目的 地址与节点 Ri, 发送的上行流量源地址相同的下行流量且收到所述节点 Ri, 发送的上行流量, 则将所述下行流量的出接口更改为所述节点 Ri' 的 上行流量的入接口,使得所述节点 R在所述节点 Ri' 发送所述上行流量的路 径上发送所述下行流量; a second protection switching triggering unit, configured to: if the node R sends the downlink traffic whose destination address is the same as the node Ri, and the uplink traffic source address is sent before the fault occurs, and receives the uplink traffic sent by the node Ri, And changing an outbound interface of the downlink traffic to an inbound interface of the uplink traffic of the node Ri′, so that the node R sends the uplink traffic path at the node Ri′ Transmitting the downlink traffic on the path; 所述下行流量为所述汇聚节点!^或汇聚节点 向所述节点 Ri'发送并 由所述节点 R转发的流量, 所述上行流量为所述节点 Ri, 向所述汇聚节点 Rd或汇聚节点 发送并由所述节点 R转发的流量。  The downstream traffic is the aggregation node! ^ or traffic sent by the sink node to the node Ri' and forwarded by the node R, the uplink traffic is the node Ri, the traffic sent to the sink node Rd or the sink node and forwarded by the node R . 19、 如权利要求 17所述的装置, 其特征在于, 所述保护倒换触发模块 包括:  The device according to claim 17, wherein the protection switching trigger module comprises: 第三保护倒换触发单元,用于若在所述故障出现前所述节点 R发送上行 流量或下行流量且收到所述节点 R1的路由器标识信息, 则根据保存的环形 网络拓朴信息和所述故障发生位置触发保护倒换。  a third protection switching triggering unit, configured to: if the node R sends uplink traffic or downlink traffic and receives router identification information of the node R1 before the fault occurs, according to the saved ring network topology information and the The fault occurrence position triggers protection switching. 20、 一种路由设备, 其特征在于, 所述路由设备包括权利要求 15至权 利要求 19任意一项所述的环形拓朴网络的故障处理装置。  A routing device, characterized in that the routing device comprises the fault processing device of the ring topology network according to any one of claims 15 to 19.
PCT/CN2012/081566 2011-09-28 2012-09-19 Method and apparatus for fault handling in ring topology network and routing device Ceased WO2013044741A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011102981357A CN103023771A (en) 2011-09-28 2011-09-28 Method and device for processing fault of ring topological network and routing equipment
CN201110298135.7 2011-09-28

Publications (1)

Publication Number Publication Date
WO2013044741A1 true WO2013044741A1 (en) 2013-04-04

Family

ID=47971917

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/081566 Ceased WO2013044741A1 (en) 2011-09-28 2012-09-19 Method and apparatus for fault handling in ring topology network and routing device

Country Status (2)

Country Link
CN (1) CN103023771A (en)
WO (1) WO2013044741A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202242A (en) * 2014-09-15 2014-12-10 北京智谷睿拓技术服务有限公司 Control network determination method and device
CN104468347A (en) * 2013-09-18 2015-03-25 中兴通讯股份有限公司 Method and device for controlling self-loopback of network data
US11063681B2 (en) 2017-09-01 2021-07-13 Siemens Aktiengesellschaft Method for operating a communication network in a ring topology
CN118316791A (en) * 2024-06-13 2024-07-09 南凌科技股份有限公司 Segment routing fault detection method, device, equipment and storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731311A (en) * 2014-01-26 2014-04-16 杭州华三通信技术有限公司 Annular stacked link failure processing method and device
CN103944819B (en) * 2014-04-15 2017-10-17 新华三技术有限公司 A kind of data message transmission method and equipment
US9813340B2 (en) * 2015-06-30 2017-11-07 Cisco Technology, Inc. Class-aware load balancing using data-plane protocol in a loop-free multiple edge network topology
CN110324166B (en) * 2018-03-31 2020-12-15 华为技术有限公司 A method, device and system for synchronizing target information in multiple nodes
CN112491701B (en) * 2018-04-13 2024-06-07 华为技术有限公司 Message forwarding method and device
CN109347690B (en) * 2018-12-18 2021-07-13 北京格林威尔科技发展有限公司 DCN loop cancellation method and device in PTN scene
CN112448981B (en) 2019-08-30 2024-07-09 华为技术有限公司 A method and device for transmitting data
WO2022061783A1 (en) * 2020-09-25 2022-03-31 华为技术有限公司 Routing method and data forwarding system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812361A (en) * 2006-01-23 2006-08-02 杭州华为三康技术有限公司 Fast ring network protecting method and system
CN101150477A (en) * 2006-09-20 2008-03-26 杭州华三通信技术有限公司 Data transmission and protection method of Ethernet loop network and its application device
WO2009126390A1 (en) * 2008-04-11 2009-10-15 Extreme Networks, Inc. Redundant ethernet automatic protection switching access to virtual private lan services
CN101800774A (en) * 2010-02-04 2010-08-11 中兴通讯股份有限公司 Environmental-friendly accessing method and environmental-friendly accessing network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812361A (en) * 2006-01-23 2006-08-02 杭州华为三康技术有限公司 Fast ring network protecting method and system
CN101150477A (en) * 2006-09-20 2008-03-26 杭州华三通信技术有限公司 Data transmission and protection method of Ethernet loop network and its application device
WO2009126390A1 (en) * 2008-04-11 2009-10-15 Extreme Networks, Inc. Redundant ethernet automatic protection switching access to virtual private lan services
CN101800774A (en) * 2010-02-04 2010-08-11 中兴通讯股份有限公司 Environmental-friendly accessing method and environmental-friendly accessing network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468347A (en) * 2013-09-18 2015-03-25 中兴通讯股份有限公司 Method and device for controlling self-loopback of network data
CN104468347B (en) * 2013-09-18 2019-04-02 中兴通讯股份有限公司 Control method and device for self-loopback of network data
CN104202242A (en) * 2014-09-15 2014-12-10 北京智谷睿拓技术服务有限公司 Control network determination method and device
US11063681B2 (en) 2017-09-01 2021-07-13 Siemens Aktiengesellschaft Method for operating a communication network in a ring topology
CN118316791A (en) * 2024-06-13 2024-07-09 南凌科技股份有限公司 Segment routing fault detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN103023771A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
WO2013044741A1 (en) Method and apparatus for fault handling in ring topology network and routing device
JP6165850B2 (en) Enhanced protocol independent multicast (PIM) fast rerouting methodology using downstream notification packets
JP5876493B2 (en) Fast flooding-based fast convergence to recover from network failures
US9722916B2 (en) Data-plane driven fast protection mechanism for MPLS pseudowire services
CN100531071C (en) Method and system for link failure detection and device for link failure detection
JP2015521449A (en) Enhancements to PIM fast rerouting using upstream activation packets
WO2012068996A1 (en) Method and device for detecting link state
US9197547B2 (en) Increasing failure coverage of MoFRR with dataplane notifications
WO2008046358A1 (en) A method and device to realize punch-through of point-to-multipoint network link status
WO2008131624A1 (en) Distributed ethernet system and method for detecting fault based thereon
WO2012106915A1 (en) Failure notification method, detection apparatus, forwarding apparatus, system and data structure
US8630162B2 (en) Fast flooding based fast convergence architecture
EP3217608B1 (en) Switchback delay methods and devices
CN104283711B (en) Fault detection method, node and system based on bidirectional forwarding detection BFD
CN108206759A (en) A kind of method to E-Packet, equipment and system
WO2012171378A1 (en) Method and router for preventing flow interruption caused by failover from vpls to l3
WO2011144088A2 (en) Method for service protection and access device
WO2012016458A1 (en) Method and apparatus for data transmission in layer 2 virtual private network
WO2013010422A1 (en) Share-path-based ring network tunnel configuration method, ring network protection method and system
CN108243114A (en) A kind of method to E-Packet, equipment and system
WO2011026319A1 (en) Ring network protection method based on local fault detection and system thereof
WO2013010423A1 (en) Shared path-based ring network tunnel configuration method, and service switching method and system
WO2017128752A1 (en) Link fault detection method and apparatus
WO2014079010A1 (en) Service protection method, device and system
EP2523401B1 (en) Virtual networks within a physical network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12837405

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12837405

Country of ref document: EP

Kind code of ref document: A1