Link protection switching implementation method and system

By backing up the processing results of G8032 signals and protocol messages in the ring network of the stacking system and switching the RPL link state in the event of a failure, the problem of message loops occupying bandwidth in the ring network is solved, ensuring network reliability and stability.

CN115664890BActive Publication Date: 2025-09-23SUZHOU CENTEC COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211313258.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-25
Publication Date
2025-09-23
Estimated Expiration
2042-10-25

AI Technical Summary

Technical Problem

In a ring network based on a stacking system, the lack of effective management measures leads to message loops that occupy a large amount of bandwidth, forming network storms and affecting network reliability.

Method used

When the main board senses a common link failure, it backs up the processing results of the G8032 signal and protocol message to the standby board and notifies the RPL link to switch to the on state, thereby implementing link protection switching, suppressing loops, and ensuring the normal operation of the network environment.

Benefits of technology

It realizes fast protection switching in the ring network, suppresses loops, and ensures the reliability and normal operation of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115664890B_ABST
    Figure CN115664890B_ABST
Patent Text Reader

Abstract

The present application provides a link protection switching implementation method and system. In a ring network composed of multiple stacking systems, the connection links between the multiple stacking systems include RPL links and ordinary links. The default state of the RPL link is a blocking state. Each stacking system includes a connected main board and a backup board. When the main board in the stacking system of the ordinary link senses that the ordinary link has failed, it will back up the processing results of the G8032 signal and protocol message to the backup board of the same stacking system. In addition, the main board will notify the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to the on state, thereby realizing link protection switching. This solution can suppress loops through the RPL link on the one hand to ensure the normal network environment. On the other hand, it can quickly perform protection switching when an abnormality occurs in the link to ensure the reliability of the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication networks, and in particular to a method and system for implementing link protection switching. Background Art

[0002] Stacking involves connecting multiple switches that support stacking via stacking links, logically creating a single switch device that forwards data as a whole. Switches in a stack system can have roles as master, backup, or slave. Device roles are determined through stacking protocol negotiation.

[0003] A stack system appears as a single virtual switching device. If a single device fails, only certain ports are affected, without affecting the overall stack system, ensuring system reliability. When multiple devices form a stack, the service ports of all member switches become service ports of the stack system and participate in forwarding, expanding the number of ports. Configuring ports on multiple member devices as aggregate ports (link aggregation across multiple devices) increases bandwidth while providing link redundancy. Because the stack system appears as a single virtual device, individual network configuration is unnecessary for each member device, simplifying networking.

[0004] In a ring network based on a stacking system, since the stacking system forms a ring link and lacks effective management measures, the messages entering the network continuously circulate in the link, resulting in a large amount of bandwidth consumption and the possibility of network storms. Summary of the Invention

[0005] The objectives of the present invention include, for example, providing a method and system for implementing link protection switching, which can ensure the normality of the network environment and guarantee the reliability of the network through protection switching.

[0006] The embodiments of the present invention can be implemented as follows:

[0007] In a first aspect, the present invention provides a link protection switching implementation method, which is applied to a ring network composed of multiple stacking systems, wherein the multiple stacking systems are interconnected to form a ring, the connection links between the multiple stacking systems include RPL links and ordinary links, the default state of the RPL links is a blocking state, and each of the stacking systems includes a connected main board and a standby board. The method includes:

[0008] For each of the main boards in the stacking system belonging to the common link, when the main board senses that the common link to which it belongs has a fault, the processing result of the G8032 signal and the protocol message is backed up to a standby board in the same stacking system;

[0009] The mainboard notifies the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs switches the RPL link to a conducting state, thereby realizing link protection switching.

[0010] In an optional embodiment, the method further comprises:

[0011] For each of the stacking systems, when a standby board in the stacking system fails and is disconnected from the main board, the main board obtains the standby board ID information of the standby board;

[0012] When the main board confirms that the G8032 ring port of the stacking system belongs to the standby board based on the standby board ID information, link protection switching is triggered.

[0013] In an optional embodiment, the method further comprises:

[0014] For each of the stacking systems, when the standby board senses that the main board has a fault, the standby board starts processing the G8032 signal and protocol message;

[0015] The standby board performs processing of the G8032 protocol message based on the status information in the backed-up processing result.

[0016] In an optional embodiment, the standby board performs the step of processing the G8032 protocol message based on the status information in the backed-up processing result, including:

[0017] If the status information in the backup processing result of the standby board indicates that the stack system has operated FS and the current G8032 signal is in FS state, send an FS protocol message to other stack systems in the ring network to switch the other stack systems to FS state to achieve state unification;

[0018] If the status information in the backup processing result of the standby board indicates that the stacking system has received FS protocol messages sent by other stacking systems in the ring network and switched to the FS state, the current state remains unchanged.

[0019] In an optional embodiment, the standby board performs the step of processing the G8032 protocol message based on the status information in the backed-up processing result, including:

[0020] If the status information in the processing result of the backup board indicates that the stack system has operated MS and the current G8032 signal is in MS state, check whether there is a port fault. If so, trigger signal fault processing; if not, send MS protocol messages to other stack systems in the ring network to switch other stack systems to MS state to achieve state unification;

[0021] If the status information in the processing result of the backup board indicates that the stacking system to which it belongs has received the MS protocol message sent by other stacking systems in the ring network and switched to the MS state, then check whether there is a port fault at present. If so, trigger signal fault processing; if not, keep the current state unchanged.

[0022] In an optional embodiment, the standby board performs the step of processing the G8032 protocol message based on the status information in the backed-up processing result, including:

[0023] If the status information in the processing result of the backup board indicates that a port failure exists in the stacking system and the current G8032 signal is in the SF state, an SF protocol message is sent to other stacking systems in the ring network;

[0024] If the status information in the processing result of the backup board indicates that the stacking system to which it belongs has received SF protocol messages sent by other stacking systems in the ring network and switched to SF state, then check whether there is a fault on the current port. If so, trigger signal fault processing; if not, keep the current state unchanged.

[0025] In an optional embodiment, the standby board performs the step of processing the G8032 protocol message based on the status information in the backed-up processing result, including:

[0026] The status information in the processing result of the backup board indicates that the current ring network is in a steady state. Check whether there is a fault on the current port. If so, trigger signal fault processing. If not, set a timer for the master control node and send an NRRB message to the outside. The steady state is that the RPL link is in a blocked state and the normal links are in a conducting state.

[0027] The status information in the processing result of the backup board indicates that the current ring network is in a transition state. Check whether there is a port fault at present. If so, trigger signal fault processing. If not, set a timer for the main control node and send an NR message to the outside. The transition state is the state in the process of switching from the FS state, MS state or SF state to the steady state.

[0028] In an optional embodiment, the method further comprises:

[0029] When the FS or MS operation is entered, the mainboard processes the G8032 and protocol messages and sets a timer;

[0030] The mainboard sends the processing result to the backup in the same stacking system, and the processing result carries reply identification information;

[0031] After receiving the reply message sent by the standby board based on the information update of the processing result and the reply identification information, the main board sends the corresponding FS protocol message or MS protocol message outward, and cancels the timer if it still exists.

[0032] In an optional embodiment, the method further comprises:

[0033] When the main board of the common link senses that the common link has returned to normal, the processing result of the G8032 signal and the protocol message is backed up to the standby board in the same stacking system;

[0034] The mainboard notifies the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs switches the RPL link to a blocking state.

[0035] In an optional embodiment, the main board includes a main board G8032 module, a main board hardware service layer, and a main board chip control layer, and the standby board includes a standby board G8032 module, a standby board hardware service layer, and a standby board chip control layer;

[0036] The step of backing up the processing results of the G8032 signal and the protocol message to a standby board in the same stacking system includes:

[0037] The mainboard G8032 module processes the G8032 signals and protocol messages, backs up the processing results to the standby board G8032 module, and notifies the mainboard hardware service layer of the processing results;

[0038] The mainboard hardware service layer stores the processing result and notifies the mainboard chip control layer and the standby board control chip layer to perform relevant configuration based on the processing result.

[0039] In a second aspect, the present invention provides a link protection switching implementation system, the system comprising a ring network consisting of multiple stacking systems, the multiple stacking systems being interconnected to form a ring, the connection links between the multiple stacking systems comprising RPL links and ordinary links, the default state of the RPL links being a blocked state, and each of the stacking systems comprising a connected main board and a standby board;

[0040] For each of the main boards in the stacking system belonging to the common link, the main board is configured to back up the processing results of the G8032 signal and the protocol message to a standby board in the same stacking system when sensing that a fault has occurred in the common link to which it belongs;

[0041] The main board is used to notify the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs switches the RPL link to a conducting state, thereby realizing link protection switching.

[0042] The beneficial effects of the embodiments of the present invention include, for example:

[0043] The present application provides a link protection switching implementation method and system. In a ring network composed of multiple stacking systems, the connection links between the multiple stacking systems include RPL links and ordinary links. The default state of the RPL link is a blocking state. Each stacking system includes a connected main board and a backup board. When the main board in the stacking system of the ordinary link senses that the ordinary link has failed, it will back up the processing results of the G8032 signal and protocol message to the backup board of the same stacking system. In addition, the main board will notify the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to the on state, thereby realizing link protection switching. This solution can suppress loops through the RPL link on the one hand to ensure the normal network environment. On the other hand, it can quickly perform protection switching when an abnormality occurs in the link to ensure the reliability of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0045] Figure 1 A schematic diagram of the topology of a ring network provided in an embodiment of the present application;

[0046] Figure 2 A flowchart of a link protection switching implementation method provided in an embodiment of the present application;

[0047] Figure 3 A structural block diagram of the stacking system provided in an embodiment of the present application;

[0048] Figure 4 for Figure 2 Flowchart of the sub-steps included in step S101;

[0049] Figure 5 A flowchart of a recovery method in the link protection switching implementation method provided in an embodiment of the present application;

[0050] Figure 6 A flowchart of a method for handling a standby board failure in a link protection switching implementation method provided in an embodiment of the present application;

[0051] Figure 7 A flowchart of a method for handling a mainboard failure in a link protection switching implementation method provided in an embodiment of the present application;

[0052] Figure 8 A flowchart of a method for ensuring unified master and backup status when a mainboard fails, provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of 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. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.

[0054] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort shall fall within the scope of protection of the present invention.

[0055] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.

[0056] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.

[0057] See also Figure 1 , is a topological architecture diagram of a ring network provided in an embodiment of the present application, wherein the ring network includes multiple stacking systems, Figure 1 Schematically illustrating four stacking systems, including stacking system A (including A1 and A2), stacking system B (including B1 and B2), stacking system C (including C1 and C2) and stacking system D (including D1 and D2).

[0058] Among them, multiple stacking systems are interconnected to form a ring. In the multiple stacking systems, the connection links between each other include RPL (Ring Protection Link) links and ordinary links. Figure 1 In the example, the link between stack system A and stack system B is an RPL link, and the links between other stack systems are common links.

[0059] The RPL link is blocked by default to prevent the ring network from forming a connected ring and causing a network storm.

[0060] Each stacking system includes a connected master board and a standby board. For example, in stacking system A, A1 may be the master board (MASTER) and A2 may be the standby board (STANDY).

[0061] In the ring link, schematically, stacking system A may serve as a master (RPL owner) node, and stacking system B may serve as a neighbor (RPL neighbor) node.

[0062] See also Figure 2 , is a flow chart of the link protection switching implementation method provided by the embodiment of the present application. The method steps defined in the process related to the link protection switching implementation method are applied to the above-mentioned ring network and can be implemented by the stacking system in the ring network. Figure 2 The specific process shown is explained in detail.

[0063] S101, for each mainboard in the stacking system belonging to a common link, when the mainboard senses that the common link to which it belongs has a fault, backs up the processing result of the G8032 signal and the protocol message to a standby board in the same stacking system.

[0064] S102: The mainboard notifies the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs switches the RPL link to a conducting state, thereby implementing link protection switching.

[0065] In this embodiment, in a steady-state scenario, the RPL link in the ring network is in a blocked state, such as Figure 1 As shown, port 1 of stack system A and port 2 of stack system B are blocked, and there is no connected loop in the network.

[0066] In a steady-state scenario, the main board in each stack system calculates and processes G8032 signals and protocol packets, while the backup board is only used for information backup.

[0067] G8032, or Ethernet Multi-Ring Protection Technology, is a Layer 2 loop prevention protocol standard defined by the ITU-T (ITU-T G.8032 / Y1344). It defines the RAPS (Ring Auto Protection Switching) protocol messages and protection switching mechanism.

[0068] For details, please refer to Figure 3 In each stacking system, the main board includes the main board G8032 module, the main board hardware service layer and the main board chip control layer, and the standby board includes the standby board G8032 module, the standby board hardware service layer and the standby board chip control layer.

[0069] See also Figure 4 , while the main board processes G8032 signals and protocol messages and backs them up to the standby board, this can be achieved through the following methods:

[0070] S1011, the mainboard G8032 module processes the G8032 signals and protocol messages, backs up the processing results to the standby board G8032 module, and notifies the mainboard hardware service layer of the processing results.

[0071] S1012, the mainboard hardware service layer stores the processing result, and notifies the mainboard chip control layer and the standby board control chip layer to perform relevant configurations based on the processing result.

[0072] In this embodiment, each mainboard, for example Figure 1 A1, B1, C1, or D1 in the system can run the corresponding G8032 module on the mainboard to process G8032 signals and protocol messages. The mainboard will first back up the processing results to the G8032 module on the backup board (such as A2, B2, C2, or D2).

[0073] The processing results may include information such as port status and whether the FDB table was cleared. The mainboard G8032 module can notify the mainboard hardware service layer of the specific processing results. In addition, after obtaining the backup processing results, the backup board G8032 can also notify the backup board hardware service layer of the processing results.

[0074] After receiving the processing results, the motherboard hardware service layer stores them and notifies the motherboard chip control layer and the standby chip control layer to perform relevant configurations. For example, based on the processing results, such as port status and whether to clear the FDB table, actions such as blocking the corresponding port or clearing the FDB table can be taken.

[0075] It can be seen that in the steady state, each main board in the stack system will process G8032 signals and protocol messages, and the standby board only backs up information.

[0076] When a link failure occurs in the ring link, protection switching will be triggered. Here, it mainly refers to the failure of a common link in the ring link.

[0077] In a ring link, the stacking systems that are part of the normal link include stacking system A, stacking system B, stacking system C, and stacking system D. The link between stacking system B and stacking system C is a normal link, the link between stacking system C and stacking system D is a normal link, and the link between stacking system D and stacking system A is also a normal link.

[0078] Therefore, the mainboards in each stacking system can detect whether a link failure has occurred on their associated normal links. Specifically, the mainboard G8032 module can detect link failures on their associated normal links. If a normal link fails, the mainboard backs up the results of processing the protocol messages of the G8032 signal to a standby board in the same stacking system. Furthermore, the mainboard G8032 module notifies the hardware service layer of the processing results, which then execute port switching, clear the FDB table, and other operations based on the port status and FDB table information contained in the processing results.

[0079] The hardware service layer will notify the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs will switch the RPL link to the conductive state. In this way, protection switching can be performed to ensure network reliability in the event of link abnormalities.

[0080] In addition, in this embodiment, when the link fault disappears, a switchback is required to reconnect the restored link. Figure 5 The link protection switching implementation method provided in this embodiment may further include the following steps:

[0081] S103 : When the main board of the common link senses that the common link has returned to normal, the processing result of the G8032 signal and the protocol message is backed up to a standby board in the same stacking system.

[0082] S104: The mainboard notifies the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs switches the RPL link to a blocking state.

[0083] Similarly, in a steady state, the mainboard of each stack system processes G8032 signals and protocol messages and backs them up to the standby board in the stack system.

[0084] In the mainboard, when the G8032 module senses that the normal link that originally failed has returned to normal, it will reuse the normal link. Before that, it needs to notify the stacking system of the RPL link to block the conduction of the ports at both ends of the RPL link, thereby ensuring that the ring network does not form a conductive ring.

[0085] During the application process, each stack system may experience a standby board failure and go offline. In this case, if the standby board has a ring port, it may cause a link failure. Therefore, protection switching is required to ensure network reliability. Figure 6 The link protection switching implementation method provided in this embodiment further includes the following steps:

[0086] S201 : For each stacking system, when a standby board in the stacking system fails and is disconnected from the main board, the main board obtains standby board ID information of the standby board.

[0087] S202 : When the main board confirms, based on the standby board ID information, that the G8032 ring port of the stacking system belongs to the standby board, triggering link protection switching.

[0088] In this embodiment, if a standby board fails and goes offline in each stacking system, the connection with the main board will be disconnected. When the main board senses that the standby board is disconnected from it, it will obtain the standby board ID information of the disconnected standby board.

[0089] For each stack system, the G8032 ring port of the stack system can be Figure 1 As shown in FIG, port 8 is on the main board A1 and port 1 is on the backup board A2. Alternatively, both G8032 ring ports may be on the main board A1.

[0090] If both G8032 ring ports are on master A1, then a failure on standby A2 will not affect link connectivity. However, if the G8032 ring port is on standby A2, then a failure on standby A2 will affect link connectivity. Therefore, in this embodiment, the standby board ID information can be used to determine whether the stack system's G8032 ring port is on the standby board. If so, a link protection switch must be initiated to ensure normal operation of the ring network.

[0091] In this embodiment, by confirming whether the G8032 ring port is on the standby board, it is determined whether to trigger link protection switching when the standby board is offline, thereby improving protection switching performance.

[0092] In addition, during operation, each stack system may experience a motherboard failure. In this case, in order to ensure a normal network environment, a backup board is required to take over the management function of the motherboard. Figure 7 The link protection switching implementation method provided in this embodiment may further include the following steps:

[0093] S301 , for each stacking system, when the standby board senses that the main board has a fault, the standby board starts processing G8032 signals and protocol messages.

[0094] S302: The standby board processes the G8032 protocol message based on the status information in the backed-up processing result.

[0095] In this embodiment, in steady state, the main board processes G8032 signals and protocol messages, while the standby board serves only as an information backup. If the standby board senses a main board failure and goes offline, it will switch roles and enable processing functions that were not originally executed on the standby board.

[0096] In this case, the standby board will start processing the G8032 signal and protocol message. The processing results backed up on the standby board include the processing results previously backed up from the main board and the processing results obtained by executing the processing function.

[0097] After the master and backup boards are switched, the G8032 protocol must still function properly to maintain a normal network environment. Therefore, the backup board processes G8032 protocol messages based on the status information in the backup processing results.

[0098] In this embodiment, when the master and standby boards perform role switching, the stacking system may be in various states. In different states, the G8032 protocol message processing methods executed are also different.

[0099] In one possible implementation, the processing of the G8032 protocol message based on the status information in step S302 may be implemented as follows:

[0100] If the status information in the processing result of the backup board indicates that the stacking system has operated FS and the current G8032 signal is in FS state, an FS protocol message is sent to other stacking systems in the ring network to switch other stacking systems to FS state to achieve state unification.

[0101] If the status information in the backup processing result of the standby board indicates that the stacking system has received FS protocol messages sent by other stacking systems in the ring network and switched to the FS state, the current state remains unchanged.

[0102] In this embodiment, the current state is Local-FS, meaning that the stacking system has been in FS (Force Switch) mode and the G8032 signal is currently in FS mode. In this case, FS protocol messages can be sent. At this point, regardless of the states of devices in other stacking systems in the ring network, switching will ultimately be based on the Local-FS state of this stacking system. Ultimately, the states of the stacking systems in the entire ring network are unified, resulting in a switch to FS mode.

[0103] In this embodiment, if the current state is Raps-FS, that is, the stacking system has received FS protocol packets from another stacking system and switched to FS state, the current state can be maintained. This is because other devices in the ring network are undoubtedly sending FS protocol packets, and the states of the devices in the ring network are unified.

[0104] In this scenario, even if synchronization messages are lost, according to the protocol state machine, in the Raps-FS state, the stack system will only be updated to the pending state when an NR message is received. In a ring network, NR messages are sent multiple times. Therefore, even if a synchronization message is lost, the system can still be updated to the pending state, thus achieving state uniformity within the ring network.

[0105] In another possible implementation, the processing of the G8032 protocol message based on the status information in step S302 may be implemented as follows:

[0106] If the status information in the processing result of the backup board indicates that the stack system has operated MS and the current G8032 signal is in MS state, check whether there is a port fault. If so, trigger signal fault processing; if not, send MS protocol messages to other stack systems in the ring network to switch other stack systems to MS state to achieve state unification;

[0107] If the status information in the processing result of the backup board indicates that the stacking system to which it belongs has received the MS protocol message sent by other stacking systems in the ring network and switched to the MS state, then check whether there is a port fault at present. If so, trigger signal fault processing; if not, keep the current state unchanged.

[0108] In this embodiment, the current state is Local-MS, meaning that the stacking system has undergone manual switching (MS) and the G8032 signal is currently in MS state. In this case, it is possible to check whether any ports are currently faulty. As can be seen above, ports in each stacking system may be located on both the main board and the backup board, or only on the main board, or only on the backup board. Therefore, if the main board fails and goes offline, some or no ports may be in a faulty state. Therefore, if a port is in a faulty state, signal failure (SF) processing can be triggered, meaning link protection switching can be executed. If no port is in a faulty state, MS protocol messages can be sent.

[0109] If synchronization messages are lost, the stack sends protocol packets based on the Local-MS state. If there are no higher-priority signals, such as FS or SF, other devices in the ring network will be synchronized based on the stack's state. Otherwise, the highest-priority signal will be used for synchronization.

[0110] Furthermore, if the current state is Raps-MS, that is, the stack system has received MS protocol packets from another stack system and switched to MS state, then the system will first check whether any ports are in a faulty state. If so, SF processing is triggered. If no ports are in a faulty state, the current state remains unchanged.

[0111] In this case, without losing synchronization messages, there must be other devices in the ring network sending MS messages, which can achieve a unified state for the entire environment.

[0112] Considering the case of synchronization message loss, if the synchronization message is lost due to a state switch triggered by a higher-priority signal, a device in the environment will continue to send protocol messages containing higher priorities, and the state will eventually be unified. If the synchronization message is lost due to a switch triggered by an NR message, the NR message will be sent multiple times, so the entire environment will eventually be unified.

[0113] Furthermore, in another possible implementation, the processing of the G8032 protocol message based on the status information in step S302 may be implemented in the following manner:

[0114] If the status information in the processing result of the backup of the standby board indicates that a port failure occurs in the stacking system and the current G8032 signal is in the SF state, an SF protocol message is sent to other stacking systems in the ring network.

[0115] If the status information in the processing result of the backup board indicates that the stacking system to which it belongs has received SF protocol messages sent by other stacking systems in the ring network and switched to SF state, then check whether there is a fault on the current port. If so, trigger signal fault processing; if not, keep the current state unchanged.

[0116] In this embodiment, the current state is Local-SF, meaning a port fault has occurred in the stack system and the G8032 signal is currently in SF. In this situation, SF protocol packets can be sent based on the Local-SF state. If there are no higher-priority signals in the environment, the devices in the environment will be unified based on the state of the stack system. If there are higher-priority signals in the environment, the state will be unified based on that higher-priority signal.

[0117] If the stack is currently in the Raps-SF state, meaning it has received SF protocol packets from another stack and switched to the SF state, the system will first check whether any ports are faulty. If so, signal fault SF processing will be triggered. If not, the system will maintain the current state.

[0118] In this scenario, if synchronization message loss occurs due to a state switch triggered by a higher-priority signal, a device in the environment will continue to send protocol messages containing the higher-priority signal, ultimately achieving a unified state. If synchronization message loss occurs due to a switch triggered by receiving an NR message, the NR message will be sent multiple times, ultimately achieving a unified state across the entire environment.

[0119] In this embodiment, in addition to the above-mentioned situations, the system may also be in a pending (transition) state, an idel (stable) state, and the like.

[0120] Therefore, the processing of the G8032 protocol message based on the status information in step S302 can be implemented in the following manner:

[0121] The status information in the processing result of the backup board indicates that the current ring network is in a steady state. Check whether there is a port fault. If so, trigger signal fault processing. If not, set a timer for the master control node (RPLowner node) and send an NRRB message to the outside. The steady state is that the RPL link is in a blocked state and the ordinary links are in a conducting state.

[0122] In the idle state, if a state switch triggered by a higher-priority signal causes synchronization messages to be lost, a device in the environment will continue to send protocol messages containing higher-priority signals, ultimately leading to a unified state. If there are no higher-priority signals in the environment and this node is the master, the state of the entire environment will eventually be unified due to its continued transmission of NRRB messages.

[0123] In addition, the processing of the G8032 protocol message based on the status information in step S302 can be implemented in the following manner:

[0124] The status information in the processing result of the backup board indicates that the current ring network is in a transition state. Check whether there is a port fault at present. If so, trigger signal fault processing. If not, set a timer for the main control node and send an NR message to the outside. The transition state is the state in the process of switching from the FS state, MS state or SF state to the steady state.

[0125] In the pending state, if a state transition triggered by a higher-priority signal causes synchronization messages to be lost, a device in the environment will continue to send protocol packets containing higher-priority signals, ultimately leading to a unified state. If no higher-priority signals exist, the stack system continues to send NR packets, eventually returning the entire environment to the pending state.

[0126] In this embodiment, by executing different G8032 message processing in different states, it is ensured that the G8032 protocol can run normally and the network environment is normal.

[0127] In the prior art, if FS or MS is performed on the master, the G8032 status information between the master and standby boards has not yet been backed up and updated for this action, but protocol messages have already been sent out, causing other devices in the ring network to switch. At this time, if the master and standby boards switch, the standby board activates the G8032 signal processing function and activates the G8032 module function based on the backup information. However, because the information after the FS or MS switch has not been backed up and updated, the G8032 status recognized by the standby board will be inconsistent with that of other devices in the ring network, which will lead to inconsistent status in subsequent environments and affect the G8032 function.

[0128] Based on the above considerations, please refer to Figure 8 The link protection switching implementation method provided in this embodiment may further include the following steps:

[0129] S401, when the FS or MS operation is entered, the mainboard processes the G8032 and protocol messages and sets a timer.

[0130] S402: The mainboard sends the processing result to the backup in the same stacking system, where the processing result carries reply identification information.

[0131] S403, after receiving the reply message sent by the standby board based on the information update of the processing result and the reply identification information, the main board sends the corresponding FS protocol message or MS protocol message outward, and cancels the timer if it still exists.

[0132] In this embodiment, when the FS or MS operation is entered in the stack system, the mainboard immediately processes the G8032 signal and protocol message. If the corresponding protocol message needs to be sent out, a timer can be set to limit the outbound transmission of the protocol message.

[0133] The main board backs up the processing result to the standby board, and carries the FS and MS action identifiers in the processing result. The identifiers are used to inform the standby board to reply to the message.

[0134] After receiving the processing results, the standby board backs up and updates them. Based on the reply identifier carried in the results, the standby board determines that a reply message needs to be sent to the main board. Therefore, after backing up and updating the processing results, the standby board sends a reply message back to the main board. Upon receiving the reply message, the main board sends the protocol message. At this point, if the set timer still exists, it can be canceled. If the set timer no longer exists, no further processing is required.

[0135] In this embodiment, the above method can ensure that for FS or MS actions, no protocol message will be sent to affect the status of other devices before the status of the main board and the backup board are unified, thereby avoiding the problem of inconsistent status in the environment after the backup board switches to the main board.

[0136] The link protection switching implementation solution provided in this embodiment can, on the one hand, realize loop destruction and protection switching in a ring network composed of a stacking environment to ensure network reliability. On the other hand, based on the information backup of the stacking system, it can also support the operation of g8032 in the active-standby switching scenario.

[0137] Furthermore, an embodiment of the present application also provides a link protection switching implementation system, which is applied to a ring network composed of multiple stacking systems, where the multiple stacking systems are interconnected to form a ring shape, and the connection links between the multiple stacking systems include RPL links and ordinary links. The default state of the RPL link is a blocking state, and each of the stacking systems includes a connected main board and a backup board.

[0138] For each of the main boards in the stacking system belonging to a common link, the main board is configured to back up the processing results of the G8032 signal and the protocol message to a standby board in the same stacking system when sensing that a fault occurs in the common link to which the main board belongs.

[0139] The main board is used to notify the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs switches the RPL link to a conducting state, thereby realizing link protection switching.

[0140] The link protection switching implementation system provided in this embodiment can suppress loops and ensure a normal network environment in actual applications. On the other hand, it can quickly perform protection switching when a link anomaly occurs to ensure network reliability.

[0141] The link protection switching implementation system provided in this embodiment can be used to implement the link protection switching implementation method under any of the above implementation modes. For details not provided in this embodiment, please refer to the relevant descriptions in the above embodiments, and this embodiment will not be repeated here.

[0142] In summary, the link protection switching implementation method and system provided by the embodiment of the present application are such that, in a ring network composed of multiple stacking systems, the connection links between the multiple stacking systems include RPL links and ordinary links, the default state of the RPL link is a blocked state, and each stacking system includes a connected main board and a backup board. When the main board in the stacking system of the ordinary link senses that the ordinary link has failed, it will back up the processing results of the G8032 signal and protocol message to the backup board of the same stacking system. In addition, the main board will notify the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to the on state, thereby realizing link protection switching. This solution can suppress loops through the RPL link on the one hand to ensure the normal network environment, and on the other hand, it can quickly perform protection switching when an abnormality occurs in the link to ensure the reliability of the network.

[0143] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A link protection switching implementation method, characterized in that: Applied to a ring network consisting of multiple stacking systems, the multiple stacking systems are interconnected to form a ring shape, the connection links between the multiple stacking systems include RPL links and ordinary links, the default state of the RPL links is a blocked state, each of the stacking systems includes a connected main board and a standby board, the method comprising: For each of the main boards in the stacking system belonging to the common link, when the main board senses that the common link to which it belongs has a fault, the processing result of the G8032 signal and the protocol message is backed up to a standby board in the same stacking system; The mainboard notifies the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs switches the RPL link to a conducting state to implement link protection switching; When the FS or MS operation is entered, the main board processes the G8032 and protocol messages and sets a timer. The main board sends the processing result to the backup board in the same stacking system. The processing result carries reply identification information. After the main board receives the reply message sent by the backup board based on the information update performed based on the processing result and the reply identification information, the main board sends the corresponding FS protocol message or MS protocol message and cancels the timer if it still exists.

2. The link protection switching implementation method according to claim 1, characterized in that: The method further comprises: For each of the stacking systems, when a standby board in the stacking system fails and is disconnected from the main board, the main board obtains the standby board ID information of the standby board; When the main board confirms that the G8032 ring port of the stacking system belongs to the standby board based on the standby board ID information, link protection switching is triggered.

3. The link protection switching implementation method according to claim 1, wherein: The method further comprises: For each of the stacking systems, when the standby board senses that the main board has a fault, the standby board starts processing the G8032 signal and protocol message; The standby board performs processing of the G8032 protocol message based on the status information in the backed-up processing result.

4. The link protection switching implementation method according to claim 3, characterized in that: The standby board performs the steps of processing the G8032 protocol message based on the status information in the backup processing result, including: If the status information in the backup processing result of the standby board indicates that the stack system has operated FS and the current G8032 signal is in FS state, send an FS protocol message to other stack systems in the ring network to switch the other stack systems to FS state to achieve state unification; If the status information in the backup processing result of the standby board indicates that the stacking system has received FS protocol messages sent by other stacking systems in the ring network and switched to the FS state, the current state remains unchanged.

5. The link protection switching implementation method according to claim 3, characterized in that: The standby board performs the steps of processing the G8032 protocol message based on the status information in the backup processing result, including: If the status information in the processing result of the backup board indicates that the stack system has operated MS and the current G8032 signal is in MS state, check whether there is a port fault. If so, trigger signal fault processing; if not, send MS protocol messages to other stack systems in the ring network to switch other stack systems to MS state to achieve state unification; If the status information in the processing result of the backup board indicates that the stacking system to which it belongs has received the MS protocol message sent by other stacking systems in the ring network and switched to the MS state, then check whether there is a port fault at present. If so, trigger signal fault processing; if not, keep the current state unchanged.

6. The link protection switching implementation method according to claim 3, characterized in that: The standby board performs the steps of processing the G8032 protocol message based on the status information in the backup processing result, including: If the status information in the processing result of the backup board indicates that a port failure exists in the stacking system and the current G8032 signal is in the SF state, an SF protocol message is sent to other stacking systems in the ring network; If the status information in the processing result of the backup board indicates that the stacking system to which it belongs has received SF protocol messages sent by other stacking systems in the ring network and switched to SF state, then check whether there is a fault on the current port. If so, trigger signal fault processing; if not, keep the current state unchanged.

7. The link protection switching implementation method according to claim 3, characterized in that: The standby board performs the steps of processing the G8032 protocol message based on the status information in the backup processing result, including: The status information in the processing result of the backup board indicates that the current ring network is in a steady state. Check whether there is a fault on the current port. If so, trigger signal fault processing. If not, set a timer for the master control node and send an NRRB message to the outside. The steady state is that the RPL link is in a blocked state and the normal links are in a conducting state. The status information in the processing result of the backup board indicates that the current ring network is in a transition state. Check whether there is a port fault at present. If so, trigger signal fault processing. If not, set a timer for the main control node and send an NR message to the outside. The transition state is the state in the process of switching from the FS state, MS state or SF state to the steady state.

8. The link protection switching implementation method according to claim 1, characterized in that: The method further comprises: When the main board of the common link senses that the common link has returned to normal, the processing result of the G8032 signal and the protocol message is backed up to the standby board in the same stacking system; The mainboard notifies the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs switches the RPL link to a blocking state.

9. The link protection switching implementation method according to claim 1, characterized in that: The main board includes a main board G8032 module, a main board hardware service layer and a main board chip control layer, and the standby board includes a standby board G8032 module, a standby board hardware service layer and a standby board chip control layer; The step of backing up the processing results of the G8032 signal and the protocol message to a standby board in the same stacking system includes: The mainboard G8032 module processes the G8032 signals and protocol messages, backs up the processing results to the standby board G8032 module, and notifies the mainboard hardware service layer of the processing results; The mainboard hardware service layer stores the processing result and notifies the mainboard chip control layer and the standby board control chip layer to perform relevant configuration based on the processing result.

10. A link protection switching implementation system, characterized in that: Used to implement the link protection switching implementation method according to any one of claims 1 to 9, the system includes a ring network composed of multiple stacking systems, the multiple stacking systems are interconnected to form a ring, the connection links between the multiple stacking systems include RPL links and ordinary links, the default state of the RPL links is a blocked state, and each of the stacking systems includes a connected main board and a standby board; For each of the main boards in the stacking system belonging to the common link, the main board is configured to back up the processing results of the G8032 signal and the protocol message to a standby board in the same stacking system when sensing that a fault has occurred in the common link to which it belongs; The main board is used to notify the stacking system of the RPL link to which it belongs, so that the stacking system of the RPL link to which it belongs switches the RPL link to a conducting state, thereby realizing link protection switching.

Citation Information

Patent Citations

  • Stacking system with high reliability

    CN102724030A

  • Ring network fault switching method and ring nodes

    CN106789521A