CN115664890A - Method and system for implementing link protection switching - Google Patents

Method and system for implementing link protection switching Download PDF

Info

Publication number
CN115664890A
CN115664890A CN202211313258.8A CN202211313258A CN115664890A CN 115664890 A CN115664890 A CN 115664890A CN 202211313258 A CN202211313258 A CN 202211313258A CN 115664890 A CN115664890 A CN 115664890A
Authority
CN
China
Prior art keywords
state
link
board
main board
standby board
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211313258.8A
Other languages
Chinese (zh)
Inventor
杨磊
吴林旭
陈晨
黄超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Suzhou Centec Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Centec Communications Co Ltd filed Critical Suzhou Centec Communications Co Ltd
Priority to CN202211313258.8A priority Critical patent/CN115664890A/en
Publication of CN115664890A publication Critical patent/CN115664890A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

In a ring network formed by a plurality of stacking systems, connecting links among the plurality of stacking systems comprise RPL links and common links, the default state of the RPL links is a blocking state, and each stacking system comprises a main board and a standby board which are connected. When the main board in the stacking system of the common link senses that the common link fails, the processing results of the G8032 signal and the protocol message are backed up to the standby board of the same stacking system. And the main board informs the stacking system of the RPL link to switch the RPL link to a conducting state by the stacking system of the RPL link, thereby realizing link protection switching. According to the scheme, the RPL link can inhibit a loop to ensure the normal network environment, and on the other hand, when the link is abnormal, the protection switching can be rapidly carried out to ensure the reliability of the network.

Description

Method and system for implementing link protection switching
Technical Field
The present invention relates to the field of communication network technologies, and in particular, to a method and a system for implementing link protection switching.
Background
Stacking refers to connecting a plurality of switches supporting Stacking characteristics together through Stacking links, logically virtualizing the switches into a switching device, and participating in data forwarding as a whole. The roles of switching and switching in the stacking system can comprise a main device, a standby device and a slave device, and the roles of the devices are determined by packet negotiation of a stacking protocol.
The stacking system is externally presented as a virtual switching device, when one device fails, only some port failures are externally presented, the normal operation of the whole stacking system is not influenced, and the reliability of the system is ensured. The stacking system is formed by a plurality of devices, the service ports of all the member switches become the service ports of the stacking system and participate in forwarding, and the expansion of the number of the ports is realized. The ports of a plurality of member devices are configured as aggregation ports (cross-device link aggregation), so that on one hand, the bandwidth is increased, and on the other hand, the redundant backup of the link is realized. The stacking system is externally presented as a virtual device, so that each member device does not need to be separately configured, and networking simplification is realized.
In a ring network formed based on a stacking system, because the stacking system forms a ring link and is lack of effective measures for management, messages entering the network are continuously circulated in the link, so that a large amount of bandwidth is occupied, and the problem of network storm exists.
Disclosure of Invention
The present invention provides a link protection switching implementation method and system, which can ensure the normality of a network environment and ensure the reliability of a network through protection switching, for example.
Embodiments of the invention may be implemented as follows:
in a first aspect, the present invention provides a link protection switching implementation method, applied to a ring network formed by multiple stacking systems, where the multiple stacking systems are connected to form a ring, a connection link between the multiple stacking systems includes an RPL link and a normal link, a default state of the RPL link is a blocking state, and each stacking system includes a main board and a standby board that are connected, where the method includes:
for each main board in a stacking system of a common link, when the main board senses that the common link fails, backing up processing results of a G8032 signal and a protocol message to a standby board in the same stacking system;
the main board informs the stacking system of the RPL link to switch the RPL link to a conducting state by the stacking system of the RPL link, so as to realize link protection switching.
In an alternative embodiment, the method further comprises:
aiming at each stacking system, when a standby board in the stacking system breaks down and is disconnected from the main board, the main board acquires standby board ID information of the standby board;
and when the main board confirms that the G8032 ring port of the stacking system belongs to the standby board based on the ID information of the standby board, triggering to carry out link protection switching.
In an alternative embodiment, the method further comprises:
aiming at each stacking system, when the standby board senses that the main board has a fault, the standby board starts a processing function of a G8032 signal and a protocol message;
and the standby board executes the processing of the G8032 protocol message based on the state information in the backup processing result.
In an optional implementation manner, the step of executing, by the standby board, processing the G8032 protocol packet based on the state information in the backup processing result includes:
if the state information in the processing result of the backup of the standby board indicates that the stack system operates the FS and the current G8032 signal is in the FS state, sending an FS protocol message to other stack systems in the ring network so that the other stack systems are switched to the FS state to achieve state unification;
and if the state information in the processing result of the backup of the standby board indicates that the stacking system receives FS protocol messages sent by other stacking systems in the ring network and is switched to the FS state, keeping the current state unchanged.
In an optional embodiment, the step of executing, by the standby board, the processing of the G8032 protocol packet based on the state information in the backup processing result includes:
if the state information in the processing result of the backup board indicates that the stack system operates the MS and the current G8032 signal is in the MS state, checking whether a port has a fault at present, if so, triggering signal fault processing, and if not, sending an MS protocol message to other stack systems in the ring network so as to switch the other stack systems to the MS state to achieve state unification;
if the state information in the processing result of the backup of the standby board indicates that the stacking system receives the MS protocol messages sent by other stacking systems in the ring network and switches to the MS state, whether a port has a fault at present is checked, if so, signal fault processing is triggered, and if not, the current state is kept unchanged.
In an optional embodiment, the step of executing, by the standby board, the processing of the G8032 protocol packet based on the state information in the backup processing result includes:
if the state information in the processing result of the backup of the standby board indicates that the port fault exists in the stack system and the current G8032 signal is in an SF state, an SF protocol message is sent to other stack systems in the ring network;
if the state information in the processing result of the backup of the standby board indicates that the stack system receives the SF protocol messages sent by other stack systems in the ring network and switches to the SF state, whether a port has a fault at present is checked, if so, signal fault processing is triggered, and if not, the current state is kept unchanged.
In an optional implementation manner, the step of executing, by the standby board, processing the G8032 protocol packet based on the state information in the backup processing result includes:
the state information in the processing result of the backup of the standby board indicates that the current ring network is in a steady state, whether a port has a fault or not is checked, if yes, signal fault processing is triggered, if not, a timer is set for a main control node, and an NRRB message is sent outwards, wherein the steady state is that the RPL link is in a blocking state and each common link is in a conducting state;
and the state information in the processing result of the backup of the standby board indicates that the current ring network is in a transition state, whether a port has a fault or not is checked, if so, signal fault processing is triggered, if not, a timer is set for the main control node, and an NR message is sent outwards, wherein the transition state is a state in the process of switching from an FS state, an MS state or an SF state to the steady state.
In an alternative embodiment, the method further comprises:
under the condition of keying FS or MS operation, the mainboard processes G8032 and protocol messages and sets a timer;
the mainboard sends a processing result to a backup in the same stacking system, wherein the processing result carries reply identification information;
and the main board receives a reply message sent by the standby board based on the reply identification information, and then sends a corresponding FS protocol message or MS protocol message to the outside, and if the timer exists, the timer is cancelled.
In an alternative embodiment, the method further comprises:
when the main board of the common link senses that the common link is recovered to be normal, backing up the processing results of the G8032 signal and the protocol message to a standby board in the same stacking system;
the main board informs the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to a blocking state.
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;
the step of backing up the processing result of the G8032 signal and the protocol packet to the standby board in the same stacking system includes:
the main board G8032 module processes G8032 signals and protocol messages, backups a processing result to the standby board G8032 module, and notifies the main board hardware service layer of the processing result;
and the main board hardware service layer stores the processing result and informs the main board chip control layer and the standby board control chip layer of carrying out related configuration based on the processing result.
In a second aspect, the present invention provides a system for implementing link protection switching, where the system includes a ring network formed by multiple stacking systems, the multiple stacking systems are connected to form a ring, a connection link between the multiple stacking systems includes an RPL link and a common link, a default state of the RPL link is a blocking state, and each stacking system includes a main board and a standby board that are connected;
aiming at each main board in the stacking system of the common link, the main board is used for backing up the processing result of the G8032 signal and the protocol message to a standby board in the same stacking system when sensing that the common link is in fault;
the main board is used for notifying the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to a conducting state, so as to realize link protection switching.
The beneficial effects of the embodiment of the invention include, for example:
in a ring network formed by a plurality of stacking systems, connecting links among the plurality of stacking systems comprise RPL links and common links, the default state of the RPL links is a blocking state, and each stacking system comprises a main board and a standby board which are connected. When the main board in the stacking system of the common link senses that the common link fails, the processing results of the G8032 signal and the protocol message are backed up to the standby board of the same stacking system. And the main board informs the stacking system of the RPL link to switch the RPL link to a conducting state by the stacking system of the RPL link, thereby realizing link protection switching. According to the scheme, the RPL link can inhibit the loop to ensure the normal network environment, and on the other hand, the protection switching can be rapidly carried out when the link is abnormal to ensure the reliability of the network.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic topology diagram of a ring network provided in an embodiment of the present application;
fig. 2 is a flowchart of a link protection switching implementation method provided in an embodiment of the present application;
fig. 3 is a block diagram of a stacking system provided in an embodiment of the present application;
FIG. 4 is a flowchart of sub-steps included in step S101 of FIG. 2;
fig. 5 is a flowchart of a recovery method in a link protection switching implementation method provided in the embodiment of the present application;
fig. 6 is a flowchart of a method for processing a standby board fault in a method for implementing link protection switching according to an embodiment of the present application;
fig. 7 is a flowchart of a method for processing a motherboard fault in a method for implementing link protection switching according to an embodiment of the present application;
fig. 8 is a flowchart of a method for ensuring unified active/standby states when a motherboard fails according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
Referring to fig. 1, a topology architecture diagram of a ring network provided by an embodiment of the present application, the ring network includes a plurality of stacking systems, and fig. 1 schematically illustrates four stacking systems, including a stacking system a (including A1 and A2), a stacking system B (including B1 and B2), a stacking system C (including C1 and C2), and a stacking system D (including D1 and D2).
Among them, a plurality of stacked systems are connected to each other to form a Ring, and in the plurality of stacked systems, connection links between two of them include an RPL (Ring Protection Link) Link and a normal Link. As shown in fig. 1, the connection link between the stack system a and the stack system B is an RPL link, and the connection link between the other stack systems is a normal link.
The RPL link is in a blocking state in a default state so as to avoid the problem of network storm caused by the fact that a ring network forms a connected ring.
In each stacked system, including the connected main board and standby board, for example, in stacked system a, A1 may be the main board (MASTER) and A2 may be the standby board (standby).
In the ring link, stacking system a may illustratively act as a master (RPL owner) node, while stacking system B may act as a neighbor (RPL neighbor) node.
Referring to fig. 2, a flowchart of a link protection switching implementation method provided in this embodiment of the present application is shown, where method steps defined by a flow related to the link protection switching implementation method are applied to the ring network, and can be implemented by a stacking system in the ring network. The specific process shown in fig. 2 will be described in detail below.
S101, aiming at each main board in a stacking system of a common link, when the main board senses that the common link fails, processing results of G8032 signals and protocol messages are backed up to a standby board in the same stacking system.
And S102, the main board informs the stacking system of the RPL link to switch the RPL link to a conducting state by the stacking system of the RPL link, so as to realize link protection switching.
In this embodiment, in a steady state scenario, an RPL link in the ring network is in a blocking state, as shown in fig. 1, that is, port 1 of the stacking system a and port 2 of the stacking system B are blocked, and there is no connected loop in the network.
In a steady state scene, the main board in each stacking system calculates the G8032 signal, processes the G8032 signal and processes the protocol message, and the standby board is only used for information backup.
G8032, an Ethernet multi-ring protection technology, is a two-layer fragmentation protocol standard defined by ITU-T with the standard number ITU-T G.8032/Y1344, and is therefore called G8032. It defines the RAPS (Ring Auto Protection Switching) protocol message and Protection Switching mechanism.
Specifically, referring to fig. 3, in each stacking system, 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.
Referring to fig. 4, in the process of processing G8032 signals and protocol messages on the main board and backing up the signals and protocol messages to the standby board, the following steps are performed:
and S1011, the main board G8032 module processes the G8032 signal and the protocol message, backups the processing result to the standby board G8032 module, and notifies the main board hardware service layer of the processing result.
S1012, the main board hardware service layer stores the processing result and notifies the main board chip control layer and the standby board control chip layer to perform related configuration based on the processing result.
In this embodiment, each motherboard, for example, A1, B1, C1, or D1 in fig. 1, may run a corresponding motherboard G8032 module to process G8032 signals and protocol messages. The main board first backs up the processing result to the standby board G8032 module of the standby board (such as A2, B2, C2 or D2).
The processing result may include information such as port status, whether to clear the FDB table, and the like. The main board G8032 module may notify the specific processing result to the main board hardware service layer, and in addition, the standby board G8032 may also notify the processing result to the standby board hardware service layer after obtaining the backup processing result.
After the mainboard hardware service layer obtains the processing result, the processing result is stored on one hand, and on the other hand, the mainboard hardware service layer informs the mainboard chip control layer and the standby chip control layer to carry out related configuration. For example, based on the port status in the processing result and information such as whether the FDB table is cleared, an operation such as blocking the corresponding port and clearing the FDB table is performed.
Therefore, in a steady state, each main board in the stacked system processes G8032 signals and protocol messages, and the standby board only performs information backup.
When a link failure occurs in a ring link, protection switching is triggered, which mainly means that a common link in the ring link fails.
In the ring link, the stacking systems of the ordinary links include a stacking system a, a stacking system B, a stacking system C, and a stacking system D. The link between stacking system B and stacking system C belongs to a normal link, the link between stacking system C and stacking system D belongs to a normal link, and the link between stacking system D and stacking system a also belongs to a normal link.
Therefore, the main board in each stacked system can sense whether the link failure occurs in the corresponding ordinary link, and specifically, the main board G8032 module in the main board can sense whether the link failure occurs in the corresponding ordinary link. Under the condition that the common link of the main board fails, the main board backups the processing result of the protocol message of the G8032 signal to a standby board in the same stacking system. Further, the G8032 module of the main board notifies the processing result to the hardware service layer to perform switching of ports, clearing of the FDB table, and the like based on the port state, the FDB table information, and the like in the processing result.
The hardware service layer notifies the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to a conducting state, so that protection switching can be performed to ensure the reliability of the network under the condition that the link is abnormal.
Furthermore, in this embodiment, when the link failure disappears, a switch back needs to be performed to reconnect the restored link. Therefore, referring to fig. 5, the method for implementing link protection switching provided in this embodiment may further include the following steps:
s103, when the main board of the common link senses that the common link returns to normal, the processing results of the G8032 signal and the protocol message are backed up to a standby board in the same stacking system.
And S104, the main board informs the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to a blocking state.
Similarly, in a steady state, the main board of each stacking system performs processing of G8032 signals and protocol messages, and backups to the standby board in the stacking system.
In the main board, the main board G8032 module reuses the recovered normal link when it senses that the original failed normal link is recovered, and before that, needs to notify the stacking system of the RPL link to block the conduction of the ports at the two ends of the RPL link, thereby ensuring that the ring network does not form a conductive ring.
In the application process, a situation that the standby board fails and goes down may occur in each stacking system, and in this situation, if the standby board has a ring port, a link failure may be caused, and therefore, protection switching needs to be performed to ensure network reliability. Based on this, referring to fig. 6, the method for implementing link protection switching provided in this embodiment further includes the following steps:
s201, aiming at each stacking system, when a standby board in the stacking system breaks down and is disconnected with the main board, the main board obtains standby board ID information of the standby board.
And S202, 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, the link protection switching is triggered.
In this embodiment, in each stacking system, if the standby board fails and goes down, the connection with the main board is disconnected. The main board acquires the spare board ID information of the disconnected spare board under the condition that the main board senses the disconnection of the spare board.
For each stacked system, the G8032 ring ports of the stacked system may be as shown in fig. 1, e.g., port 8 on main board A1, port 1 on standby board A2. In addition, it is also possible that both G8032 ring ports are on motherboard A1.
If the two G8032 ring ports are both located on the main board A1, the failure offline of the standby board A2 will not affect the conduction of the link. If the G8032 ring port is on the standby board A2, the link conduction will be affected if the standby board A2 fails and goes down. Therefore, in this embodiment, whether the G8032 ring port of the stacking system is on the standby board can be determined based on the ID information of the standby board, and if the G8032 ring port of the stacking system is on the standby board, the outgoing link protection switching is required to ensure that the ring network can normally operate.
In this embodiment, it is determined whether the G8032 ring port is on the standby board, so as to determine whether to trigger link protection switching when the standby board is offline, and the protection switching performance can be improved.
In addition, during the operation process, a failure of the motherboard may occur in each stacking system, and in this case, in order to ensure that the network environment is normal, a standby board is required to take over the management function of the motherboard. Based on this, please refer to fig. 7, the method for implementing link protection switching provided in this embodiment may further include the following steps:
and S301, aiming at each stacking system, when the standby board senses that the main board has a fault, the standby board starts a processing function of a G8032 signal and a protocol message.
And S302, the standby board executes the processing of the G8032 protocol message based on the state information in the backup processing result.
In this embodiment, in a steady state, the main board executes processing of G8032 signals and protocol messages, and the standby board is only used for information backup. And under the condition that the standby board senses that the main board is out of line due to the fault, the standby board switches roles, and the original processing function which is not executed on the standby board needs to be started.
In this case, the standby board will start the processing function of G8032 signal and protocol message, and the processing result backed up on the standby board at this time includes the processing result backed up from the main board and the processing result obtained by executing the processing function.
After the main board and the standby board are switched, the G8032 protocol also needs to be ensured to be able to normally operate, so as to ensure that the network environment is normal. Therefore, the standby board executes the processing of the G8032 protocol packet according to the state information in the backup processing result.
In this embodiment, when the role of the main board and the standby board is switched, the state of the stacking system may be in multiple different states, and the processing modes of the G8032 protocol messages executed in different states are different.
In a possible implementation manner, the processing of the G8032 protocol packet executed in step S302 based on the state information may be implemented in the following manner:
and if the state information in the processing result of the backup of the standby board indicates that the stack system operates the FS and the current G8032 signal is in the FS state, sending an FS protocol message to other stack systems in the ring network so as to switch the other stack systems to the FS state and achieve the unified state.
And if the state information in the processing result of the backup of the standby board indicates that the stacking system receives FS protocol messages sent by other stacking systems in the ring network and is switched to the FS state, keeping the current state unchanged.
In this embodiment, the current state is in a Local-FS state, that is, the belonging stacking system operates over FS (Force Switch) and the current G8032 signal is in the FS state. In this case, the FS protocol packet may be sent out. At this time, no matter what state the devices in other stacked systems in the ring network are in, the switching will be finally performed based on the Local-FS state of the stacked system. Finally, the state of the stacked system in the whole ring network can be unified so as to switch to the FS state.
In addition, in this embodiment, the current state is in a Raps-FS state, that is, the stacking system receives an FS protocol packet sent by another stacking system and switches to the FS state. In this case, the current state may be kept unchanged. At this time, in the ring network, there must exist other devices sending the FS protocol packet, and the states of the devices in the ring network are uniform.
In this case, if the case of synchronization message loss is considered, but according to the protocol state machine, in the Raps-FS state, the stacking system will be updated to the transitional (pending) state only when receiving the NR packet. In the ring network, the NR packet has a plurality of sending actions, so that even if a synchronization message is lost once, the NR packet can be updated to a pending state subsequently, and thus the state in the ring network is uniform.
In another possible implementation manner, the processing of the G8032 protocol packet executed in step S302 based on the state information may be implemented in the following manner:
if the state information in the processing result of the backup board indicates that the stack system operates the MS and the current G8032 signal is in the MS state, checking whether a port has a fault at present, if so, triggering signal fault processing, and if not, sending an MS protocol message to other stack systems in the ring network so as to switch the other stack systems to the MS state to achieve state unification;
if the state information in the processing result of the backup of the standby board indicates that the stack system receives the MS protocol messages sent by other stack systems in the ring network and switches to the MS state, checking whether a port has a fault at present, if so, triggering signal fault processing, and if not, keeping the current state unchanged.
In the present embodiment, the current state is in a Local-MS state, that is, the belonging stacking system operates MS (Manual Switch) and the current G8032 signal is in an MS state. In this case, it can be checked whether there is currently a port failure. As can be seen from the above description, the ports in each stacked system may be located on the main board and the standby board, or only on the main board, or only on the standby board. Therefore, in the case of a motherboard failing off line, at this time, there may be a port in the failure state, or there may not be a port in the failure state. Therefore, if there is a port in a failure state, signal Failure (SF) processing may be triggered at this time, that is, link protection switching processing is performed. If no port is in fault state, the MS protocol message can be sent out.
If a scene that the synchronization message is lost is considered, because the stacking system sends the protocol message according to the Local-MS state, if there is no higher priority signal, such as an FS signal or an SF signal, other devices in the ring network will be unified according to the state of the stacking system, otherwise, the devices will be unified according to the highest priority signal.
In addition, the current state is in the Raps-MS state, that is, the stacking system receives the MS protocol packet sent by the other stacking system and switches to the MS state. In this case, too, it is first checked whether there is a port in the failure state, and if so, SF processing is triggered. If none of the ports is in the failed state, the current state may be kept unchanged.
Under the condition that the synchronous message is not lost, other equipment in the ring network must send the MS message, and the state uniformity of the whole environment can be achieved.
If the condition of synchronous message loss is considered, if the synchronous message is lost due to state switching triggered by a signal with higher priority, equipment in a subsequent environment must continue to send a protocol message containing higher priority, and the state can be unified finally. If the synchronous message is lost due to the switching triggered by the received NR message, the whole environment can be unified finally because the NR message can be sent for many times.
Further, in another possible implementation manner, the processing of the G8032 protocol packet executed in step S302 based on the state information may be implemented by:
and if the state information in the processing result of the backup of the standby board indicates that the port fault exists in the stack system and the current G8032 signal is in an SF state, sending an SF protocol message to other stack systems in the ring network.
If the state information in the processing result of the backup of the standby board indicates that the stack system receives the SF protocol messages sent by other stack systems in the ring network and switches to the SF state, whether a port has a fault at present is checked, if so, signal fault processing is triggered, and if not, the current state is kept unchanged.
In this embodiment, the current state is a Local-SF state, that is, the stack system has a port fault, and the current G8032 signal is in an SF state. In this case, the SF protocol packet may be sent out according to the Local-SF state. At this time, if there is no higher priority signal in the environment, the devices in the environment will be unified in accordance with the state of the present stacking system. If a signal with higher priority exists in the environment, the states of the signals with higher priority are unified.
In addition, the current state is in the Raps-SF state, that is, the stacking system receives SF protocol messages sent by other stacking systems and switches to the SF state. In this case, it can be checked first whether there is a port failure, and if so, the execution of the signal failure SF process is triggered, and if not, the current state is kept unchanged.
In this case, if a scenario in which the synchronization message is lost is considered, if the synchronization message is lost due to state switching triggered by a signal with a higher priority, the device must continue to send the protocol packet including the signal with the higher priority in the subsequent environment, and finally the states can be unified. If the synchronous message is lost due to the switching triggered by the received NR message, the state of the whole environment can be unified finally because the NR message is sent for many times.
In the present embodiment, in addition to the above-mentioned several cases, it is also possible to be in a pending (transient) state, an idel (steady state) state, and the like.
Therefore, the processing of executing the G8032 protocol packet based on the state information in step S302 can be implemented in the following manner:
and the state information in the processing result of the backup of the standby board indicates that the current ring network is in a steady state, whether a port has a fault or not is checked, if so, signal fault processing is triggered, if not, a timer is set for a main control node (RPL owner node), and an NRRB message is sent outwards, wherein the steady state is that the RPL link is in a blocking state and each common link is in a conducting state.
In the idle state, if the state switching triggered by the signal with higher priority causes the loss of the synchronous message, certain equipment in the subsequent environment continues to send the protocol message containing the signal with higher priority, and finally the environment can achieve the state unification. If the environment has no signal with higher priority, and if the node is the main control node, the state of the whole environment can be unified finally because the node continuously sends the NRRB message.
In addition, the processing of executing the G8032 protocol packet based on the state information in step S302 can be implemented in the following manner:
and the state information in the processing result of the backup of the standby board indicates that the current ring network is in a transition state, whether a port has a fault or not is checked, if so, signal fault processing is triggered, if not, a timer is set for the main control node, and an NR message is sent outwards, wherein the transition state is a state in the process of switching from an FS state, an MS state or an SF state to the steady state.
In the pending state, at this time, if the state switching triggered by the signal with higher priority causes the loss of the synchronization message, certain equipment in the subsequent environment continues to send the protocol message containing the signal with higher priority, and finally the environment can achieve the state unification. If there is no higher priority signal in the environment, the entire environment will be unified into a pending state finally because the present stacking system continuously sends the NR packet.
In this embodiment, by correspondingly executing different G8032 message processing in different states, it is ensured that the G8032 protocol can normally operate, and it is ensured that the network environment is normal.
In the prior art, if the FS or MS is operated on the main board, the G8032 state information between the main board and the standby board is not yet backed up and updated for the action, but a protocol packet is sent out, so that other devices in the ring network are already switched. If the main board and the standby board are switched at this time, when the standby board starts the G8032 signal processing function, the G8032 module function is started according to the backup information, but since the information after the switching of the FS or MS is not backed up and updated before, the G8032 state recognized by the standby board is inconsistent with other devices in the ring network, which may cause the state inconsistency in the subsequent environment and affect the G8032 function.
Based on the above considerations, referring to fig. 8, the method for implementing link protection switching provided in this embodiment may further include the following steps:
s401, under the condition of typing FS or MS operation, the mainboard processes G8032 and protocol messages and sets a timer.
S402, the mainboard sends a processing result to a backup in the same stacking system, and the processing result carries reply identification information.
And S403, after the main board receives a reply message sent by the standby board based on the reply identification information and updating information based on the processing result, the main board sends a corresponding FS protocol message or MS protocol message to the outside, and if the timer still exists, the timer is cancelled.
In this embodiment, when the FS or MS operation is keyed in the stacking system, the motherboard immediately processes G8032 signals and protocol messages. At this time, if a corresponding protocol message needs to be sent out, a timer may be set, and the timer is used to first limit the outward sending of the protocol message.
The main board backs up the processing result to the standby board, and the processing result carries the motion identifiers of the FS and the MS, and the identifiers are used for informing the standby board of replying messages.
And after receiving the processing result, the standby board backups and updates the processing result, and knows that message reply needs to be carried out on the main board based on the reply identification information carried in the processing result. Therefore, the standby board feeds back a reply message to the main board after backing up and updating the processing result. And when the mainboard receives the reply message, the protocol message is sent outwards. At this time, if the set timer is still present, the timer may be cancelled, and if the set timer is not already present, no other processing is required.
In this embodiment, through the above manner, it can be ensured that, for the FS or MS action, before the states of the main board and the standby board are unified, the protocol packet is not sent to affect the states of other devices, and the problem of non-uniformity of the states in the environment after the standby board is switched to the main board is avoided.
The link protection switching implementation scheme provided in this embodiment may implement ring-down and protection switching in an annular network formed by stacked environments, to ensure network reliability, and may support g8032 operation in a main/standby switching scenario based on information backup of a stacked system.
Further, an embodiment of the present application further provides a system for implementing link protection switching, where the system is applied to a ring network formed by multiple stacking systems, the multiple stacking systems are connected to form a ring, a connection link between the multiple stacking systems includes an RPL link and a normal link, a default state of the RPL link is a blocking state, and each stacking system includes a main board and a standby board that are connected.
For each main board in the stacking system belonging to the common link, the main board is used for backing up the processing results of the G8032 signal and the protocol message to a standby board in the same stacking system when sensing that the common link belongs to the stacking system is in failure.
The main board is used for notifying the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to a conducting state, so as to realize link protection switching.
The link protection switching implementation system provided in this embodiment can suppress a loop in practical application, and ensure that a network environment is normal, and on the other hand, can perform protection switching quickly when a link is abnormal, thereby ensuring the reliability of a network.
The link protection switching implementation system provided in this embodiment may be used to implement the link protection switching implementation method in any one of the above implementation manners. For parts that are not exhaustive in this embodiment, reference may be made to the related descriptions in the foregoing embodiments, and details of this embodiment are not repeated herein.
To sum up, in the method and system for implementing link protection switching provided in the embodiment of the present application, in a ring network formed by a plurality of stacked systems, a connection link between the plurality of stacked systems includes an RPL link and a normal link, a default state of the RPL link is a blocking state, and each stacked system includes a main board and a standby board that are connected. When the main board in the stacking system of the common link senses that the common link fails, the processing results of the G8032 signal and the protocol message are backed up to the standby board of the same stacking system. And the main board informs the stacking system of the RPL link to switch the RPL link to a conducting state, thereby realizing link protection switching. According to the scheme, the RPL link can inhibit a loop to ensure the normal network environment, and on the other hand, when the link is abnormal, the protection switching can be rapidly carried out to ensure the reliability of the network.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (11)

1. A link protection switching implementation method is applied to a ring network composed of a plurality of stacking systems, the stacking systems are connected with each other to form a ring, a connection link between the stacking systems includes an RPL link and a normal link, a default state of the RPL link is a blocking state, each stacking system includes a main board and a backup board, and the method includes:
for each main board in a stacking system of a common link, when the main board senses that the common link fails, backing up processing results of a G8032 signal and a protocol message to a standby board in the same stacking system;
the main board informs the stacking system of the RPL link to switch the RPL link to a conducting state by the stacking system of the RPL link, so as to realize link protection switching.
2. The method according to claim 1, wherein the method further comprises:
aiming at each stacking system, when a standby board in the stacking system breaks down and is disconnected with the main board, the main board acquires standby board ID information of the standby board;
and when the main board confirms that the G8032 ring port of the stacking system belongs to the standby board based on the ID information of the standby board, triggering to carry out link protection switching.
3. The method of claim 1, wherein the method further comprises:
aiming at each stacking system, when the standby board senses that the main board has a fault, the standby board starts a processing function of a G8032 signal and a protocol message;
and the standby board executes the processing of the G8032 protocol message based on the state information in the backup processing result.
4. The method of claim 3, wherein the step of executing, by the standby board, the processing of the G8032 protocol packet based on the state information in the backup processing result includes:
if the state information in the processing result of the backup of the standby board indicates that the stack system is operated by the FS and the current G8032 signal is in the FS state, sending an FS protocol message to other stack systems in the ring network so as to switch the other stack systems to the FS state and achieve state unification;
and if the state information in the processing result of the backup of the standby board indicates that the stacking system receives FS protocol messages sent by other stacking systems in the ring network and is switched to the FS state, keeping the current state unchanged.
5. The link protection switching implementation method of claim 3, wherein the step of executing, by the standby board, the processing of the G8032 protocol packet based on the state information in the backup processing result includes:
if the state information in the processing result of the backup of the standby board indicates that the stack system operates the MS and the current G8032 signal is in the MS state, checking whether a port has a fault at present, if so, triggering signal fault processing, and if not, sending an MS protocol message to other stack systems in the ring network so as to switch the other stack systems to the MS state to achieve state unification;
if the state information in the processing result of the backup of the standby board indicates that the stacking system receives the MS protocol messages sent by other stacking systems in the ring network and switches to the MS state, whether a port has a fault at present is checked, if so, signal fault processing is triggered, and if not, the current state is kept unchanged.
6. The link protection switching implementation method of claim 3, wherein the step of executing, by the standby board, the processing of the G8032 protocol packet based on the state information in the backup processing result includes:
if the state information in the processing result of the backup of the standby board indicates that the port fault exists in the stack system and the current G8032 signal is in an SF state, an SF protocol message is sent to other stack systems in the ring network;
if the state information in the processing result of the backup of the standby board indicates that the stack system receives the SF protocol messages sent by other stack systems in the ring network and switches to the SF state, whether a port has a fault currently is checked, if so, signal fault processing is triggered, and if not, the current state is kept unchanged.
7. The link protection switching implementation method of claim 3, wherein the step of executing, by the standby board, the processing of the G8032 protocol packet based on the state information in the backup processing result includes:
the state information in the processing result of the backup of the standby board indicates that the current ring network is in a steady state, whether a port has a fault currently is checked, if yes, signal fault processing is triggered, if not, a timer is set for a main control node, and NRRB messages are sent outwards, wherein the steady state is that the RPL link is in a blocking state and each common link is in a conducting state;
and the state information in the processing result of the backup of the standby board indicates that the current ring network is in a transition state, whether a port has a fault or not is checked, if so, signal fault processing is triggered, if not, a timer is set for the main control node, and an NR message is sent outwards, wherein the transition state is a state in the process of switching from an FS state, an MS state or an SF state to the steady state.
8. The method according to claim 1, wherein the method further comprises:
under the condition of keying FS or MS operation, the mainboard processes G8032 and protocol messages and sets a timer;
the mainboard sends a processing result to a backup in the same stacking system, wherein the processing result carries reply identification information;
and the main board receives a reply message sent by the standby board based on the reply identification information, and then sends a corresponding FS protocol message or MS protocol message to the outside, and if the timer exists, the timer is cancelled.
9. The method of claim 1, wherein the method further comprises:
when the main board of the common link senses that the common link is recovered to be normal, backing up the processing results of the G8032 signal and the protocol message to a standby board in the same stacking system;
the main board informs the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to a blocking state.
10. The method according to claim 1, wherein 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 result of the G8032 signal and the protocol packet to the standby board in the same stacking system includes:
the main board G8032 module processes G8032 signals and protocol messages, backups a processing result to the standby board G8032 module, and notifies the main board hardware service layer of the processing result;
and the main board hardware service layer stores the processing result and informs the main board chip control layer and the standby board control chip layer of carrying out related configuration based on the processing result.
11. A link protection switching implementation system is characterized in that the system comprises a ring network composed of a plurality of stacking systems, the stacking systems are connected with each other to form a ring, a connection link among the stacking systems comprises an RPL link and a common link, the RPL link is in a blocking state in a default state, and each stacking system comprises a main board and a standby board which are connected;
for each main board in the stacking system of the common link, the main board is used for backing up the processing results of the G8032 signals and the protocol messages to a standby board in the same stacking system when sensing that the common link is in fault;
the main board is used for notifying the stacking system of the RPL link to enable the stacking system of the RPL link to switch the RPL link to a conducting state, so as to implement link protection switching.
CN202211313258.8A 2022-10-25 2022-10-25 Method and system for implementing link protection switching Pending CN115664890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211313258.8A CN115664890A (en) 2022-10-25 2022-10-25 Method and system for implementing link protection switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211313258.8A CN115664890A (en) 2022-10-25 2022-10-25 Method and system for implementing link protection switching

Publications (1)

Publication Number Publication Date
CN115664890A true CN115664890A (en) 2023-01-31

Family

ID=84991215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211313258.8A Pending CN115664890A (en) 2022-10-25 2022-10-25 Method and system for implementing link protection switching

Country Status (1)

Country Link
CN (1) CN115664890A (en)

Similar Documents

Publication Publication Date Title
KR101204130B1 (en) Fault processing method, system and exchanging device based on industry ethernet network
CN108900415B (en) Master-slave equipment switching method and system under MLAG interface failure
CN101594383B (en) Method for monitoring service and status of controllers of double-controller storage system
US20070177589A1 (en) Network system and node redundancy method of network system
CN112181660A (en) High-availability method based on server cluster
CN112583708B (en) Connection relation control method and device and electronic equipment
CN111581287A (en) Control method, system and storage medium for database management
CN105577444A (en) Wireless controller management method and wireless controller
CN112511326B (en) Switching method, device, equipment and storage medium
CN111953591A (en) Fault processing method and device
JP2006333077A (en) Line redundancy method and relaying device to be used therein
CN109194592B (en) Method and system for solving island problem in multi-link network
EP3573298B1 (en) Multi-node device and method for micro server built-in switch uplink port backup
CN115664890A (en) Method and system for implementing link protection switching
JP4967674B2 (en) Media service system, media service device, and LAN redundancy method used therefor
CN113949623B (en) MLAG double-master exception repairing method and device, electronic equipment and storage medium
US7210069B2 (en) Failure recovery in a multiprocessor configuration
JP2001344125A (en) Dual node system
CN114095462A (en) Fault tolerance method and system for SRIO communication system of radar processor
JP2006254096A (en) Ip telephone system
US7577135B2 (en) IP telephone system
JP2010136038A (en) Transmitter, and method for switching system in redundant configuration
JP4579018B2 (en) IP phone system
CN115102897B (en) Stacking splitting protection method based on link aggregation
CN115842751B (en) Link detection method, device, system, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination