Background
RRPP (fast Ring Protection Protocol) is a link layer Protocol specifically applied to ethernet rings. The RRPP is used for preventing broadcast storm caused by a data loop when the Ethernet loop is complete; and when one link on the Ethernet ring is disconnected, the communication path between each node on the Ethernet ring can be quickly recovered. Therefore, the RRPP has a high convergence rate.
Each device on the RRPP ring is called a node, and the role of the node is determined by user configuration. (1) A master node: each RRPP ring has only one master node, and the master node is an initiator of the ring network state active detection mechanism and also a decision maker for executing operations after the network topology changes. (2) And all the nodes on the main ring except the main node and all the nodes on the subring except the main node and the intersection node of the subring and the main ring are all transmission nodes. (3) Edge nodes: the special nodes are positioned on the main ring and the sub-ring at the same time, and the edge node is also a transmission node on the main ring. (4) Auxiliary edge nodes: the special nodes are positioned on the main ring and the sub-ring at the same time, and the auxiliary edge node is also a transmission node on the main ring.
When the sub-ring and the main ring are intersected, two intersection points exist, one of devices at the two intersection points is called an edge node, the other one of the devices is called an auxiliary edge node, the edge node or the auxiliary edge node is the role of the device on the sub-ring, and the role of the device on the main ring is the main node or the transmission node. Further, the edge node and the auxiliary edge node must be configured in pairs, and there is no special requirement as to which device is configured as the edge node or the auxiliary edge node, as long as the configuration can distinguish the edge node from the auxiliary edge node.
As shown in fig. 1, the RRPP network includes a main ring and a sub-ring, where device 1 is a sub-ring main node, device 2 is a main ring transmission node and an edge node, device 3 is a main ring transmission node and a sub-ring transmission node, device 4 is a main ring transmission node and an auxiliary edge node, device 5 is a main ring transmission node, device 6 is a main ring main node, and device 7 is a main ring transmission node. In the above application scenario, the main ring master node (device 6) periodically sends a HELLO packet (health detection packet) from the master port, and the HELLO packet is transmitted on the main ring through each main ring transmission node in sequence. If the secondary port of the main node of the main ring receives the HELLO message, the ring network link where the main ring is located is complete; if the HELLO message is not received from the secondary port of the primary ring master node within the specified time, the link failure of the ring network where the primary ring is located is indicated.
When a port Down of a main ring transmission node (e.g., device 3) fails, a secondary port of a main ring master node cannot receive a HELLO packet from a main port within a specified time, and therefore the secondary port needs to be changed from a Block state to a Forwarding state; after the port of the device 3 is restored to Up (normal) from Down, the port of the device 3 needs to be set to Block state first in order to prevent a loop from occurring because the secondary port is in Forwarding state. Then, the secondary port of the main ring main node can receive a HELLO message from the main port, the secondary port needs to be changed from a Forwarding state to a Block state, and the main ring main node sends a COMPLETE-FLUSH-FDB (ring network non-negative refresh Forwarding database) message through the main port; after receiving the COMPLETE-FLUSH-FDB message, the device 3 considers that no broadcast storm occurs in the ring network, and thus changes the port from the Block state to the Forwarding state.
In the foregoing implementation manner, if a link where a main port of a main ring node is located fails, the device 3 cannot receive a COMPLETE-FLUSH-FDB message from the main ring node, and in order to enable the device 3 to change the port from a Block state to a Forwarding state, the device 3 recovers the port from Down to Up, and needs to set a fail timer after setting the port to the Block state, and after waiting for the fail timer to time out, the device 3 changes the port from the Block state to the Forwarding state.
However, in the prior art, the timeout time of the fail timer is generally 30s, so that after a port of a main ring transmission node (e.g., device 3) is restored to Up from Down, if a link where a main port of a main ring master node is located fails, the main ring transmission node needs to wait 30s before changing the port from a Block state to a Forwarding state, that is, 30s is needed before resuming traffic Forwarding, and the network convergence performance is poor.
Disclosure of Invention
The embodiment of the invention provides a method and a system for rapidly converging when a port fault is recovered, so that after the port fault is recovered, flow forwarding is recovered as soon as possible, and the network convergence performance is improved.
In order to achieve the above object, an embodiment of the present invention provides a fast convergence method for port failure recovery, where the method is applied to a fast ring protection protocol RRPP network including a primary ring node and a primary ring transmission node, where the primary ring transmission node includes an edge node and an auxiliary edge node, where a sub-ring intersects with a primary ring, and the method includes:
after the main ring main node sends the Hello message through the main port, if the Hello message sent by the main port is not received from the auxiliary port within the specified time, the Hello message is sent through the auxiliary port;
if a port on the transmission node of the main ring is recovered to a normal Up state from a fault Down state and the port is in a blocking Block state, the transmission node of the main ring changes the port from the Block state to a Forwarding state after receiving a Hello message from a secondary port of the main node of the main ring.
The process of changing the port from a Block state to a Forwarding state by the main ring transmission node specifically includes: the main ring transmission node updates the timeout time of a timeout fail timer of the main ring transmission node by using the timeout time carried in a Hello message from a secondary port of the main ring main node, and changes the port from a Block state to a Forwarding state after the fail timer is overtime; and the timeout time of the fail timer after updating is less than that of the fail timer before updating.
The method further comprises the following steps:
when the auxiliary edge node does not receive a Hello message from a secondary port of the main ring main node and a Hello message from a main port of the main ring main node, the auxiliary edge node sends a main ring Fault notification Major-Fault message to the edge node through the edge port of the auxiliary edge node, wherein the Major-Fault message carries information that the main ring main node is failed;
when the Edge node receives a Major-Fault message through an Edge port of the Edge node, if the Major-node message is found to carry information that the Major-ring host node has failed, sending a Major-ring integrity check Edge-Hello message to the auxiliary Edge node through a public port of the Edge node, wherein the Edge-Hello message carries the information that the Major-ring host node has failed;
and if the port on the main ring transmission node is restored to the Up state from the Down state and the port is in the Block state, the main ring transmission node changes the port from the Block state to the Forwarding state when receiving the Edge-Hello message and the Edge-Hello message carries the information that the main ring main node has failed.
The auxiliary edge node sends a Major-Fault message carrying information that the main ring main node has failed to the edge node through an edge port of the auxiliary edge node, and then the method further comprises the following steps:
when the auxiliary Edge node does not receive a Hello message from a main port of the main ring main node, but receives a Hello message from a secondary port of the main ring main node and does not receive an Edge-Hello message from the Edge node, the auxiliary Edge node sends a Major-Fault message to the Edge node through the Edge port of the auxiliary Edge node, and in the sent Major-Fault message, information that the main ring main node has failed, carried in the Major-Fault message, is eliminated. .
The Edge node sends an Edge-Hello message carrying information that the main ring host node has failed to the auxiliary Edge node through a public port of the Edge node, and then the method further comprises the following steps:
when the Edge node receives a Major ring-Fault message through an Edge port of the Edge node, if the Major ring-Fault message does not carry information that the Major ring master node has failed, the Edge node removes the information that the Major ring master node has failed, which is carried in the Edge-Hello message, when sending the Edge-Hello message to the auxiliary Edge node through a public port of the Edge node; or,
when the Edge node does not receive the Major-Fault message through the Edge port of the Edge node, and when the Edge-Hello message is sent to the auxiliary Edge node through the public port of the Edge node, the Edge node clears the information that the main ring main node carried in the Edge-Hello message is invalid; or,
and when the Edge node receives the Hello message from the auxiliary port of the main ring host node, and when the Edge node sends an Edge-Hello message to the auxiliary Edge node through the public port of the Edge node, clearing the information that the main ring host node fails, which is carried in the Edge-Hello message.
The embodiment of the invention provides a rapid convergence system during port fault recovery, which is applied to a rapid ring protection protocol RRPP network and comprises a main ring main node and a main ring transmission node, wherein the main ring transmission node comprises edge nodes and auxiliary edge nodes, and the edge nodes are intersected by sub rings and the main ring;
the primary ring master node is used for sending the Hello message through the secondary port if the Hello message sent by the primary port is not received from the secondary port within the specified time after the Hello message is sent through the primary port;
the main ring transmission node is configured to change a port from a Block state to a Forwarding state after receiving a Hello packet from a secondary port of the main ring master node when the port on the main ring transmission node is restored to a normal Up state from a fault Down state and the port is in a blocking Block state.
The main ring transmission node is specifically configured to update the timeout time of a timeout fail timer of the main ring transmission node by using the timeout time carried in a Hello message from a secondary port of the main ring master node, and change the port from a Block state to a Forwarding state after the fail timer is overtime; and the timeout time of the fail timer after updating is less than that of the fail timer before updating.
The auxiliary edge node is configured to send a main ring Fault notification message to the edge node through an edge port of the auxiliary edge node when not receiving a Hello message from a secondary port of the main ring host node and a Hello message from a main port of the main ring host node, where the main ring Fault notification message carries information that the main ring host node has failed;
the Edge node is configured to, when receiving a Major-Fault message through an Edge port of the Edge node, send a Major-ring integrity check Edge-Hello message to the auxiliary Edge node through a public port of the Edge node if the Major-ring-Fault message is found to carry information that the Major-ring master node has failed, where the Edge-Hello message carries the information that the Major-ring master node has failed;
the main ring transmission node is further configured to change the port from the Block state to the Forwarding state when the port on the main ring transmission node is restored from the Down state to the Up state and the port is in the Block state and an Edge-Hello message is received and carries information that the main ring host node has failed.
The auxiliary Edge node is further configured to send a Major-Fault message to the Edge node through the Edge port of the auxiliary Edge node after sending the Major-Fault message carrying the information that the Major-ring master node has failed to the Edge node through the Edge port of the auxiliary Edge node, when the Hello message from the Major port of the Major-ring master node is not received, but the Hello message from the minor port of the Major-ring master node is received, and the Edge-Hello message from the Edge node is not received, send the Major-Fault message to the Edge node through the Edge port of the auxiliary Edge node, and clear the information that the Major-ring master node has failed and is carried in the Major-Fault message in the sent Major-Fault message.
The Edge node is further configured to, after sending an Edge-Hello packet carrying information that the primary ring host node has failed to the secondary Edge node through the public port of the Edge node, when receiving a Major-Fault packet through the Edge port of the Edge node, if the Major-Fault packet does not carry the information that the primary ring host node has failed, clear the information that the primary ring host node has failed carried in the Edge-Hello packet when sending the Edge-Hello packet to the secondary Edge node through the public port of the Edge node; or after sending an Edge-Hello message carrying information that the main ring host node has failed to the auxiliary Edge node through the public port of the Edge node, when not receiving a Major-Fault message through the Edge port of the Edge node, and when sending the Edge-Hello message to the auxiliary Edge node through the public port of the Edge node, clearing the information that the main ring host node has failed carried in the Edge-Hello message; or after sending the Edge-Hello message carrying the information that the main ring host node has failed to the auxiliary Edge node through the public port of the Edge node, when receiving the Hello message from the auxiliary port of the main ring host node, and when sending the Edge-Hello message to the auxiliary Edge node through the public port of the Edge node, clearing the information that the main ring host node has failed carried in the Edge-Hello message.
Compared with the prior art, the embodiment of the invention at least has the following advantages: in the embodiment of the invention, the port on the transmission node of the main ring is recovered to the Up state from the Down state, and the port can be changed into the Forwarding state from the Block state in time after being in the Block state, so that the flow Forwarding is recovered as soon as possible after the port fault is recovered, and the network convergence performance is improved and accelerated.
Detailed Description
To solve the problems in the prior art, an embodiment of the present invention provides a fast convergence method for port failure recovery, where the method is applied to an RRPP network including a main ring master node and a main ring transmission node, and the main ring transmission node includes an edge node and an auxiliary edge node where a sub ring intersects with a main ring.
Fig. 1 is a schematic view of an application scenario of an embodiment of the present invention, where the RRPP network includes a main ring and a sub-ring. The main node of the main ring is device 6, and the main ring transmission node includes device 2, device 3, device 4, device 5, and device 7. Further, the device 2 is an edge node, and the device 4 is an auxiliary edge node.
In the above application scenario, when a link where a main port of a main ring master node is located fails, as shown in fig. 2, the fast convergence method for recovering from a port failure includes the following steps:
step 201, after the primary ring master node sends the Hello message through the primary port, if the Hello message sent by the primary port is not received from the secondary port within a specified time, the Hello message is sent through the secondary port.
After the primary ring master node sends the Hello message through the primary port, if the Hello message sent by the primary port is not received from the secondary port within the specified time, the link where the primary port of the primary ring master node is located is considered to have a fault, and the primary ring master node sends the Hello message from the secondary port at the moment.
Step 202, if there is a port on the primary ring transmission node to recover from the Down state to the Up state, and the port is currently in the Block state, the primary ring transmission node changes the port from the Block state to the Forwarding state after receiving the Hello packet from the secondary port of the primary ring master node.
In the embodiment of the present invention, when the primary ring master node sends the Hello packet through the secondary port, it may indicate that the Hello packet is the Hello packet sent through the secondary port by using a certain reserved position 1 in the Hello packet; based on this, after receiving the Hello message from the secondary port of the primary ring master node, the primary ring transmission node may directly change the port from the Block state to the Forwarding state or change the port from the Block state to the Forwarding state based on a fail timer.
In a preferred embodiment of the present invention, a Hello message from a secondary port of a primary ring master node carries timeout (generally 3 s), and a process of a primary ring transmission node changing a port from a Block state to a Forwarding state specifically includes, but is not limited to: the main ring transmission node updates the timeout time of a fail timer of the main ring transmission node by using the timeout time carried in a Hello message from a secondary port of a main ring main node, and after the fail timer is overtime, the main ring transmission node changes the port from a Block state to a Forwarding state.
The timeout time of the fail timer after the update (i.e., the timeout time carried in the Hello packet, which is generally 3 s) is less than the timeout time of the fail timer before the update (which is generally 30 s).
In the application scenario shown in fig. 1, after receiving a Hello packet from an auxiliary port of a device 6 (a primary ring master node), if a port on the device is restored to an Up state from a Down state and the port is currently in a Block state, updating the timeout time of a fail timer of the device by using the timeout time carried in the Hello packet, so that the timeout time of the fail timer is consistent with the timeout time carried in the Hello packet; further, after the fail timer is overtime, the device 7 changes the port from the Block state to the Forwarding state, so that the time for the Block state to transition to the Forwarding state is shortened, and the convergence speed of network recovery is accelerated. Similarly, after receiving the Hello packet from the secondary port of the device 6 (primary ring master node), if a port on the device recovers to the Up state from the Down state and the port is currently in the Block state, the device 2 (or the device 3, or the device 4, or the device 5) updates the timeout time of the fail timer of the device by using the timeout time carried in the Hello packet, so that the timeout time of the fail timer is consistent with the timeout time carried in the Hello packet, and after the fail timer is overtime, the port is changed from the Block state to the Forwarding state, thereby shortening the time for migrating the Block state to the Forwarding state and accelerating the convergence speed of network recovery.
In the embodiment of the invention, after the primary ring master node sends the Hello message through the primary port, if the Hello message sent by the primary port is received from the secondary port within the specified time, the primary ring master node determines that the link where the primary port is located has failed to recover, and at the moment, the primary ring master node also recovers the secondary port into a Block state and stops sending the Hello message from the secondary port.
In the embodiment of the invention, if the auxiliary edge node does not receive the Hello message from the auxiliary port of the main ring main node and does not receive the Hello message from the main port of the main ring main node, the auxiliary edge node determines that the link where the main port of the main ring main node is positioned has a Fault and determines that the link where the auxiliary port of the main ring main node is positioned has a Fault, and based on the Fault, when the auxiliary edge node sends a Major-Fault (main ring Fault notification) message to the edge node through the edge port of the auxiliary edge node, the Major-Fault message carries the information that the main ring main node has failed.
The Edge node periodically sends an Edge-Hello (main ring integrity check) message (used for detecting whether two public links between the Edge node and the auxiliary Edge node are complete) through a public port (two public ports); if the auxiliary Edge node receives an Edge-Hello message from the Edge node through the public port, the fact that a public link between the public port of the auxiliary Edge node and the Edge node is complete is shown; otherwise, the common link between the common port of the auxiliary edge node and the edge node is not complete. When two public links between the edge node and the auxiliary edge node are incomplete, the auxiliary edge node sends a Major-Fault message to the edge node through an edge port of the auxiliary edge node.
On this basis, in the embodiment of the invention, when the auxiliary edge node does not receive the Hello message from the main port of the main ring main node, the link where the main port of the main ring main node is positioned is determined to have a fault; and when the auxiliary edge node does not receive the Hello message from the auxiliary port of the main ring main node, determining that the link where the auxiliary port of the main ring main node is positioned has a fault. Further, when the auxiliary edge node detects that a link where the primary port of the primary ring master node is located fails and detects that a link where the secondary port of the primary ring master node is located fails, it is determined that the primary ring master node has failed. Further, if the two public links between the Edge node and the auxiliary Edge node are incomplete (that is, the auxiliary Edge node does not receive the Edge-Hello packet from the Edge node), the auxiliary Edge node carries information that the main ring main node has failed in a Major-loop Fault packet sent to the Edge node by an Edge port of the auxiliary Edge node, for example, the auxiliary Edge node indicates that the main ring main node has failed by using a certain reserved position 1 in the Major-loop Fault packet.
In the embodiment of the invention, when an Edge node receives a Major-Fault message through an Edge port of the Edge node, if the Major-node message is found to carry information that a main ring main node fails, an Edge-Hello message is sent to an auxiliary Edge node through a public port (two public ports) of the Edge node, and the Edge-Hello message carries the information that the main ring main node fails.
In the embodiment of the invention, when an Edge node receives a Major-Fault message through an Edge port of the Edge node, if the Major-Fault message is found to carry information that a Major ring master node fails, the Edge node determines that a link where a Major port of the Major ring master node is located and a link where a minor port of the Major ring master node is located both fail, at this time, the Edge node carries the information that the Major ring master node has failed in an Edge-Hello message sent to an auxiliary Edge node through a public port of the Edge node, for example, the Edge node indicates that the Major ring master node has failed by using a certain reserved position 1 in the Edge-Hello message.
In the embodiment of the invention, if a port on a transmission node of a main ring is recovered to an Up state from a Down state and the port is in a Block state currently, the transmission node of the main ring changes the port from the Block state to a Forwarding state when receiving an Edge-Hello message and the Edge-Hello message carries information that a main ring main node is invalid.
For example, in the application scenario shown in fig. 1, when receiving an Edge-Hello packet from a device 2 (Edge node), if a port on the device recovers from a Down state to an Up state and the port is currently in a Block state, when finding that the Edge-Hello packet carries information that a master node of a main ring has failed, the device immediately changes the port from the Block state to a Forwarding state, thereby shortening the time for migrating the Block state to the Forwarding state and accelerating the convergence speed of network recovery. Similarly, when receiving the Edge-Hello packet from the device 2 (Edge node), if a port on the device is restored to the Up state from the Down state and the port is currently in the Block state, the device 5 immediately changes the port from the Block state to the Forwarding state when finding that the Edge-Hello packet carries information that the master node of the primary ring has failed, thereby shortening the time for migrating the Block state to the Forwarding state and accelerating the convergence speed of network restoration.
In a specific implementation manner, when an Edge node sends an Edge-Hello packet, if a port on the Edge node is restored to an Up state from a Down state and the port is currently in a Block state, the Edge node changes the port from the Block state to a Forwarding state when finding that the Edge-Hello packet carries information that a primary ring master node has failed. For example, when the device 2 sends an Edge-Hello packet, if a port on the device is restored to an Up state from a Down state and the port is currently in a Block state, the port is immediately changed from the Block state to a Forwarding state when the Edge-Hello packet is found to carry information that a master node of a primary ring has failed, so that the time for migrating the Block state to the Forwarding state is shortened, and the convergence speed of network restoration is accelerated.
In the embodiment of the invention, after an auxiliary Edge node sends a Major-Fault message (the Major-Fault message carries information that a main ring main node has failed) to the Edge node through an Edge port of the auxiliary Edge node, if the auxiliary Edge node detects that a link where a main port of the main ring main node is located fails (when the auxiliary Edge node does not receive a Hello message from the main port of the main ring main node, it is determined that the link where the main port of the main ring main node is located fails), and detects that a link where a secondary port of the main ring main node is located fails to recover (when the auxiliary Edge node receives the Hello message from the secondary port of the main ring main node, it is determined that the link where the secondary port of the main ring main node is located fails to recover), when two common links between the Edge node and the auxiliary Edge node are incomplete (namely, the auxiliary Edge node does not receive an Edge-Hello message from the Edge node), the auxiliary edge node sends a Major ring-Fault message to the edge node through an edge port of the auxiliary edge node, and the Major ring-Fault message does not carry information that the Major ring master node has failed, that is, the Major ring master node carried in the Major ring-Fault message is cleared of the information that the Major ring master node has failed, for example, a certain reserved position 0 in the Major ring-Fault message indicates that the information that the Major ring master node has failed is cleared of the information that the Major ring master node has failed.
In the embodiment of the present invention, after an Edge node sends an Edge-Hello message (the Edge-Hello message carries information that a primary ring master node has failed) to an auxiliary Edge node through a public port of the Edge node, when the Edge node receives a Major-Fault message through the Edge port of the Edge node, if the Major-Fault message does not carry information that the primary ring master node has failed (i.e., a certain reserved position 0 in the Major-Fault message), the Edge node does not carry information that the primary ring has failed when sending the Edge-Hello message to the auxiliary Edge node through the public port of the Edge node, that is, the information that the primary ring master node carried in the Edge-Hello message has failed is removed, for example, the certain reserved position 0 in the Edge-Hello message indicates that the primary ring master node has failed is removed.
In the embodiment of the present invention, after an Edge node sends an Edge-Hello packet to an auxiliary Edge node through a public port of the Edge node (the Edge-Hello packet carries information that a master node of a main ring has failed), when the Edge node does not receive a Major-Fault packet through the Edge port of the Edge node within a specified time, the Edge node does not carry information that the master node of the main ring has failed when sending the Edge-Hello packet to the auxiliary Edge node through the public port of the Edge node, that is, information that the master node of the main ring has failed carried in the Edge-Hello packet is removed, for example, a certain reserved position 0 in the Edge-Hello packet indicates that the information that the master node of the main ring has failed is removed.
In the embodiment of the invention, after an Edge node sends an Edge-Hello message (the Edge-Hello message carries information that a main ring main node has failed) to an auxiliary Edge node through a public port of the Edge node, if the Edge node detects that a link where a main port of the main ring main node is positioned fails (when the Edge node does not receive the Hello message from the main port of the main ring main node, the link where the main port of the main ring main node is positioned is determined to have failed), and detects that a link where a secondary port of the main ring main node is positioned has failed recovery (when the Edge node receives the Hello message from the secondary port of the main ring main node, the link where the secondary port of the main ring main node is positioned is determined to have failed recovery), the Edge node does not carry the information that the main ring main node has failed when sending the Edge-Hello message to the auxiliary Edge node through the public port of the Edge node, that is, the information that the main ring host node has failed, which is carried in the Edge-Hello message, is cleared, for example, a certain reserved position 0 in the Edge-Hello message indicates that the information that the main ring host node has failed is cleared.
In summary, in the embodiment of the present invention, a port on a main ring transmission node is restored from a Down state to an Up state, and after the port is in a Block state, the port can be changed from the Block state to a Forwarding state in time, so that after a port failure is restored, the port is switched to the Forwarding state as soon as possible, traffic Forwarding is resumed as soon as possible, and network convergence performance is improved and accelerated.
Based on the same inventive concept as the above method, an embodiment of the present invention further provides a fast convergence system for port failure recovery, where the system is applied in a fast ring protection protocol RRPP network, and the system includes a main ring master node and a main ring transmission node, where the main ring transmission node includes an edge node and an auxiliary edge node where a sub-ring intersects with a main ring, where:
the primary ring master node is used for sending the Hello message through the secondary port if the Hello message sent by the primary port is not received from the secondary port within the specified time after the Hello message is sent through the primary port;
the main ring transmission node is configured to change a port from a Block state to a Forwarding state after receiving a Hello packet from a secondary port of the main ring master node when the port on the main ring transmission node is restored to a normal Up state from a fault Down state and the port is in a blocking Block state.
The main ring transmission node is specifically configured to update the timeout time of a timeout fail timer of the main ring transmission node by using the timeout time carried in a Hello message from a secondary port of the main ring master node, and change the port from a Block state to a Forwarding state after the fail timer is overtime; and the timeout time of the fail timer after updating is less than that of the fail timer before updating.
The auxiliary edge node is configured to send a main ring Fault notification message to the edge node through an edge port of the auxiliary edge node when not receiving a Hello message from a secondary port of the main ring host node and a Hello message from a main port of the main ring host node, where the main ring Fault notification message carries information that the main ring host node has failed;
the Edge node is configured to, when receiving a Major node-Fault message through an Edge port of the Edge node, send an Edge-Hello message to the auxiliary Edge node through a public port of the Edge node if the Major node-Fault message is found to carry information that the Major node has failed, and the Edge-Hello message carries the information that the Major node has failed;
the main ring transmission node is further configured to change the port from the Block state to the Forwarding state when the port on the main ring transmission node is restored from the Down state to the Up state and the port is in the Block state and an Edge-Hello message is received and carries information that the main ring host node has failed.
The auxiliary Edge node is further configured to send a Major-Fault message to the Edge node through the Edge port of the auxiliary Edge node after sending the Major-Fault message carrying the information that the Major-ring master node has failed to the Edge node through the Edge port of the auxiliary Edge node, when the Hello message from the Major port of the Major-ring master node is not received, but the Hello message from the minor port of the Major-ring master node is received, and the Edge-Hello message from the Edge node is not received, send the Major-Fault message to the Edge node through the Edge port of the auxiliary Edge node, and clear the information that the Major-ring master node has failed and is carried in the Major-Fault message in the sent Major-Fault message.
The Edge node is further configured to, after sending an Edge-Hello packet carrying information that the primary ring host node has failed to the secondary Edge node through the public port of the Edge node, when receiving a Major-Fault packet through the Edge port of the Edge node, if the Major-Fault packet does not carry the information that the primary ring host node has failed, clear the information that the primary ring host node has failed carried in the Edge-Hello packet when sending the Edge-Hello packet to the secondary Edge node through the public port of the Edge node; or after sending an Edge-Hello message carrying information that the main ring host node has failed to the auxiliary Edge node through the public port of the Edge node, when not receiving a Major-Fault message through the Edge port of the Edge node, and when sending the Edge-Hello message to the auxiliary Edge node through the public port of the Edge node, clearing the information that the main ring host node has failed carried in the Edge-Hello message; or after sending the Edge-Hello message carrying the information that the main ring host node has failed to the auxiliary Edge node through the public port of the Edge node, when receiving the Hello message from the auxiliary port of the main ring host node, and when sending the Edge-Hello message to the auxiliary Edge node through the public port of the Edge node, clearing the information that the main ring host node has failed carried in the Edge-Hello message.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above disclosure is only for a few specific embodiments of the present invention, but the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.