Rapid healing method and device based on ring network link bypass
By introducing the bypass function and the dynamic update mechanism of CCM detection packets into the ERPS ring link, the problem of long network convergence time in the existing technology is solved, and fast healing and low-latency connection is achieved.
Patent Information
- Application Number
- CN202411836231.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-13
AI Technical Summary
In the case of multi-node failure or single-point recovery, the existing ERPS ring network technology has a long network convergence time and cannot meet the needs of high reliability and low latency.
By introducing the bypass function in the ERPS ring link, the periodic transmission of CCM detects the packets, and dynamically updates the new source endpoint when a node fails, achieving rapid link switching and recovery.
In case of node failure, the bypass function is enabled immediately to maintain the logical integrity of the ring link, reduce the number of network switching times and service interruption time, and achieve fast healing and low-latency connections.
Smart Images

Figure CN119728340A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a method and device for rapid healing based on ring network link bypass. Background Art
[0002] With the widespread 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 storms, they have slow convergence speed and cannot meet the needs of high-reliability networks. ERPS (Ethernet Ring Protection Switching), that is, Ethernet multi-ring protection technology, is a layer 2 destructive protocol standard defined by ITU-T, which aims to improve the reliability and recovery speed of Ethernet ring networks through fast fault detection and switching mechanisms. Its basic principle is that ERPS technology eliminates loop risks by blocking some ports in the ring (such as the ring protection link master port RPL owner port and the ring protection link adjacent port RPL neighbor port), and when a link failure is detected, the data transmission path is switched to the backup path through a fast switching mechanism to ensure network continuity and reliability. However, if there are multiple node failures in the ring network, the network will be divided, causing network isolation problems. ERPS rings are isolated using mechanisms such as control VLAN, data VLAN, and protection instances. In order to eliminate redundant loops in the network and effectively ensure link connectivity, it is necessary to start the loop breaking mechanism to better realize the ERPS function, eliminate redundant loops in the network, and effectively ensure link connectivity.
[0003] Bypass technology, also known as bypass technology, is a technology that uses a specific trigger state or method to bypass a device, system or security mechanism, allowing data or signals to pass directly without going through the original processing flow. When a network security device fails (power outage, freeze), bypass technology can ensure that the two networks remain connected, avoiding network interruptions caused by a single point of failure. When the device is not powered on, the bypass function is turned on; once the device is powered on, the bypass function is turned off. Bypass technology is a technology that is widely used in computer science and network security. It can ensure network connectivity and stability, and plays an important role in a variety of scenarios.
[0004] Although bypass technology can ensure the connectivity of physical links when equipment fails, the existing ERPS solution mainly relies on traditional logical detection and switching mechanisms, and cannot fully combine the bypass function to achieve rapid healing and stable connection of logical networks. This limitation leads to a long convergence time for the network in multi-node failure or single-point recovery scenarios, making it difficult to meet the requirements for high reliability and low latency.
[0005] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section. Summary of the invention
[0006] In order to solve at least one technical problem in the above-mentioned background technology, the present invention proposes a ring network link bypass-based rapid healing method and device.
[0007] In order to achieve the above object, according to one aspect of the present invention, a method for rapid healing based on a ring network link bypass is provided, the method being applied to an ERPS ring network link, the ERPS ring network link comprising a first node, a second node and a third node, the second node being located between the first node and the third node, and each node in the ERPS ring network link periodically sending a CCM detection message to a peer node during operation, the method comprising:
[0008] When the first node receives the CCM detection message sent by the third node M times within N consecutive cycles, and when the third node receives the CCM detection message sent by the first node M times within N consecutive cycles, it is determined that the second node fails and the bypass function is turned on. 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 turns on the bypass function, and the second node 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;
[0009] After determining that the bypass function is turned on due to the failure of the second node, when the first node receives CCM detection messages sent by the second node M times within N consecutive cycles, and when the third node receives CCM detection messages sent by the second node M times within N consecutive cycles, it is determined that the bypass function is turned off due to the failure 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, wherein the bypass function is turned on by default when the second node is powered on after failure recovery, the second node remains bypassed, and the bypass function is turned off when the second node completes initialization of the ring network port.
[0010] Optionally, the ring network link bypass-based rapid healing method further includes:
[0011] When the first node and the third node do not receive the CCM detection message sent by the second node for N consecutive cycles, determine that the link fails;
[0012] After determining that the link failure is present, when the first node and the third node receive CCM detection messages sent by the second node for N consecutive cycles, it is determined that the link is restored.
[0013] Optionally, the ERPS ring network link further includes a fourth node and a fifth node, the fourth node is a node where a primary port of the loop protection link is located, and the fifth node is a node where an adjacent port of the loop 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 loop protection link and the adjacent port of the loop protection link are blocked. At this time, the fourth node periodically sends NRRB RAPS messages in the ERPS ring network link, and the NRRB RAPS messages are used to notify other nodes that there is no faulty node in the current ERPS ring network link.
[0016] Optionally, the ring network link bypass-based rapid healing method further includes:
[0017] When a link failure is determined, the first node and the third node block the port connected to the second node, refresh their own forwarding databases and port states, 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 state according to the SF RAPS messages;
[0018] When the fourth node receives the SF RAPS message, the fourth node unblocks the main port of the loop protection link and refreshes its own forwarding database and unblocked port status; when the fifth node receives the SFRAPS message, the fifth node unblocks the adjacent port of the loop protection link and refreshes its own forwarding database and unblocked port status, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.
[0019] Optionally, the ring network link bypass-based rapid healing method further includes:
[0020] When it is determined that the link is restored, the first node and the third node start a first timer, do not receive other RAPS protocol messages before the first timer times out, and send an NR RAPS message to the ERPS ring network link;
[0021] When the fourth node receives the NR RAPS message, the fourth node starts a second timer, and when the second timer times out, blocks the primary port of the ring protection link, and sends an NRRB RAPS message to the ERPS ring network link;
[0022] When the fifth node receives the NR RAPS message, blocking the ring protection link adjacent port;
[0023] When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the ports connected to the second node, stop sending NR RAPS messages and refresh their own forwarding databases, and when other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding databases.
[0024] Optionally, the ring network link bypass-based rapid healing method further includes:
[0025] When it is determined that the bypass function is turned on due to the failure of the second node, the first node and the third node refresh their own 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 own forwarding database according to the State RAPS and performs node refresh respectively.
[0026] Optionally, the ring network link bypass-based rapid healing method further includes:
[0027] When it is determined that the bypass function is turned on due to the failure of the second node, the first node and the third node block the port 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.
[0028] Optionally, the ring network link bypass-based rapid healing method further includes:
[0029] When it is determined that the bypass function is closed due to the fault recovery of the second node, the first node and the third node start a first timer, do not receive other RAPS protocol messages before the first timer times out, and send an NR RAPS message to the ERPS ring network link;
[0030] When the fourth node receives the NR RAPS message, the fourth node starts a second timer, and when the second timer times out, blocks the primary port of the ring protection link, and sends an NRRBRAPS message to the ERPS ring network link;
[0031] When the fifth node receives the NR RAPS message, blocking the ring protection link adjacent port;
[0032] When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the ports connected to the second node, stop sending NR RAPS messages and refresh their own forwarding databases, and when other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding databases.
[0033] Optionally, the ring network link bypass-based rapid healing method further includes:
[0034] The frequency at which each node in the ERPS ring network link sends CCM detection messages is set to 200 Hz to 400 Hz.
[0035] Optionally, each node in the ERPS ring network link is configured to turn on the bypass function when power is off, turn on the bypass function by default when power is on, turn on the bypass function when hardware failure and power failure occur, turn on the bypass function when the software deadlocks, and turn off the bypass function when the network port is initialized.
[0036] In order to achieve the above object, according to another aspect of the present invention, a ring network link bypass rapid healing device is provided, the device is applied to an ERPS ring network link, the ERPS ring network link 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 a CCM detection message to the opposite node during operation, and the device includes:
[0037] a bypass opening determination unit, configured to determine that the second node fails and the bypass function is turned on when the first node receives the CCM detection message sent by the third node M times within N consecutive cycles, and when the third node receives the CCM detection message sent by the first node M times within N consecutive cycles, and 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 turns on the bypass function, and the second node is bypassed, and at this time, the first node and the third node bypass the second node and periodically send CCM detection messages to each other;
[0038] A bypass closure determination unit is used to determine that the bypass function is turned on due to a fault of the second node after determining that the bypass function is turned on. When the first node receives CCM detection messages sent by the second node M times within N consecutive cycles, and when the third node receives CCM detection messages sent by the second node M times within N consecutive cycles, determine that the bypass function is turned off due to a fault 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, wherein the bypass function is turned on by default when the second node is powered on after fault recovery, the second node remains bypassed, and the bypass function is turned off when the second node completes initialization of the ring network port.
[0039] Optionally, the ring network link bypass-based rapid healing device further includes:
[0040] A link failure determination unit, configured to determine a link failure when the first node and the third node do not receive a CCM detection message sent by the second node for N consecutive cycles;
[0041] A link recovery determination unit is used to determine that the link is recovered when the first node and the third node receive the CCM detection message sent by the second node for N consecutive cycles after determining that the link failure has occurred.
[0042] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a computer device is also provided, including 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-based rapid healing method when executing the computer program.
[0043] In order to achieve the above object, according to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps of the above-mentioned ring network link bypass-based rapid healing method are implemented.
[0044] In order to achieve the above object, according to another aspect of the present invention, a computer program product is further provided, including a computer program / instruction, which implements the steps of the above-mentioned ring network link bypass-based fast healing method when executed by a processor.
[0045] The beneficial effects of the present invention are:
[0046] The present invention enables the bypass function immediately when a single-point node failure occurs, so that the faulty node is bypassed, thereby maintaining the logical integrity of the ring network link and not triggering link failure switching. In addition, the present invention completes the update of the new source endpoint address within the fault detection cycle, and updates the opposite node of the first node from the second node to the third node, so that the link remains in the loop link state, reducing the number of network switching times and service interruption time. When the faulty node is restored, the present invention keeps the bypass function turned on by default when powered on, and turns off the bypass function after the initialization of the ring network port is completed, delaying the closure of the bypass function, and realizing the closure of the bypass, that is, quickly switching back the connection, effectively reducing the network interruption time and accelerating the healing of the ring network. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0048] Figure 1 is a first flow chart of a ring network link bypass rapid healing method based on an embodiment of the present invention;
[0049] Figure 2 is a second flow chart of a ring network link bypass rapid healing method based on an embodiment of the present invention;
[0050] Figure 3This is a first flow diagram of applying the bypass technology in an ERPS ring network link according to an embodiment of the present invention;
[0051] Figure 4 This is a second flow diagram of applying the bypass technology in an ERPS ring network link according to an embodiment of the present invention;
[0052] Figure 5 This is a third flow diagram of applying the bypass technology in an ERPS ring network link according to an embodiment of the present invention;
[0053] Figure 6 is a schematic diagram of a normal ring of an embodiment of the present invention;
[0054] Figure 7 This is a schematic diagram of a link fast flash bypass not detecting a link interruption in an embodiment of the present invention;
[0055] Figure 8 This is a schematic diagram of reporting a link failure SF according to an embodiment of the present invention;
[0056] Fig. 9 is a schematic diagram of a link failure recovery notification according to an embodiment of the present invention;
[0057] Fig.10 This is a schematic diagram of node failure bypass in an embodiment of the present invention;
[0058] Fig.11 This is a schematic diagram of node recovery bypass rapid shutdown in an embodiment of the present invention;
[0059] Fig.12 This is a schematic diagram of bypass closing link interruption in an embodiment of the present invention;
[0060] Fig.13 This is a schematic diagram of bypass shutdown link interruption recovery in an embodiment of the present invention;
[0061] Fig.14 It is a structural block diagram of a ring network link bypass rapid healing device based on an embodiment of the present invention;
[0062] Fig.15 It is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0064] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0065] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0066] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0067] With the widespread application of ring network technology in industrial Internet and high-speed communication, high reliability and low interruption time of the network have become key requirements. Traditional ring network technology (such as ERPS) can maintain network connectivity through the ring network switching mechanism when dealing with single point failures, but there are several problems: First, the physical connection of the switch supporting bypass remains unchanged when it fails or recovers, resulting in the inability to correctly trigger the ring network switching when the link is restored; second, the bypass function is enabled too early, which will cause the network recovery time to be too long, affecting the stability of the system and the efficiency of fault recovery.
[0068] The present invention proposes a bypass fast healing method and device based on a ring network, which is used to solve the network interruption and inaccurate switching problems caused by the incompatibility of the bypass function with the link fault detection mechanism in the existing ERPS ring network technology. Specifically, the present invention improves the switching efficiency and network reliability of the ring network in equipment failure and link recovery through the following innovative measures:
[0069] 1. Bypass support for ring network links: On switches that support the bypass function, the present invention provides a new link detection mechanism. When the switch fails or recovers, the BYPASS function keeps the physical connection unchanged, but the present invention avoids the problem of being unable to trigger switching due to endpoint mismatch by dynamically learning and identifying new source endpoints. When the link is restored, the system can accurately identify the restored link and implement fast switching, thereby avoiding the redundant link switching under traditional ERPS and the network isolation problem caused by it.
[0070] 2. Link detection and recovery mechanism based on CCM protocol: The present invention expands the processing mechanism of CCM protocol and optimizes the efficiency of link detection. By adjusting the sending frequency of CCM message (such as 300Hz), the accuracy of link detection is improved. Specifically, when the ring network node does not receive the CCM message from the source node within the specified period, the system considers the link to be interrupted and triggers fault switching; when the link is restored, the system delays the closure of the bypass function to ensure that the switch is switched back after stable operation, thereby reducing the interruption time of fault recovery.
[0071] 3. Bypass startup and shutdown mechanism: This invention defines the bypass startup and shutdown process of the switch:
[0072] At startup, after the switch is powered on, the bypass function is enabled by default to ensure that the physical connection of the link is not interrupted;
[0073] After the switch is initialized, turn off the bypass function and start normal network connection and CCM message processing;
[0074] During link recovery, the bypass function shutdown timing is adjusted to avoid network interruption caused by premature shutdown, ensuring rapid switchback and recovery.
[0075] 4. Rapid detection of link interruption and recovery: The present invention adopts a variety of rapid link detection methods, including PHY and optical module interruption detection. When the link is interrupted, the SF RAPS message is immediately triggered to notify the node to switch; when the link is restored, the NR message is triggered and the link status is updated. At the same time, by increasing the reception frequency of CCM messages, the response speed of link recovery is further improved, ensuring that fault detection and recovery are completed within 20ms.
[0076] The present invention solves the following problems in the recovery process of equipment or link failure in traditional ERPS ring network by optimizing the bypass function and link detection mechanism:
[0077] 1. Rapid recovery and reduced fault interruption time: Through improved link detection and bypass management mechanisms, after a device failure, the learning of the new source endpoint can be completed within the link fault detection cycle, and the link remains in the ring network connection state, avoiding unnecessary network switching. When recovering, by delaying the closure of the bypass, rapid switching back and recovery can be achieved, greatly reducing service interruption time.
[0078] 2. Reduce misjudgment and network isolation: In traditional ERPS technology, the conflict between the bypass function and the link fault detection mechanism may lead to misjudgment of link interruption and even form an island network. By introducing a new source endpoint learning mechanism and link recovery detection method, it ensures fast switching and accurate recovery of the network after fault recovery, avoiding network isolation caused by multiple point faults.
[0079] 3. Improve network reliability and switching speed: Finally, the present invention realizes rapid fault detection and switching in the ring network, and the link recovery time and fault healing time are compressed to less than 20ms, which greatly improves the network reliability and system stability, and meets the requirements of low interruption time and high reliability in scenarios such as high-speed trains.
[0080] Through the above technical solution, the present invention can effectively deal with the problems caused by the mismatch between the bypass function and the link detection mechanism in the traditional ERPS ring network, improve the efficiency and reliability of network switching, especially in multi-point failure and equipment recovery scenarios, can achieve rapid detection and switching back, greatly reduce network interruption time, and ensure business continuity and stability.
[0081] It should be noted that the ring network link bypass rapid healing method in the following embodiments of the present invention is applied to an ERPS ring network link, and the ERPS ring network link includes a first node, a second node and a third node, and the second node is located between the first node and the third node. When working, each node in the ERPS ring network link periodically sends a CCM detection message to the opposite node.
[0082] It should be noted that bypass in the following embodiments of the present invention refers to a bypass function.
[0083] It should be noted that the nodes in the ERPS ring network link of the present invention can be switch devices or other devices, such as routers, optical network devices, multi-function network devices, virtual switches, etc. The following embodiments of the present invention refer to the nodes in the ERPS ring network link with switches for the rail transit field, but the present invention is not limited thereto.
[0084] It should be noted that the first node described in the present invention is Figure 2 , Figure 3 and Figure 4In the embodiment of the present invention, it refers to the switch SWi. Figures 6 to 13 In the embodiment of the present invention, it refers to the node SW2. Figure 2 , Figure 3 and Figure 4 In the embodiment of the present invention, it refers to the switch SWj. Figures 6 to 13 In the embodiment of the present invention, it refers to node SW3. Figure 2 , Figure 3 and Figure 4 In the embodiment of the present invention, it refers to the switch SWk. Figures 6 to 13 In the embodiment of FIG. 8 , it refers to node SW4.
[0085] Figure 1 is a first flow chart of a ring network link bypass rapid healing method according to an embodiment of the present invention, such as Figure 1 As shown, in one embodiment of the present invention, the ring network link bypass-based rapid healing method of the present invention includes step S101 and step S102.
[0086] Step S101, when the first node receives the CCM detection message sent by the third node M times within N consecutive cycles, and when the third node receives the CCM detection message sent by the first node M times within N consecutive cycles, it is determined that the second node fails and the bypass function is turned on. 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.
[0087] In the present invention, when the second node fails, the second node turns on the bypass function and the second node 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 is equal to 3, and M is equal to 2.
[0089] like Figure 5 As shown, the present invention targets single-point failure of equipment and maintains connection based on bypass function. When the second node (switch SWj) fails and turns on 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 of the present invention is that the first node and the third node monitor the CCM detection message within M cycles (i.e., link failure detection cycle). If the received message does not match the source endpoint, it remains unchanged for N consecutive times, that is, learning to accept the new source endpoint as the opposite node, thereby achieving a short network failure interruption time and reducing the network swing problem introduced by network switching.
[0090] In the present invention, when the first node receives CCM detection messages sent by the third node M times within N consecutive cycles, and when the third node receives CCM detection messages sent by the first node M times within N consecutive cycles, the first node and the third node complete the learning of the new source endpoint address within the link fault detection cycle, and the link still maintains a loop link state. At this time, the first node and the third node only determine that the bypass function is turned on due to the failure of the second node, and do not consider the link failure to switch, thereby reducing the number of network switching back and business interruption time.
[0091] Step S102, after determining that the bypass function is turned on due to the failure of the second node, when the first node receives the CCM detection message sent by the second node M times within N consecutive cycles, and when the third node receives the CCM detection message sent by the second node M times within N consecutive cycles, it is determined that the bypass function is turned off due to the failure 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 invention, when the second node is powered on after failure recovery, the bypass function is enabled by default, and the second node remains bypassed. When the second node completes initialization of the ring network port, the bypass function is disabled.
[0093] In one embodiment of the present invention, when the first node or the third node receives CCM detection messages sent by the second node M times within N consecutive cycles, it is determined that the second node has recovered from the failure and the bypass function is disabled.
[0094] like Figure 3 As shown in the figure, when the node fault is restored and the BYPASS is immediately closed after power is turned on, the system is initialized, during which the link is not connected. There is an interruption of seconds or even tens of seconds in the initialization completion phase, which will cause a secondary interruption in the non-reverse switching scenario and lead to network islands. In the reverse switching scenario, it is mistakenly detected as link recovery and reverse switching, and the system application is not normal yet, resulting in a long interruption time.
[0095] To solve this problem, the present invention, when the faulty node is restored, Figure 4 and Figure 5 As shown, for single-point failure recovery of the device, based on bypass retention, the bypass function is turned on by default when the failure is recovered and powered on, until the initialization of the ring network port of the faulty node is completed, the bypass function is closed, and the bypass is closed with delay, so that closing the bypass means quick connection, reducing the network interruption time, and enabling fast switching back and healing.
[0096] In one embodiment of the present invention, each node in the ERPS ring network link is configured to turn on the bypass function when power is off, turn on the bypass function by default when power is on, turn on the bypass function when hardware failure and power failure occur, turn on the bypass function when the software deadlocks, and turn off the bypass function when the network port is initialized.
[0097] The present invention enables the bypass function immediately when a single-point node failure occurs, so that the faulty node is bypassed, thereby maintaining the logical integrity of the ring network link and not triggering link failure switching. In addition, the present invention completes the update of the new source endpoint address within the fault detection cycle, and updates the opposite node of the first node from the second node to the third node, so that the link remains in the loop link state, reducing the number of network switching times and service interruption time. When the faulty node is restored, the present invention keeps the bypass function turned on by default when powered on, and turns off the bypass function after the initialization of the ring network port is completed, delaying the closure of the bypass function, and realizing the closure of the bypass, that is, quickly switching back the connection, effectively reducing the network interruption time and accelerating the healing of the ring network.
[0098] like Figure 2 As shown, in one embodiment of the present invention, the ring network link bypass-based rapid healing method of the present invention further includes step S201 and step S202.
[0099] Step S201: When the first node and the third node do not receive the CCM detection message sent by the second node for N consecutive cycles, it is determined that the link fails.
[0100] In one embodiment of the present invention, if the first node or the third node does not receive the CCM detection message sent by the second node for N consecutive periods, a link failure is reported, and the first node and the third node send a SF request according to a standard ERPS process, and the process follows the ERPS process.
[0101] Step S202: After determining that the link failure occurs, when the first node and the third node receive CCM detection messages sent by the second node for N consecutive cycles, it is determined that the link is recovered.
[0102] Combine the following Figure 4 and Figure 5 The method of the present invention is described in the following embodiments. Figure 4 and Figure 5 This is a schematic diagram of the bypass fast switching and back-switching network interaction in the ring network. Figure 4 and Figure 5 In the example, the switch Swi is the first node, the switch Swj is the second node, and the switch Swk is the third node. Figure 4 and Figure 5As shown, the bypass fast switching and back-switching network interaction process in the ring network of the present invention includes:
[0103] 1. Normal working state: Data streams are transmitted through the working loop, and ERPS continuously monitors the network status of Swi, SWj, and SWk switches through CCM detection messages; Swi, SWj, and SWk periodically send CCM detection messages to the peer node;
[0104] 2. SWj fails, the bypass enable on SWj is turned on, and SWj is bypassed;
[0105] 3. SWi and SWk periodically send CCM detection messages;
[0106] 4. SWi and SWk periodically detect the peer source endpoint sending CCM detection messages:
[0107] 5. If no CCM detection message is received within three consecutive cycles, the link interruption fault is reported, and Swi and SWk send SF requests according to the standard ERPS process. The process follows the ERPS process;
[0108] 6. If no CCM detection message is received from the opposite source endpoint within three consecutive cycles, but only a CCM detection message is received from another endpoint, for example, Swi receives a CCM detection message from SWk. If the message from the endpoint SWk is received for two consecutive cycles, Swi records the original opposite source endpoint Swj and changes it to the new opposite source endpoint SWk; if the CCM detection message sent by the new source endpoint is continuously received periodically, the link between SWi and SWk remains uninterrupted; the network topology changes;
[0109] 7. SWi and SWk periodically send and receive CCM detection messages;
[0110] 8. After the SWj device fails and is powered on, the default bypass is enabled and the initialization device SWj remains bypassed, which does not affect the existing link.
[0111] 9. SWj completes initialization of the ring network port and closes bypass;
[0112] 10. SWi and SWk periodically detect that the peer source endpoint sends a CCM detection message:
[0113] If no CCM detection message is received within three consecutive cycles, the link interruption fault is reported, and Swi and SWk send SF requests according to the standard ERPS process. The process follows the ERPS process;
[0114] If no CCM detection message is received from the opposite source endpoint within three consecutive cycles, but only a CCM detection message is received from another endpoint, for example, SWi receives a CCM detection message from SWj, and if the CCM detection message from the endpoint SWj is received for two consecutive cycles, SWi records the original source endpoint SWk and changes it to the new opposite source endpoint SWj; if the CCM detection message sent by the new source endpoint is continuously monitored and received periodically, the link between SWi and SWj remains uninterrupted;
[0115] 11. At the same time, SWk also detects the processing method of receiving CCM detection messages with SWi;
[0116] 12. SWi, SWj and SWk each periodically send and monitor received CCM information messages.
[0117] like Fig.14 As shown, in one embodiment of the invention, the bypass rapid healing method device based on the ring network of the present invention mainly includes several functional modules such as an interface, a BYPASS unit, a PHY unit, a switching module, and a control module.
[0118] The interface module is the Ethernet network data connection interface, which mainly completes the Ethernet interface connection communication; the hardware mainly refers to the connector, such as SC fiber optic interface, RJ-45 connector interface, etc.
[0119] Bypass is a bypass function that controls the connection or disconnection between Ethernet interface connectors through triggering or control, that is, bypass is turned on or off, bypassing the device itself, and the two Ethernet interfaces of the specified bypass are directly physically connected. This device implements bypass switch control on the specified port through power triggering, GPIO control, and Watchdog control. By default, the bypass is turned on when the device is powered on, and the bypass switch is subsequently controlled by GPIO; the bypass function is turned on when the device is powered off by default. It is used in scenarios where the device hardware failure, power failure, software deadlock, etc. become single point failures. This device controls the bypass switch to close the bypass at the appropriate time to reduce the invalid network interruption time.
[0120] PHY is the physical layer device of the Ethernet port, which is a physical interface transceiver that can send and receive Ethernet data frames. It defines the electrical and optical signals, line status, clock reference, data encoding and circuits required for data transmission and reception, and provides a standard interface to the data link layer equipment. PHY is connected to the data link layer MAC (Media Access Control) through MDC / MDIO, and mainly completes the CPU configuration of PHY registers; PHY and MAC transmit data through the MII interface media independent interface and media independent interface. In this device, the PHY connection of the ring network lower port UP online and DOWN offline status interrupt reporting mode accelerates the monitoring and identification of the link status, quickly switches ERPS, reduces the link interruption time, and reduces the impact on the business.
[0121] The switching unit is mainly responsible for data transmission of each interface and forwarding it according to the forwarding table.
[0122] Control module. The control module of this device, in addition to the system control function and management function, mainly refers to the ring network control function, including ring network construction and configuration, ring protection link port status, bypass control, ring network status management, ring network switching and back-off control, etc.
[0123] In one embodiment of the present invention, the specific scheme for constructing and configuring the ERPS ring network link of the present invention is:
[0124] 1) Build an ERPS ring network: Determine the network topology as a ring, and connect each network node (such as a switch) to form one or more loops through physical links. Ensure that all devices participating in the ERPS ring network support the ERPS protocol. Through the ERPS ring network protocol, eliminate loop redundancy in the network and start the loop breaking mechanism.
[0125] 2) In an ERPS ring, each ERPS ring must be configured with the same control VLAN, and ERPS protocol packets are transmitted in the control VLAN. After a ring port joins an ERPS ring, it automatically joins the control VLAN of the ring. Different rings use different control VLAN IDs.
[0126] 3) Data VLAN is used to transmit traffic data packets.
[0127] 4) Configure ERPS parameters: Configure the relevant parameters of the ERPS protocol on each node device, including ring network identification, node priority, RPL (Ring Protection Link) port, etc. Set relevant thresholds for fault detection and recovery, such as holdoff time, WTR (wait for recovery time), etc.
[0128] 5) Node: A Layer 2 switching device that joins an ERPS ring is called a node. A maximum of two ports can join the same ERPS ring on each node.
[0129] 6) The ring port role mainly defines three types: the ring protection link master port (called RPL Owner port in the embodiment), the ring protection link adjacent port (called RPL neighbor port in the embodiment) and the common ring port. Under normal circumstances, both the RPL owner port and the RPL neighbor port will be blocked to prevent loops. When an ERPS ring fails, both the RPL owner port and the RPL neighbor port will be released.
[0130] a) RPL owner port: An ERPS ring has only one RPL owner port, which is determined by user configuration. By blocking the RPL owner port to forward user traffic, loops in the ERPS ring are prevented. The link where the RPL owner port is located is the ring protection link RPL (Ring Protection Link). When the device where the RPL owner port is located receives a fault message and learns that other nodes or links on the ERPS ring are faulty, it will automatically unblock and release the RPL owner port. This port resumes receiving and sending traffic to ensure that traffic is not interrupted.
[0131] b) RPL neighbor port refers to the port directly connected to the RPL owner port.
[0132] c) Ordinary ring port: All ports except the RPL owner port and the RPL neighbor port are ordinary ring ports. Ordinary ports are responsible for monitoring the link status of the ERPS protocol to which they are directly connected, and promptly notifying other ports of link status changes.
[0133] In one embodiment of the present invention, the ring protection link port status is as follows:
[0134] 1) Blocking RPL ports: In a non-fault state, the ERPS protocol will actively block the RPL Owner port and RPLNeighbour port, blocking the reception and transmission of traffic to break the loop and prevent loops from occurring in the ring network. The RPL Owner node will periodically send NRRB (No Request / Report Blocking) R-APS (Ring Protection Switching Protocol Data Unit) messages to notify other nodes that the current ring network status is fault-free.
[0135] 2) Unblocking the ring protection link port: Unblocking the RPL port: Upon receiving the signal fault request message sent by the node on the ring, that is, detecting the link fault state, immediately unblock the RPL Owner port and RPL Neighbour port, and the ring protection link returns to normal.
[0136] 3) General ring port status: port status monitoring, monitoring link status connection normal linkup and link status offline linkdown, through PHY port status change interrupt reporting method. Ring network port PHY connection UP online, DOWN offline status interrupt reporting method.
[0137] Bypass control: When the node equipment of the present invention has power supply abnormality, hardware failure, power failure, or software deadlock, the ERPS protection switching mechanism will be activated.
[0138] 1) The present invention defaults to turning on the Bypas function when the node device is powered off;
[0139] 2) The present invention defaults to Bypas being turned on when the node device is powered on;
[0140] 3) When the node device of the present invention completes initialization of the network port, the Bypas switch is turned off by controlling the GPIO;
[0141] 4) When the node device of the present invention has a hardware failure or a power failure, the Bypas switch will be turned on;
[0142] 5) When the node device of the present invention detects a software deadlock, it triggers Bypas to open through Watchdog.
[0143] In one embodiment of the present invention, the ERPS ring network link further includes a fourth node and a fifth node, the fourth node is the node where the ring protection link master port (RPL Owner port) is located, and the fifth node is the node where the ring protection link adjacent port (RPL neighbour port) is located.
[0144] It should be noted that the fourth node described in the present invention is Figures 6 to 13 In the embodiment of the present invention, the fifth node is referred to as node SW1. Figures 6 to 13 In the embodiment, it refers to node SW5.
[0145] In one embodiment of the present invention, the ring network link bypass-based rapid healing method of the present invention further includes:
[0146] When there is no faulty node in the ERPS ring network link, the main port of the loop protection link and the adjacent port of the loop protection link are blocked. At this time, the fourth node periodically sends NRRB RAPS messages in the ERPS ring network link, and the NRRB RAPS messages are used to notify other nodes that there is no faulty node in the current ERPS ring network link.
[0147] In the present invention, when the ERPS ring network link is in a normal ring network state, such as Figure 6 As shown, the RPL Owner port and the RPL Neighbour port are blocked, and the RPL Owner node will periodically send NRRB (No Request / Report Blocking) R-APS (Ring Protection Switching Protocol Data Unit) messages to notify other nodes that the current ring network status is fault-free.
[0148] In one embodiment of the present invention, the ring network link bypass-based rapid healing method of the present invention further includes:
[0149] When a link failure is determined, the first node and the third node block the port connected to the second node, refresh their own forwarding databases and port states, 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 state according to the SF RAPS messages;
[0150] When the fourth node receives the SF RAPS message, the fourth node unblocks the main port of the loop protection link and refreshes its own forwarding database and unblocked port status; when the fifth node receives the SFRAPS message, the fifth node unblocks the adjacent port of the loop protection link and refreshes its own forwarding database and unblocked port status, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.
[0151] In the present invention, ERPS link failure implements link connectivity detection through connectivity fault management CFM (Connectivity Fault Management), and CFM detects connectivity between MEPs by periodically sending CCM (Continuity Check Message) between MEPs.
[0152] Ethernet CFM can realize end-to-end connectivity fault detection, fault notification, fault confirmation and fault location functions. It can be used to monitor the connectivity of the entire network, locate network connectivity faults, and cooperate with protection switching technology to improve network reliability.
[0153] Figure 7The link is quickly disconnected and bypassed, and no link interruption is detected. Figure 8 SF reporting is performed to detect link failure.
[0154] like Figure 8 As shown in the figure, when a fault is detected in the link between SW2 (the first node) and SW4 (the third node), the ERPS protocol starts the protection switching mechanism, blocks the ports at both ends of the faulty link (dark blocked ports), and then unblocks the RPL owner port and the RPL neighbor port. These two ports resume receiving and sending user traffic, thereby ensuring that traffic is not interrupted.
[0155] In one embodiment of the present invention, the specific processing process after determining the link failure is as follows:
[0156] Link failure detection considers the link failed if it fails to receive CCM messages from the source endpoint for more than three times in a row, including the configured source endpoint and the newly learned source endpoint message after bypass.
[0157] SW2 (the first node) and SW4 (the third node) detect a link failure, block the ports on the failed link, and refresh the MAC forwarding table entries of the local devices.
[0158] SW2 and SW4 send SF RAPS messages carrying local port link failure notification messages. That is, once a link failure is identified, SW2 and SW4 will send three identical RAPS messages in succession, and then continue to send them steadily at intervals of 5 seconds.
[0159] After receiving the SF RAPS message sent by SW2 and SW4, other node devices refresh their forwarding databases (such as MAC forwarding table, ARP table, etc.) and port status 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, it releases the RPLowner port, allows the data packet to be transmitted along the new ring direction, and refreshes its forwarding database and unblocking port status.
[0161] Similarly, when the SW5 device (the device where the RPL neighbor port is located, the fifth node) receives the RAPS message, it releases the RPL neighbor port, allows the data packet to be transmitted along the new ring direction, and refreshes its forwarding database and unblocking port status.
[0162] In one embodiment of the present invention, the ring network link bypass-based rapid healing method of the present invention further includes:
[0163] When it is determined that the link is restored, the first node and the third node start a first timer, do not receive other RAPS protocol messages before the first timer times out, and send an NR RAPS message to the ERPS ring network link;
[0164] When the fourth node receives the NR RAPS message, the fourth node starts a second timer, and when the second timer times out, blocks the primary port of the ring protection link, and sends an NRRB RAPS message to the ERPS ring network link;
[0165] When the fifth node receives the NR RAPS message, blocking the ring protection link adjacent port;
[0166] When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the ports connected to the second node, stop sending NR RAPS messages and refresh their own forwarding databases, and when other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding databases.
[0167] In the present 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 unblock the failed link port to be used again to complete the transmission of user traffic.
[0168] like Fig. 9 As shown, in one embodiment of the present invention, the specific recovery process of link recovery is as follows:
[0169] When the faulty nodes (SW2 and SW4) receive the CCM message sent by the fault source endpoint, they consider that the faulty port has recovered and the link can enter the working ready state.
[0170] The faulty node will send an NR (No Request) R-APS message to notify other nodes that the fault has been restored.
[0171] When the link between SW2 and SW4 is restored, in order to prevent the receipt of expired RAPS protocol messages, the Guard Timer timer is started respectively, and no other RAPS protocol messages are received before the timer times out. At the same time, SW2 and SW4 will send NR RAPS messages outward.
[0172] When the device SW1 where the RPL owner port is located receives the NR RAPS message, it starts the WTRTimer timer. When the timer times out, the RPL owner port is blocked and sends NRRB RAPS messages outward.
[0173] When SW2 and SW4 receive the NRRB RAPS protocol message sent by SW1, they release the blocked ports on their own devices, stop sending NR RAPS protocol messages and complete the refresh of MAC forwarding table entries. Other devices also complete the refresh of forwarding database entries after receiving the NRRB RAPS protocol message sent by SW1.
[0174] In one embodiment of the present invention, the ring network link bypass-based rapid healing method of the present invention further includes:
[0175] When it is determined that the bypass function is turned on due to the failure of the second node, the first node and the third node refresh their own 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 own forwarding database according to the State RAPS and performs node refresh respectively.
[0176] In one embodiment of the present invention, the specific link bypass processing process is as follows:
[0177] SW2 and SW4 detect that SW3 has enabled bypass. If they receive more than two source endpoint information consecutively and switch, they consider bypass.
[0178] In the case of more than two new source endpoint CCM messages after bypass switching within three CCM cycles, the node fails but the link fast bypass does not consider the link failure, and only notifies to refresh the forwarding database table entry. That is, the nodes SW2 and SW4 that detect the bypass send State R-APS reports respectively to notify to refresh the forwarding database table entry;
[0179] After receiving the State R-APS refresh forwarding database entry report, each node in the ring network refreshes its own node.
[0180] If the expected source endpoint CCM message is not received within more than three CCM cycles, it is considered a link interruption failure. For details, refer to Link Interruption Handling.
[0181] In one embodiment of the present invention, the ring network link bypass-based rapid healing method of the present invention further includes:
[0182] When it is determined that the bypass function is turned on due to the failure of the second node, the first node and the third node block the port 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.
[0183] In one embodiment of the present invention, when a node failure is detected in the link between SW2 and SW4 and bypass is enabled, the present invention extends the ERPS protocol processing mechanism to block the ports at both ends of the faulty link, and then unblocks and releases the RPL owner port and the RPL neighbor port. These two ports resume receiving and sending user traffic, thereby ensuring that traffic is not interrupted.
[0184] In one embodiment of the present invention, Fig.10 As shown in the figure, when SW2 and SW4 detect that the SW3 node fails and enable bypass, SW2 and SW4 block the port connected to SW3 and send NR messages 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 and unblock the blocked port.
[0185] In one embodiment of the present invention, the ring network link bypass-based rapid healing method of the present invention further includes:
[0186] When it is determined that the bypass function is closed due to the fault recovery of the second node, the first node and the third node start a first timer, do not receive other RAPS protocol messages before the first timer times out, and send an NR RAPS message to the ERPS ring network link;
[0187] When the fourth node receives the NR RAPS message, the fourth node starts a second timer, and when the second timer times out, blocks the primary port of the ring protection link, and sends an NRRBRAPS message to the ERPS ring network link;
[0188] When the fifth node receives the NR RAPS message, blocking the ring protection link adjacent port;
[0189] When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the ports connected to the second node, stop sending NR RAPS messages and refresh their own forwarding databases, and when other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding databases.
[0190] In the present invention, after the SW3 node failure is restored to normal, the bypass is closed. The link interruption caused by the bypass closure is too long. The device where the RPL owner port is located adjusts the status of the port on the RPL link to ensure reliability problems caused by subsequent multiple failures.
[0191] Fig.11This shows the situation where the node failure recovery bypass is quickly closed, such as Fig.11 The specific link bypass shutdown recovery process is as follows:
[0192] If the ring network node detects the switching of the new source endpoint and the new source endpoint is not the configured source endpoint, it is considered that the link fault bypass is closed and restored, and the link can enter the working preparation state.
[0193] When the node detects the failure of the non-configured source endpoint link and recovers, it sends a State R-APS report to notify the refresh of the forwarding database table entry.
[0194] After each node in the ring network receives the State R-APS refresh forwarding database entry report, each node refreshes;
[0195] If the ring network node detects the switching of the new source endpoint and the new source endpoint is the configured source endpoint, it considers that the link fault bypass has been restored and sends an NR (no request) R-APS message to notify other nodes that the fault has been restored. The specific details are the same as the link fault recovery process.
[0196] When the faulty link is restored, in order to prevent the reception of expired RAPS protocol messages, the Guard Timer is started respectively, and no other RAPS protocol messages are received before the timer times out.
[0197] When the device SW1 where the RPL owner port is located receives the NR RAPS message, it starts the WTR Timer. When the timer times out, the RPL owner port is blocked and sends NRRB RAPS messages outward.
[0198] When SW2 and SW4 receive the NRRB RAPS protocol message sent by SW1, they release the blocked ports on their own devices, stop sending NR RAPS protocol messages and complete the refresh of MAC forwarding table entries. Other devices also complete the refresh of forwarding database entries after receiving the NRRB RAPS protocol message sent by SW1.
[0199] Fig.12 The figure shows that the bypass is closed for too long, resulting in a link interruption. At this time, the ports at both ends of the faulty link are blocked, and then the RPL owner port and RPL neighbor port are unblocked and released. These two ports resume receiving and sending user traffic, thus ensuring that the traffic is not interrupted.
[0200] Fig.13 The bypass shutdown link outage fault recovery process is shown, which is the same as the normal link fault recovery process.
[0201] In one embodiment of the present invention, the ring network link bypass-based rapid healing method of the present invention further includes:
[0202] The frequency at which each node in the ERPS ring network link sends CCM detection messages is set to 200 Hz to 400 Hz.
[0203] In a specific embodiment of the present invention, the present invention sets the frequency of each node in the ERPS ring network link sending CCM detection messages to 300 Hz.
[0204] In one embodiment of the present invention, the process of link failure ring network switching control of the present invention includes:
[0205] 1) When a node detects and confirms a link failure, it starts the ERPS protection switching mechanism.
[0206] 2) The ports at both ends of the faulty link will be blocked to prevent the fault from spreading.
[0207] 3) The node will report the fault to other nodes in the ring network by sending SF (Switch Failure) R-APS message.
[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 faulty link will be redirected to other available paths to achieve bypass and rapid healing.
[0211] In one embodiment of the present invention, the process of link failure recovery and switchback control includes:
[0212] 1) Fault recovery: When the faulty link or device returns to normal, the nodes in the network will re-evaluate the network status.
[0213] 2) The node that detects the failure recovery sends an NR (No Request) R-APS message to notify other nodes that the failure 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 restored. After receiving the NR message, other nodes start the WTR Timer. When the timer times out, the RPL owner port is blocked and NRRB RAPS messages are sent out.
[0215] 4) After receiving the NRRB RAPS protocol message sent by the RPL Owner, each node on the ring releases the blocked port on its own device, stops sending NR RAPS protocol messages and completes the refresh of the MAC forwarding table. After receiving the NRRB RAPS protocol message sent by the RPLowner, other devices complete the refresh of the MAC forwarding table.
[0216] It can be seen from the above embodiments that the solution of the present invention has the following advantages:
[0217] 1. High reliability. The ring network can tolerate multiple device node failures without affecting the communication between other normal devices and can be quickly healed.
[0218] 2. Short interruption time: Bypass technology is used in ring networks to reduce delays during fault recovery. Bypass can instruct network devices to directly skip the affected link or node when a fault is detected. By bypassing the faulty part, data can bypass the faulty part before the network is restored, reducing network interruption time. In addition, the new CCM extension protocol is used to isolate faulty nodes, quickly restore the network, and reduce the interruption time introduced by the number of ring network switching times.
[0219] 3. Efficient ring network healing capability: Combining ERPS and bypass technology can optimize the ring network healing process, restore the faulty endpoint, maintain bypass before initializing the steady state, close bypass and restore network connection after stabilization, reduce network interruption recovery time, ensure that traffic bypasses the faulty area and quickly restores the connection to normal working state.
[0220] 4. Intelligent fault detection and switching: ERPS combined with bypass technology can detect faults in real time when they occur, and recover quickly through dynamic learning.
[0221] 5. Enhanced fault tolerance: Combined with bypass technology, even in complex network topologies, it can effectively isolate the fault area and prevent the fault from spreading, thereby maintaining the stable operation of other parts and providing higher fault tolerance.
[0222] 6. Simplified management and configuration: ERPS and bypass technology are integrated, and the dynamic ring formation is simplified by extending the CCM protocol processing mechanism, which simplifies the network management process.
[0223] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, 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, an embodiment of the present invention also provides a ring network link bypass-based rapid healing device, which can be used to implement the ring network link bypass-based rapid healing method described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem based on the ring network link bypass rapid healing device is similar to that based on the ring network link bypass-based rapid healing method, the embodiment of the ring network link bypass-based rapid healing device can refer to the embodiment of the ring network link bypass-based rapid healing method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0225] It should be noted that the present invention is based on a ring network link bypass fast healing device and is applied to an ERPS ring network link. The ERPS ring network link includes a first node, a second node and a third node. The second node is located between the first node and the third node. When working, each node in the ERPS ring network link periodically sends a CCM detection message to the opposite node.
[0226] In one embodiment of the present invention, the ring network link bypass fast healing device of the present invention comprises:
[0227] a bypass opening determination unit, configured to determine that the second node fails and the bypass function is turned on when the first node receives the CCM detection message sent by the third node M times within N consecutive cycles, and when the third node receives the CCM detection message sent by the first node M times within N consecutive cycles, and 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 turns on the bypass function, and the second node is bypassed, and at this time, the first node and the third node bypass the second node and periodically send CCM detection messages to each other;
[0228] A bypass closure determination unit is used to determine that the bypass function is turned on due to a fault of the second node after determining that the bypass function is turned on. When the first node receives CCM detection messages sent by the second node M times within N consecutive cycles, and when the third node receives CCM detection messages sent by the second node M times within N consecutive cycles, determine that the bypass function is turned off due to a fault 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, wherein the bypass function is turned on by default when the second node is powered on after fault recovery, the second node remains bypassed, and the bypass function is turned off when the second node completes initialization of the ring network port.
[0229] In one embodiment of the present invention, the ring network link bypass-based rapid healing device of the present invention further includes:
[0230] A link failure determination unit, configured to determine a link failure when the first node and the third node do not receive a CCM detection message sent by the second node for N consecutive cycles;
[0231] A link recovery determination unit is used to determine that the link is recovered when the first node and the third node receive the CCM detection message sent by the second node for N consecutive cycles after determining that the link failure has occurred.
[0232] In one embodiment of the present invention, the ERPS ring network link further includes a fourth node and a fifth node, the fourth node is a node where a primary port of the loop protection link is located, and the fifth node is a node where an adjacent port of the loop protection link is located.
[0233] In one embodiment of the present invention, the ring network link bypass-based rapid healing device of the present invention further includes:
[0234] A fault-free processing unit is used to block the main port of the loop protection link and the adjacent port of the loop protection link when there is no faulty node in the ERPS ring network link. At this time, the fourth node periodically sends NRRB RAPS messages in the ERPS ring network link, and the NRRB RAPS messages are used to notify other nodes that there is no faulty node in the current ERPS ring network link.
[0235] In one embodiment of the present invention, the ring network link bypass-based rapid healing device of the present invention further includes:
[0236] a link failure first processing unit, configured to, when determining a link failure, cause the first node and the third node to block the port connected to the second node, refresh their own forwarding databases and port states, 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 state according to the SF RAPS messages;
[0237] The link failure second processing unit is configured to enable the fourth node to unblock the main port of the loop protection link and refresh its own forwarding database and unblocked port status when the fourth node receives the SF RAPS message, and enable the fifth node to unblock the adjacent port of the loop protection link and refresh its own forwarding database and unblocked port status when the fifth node receives the SF RAPS message, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.
[0238] In one embodiment of the present invention, the ring network link bypass-based rapid healing device of the present invention further includes:
[0239] A link recovery first processing unit, configured to, when determining that the link is recovered, enable the first node and the third node to start a first timer, not receive other RAPS protocol messages before the first timer times out, and send an NR RAPS message to the ERPS ring network link;
[0240] a link recovery second processing unit, configured to enable the fourth node to start a second timer when the fourth node receives the NR RAPS message, and when the second timer times out, block the primary port of the loop protection link, and send an NRRB RAPS message to the ERPS ring network link;
[0241] a link recovery third processing unit, configured to block the loop protection link adjacent port when the fifth node receives the NR RAPS message;
[0242] The fourth link recovery processing unit is used to make the first node and the third node unblock the ports connected to the second node, stop sending NR RAPS messages and refresh their own forwarding databases when the first node and the third node receive the NRRB RAPS message, and refresh their own forwarding databases when other nodes in the ERPS ring network link receive the NRRB RAPS message.
[0243] In one embodiment of the present invention, the ring network link bypass-based rapid healing device of the present invention further includes:
[0244] The first bypass opening processing unit is used to enable the first node and the third node to refresh their own forwarding databases when it is determined that the bypass function is turned on due to a failure of the second node, and to send a StateRAPS message 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 one embodiment of the present invention, the ring network link bypass-based rapid healing device of the present invention further includes:
[0246] The second bypass opening processing unit is used for, when it is determined that the second node fails and the bypass function is opened, the first node and the third node block the port connected to the second node, at which 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 one embodiment of the present invention, the ring network link bypass-based rapid healing device of the present invention further includes:
[0248] The bypass shutdown first processing unit is used to enable the first node and the third node to start a first timer when it is determined that the bypass function is closed due to the fault recovery of the second node, and not to receive other RAPS protocol messages before the first timer times out, and to send an NR RAPS message to the ERPS ring network link at the same time;
[0249] The bypass closes the second processing unit, configured to enable the fourth node to start a second timer when the fourth node receives the NR RAPS message, and when the second timer times out, block the main port of the ring protection link, and send an NRRB RAPS message to the ERPS ring network link;
[0250] a bypass closing third processing unit, configured to block the ring protection link adjacent port when the fifth node receives the NR RAPS message;
[0251] The fourth processing unit is bypassed and closed, and is used to make the first node and the third node unblock the ports connected to the second node, stop sending NR RAPS messages and refresh their own forwarding databases when the first node and the third node receive the NRRB RAPS message. When other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding databases.
[0252] In one embodiment of the present invention, the ring network link bypass-based rapid healing device of the present invention further includes:
[0253] The message sending frequency setting unit is used to set the frequency of each node in the ERPS ring network link sending the CCM detection message to 200 Hz to 400 Hz.
[0254] In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. Fig.15 As shown, the computer device includes a memory, a processor, a communication interface and a communication bus. A computer program that can be executed on the processor is stored in the memory. When the processor executes the computer program, the steps in the above-mentioned embodiment method are implemented.
[0255] The processor may be a central processing unit (CPU). The processor may 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 gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0256] The memory, as a non-transitory computer-readable storage medium, 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 method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiments.
[0257] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via 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.
[0258] The one or more units are stored in the memory, and when executed by the processor, the method in the above embodiment is performed.
[0259] The specific details of the above-mentioned computer device can be understood by referring to the corresponding related descriptions and effects in the above-mentioned embodiments, and will not be repeated here.
[0260] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is also provided, wherein the computer-readable storage medium stores a computer program, and the computer program implements the steps in the above-mentioned method for rapid healing of the ring network link BYPASS when executed in a computer processor. Those skilled in the art can understand that the implementation of all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program can include the processes of the embodiments of the above-mentioned methods when executed. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0261] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer program product is also provided, including a computer program / instruction, which implements the steps of the above-mentioned ring network link BYPASS-based rapid healing method when executed by a processor.
[0262] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0263] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A ring network link bypass rapid healing method, characterized in that: Applied to an ERPS ring network link, the ERPS ring network link 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 a CCM detection message to the opposite node during operation, and the method includes: When the first node receives the CCM detection message sent by the third node M times within N consecutive cycles, and when the third node receives the CCM detection message sent by the first node M times within N consecutive cycles, it is determined that the second node fails and the bypass function is turned on. 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 turns on the bypass function, and the second node 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 is turned on due to the failure of the second node, when the first node receives CCM detection messages sent by the second node M times within N consecutive cycles, and when the third node receives CCM detection messages sent by the second node M times within N consecutive cycles, it is determined that the bypass function is turned off due to the failure 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, wherein the bypass function is turned on by default when the second node is powered on after failure recovery, the second node remains bypassed, and the bypass function is turned off when the second node completes initialization of the ring network port.
2. The ring network link bypass rapid healing method according to claim 1 is characterized in that: Also includes: When the first node and the third node do not receive the CCM detection message sent by the second node for N consecutive cycles, determine that the link fails; After determining that the link failure is present, when the first node and the third node receive CCM detection messages sent by the second node for N consecutive cycles, it is determined that the link is restored.
3. The method for rapid healing based on ring network link bypass according to claim 2 is characterized in that: The ERPS ring network link further includes a fourth node and a fifth node, the fourth node is a node where a primary port of the ring protection link is located, and the fifth node is a node where an adjacent port of the ring protection link is located; The method further comprises: When there is no faulty node in the ERPS ring network link, the main port of the loop protection link and the adjacent port of the loop protection link are blocked. At this time, the fourth node periodically sends NRRB RAPS messages in the ERPS ring network link, and 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 method for rapid healing based on ring network link bypass according to claim 3 is characterized in that: Also includes: When a link failure is determined, the first node and the third node block the port connected to the second node, refresh their own forwarding databases and port states, 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 state 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 own 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 own forwarding database and unblocked port status, thereby ensuring that the traffic in the ERPS ring network link is not interrupted.
5. The method for rapid healing based on ring network link bypass according to claim 4 is characterized in that: Also includes: When it is determined that the link is restored, the first node and the third node start a first timer, do not receive other RAPS protocol messages before the first timer times out, and send an NR RAPS message to the ERPS ring network link; When the fourth node receives the NR RAPS message, the fourth node starts a second timer, and when the second timer times out, blocks the primary port of the ring protection link, and sends an NRRBRAPS message to the ERPS ring network link; When the fifth node receives the NR RAPS message, blocking the ring protection link adjacent port; When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the ports connected to the second node, stop sending NR RAPS messages and refresh their own forwarding databases, and when other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding databases.
6. The method for rapid healing based on ring network link bypass according to claim 3 is characterized in that: Also includes: When it is determined that the bypass function is turned on due to the failure of the second node, the first node and the third node refresh their own 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 own forwarding database according to the State RAPS and performs node refresh respectively.
7. The ring network link bypass rapid healing method according to claim 3, characterized in that: Also includes: When it is determined that the bypass function is turned on due to the failure of the second node, the first node and the third node block the port 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 ring network link bypass rapid healing method according to claim 7, characterized in that: Also includes: When it is determined that the bypass function is closed due to the fault recovery of the second node, the first node and the third node start a first timer, do not receive other RAPS protocol messages before the first timer times out, and send an NR RAPS message to the ERPS ring network link; When the fourth node receives the NR RAPS message, the fourth node starts a second timer, and when the second timer times out, blocks the primary port of the ring protection link, and sends an NRRB RAPS message to the ERPS ring network link; When the fifth node receives the NR RAPS message, blocking the ring protection link adjacent port; When the first node and the third node receive the NRRB RAPS message, the first node and the third node unblock the ports connected to the second node, stop sending NR RAPS messages and refresh their own forwarding databases, and when other nodes in the ERPS ring network link receive the NRRB RAPS message, they refresh their own forwarding databases.
9. The method for rapid healing 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 link sends CCM detection messages is set to 200 Hz to 400 Hz.
10. The ring network link bypass rapid healing method according to claim 1, characterized in that: Each node in the ERPS ring network link is configured to turn on the bypass function when power is off, turn on the bypass function by default when power is on, turn on the bypass function when hardware failure and power failure occur, turn on the bypass function when software deadlocks, and turn off the bypass function when the network port is initialized.
11. A ring network link bypass rapid healing device, characterized in that: Applied to an ERPS ring network link, the ERPS ring network link 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 a CCM detection message to the opposite node during operation. The device includes: a bypass opening determination unit, configured to determine that the second node fails and the bypass function is turned on when the first node receives the CCM detection message sent by the third node M times within N consecutive cycles, and when the third node receives the CCM detection message sent by the first node M times within N consecutive cycles, and 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 turns on the bypass function, and the second node is bypassed, and at this time, the first node and the third node bypass the second node and periodically send CCM detection messages to each other; A bypass closure determination unit is used to determine that the bypass function is turned on due to a fault of the second node after determining that the bypass function is turned on. When the first node receives CCM detection messages sent by the second node M times within N consecutive cycles, and when the third node receives CCM detection messages sent by the second node M times within N consecutive cycles, determine that the bypass function is turned off due to a fault 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, wherein the bypass function is turned on by default when the second node is powered on after fault recovery, the second node remains bypassed, and the bypass function is turned off when the second node completes initialization of the ring network port.
12. The ring network link bypass rapid healing device according to claim 11, characterized in that: Also includes: A link failure determination unit, configured to determine a link failure when 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 recovery determination unit is used to determine that the link is recovered when the first node and the third node receive the CCM detection message sent by the second node for N consecutive cycles after determining that the link failure has occurred.
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, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Ethernet protection switching method
CN104065546A
Method and device of network protection
US20090310481A1
Method and system for ring protection switching
US20120224471A1
G.8032 with optical bypass
US20230283934A1