Method and device for rapid healing based on ring network link bypass

By introducing the CCM protocol and optimizing the bypass function into the ERPS ring network link, and dynamically learning new source endpoints, the network interruption problem of the ERPS ring network in scenarios of multi-node failure or single-point recovery is solved, realizing rapid fault detection and switching, and improving the reliability and stability of the network.

CN119728340BActive Publication Date: 2026-01-02CHINA ACADEMY OF RAILWAY SCI CORP LTD +3
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411836231.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2026-01-02
Estimated Expiration
2044-12-13

AI Technical Summary

Technical Problem

Existing ERPS solutions suffer from long network convergence times in scenarios involving multiple node failures or single-point recovery, failing to meet the requirements for high reliability and low latency. The bypass function is incompatible with the link failure detection mechanism, leading to inaccurate network interruptions and handovers.

Method used

By introducing a link detection and recovery mechanism based on the CCM protocol into the ERPS ring network link, the startup and shutdown process of the bypass function is optimized, new source endpoints are dynamically learned, the link detection accuracy is improved, and the bypass function is delayed during fault recovery to ensure rapid switchback and healing.

Benefits of technology

It enables fault detection and recovery within 20ms, reducing network interruption time, improving network reliability and switching speed, and meeting the high reliability requirements of high-speed communication scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728340B_ABST
    Figure CN119728340B_ABST
Patent Text Reader

Abstract

The application discloses a ring network link bypass quick healing method and device, and the method comprises the following steps: after determining that the bypass function of the second node is opened due to the failure of the second node, when the first node receives the CCM detection packet sent by the second node for M times in N continuous periods, it is determined that the bypass function of the second node is closed due to the recovery of the second node, at this time, the first node updates the opposite node from the third node to the second node, wherein when the second node fails, the bypass function of the second node is opened, the second node is bypassed, at this time, the first node and the third node bypass the second node to periodically send the CCM detection packet, when the second node is powered on due to the recovery of the second node, the bypass function is opened by default, the second switch is kept bypassed, and when the second node initializes the ring network port and is completed, the bypass function is closed. The application can effectively reduce the ring network link interruption time and accelerate the ring network healing.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of network communication, in particular to a ring network link bypass rapid healing method and device. BACKGROUND

[0002] With the wide application of Ethernet technology in industrial internet and other fields, network reliability and availability have become key requirements. Although traditional loop protection technologies such as STP / RSTP can effectively prevent broadcast storm, they have slow convergence speed and cannot meet the needs of high-reliability networks. ERPS (Ethernet Ring Protection Switching), as a two-layer disruptive protocol standard defined by ITU-T, aims to improve the reliability and recovery speed of Ethernet ring networks through fast fault detection and switching mechanisms. The basic principle is that ERPS technology eliminates loop risks by blocking some ports in the loop (such as ring protection link owner ports RPL owner ports and ring protection link neighbor ports RPL neighbor ports), and when a link fault is detected, it switches the data transmission path to the backup path to ensure network continuity and reliability. However, if there are multiple node failures in the loop network, it will split the network and cause network isolation. ERPS ring uses mechanisms such as control VLAN, data VLAN, and protection instance to isolate and eliminate redundant loops in the network, effectively ensuring link connectivity.

[0003] Bypass technology, also known as bypass technology, its core idea is to bypass a certain device, system or security mechanism through a specific trigger state or way, so that data or signals can pass directly without going through the original processing process. When the network security device fails (power failure, system crash), bypass technology can ensure that the two networks remain connected, avoiding network interruption caused by single point failure. In the case of device power failure, bypass function is in open state; once the device is powered on, bypass function is closed. Bypass technology is a widely used technology in the field of computer science and network security, which can ensure network connectivity and stability, and plays an important role in various scenarios.

[0004] Although the bypass technology can ensure the connectivity of the physical link when the device fails, the existing ERPS scheme mainly relies on the traditional logical detection and switching mechanism, and cannot fully combine the bypass function to realize the rapid healing and stable connection of the logical network. This limitation leads to a long convergence time of the network in the multi-node failure or single-point recovery scenario, which is difficult to meet the demand for high reliability and low latency.

[0005] This section is intended to provide background or context to the embodiments of the application recited in the claims. The description herein does not constitute admission of prior art. SUMMARY

[0006] The present application is proposed to solve at least one of the technical problems in the background art.

[0007] In order to achieve the above purpose, according to one aspect of the present application, a bypass fast healing method based on ring network link is provided, which is applied to an ERPS ring network link containing a first node, a second node and a third node, the second node being located between the first node and the third node, each node in the ERPS ring network link periodically sending CCM detection packets to the opposite node in working time, the method comprising:

[0008] When the first node receives M times of CCM detection packets sent by the third node in continuous N periods, and when the third node receives M times of CCM detection packets sent by the first node in continuous N periods, it is determined that the second node fails to open the bypass function, at this time the first node updates the opposite node from the second node to the third node, and the third node updates the opposite node from the second node to the first node, wherein when the second node fails, the second node opens the bypass function, the second node is bypassed, at this time the first node and the third node bypass the second node to periodically send CCM detection packets to each other;

[0009] After determining that the second node failure opens the bypass function, when the first node receives the CCM detection packet sent by the second node for M times in continuous N periods, and when the third node receives the CCM detection packet sent by the second node for M times in continuous N periods, it is determined that the second node failure recovers and closes the bypass function, at this time the first node updates the opposite node from the third node to the second node, and the third node updates the opposite node from the first node to the second node, wherein the second node opens the bypass function by default when it is powered on and recovers, and the second node remains bypassed, and the bypass function is closed when the second node completes the initialization of the ring network port.

[0010] Optionally, the ring network link bypass rapid healing method further comprises:

[0011] When the first node and the third node do not receive the CCM detection packet sent by the second node in continuous N periods, it is determined that the link is faulty.

[0012] After determining that the link is faulty, when the first node and the third node receive the CCM detection packet sent by the second node in continuous N periods, it is determined that the link is recovered.

[0013] Optionally, the ERPS ring network link further comprises a fourth node and a fifth node, the fourth node is a node where a main port of a ring protection link is located, and the fifth node is a node where an adjacent port of the ring protection link is located.

[0014] The method further comprises:

[0015] When there is no faulty node in the ERPS ring network link, the main port of the ring protection link and the adjacent port of the ring protection link are blocked, at this time the fourth node periodically sends an NRRB RAPS packet in the ERPS ring network link, and the NRRB RAPS packet is used to inform other nodes that there is no faulty node in the ERPS ring network link.

[0016] Optionally, the ring network link bypass rapid healing method further comprises:

[0017] When it is determined that the link is faulty, the first node and the third node block the port connected with the second node, refresh their own forwarding database and port state, and send an SF RAPS packet in the ERPS ring network link, so that each node in the ERPS ring network link refreshes its own forwarding database and port state according to the SF RAPS packet.

[0018] When the fourth node receives the SF RAPS packet, the fourth node unblocks the ring protection link master port, and refreshes its own forwarding database and unblocked port state, when the fifth node receives the SF RAPS packet, the fifth node unblocks the ring protection link adjacent port, and refreshes its own forwarding database and unblocked port state, thereby ensuring that the ERPS ring network link traffic is not interrupted.

[0019] Optionally, the bypass fast healing method based on the ring network link further comprises:

[0020] When the link is determined to be recovered, the first node and the third node start a first timer, and do not receive other RAPS protocol packets before the first timer expires, and send an NR RAPS packet to the ERPS ring network link;

[0021] When the fourth node receives the NR RAPS packet, the fourth node starts a second timer, and blocks the ring protection link master port when the second timer expires, and sends an NR RB RAPS packet to the ERPS ring network link;

[0022] When the fifth node receives the NR RAPS packet, the ring protection link adjacent port is blocked;

[0023] When the first node and the third node receive the NR RB RAPS packet, the first node and the third node unblock the port connected to the second node, stop sending the NR RAPS packet, and refresh its own forwarding database, and when the other nodes in the ERPS ring network link receive the NR RB RAPS packet, refresh its own forwarding database.

[0024] Optionally, the bypass fast healing method based on the ring network link further comprises:

[0025] When it is determined that the second node failure opens the bypass function, the first node and the third node refresh its own forwarding database, and send a State RAPS packet in the ERPS ring network link, so that each node in the ERPS ring network link refreshes its own forwarding database according to the State RAPS and performs node refresh respectively.

[0026] Optionally, the bypass fast healing method based on the ring network link further comprises:

[0027] When it is determined that the bypass function of the second node is opened due to failure, the first node and the third node block the port connected with the second node, at this time the fourth node unblocks the main port of the ring protection link, and the fifth node unblocks the adjacent port of the ring protection link, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.

[0028] Optionally, the bypass fast healing method based on the ring network link further comprises:

[0029] When it is determined that the bypass function of the second node is closed due to recovery from failure, the first node and the third node start a first timer, and do not receive other RAPS protocol packets before the first timer expires, and send NR RAPS packets in the ERPS ring network link;

[0030] When the fourth node receives the NR RAPS packet, the fourth node starts a second timer, and blocks the main port of the ring protection link when the second timer expires, and sends NR RBRAPS packet in the ERPS ring network link;

[0031] When the fifth node receives the NR RAPS packet, the adjacent port of the ring protection link is blocked;

[0032] When the first node and the third node receive the NR RBRAPS packet, the first node and the third node unblock the port connected with the second node, stop sending NR RAPS packet and refresh their own forwarding database, and when the other nodes in the ERPS ring network link receive the NR RBRAPS packet, refresh their own forwarding database.

[0033] Optionally, the bypass fast healing method based on the ring network link further comprises:

[0034] The frequency of sending CCM detection packets by each node in the ERPS ring network link is set to 200Hz to 400Hz.

[0035] Optionally, each node in the ERPS ring network link is configured to open the bypass function when power off, open the bypass function by default when power on, open the bypass function when hardware failure and power failure, open the bypass function when software deadlock, and close the bypass function when the initialization of the network port is completed.

[0036] In order to achieve the above object, according to another aspect of the present application, a device for fast healing based on ring network link bypass is provided, which is applied to an ERPS ring network link, the ERPS ring network link comprises a first node, a second node and a third node, the second node is located between the first node and the third node, in operation, each node in the ERPS ring network link periodically sends CCM detection message to the opposite node, the device comprises:

[0037] a bypass opening determination unit, configured to determine that the second node opens the bypass function when the first node receives the CCM detection message sent by the third node for M times in continuous N periods, and when the third node receives the CCM detection message sent by the first node for M times in continuous N periods, at this time, the first node updates the opposite node from the second node to the third node, and the third node updates the opposite node from the second node to the first node, wherein, when the second node fails, the second node opens the bypass function, the second node is bypassed, at this time, the first node and the third node bypass the second node to periodically send CCM detection message to each other;

[0038] a bypass closing determination unit, configured to determine that the second node closes the bypass function when the first node receives the CCM detection message sent by the second node for M times in continuous N periods, and when the third node receives the CCM detection message sent by the second node for M times in continuous N periods after determining that the second node opens the bypass function, at this time, the first node updates the opposite node from the third node to the second node, and the third node updates the opposite node from the first node to the second node, wherein, when the second node fails to recover, the bypass function is opened by default, the second node remains bypassed, and the bypass function is closed when the second node initializes the ring network port is completed.

[0039] Optionally, the device for fast healing based on ring network link bypass further comprises:

[0040] a link failure determination unit, configured to determine link failure when the first node and the third node do not receive the CCM detection message sent by the second node in continuous N periods;

[0041] a link recovery determination unit, configured to determine link recovery when the first node and the third node receive the CCM detection message sent by the second node in continuous N periods after determining link failure.

[0042] In order to achieve the above object, according to another aspect of the present application, there is further provided a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned ring network link bypass fast healing method when executing the computer program.

[0043] In order to achieve the above object, according to another aspect of the present application, there is further provided a computer readable storage medium having stored thereon a computer program / instruction, wherein the computer program / instruction implements the steps of the above-mentioned ring network link bypass fast healing method when executed by a processor.

[0044] In order to achieve the above object, according to another aspect of the present application, there is further provided a computer program product comprising a computer program / instruction, wherein the computer program / instruction implements the steps of the above-mentioned ring network link bypass fast healing method when executed by a processor.

[0045] The present application has the following beneficial effects:

[0046] The present application enables the bypass function immediately when a single point of the node fails, so that the failed node is bypassed, thereby maintaining the logical integrity of the ring network link and not triggering the link fault switching. In addition, the present application completes the update of the new source endpoint address within the fault detection period, updates the opposite node of the first node from the second node to the third node, and realizes that the link still maintains the ring link state, reduces the network switching times and service interruption time. When the failed node recovers and powers on, the bypass function is kept in the open state by default, and then the bypass function is closed after the initialization of the ring network port is completed, thereby delaying the closing of the bypass function, realizing the closing of the bypass and the fast switching connection, effectively reducing the network interruption time and accelerating the healing of the ring network. BRIEF DESCRIPTION OF DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor. In the drawings:

[0048] Figure 1 is the first flowchart of the ring network link bypass fast healing method according to the embodiments of the present application;

[0049] Figure 2 is the second flowchart of the ring network link bypass fast healing method according to the embodiments of the present application;

[0050] Figure 3is a first flowchart diagram of the bypass technology applied to the ERPS ring network link by the embodiment of the present application;

[0051] Figure 4 is a second flowchart diagram of the bypass technology applied to the ERPS ring network link by the embodiment of the present application;

[0052] Figure 5 is a third flowchart diagram of the bypass technology applied to the ERPS ring network link by the embodiment of the present application;

[0053] Figure 6 is a normal ring diagram of the embodiment of the present application;

[0054] Figure 7 is a diagram of the bypass not detecting the link interruption in the link fast flash of the embodiment of the present application;

[0055] Figure 8 is a diagram of the link fault SF reporting of the embodiment of the present application;

[0056] Figure 9 is a diagram of the link fault recovery notification of the embodiment of the present application;

[0057] Figure 10 is a diagram of the node fault bypass of the embodiment of the present application;

[0058] Figure 11 is a diagram of the node recovery bypass fast shutdown of the embodiment of the present application;

[0059] Figure 12 is a diagram of the bypass shutdown link interruption of the embodiment of the present application;

[0060] Figure 13 is a diagram of the bypass shutdown link interruption recovery of the embodiment of the present application;

[0061] Figure 14 is a structure block diagram of the bypass fast healing device based on the ring network link of the embodiment of the present application;

[0062] Figure 15 is a computer device diagram of the embodiment of the present application. DETAILED DESCRIPTION

[0063] In order to make the personnel in the art better understand the present application scheme, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the scope of protection of the present application.

[0064] Those skilled in the art will appreciate that embodiments of the application can be readily used as a method, a system or a computer program product. Accordingly, the application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer-readable program code.

[0065] It should be noted that the terms "comprising", "having", "including", and "containing" and any variations thereof in the specification and in the claims are intended to cover a non-exclusive inclusion, such that a process, method, system, product or apparatus that comprises, has, includes or contains an item or list of items who does not include all of the recited items or list of items is still deemed to be encompassed by the specification and claims.

[0066] It should be noted that the embodiments and features of the embodiments in the present application can be combined with each other without conflict, and the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0067] With the wide application of ring network technology in industrial internet and high-speed communication, high reliability and low interruption time of the network become key requirements. The traditional ring network technology (such as ERPS) can maintain the connectivity of the network through the ring network switching mechanism when dealing with single point failure, but there are several problems: first, the physical connection of the switch supporting bypass remains unchanged when the failure or recovery occurs, which leads to the fact that the link recovery cannot correctly trigger the ring network switching; second, the bypass function is turned on too early, which leads to a long network recovery time and affects the stability and failure healing efficiency of the system.

[0068] The present application provides a bypass fast healing method and device based on ring network, which is used to solve the network interruption and inaccurate switching problem caused by the incompatibility between the bypass function and the link fault detection mechanism in the existing ERPS ring network technology. Specifically, the present application improves the switching efficiency and network reliability of the ring network in device failure and link recovery through the following innovative measures:

[0069] 1. Bypass support of ring network link: the application provides a new link detection mechanism on the switch supporting the bypass function. When the switch fails or recovers, the BYPASS function keeps the physical connection unchanged, but the application avoids the problem of not triggering switching due to mismatched endpoints by dynamically learning and identifying new source endpoints. When the link recovers, the system can accurately identify the recovered link and achieve fast switching, thereby avoiding the problem of redundant link switching and network isolation caused by the traditional ERPS.

[0070] 2. Link detection and recovery mechanism based on CCM protocol: the application extends the processing mechanism of the CCM protocol and optimizes the efficiency of link detection. By adjusting the sending frequency of CCM packets (such as 300 Hz), the accuracy of link detection is improved. Specifically, when the ring network node does not receive the CCM packet of the source node within a specified period, the system considers that the link is interrupted and triggers the failure switching; when the link recovers, the system delays the closing of the bypass function to ensure that the switch is stable before switching back, thereby reducing the interruption time of failure recovery.

[0071] 3. Bypass start and close mechanism: the application defines the bypass start and close process of the switch:

[0072] When starting, the bypass function is turned on by default after the switch is powered on to ensure that the physical connection of the link is not interrupted;

[0073] After the switch completes the initialization, the bypass function is closed, and the normal network connection and CCM packet processing are started;

[0074] In the link recovery process, by adjusting the closing time of the bypass function, the problem of network interruption caused by premature closing is avoided to ensure fast switching back and healing.

[0075] 4. Fast detection of link interruption and recovery: the application uses multiple fast link detection methods, including PHY and optical module interruption detection. When the link is interrupted, the SF RAPS packet is triggered to notify the node switching; when the link recovers, the NR packet is triggered and the link state is updated. At the same time, by increasing the receiving frequency of CCM packets, the response speed of link recovery is further improved to ensure that the fault detection and recovery are completed within 20 ms.

[0076] The application optimizes the bypass function and link detection mechanism to solve the following problems of the traditional ERPS ring network in the process of device or link failure recovery:

[0077] 1. Fast healing and reducing fault interruption time: through improved link detection and bypass management mechanism, the learning of new source endpoint can be completed within the link fault detection period after device failure, the link remains in ring network connection state, avoiding unnecessary network switching. When recovering, through delayed bypass closing, fast switching and healing are realized, and the service interruption time is greatly reduced.

[0078] 2. Reduce misjudgment and network isolation: in traditional ERPS technology, the conflict between bypass function and link fault detection mechanism may lead to misjudgment of link interruption, and even form an isolated network. Through the introduction of new source endpoint learning mechanism and link recovery detection method, the fast switching and accurate recovery of the network after failure recovery are ensured, and network isolation caused by multipoint failure is avoided.

[0079] 3. Improve network reliability and switching speed: ultimately, the invention realizes fast detection and switching under ring network, and the link recovery time and fault healing time are compressed to within 20ms, greatly improving the reliability and system stability of the network, meeting the requirements of high-speed trains and other scenes for low interruption time and high reliability.

[0080] Through the above technical solutions, the invention can effectively deal with the problems caused by the mismatch between bypass function and link detection mechanism under traditional ERPS ring network, improve the efficiency and reliability of network switching, especially in the multi-point failure and device recovery scenario, fast detection and switching can be realized, greatly reducing the network interruption time, and ensuring the continuity and stability of the service.

[0081] It should be noted that the bypass fast healing method based on ring network link in the following embodiments of the invention is applied to ERPS ring network link, which includes a first node, a second node and a third node, the second node is located between the first node and the third node, and each node in the ERPS ring network link periodically sends CCM detection packet to the opposite node when working.

[0082] It should be noted that the bypass in the following embodiments of the invention refers to bypass function.

[0083] It should be noted that the node in the ERPS ring network link of the invention can be a switch device or other device, such as a router, an optical network device, a multifunctional network device, a virtual switch, etc. The following embodiments of the invention are mainly aimed at the nodes in the ERPS ring network link of the switch in the field of rail transit, but the invention is not limited to this.

[0084] It should be noted that the first node in the invention is Figure 2 , Figure 3 and Figure 4In the embodiments, it refers to the switch SWi, in Figures 6 to 13 In the embodiment, this refers to node SW2. The second node described in this invention is... Figure 2 , Figure 3 and Figure 4 In the embodiments, it refers to the switch SWj, in Figures 6 to 13 In the embodiment, this refers to node SW3. The third node described in this invention is... Figure 2 , Figure 3 and Figure 4 In the embodiments, it refers to the switch SWk, in Figures 6 to 13 In the embodiment, this refers to node SW4.

[0085] Figure 1 This is a first flowchart of the fast healing method based on ring network link bypass according to an embodiment of the present invention, as follows: Figure 1 As shown, in one embodiment of the present invention, the fast healing method based on ring network link bypass includes steps S101 and S102.

[0086] Step S101: When the first node receives M CCM detection messages sent by the third node within N consecutive cycles, and when the third node receives M CCM detection messages sent by the first node within N consecutive cycles, it is determined that the second node has failed to enable the bypass function. At this time, the first node updates the peer node from the second node to the third node, and the third node updates the peer node from the second node to the first node.

[0087] In this invention, when the second node fails, the second node activates the bypass function and is bypassed. At this time, the first node and the third node bypass the second node and periodically send CCM detection messages to each other.

[0088] In one embodiment of the present invention, N is an integer greater than or equal to 3, M is an integer greater than or equal to 2, and M is greater than N. In a specific embodiment of the present invention, N equals 3, and M equals 2.

[0089] like Figure 5 As shown, this invention addresses single-point-of-failure issues by maintaining connection based on a bypass function. When the second node (switch SWj) fails and activates the bypass function, the first node (switch SWi) and the third node (switch SWk) bypass the second node and periodically send CCM detection messages to each other. The solution involves the first and third nodes monitoring CCM detection messages over M cycles (i.e., link failure detection cycles). If the received message does not match the source endpoint, and remains unchanged for N consecutive cycles, the system learns to accept the new source endpoint as the peer node. This results in short network outage times and reduces network sway issues introduced by network switching.

[0090] When the first node receives the CCM detection packet sent by the third node M times in continuous N periods, and when the third node receives the CCM detection packet sent by the first node M times in continuous N periods, the first node and the third node complete the learning of the new source endpoint address in the link fault detection period, and the link still maintains the loop link state, at this time, the first node and the third node only determine that the bypass function is opened due to the failure of the second node, and do not consider the link fault to switch, thereby reducing the network switching back time and service interruption time.

[0091] After determining that the bypass function is opened due to the failure of the second node, when the first node receives the CCM detection packet sent by the second node M times in continuous N periods, and when the third node receives the CCM detection packet sent by the second node M times in continuous N periods, it is determined that the bypass function is closed due to the recovery of the second node, at this time, the first node updates the opposite node from the third node to the second node, and the third node updates the opposite node from the first node to the second node.

[0092] In the present application, when the second node recovers from failure and is powered on, the bypass function is opened by default, and the second node is bypassed, and when the second node initializes the ring network port, the bypass function is closed.

[0093] In an embodiment of the present application, when the first node or the third node receives the CCM detection packet sent by the second node M times in continuous N periods, it is determined that the second node recovers from failure and the bypass function is closed.

[0094] As shown in Figure 3 When the node recovers from failure and is powered on, the bypass is immediately closed, at this time, the system is initialized, and the link is not connected during the initialization, there is a second-level or even tens of seconds of interruption in the initialization completion stage, which can cause a second interruption in the non-switching back scenario to cause network island, and mis-detection as link recovery in the switching back scenario, and the system application is not normal, resulting in a problem of too long interruption time.

[0095] To solve the problem, the present application delays the closing of the bypass when the fault node recovers, as shown in Figure 4 and Figure 5 For single-point failure recovery of the device, based on the bypass, when the fault node recovers from failure and is powered on, the bypass function is opened by default, until the bypass function is closed when the initialization of the ring network port of the fault node is completed, the bypass is delayed to be closed, the bypass is closed to quickly connect, the network interruption time is reduced, and the network can be quickly switched back to heal.

[0096] In one embodiment of the present application, each node in the ERPS ring network link is configured to open the bypass function when power is off, to open the bypass function by default when power is on, to open the bypass function when there is a hardware failure or a power failure, to open the bypass function when there is a software deadlock, and to close the bypass function when the initialization of the network port is completed.

[0097] The present application keeps the logical integrity of the ring network link and does not trigger the link failure switching by enabling the bypass function immediately when there is a single point failure at the node, so that the failed node is bypassed. In addition, the present application updates the new source endpoint address within the failure detection period, updates the opposite node of the first node from the second node to the third node, and keeps the link in the ring link state, so that the network switching times and the service interruption time are reduced. When the failed node is recovered, the bypass function is kept open by default when power is on, and the bypass function is closed after the initialization of the ring network port is completed, so that the bypass is closed and the connection is quickly switched back, which effectively reduces the network interruption time and accelerates the healing of the ring network.

[0098] As shown in Figure 2 , in one embodiment of the present application, the bypass fast healing method based on the ring network link of the present application further includes steps S201 and S202.

[0099] Step S201: When the first node and the third node do not receive the CCM detection packet sent by the second node for N consecutive periods, it is determined that there is a link failure.

[0100] In one embodiment of the present application, if the first node or the third node does not receive the CCM detection packet sent by the second node for N consecutive periods, the link failure is reported, and the first node and the third node send the SF request according to the standard ERPS process. The process follows the ERPS process.

[0101] Step S202: After determining the link failure, when the first node and the third node receive the CCM detection packet sent by the second node for N consecutive periods, it is determined that the link is recovered.

[0102] The method of the present application will be described below in conjunction with the embodiments of Figure 4 and Figure 5 , the bypass fast switching and back switching network interaction diagram under the ring network is shown in Figure 4 and Figure 5 , in Figure 4 and Figure 5 , the switch Swi is the first node, the switch Swj is the second node, and the switch Swk is the third node. As shown in Figure 4 and Figure 5As shown, the bypass fast switching and network interaction process under the ring network of the application comprises:

[0103] 1. Normal working state: data flow is transmitted through the working loop, and the ERPS continuously monitors the network states of Swi, SWj and SWk switches through CCM detection messages; Swi, SWj and SWk all periodically send CCM detection messages to the opposite nodes;

[0104] 2. SWj fault, the bypass enable on SWj is opened, and SWj is bypassed;

[0105] 3. Swi and SWk periodically send CCM detection messages;

[0106] 4. Swi and SWk periodically detect the CCM detection messages sent by the opposite source nodes:

[0107] 5. If the CCM detection messages are not received in three continuous periods, a link interruption fault is reported, Swi and SWk send SF requests according to the standard ERPS process, and the process is according to the ERPS process;

[0108] 6. If the CCM detection messages sent by the opposite source nodes are not received in three continuous periods, but the CCM detection messages sent by other nodes are received, for example, Swi receives the CCM detection messages sent by SWk, if the messages of the node SWk are received in two continuous periods, Swi records that the original opposite source node Swj is modified to the new opposite source node SWk; the CCM detection messages sent by the new source node are continuously monitored and received, the link of Swi and SWk is not interrupted, and the network topology is changed;

[0109] 7. Swi and SWk periodically send and receive CCM detection messages;

[0110] 8. SWj device fault recovery, power on, default bypass enable is opened, the initializer device SWj is kept bypassed, and does not affect the existing link;

[0111] 9. SWj initialization ring network port is completed, and the bypass is closed;

[0112] 10. Swi and SWk periodically detect the CCM detection messages sent by the opposite source nodes:

[0113] If the CCM detection messages are not received in three continuous periods, a link interruption fault is reported, Swi and SWk send SF requests according to the standard ERPS process, and the process is according to the ERPS process;

[0114] If no CCM detection message is received from the peer source endpoint within three consecutive cycles, but only a CCM detection message is received from another endpoint, such as SWi receiving a CCM detection message from SWj, and if CCM detection messages from that endpoint SWj are received for two consecutive cycles, then SWi will change the original source endpoint SWk to the new peer source endpoint SWj. If CCM detection messages from the new source endpoint are continuously detected periodically, the connection between SWi and SWj will remain uninterrupted.

[0115] 11. At the same time, SWk also detects the processing method of receiving CCM detection messages in the same way as SWi;

[0116] 12. SWi, SWj, and SWk periodically send and monitor the received CCM information messages.

[0117] like Figure 14 As shown, in one embodiment of the invention, the bypass rapid healing method device based on ring network of the present invention mainly includes several functional modules such as interface, BYPASS unit, PHY unit, switching module, and control module.

[0118] The interface module is the Ethernet network data connection interface, which mainly completes the Ethernet interface connection and communication; the hardware mainly refers to connectors, such as SC fiber optic interfaces, RJ-45 connector interfaces, etc.

[0119] Bypass is a bypass function that controls the connection or disconnection between Ethernet interface connectors via triggering or control. It enables or disables bypass, bypassing the network through the device itself, and physically connects the two Ethernet interfaces specified for bypass. This device controls the bypass on / off of designated ports through power-on triggering, GPIO control, and watchdog timer. By default, bypass is enabled when the device powers on, and is subsequently controlled via GPIO. By default, bypass is enabled when the device is powered off. This is applicable in scenarios where hardware failure, power failure, or software deadlock creates a single point of failure. By controlling the bypass switch, the device can disable bypass at appropriate times, reducing unnecessary network interruption time.

[0120] PHY is Ethernet port physical layer device, which is physical interface transceiver and can send and receive Ethernet data frames. The required electrical and optical signals, line state, clock reference, data coding and circuit for data transmission and reception are defined, and a standard interface is provided for data link layer device. PHY is connected with data link layer MAC (Media Access Control) through MDC / MDIO, mainly to complete the CPU configuration of PHY register; PHY and MAC transmit data through MII interface (Media Independent Interface, Media Independent Interface). In the device, the PHY of the ring network lower port is connected with the UP online and DOWN offline state interrupt reporting mode, which accelerates the monitoring and identification of link state, quickly switches ERPS, reduces the link interruption time and reduces the impact on business.

[0121] Switching unit, mainly for data transmission of each interface, forwarding according to forwarding table.

[0122] Control module, the control module of the device, in addition to system control function and management function, mainly refers to ring network control function, including ring network construction and configuration, ring protection link port state, bypass control, management of ring network state, ring network switching and back switching control.

[0123] In an embodiment of the present application, the specific scheme of the construction and configuration of the ERPS ring network link of the present application is as follows:

[0124] 1) Construct ERPS ring network: determine the network topology structure as ring, and connect each network node (such as switch) through physical link into one or more loops. Ensure that all devices participating in the ERPS ring network support the ERPS protocol. Eliminate the loop redundancy in the network through the ERPS ring network protocol, and start the loop breaking mechanism.

[0125] 2) In the ERPS ring, each ERPS ring must be configured with the same control VLAN, and the ERPS protocol message is transmitted in the control VLAN. The ring port automatically joins the control VLAN of the ring after joining the ERPS ring. Different rings use different control VLAN IDs.

[0126] 3) Data VLAN is used to transmit flow data messages.

[0127] 4) Configure ERPS parameters: configure the related parameters of the ERPS protocol on each node device, including ring network identification, node priority, RPL (Ring Protection Link) port, etc. Set the related threshold values for fault detection and recovery, such as holdoff time, WTR (Wait to Restore) time, etc.

[0128] 5) Node: The Layer 2 switching device joining the ERPS ring is called node. The same ERPS ring has at most two ports joining in each node.

[0129] 6) Ring port role mainly defines three types of ring protection link main port (called RPL Owner port in the embodiment), ring protection link adjacent port (called RPL neighbour port in the embodiment) and normal ring port. Normally, the RPL owner port and the RPL neighbour port are blocked to prevent loop. When the ERPS ring appears failure, the RPL owner port and the RPL neighbour port are released.

[0130] a) RPL owner port: An ERPS ring has only one RPL owner port, which is determined by user configuration. The user traffic is blocked in the RPL owner port to prevent loop in the ERPS ring. The link where the RPL owner port is located is the ring protection link RPL. When the device where the RPL owner port is located receives failure message to know that other nodes or links in the ERPS ring are failed, the RPL owner port is automatically released and opened. The port resumes receiving and sending traffic to ensure that the traffic is not interrupted.

[0131] b) RPL neighbour port refers to the port directly connected with the RPL owner port.

[0132] c) Normal ring port: The port other than the RPL owner port and the RPL neighbour port is the normal ring port. The normal port is responsible for monitoring the link state of the ERPS protocol directly connected with the port and timely notifying other ports of the change of the link state.

[0133] In an embodiment of the present application, the ring protection link port state is as follows:

[0134] 1) Blocked RPL port: In the non-failure state, the ERPS protocol actively blocks the RPL Owner port and the RPL Neighbour port to block the receiving and sending of traffic to prevent loop in the ring network. The RPL Owner node periodically sends NRRB (No Request / Report Block) R-APS (Ring Protection Switching Protocol Data Unit) message to notify other nodes that the current ring network state is not failed.

[0135] 2) Unblocking ring protection link port: unblocking RPL port: when receiving the signal fault request message sent by the node on the ring, i.e. detecting the link fault state, immediately unblocking the RPL Owner port and the RPL Neighbour port, and the ring protection link is restored to normal.

[0136] 3) General ring port state: port state monitoring, monitoring link state connection normal linkup and link state offline linkdown, and interrupt reporting mode through PHY port state change. Ring network lower port PHY connection UP online, DOWN offline state interrupt reporting mode.

[0137] Bypass control: when the node device of the application has abnormal hardware failure, power failure, software deadlock, the ERPS protection switching mechanism will be started.

[0138] 1) The bypass function is opened by default when the node device of the application is powered off;

[0139] 2) The bypass is opened by default when the node device of the application is powered on;

[0140] 3) When the node device of the application completes the initialization of the network port, the bypass switch is closed through GPIO control;

[0141] 4) When the node device of the application has hardware failure and power failure, the bypass switch will be opened;

[0142] 5) When the node device of the application detects software deadlock, the bypass is opened through watchdog.

[0143] In an embodiment of the application, the ERPS ring network link further comprises a fourth node and a fifth node, the fourth node is a node where the ring protection link master port (RPL Owner port) is located, and the fifth node is a node where the ring protection link adjacent port (RPL neighbour port) is located.

[0144] It should be noted that the fourth node of the application refers to node SW1 in the embodiment. Figures 6 to 13 The fifth node of the application refers to node SW5 in the embodiment. Figures 6 to 13

[0145] In an embodiment of the application, the bypass fast healing method based on the ring network link of the application further comprises:

[0146] ​When there is no fault node in the ERPS ring network link, the ring protection link master port and the ring protection link adjacent port are blocked, at this time the fourth node periodically sends NRRB RAPS message in the ERPS ring network link, the NRRB RAPS message is used to inform other nodes that there is no fault node in the ERPS ring network link at present.

[0147] In the application, when the ERPS ring network link is in the normal ring network state, as shown in the figure, the RPL Owner port and the RPL Neighbour port are blocked, the RPL Owner node periodically sends NRRB (no request / report block) R-APS (ring protection switching protocol data unit) message to inform other nodes that the ring network state is not faulty at present. Figure 6

[0148] In an embodiment of the application, the bypass fast healing method based on the ring network link of the application further comprises:

[0149] When the link fault is determined, the first node and the third node block the port connected with the second node, refresh the forwarding database and the port state of itself, and send SF RAPS message in the ERPS ring network link, so that each node in the ERPS ring network link refreshes the forwarding database and the port state of itself according to the SF RAPS message;

[0150] When the fourth node receives the SF RAPS message, the fourth node unblocks the ring protection link master port and refreshes the forwarding database and the unblocked port state of itself, when the fifth node receives the SF RAPS message, the fifth node unblocks the ring protection link adjacent port and refreshes the forwarding database and the unblocked port state of itself, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.

[0151] In the application, the ERPS link fault is detected by connectivity fault management (CFM) to realize link connectivity detection, and the CFM detects the connectivity between each MEP by periodically sending CCM (continuity check message) between the MEPs.

[0152] The Ethernet CFM can realize end-to-end connectivity fault detection, fault notification, fault confirmation and fault positioning function, can be used for monitoring the connectivity of the whole network, positioning the connectivity fault of the network, and can be matched with the protection switching technology to improve the reliability of the network.

[0153] Figure 7 ​Link fast blink bypass does not detect link interruption, Figure 8 SF is reported for detecting link failure.

[0154] As shown in Figure 8 When the link between SW2 (the first node) and SW4 (the third node) detects a failure, the ERPS protocol starts a protection switching mechanism, blocks the ports at both ends of the failure link (dark blocked ports), and then unblocks the RPL owner port and the RPL neighbour port, so that the two ports resume receiving and sending of user traffic, thereby ensuring uninterrupted traffic.

[0155] In an embodiment of the present application, the specific processing process after determining the link failure is as follows:

[0156] The link failure detection does not receive more than 3 source endpoint CCM messages in succession, and then considers that the link fails. The source endpoint messages include the configured source endpoint and the newly learned source endpoint message after bypass.

[0157] SW2 (the first node) and SW4 (the third node) detect the link failure, block the ports on the failure link, and refresh the MAC forwarding table entries of the devices.

[0158] SW2 and SW4 send the SF RAPS message carrying the local port link failure notification message to the outside, that is, SW2 and SW4 continuously send 3 same RAPS messages after identifying the link failure, and then continuously and stably send at an interval of 5s.

[0159] After receiving the SF RAPS message sent by SW2 and SW4, the other node devices refresh their own forwarding databases (such as MAC forwarding table, ARP table, etc.) and port states according to the provisions of the ERPS protocol and the specific configuration of the bypass ring network.

[0160] When the SW1 device (the device where the RPL owner port is located, the fourth node) receives the RAPS message, the RPL owner port is unblocked, the data packets can be transmitted along the new ring direction, and the forwarding database and the unblocked port state of the device are refreshed.

[0161] Similarly, when the SW5 device (the device where the RPL neighbour port is located, the fifth node) receives the RAPS message, the RPL neighbour port is unblocked, the data packets can be transmitted along the new ring direction, and the forwarding database and the unblocked port state of the device are refreshed.

[0162] In an embodiment of the present application, the ring network link bypass fast healing method based on the present application further comprises:

[0163] When the link is determined to be restored, the first node and the third node start the first timer. Before the first timer expires, they do not receive other RAPS protocol messages, and at the same time send NR RAPS messages to the ERPS ring network link.

[0164] When the fourth node receives the NR RAPS message, the fourth node starts a second timer. When the second timer expires, it blocks the main port of the loop protection link and sends an NRRB RAPS message to the ERPS ring network link.

[0165] When the fifth node receives the NR RAPS message, it blocks the adjacent port of the loop protection link;

[0166] When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the port connected to the second node, stop sending NR RAPS messages, and refresh their own forwarding database. When other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding database.

[0167] In this invention, after the link between SW2 and SW4 is restored to normal, the device where the RPL owner port is located will re-block the traffic on the RPL link, and the unblocked faulty link port will be used again to complete the transmission of user traffic.

[0168] like Figure 9 As shown, in one embodiment of the present invention, the link recovery process is as follows:

[0169] If the faulty nodes (SW2 and SW4) receive a CCM message from the faulty source endpoint, they consider the faulty port to have recovered and the link can enter the working preparation state.

[0170] The faulty node will send an NR (No Request) R-APS message to notify other nodes that the fault has been recovered.

[0171] Once the link between SW2 and SW4 is restored, to prevent the receipt of expired RAPS protocol messages, a Guard Timer is started on each device. No other RAPS protocol messages are received until the timer expires. Simultaneously, SW2 and SW4 will send NR RAPS messages outwards.

[0172] When device SW1, where the RPL owner port is located, receives an NR RAPS message, it starts a WTRTimer. When the timer expires, the RPL owner port is blocked, and an NRRB RAPS message is sent out.

[0173] When SW2 and SW4 receive the NRRB RAPS protocol message sent by SW1, they unblock the originally blocked ports on their devices, stop sending the NRRB RAPS protocol message, and complete refreshing of the MAC forwarding table entries. Other devices also complete refreshing of the forwarding database table entries after receiving the NRRB RAPS protocol message sent by SW1.

[0174] In an embodiment of the present application, the link bypass fast healing method based on the ring network of the present application further comprises:

[0175] When it is determined that the bypass function is opened due to the second node failure, the first node and the third node refresh their forwarding databases, and send a State RAPS message in the ERPS ring network link, so that each node in the ERPS ring network link refreshes its forwarding database according to the State RAPS and performs node refreshing respectively.

[0176] In an embodiment of the present application, the specific process of the link bypass is as follows:

[0177] SW2 and SW4 detect that SW3 opens the bypass, and continuously receive more than two source endpoint information switching, and then consider that the bypass is opened.

[0178] After more than two bypass switching within three CCM cycles, the new source endpoint CCM message of the node failure but the link fast bypass is not considered as a link failure, and only the forwarding database table entries are refreshed. That is, the nodes SW2 and SW4 respectively send a State R-APS report to notify refreshing of the forwarding database table entries after detecting the bypass.

[0179] After receiving the State R-APS report for refreshing the forwarding database table entries, each node is refreshed.

[0180] If more than three CCM cycles are not received for the expected source endpoint CCM message, it is considered as a link interruption failure, and the specific link interruption processing is referred to.

[0181] In an embodiment of the present application, the link bypass fast healing method based on the ring network of the present application further comprises:

[0182] When it is determined that the bypass function is opened due to the second node failure, the first node and the third node block the port connected with the second node, at this time, the fourth node unblocks the main port of the loop protection link, and the fifth node unblocks the adjacent port of the loop protection link, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.

[0183] In one embodiment of the present application, when the link between SW2 and SW4 detects node failure to open the bypass, the present application extends the ERPS protocol processing mechanism, blocks the ports at both ends of the failed link, and then unblocks the RPL owner port and the RPL neighbor port to resume the reception and transmission of user traffic, thereby ensuring uninterrupted traffic.

[0184] In one embodiment of the present application, as shown in Figure 10 When SW2 and SW4 detect node failure of SW3 to open the bypass, SW2 and SW4 block the ports connected with SW3, and then send the NR message in the ERPS ring network link. SW1 and SW2 receive the NR message, and SW1 sends the NRRB message in the ERPS ring network link. SW2 and SW4 receive the NRRB message to unblock the blocked ports.

[0185] In one embodiment of the present application, the bypass fast healing method based on the ring network link of the present application further comprises:

[0186] When it is determined that the second node failure recovery closes the bypass function, the first node and the third node start a first timer, do not receive other RAPS protocol messages before the first timer expires, and send the NR RAPS message in the ERPS ring network link;

[0187] When the fourth node receives the NR RAPS message, the fourth node starts a second timer, blocks the loop protection link master port when the second timer expires, and sends the NRRB RAPS message in the ERPS ring network link;

[0188] When the fifth node receives the NR RAPS message, the loop protection link neighbor port is blocked;

[0189] When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the port connected with the second node, stop sending the NR RAPS message, and refresh their own forwarding database. When the other nodes in the ERPS ring network link receive the NRRB RAPS message, their own forwarding database is refreshed.

[0190] In the present application, after the SW3 node failure recovery is normal, the bypass is closed, the link interruption caused by the bypass closing is too long, the device where the RPL owner port is located adjusts the state of the port on the RPL link, and the reliability problem caused by subsequent multiple failures is ensured.

[0191] Figure 11The bypass fast shutdown of node failure recovery is shown as follows: Figure 11 The bypass shutdown recovery process of the specific link is as follows:

[0192] The ring network node monitors the new source endpoint switching, and the new source endpoint is not a configured source endpoint, the link failure bypass shutdown recovery is considered, and the link can enter the working preparation state.

[0193] The non-configured source endpoint link failure node recovery is detected, the State R-APS report is sent, and the refresh of the forwarding database table item is notified.

[0194] After the State R-APS refresh forwarding database table item report is received by each node of the ring network, the respective node is refreshed;

[0195] The ring network node monitors the new source endpoint switching, and the new source endpoint is a configured source endpoint, the link failure bypass recovery is considered, and the NR (no request) R-APS message is sent to notify other nodes that the failure has been recovered, and the specific link failure recovery processing flow is the same.

[0196] When the failure link is recovered, in order to prevent the reception of expired RAPS protocol messages, the Guard Timer timer is started, and no other RAPS protocol message is received before the expiration of the timer.

[0197] When the RPL owner port device SW1 receives the NR RAPS message, the WTR Timer timer is started. When the timer expires, the RPL owner port is blocked, and the NRRB RAPS message is sent out.

[0198] When SW2 and SW4 receive the NRRB RAPS protocol message sent by SW1, the originally blocked port on the device is released, the NR RAPS protocol message is stopped, and the refresh of the MAC forwarding table item is completed. After other devices receive the NRRB RAPS protocol message sent by SW1, the refresh of the forwarding database table item is also completed.

[0199] Figure 12 The bypass shutdown time is too long, which causes the link interruption failure, at this time, the ports at both ends of the failure link are blocked, and then the RPL owner port and the RPL neighbour port are released, the two ports recover the reception and sending of user traffic, so as to ensure that the traffic is not interrupted.

[0200] Figure 13 The bypass shutdown link interruption failure recovery flow is shown, which is the same as the normal link failure recovery flow.

[0201] In one embodiment of the present application, the link bypass fast healing method based on the ring network of the present application further comprises:

[0202] The frequency of sending CCM detection messages by each node in the ERPS ring network link is set to 200-400 Hz.

[0203] In one specific embodiment of the present application, the frequency of sending CCM detection messages by each node in the ERPS ring network link is set to 300 Hz.

[0204] In one embodiment of the present application, the flow of the link fault ring network switching control of the present application comprises:

[0205] 1) When the node detects and confirms the link fault, the ERPS protection switching mechanism is started.

[0206] 2) The ports at both ends of the fault link are blocked to prevent the spread of the fault.

[0207] 3) The node reports the fault to other nodes in the ring network by sending SF (switch failure) R-APS messages.

[0208] 4) Data transmission path switching.

[0209] 5) After receiving the SF R-APS message, other nodes will recalculate the data transmission path according to the ERPS protocol.

[0210] 6) The traffic originally passing through the fault link is redirected to other available paths to achieve bypass fast healing.

[0211] In one embodiment of the present application, the flow of the link fault recovery and back switching control comprises:

[0212] 1) Fault recovery: When the fault link or device recovers normally, the nodes in the network will re-evaluate the network state.

[0213] 2) The node that detects the fault recovery sends NR (no request) R-APS messages to notify other nodes that the fault has been recovered.

[0214] 3) After receiving the NR (no request) R-APS message sent by the node, the RPL Owner node notifies other nodes that the fault has been recovered. After receiving the NR message, other nodes start the WTR Timer timer. When the timer expires, the RPL owner port is blocked, and the NRRB RAPS message is sent out.

[0215] 4) After each node on the ring receives the NRRB RAPS protocol message sent by the RPL Owner, it releases the originally blocked port on the device, stops sending the NRRB RAPS protocol message, and completes the refreshing of the MAC forwarding table. After other devices receive the NRRB RAPS protocol message sent by the RPL Owner, the refreshing of the MAC forwarding table is completed.

[0216] As can be seen from the above embodiments, the scheme has the following advantages:

[0217] 1. High reliability, a plurality of device node faults in the ring network can be tolerated, and the communication between other normal devices is not affected, and the healing can be quickly performed.

[0218] 2. Short interruption time: In the ring network, the bypass technology is used to reduce the delay in the fault recovery process. The bypass can instruct the network device to directly skip the affected link or node when detecting the fault, bypass the fault part through the bypass, bypass the data before the network is recovered, and reduce the network interruption time; in addition, the CCM new extension protocol is used to isolate the fault node, quickly recover the network, and reduce the interruption time introduced by the ring network switching times;

[0219] 3. Efficient ring network healing capability: in combination with the ERPS and bypass technology, the healing process of the ring network can be optimized, the fault endpoint is recovered, the bypass is maintained before the initialization of the steady state, the bypass is closed to recover the network connection after the stabilization, the network interruption recovery time is reduced, and the traffic bypassing the fault area and quickly recovering the connection normal working state is ensured.

[0220] 4. Intelligent fault detection and switching: the ERPS in combination with the bypass technology can detect in real time when the fault occurs, and quickly heal through learning and dynamic recovery.

[0221] 5. Enhanced fault tolerance: in combination with the bypass technology, even in a complex network topology, the fault area can be effectively isolated to prevent the spread of the fault, thereby maintaining the stable operation of other parts and providing higher fault tolerance.

[0222] 6. Simplified management and configuration: the ERPS and bypass technology are integrated, the CCM protocol processing mechanism is extended, the dynamic ring is continued, and the network management process is simplified.

[0223] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a group of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0224] Based on the same inventive concept, the embodiment of the present application further provides a ring network link bypass fast healing device based on the ring network link bypass fast healing method described in the above embodiment, as described in the following embodiment. Since the principle of solving problems of the ring network link bypass fast healing device is similar to that of the ring network link bypass fast healing method, the embodiments of the ring network link bypass fast healing device can refer to the embodiments of the ring network link bypass fast healing method, and the repeated parts will not be described herein. The term "unit" or "module" used below can be a combination of software and / or hardware that can realize a predetermined function. Although the device described in the following embodiment is preferably realized in software, the realization of hardware or a combination of software and hardware is also possible and is conceived.

[0225] It should be noted that the ring network link bypass fast healing device of the present application is applied to an ERPS ring network link, the ERPS ring network link comprises a first node, a second node and a third node, the second node is located between the first node and the third node, and each node in the ERPS ring network link periodically sends a CCM detection packet to a peer node in working.

[0226] In one embodiment of the present application, the ring network link bypass fast healing device of the present application comprises:

[0227] A bypass opening determination unit is configured to determine that the second node opens a bypass function when the first node receives the CCM detection packet sent by the third node for M times in continuous N periods and when the third node receives the CCM detection packet sent by the first node for M times in continuous N periods, at this time, the first node updates a peer node from the second node to the third node, and the third node updates a peer node from the second node to the first node, wherein, when the second node is faulty, the second node opens a bypass function, the second node is bypassed, at this time, the first node and the third node bypass the second node to periodically send CCM detection packets to each other;

[0228] The bypass closing determining unit is configured to determine that the second node has recovered from the failure and has closed the bypass function when the first node receives the CCM detection packet sent by the second node for M times in N continuous periods and when the third node receives the CCM detection packet sent by the second node for M times in N continuous periods, and at this time, the first node updates the opposite node from the third node to the second node, and the third node updates the opposite node from the first node to the second node.

[0229] In an embodiment of the present application, the ring network link bypass fast healing device based on the present application further comprises:

[0230] The link failure determining unit is configured to determine that a link has failed when the first node and the third node do not receive the CCM detection packet sent by the second node for N continuous periods.

[0231] The link recovery determining unit is configured to determine that the link has recovered when the first node and the third node receive the CCM detection packet sent by the second node for N continuous periods after determining that the link has failed.

[0232] In an embodiment of the present application, the ERPS ring network link further comprises a fourth node and a fifth node, the fourth node is a node where the main port of the ring protection link is located, and the fifth node is a node where the adjacent port of the ring protection link is located.

[0233] In an embodiment of the present application, the ring network link bypass fast healing device based on the present application further comprises:

[0234] The failure-free processing unit is configured to block the main port of the ring protection link and the adjacent port of the ring protection link when there is no failure node in the ERPS ring network link, and at this time, the fourth node is enabled to periodically send an NRRB RAPS packet in the ERPS ring network link, and the NRRB RAPS packet is used to notify other nodes that there is no failure node in the ERPS ring network link.

[0235] In an embodiment of the present application, the ring network link bypass fast healing device based on the present application further comprises:

[0236] a link fault first processing unit, configured to, when a link fault is determined, make the first node and the third node block a port connected with the second node, refresh a forwarding database and a port state of the first node and the third node, and send an SF RAPS packet in the ERPS ring network link, so that each node in the ERPS ring network link refreshes a forwarding database and a port state according to the SF RAPS packet;

[0237] a link fault second processing unit, configured to, when the fourth node receives the SF RAPS packet, make the fourth node unblock the main port of the loop protection link and refresh a forwarding database and an unblocked port state of the fourth node, and when the fifth node receives the SF RAPS packet, make the fifth node unblock the adjacent port of the loop protection link and refresh a forwarding database and an unblocked port state of the fifth node, so as to ensure that traffic in the ERPS ring network link is not interrupted.

[0238] In an embodiment of the present application, the ring network link bypass fast healing device based on the present application further comprises:

[0239] a link recovery first processing unit, configured to, when a link recovery is determined, make the first node and the third node start a first timer, not receive other RAPS protocol packets before the first timer expires, and send an NR RAPS packet in the ERPS ring network link;

[0240] a link recovery second processing unit, configured to, when the fourth node receives the NR RAPS packet, make the fourth node start a second timer, and when the second timer expires, block the main port of the loop protection link and send an NRRB RAPS packet in the ERPS ring network link;

[0241] a link recovery third processing unit, configured to, when the fifth node receives the NR RAPS packet, block the adjacent port of the loop protection link;

[0242] a link recovery fourth processing unit, configured to, when the first node and the third node receive the NRRB RAPS packet, make the first node and the third node unblock the port connected with the second node, stop sending the NR RAPS packet and refresh a forwarding database of the first node and the third node, and when other nodes in the ERPS ring network link receive the NRRB RAPS packet, refresh a forwarding database of the other nodes.

[0243] In an embodiment of the present application, the ring network link bypass fast healing device based on the present application further comprises:

[0244] The first bypass opening processing unit is configured to, when it is determined that the second node opens the bypass function due to failure, make the first node and the third node refresh their own forwarding databases and send a State RAPS packet in the ERPS ring network link, so that each node in the ERPS ring network link refreshes its own forwarding database according to the State RAPS and performs node refresh respectively.

[0245] In an embodiment of the present application, the ring network link bypass fast healing device further comprises:

[0246] The second bypass opening processing unit is configured to, when it is determined that the second node opens the bypass function due to failure, make the first node and the third node block the port connected with the second node, and at this time, the fourth node unblocks the main port of the loop protection link, and the fifth node unblocks the adjacent port of the loop protection link, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.

[0247] In an embodiment of the present application, the ring network link bypass fast healing device further comprises:

[0248] The bypass closing first processing unit is configured to, when it is determined that the second node closes the bypass function due to recovery, make the first node and the third node start a first timer and not receive other RAPS protocol packets before the first timer expires, and send an NR RAPS packet in the ERPS ring network link.

[0249] The bypass closing second processing unit is configured to, when the fourth node receives the NR RAPS packet, make the fourth node start a second timer, and when the second timer expires, block the main port of the loop protection link and send an NR RB RAPS packet in the ERPS ring network link.

[0250] The bypass closing third processing unit is configured to, when the fifth node receives the NR RAPS packet, block the adjacent port of the loop protection link.

[0251] The bypass closing fourth processing unit is configured to, when the first node and the third node receive the NR RB RAPS packet, make the first node and the third node unblock the port connected with the second node, stop sending the NR RAPS packet and refresh their own forwarding databases, and when other nodes in the ERPS ring network link receive the NR RB RAPS packet, refresh their own forwarding databases.

[0252] In an embodiment of the present application, the ring network link bypass fast healing device further comprises:

[0253] The message sending frequency setting unit is configured to set the frequency of sending CCM detection messages by each node in the ERPS ring network link to 200Hz to 400Hz.

[0254] To achieve the above object, according to another aspect of the present application, a computer device is further provided. As shown in the figure, the computer device comprises a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program executable on the processor, and the processor implements the steps in the above-mentioned embodiment method when executing the computer program. Figure 15 The processor can be a central processing unit (CPU). The processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, or combinations thereof.

[0255] The memory is a non-transitory computer readable storage medium, which can be used to store non-transitory software programs, non-transitory computer executable programs and units, such as the corresponding program units in the above-mentioned method embodiments. The processor executes various functions and work data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implements the method in the above-mentioned method embodiments.

[0256] The memory can include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required by a function; and the data storage area can store data created by the processor and the like. In addition, the memory can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some embodiments, the memory can optionally include a memory remotely arranged with respect to the processor, and these remote memories can be connected to the processor through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0257] The one or more units are stored in the memory and executed by the processor to perform the method in the above-mentioned embodiments.

[0258] The one or more units are stored in the memory and executed by the processor to perform the method in the above-mentioned embodiments.

[0259] The above computer device specific details can be understood in correspondence with the relevant description and effects in the above embodiments, and will not be repeated here.

[0260] To achieve the above object, according to another aspect of the present application, there is also provided a computer readable storage medium storing a computer program, which, when executed on a computer processor, implements the steps of the above ring network link BYPASS fast healing method. Those skilled in the art can understand that all or part of the processes of the above embodiments can be completed by a computer program instructing related hardware. The program can be stored in a computer readable storage medium, and when executed, can include the processes of the above embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid state drive (SSD), etc. The storage medium can also include a combination of the above types of memories.

[0261] To achieve the above object, according to another aspect of the present application, there is also provided a computer program product, comprising computer programs / instructions, which, when executed by a processor, implement the steps of the above ring network link BYPASS fast healing method.

[0262] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be realized by general computing devices, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be realized by program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, or they can be made into individual integrated circuit modules, or multiple modules or steps can be made into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.

[0263] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A rapid healing method based on ring network link bypass, characterized in that, The method is applied to an ERPS ring network link, which includes a first node, a second node, and a third node, with the second node located between the first node and the third node. During operation, each node in the ERPS ring network link periodically sends CCM detection messages to the peer node. The method includes: When the first node receives M CCM detection messages sent by the third node within N consecutive periods, and when the third node receives M CCM detection messages sent by the first node within N consecutive periods, it is determined that the second node has failed and enabled the bypass function. At this time, the first node updates the peer node from the second node to the third node, and the third node updates the peer node from the second node to the first node. When the second node fails, the second node enables the bypass function and is bypassed. At this time, the first node and the third node bypass the second node and periodically send CCM detection messages to each other. After determining that the bypass function was enabled due to a fault in the second node, when the first node receives M CCM detection messages sent by the second node within N consecutive cycles, and when the third node receives M CCM detection messages sent by the second node within N consecutive cycles, it is determined that the bypass function has been disabled after the fault in the second node has been recovered. At this time, the first node updates the peer node from the third node to the second node, and the third node updates the peer node from the first node to the second node. When the second node recovers from a fault and powers on, the bypass function is enabled by default, and the second node is kept bypassed. When the second node completes the initialization of the ring network port, the bypass function is disabled.

2. The rapid healing method based on ring network link bypass according to claim 1, characterized in that, Also includes: If the first node and the third node do not receive a CCM detection message sent by the second node for N consecutive cycles, a link failure is determined. After a link failure is identified, the link is determined to be restored when the first node and the third node receive CCM detection messages sent by the second node for N consecutive cycles.

3. The rapid healing method based on ring network link bypass according to claim 2, characterized in that, The ERPS ring network link also includes a fourth node and a fifth node. The fourth node is the node where the main port of the ring protection link is located, and the fifth node is the node where the adjacent port of the ring protection link is located. The method further includes: When there is no faulty node in the ERPS ring network link, the main port of the ring protection link and the adjacent port of the ring protection link are blocked. At this time, the fourth node periodically sends NRRB RAPS messages in the ERPS ring network link. The NRRB RAPS messages are used to notify other nodes that there is no faulty node in the current ERPS ring network link.

4. The rapid healing method based on ring network link bypass according to claim 3, characterized in that, Also includes: When a link failure is detected, the first node and the third node block the port connected to the second node, refresh their own forwarding database and port status, and send SF RAPS messages in the ERPS ring network link so that each node in the ERPS ring network link refreshes its own forwarding database and port status according to the SF RAPS messages. When the fourth node receives the SF RAPS message, the fourth node unblocks the main port of the loop protection link and refreshes its forwarding database and unblocked port status. When the fifth node receives the SF RAPS message, the fifth node unblocks the adjacent port of the loop protection link and refreshes its forwarding database and unblocked port status, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.

5. The rapid healing method based on ring network link bypass according to claim 4, characterized in that, Also includes: When the link is determined to be restored, the first node and the third node start the first timer. Before the first timer expires, they do not receive other RAPS protocol messages, and at the same time send NR RAPS messages to the ERPS ring network link. When the fourth node receives the NR RAPS message, the fourth node starts a second timer. When the second timer expires, it blocks the main port of the loop protection link and sends an NRRBRAPS message to the ERPS ring network link. When the fifth node receives the NR RAPS message, it blocks the adjacent port of the loop protection link; When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the port connected to the second node, stop sending NR RAPS messages, and refresh their own forwarding database. When other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding database.

6. The rapid healing method based on ring network link bypass according to claim 3, characterized in that, Also includes: When it is determined that the second node has failed and enabled the bypass function, the first node and the third node refresh their forwarding databases and send State RAPS messages in the ERPS ring network link, so that each node in the ERPS ring network link refreshes its forwarding database according to the State RAPS and performs node refresh.

7. The rapid healing method based on ring network link bypass according to claim 3, characterized in that, Also includes: When it is determined that the second node has failed and enabled the bypass function, the first node and the third node block the ports connected to the second node. At this time, the fourth node unblocks the main port of the loop protection link, and the fifth node unblocks the adjacent port of the loop protection link, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.

8. The rapid healing method based on ring network link bypass according to claim 7, characterized in that, Also includes: When it is determined that the bypass function has been turned off after the second node has recovered from the fault, the first node and the third node start the first timer. Before the first timer expires, they do not receive other RAPS protocol messages, and at the same time send NR RAPS messages to the ERPS ring network link. When the fourth node receives the NR RAPS message, the fourth node starts a second timer. When the second timer expires, it blocks the main port of the loop protection link and sends an NRRB RAPS message to the ERPS ring network link. When the fifth node receives the NR RAPS message, it blocks the adjacent port of the loop protection link; When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the port connected to the second node, stop sending NR RAPS messages, and refresh their own forwarding database. When other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding database.

9. The rapid healing method based on ring network link bypass according to claim 1, characterized in that, Also includes: The frequency at which each node in the ERPS ring network sends CCM detection messages is set to 200Hz to 400Hz.

10. The rapid healing method based on ring network link bypass according to claim 1, characterized in that, Each node in the ERPS ring network link is configured to enable the bypass function when power is off, enable the bypass function by default when power is on, enable the bypass function in case of hardware failure and power failure, enable the bypass function in case of software deadlock, and disable the bypass function when the network port initialization is completed.

11. A rapid healing device based on ring network link bypass, characterized in that, An apparatus is applied to an ERPS ring network link, wherein the ERPS ring network link includes a first node, a second node, and a third node, the second node being located between the first node and the third node. During operation, each node in the ERPS ring network link periodically sends CCM detection messages to the peer node. The apparatus includes: The bypass activation determination unit is used to determine that the second node has failed and activated the bypass function when the first node receives M CCM detection messages sent by the third node within N consecutive periods, and when the third node receives M CCM detection messages sent by the first node within N consecutive periods. In this case, the first node updates the peer node from the second node to the third node, and the third node updates the peer node from the second node to the first node. When the second node fails, the second node activates the bypass function and is bypassed. In this case, the first node and the third node bypass the second node and periodically send CCM detection messages to each other. The bypass shutdown determination unit is used to determine that the bypass function has been shut down after the second node has recovered from a fault, when the first node receives M CCM detection messages sent by the second node within N consecutive cycles, and when the third node receives M CCM detection messages sent by the second node within N consecutive cycles. At this time, the first node updates the peer node from the third node to the second node, and the third node updates the peer node from the first node to the second node. The bypass function is enabled by default when the second node recovers from a fault and is powered on, and the second node is kept bypassed. The bypass function is disabled when the second node completes the initialization of the ring network port.

12. The rapid healing device based on ring network link bypass according to claim 11, characterized in that, Also includes: The link failure determination unit is used to determine a link failure when the first node and the third node have not received a CCM detection message sent by the second node for N consecutive cycles. The link recovery determination unit is used to determine link recovery after determining a link failure, when the first node and the third node receive CCM detection messages sent by the second node for N consecutive cycles.

13. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 10.

14. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 10.

15. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Ethernet protection switching method

    CN104065546A

  • Method and device of network protection

    US20090310481A1