WO2018120228A1 - Method and device for recovering from ring circuit fault, and node apparatus - Google Patents

Method and device for recovering from ring circuit fault, and node apparatus Download PDF

Info

Publication number
WO2018120228A1
WO2018120228A1 PCT/CN2016/113969 CN2016113969W WO2018120228A1 WO 2018120228 A1 WO2018120228 A1 WO 2018120228A1 CN 2016113969 W CN2016113969 W CN 2016113969W WO 2018120228 A1 WO2018120228 A1 WO 2018120228A1
Authority
WO
WIPO (PCT)
Prior art keywords
loop
port
address
node device
node
Prior art date
Application number
PCT/CN2016/113969
Other languages
French (fr)
Chinese (zh)
Inventor
王德海
普云
吴俊宏
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/113969 priority Critical patent/WO2018120228A1/en
Publication of WO2018120228A1 publication Critical patent/WO2018120228A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of Ethernet technologies, and in particular, to a loop fault recovery method, apparatus, and node device.
  • ERPS Ethernet Ring Protection Switching
  • Ethernet Loop Protection Switching provides carrier-class reliability. It can perform fast switching within 50ms when a fault occurs in the ring network topology to ensure normal transmission of services.
  • the ERPS technology is also applicable to a scenario in which a ring network is formed with a third-party device, and a 50 ms service is quickly converged and switched.
  • ERPS can eliminate the Layer 2 loop of the network by selectively blocking redundant links of the network loop, that is, half-ring transparent transmission.
  • Ring Ring, which consists of nodes and links to form an Ethernet loop
  • Node the device on the ring
  • RPL (English: Ring Protection Link, referred to as: Ring Protection Link);
  • RPL Owner A node connected to the RPL and responsible for controlling the behavior of the RPL. It can be called an RPL owner.
  • the RPL Owner port When the loop is in the stable state, the RPL Owner port is blocked, and the data packets cannot be forwarded through the RPL Owner port. At this time, only the RPL Owner port can send the ERPS protocol (English: Ring Auto Protection Switching, R-APS). For example, the RPL Owner port sends an RPL Owner port blocking (English: RPL Blocked, RB for short) message. Other node devices on the loop. The port that receives the RB packet on the other node device learns the node identifier (English: Node Identification). At this time, the node identifier learned by the port of the RB packet received by the other node device is the node identifier of the RPL Owner.
  • the node identifier can be represented by the media access control (English: Media Access Control, MAC address) address of the node device.
  • the situation applies to the MAC address of all ports on a node device and the MAC address of the node device are the same, or the port. There is no MAC address.
  • the node ID can also be represented by the MAC address of the port on the node device. This applies to the case where each port on a node device has its own MAC address.
  • the port that receives the RB packet on the other node device learns that the node identifier is the MAC address of the RPL Owner port.
  • the port that receives the data packet on the node device learns the address forwarding entry to form a routing forwarding table.
  • the blocked state of the RPL Owner port is removed and data packets can be forwarded.
  • the node device where the faulty port resides sends SF packets to other node devices on the ring. After receiving the SF packet, the port of the other node device learns that the new node ID is the MAC address of the faulty port. In addition, the node ID learned on the faulty port is cleared, and the original address forwarding entry of the device where the faulty port is located is triggered, and the address forwarding entry is re-learned.
  • the other port on the node device where the faulty port is located does not receive the SF packet sent by itself, so the other port does not relearn the node identifier, so it is still the node identifier that was originally learned, that is, RPL. MAC address of the Owner port.
  • the port of the other node device that does not receive the NR packet sent by the node device where the faulty port is located does not relearn the node identifier, so it is still the MAC address of the RPL Owner port.
  • the node device where the faulty port resides sends a link recovery (English: No Request, NR for short) message to other node devices on the loop.
  • the port that receives the NR packet from other node devices deletes the new node identifier, that is, the MAC address of the faulty port, but does not clear the address forwarding entry learned during the fault.
  • the other port on the node device where the faulty port is located does not receive the NR packet sent by itself, so the node identifier saved on the other port is still the MAC address of the RPL Owner port.
  • the node identifier on the port of the NR packet sent by the node device that does not receive the faulty port on the other node device will not be cleared, so it is still the MAC address of the RPL Owner port.
  • the RPL Owner port is re-blocked and sends RB messages to other node devices. Its The port that receives the RB packet on the node device re-learns the node identifier.
  • the other port of the faulty node device re-learns the MAC address of the RPL Owner port according to the RB packet, and the node identifier of the node that is currently saved is the same, so the address of the node device where the faulty port is learned is transferred.
  • the published item will not change, and it is still the address forwarding entry learned during the failure. Therefore, traffic packets are sent to the RPL Owner port, which is discarded by the RPL Owner port. This causes traffic corruption when the fault is rectified. After the address forwarding entry is aged, the traffic forwarding can be normal after the address forwarding entry is re-learned. This problem also exists on non-faulty node devices.
  • the embodiment of the invention provides a loop fault recovery method, device and node device, which are used to solve the technical problem that the data packet forwarding is abnormal after the fault recovery in the prior art.
  • an embodiment of the present invention provides a loop fault recovery method, which is described from the perspective of a non-faulty device.
  • the method includes: when the link failure on the loop recovers, the non-faulty node device on the loop receives the NR message sent by the failed node device; and the non-failed node device clears the port that receives the NR message by itself. And the node identifier saved on the port that does not receive the NR packet; when the non-faulty node device receives the RB packet sent by the RPL Owner, learns a new node identifier, and the new node identifier is an RPL Owner port.
  • the non-faulty node device deletes the address forwarding entry learned during the failure and re-learns the address based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port that receives the RB packet. Forward the entry.
  • the non-faulty node device receives the port of the RB message.
  • the learned node identifier is inconsistent with the currently stored node identifier (because the non-failed node device has cleared its own receipt and the node identifier saved on the port that did not receive the NR packet when receiving the NR packet, so the current storage
  • the node ID is empty, so the non-failed node device is triggered to delete the address forwarding entry learned during the failure and relearn New address forwarding entry. Therefore, after the non-faulty node device receives the data packet, the data packet can be forwarded normally according to the re-learned address forwarding entry.
  • the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
  • an embodiment of the present invention provides a loop fault recovery method, which is described from the perspective of a faulty device.
  • the method includes: when a link failure of the loop recovers, the failed node device on the loop sends an NR message to the non-faulty node device; the failed node device clears all ports of the loop on the ring to save The node identifier is learned.
  • the faulty node device receives the RB packet sent by the RPL Owner, the new node identifier is learned, and the new node identifier is the node identifier of the RPL Owner port; the faulty node device is based on the new node.
  • the address forwarding entry learned during the failure is deleted and the address forwarding entry is re-learned.
  • the faulty node device receives the port learning of the RB message.
  • the node ID that is reached is inconsistent with the currently stored node ID (because the faulty node device has cleared the node identifier saved by all ports on the loop, so the currently stored node identifier is empty), so the faulty node device is triggered.
  • the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
  • the loop is a Layer 2 Ethernet loop
  • the address in the address forwarding entry is a medium access control MAC address
  • the loop is a Layer 3 Ethernet loop
  • the address in the address forwarding entry is a network protocol IP address
  • an embodiment of the present invention provides a loop fault recovery apparatus, where the loop fault recovery apparatus includes a party in a possible implementation manner of any one of the first aspect to the second aspect.
  • Functional module of the law
  • the implementation of the method in any of the possible implementations of the first aspect to the second aspect and the beneficial effects thereof may be referred to due to the principle and the beneficial effects of the device.
  • the implementation of the device reference may be made to the implementation of the method in any of the possible implementations of the first aspect to the second aspect, and the repeated description is not repeated.
  • an embodiment of the present invention provides a node device.
  • the node device includes: a sending port, a receiving port, and a processor.
  • the transmitting port can be used to perform the steps transmitted in the loop failure recovery method of the aforementioned first aspect.
  • the receiving port may perform the steps received in the loop failure recovery method of the aforementioned first aspect.
  • the processor can perform the steps of learning or clearing in the loop failure recovery method of the aforementioned first aspect.
  • an embodiment of the present invention provides a node device.
  • the node device includes: a sending port, a receiving port, and a processor.
  • the transmitting port can be used to perform the steps of the loop failure recovery method in the aforementioned second aspect.
  • the receiving port may perform the steps received in the loop failure recovery method of the aforementioned second aspect.
  • the processor can perform the steps of learning or clearing in the loop failure recovery method of the aforementioned second aspect.
  • an embodiment of the present invention provides a non-volatile computer storage medium, where the non-volatile computer storage medium stores program code, where the program code includes the first aspect to the second An instruction of a method in any of the possible implementations of the aspects.
  • FIG. 1 is a structural diagram of a loop according to an embodiment of the present invention
  • FIG. 2 is a structural diagram of a node device according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a loop fault recovery method on a non-faulty node device side according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a loop fault recovery method on a faulty node device side according to an embodiment of the present invention
  • 5a-5c are schematic diagrams of a loop fault change and a processing manner according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a processing manner after a link failure recovery in the prior art
  • FIG. 7 is a functional block diagram of a loop fault recovery apparatus according to an embodiment of the present invention.
  • the embodiment of the invention provides a method, a device and a node device for recovering a loop fault, which are used to solve the technical problem that the data packet forwarding is abnormal after the loop fault recovery in the prior art.
  • the node device in the loop may be the same as the node identifier that is learned after the RP packet is sent by the RPL Owner port after the fault is recovered.
  • the port that does not receive the NR packet re-learns the address forwarding entry. Therefore, the node device that has not received the NR packet uses the old address forwarding entry learned during the fault to forward the data packet until the old address forwarding entry is forwarded. Aging, but the old address forwarding entry will cause the data packet to be sent to the blocked RPL Owner port. The data packet will be discarded. As a result, the data packet forwarding is abnormal.
  • the embodiment of the present invention provides a loop fault recovery method, which can be applied to the loop structure shown in FIG.
  • the loop fault recovery method in the embodiment of the present invention is based on the loop architecture shown in FIG. 1. After the link is restored, the node device where the faulty port is located not only receives the NR packet but also receives the NR packet.
  • the node ID stored on the port will be Cleared, the node identifier stored on the port that did not receive the NR packet is also cleared, and/or the original failed node device also clears the node identifier saved by all its ring ports, so when these ports receive the RPL again
  • the port is re-learned. Therefore, after receiving the data packet, the node device can forward the data packet according to the re-learned address forwarding entry.
  • the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
  • the node device A to the node device E are, for example, switches, and the node devices are connected to form a layer 2 loop or a layer 3 loop.
  • data packets can be transmitted in the loop except for the blocked RPL Owner port.
  • Each node device can be separately connected to a terminal, where a MAC address is used to represent each terminal, such as terminal MAC1 to terminal MAC5 in FIG.
  • the address forwarding entries learned on each node device can be classified into two types.
  • the outgoing port of the address is the port on the ring, and the outgoing port of the other type is the non-ring port.
  • the egress port of the learned terminal MAC1 is D3, which is the ring-down port
  • the egress port of the terminal MAC2 learned on the node device D is D1, which is the egress port on the ring. In this way, an address forwarding table for each node device can be formed.
  • each node device has at least one pair of ports on the ring; for example, the ring ports on the node device D are D1 and D2.
  • the node device E and the node device D are not directly connected through the ring port, but are connected through a third-party network. Therefore, in the loop structure shown in FIG. 1, the ERPS protocol packet, for example, the SR packet.
  • the NR message and the RB message cannot reach the node device D from the node device E, and cannot reach the node device E from the node device D.
  • the node device E and the node device D can transmit data messages through the third network.
  • the loop structure shown in Figure 1 can also be referred to as a half-ring structure.
  • FIG. 1 is described by taking five node devices on the loop as an example. However, in actual applications, any number of node devices may be included in the loop, and those skilled in the art may set according to actual requirements.
  • FIG. 2 is a schematic structural diagram of a node device according to an embodiment of the present invention.
  • the node device is, for example, a possible block diagram of any node device of the node device A to the node device E.
  • the node device includes: a processor 10, a transmitting port 20, a receiving port 30, and a memory 40.
  • the memory 40, the transmit port 20 and the receive port 30, and the processor 10 can be connected via a bus.
  • the memory 40, the transmitting port 20, and the receiving port 30 and the processor 10 may not be a bus structure, but may be other structures, such as a star structure, which is not specifically limited in the present application.
  • the processor 10 may be a general-purpose central processing unit or an application specific integrated circuit (ASIC), and may be one or more integrated circuits for controlling program execution, and may be A hardware circuit developed using a Field Programmable Gate Array (FPGA) can be a baseband processor.
  • ASIC application specific integrated circuit
  • FPGA Field Programmable Gate Array
  • processor 10 may include at least one processing core.
  • the memory 40 may include one or more of a read only memory (English: Read Only Memory, ROM for short), a random access memory (English: Random Access Memory, RAM), and a disk storage.
  • Memory 40 is used to store data and/or instructions needed by processor 10 to operate.
  • the number of memories 40 may be one or more.
  • the memory 40 can also be used to store the foregoing address forwarding entry, node identifier, and the like.
  • the sending port 20 and the receiving port 30 are physically independent of each other or integrated.
  • the number of the sum of the sending port 20 and the receiving port 30 is at least two.
  • the sending port 20 for packet output can also be called an egress port.
  • the receiving port 30 for packet input can also be called an ingress port.
  • FIG. 3 is a flowchart of a loop fault recovery method according to an embodiment of the present invention. In the method shown in FIG. 3, it is described from the perspective of a non-faulty node device. As shown in FIG. 3, the method includes:
  • Step 101 When the link failure on the loop recovers, the non-faulty node device on the loop Receiving an NR message sent by the failed node device;
  • Step 102 The non-faulty node device clears its own port that receives the NR packet and the node identifier that is saved on the port that does not receive the NR packet.
  • Step 103 When the non-faulty node device receives the RB packet sent by the RPL Owner, learns a new node identifier, where the new node identifier is a node identifier of the RPL Owner port.
  • Step 104 The non-faulty node device deletes the address forwarding entry learned during the fault and re-learns the address translation based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port that receives the RB packet. Publish the item.
  • the RPL Owner sends an RB message to another node device after receiving the NR message sent by the failed node device, the node identifier and the current port learned by the port receiving the RB message on the non-faulty node device
  • the stored node identifiers are inconsistent (because in step 102, the non-faulty node device has cleared its own received and the node identifier saved on the port that did not receive the NR packet, so the currently stored node identifier is empty), so The non-failed node device is triggered to delete the address forwarding entry learned during the failure and relearn the new address forwarding entry. Therefore, after the non-faulty node device receives the data packet, the data packet can be forwarded normally according to the re-learned address forwarding entry.
  • the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
  • FIG. 4 is a flowchart of a method for recovering a loop fault according to an embodiment of the present invention.
  • a node device from which a faulty port is located hereinafter referred to as a faulty node
  • the angle of the device is described.
  • the method includes:
  • Step 201 When the link failure of the loop is restored, the faulty node device on the loop sends an NR packet to the non-faulty node device.
  • Step 202 The faulty node device clears its own node identifier saved on all ports on the loop.
  • Step 203 When the faulty node device receives the RB packet sent by the RPL Owner, learns a new node identifier, where the new node identifier is a node identifier of the RPL Owner port.
  • Step 204 The faulty node device deletes the address forwarding entry learned during the fault and re-learns the address forwarding table based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port that receives the RB packet. item.
  • the RPL Owner sends an RB message to another node device after receiving the NR message sent by the failed node device, the node identifier and the current storage learned by the port receiving the RB message on the faulty node device.
  • the node identifiers are inconsistent (because in step 202, the failed node device has cleared its own node ID saved on all ports on the loop, so the currently stored node identifier is empty), so the node device that triggered the fault is deleted.
  • the address forwarding entry learned during the failure and re-learning the new address forwarding entry Therefore, after the faulty node device receives the data packet, the data packet can be forwarded normally according to the re-learned address forwarding entry.
  • the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
  • node device A when the loop is in a stable state, node device A functions as an RPL Owner, and port 1 on node device A (hereinafter referred to as port A1 for convenience of description) is in a blocked state (port A1 in FIG. 4a).
  • the black dot indicates that the port A1 is blocked. That is, the data packet cannot be forwarded through the port A1, but the R-ARS, such as the NR packet and the RB packet, can be sent through the port A1.
  • the node device A sends the RB message to the node device E through the port A1, and sends the RB message to the node device B through the port 2 on the node device A (hereinafter referred to as the port A2 for convenience of description).
  • port 2 of node device E (for ease of description, hereinafter referred to as port E1) will learn that the node identifier is port A1, for example, represented by the MAC address of port A1, (A1) next to port E2 in Figure 5a. Indicates that the node ID learned by port E2 is port A1. Because the port 1 of the node device E (hereinafter referred to as the port E1) is connected to the third-party network, the RB packet cannot be forwarded. Therefore, the node device E does not forward the RB packet.
  • port 1 of node device B (hereinafter referred to as port B1) will receive the node device A to send.
  • the RB message and the learned node ID is port A1.
  • the node device B then forwards the RB message to the node device C through its own port 2 (hereinafter referred to as port B2).
  • the port 1 of the node device C (hereinafter referred to as C1) receives the RB packet, and the learned node identifier is port A1.
  • the node device C forwards the RB message to the node device D through its own port 2 (hereinafter referred to as port C2).
  • the port 1 of the node device D receives the RB packet, and the learned node identifier is port A1. Because the port 2 of the node device D (hereinafter referred to as the port D2) is connected to the third-party network, the RB packet cannot be forwarded, so the node device D does not forward the RB packet.
  • the node device B when the source MAC address is MAC1 and the destination MAC address is the MAC2 data packet, the node device B learns the address forwarding entry as the destination MAC address is MAC1.
  • the outbound port is port B2, and the address forwarding entry can be simply represented as MAC1->B2.
  • the destination MAC address is MAC2 and the destination MAC address is MAC2
  • the destination MAC address learned by the node B is MAC2.
  • the corresponding egress port is port B3.
  • the address forwarding entry can be simply represented as MAC2->B3.
  • the address forwarding entry learned by the node device B is the destination MAC address.
  • the corresponding egress port is port B1.
  • the address forwarding entry can be simply represented as MAC4->B1.
  • the address forwarding routing table on the node device B can be as shown in Table 1.
  • the routing table can include two fields, a destination address field and an out port field.
  • the destination address field is used to represent the destination address of the data packet.
  • the outbound port field is the egress port corresponding to the destination address.
  • the node device C when the source MAC address is MAC1 and the destination MAC address is the MAC2 data packet, the node device C learns the address forwarding entry as the destination MAC address is MAC1.
  • the outbound port is port C2, and the address forwarding entry can be simply represented as MAC1->C2.
  • the destination MAC address is MAC3 and the destination MAC address is MAC3
  • the destination MAC address learned by the node C is MAC3.
  • the corresponding egress port is port C3.
  • the address forwarding entry can be simply represented as MAC3->C3.
  • the address forwarding entry learned by the node device C is the destination MAC address.
  • the corresponding egress port is port C1.
  • the address forwarding entry can be simply represented as MAC4->C1.
  • the address forwarding routing table on the node device C can be as shown in Table 2.
  • a Layer 2 loop is taken as an example, so the destination address is represented by a MAC address, and in the Layer 3 loop, the destination address may be a network protocol (English: Internet Protocol, referred to as IP) )address.
  • IP Internet Protocol
  • the node device where the faulty port is located sends SF packets to other non-faulty node devices on the loop.
  • the port that receives the SF packet on the other non-faulty node device learns the new node identifier, that is, the identifier of the faulty port.
  • the node device C cannot pass the port C2 and the port D1 and the node.
  • Point device D performs message transmission.
  • the node device C sends the SF packet to the node device B through the port C1.
  • the port B2 of the node device B receives the SF packet and learns the new node identifier, which is the port C2.
  • the node device B then forwards the SF message to the node device A through its own port B1.
  • Port A2 of node device A receives the SF packet and learns the new node identifier, which is port C2.
  • the node device A then forwards the SF message to the node device E through its own port A1.
  • the port E2 of the node device E receives the SF packet, and the learned node identifier is the port C2.
  • the SF packet cannot be forwarded, so the node device E does not forward the SF packet.
  • the port D2 of the node device D is connected to the third-party network, the SF packet cannot be forwarded, so the node device D does not forward the SF packet.
  • the SF message can be sent to the connected node device through the port D2, and the port of the connected node device that receives the SF packet learns. Go to the new node ID, port D1.
  • the node identifier stored on the faulty port is cleared by the faulty node device. Therefore, the node identifier saved by port C1 is still port A1, and the node identifiers on port C2 and port D1 are empty.
  • the address forwarding entry on the node where the faulty port is located is also cleared. Therefore, the node device where the faulty port resides re-learns the address forwarding entry.
  • the RPL Owner port is unblocked, that is, the port A1 is changed to the unblocked state, and the data packet and the data packet can be forwarded through the port A1.
  • the link between the node device C and the node device D is faulty, so the source MAC address is MAC1, and the data packet whose destination MAC address is MAC2 is transmitted from the third-party network to the node device E and the node device A because of the broadcast mechanism, and then The port B1 enters the node device B.
  • the corresponding egress port is the port B1, and the address forwarding entry can be simply represented as MAC1->B1.
  • the corresponding forwarding port is the port when the destination MAC address learned by the node B is MAC2.
  • the address forwarding entry can be simplified. Single is represented as MAC2->B3.
  • the address forwarding entry learned by the node device B is the destination MAC address.
  • the corresponding egress port is port B1.
  • the address forwarding entry can be simply represented as MAC4->B1.
  • the address forwarding routing table on the node device B can be as shown in Table 3.
  • the link between the node device C and the node device D is faulty, so the source MAC address is MAC1, and the data packet whose destination MAC address is MAC2 is transmitted from the third-party network to the node due to the broadcast mechanism.
  • the device E, the node device A, and the node device B then enter the node device C from the port C1. Therefore, when the destination MAC address learned by the node device C is the destination MAC address, the corresponding egress port is the port C1, and the address is transferred.
  • the publication item can be simply expressed as MAC1->C1.
  • the corresponding forwarding port is the port when the destination MAC address learned by the node device C is MAC3.
  • the address forwarding entry can be simply represented as MAC3->C3.
  • the address forwarding entry learned by the node device C is the destination MAC address.
  • the corresponding egress port is port C1.
  • the address forwarding entry can be simply represented as MAC4->C1.
  • the address forwarding routing table on the node device C can be as shown in Table 4.
  • the data packet on the loop is forwarded by unicast according to the new address forwarding entry.
  • the node device where the faulty port is located sends an NR message to other node devices.
  • the other non-faulty node device deletes the node identifier stored on the port that receives the NR packet, but does not store the new node identifier, that is, the other node device receives the NR at this time.
  • the node ID on the port of the packet is empty.
  • the other non-faulty node devices will not clear the address forwarding entry, so the other non-faulty node devices still store the address forwarding entries learned during the fault. For a faulty node device, because the other ring port on the failed node device will not receive the NR packet sent by itself, the node identifier stored on the port on the ring will not be cleared.
  • the implementation in the prior art is: after the link failure is recovered, at this time, the node device C and the node device D have not resumed communication, so the node device C sends the NR to the node device B through the port C1.
  • the packet correspondingly, the port B2 of the node device B receives the NR packet and clears the stored node identifier, that is, the port C2.
  • the node device B then forwards the NR message to the node device A through its own port B1.
  • Port A2 of node device A receives the NR packet and clears the stored node identifier, that is, port C2.
  • the node device A then forwards the NR message to the node device E through its own port A1.
  • the port E2 of the node device E receives the NR message and clears the stored node identifier, that is, the port C2. Because the port E1 of the node device E is connected to the third-party network, the NR message cannot be forwarded, so the node device E does not forward the NR message. Similarly, because the port D2 of the node device D is connected to the third-party network, the NR message cannot be forwarded, so the node device D no longer forwards the NR message.
  • node device D The port D2 is also connected to the node device, and then the NR message can be sent to the connected node device through the port D2, and the port of the connected node device that receives the NR message clears the stored node identifier, that is, the port D1.
  • the node identifier stored on the port B1 is not emptied, and is still the port A1.
  • Port C1 is also not the receiving port of NR packets, so the node identifier stored on port C1 will not be emptied, and it is still port A1. After the processing of this step, the node identifier stored on each port is as shown in FIG. 6.
  • the RPL Owner blocks the port A1 and can send an NR packet to the other node device to notify the other node that the link fault has been recovered. Further, the RPL Owner may send an RB packet to the other node device, indicating that the port A1 is blocked.
  • a schematic diagram of RB packet transmission please refer to Figure 5a.
  • the node ID of the port that receives the RB packet is A1, but the node ID currently stored on port B1 and port C1 is also A1. Therefore, if the two are consistent, the re-learning address forwarding entry will not be triggered. Therefore, the address forwarding entry on node device B is still shown in Table 3.
  • the address forwarding entry on node device C is still shown in Table 4.
  • the data packet whose destination address is MAC1 is still sent to the node device A through the port B1, and the port A1 is blocked. Therefore, the data packet is discarded by the port A1, so the data packet cannot be normal. Forward.
  • the non-faulty node device performs step 101 and step 102, that is, the non-faulty node device receives the NR message sent by the failed node device, and Clear the node ID saved on the port that it received and that did not receive the NR message.
  • the non-failed node device also clears the node identifier saved on the port that has not received the NR message.
  • the faulty node device performs step 201 and step 202, that is, the faulty node device sends an NR message to the non-faulty node device, and empties its own saved on all ports on the loop. Node ID. In other words, the failed node device also empties the node identifier saved on its own non-faulty port.
  • the node device C sends an NR message to the other non-faulty node device on the loop.
  • the port device B clears the node identifier stored on the port B2. Further, the node device B also clears the node identifier stored on the port B1.
  • the port device A2 clears the node identifier stored on the port A2. Further, the node device A also clears the node identifier stored on the port A1.
  • the node device E2 clears the node identifier stored on the port E2.
  • the node identifier stored on each port is as shown in FIG. 4c. That is, the node device C sends an NR message to other node devices on the loop, and the node device C also clears the node identifier stored on the port C1.
  • port B1 receives the NR message and learns the node identifier, as shown in FIG. 5a.
  • the node ID learned by the port B1 is the port A1, and the current node ID of the port B1 is empty. Therefore, the two devices are inconsistent, and the node device learns the new address forwarding entry. After learning, the new address forwarding entry is learned. It is the entry shown in Table 1, so the data packet can be forwarded normally.
  • port C1 receives the NR message and learns the node identifier, as shown in FIG. 5a.
  • the node ID learned by the port C1 is the port A1, and the current node ID of the port C1 is empty. Therefore, if the two are inconsistent, the node device learns the new address forwarding entry. After learning, the new address forwarding entry is learned.
  • Table 2 The entries shown in Table 2, so data packets can be forwarded normally.
  • the method in the embodiment of the present invention can ensure that after the link failure is recovered, the faulty node device and the non-failed node device delete the address forwarding entry learned during the fault and relearn the address forwarding entry.
  • the normal forwarding of data packets is ensured, and the packet forwarding entries cannot be re-learned after waiting for the address to age.
  • an embodiment of the present invention further provides a node device (shown in FIG. 2), which is used to implement any one of the foregoing methods.
  • the receiving port 30 is used to be a ring.
  • the link sent by the node device receiving the fault on the loop recovers the NR message; the processor 10 is configured to clear the receiving port 30 and the NR report is not received on the node device.
  • the loop is a Layer 2 Ethernet loop
  • the address in the address forwarding entry is a media access control MAC address
  • the loop is a Layer 3 Ethernet loop
  • the address in the address forwarding entry is a network protocol IP address
  • the sending port 20 is configured to send a link recovery NR report to the non-faulty node device on the loop when the link of the loop is restored.
  • the processor 10 is configured to clear a node identifier saved by all the ports of the node device on the loop, and the receiving port 30 is configured to receive an RPL owner port blocking RB sent by the RPL owner of the loop protection link.
  • the processor 10 is further configured to: when the receiving port 30 receives the RB message, learn a new node identifier, where the new node identifier is a node identifier of an RPL owner port; and based on the new As a result of the inconsistency between the node identifier and the node identifier currently stored on the receiving port 30, the address forwarding entry learned during the fault is deleted and the address forwarding entry is re-learned.
  • the loop is a Layer 2 Ethernet loop
  • the address in the address forwarding entry is a media access control MAC address
  • the loop is a Layer 3 Ethernet loop
  • the address in the address forwarding entry is a network protocol IP address
  • an embodiment of the present invention further provides a loop fault recovery apparatus, where the loop fault recovery apparatus includes a functional module for performing the foregoing method steps.
  • the loop fault recovery apparatus includes a receiving unit 301, a processing unit 302, and a transmitting unit 303.
  • the receiving unit 301 is configured to send, when the link failure on the loop recovers, the node device that receives the fault on the loop sends The link recovers the NR message; the processing unit 302 is configured to clear the node identifier stored on all ports on the loop of the non-faulty node device on the loop; and receive the loop protection chain at the receiving unit 301.
  • the new node identifier is the node identifier of the RPL owner port; and based on the new node identifier and the non-fault As a result of the inconsistent node identifier currently stored on the port on the node device, the address forwarding entry learned by the non-faulty node device during the failure is deleted and the address forwarding entry is re-learned.
  • the loop is a Layer 2 Ethernet loop
  • the address in the address forwarding entry is a media access control MAC address
  • the loop is a Layer 3 Ethernet loop
  • the address in the address forwarding entry is a network protocol IP address
  • the sending unit 303 is configured to: when the link failure on the loop recovers, to the non-faulty node device on the loop The sending unit recovers the NR message; the processing unit 302 is configured to: clear the node identifier stored on all ports on the loop of the faulty node device on the loop; and receive unit 301, configured to receive the loop protection chain
  • the RPL owner port sent by the RPL owner blocks the RB message, and the processing unit 302 is further configured to: when the receiving unit 301 receives the RB message, learn a new node identifier, where the new node identifier is a node identifier of the RPL owner port; and deleting the address of the node device that is learned during the fault based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port on the faulty node device Publish the item and relearn the address forwarding entry.
  • the loop is a Layer 2 Ethernet loop
  • the address in the address forwarding entry is a media access control MAC address
  • the loop is a Layer 3 Ethernet loop
  • the address in the address forwarding entry is a network protocol IP address
  • loop fault recovery method in the foregoing embodiment are also applicable to the loop fault recovery device of the present embodiment and the node device in FIG. 2, and the foregoing detailed description of the loop fault recovery method is provided.
  • the loop fault recovery device in this embodiment and the implementation method of the node device in FIG. 2 can be clearly understood by those skilled in the art, and therefore, for the sake of brevity of the description, details are not described herein again.
  • embodiments of the present invention can be provided as a method, system, or computer program product.
  • embodiments of the invention may be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

Disclosed are a method and device for recovering from a ring circuit fault, and a node apparatus. The method comprises: when recovering from a link fault on a ring circuit, a non-faulty node apparatus on the ring circuit receiving a link recovery NR message sent by a faulty node apparatus; the non-faulty node apparatus eliminating node identifiers stored on a port of the non-faulty node apparatus that receives the NR message and on a port that does not receive the NR message; the non-faulty node apparatus learning a new node identifier when receiving an RPL owner port blocked (RB) message sent by a ring circuit protection link (RPL) owner, wherein the new node identifier is a node identifier on an RPL owner port; and, on the basis of a result indicating that the new node identifier is inconsistent with the node identifier currently saved on a port receiving the RB message, the non-faulty node apparatus deleting an address forwarding entry learned during the fault period, and re-learning the address forwarding entry.

Description

一种环路故障恢复方法、装置及节点设备Loop fault recovery method, device and node device 技术领域Technical field
本发明涉及以太网技术领域,尤其涉及一种环路故障恢复方法、装置及节点设备。The present invention relates to the field of Ethernet technologies, and in particular, to a loop fault recovery method, apparatus, and node device.
背景技术Background technique
ERPS(英文:Ethernet Ring Protection Switching,简称:以太网环路保护倒换)技术提供了电信级可靠性,可以实现环网拓扑上发生故障时在50ms以内进行快速倒换,保证业务的正常传输。另外,ERPS技术还适用于跟第三方设备组成环网,50ms业务快速收敛倒换的场景。ERPS可以通过有选择性的阻塞网络环路冗余链路,达到消除网络二层环路的目的,即半环透传。ERPS (English: Ethernet Ring Protection Switching, referred to as Ethernet Loop Protection Switching) provides carrier-class reliability. It can perform fast switching within 50ms when a fault occurs in the ring network topology to ensure normal transmission of services. In addition, the ERPS technology is also applicable to a scenario in which a ring network is formed with a third-party device, and a 50 ms service is quickly converged and switched. ERPS can eliminate the Layer 2 loop of the network by selectively blocking redundant links of the network loop, that is, half-ring transparent transmission.
ERPS技术的基本概念:The basic concept of ERPS technology:
Ring:环,由节点和链路组成以太网环路;Ring: Ring, which consists of nodes and links to form an Ethernet loop;
节点:环上的设备;Node: the device on the ring;
RPL(英文:Ring Protection Link,简称:环保护链路);RPL (English: Ring Protection Link, referred to as: Ring Protection Link);
RPL Owner:和RPL相连,负责控制RPL行为的节点,可以称为RPL拥有者;RPL Owner: A node connected to the RPL and responsible for controlling the behavior of the RPL. It can be called an RPL owner.
SF(英文:Signal Fail,简称:信号失效),链路故障信号。SF (English: Signal Fail, referred to as signal failure), link failure signal.
ERPS技术的工作方式如下:The way ERPS technology works is as follows:
当环路处于稳定状态时,RPL Owner端口被阻塞,数据报文无法通过RPL Owner端口进行转发,达到破除环路的目的。此时,只有RPL Owner端口可以发送ERPS协议(英文:Ring Auto Protection Switching,简称:R-APS)报文,例如RPL Owner端口发送RPL Owner端口阻塞(英文:RPL Blocked,简称:RB)报文给环路上的其它节点设备。其它节点设备上接收到RB报文的端口会学习节点标识(英文:Node Identification),此时,其它节点设备上接收到的RB报文的端口学习到的节点标识为RPL Owner的节点标识。在实际运用中, 节点标识可以用节点设备的媒体接入控制(英文:Media Access Control,简称:MAC)地址来表示,该情况适用于一个节点设备上的所有端口的MAC地址和节点设备的MAC地址相同,或者端口没有MAC地址的情况。节点标识也可以用节点设备上的端口的MAC地址来表示,该情况适用于一个节点设备上每个端口都要自己的MAC地址的情况。相应的,其它节点设备上接收到RB报文的端口学习到节点标识为RPL Owner端口的MAC地址。When the loop is in the stable state, the RPL Owner port is blocked, and the data packets cannot be forwarded through the RPL Owner port. At this time, only the RPL Owner port can send the ERPS protocol (English: Ring Auto Protection Switching, R-APS). For example, the RPL Owner port sends an RPL Owner port blocking (English: RPL Blocked, RB for short) message. Other node devices on the loop. The port that receives the RB packet on the other node device learns the node identifier (English: Node Identification). At this time, the node identifier learned by the port of the RB packet received by the other node device is the node identifier of the RPL Owner. In practical use, The node identifier can be represented by the media access control (English: Media Access Control, MAC address) address of the node device. The situation applies to the MAC address of all ports on a node device and the MAC address of the node device are the same, or the port. There is no MAC address. The node ID can also be represented by the MAC address of the port on the node device. This applies to the case where each port on a node device has its own MAC address. Correspondingly, the port that receives the RB packet on the other node device learns that the node identifier is the MAC address of the RPL Owner port.
另外,节点设备上接收到数据报文的端口会学习地址转发表项,形成路由转发表。In addition, the port that receives the data packet on the node device learns the address forwarding entry to form a routing forwarding table.
当环路上非RPL链路出现故障时,RPL Owner端口的阻塞状态被解除,可以转发数据报文。故障端口所在的节点设备向环上其它节点设备发SF报文。其它节点设备的端口接收到SF报文后,学习到新的节点标识为故障端口的MAC地址。另外,故障端口上学习到的节点标识会被清除,触发清空故障端口所在节点设备的原地址转发表项,并重新学习地址转发表项。然而,此时故障端口所在的节点设备上的另一个端口并不会接收到自己发送的SF报文,所以另一个端口不会重新学习节点标识,所以依然是原来学习到的节点标识,即RPL Owner端口的MAC地址。类似的,其它节点设备上未接收到故障端口所在的节点设备发送的NR报文的端口也不会重新学习节点标识,所以依然是RPL Owner端口的MAC地址。When the non-RPL link on the loop is faulty, the blocked state of the RPL Owner port is removed and data packets can be forwarded. The node device where the faulty port resides sends SF packets to other node devices on the ring. After receiving the SF packet, the port of the other node device learns that the new node ID is the MAC address of the faulty port. In addition, the node ID learned on the faulty port is cleared, and the original address forwarding entry of the device where the faulty port is located is triggered, and the address forwarding entry is re-learned. However, at this time, the other port on the node device where the faulty port is located does not receive the SF packet sent by itself, so the other port does not relearn the node identifier, so it is still the node identifier that was originally learned, that is, RPL. MAC address of the Owner port. Similarly, the port of the other node device that does not receive the NR packet sent by the node device where the faulty port is located does not relearn the node identifier, so it is still the MAC address of the RPL Owner port.
在链路故障恢复时,故障端口所在节点设备向环路上其它节点设备发送链路恢复(英文:No Request,简称:NR)报文。其它节点设备接收到NR报文的端口会删除在故障期间学习到新的节点标识,即故障端口的MAC地址,但不会清空在故障期间学习到的地址转发表项。然而,此时故障端口所在的节点设备上的另一个端口并不会接收到自己发送的NR报文,所以另一个端口上保存的节点标识依然为RPL Owner端口的MAC地址。类似的,其它节点设备上未接收到故障端口所在的节点设备发送的NR报文的端口上的节点标识也不会被清空,所以依然是RPL Owner端口的MAC地址。When the link is faulty, the node device where the faulty port resides sends a link recovery (English: No Request, NR for short) message to other node devices on the loop. The port that receives the NR packet from other node devices deletes the new node identifier, that is, the MAC address of the faulty port, but does not clear the address forwarding entry learned during the fault. However, at this time, the other port on the node device where the faulty port is located does not receive the NR packet sent by itself, so the node identifier saved on the other port is still the MAC address of the RPL Owner port. Similarly, the node identifier on the port of the NR packet sent by the node device that does not receive the faulty port on the other node device will not be cleared, so it is still the MAC address of the RPL Owner port.
接下来,RPL Owner端口重新阻塞,并向其它节点设备发送RB报文。其 它节点设备上接收到该RB报文的端口重新学习节点标识。在现有的协议中规定,如果端口学习到的节点标识和本端口原来存储的节点标识一致,则不会触发重新学习地址转发表项。因此,故障的节点设备的另一个端口根据RB报文重新学习到节点标识为RPL Owner端口的MAC地址,和自身现在保存的节点标识是相同的,所以故障端口所在的节点设备学习到的地址转发表项不会发生变化,依然是在故障期间学习到的地址转发表项。因此,流量报文会被发送到RPL Owner端口,进而会被RPL Owner端口丢弃,导致故障恢复时流量的回切出现问题。该状态要持续到地址转发表项老化后,重新学习地址转发表项后,流量转发才能正常。该问题也同样存在非故障的节点设备上。Next, the RPL Owner port is re-blocked and sends RB messages to other node devices. Its The port that receives the RB packet on the node device re-learns the node identifier. In the existing protocol, if the node ID learned by the port is the same as the node ID originally stored on the port, the re-learning address forwarding entry will not be triggered. Therefore, the other port of the faulty node device re-learns the MAC address of the RPL Owner port according to the RB packet, and the node identifier of the node that is currently saved is the same, so the address of the node device where the faulty port is learned is transferred. The published item will not change, and it is still the address forwarding entry learned during the failure. Therefore, traffic packets are sent to the RPL Owner port, which is discarded by the RPL Owner port. This causes traffic corruption when the fault is rectified. After the address forwarding entry is aged, the traffic forwarding can be normal after the address forwarding entry is re-learned. This problem also exists on non-faulty node devices.
发明内容Summary of the invention
本发明实施例提供一种环路故障恢复方法、装置及节点设备,用以解决现有技术中故障恢复后数据报文转发不正常的技术问题。The embodiment of the invention provides a loop fault recovery method, device and node device, which are used to solve the technical problem that the data packet forwarding is abnormal after the fault recovery in the prior art.
第一方面,本发明实施例提供了一种环路故障恢复方法,该方法从非故障的设备的角度描述。该方法包括:当环路上的链路故障恢复时,环路上的非故障的节点设备接收故障的节点设备发送的NR报文;非故障的节点设备清除自身的接收到所述NR报文的端口和未接收到所述NR报文的端口上保存的节点标识;在非故障的节点设备接收到RPL Owner发送的RB报文时,学习新的节点标识,所述新的节点标识为RPL Owner端口的节点标识;非故障的节点设备基于所述新的节点标识和接收到所述RB报文的端口上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表项并重新学习地址转发表项。在本发明实施例的方案中,当RPL Owner在接收到故障的节点设备发送的NR报文后,发送RB报文给其它节点设备时,非故障的节点设备上接收到该RB报文的端口学习到的节点标识和当前存储的节点标识不一致(因为非故障的节点设备在接收到NR报文时已清除自身的收到以及未收到NR报文的端口上保存的节点标识,所以当前存储的节点标识为空),所以会触发非故障的节点设备删除在故障期间学习到的地址转发表项,并重新学习 新的地址转发表项。因此,当非故障的节点设备接收到数据报文之后,可以按照重新学习的地址转发表项对数据报文进行正常转发。相较于现有技术中的故障恢复方法,本发明实施例中的方法不会发生丢包的情况,也不需要等待地址老化的时间才能使数据报文转发正常,提高了ERPS半环倒换性能。In a first aspect, an embodiment of the present invention provides a loop fault recovery method, which is described from the perspective of a non-faulty device. The method includes: when the link failure on the loop recovers, the non-faulty node device on the loop receives the NR message sent by the failed node device; and the non-failed node device clears the port that receives the NR message by itself. And the node identifier saved on the port that does not receive the NR packet; when the non-faulty node device receives the RB packet sent by the RPL Owner, learns a new node identifier, and the new node identifier is an RPL Owner port. The non-faulty node device deletes the address forwarding entry learned during the failure and re-learns the address based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port that receives the RB packet. Forward the entry. In the solution of the embodiment of the present invention, when the RPL Owner sends the RB message to the other node device after receiving the NR message sent by the faulty node device, the non-faulty node device receives the port of the RB message. The learned node identifier is inconsistent with the currently stored node identifier (because the non-failed node device has cleared its own receipt and the node identifier saved on the port that did not receive the NR packet when receiving the NR packet, so the current storage The node ID is empty, so the non-failed node device is triggered to delete the address forwarding entry learned during the failure and relearn New address forwarding entry. Therefore, after the non-faulty node device receives the data packet, the data packet can be forwarded normally according to the re-learned address forwarding entry. Compared with the fault recovery method in the prior art, the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
第二方面,本发明实施例提供了一种环路故障恢复方法,该方法从故障的设备的角度描述。该方法包括:当环路的链路故障恢复时,所述环路上的故障的节点设备向非故障的节点设备发送NR报文;故障的节点设备清除自身的在所述环路上的所有端口保存的节点标识;在故障的节点设备接收到RPL Owner发送的RB报文时,学习新的节点标识,所述新的节点标识为RPL Owner端口的节点标识;故障的节点设备基于所述新的节点标识和接收到所述RB报文的端口上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表项并重新学习地址转发表项。在本发明实施例的方案中,当RPL Owner在接收到故障的节点设备发送的NR报文后,发送RB报文给其它节点设备时,故障的节点设备上接收到该RB报文的端口学习到的节点标识和当前存储的节点标识不一致(因为故障的节点设备已清除自身在所述环路上的所有端口保存的节点标识,所以当前存储的节点标识为空),所以会触发故障的节点设备删除在故障期间学习到的地址转发表项,并重新学习新的地址转发表项。因此,当故障的节点设备接收到数据报文之后,可以按照重新学习的地址转发表项对数据报文进行正常转发。相较于现有技术中的故障恢复方法,本发明实施例中的方法不会发生丢包的情况,也不需要等待地址老化的时间才能使数据报文转发正常,提高了ERPS半环倒换性能。In a second aspect, an embodiment of the present invention provides a loop fault recovery method, which is described from the perspective of a faulty device. The method includes: when a link failure of the loop recovers, the failed node device on the loop sends an NR message to the non-faulty node device; the failed node device clears all ports of the loop on the ring to save The node identifier is learned. When the faulty node device receives the RB packet sent by the RPL Owner, the new node identifier is learned, and the new node identifier is the node identifier of the RPL Owner port; the faulty node device is based on the new node. As a result of inconsistent with the node identifier currently stored on the port that receives the RB packet, the address forwarding entry learned during the failure is deleted and the address forwarding entry is re-learned. In the solution of the embodiment of the present invention, when the RPL Owner sends the RB message to the other node device after receiving the NR message sent by the faulty node device, the faulty node device receives the port learning of the RB message. The node ID that is reached is inconsistent with the currently stored node ID (because the faulty node device has cleared the node identifier saved by all ports on the loop, so the currently stored node identifier is empty), so the faulty node device is triggered. Delete the address forwarding entry learned during the fault and relearn the new address forwarding entry. Therefore, after the faulty node device receives the data packet, the data packet can be forwarded normally according to the re-learned address forwarding entry. Compared with the fault recovery method in the prior art, the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
在一个可能的设计中,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。In one possible design, the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a medium access control MAC address.
在一个可能的设计中,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。In one possible design, the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
第三方面,本发明实施例提供一种环路故障恢复装置,所述环路故障恢复装置包括用于实现第一方面至第二方面中的任一种可能的实现方式中的方 法的功能模块。In a third aspect, an embodiment of the present invention provides a loop fault recovery apparatus, where the loop fault recovery apparatus includes a party in a possible implementation manner of any one of the first aspect to the second aspect. Functional module of the law.
基于同一发明构思,由于该装置解决问题的原理以及有益效果可以参见上述第一方面至第二方面中的任一种可能的实现方式中的方法的实施方式以及所带来的有益效果,因此该装置的实施可以参见上述第一方面至第二方面中的任一种可能的实现方式中的方法的实施,重复之处不再赘述。Based on the same inventive concept, the implementation of the method in any of the possible implementations of the first aspect to the second aspect and the beneficial effects thereof may be referred to due to the principle and the beneficial effects of the device. For the implementation of the device, reference may be made to the implementation of the method in any of the possible implementations of the first aspect to the second aspect, and the repeated description is not repeated.
第四方面,本发明实施例提供一种节点设备。该节点设备包括:发送端口、接收端口和处理器。发送端口可以用于执行前述第一方面中的环路故障恢复方法中发送的步骤。接收端口可以执行前述第一方面中的环路故障恢复方法中接收的步骤。处理器可以执行前述第一方面中的环路故障恢复方法中学习或清除的步骤。In a fourth aspect, an embodiment of the present invention provides a node device. The node device includes: a sending port, a receiving port, and a processor. The transmitting port can be used to perform the steps transmitted in the loop failure recovery method of the aforementioned first aspect. The receiving port may perform the steps received in the loop failure recovery method of the aforementioned first aspect. The processor can perform the steps of learning or clearing in the loop failure recovery method of the aforementioned first aspect.
第五方面,本发明实施例提供一种节点设备。该节点设备包括:发送端口、接收端口和处理器。发送端口可以用于执行前述第二方面中的环路故障恢复方法中发送的步骤。接收端口可以执行前述第二方面中的环路故障恢复方法中接收的步骤。处理器可以执行前述第二方面中的环路故障恢复方法中学习或清除的步骤。In a fifth aspect, an embodiment of the present invention provides a node device. The node device includes: a sending port, a receiving port, and a processor. The transmitting port can be used to perform the steps of the loop failure recovery method in the aforementioned second aspect. The receiving port may perform the steps received in the loop failure recovery method of the aforementioned second aspect. The processor can perform the steps of learning or clearing in the loop failure recovery method of the aforementioned second aspect.
第六方面,本发明实施例提供一种非易失性计算机存储介质,所述非易失性计算机存储介质上存储有程序代码,所述程序代码包括用于实现所述第一方面至第二方面中的任一种可能的实现方式中的方法的指令。In a sixth aspect, an embodiment of the present invention provides a non-volatile computer storage medium, where the non-volatile computer storage medium stores program code, where the program code includes the first aspect to the second An instruction of a method in any of the possible implementations of the aspects.
附图说明DRAWINGS
图1为本发明实施例提供的一种环路的结构图;FIG. 1 is a structural diagram of a loop according to an embodiment of the present invention;
图2为本发明实施例提供的一种节点设备的结构图;2 is a structural diagram of a node device according to an embodiment of the present invention;
图3为本发明实施例提供的一种非故障的节点设备侧的环路故障恢复方法的流程图;3 is a flowchart of a loop fault recovery method on a non-faulty node device side according to an embodiment of the present invention;
图4为本发明实施例提供的一种故障的节点设备侧的环路故障恢复方法的流程图; FIG. 4 is a flowchart of a loop fault recovery method on a faulty node device side according to an embodiment of the present invention;
图5a-图5c为本发明实施例提供的一种环路故障变化以及处理方式的示意图;5a-5c are schematic diagrams of a loop fault change and a processing manner according to an embodiment of the present invention;
图6为现有技术中链路故障恢复后的处理方式的示意图;6 is a schematic diagram of a processing manner after a link failure recovery in the prior art;
图7为本发明实施例提供的一种环路故障恢复装置的功能框图。FIG. 7 is a functional block diagram of a loop fault recovery apparatus according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供一种环路故障恢复方法、装置及节点设备,用以解决现有技术中环路故障恢复后数据报文转发不正常的技术问题。The embodiment of the invention provides a method, a device and a node device for recovering a loop fault, which are used to solve the technical problem that the data packet forwarding is abnormal after the loop fault recovery in the prior art.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
如背景技术中所描述,环路中节点设备会因为在故障恢复后,未收到NR报文的端口所存储的节点标识与RPL Owner端口发送RB报文后学习到的节点标识一致,所以不会触发未收到NR报文的端口重新学习地址转发表项,所以未收到NR报文的节点设备使用在故障期间学习的旧地址转发表项进行数据报文转发直至该旧地址转发表项老化,但是使用旧地址转发表项会导致数据报文发送到阻塞的RPL Owner端口,该数据报文就会被丢弃,所以导致数据报文转发不正常。As described in the background, the node device in the loop may be the same as the node identifier that is learned after the RP packet is sent by the RPL Owner port after the fault is recovered. The port that does not receive the NR packet re-learns the address forwarding entry. Therefore, the node device that has not received the NR packet uses the old address forwarding entry learned during the fault to forward the data packet until the old address forwarding entry is forwarded. Aging, but the old address forwarding entry will cause the data packet to be sent to the blocked RPL Owner port. The data packet will be discarded. As a result, the data packet forwarding is abnormal.
本发明实施例为解决上述技术问题,提供了一种环路故障恢复方法,该方法可以应用于如图1所示的环路结构中。本发明实施例中的环路故障恢复方法在图1所示的环路架构的基础上,当链路恢复后,在故障端口所在的节点设备发送NR报文时,不仅接收到该NR报文的端口上存储的节点标识会被 清除,未收到该NR报文的端口上存储的节点标识也被清除,和/或原故障的节点设备也会清除自身的所有环上端口保存的节点标识,所以当这些端口再次接收到RPL Owner发送的RB报文时,因为学习到的节点标识和当前存储的节点标识(当前为空)不一致,所以会触发该端口重新学习地址转发表项。因此,当节点设备接收到数据报文之后,可以按照重新学习的地址转发表项对数据报文进行正常转发。相较于现有技术中的故障恢复方法,本发明实施例中的方法不会发生丢包的情况,也不需要等待地址老化的时间才能使数据报文转发正常,提高了ERPS半环倒换性能。In order to solve the above technical problem, the embodiment of the present invention provides a loop fault recovery method, which can be applied to the loop structure shown in FIG. The loop fault recovery method in the embodiment of the present invention is based on the loop architecture shown in FIG. 1. After the link is restored, the node device where the faulty port is located not only receives the NR packet but also receives the NR packet. The node ID stored on the port will be Cleared, the node identifier stored on the port that did not receive the NR packet is also cleared, and/or the original failed node device also clears the node identifier saved by all its ring ports, so when these ports receive the RPL again When the RB message sent by the Owner is inconsistent with the currently stored node identifier (currently empty), the port is re-learned. Therefore, after receiving the data packet, the node device can forward the data packet according to the re-learned address forwarding entry. Compared with the fault recovery method in the prior art, the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
具体的,请参考图1所示,节点设备A至节点设备E例如为交换机,这些节点设备两两相连形成二层环路或三层环路。在不故障的情况下,数据报文可以在环路中除了阻塞的RPL Owner端口中进行传输。Specifically, as shown in FIG. 1 , the node device A to the node device E are, for example, switches, and the node devices are connected to form a layer 2 loop or a layer 3 loop. In the case of no failure, data packets can be transmitted in the loop except for the blocked RPL Owner port.
每一个节点设备可以分别和一个终端相连,这里利用MAC地址来代表每个终端,例如图1中的终端MAC1至终端MAC5。而每个节点设备上学习到的地址转发表项可以分为两类,一类是地址的出端口为环路上的端口,另一类地址的出端口为非环上端口,例如节点设备D上学习到的终端MAC1的出端口为D3,即为环下端口,而节点设备D上学习到的终端MAC2的出端口为D1,即为环上的出端口。如此可以形成每个节点设备的地址转发表。Each node device can be separately connected to a terminal, where a MAC address is used to represent each terminal, such as terminal MAC1 to terminal MAC5 in FIG. The address forwarding entries learned on each node device can be classified into two types. The outgoing port of the address is the port on the ring, and the outgoing port of the other type is the non-ring port. For example, on the node device D. The egress port of the learned terminal MAC1 is D3, which is the ring-down port, and the egress port of the terminal MAC2 learned on the node device D is D1, which is the egress port on the ring. In this way, an address forwarding table for each node device can be formed.
在本实施例中,每个节点设备在环上至少存在一对端口;如节点设备D上的环上端口为D1和D2。In this embodiment, each node device has at least one pair of ports on the ring; for example, the ring ports on the node device D are D1 and D2.
需要说明的是,节点设备E和节点设备D并未通过环上端口直接连接,而是通过第三方网络连接,所以在图1所示的环路结构中,ERPS协议报文,例如SR报文、NR报文、RB报文不能从节点设备E到达节点设备D,也不能从节点设备D到达节点设备E。节点设备E和节点设备D可以通过第三网络传输数据报文。图1所示的环路结构也可以称为半环结构。It should be noted that the node device E and the node device D are not directly connected through the ring port, but are connected through a third-party network. Therefore, in the loop structure shown in FIG. 1, the ERPS protocol packet, for example, the SR packet. The NR message and the RB message cannot reach the node device D from the node device E, and cannot reach the node device E from the node device D. The node device E and the node device D can transmit data messages through the third network. The loop structure shown in Figure 1 can also be referred to as a half-ring structure.
应理解的是,图1以环路上有五个节点设备为例进行说明,但是在实际应用中,环路上可以包括任意数量的节点设备,本领域技术人员可以根据实际需求进行设置。 It should be understood that FIG. 1 is described by taking five node devices on the loop as an example. However, in actual applications, any number of node devices may be included in the loop, and those skilled in the art may set according to actual requirements.
接下来请参考图2,图2为本发明实施例提供的节点设备的可能的结构图。该节点设备例如为节点设备A至节点设备E任一节点设备的一种可能的结构图。如图2所示,该节点设备包括:处理器10、发送端口20、接收端口30、存储器40。存储器40、发送端口20和接收端口30和处理器10可以通过总线进行连接。当然,在实际运用中,存储器40、发送端口20和接收端口30和处理器10之间可以不是总线结构,而可以是其它结构,例如星型结构,本申请不作具体限定。Referring to FIG. 2, FIG. 2 is a schematic structural diagram of a node device according to an embodiment of the present invention. The node device is, for example, a possible block diagram of any node device of the node device A to the node device E. As shown in FIG. 2, the node device includes: a processor 10, a transmitting port 20, a receiving port 30, and a memory 40. The memory 40, the transmit port 20 and the receive port 30, and the processor 10 can be connected via a bus. Of course, in the actual application, the memory 40, the transmitting port 20, and the receiving port 30 and the processor 10 may not be a bus structure, but may be other structures, such as a star structure, which is not specifically limited in the present application.
可选的,处理器10具体可以是通用的中央处理器或特定应用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC),可以是一个或多个用于控制程序执行的集成电路,可以是使用现场可编程门阵列(英文:Field Programmable Gate Array,简称:FPGA)开发的硬件电路,可以是基带处理器。Optionally, the processor 10 may be a general-purpose central processing unit or an application specific integrated circuit (ASIC), and may be one or more integrated circuits for controlling program execution, and may be A hardware circuit developed using a Field Programmable Gate Array (FPGA) can be a baseband processor.
可选的,处理器10可以包括至少一个处理核心。Alternatively, processor 10 may include at least one processing core.
可选的,存储器40可以包括只读存储器(英文:Read Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)和磁盘存储器中的一种或多种。存储器40用于存储处理器10运行时所需的数据和/或指令。存储器40的数量可以为一个或多个。存储器40还可以用于存储前述地址转发表项、节点标识等。Optionally, the memory 40 may include one or more of a read only memory (English: Read Only Memory, ROM for short), a random access memory (English: Random Access Memory, RAM), and a disk storage. Memory 40 is used to store data and/or instructions needed by processor 10 to operate. The number of memories 40 may be one or more. The memory 40 can also be used to store the foregoing address forwarding entry, node identifier, and the like.
可选的,发送端口20和接收端口30在物理上可以相互独立也可以集成在一起。Optionally, the sending port 20 and the receiving port 30 are physically independent of each other or integrated.
可选的发送端口20和接收端口30总和的数量为至少两个,用于报文输出的发送端口20也可以称为出端口,用于报文输入的接收端口30也可以称为入端口。The number of the sum of the sending port 20 and the receiving port 30 is at least two. The sending port 20 for packet output can also be called an egress port. The receiving port 30 for packet input can also be called an ingress port.
接下来请参考图3,图3为本发明实施例提供的一种环路故障恢复方法的流程图,在图3所示的方法中,是从非故障的节点设备的角度进行描述。如图3所示,该方法包括:Referring to FIG. 3, FIG. 3 is a flowchart of a loop fault recovery method according to an embodiment of the present invention. In the method shown in FIG. 3, it is described from the perspective of a non-faulty node device. As shown in FIG. 3, the method includes:
步骤101:当环路上的链路故障恢复时,所述环路上的非故障的节点设备 接收故障的节点设备发送的NR报文;Step 101: When the link failure on the loop recovers, the non-faulty node device on the loop Receiving an NR message sent by the failed node device;
步骤102:非故障的节点设备清除自身的接收到所述NR报文的端口和未接收到所述NR报文的端口上保存的节点标识;Step 102: The non-faulty node device clears its own port that receives the NR packet and the node identifier that is saved on the port that does not receive the NR packet.
步骤103:在非故障的节点设备接收到RPL Owner发送的RB报文时,学习新的节点标识,所述新的节点标识为RPL Owner端口的节点标识;Step 103: When the non-faulty node device receives the RB packet sent by the RPL Owner, learns a new node identifier, where the new node identifier is a node identifier of the RPL Owner port.
步骤104:非故障的节点设备基于所述新的节点标识和接收到所述RB报文的端口上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表项并重新学习地址转发表项。Step 104: The non-faulty node device deletes the address forwarding entry learned during the fault and re-learns the address translation based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port that receives the RB packet. Publish the item.
因此,当RPL Owner在接收到故障的节点设备发送的NR报文后,发送RB报文给其它节点设备时,非故障的节点设备上接收到该RB报文的端口学习到的节点标识和当前存储的节点标识不一致(因为在步骤102中,非故障的节点设备已清除自身的收到以及未收到NR报文的端口上保存的节点标识,所以当前存储的节点标识为空),所以会触发非故障的节点设备删除在故障期间学习到的地址转发表项,并重新学习新的地址转发表项。因此,当非故障的节点设备接收到数据报文之后,可以按照重新学习的地址转发表项对数据报文进行正常转发。相较于现有技术中的故障恢复方法,本发明实施例中的方法不会发生丢包的情况,也不需要等待地址老化的时间才能使数据报文转发正常,提高了ERPS半环倒换性能。Therefore, when the RPL Owner sends an RB message to another node device after receiving the NR message sent by the failed node device, the node identifier and the current port learned by the port receiving the RB message on the non-faulty node device The stored node identifiers are inconsistent (because in step 102, the non-faulty node device has cleared its own received and the node identifier saved on the port that did not receive the NR packet, so the currently stored node identifier is empty), so The non-failed node device is triggered to delete the address forwarding entry learned during the failure and relearn the new address forwarding entry. Therefore, after the non-faulty node device receives the data packet, the data packet can be forwarded normally according to the re-learned address forwarding entry. Compared with the fault recovery method in the prior art, the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
接下来请参考图4,图4为本发明实施例提供的一种环路故障恢复方法的流程图,在图4所示的方法中,是从故障端口所在的节点设备(下称故障的节点设备)的角度进行描述。如图4所示,该方法包括:Referring to FIG. 4, FIG. 4 is a flowchart of a method for recovering a loop fault according to an embodiment of the present invention. In the method shown in FIG. 4, a node device from which a faulty port is located (hereinafter referred to as a faulty node) The angle of the device is described. As shown in FIG. 4, the method includes:
步骤201:当环路的链路故障恢复时,所述环路上的故障的节点设备向非故障的节点设备发送NR报文;Step 201: When the link failure of the loop is restored, the faulty node device on the loop sends an NR packet to the non-faulty node device.
步骤202:故障的节点设备清除自身的在所述环路上的所有端口保存的节点标识;Step 202: The faulty node device clears its own node identifier saved on all ports on the loop.
步骤203:在故障的节点设备接收到RPL Owner发送的RB报文时,学习新的节点标识,所述新的节点标识为RPL Owner端口的节点标识; Step 203: When the faulty node device receives the RB packet sent by the RPL Owner, learns a new node identifier, where the new node identifier is a node identifier of the RPL Owner port.
步骤204:故障的节点设备基于所述新的节点标识和接收到所述RB报文的端口上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表项并重新学习地址转发表项。Step 204: The faulty node device deletes the address forwarding entry learned during the fault and re-learns the address forwarding table based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port that receives the RB packet. item.
因此,当RPL Owner在接收到故障的节点设备发送的NR报文后,发送RB报文给其它节点设备时,故障的节点设备上接收到该RB报文的端口学习到的节点标识和当前存储的节点标识不一致(因为在步骤202中,故障的节点设备已清除自身在所述环路上的所有端口保存的节点标识,所以当前存储的节点标识为空),所以会触发故障的节点设备删除在故障期间学习到的地址转发表项,并重新学习新的地址转发表项。因此,当故障的节点设备接收到数据报文之后,可以按照重新学习的地址转发表项对数据报文进行正常转发。相较于现有技术中的故障恢复方法,本发明实施例中的方法不会发生丢包的情况,也不需要等待地址老化的时间才能使数据报文转发正常,提高了ERPS半环倒换性能。Therefore, when the RPL Owner sends an RB message to another node device after receiving the NR message sent by the failed node device, the node identifier and the current storage learned by the port receiving the RB message on the faulty node device The node identifiers are inconsistent (because in step 202, the failed node device has cleared its own node ID saved on all ports on the loop, so the currently stored node identifier is empty), so the node device that triggered the fault is deleted. The address forwarding entry learned during the failure and re-learning the new address forwarding entry. Therefore, after the faulty node device receives the data packet, the data packet can be forwarded normally according to the re-learned address forwarding entry. Compared with the fault recovery method in the prior art, the method in the embodiment of the present invention does not cause packet loss, and does not need to wait for the address aging time to enable the data packet to be forwarded normally, thereby improving the ERPS half-ring switching performance. .
为便于本领域技术人员理解本发明实施例中的环路故障方法的具体实施过程以及有益的效果,下面将具体举例说明。To facilitate the understanding of the specific implementation process and beneficial effects of the loop failure method in the embodiments of the present invention, those skilled in the art will be specifically exemplified below.
请参考图4a所示,在环路处于稳定状态时,节点设备A作为RPL Owner,节点设备A上的端口1(为便于描述,下称端口A1)处于阻塞状态(图4a中端口A1处的黑色圆点表示端口A1阻塞),即不能通过端口A1转发数据报文,但是可以通过端口A1发送R-ARS,例如NR报文、RB报文等。在稳定状态时,节点设备A通过端口A1向节点设备E发送RB报文,并通过节点设备A上的端口2(为便于描述,下称端口A2)向节点设备B发送RB报文。对应的,节点设备E的端口2(为便于描述,下称端口E1)就会学习到节点标识为端口A1,例如用端口A1的MAC地址来表征,在图5a中端口E2旁的(A1)表示端口E2学习到的节点标识为端口A1。因为节点设备E的端口1(下称端口E1)与第三方网络连接,所以无法转发RB报文,所以节点设备E不再转发该RB报文。Referring to FIG. 4a, when the loop is in a stable state, node device A functions as an RPL Owner, and port 1 on node device A (hereinafter referred to as port A1 for convenience of description) is in a blocked state (port A1 in FIG. 4a). The black dot indicates that the port A1 is blocked. That is, the data packet cannot be forwarded through the port A1, but the R-ARS, such as the NR packet and the RB packet, can be sent through the port A1. In the steady state, the node device A sends the RB message to the node device E through the port A1, and sends the RB message to the node device B through the port 2 on the node device A (hereinafter referred to as the port A2 for convenience of description). Correspondingly, port 2 of node device E (for ease of description, hereinafter referred to as port E1) will learn that the node identifier is port A1, for example, represented by the MAC address of port A1, (A1) next to port E2 in Figure 5a. Indicates that the node ID learned by port E2 is port A1. Because the port 1 of the node device E (hereinafter referred to as the port E1) is connected to the third-party network, the RB packet cannot be forwarded. Therefore, the node device E does not forward the RB packet.
对应的,节点设备B的端口1(下称端口B1)会接收到节点设备A发送 的RB报文,并学习到的节点标识为端口A1。然后节点设备B通过自身的端口2(下称端口B2)转发该RB报文给节点设备C。相应的,节点设备C的端口1(下称C1)接收该RB报文,并学习到的节点标识为端口A1。类似的,节点设备C通过自身的端口2(下称端口C2)转发该RB报文给节点设备D。相应的,节点设备D的端口1(下称D1)接收该RB报文,并学习到的节点标识为端口A1。因为节点设备D的端口2(下称端口D2)与第三方网络连接,所以无法转发RB报文,所以节点设备D不再转发该RB报文。Correspondingly, port 1 of node device B (hereinafter referred to as port B1) will receive the node device A to send. The RB message and the learned node ID is port A1. The node device B then forwards the RB message to the node device C through its own port 2 (hereinafter referred to as port B2). Correspondingly, the port 1 of the node device C (hereinafter referred to as C1) receives the RB packet, and the learned node identifier is port A1. Similarly, the node device C forwards the RB message to the node device D through its own port 2 (hereinafter referred to as port C2). Correspondingly, the port 1 of the node device D (hereinafter referred to as D1) receives the RB packet, and the learned node identifier is port A1. Because the port 2 of the node device D (hereinafter referred to as the port D2) is connected to the third-party network, the RB packet cannot be forwarded, so the node device D does not forward the RB packet.
对于节点设备B而言,当从端口B2接收到一个源MAC地址为MAC1,目的MAC地址为MAC2的数据报文时,节点设备B学习到的地址转发表项为目的MAC地址为MAC1时,对应的出端口为端口B2,该地址转发表项可以简单表示为MAC1->B2。反之,当从端口3(下称端口B3)接收到一个源MAC地址为MAC2,目的MAC地址为MAC1的数据报文时,节点设备B学习到的地址转发表项为目的MAC地址为MAC2时,对应的出端口为端口B3,该地址转发表项可以简单表示为MAC2->B3。For the node device B, when the source MAC address is MAC1 and the destination MAC address is the MAC2 data packet, the node device B learns the address forwarding entry as the destination MAC address is MAC1. The outbound port is port B2, and the address forwarding entry can be simply represented as MAC1->B2. On the other hand, when the destination MAC address is MAC2 and the destination MAC address is MAC2, the destination MAC address learned by the node B is MAC2. The corresponding egress port is port B3. The address forwarding entry can be simply represented as MAC2->B3.
类似的,对于节点设备B而言,当从端口B1接收到一个源MAC地址为MAC4,目的MAC地址为MAC2的数据报文时,节点设备B学习到的地址转发表项为目的MAC地址为MAC4时,对应的出端口为端口B1,该地址转发表项可以简单表示为MAC4->B1。Similarly, for the node device B, when the source MAC address is MAC4 and the destination MAC address is the data packet of the MAC2, the address forwarding entry learned by the node device B is the destination MAC address. The corresponding egress port is port B1. The address forwarding entry can be simply represented as MAC4->B1.
因此,节点设备B上的地址转发路由表可以如表一所示。Therefore, the address forwarding routing table on the node device B can be as shown in Table 1.
目的地址Destination address 出端口Out port
MAC1MAC1 B2B2
MAC2MAC2 B3B3
MAC4MAC4 B1B1
表一Table I
在表一中,路由表可以包括两个字段,分别为目的地址字段和出端口字段。目的地址字段用于表征数据报文的目的地址。出端口字段为该目的地址对应的出端口。 In Table 1, the routing table can include two fields, a destination address field and an out port field. The destination address field is used to represent the destination address of the data packet. The outbound port field is the egress port corresponding to the destination address.
对于节点设备C而言,当从端口C2接收到一个源MAC地址为MAC1,目的MAC地址为MAC2的数据报文时,节点设备C学习到的地址转发表项为目的MAC地址为MAC1时,对应的出端口为端口C2,该地址转发表项可以简单表示为MAC1->C2。反之,当从端口3(下称端口C3)接收到一个源MAC地址为MAC3,目的MAC地址为MAC1的数据报文时,节点设备C学习到的地址转发表项为目的MAC地址为MAC3时,对应的出端口为端口C3,该地址转发表项可以简单表示为MAC3->C3。For the node device C, when the source MAC address is MAC1 and the destination MAC address is the MAC2 data packet, the node device C learns the address forwarding entry as the destination MAC address is MAC1. The outbound port is port C2, and the address forwarding entry can be simply represented as MAC1->C2. On the other hand, when the destination MAC address is MAC3 and the destination MAC address is MAC3, the destination MAC address learned by the node C is MAC3. The corresponding egress port is port C3. The address forwarding entry can be simply represented as MAC3->C3.
类似的,对于节点设备C而言,当从端口C1接收到一个源MAC地址为MAC4,目的MAC地址为MAC1的数据报文时,节点设备C学习到的地址转发表项为目的MAC地址为MAC4时,对应的出端口为端口C1,该地址转发表项可以简单表示为MAC4->C1。Similarly, for the node device C, when the source MAC address is MAC4 and the destination MAC address is the data packet of the MAC1, the address forwarding entry learned by the node device C is the destination MAC address. The corresponding egress port is port C1. The address forwarding entry can be simply represented as MAC4->C1.
因此,节点设备C上的地址转发路由表可以如表二所示。Therefore, the address forwarding routing table on the node device C can be as shown in Table 2.
目的地址Destination address 出端口Out port
MAC1MAC1 C2C2
MAC3MAC3 C3C3
MAC4MAC4 C1C1
表二Table II
需要说明的是,在本实施例中,是以二层环路为例,所以目的地址用MAC地址表示,在三层环路中,目的地址可以是网络协议(英文:Internet Protocol,简称:IP)地址。在对本发明实施例的方法的实施中,二层环路和三层环路使用的原理是相同的,所以本实施例中为了说明书的简洁,以二层环路为例进行说明。It should be noted that, in this embodiment, a Layer 2 loop is taken as an example, so the destination address is represented by a MAC address, and in the Layer 3 loop, the destination address may be a network protocol (English: Internet Protocol, referred to as IP) )address. In the implementation of the method of the embodiment of the present invention, the principle of the use of the Layer 2 loop and the Layer 3 loop is the same. Therefore, in the embodiment, for the sake of brevity of the description, a Layer 2 loop is taken as an example for description.
接下来,若环路中有端口发生故障时,故障端口所在的节点设备会发送SF报文给环路上的其它非故障的节点设备。其它非故障的节点设备上接收该SF报文的端口就会学习到新的节点标识,即故障端口的标识。具体的,请参考图5b所示,假设因为端口C2和/或端口D1出现故障,或者是节点设备C和节点设备D之间的链路故障,节点设备C无法通过端口C2和端口D1和节 点设备D进行报文传输。Next, if there is a port failure in the loop, the node device where the faulty port is located sends SF packets to other non-faulty node devices on the loop. The port that receives the SF packet on the other non-faulty node device learns the new node identifier, that is, the identifier of the faulty port. Specifically, please refer to FIG. 5b, assuming that because the port C2 and/or the port D1 fails, or the link between the node device C and the node device D fails, the node device C cannot pass the port C2 and the port D1 and the node. Point device D performs message transmission.
因此,节点设备C通过端口C1向节点设备B发送SF报文,对应的,节点设备B的端口B2会接收到该SF报文,并学习到新的节点标识,为端口C2。接着节点设备B通过自身的端口B1转发该SF报文给节点设备A。节点设备A的端口A2会接收到该SF报文,并学习到新的节点标识,为端口C2。接着节点设备A通过自身的端口A1转发该SF报文给节点设备E。相应的,节点设备E的端口E2接收该SF报文,并且学习到的节点标识为端口C2。因为节点设备E的端口E1与第三方网络连接,所以无法转发SF报文,所以节点设备E不再转发该SF报文。类似的,因为节点设备D的端口D2与第三方网络连接,所以无法转发SF报文,所以节点设备D不再转发该SF报文。当然,在实际运用中,若节点设备D的端口D2还连接有节点设备,那么就可以通过端口D2向连接的节点设备发送SF报文,该连接的节点设备的接收SF报文的端口会学习到新的节点标识,即端口D1。Therefore, the node device C sends the SF packet to the node device B through the port C1. Correspondingly, the port B2 of the node device B receives the SF packet and learns the new node identifier, which is the port C2. The node device B then forwards the SF message to the node device A through its own port B1. Port A2 of node device A receives the SF packet and learns the new node identifier, which is port C2. The node device A then forwards the SF message to the node device E through its own port A1. Correspondingly, the port E2 of the node device E receives the SF packet, and the learned node identifier is the port C2. Because the port E1 of the node device E is connected to the third-party network, the SF packet cannot be forwarded, so the node device E does not forward the SF packet. Similarly, because the port D2 of the node device D is connected to the third-party network, the SF packet cannot be forwarded, so the node device D does not forward the SF packet. Of course, in the actual application, if the node D2 of the node device D is also connected to the node device, the SF message can be sent to the connected node device through the port D2, and the port of the connected node device that receives the SF packet learns. Go to the new node ID, port D1.
另外,在链路故障时,故障端口上存储的节点标识会被故障的节点设备清空,所以此时端口C1保存的节点标识依然为端口A1,而端口C2和端口D1上的节点标识为空。In addition, when the link is faulty, the node identifier stored on the faulty port is cleared by the faulty node device. Therefore, the node identifier saved by port C1 is still port A1, and the node identifiers on port C2 and port D1 are empty.
故障端口上的节点标识被清空后,会触发故障端口所在的节点设备上的地址转发表项也被清空,所以故障端口所在的节点设备会重新学习地址转发表项。此时,RPL Owner端口解除阻塞状态,即端口A1改变为未阻塞状态,可以通过端口A1转发数据报文和接收数据报文。而节点设备C和节点设备D之间链路故障,所以源MAC地址为MAC1,目的MAC地址为MAC2的数据报文会因为广播机制从第三方网络传输给节点设备E、节点设备A,然后从端口B1进入节点设备B,所以节点设备B学习到的地址转发表项为目的MAC地址为MAC1时,对应的出端口为端口B1,该地址转发表项可以简单表示为MAC1->B1。反之,当从端口B3接收到一个源MAC地址为MAC2,目的MAC地址为MAC1的数据报文时,节点设备B学习到的地址转发表项为目的MAC地址为MAC2时,对应的出端口为端口B3,该地址转发表项可以简 单表示为MAC2->B3。After the node ID of the faulty port is cleared, the address forwarding entry on the node where the faulty port is located is also cleared. Therefore, the node device where the faulty port resides re-learns the address forwarding entry. At this time, the RPL Owner port is unblocked, that is, the port A1 is changed to the unblocked state, and the data packet and the data packet can be forwarded through the port A1. The link between the node device C and the node device D is faulty, so the source MAC address is MAC1, and the data packet whose destination MAC address is MAC2 is transmitted from the third-party network to the node device E and the node device A because of the broadcast mechanism, and then The port B1 enters the node device B. Therefore, when the destination MAC address learned by the node device B is the destination MAC address, the corresponding egress port is the port B1, and the address forwarding entry can be simply represented as MAC1->B1. On the other hand, when receiving a data packet whose source MAC address is MAC2 and the destination MAC address is MAC1, the corresponding forwarding port is the port when the destination MAC address learned by the node B is MAC2. B3, the address forwarding entry can be simplified. Single is represented as MAC2->B3.
类似的,对于节点设备B而言,当从端口B1接收到一个源MAC地址为MAC4,目的MAC地址为MAC2的数据报文时,节点设备B学习到的地址转发表项为目的MAC地址为MAC4时,对应的出端口为端口B1,该地址转发表项可以简单表示为MAC4->B1。Similarly, for the node device B, when the source MAC address is MAC4 and the destination MAC address is the data packet of the MAC2, the address forwarding entry learned by the node device B is the destination MAC address. The corresponding egress port is port B1. The address forwarding entry can be simply represented as MAC4->B1.
因此,在链路故障期间,节点设备B上的地址转发路由表可以如表三所示。Therefore, during the link failure, the address forwarding routing table on the node device B can be as shown in Table 3.
目的地址Destination address 出端口Out port
MAC1MAC1 B1B1
MAC2MAC2 B3B3
MAC4MAC4 B1B1
表三Table 3
类似的,对于节点设备C而言,节点设备C和节点设备D之间链路故障,所以源MAC地址为MAC1,目的MAC地址为MAC2的数据报文会因为广播机制从第三方网络传输给节点设备E、节点设备A、节点设备B,然后从端口C1进入节点设备C,所以节点设备C学习到的地址转发表项为目的MAC地址为MAC1时,对应的出端口为端口C1,该地址转发表项可以简单表示为MAC1->C1。反之,当从端口C3接收到一个源MAC地址为MAC3,目的MAC地址为MAC1的数据报文时,节点设备C学习到的地址转发表项为目的MAC地址为MAC3时,对应的出端口为端口C3,该地址转发表项可以简单表示为MAC3->C3。Similarly, for the node device C, the link between the node device C and the node device D is faulty, so the source MAC address is MAC1, and the data packet whose destination MAC address is MAC2 is transmitted from the third-party network to the node due to the broadcast mechanism. The device E, the node device A, and the node device B then enter the node device C from the port C1. Therefore, when the destination MAC address learned by the node device C is the destination MAC address, the corresponding egress port is the port C1, and the address is transferred. The publication item can be simply expressed as MAC1->C1. On the other hand, when receiving a data packet whose source MAC address is MAC3 and the destination MAC address is MAC1, the corresponding forwarding port is the port when the destination MAC address learned by the node device C is MAC3. In C3, the address forwarding entry can be simply represented as MAC3->C3.
类似的,对于节点设备C而言,当从端口C1接收到一个源MAC地址为MAC4,目的MAC地址为MAC1的数据报文时,节点设备C学习到的地址转发表项为目的MAC地址为MAC4时,对应的出端口为端口C1,该地址转发表项可以简单表示为MAC4->C1。Similarly, for the node device C, when the source MAC address is MAC4 and the destination MAC address is the data packet of the MAC1, the address forwarding entry learned by the node device C is the destination MAC address. The corresponding egress port is port C1. The address forwarding entry can be simply represented as MAC4->C1.
因此,节点设备C上的地址转发路由表可以如表四所示。 Therefore, the address forwarding routing table on the node device C can be as shown in Table 4.
目的地址Destination address 出端口Out port
MAC1MAC1 C1C1
MAC3MAC3 C3C3
MAC4MAC4 C1C1
表四Table 4
在新的地址转发表项建立后,环路上的数据报文又按照新的地址转发表项走单播转发。After the new address forwarding entry is created, the data packet on the loop is forwarded by unicast according to the new address forwarding entry.
因为技术人员的修复或者其它原因,链路故障恢复正常,在现有技术中,故障端口所在的节点设备会向其它节点设备发送NR报文。其它非故障的节点设备接收到该NR报文后,删除接收到该NR报文的端口上存储的节点标识,但不会存储新的节点标识,也即此时其它节点设备上接收到该NR报文的端口上的节点标识为空。其它非故障的节点设备也不会清空地址转发表项,所以其它非故障的节点设备上当前存储的依然是故障期间学习的地址转发表项。对于故障的节点设备而言,因为故障的节点设备上的另一个环上端口也不会接收到自己发送的NR报文,所以该环上端口上存储的节点标识也不会被清除。The link fault is restored to normal due to the repair of the technician or other reasons. In the prior art, the node device where the faulty port is located sends an NR message to other node devices. After receiving the NR packet, the other non-faulty node device deletes the node identifier stored on the port that receives the NR packet, but does not store the new node identifier, that is, the other node device receives the NR at this time. The node ID on the port of the packet is empty. The other non-faulty node devices will not clear the address forwarding entry, so the other non-faulty node devices still store the address forwarding entries learned during the fault. For a faulty node device, because the other ring port on the failed node device will not receive the NR packet sent by itself, the node identifier stored on the port on the ring will not be cleared.
请参考图6所示,现有技术中的实现方式为:在链路故障恢复后,此时节点设备C和节点设备D还未恢复通信,所以节点设备C通过端口C1向节点设备B发送NR报文,对应的,节点设备B的端口B2会接收到该NR报文,并清空存储的节点标识,即端口C2。接着节点设备B通过自身的端口B1转发该NR报文给节点设备A。节点设备A的端口A2会接收到该NR报文,并清空存储的节点标识,即端口C2。接着节点设备A通过自身的端口A1转发该NR报文给节点设备E。相应的,节点设备E的端口E2接收该NR报文,并且清空存储的节点标识,即端口C2。因为节点设备E的端口E1与第三方网络连接,所以无法转发NR报文,所以节点设备E不再转发该NR报文。类似的,因为节点设备D的端口D2与第三方网络连接,所以无法转发NR报文,所以节点设备D不再转发该NR报文。当然,在实际运用中,若节点设备D 的端口D2还连接有节点设备,那么就可以通过端口D2向连接的节点设备发送NR报文,该连接的节点设备的接收NR报文的端口会清空存储的节点标识,即端口D1。Referring to FIG. 6, the implementation in the prior art is: after the link failure is recovered, at this time, the node device C and the node device D have not resumed communication, so the node device C sends the NR to the node device B through the port C1. The packet, correspondingly, the port B2 of the node device B receives the NR packet and clears the stored node identifier, that is, the port C2. The node device B then forwards the NR message to the node device A through its own port B1. Port A2 of node device A receives the NR packet and clears the stored node identifier, that is, port C2. The node device A then forwards the NR message to the node device E through its own port A1. Correspondingly, the port E2 of the node device E receives the NR message and clears the stored node identifier, that is, the port C2. Because the port E1 of the node device E is connected to the third-party network, the NR message cannot be forwarded, so the node device E does not forward the NR message. Similarly, because the port D2 of the node device D is connected to the third-party network, the NR message cannot be forwarded, so the node device D no longer forwards the NR message. Of course, in actual use, if node device D The port D2 is also connected to the node device, and then the NR message can be sent to the connected node device through the port D2, and the port of the connected node device that receives the NR message clears the stored node identifier, that is, the port D1.
另外,因为端口B1不是NR报文的接收端口,所以端口B1上存储的节点标识不会被清空,依然是端口A1。端口C1也不是NR报文的接收端口,所以端口C1上存储的节点标识不会被清空,依然是端口A1。经过该步骤处理后,各个端口上保存的节点标识的情况如图6所示。In addition, since the port B1 is not the receiving port of the NR message, the node identifier stored on the port B1 is not emptied, and is still the port A1. Port C1 is also not the receiving port of NR packets, so the node identifier stored on port C1 will not be emptied, and it is still port A1. After the processing of this step, the node identifier stored on each port is as shown in FIG. 6.
可选的,RPL Owner在接收到故障的节点设备发送的NR报文后,将端口A1阻塞,并可以向其它节点设备发送NR报文,通知其它节点设备链路故障已经恢复。进一步,RPL Owner可以向其它节点设备发送RB报文,表示端口A1已阻塞。RB报文发送的示意图请参考图5a所示。此时各个接收到该RB报文的端口学习到的节点标识为A1,但是端口B1和端口C1上当前存储的节点标识也为A1,所以两者一致,则不会触发重新学习地址转发表项,所以此时节点设备B上的地址转发表项依然为表三所示,节点设备C上的地址转发表项依然为表四所示。在这种情况下,目的地址为MAC1的数据报文还是会通过端口B1发送到节点设备A上,而端口A1被阻塞,所以该数据报文会被端口A1丢弃,所以数据报文无法被正常转发。Optionally, after receiving the NR packet sent by the faulty node device, the RPL Owner blocks the port A1 and can send an NR packet to the other node device to notify the other node that the link fault has been recovered. Further, the RPL Owner may send an RB packet to the other node device, indicating that the port A1 is blocked. For a schematic diagram of RB packet transmission, please refer to Figure 5a. The node ID of the port that receives the RB packet is A1, but the node ID currently stored on port B1 and port C1 is also A1. Therefore, if the two are consistent, the re-learning address forwarding entry will not be triggered. Therefore, the address forwarding entry on node device B is still shown in Table 3. The address forwarding entry on node device C is still shown in Table 4. In this case, the data packet whose destination address is MAC1 is still sent to the node device A through the port B1, and the port A1 is blocked. Therefore, the data packet is discarded by the port A1, so the data packet cannot be normal. Forward.
为了解决该技术问题,在本发明实施例中,在链路故障恢复后,非故障的节点设备执行步骤101以及步骤102,即非故障的节点设备接收故障的节点设备发送的NR报文,并且清空自身的接收到以及未接收到NR报文的端口上保存的节点标识。换言之,非故障的节点设备还清空未接收到NR报文的端口上保存的节点标识。In order to solve the technical problem, in the embodiment of the present invention, after the link failure is recovered, the non-faulty node device performs step 101 and step 102, that is, the non-faulty node device receives the NR message sent by the failed node device, and Clear the node ID saved on the port that it received and that did not receive the NR message. In other words, the non-failed node device also clears the node identifier saved on the port that has not received the NR message.
类似的,在链路故障恢复后,故障的节点设备执行步骤201以及步骤202,即故障的节点设备向非故障的节点设备发送NR报文,并且清空自身的在环路上所有的端口上保存的节点标识。换言之,故障的节点设备还清空自身的非故障端口上保存的节点标识。Similarly, after the link failure is recovered, the faulty node device performs step 201 and step 202, that is, the faulty node device sends an NR message to the non-faulty node device, and empties its own saved on all ports on the loop. Node ID. In other words, the failed node device also empties the node identifier saved on its own non-faulty port.
举例来说,在故障恢复后,经过步骤101和步骤102之后,各个端口上 存储的节点标识的情况如图4c所示。即节点设备C向环路上其它非故障的节点设备发送NR报文,端口B2在接收到节点设备C发送的NR报文后,节点设备B清空端口B2上存储的节点标识。进一步,节点设备B也会清空端口B1上存储的节点标识。端口A2在接收到节点设备B发送的NR报文后,节点设备A清空端口A2上存储的节点标识。进一步,节点设备A也会清空端口A1上存储的节点标识。端口E2在接收到节点设备A发送的NR报文后,节点设备E清空端口E2上存储的节点标识。For example, after the fault is recovered, after step 101 and step 102, on each port The case of the stored node identification is shown in Figure 4c. That is, the node device C sends an NR message to the other non-faulty node device on the loop. After receiving the NR message sent by the node device C, the port device B clears the node identifier stored on the port B2. Further, the node device B also clears the node identifier stored on the port B1. After receiving the NR message sent by the node device B, the port device A2 clears the node identifier stored on the port A2. Further, the node device A also clears the node identifier stored on the port A1. After the port E2 receives the NR message sent by the node device A, the node device E clears the node identifier stored on the port E2.
举例来说,在故障恢复后,经过步骤201和步骤202之后,各个端口上存储的节点标识的情况如图4c所示。即节点设备C向环路上其它节点设备发送NR报文,节点设备C也会清空端口C1上存储的节点标识。For example, after the fault is recovered, after step 201 and step 202, the node identifier stored on each port is as shown in FIG. 4c. That is, the node device C sends an NR message to other node devices on the loop, and the node device C also clears the node identifier stored on the port C1.
在图4c的情况下,在RPL Owner发送RB报文时,端口B1接收到该NR报文,并学习节点标识,情况如图5a所示。此时端口B1学习到的节点标识为端口A1,而端口B1当前的节点标识为空,所以两者不一致,就会触发节点设备学习新的地址转发表项,学习后,新的地址转发表项为表一所示的表项,所以数据报文可以被正常转发。In the case of FIG. 4c, when the RPL Owner sends an RB message, port B1 receives the NR message and learns the node identifier, as shown in FIG. 5a. The node ID learned by the port B1 is the port A1, and the current node ID of the port B1 is empty. Therefore, the two devices are inconsistent, and the node device learns the new address forwarding entry. After learning, the new address forwarding entry is learned. It is the entry shown in Table 1, so the data packet can be forwarded normally.
在图4c的情况下,在RPL Owner发送RB报文时,端口C1接收到该NR报文,并学习节点标识,情况如图5a所示。此时端口C1学习到的节点标识为端口A1,而端口C1当前的节点标识为空,所以两者不一致,就会触发节点设备学习新的地址转发表项,学习后,新的地址转发表项为表二所示的表项,所以数据报文可以被正常转发。In the case of FIG. 4c, when the RPL Owner sends an RB message, port C1 receives the NR message and learns the node identifier, as shown in FIG. 5a. At this time, the node ID learned by the port C1 is the port A1, and the current node ID of the port C1 is empty. Therefore, if the two are inconsistent, the node device learns the new address forwarding entry. After learning, the new address forwarding entry is learned. The entries shown in Table 2, so data packets can be forwarded normally.
因此,本发明实施例中的方法可以保证在链路故障恢复后,故障的节点设备和非故障的节点设备会删除在故障期间学习到的地址转发表项,并重新学习地址转发表项,以保证数据报文的正常转发,而无需像现有技术中出现丢包的情况,以及需要等待地址老化后才能重新学习地址转发表项。Therefore, the method in the embodiment of the present invention can ensure that after the link failure is recovered, the faulty node device and the non-failed node device delete the address forwarding entry learned during the fault and relearn the address forwarding entry. The normal forwarding of data packets is ensured, and the packet forwarding entries cannot be re-learned after waiting for the address to age.
基于同一发明构思,本发明实施例还提供一种节点设备(如图2所示),该节点设备用于实现前述方法中的任意一种方法。Based on the same inventive concept, an embodiment of the present invention further provides a node device (shown in FIG. 2), which is used to implement any one of the foregoing methods.
可选的,当该节点设备为非故障的节点设备时,接收端口30,用于当环 路上的链路故障恢复时,接收所述环路上的故障的节点设备发送的链路恢复NR报文;处理器10,用于清除接收端口30和所述节点设备上未接收到所述NR报文的端口上保存的节点标识;在所述接收端口30接收到环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;以及基于所述新的节点标识和接收端口30上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表项并重新学习地址转发表项。Optionally, when the node device is a non-faulty node device, the receiving port 30 is used to be a ring. When the link failure on the road is restored, the link sent by the node device receiving the fault on the loop recovers the NR message; the processor 10 is configured to clear the receiving port 30 and the NR report is not received on the node device. The node identifier saved on the port of the text; when the receiving port 30 receives the RPL owner port blocking RB packet sent by the loop protection link RPL owner, learns a new node identifier, and the new node identifier is The node identifier of the RPL owner port; and based on the result that the new node identifier is inconsistent with the node identifier currently stored on the receiving port 30, the address forwarding entry learned during the fault is deleted and the address forwarding entry is re-learned.
可选的,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。Optionally, the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a media access control MAC address.
可选的,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。Optionally, the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
可选的,当图2中的节点设备为故障的节点设备时,发送端口20,用于当环路的链路恢复时,向所述环路上的非故障的节点设备发送链路恢复NR报文;处理器10,用于清除所述节点设备的在所述环路上的所有端口保存的节点标识;接收端口30,用于接收环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文;处理器10还用于:在接收端口30接收到所述RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;以及基于所述新的节点标识和接收端口30上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表项并重新学习地址转发表项。Optionally, when the node device in FIG. 2 is a faulty node device, the sending port 20 is configured to send a link recovery NR report to the non-faulty node device on the loop when the link of the loop is restored. The processor 10 is configured to clear a node identifier saved by all the ports of the node device on the loop, and the receiving port 30 is configured to receive an RPL owner port blocking RB sent by the RPL owner of the loop protection link. The processor 10 is further configured to: when the receiving port 30 receives the RB message, learn a new node identifier, where the new node identifier is a node identifier of an RPL owner port; and based on the new As a result of the inconsistency between the node identifier and the node identifier currently stored on the receiving port 30, the address forwarding entry learned during the fault is deleted and the address forwarding entry is re-learned.
可选的,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。Optionally, the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a media access control MAC address.
可选的,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。Optionally, the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
基于同一发明构思,本发明实施例还提供一种环路故障恢复装置,该环路故障恢复装置包括用于执行前述方法步骤的功能模块。在一种可能的实现方式中,如图7所示,该环路故障恢复装置包括接收单元301、处理单元302以及发送单元303。 Based on the same inventive concept, an embodiment of the present invention further provides a loop fault recovery apparatus, where the loop fault recovery apparatus includes a functional module for performing the foregoing method steps. In a possible implementation manner, as shown in FIG. 7, the loop fault recovery apparatus includes a receiving unit 301, a processing unit 302, and a transmitting unit 303.
可选的,当环路故障恢复装置用于实现前述非故障的节点设备的功能时,接收单元301,用于当环路上的链路故障恢复时,接收所述环路上的故障的节点设备发送的链路恢复NR报文;处理单元302,用于清除所述环路上的非故障的节点设备的在所述环路上的所有端口上保存的节点标识;在接收单元301接收到环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;以及基于所述新的节点标识和所述非故障的节点设备上的端口上当前存储的节点标识不一致的结果,删除所述非故障的节点设备在故障期间学习的地址转发表项并重新学习地址转发表项。Optionally, when the loop fault recovery device is configured to implement the function of the foregoing non-faulty node device, the receiving unit 301 is configured to send, when the link failure on the loop recovers, the node device that receives the fault on the loop sends The link recovers the NR message; the processing unit 302 is configured to clear the node identifier stored on all ports on the loop of the non-faulty node device on the loop; and receive the loop protection chain at the receiving unit 301. Learning the new node identifier when the RPL owner port sent by the RPL owner blocks the RB message, the new node identifier is the node identifier of the RPL owner port; and based on the new node identifier and the non-fault As a result of the inconsistent node identifier currently stored on the port on the node device, the address forwarding entry learned by the non-faulty node device during the failure is deleted and the address forwarding entry is re-learned.
可选的,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。Optionally, the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a media access control MAC address.
可选的,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。Optionally, the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
可选的,当环路故障恢复装置用于实现前述非故障的节点设备的功能时,发送单元303,用于当环路上的链路故障恢复时,向所述环路上的非故障的节点设备发送链路恢复NR报文;处理单元302,用于清除所述环路上的故障的节点设备的在所述环路上的所有端口上保存的节点标识;接收单元301,用于接收环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文,处理单元302还用于:在所述接收单元301接收到所述RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;以及基于所述新的节点标识和所述故障的节点设备上的端口上当前存储的节点标识不一致的结果,删除所述故障的节点设备在故障期间学习的地址转发表项并重新学习地址转发表项。Optionally, when the loop fault recovery device is configured to implement the function of the foregoing non-faulty node device, the sending unit 303 is configured to: when the link failure on the loop recovers, to the non-faulty node device on the loop The sending unit recovers the NR message; the processing unit 302 is configured to: clear the node identifier stored on all ports on the loop of the faulty node device on the loop; and receive unit 301, configured to receive the loop protection chain The RPL owner port sent by the RPL owner blocks the RB message, and the processing unit 302 is further configured to: when the receiving unit 301 receives the RB message, learn a new node identifier, where the new node identifier is a node identifier of the RPL owner port; and deleting the address of the node device that is learned during the fault based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port on the faulty node device Publish the item and relearn the address forwarding entry.
可选的,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。Optionally, the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a media access control MAC address.
可选的,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。 Optionally, the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
前述实施例中的环路故障恢复方法中的各种变化方式和具体实例同样适用于本实施例的环路故障恢复装置以及图2中的节点设备,通过前述对环路故障恢复方法的详细描述,本领域技术人员可以清楚的知道本实施例中环路故障恢复装置以及图2中的节点设备的实施方法,所以为了说明书的简洁,在此不再详述。The various changes and specific examples in the loop fault recovery method in the foregoing embodiment are also applicable to the loop fault recovery device of the present embodiment and the node device in FIG. 2, and the foregoing detailed description of the loop fault recovery method is provided. The loop fault recovery device in this embodiment and the implementation method of the node device in FIG. 2 can be clearly understood by those skilled in the art, and therefore, for the sake of brevity of the description, details are not described herein again.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Thus, embodiments of the invention may be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
本申请是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要 求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the application are claimed in the present application The present application is also intended to cover such modifications and variations within the scope of the invention.

Claims (18)

  1. 一种环路故障恢复方法,其特征在于,包括:A loop fault recovery method, comprising:
    当环路上的链路故障恢复时,所述环路上的非故障的节点设备接收故障的节点设备发送的链路恢复NR报文;When the link failure on the loop is restored, the non-faulty node device on the loop receives the link recovery NR packet sent by the failed node device;
    所述非故障的节点设备清除自身的接收到所述NR报文的端口和未接收到所述NR报文的端口上保存的节点标识;The non-faulty node device clears its own port that receives the NR packet and the node identifier that is saved on the port that does not receive the NR packet;
    在所述非故障的节点设备接收到环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;When the non-faulty node device receives the RPL owner port blocking RB message sent by the loop protection link RPL owner, learns a new node identifier, and the new node identifier is a node identifier of the RPL owner port. ;
    所述非故障的节点设备基于所述新的节点标识和接收到所述RB报文的端口上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表项并重新学习地址转发表项。The non-faulty node device deletes the address forwarding entry learned during the failure and re-learns the address forwarding table based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port that receives the RB packet. item.
  2. 如权利要求1所述的方法,其特征在于,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。The method of claim 1, wherein the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a medium access control MAC address.
  3. 如权利要求1所述的方法,其特征在于,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。The method of claim 1, wherein the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
  4. 一种环路故障恢复方法,其特征在于,包括:A loop fault recovery method, comprising:
    当环路的链路恢复时,所述环路上的故障的节点设备向非故障的节点设备发送链路恢复NR报文;When the link of the loop is restored, the faulty node device on the loop sends a link recovery NR message to the non-faulty node device;
    所述故障的节点设备清除自身的在所述环路上的所有端口保存的节点标识;The faulty node device clears its own node identifier saved on all ports on the loop;
    在所述故障的节点设备接收到环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;When the faulty node device receives the RPL owner port blocking RB message sent by the loop protection link RPL owner, learns a new node identifier, where the new node identifier is a node identifier of the RPL owner port;
    所述故障的节点设备基于所述新的节点标识和接收到所述RB报文的端口上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表 项并重新学习地址转发表项。The faulty node device deletes the address forwarding table learned during the fault based on the result that the new node identifier is inconsistent with the node identifier currently stored on the port that receives the RB packet. And relearn the address forwarding entry.
  5. 如权利要求4所述的方法,其特征在于,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。The method of claim 4, wherein the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a medium access control MAC address.
  6. 如权利要求4所述的方法,其特征在于,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。The method of claim 4, wherein the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
  7. 一种环路故障恢复装置,其特征在于,包括:A loop fault recovery device, comprising:
    接收单元,用于当环路上的链路故障恢复时,接收所述环路上的故障的节点设备发送的链路恢复NR报文;a receiving unit, configured to: when a link failure on the loop recovers, receive a link recovery NR message sent by the node device that is faulty on the loop;
    处理单元,用于清除所述环路上的非故障的节点设备的在所述环路上的所有端口上保存的节点标识;在所述接收单元接收到环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;以及基于所述新的节点标识和所述非故障的节点设备上的端口上当前存储的节点标识不一致的结果,删除所述非故障的节点设备在故障期间学习的地址转发表项并重新学习地址转发表项。a processing unit, configured to clear a node identifier saved on all ports on the loop of the non-faulty node device on the loop; and receiving, by the receiving unit, an RPL owned by a loop protection link RPL owner When the port blocks the RB message, learns a new node identifier, the new node identifier is a node identifier of the RPL owner port; and based on the new node identifier and the current port on the non-faulty node device As a result of the inconsistent stored node identifiers, the address forwarding entries learned by the non-faulty node device during the failure are deleted and the address forwarding entries are re-learned.
  8. 如权利要求7所述的装置,其特征在于,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。The device according to claim 7, wherein the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a medium access control MAC address.
  9. 如权利要求7所述的装置,其特征在于,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。The device according to claim 7, wherein the loop is a Layer 3 Ethernet loop, and an address in the address forwarding entry is a network protocol IP address.
  10. 一种环路故障恢复装置,其特征在于,包括:A loop fault recovery device, comprising:
    发送单元,用于当环路上的链路故障恢复时,向所述环路上的非故障的节点设备发送链路恢复NR报文;a sending unit, configured to send a link recovery NR message to the non-faulty node device on the loop when the link failure on the loop is restored;
    处理单元,用于清除所述环路上的故障的节点设备的在所述环路上的所有端口上保存的节点标识;a processing unit, configured to clear a node identifier saved on all ports on the loop of the node device on the fault on the loop;
    接收单元,用于接收环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文,a receiving unit, configured to receive an RPL owner port blocking RB packet sent by a loop protection link RPL owner,
    所述处理单元还用于:在所述接收单元接收到所述RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;以及基于所述 新的节点标识和所述故障的节点设备上的端口上当前存储的节点标识不一致的结果,删除所述故障的节点设备在故障期间学习的地址转发表项并重新学习地址转发表项。The processing unit is further configured to: when the receiving unit receives the RB message, learn a new node identifier, where the new node identifier is a node identifier of an RPL owner port; As a result of the inconsistency between the new node identifier and the node identifier currently stored on the port on the faulty node device, the address forwarding entry learned by the faulty node device during the fault is deleted and the address forwarding entry is re-learned.
  11. 如权利要求10所述的装置,其特征在于,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。The device according to claim 10, wherein the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a media access control MAC address.
  12. 如权利要求10所述的装置,其特征在于,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。The device according to claim 10, wherein the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
  13. 一种节点设备,其特征在于,包括:A node device, comprising:
    接收端口,用于当环路上的链路故障恢复时,接收所述环路上的故障的节点设备发送的链路恢复NR报文;a receiving port, configured to: when the link failure on the loop is restored, the link device that receives the fault on the loop recovers the NR message;
    处理器,用于清除所述接收端口和所述节点设备上未接收到所述NR报文的端口上保存的节点标识;在所述接收端口接收到环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;以及基于所述新的节点标识和所述接收端口上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表项并重新学习地址转发表项。a processor, configured to clear a node identifier saved on the receiving port and the port on the node device that does not receive the NR packet; and receive, at the receiving port, an RPL sent by a loop protection link RPL owner When the owner port blocks the RB message, learns a new node identifier, the new node identifier is a node identifier of the RPL owner port; and the node identifier that is currently stored on the receiving port is inconsistent based on the new node identifier As a result, the address forwarding entry learned during the failure is deleted and the address forwarding entry is re-learned.
  14. 如权利要求13所述的节点设备,其特征在于,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。The node device according to claim 13, wherein the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a media access control MAC address.
  15. 如权利要求13所述的节点设备,其特征在于,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。The node device of claim 13, wherein the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
  16. 一种节点设备,其特征在于,包括:A node device, comprising:
    发送端口,用于当环路的链路恢复时,向所述环路上的非故障的节点设备发送链路恢复NR报文;a sending port, configured to send a link recovery NR message to the non-faulty node device on the loop when the link of the loop is restored;
    处理器,用于清除所述节点设备的在所述环路上的所有端口保存的节点标识;a processor, configured to clear a node identifier saved by all ports of the node device on the loop;
    接收端口,用于接收环路保护链路RPL拥有者发送的RPL拥有者端口阻塞RB报文; a receiving port, configured to receive an RPL owner port blocking RB packet sent by the RPL owner of the loop protection link;
    所述处理器还用于:在所述接收端口接收到所述RB报文时,学习新的节点标识,所述新的节点标识为RPL拥有者端口的节点标识;以及基于所述新的节点标识和所述接收端口上当前存储的节点标识不一致的结果,删除在故障期间学习的地址转发表项并重新学习地址转发表项。The processor is further configured to: when the receiving port receives the RB packet, learn a new node identifier, where the new node identifier is a node identifier of an RPL owner port; and based on the new node As a result of the inconsistency between the identifier and the node identifier currently stored on the receiving port, the address forwarding entry learned during the fault is deleted and the address forwarding entry is re-learned.
  17. 如权利要求16所述的节点设备,其特征在于,所述环路为二层以太网环路,所述地址转发表项中的地址为媒体接入控制MAC地址。The node device according to claim 16, wherein the loop is a Layer 2 Ethernet loop, and the address in the address forwarding entry is a media access control MAC address.
  18. 如权利要求16所述的节点设备,其特征在于,所述环路为三层以太网环路,所述地址转发表项中的地址为网络协议IP地址。 The node device of claim 16, wherein the loop is a Layer 3 Ethernet loop, and the address in the address forwarding entry is a network protocol IP address.
PCT/CN2016/113969 2016-12-30 2016-12-30 Method and device for recovering from ring circuit fault, and node apparatus WO2018120228A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/113969 WO2018120228A1 (en) 2016-12-30 2016-12-30 Method and device for recovering from ring circuit fault, and node apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/113969 WO2018120228A1 (en) 2016-12-30 2016-12-30 Method and device for recovering from ring circuit fault, and node apparatus

Publications (1)

Publication Number Publication Date
WO2018120228A1 true WO2018120228A1 (en) 2018-07-05

Family

ID=62706699

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113969 WO2018120228A1 (en) 2016-12-30 2016-12-30 Method and device for recovering from ring circuit fault, and node apparatus

Country Status (1)

Country Link
WO (1) WO2018120228A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064593A (en) * 2018-10-17 2020-04-24 中车株洲电力机车研究所有限公司 Network topology redundant communication system and network topology redundant communication method
CN113645312A (en) * 2021-08-25 2021-11-12 烽火通信科技股份有限公司 Method and device for protecting sub-ring network link based on ERPS protocol
CN115514593A (en) * 2022-11-17 2022-12-23 之江实验室 Method for rapidly acquiring link node data in industrial control looped network link interruption

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702684A (en) * 2009-11-06 2010-05-05 中兴通讯股份有限公司 Method for realizing to refresh Ethernet ring network forwarding database and device
US20100290340A1 (en) * 2009-05-15 2010-11-18 Electronics And Telecommunications Research Institute Method for protection switching
CN101969394A (en) * 2010-09-27 2011-02-09 南京邮电大学 Method for eliminating looped network jitter failure
CN104168169A (en) * 2014-07-15 2014-11-26 杭州华三通信技术有限公司 MAC entry deleting method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100290340A1 (en) * 2009-05-15 2010-11-18 Electronics And Telecommunications Research Institute Method for protection switching
CN101702684A (en) * 2009-11-06 2010-05-05 中兴通讯股份有限公司 Method for realizing to refresh Ethernet ring network forwarding database and device
CN101969394A (en) * 2010-09-27 2011-02-09 南京邮电大学 Method for eliminating looped network jitter failure
CN104168169A (en) * 2014-07-15 2014-11-26 杭州华三通信技术有限公司 MAC entry deleting method and equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064593A (en) * 2018-10-17 2020-04-24 中车株洲电力机车研究所有限公司 Network topology redundant communication system and network topology redundant communication method
CN113645312A (en) * 2021-08-25 2021-11-12 烽火通信科技股份有限公司 Method and device for protecting sub-ring network link based on ERPS protocol
CN115514593A (en) * 2022-11-17 2022-12-23 之江实验室 Method for rapidly acquiring link node data in industrial control looped network link interruption
CN115514593B (en) * 2022-11-17 2023-05-02 之江实验室 Method for rapidly acquiring link node data by industrial control ring network link interruption

Similar Documents

Publication Publication Date Title
CN110166356B (en) Method and network equipment for sending message
US8411690B2 (en) Preventing data traffic connectivity between endpoints of a network segment
US8018841B2 (en) Interworking an ethernet ring network and an ethernet network with traffic engineered trunks
JP5546461B2 (en) Method and system for transparent auto recovery in chains and ring networks
US8654630B2 (en) Techniques for link redundancy in layer 2 networks
JP5369228B2 (en) Method and apparatus for restoring unicast traffic
JP5643185B2 (en) Reduction of traffic loss in EAPS system
US20050207348A1 (en) Protection that automatic and speedily restore of ethernet ring network
US20070047472A1 (en) System and method for implementing multiple ring networks using a common link
JP5404938B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
JP5692553B2 (en) Node device in ring network and route switching control method thereof
US20080107018A1 (en) Method and apparatus for computing alternate multicast/broadcast paths in a routed network
US9559863B2 (en) MAC flush optimizations for ethernet rings
JP2005260321A (en) Alternative control system of label path network
US8345579B2 (en) Relay device suppressing frame flooding
WO2018120228A1 (en) Method and device for recovering from ring circuit fault, and node apparatus
US11516119B2 (en) System, method, and device for communication between network segments
WO2018107974A1 (en) Routing switching-back method, and controller and system
CN101547131B (en) EAPS looped network single-channel fault location and protection method
EP3694152B1 (en) Method for recovering faulty multi-layer link and controller
CN114465942A (en) Forwarding method and system for simultaneously supporting two-layer multicast traffic and three-layer multicast traffic
WO2017124725A1 (en) Mac address forwarding table updating method and device of ring network node
WO2015117465A1 (en) Fdb updating method, device, node, and system in ring network
CN103701703B (en) Neighbourhood management method and device
US8711870B2 (en) Technology for managing traffic via dual homed connections in communication networks

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: 16925362

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: 16925362

Country of ref document: EP

Kind code of ref document: A1