CN102891769A - Link fault informing method and apparatus - Google Patents

Link fault informing method and apparatus Download PDF

Info

Publication number
CN102891769A
CN102891769A CN2012103926830A CN201210392683A CN102891769A CN 102891769 A CN102891769 A CN 102891769A CN 2012103926830 A CN2012103926830 A CN 2012103926830A CN 201210392683 A CN201210392683 A CN 201210392683A CN 102891769 A CN102891769 A CN 102891769A
Authority
CN
China
Prior art keywords
link
port
standby
main
failure
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
CN2012103926830A
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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2012103926830A priority Critical patent/CN102891769A/en
Publication of CN102891769A publication Critical patent/CN102891769A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a link fault informing method and an apparatus, which are used in a network including a main and standby links. The network includes a first apparatus and a second apparatus, wherein the first apparatus is respectively connected with the second apparatus through the main link and the standby link. The method comprises: when any apparatus on the main link or the standby link detects a fault on one side on the link thereof, the first apparatus receiving a port fault message transmitted from a port on the other side of the link by the apparatus; the first apparatus determining the fault port according to a link mark carried by the port fault message; determining that the main link is failed if the fault port is on the main link, and switching the current work link to the standby link if the current work link is the main link; and determining that the standby link is failed if the fault port is on the standby link, and switching the current work link to the main link if the current work link is the standby link. The link fault informing method provided by the invention can reduce the configuration complexity.

Description

Link fault notification method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and a device for notifying a link failure.
Background
A Smart Link (Smart Link) is a solution that provides efficient and reliable Link backup, load sharing, and fast convergence performance for dual uplink networking, and a Smart Link group includes two member ports, one of which is designated as a Master Port (Master Port) and the other is designated as a Slave Port (Slave Port). Under normal conditions, only one member port is in a forward (active) state, and the other member port is blocked (block) and in a standby (standby) state. When a Link failure occurs on a member port in a forwarding state (the Link failure mainly refers to the fact that the port state is converted into DOWN at present), the Smart Link group automatically blocks the member port and switches the originally blocked member port in a standby state to the forwarding state.
Referring to fig. 1, fig. 1 is a schematic diagram of a typical networking of a prior art Smart Link, including four devices: s1, S2, S3, S4, S5, S6, S6 are connected with S1 through links S6-S4-S2-S1 and links S6-S5-S3-S1, ports E61 and E62 of S6 form a smart link group, port E61 is designated as a master port, and port E62 is designated as a slave port. Normally, only one port of E61 and E62 is in active state (assumed as E61), the other port is in standby state (assumed as E62), and when detecting that a link failure occurs in E61, the port is in E62 switching forwarding state, so as to achieve the function of backup link.
In the networking shown in fig. 1, if an upstream link of the Smart link group, for example, a link between S2 and S4, fails, the Smart link group cannot sense the failure of the link, and cannot switch the active link and the standby link, thereby causing traffic interruption. For the fault situation, in the existing implementation, the Monitor Link group can be used for linkage fault notification.
Referring to fig. 2, fig. 2 is a schematic diagram of a method for performing an upstream link failure of a Smart link group by using Monitor link group linkage in the prior art, and fig. 2 is based on fig. 1, and one Monitor link group is configured on each of S2, S3, S4 and S5. For the S4 device, it is necessary to use E41 on the S4 device as the uplink port of the Monitor Link group, and add E42 to the downlink port of the Monitor Link group, and when a Link failure occurs at the port E41, the Monitor Link group sets the port E42 to be in the DOWN state, so that the E61 port of the S6 device senses the upstream Link failure and switches the active and standby links.
Therefore, by configuring the Monitor Link group on each device in the upstream Link of the Smart Link group, the Smart Link group can sense the failure of the upstream Link and execute the corresponding operation of switching the main Link and the standby Link by using the Monitor Link linkage.
Disclosure of Invention
In view of the above, the present invention provides a link failure notification method, which can reduce the complexity of configuration.
In order to achieve the above object, the present invention provides a link failure notification method, which is applied to a network including a main link and a standby link, where the network includes a first device and a second device, and the first device is connected to the second device through the main link and the standby link, respectively; the method comprises the following steps:
the method comprises the steps that a first device receives a port fault message sent by any device on a main link or a standby link from a port on the other side of the link when detecting that the port on one side of the link of the first device is in fault, wherein the port fault message carries a link mark for indicating the main and standby attributes of the link where the device is located;
the first device judges the failed port according to the link mark carried by the port failure message:
if the failed port is the port on the main link, determining that the main link fails, and if the current working link is the main link, switching the working link to the standby link;
if the failed port is the port on the standby link, determining that the standby link fails, and if the current working link is the standby link, switching the working link to the main link.
The invention also provides a link fault notification device which is applied to a network including the main link and the standby link, wherein the network includes a first device and a second device, and the first device is connected with the second device through the main link and the standby link; the device is any one device on the main link or the standby link, and comprises: detection unit, announcement unit:
the detection unit is configured to detect whether a port of the device on the main link fails when the device is a device on the main link; when the equipment is the equipment on the standby link, detecting whether a port of the equipment on the standby link fails;
the notification unit is configured to send a port failure packet from a port on the other side of the device on the main link when the device is a device on the main link and the detection unit detects a port failure on one side of the device on the main link, so that the first device performs link switching according to the port failure packet; and when the device is a device on the standby link and the detection unit detects that a port on one side of the device on the standby link fails, sending a port failure message from a port on the other side of the device on the standby link, so that the first device executes link switching according to the port failure message.
The invention also provides a link switching device, which is applied to a network including the main link and the standby link, wherein the network includes a first device and a second device, and the first device is connected with the second device through the main link and the standby link; the apparatus is the first apparatus, including: a receiving unit and a link switching unit;
the receiving unit is used for receiving a port fault message sent by any equipment on a main link or a standby link when detecting that a port on one side of the link of the equipment per se is faulty, wherein the port fault message carries a link mark for indicating the main/standby attribute of the link where the equipment is located;
the link switching unit is used for judging the failed port according to the link mark carried by the port failure message after the receiving unit receives the port failure message:
if the failed port is the port on the main link, determining that the main link fails, and if the current working link is the main link, switching the working link to the standby link;
if the failed port is the port on the standby link, determining that the standby link fails, and if the current working link is the standby link, switching the working link to the main link.
In summary, in the present invention, when a port on one side of a corresponding link of a device on a main link or a standby link fails, a port failure message is actively sent from the port on the other side to notify a first device, so that the first device determines a failed port according to the port failure message, performs a link switching operation according to a link where the failed port is located, and can sense the failure of the main link and/or the standby link without complex configuration and perform link switching accordingly.
Drawings
FIG. 1 is a schematic diagram of a typical networking of a prior art Smart Link;
FIG. 2 is a schematic diagram of a prior art method for performing a Smart link group upstream link failure using Monitor link group linkage;
fig. 3 is a flowchart illustrating a method for notifying a link failure according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a forwarding path of a port fault packet according to an embodiment of the present invention;
fig. 5 is a schematic diagram of forwarding paths of a port recovery packet and a link recovery packet according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a link failure notification device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a link switching device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the technical solutions of the present invention are described in detail below with reference to the accompanying drawings and examples.
The invention is suitable for the network deployment comprising the main and standby links, the network deployment comprises a first device and a second device, the first device is connected with the second device through the main link and the standby link respectively; under normal conditions, only one link of the main link and the standby link is in a working state and is used for transmitting data traffic between the first device and the second device, the link is called a working link, when the link in the working state fails, the working link is switched to the other link, and the other link becomes a new working link.
The network group comprising the main Link and the standby Link can be a Smart Link network group or other similar network groups, when the network group comprising the main Link and the standby Link is the Smart Link network group, the first device is a device configured with the Smart Link group, a port connected with the main Link on the first device is a main port of the Smart Link group, and a port connected with the standby Link on the first device is a slave port of the Smart Link group.
For the above-mentioned networking including the active/standby links, when the active link or the standby link fails, the link failure notification method shown in fig. 3 may be adopted.
Fig. 3 is a schematic flow chart of a link failure notification method according to an embodiment of the present invention, which mainly includes the following steps:
step 301, when any device on the main link or the standby link detects a port failure on one side of the link, a port failure message is sent from the port on the other side of the link.
Here, any device on the main link or the standby link does not include the first device and the second device, that is: the first device and the second device are neither devices on the primary link nor devices on the standby link.
When one device on the main link detects that one side port of the device on the main link fails, a port failure message is sent from the other side port of the device on the main link to inform the first device of the failure of the main link; when one device on the standby link detects the port failure of the device on the standby link, a port failure message is sent from the other port of the device on the standby link to inform the first device of the link failure. For example, when the link between S4 and S2 in fig. 1 is disconnected, S4 may detect that port E41 fails, and therefore, port failure messages are sent from port E42, and S2 may detect that port E22 fails, and therefore, port failure messages are sent from port E21, so that S6 may receive port failure messages from the main link and the standby link, and further determine that the main link fails according to the received port failure messages. In fig. 1, when the link between S4 and S2 is disconnected, forwarding paths of the port fault packet sent from the port E42 at S4 and the port fault packet sent from the port E21 at S2 are respectively shown as a line 41 and a line 42 in the networking shown in fig. 4.
In this embodiment, in order to distinguish between a failure of a main link and a failure of a standby link, a link flag field may be set in a port failure message, and each device on the main link and the standby link may be configured with a link flag for indicating a main/standby attribute of a link where the device is located in advance, where the link flag configured by the device on the main link is a link flag value corresponding to the main link, and the link flag configured by the device on the standby link is a link flag value corresponding to the standby link. When a device on the main link detects a failure of a port on one side of the main link, a link flag of a port failure message may be set to a link flag value corresponding to the main link pre-configured in the device, and then the link flag value is sent out from a port on the other side of the main link. When detecting a failure of a port on one side of the standby link, a device on the standby link may set a link flag of a port failure message to a link flag value corresponding to a standby link pre-configured in the device, and then send the link flag value from a port on the other side of the standby link.
Step 302, the first device receives the port failure message, determines the failed port according to the link flag carried in the port failure message, determines that the main link fails if the failed port is a port on the main link, switches the working link to the standby link if the current working link is the main link, determines that the standby link fails if the failed port is a port on the standby link, and switches the working link to the main link if the current working link is the standby link.
When the first device receives the port failure message, it can determine that the failed port is a port on the main link or a port on the standby link according to the link flag carried in the port failure message, and if the link flag carried in the port failure message is a flag value corresponding to the main link, it can determine that the failed port is a port on the main link, and further determine that the main link fails, and if the link flag carried in the port failure message is a flag value corresponding to the standby link, it can determine that the failed port is a port on the standby link, and further determine that the standby link fails.
When the first device determines that the main link fails according to the received port failure message, if the current working link is the main link, the working link needs to be switched to the standby link, and the first device and the second device use the standby link for data transmission. When the first device determines that the standby link fails according to the received port failure message, if the current working link is the standby link, the working link needs to be switched to the main link, and the first device and the second device use the main link to perform data transmission.
In the embodiment of the present invention shown in fig. 3, when detecting that a port on one side of the main link of a device on the main link recovers from a failure, the device on the main link may send a port recovery message from a port on the other side of the main link of the device on the other side of the main link of the device on the main link; when detecting that a port on one side of the standby link of one device recovers from a failure, the device on the standby link can send a port recovery message from a port on the other side of the standby link of the device to notify the second device that the port on the standby link fails to recover. For example, when the link between S4 and S2 in fig. 4 is restored, S4 may detect that port E41 failed to recover, and therefore, send a port recovery packet from port E42, and S2 may detect that port E22 failed to recover, and therefore, send a port recovery packet from port E21. The S1 may receive the port recovery packet sent from the port E21 at S2, and a forwarding path of the port recovery packet sent from the port E21 at S2 is shown as a line 51 in the networking shown in fig. 5.
The second device may detect a failure recovery condition of the main link by receiving a port recovery packet sent by the device on the main link, and when the second device receives the port recovery packet from the main link, it may consider that the main link has failed to recover, and perform link connectivity confirmation by sending the link recovery packet to the first device along the main link, that is, sending the link recovery packet to the first device from the port that receives the port recovery packet, and if the link recovery packet can reach the first device from the second device along the main link, it indicates that the main link is connected. Similarly, the second device may detect a failure recovery condition of the standby link by receiving a port recovery message sent by the device on the standby link, and when the second device receives the port recovery message from the standby link, it may consider that the standby link has failed to recover, and perform link connectivity confirmation by sending the link recovery message to the first device along the standby link, that is, sending the link recovery message to the first device from the port that receives the port recovery message, and if the link recovery message can reach the first device from the second device along the standby link, it indicates that the standby link is connected. For example, in fig. 5, after receiving the port recovery packet sent from the port E21 by the port S2, S1 sends a link recovery packet to the port S6 along the main link, if the link recovery packet is received by the port S6, it is determined that the main link is connected, if the link recovery packet is not received, it is determined that the main link is still connected, and a forwarding path of the link recovery packet sent by the port S1 along the main link to the port S6 is shown by a line 52 in the networking shown in fig. 5.
Therefore, when the first device receives a link recovery message sent by the second device along the main link, the main link can be determined to be connected, and when the first device receives a link recovery message sent by the second device along the standby link, the standby link can be determined to be connected.
In the embodiment of the present invention shown in fig. 3, after the primary link or the standby link is recovered from the failure and is in the connected state again, the following two link recovery mechanisms may be adopted:
(1) the working link is switched to the primary link as long as the primary link is connected.
In this case, when the first device determines that the main link is connected according to the received link recovery message, if the current working link is the standby link, the working link needs to be switched to the main link. When the first device determines that the standby link is connected according to the received link recovery message, if the current working link is the main link, the working link is only required to be kept as the main link.
That is, when the first device receives a link recovery message sent by the second device from the main link, if the current working link is the standby link, the working link is switched to the main link; the link recovery message is sent by the second device along the main link after receiving a port recovery message sent by any device on the main link, and the port recovery message is sent by any device from another port on the main link after detecting that the port on one side of the device on the main link recovers from the fault;
when the first equipment receives a link recovery message sent by the second equipment from the standby link, keeping the current working link unchanged; the link recovery message is sent by the second device along the standby link after receiving a port recovery message sent by any device on the standby link, and the port recovery message is sent by any device from another port on the standby link after detecting that a port on one side of the standby link of the device recovers from a fault.
(2) After the primary link or the standby link is switched into the working link, the working link is kept until the link failure occurs.
In this case, when the first device determines that the main link is connected according to the received link recovery message, if the current working link is the standby link, it is only necessary to keep the working link as the standby link, and if the current working link is the standby link and the standby link fails, it is necessary to switch the working link to the main link. When the first device determines that the standby link is connected according to the received link recovery message, if the current working link is the main link, the working link is only required to be kept as the main link, and if the current working link is the main link and the main link fails, the working link needs to be switched to the standby link.
That is, when the first device receives a link recovery message sent by the second device from the main link, if the current working link is the standby link and the standby link fails, the working link is switched to the main link, otherwise, the current working link is kept unchanged; the link recovery message is sent by the second device along the main link after receiving a port recovery message sent by any device on the main link, and the port recovery message is sent by any device from another port on the main link after detecting that the port on one side of the device on the main link recovers from the fault;
when the first equipment receives a link recovery message sent by the second equipment from the standby link, if the current working link is a main link and the main link fails, switching the working link to the standby link, and otherwise, keeping the current working link unchanged; the link recovery message is sent by the second device along the standby link after receiving a port recovery message sent by any device on the standby link, and the port recovery message is sent by any device from another port on the standby link after detecting that a port on one side of the standby link of the device recovers from a fault.
In the embodiment of the present invention shown in fig. 3, the first device may record the failure and the connection condition of the main link and the standby link, for example, when the first device receives a port failure message and determines that the main link fails according to the port failure message, record that the state of the main link is a failure; when the first equipment receives the port fault message and determines the fault of the standby link according to the port fault message, recording the state of the standby link as the fault; when the first equipment receives a link recovery message sent by the second equipment along the main link, recording the state of the main link as connection; and when the first equipment receives a link recovery message sent by the second equipment along the standby link, recording the state of the standby link as connection.
Thus, after the first device determines that the main link fails, if the current working link is the main link, the state of the standby link can be further judged before the working link is switched to the standby link, if the state of the standby link is connected, the operation of switching the working link to the standby link is executed, and if the state of the standby link is failed, the link switching can not be executed because both the main link and the standby link fail. Similarly, after the first device determines that the standby link fails, if the current working link is the standby link, the state of the main link may be further determined before the working link is switched to the main link, if the state of the main link is connected, the operation of switching the working link to the main link is performed, and if the state of the main link is a failure, the link switching may not be performed because both the main link and the standby link fail.
In the embodiment of the present invention shown in fig. 3, when the networking including the primary Link and the standby Link is Smart Link networking, a specific method for the first device to switch the working Link to the primary Link is as follows: and blocking the slave port, setting the master port to be in a forwarding state and sending a Flush message from the master port so as to refresh the MAC address forwarding table entry and the ARP table entry of each device on the master link. The specific method for switching the working link to the standby link by the first device is as follows: and blocking the master port, setting the slave port to be in a forwarding state, and sending a Flush message from the slave port to refresh the MAC address forwarding table entry and the ARP table entry of each device on the standby link.
The invention also provides a link fault notification device which is applied to a network including the main link and the standby link, wherein the network includes a first device and a second device, and the first device is connected with the second device through the main link and the standby link; the link failure notification device is any device on the main link or the standby link.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a link failure notification device according to an embodiment of the present invention, and as shown in fig. 6, the link failure notification device includes: a detection unit 601 and an announcement unit 602; wherein,
a detecting unit 601, configured to detect whether a port of the device on a main link fails when the device is a device on the main link; when the equipment is the equipment on the standby link, detecting whether a port of the equipment on the standby link fails;
an announcing unit 602, configured to send a port failure packet from a port on the other side of the device on the main link when the device is a device on the main link and the detecting unit 601 detects that the port on the one side of the device on the main link fails, so that the first device performs link switching according to the port failure packet; when the device is a device on the standby link and the detecting unit 601 detects that a port on one side of the device on the standby link fails, a port failure message is sent from a port on the other side of the device on the standby link, so that the first device performs link switching according to the port failure message.
The detecting unit 601 is further configured to detect whether a failed port is recovered after the device is a device on the main link and a port on one side of the main link of the device fails; when the equipment is the equipment on the standby link, and a port on one side of the equipment on the standby link fails, detecting whether the failed port is recovered;
the notifying unit 602 is further configured to, when the device is a device on a main link and the detecting unit 601 detects that a port on one side of the device on the main link is recovered due to a failure, send a port recovery packet from a port on the other side of the device on the main link, so that a second device performs sending of a link recovery packet to a first device along the main link after receiving the port recovery packet, and performs link switching after receiving the link recovery packet; when the device is a device on the standby link and the detecting unit 601 detects that the port on one side of the device on the standby link is recovered due to a failure, the device sends a port recovery message from the port on the other side of the device on the standby link, so that the second device executes sending of a link recovery message to the first device along the standby link after receiving the port recovery message, and the first device executes link switching after receiving the link recovery message.
The invention also provides a link switching device, which is applied to a network including the main link and the standby link, wherein the network includes a first device and a second device, and the first device is connected with the second device through the main link and the standby link; the link switching device is the first device.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a link switching device according to an embodiment of the present invention, and as shown in fig. 7, the link switching device includes: a receiving unit 701 and a link switching unit 702; wherein,
a receiving unit 701, configured to receive a port failure packet sent by any device on a main link or a standby link when detecting a port failure on one side of the link, where the port failure packet carries a link flag used to indicate a main/standby attribute of the link where the device is located;
the link switching unit 702 is configured to, after the receiving unit 701 receives the port failure packet, determine the failed port according to the link flag carried in the port failure packet:
if the failed port is the port on the main link, determining that the main link fails, and if the current working link is the main link, switching the working link to the standby link;
if the failed port is the port on the standby link, determining that the standby link fails, and if the current working link is the standby link, switching the working link to the main link.
Each device on the main link and the standby link is pre-configured with a link mark for indicating the main/standby attribute of the link where the device is located, wherein the link mark configured by the device on the main link is a link mark value corresponding to the main link, and the link mark configured by the device on the standby link is a link mark value corresponding to the standby link;
when any device on the main link or the standby link detects that a port on one side of the link fails, a port failure message sent from a port on the other side of the link carries a link mark configured by the device;
when the link switching unit 702 determines the failed port according to the link flag carried in the port failure packet, it is configured to: if the link mark carried by the port fault message is the link mark value corresponding to the main link, the failed port is determined to be the port on the main link, and if the link mark carried by the port fault message is the link mark value corresponding to the standby link, the failed port is determined to be the port on the main link.
In the above device, the receiving unit 701 is further configured to receive a link recovery packet sent by a second device along a main link when detecting that a failure of the main link is recovered; the link recovery message is used for receiving a link recovery message sent by the second equipment along the standby link under the condition of detecting the fault recovery of the standby link; when the second device receives a port recovery message sent by any device on the main link from a port on the other side of the main link when detecting that the port on one side of the main link of the second device recovers from the failure, the failure recovery of the main link is determined; when the second equipment receives a port recovery message sent by any equipment on the standby link from a port on the other side of the standby link when the second equipment detects that the port on one side of the standby link is recovered from the fault, the second equipment determines that the standby link is recovered from the fault;
the link switching unit 702 is configured to determine that the main link is connected when the receiving unit 701 receives a link recovery message sent by the second device along the main link, and switch the working link to the main link if the current working link is the standby link; when the receiving unit 701 receives a link recovery message sent by the second device along the standby link, it determines that the standby link is connected and keeps the current working link unchanged.
In the above device, the receiving unit 701 is further configured to receive a link recovery packet sent by a second device along a main link when detecting that a failure of the main link is recovered; the link recovery message is used for receiving a link recovery message sent by the second equipment along the standby link under the condition of detecting the fault recovery of the standby link; when the second device receives a port recovery message sent by any device on the main link from a port on the other side of the main link when detecting that the port on one side of the main link of the second device recovers from the failure, the failure recovery of the main link is determined; when the second equipment receives a port recovery message sent by any equipment on the standby link from a port on the other side of the standby link when the second equipment detects that the port on one side of the standby link is recovered from the fault, the second equipment determines that the standby link is recovered from the fault;
the link switching unit 702 is configured to determine that the main link is connected when the receiving unit 701 receives a link recovery message sent by the second device along the main link, switch the working link to the main link if the current working link is the standby link and the standby link fails, and otherwise, keep the current working link unchanged; the receiving unit 701 receives a link recovery message sent by the second device along the standby link, determines that the standby link is connected, switches the working link to the standby link if the current working link is the main link and the main link fails, and otherwise, keeps the current working link unchanged.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (11)

1. A link failure notification method is applied to a network including a main link and a standby link, wherein the network includes a first device and a second device, and the first device is connected with the second device through the main link and the standby link respectively; the method is characterized by comprising the following steps:
the method comprises the steps that a first device receives a port fault message sent by any device on a main link or a standby link from a port on the other side of the link when detecting that the port on one side of the link of the first device is in fault, wherein the port fault message carries a link mark for indicating the main and standby attributes of the link where the device is located;
the first device judges the failed port according to the link mark carried by the port failure message:
if the failed port is the port on the main link, determining that the main link fails, and if the current working link is the main link, switching the working link to the standby link;
if the failed port is the port on the standby link, determining that the standby link fails, and if the current working link is the standby link, switching the working link to the main link.
2. The link failure notification method according to claim 1,
each device on the main link and the standby link is pre-configured with a link mark for indicating the main/standby attribute of the link where the device is located, wherein the link mark configured by the device on the main link is a link mark value corresponding to the main link, and the link mark configured by the device on the standby link is a link mark value corresponding to the standby link;
when any device on the main link or the standby link detects that a port on one side of the link fails, a port failure message sent from a port on the other side of the link carries a link mark configured by the device;
the method for the first device to judge the failed port according to the link mark carried by the port failure message comprises the following steps: if the link mark carried by the port fault message is the link mark value corresponding to the main link, the failed port is determined to be the port on the main link, and if the link mark carried by the port fault message is the link mark value corresponding to the standby link, the failed port is determined to be the port on the main link.
3. The link failure notification method of claim 1, further comprising:
when receiving a link recovery message sent by a second device along a main link under the condition of detecting the fault recovery of the main link, a first device determines that the main link is communicated, and if the current working link is a standby link, the working link is switched to the main link; when the second device receives a port recovery message sent by any device on the main link from a port on the other side of the main link when detecting that the port on one side of the main link of the second device recovers from the failure, the failure recovery of the main link is determined;
when the first equipment receives a link recovery message sent by the second equipment along the standby link under the condition of detecting the fault recovery of the standby link, the standby link is determined to be connected, and the current working link is kept unchanged; and when the second device receives a port recovery message sent by any device on the standby link from a port on the other side of the main link when detecting that the port on one side of the standby link is recovered from the failure, determining that the standby link is recovered from the failure.
4. The link failure notification method according to claim 1,
when receiving a link recovery message sent by a second device along a main link under the condition of detecting the fault recovery of the main link, a first device determines that the main link is communicated, if the current working link is a standby link and the standby link is in fault, the first device switches the working link to the main link, and if not, the current working link is kept unchanged; when the second device receives a port recovery message sent by any device on the main link from a port on the other side of the main link when detecting that the port on one side of the main link of the second device recovers from the failure, the failure recovery of the main link is determined;
when the first equipment receives a link recovery message sent by the second equipment along the standby link under the condition of detecting that the standby link is recovered due to failure, the standby link is determined to be communicated, if the current working link is a main link and the main link fails, the working link is switched to the standby link, and if not, the current working link is kept unchanged; and the second equipment determines that the main link is recovered when receiving a port recovery message sent by any equipment on the standby link from a port on the other side of the standby link when detecting that the port on one side of the standby link is recovered from the failure.
5. The link failure notification method according to any one of claims 1 to 4,
the networking is Smart Link networking, the first equipment is configured with a Smart Link group, a port of the first equipment connected to the main Link is a main port of the Smart Link group, and a port of the first equipment connected to the standby Link is a slave port of the Smart Link group.
6. A link failure notification device is applied to a network including a main link and a standby link, wherein the network includes a first device and a second device, and the first device is connected with the second device through the main link and the standby link; the device is any one device on the main link or the standby link, and comprises: a detection unit and an announcement unit;
the detection unit is configured to detect whether a port of the device on the main link fails when the device is a device on the main link; when the equipment is the equipment on the standby link, detecting whether a port of the equipment on the standby link fails;
the notification unit is configured to send a port failure packet from a port on the other side of the device on the main link when the device is a device on the main link and the detection unit detects a port failure on one side of the device on the main link, so that the first device performs link switching according to the port failure packet; and when the device is a device on the standby link and the detection unit detects that a port on one side of the device on the standby link fails, sending a port failure message from a port on the other side of the device on the standby link, so that the first device executes link switching according to the port failure message.
7. The link failure advertising device according to claim 6,
the detecting unit is further configured to detect whether a failed port is recovered after the device is a device on the main link and a port on one side of the device on the main link fails; when the equipment is the equipment on the standby link, and a port on one side of the equipment on the standby link fails, detecting whether the failed port is recovered;
the notification unit is further configured to send a port recovery packet from a port on the other side of the main link of the device when the device is a device on the main link and the detection unit detects that a port on one side of the main link of the device recovers due to a failure, so that the second device sends the link recovery packet to the first device along the main link after receiving the port recovery packet, and the first device performs link switching after receiving the link recovery packet; when the device is a device on the standby link and the detection unit detects that the port on one side of the device on the standby link is recovered due to a fault, the detection unit sends a port recovery message from the port on the other side of the device on the standby link, so that the second device sends a link recovery message to the first device along the standby link after receiving the port recovery message, and the first device executes link switching after receiving the link recovery message.
8. A kind of link switching equipment, apply to the network deployment comprising main spare link, the said network deployment includes the first apparatus and second apparatus, the first apparatus couples to second apparatus through main link and spare link; characterized in that, this equipment is said first equipment, includes: a receiving unit and a link switching unit;
the receiving unit is used for receiving a port fault message sent by any equipment on a main link or a standby link when detecting that a port on one side of the link of the equipment per se is faulty, wherein the port fault message carries a link mark for indicating the main/standby attribute of the link where the equipment is located;
the link switching unit is used for judging the failed port according to the link mark carried by the port failure message after the receiving unit receives the port failure message:
if the failed port is the port on the main link, determining that the main link fails, and if the current working link is the main link, switching the working link to the standby link;
if the failed port is the port on the standby link, determining that the standby link fails, and if the current working link is the standby link, switching the working link to the main link.
9. The link switching apparatus according to claim 8,
each device on the main link and the standby link is pre-configured with a link mark for indicating the main/standby attribute of the link where the device is located, wherein the link mark configured by the device on the main link is a link mark value corresponding to the main link, and the link mark configured by the device on the standby link is a link mark value corresponding to the standby link;
when any device on the main link or the standby link detects that a port on one side of the link fails, a port failure message sent from a port on the other side of the link carries a link mark configured by the device;
when the link switching unit judges the failed port according to the link mark carried by the port failure message, the link switching unit is configured to: if the link mark carried by the port fault message is the link mark value corresponding to the main link, the failed port is determined to be the port on the main link, and if the link mark carried by the port fault message is the link mark value corresponding to the standby link, the failed port is determined to be the port on the main link.
10. The link switching apparatus according to claim 8,
the receiving unit is further configured to receive a link recovery message sent by the second device along the main link when the failure recovery of the main link is detected; the link recovery message is used for receiving a link recovery message sent by the second equipment along the standby link under the condition of detecting the fault recovery of the standby link; when the second device receives a port recovery message sent by any device on the main link from a port on the other side of the main link when detecting that the port on one side of the main link of the second device recovers from the failure, the failure recovery of the main link is determined; when the second equipment receives a port recovery message sent by any equipment on the standby link from a port on the other side of the standby link when the second equipment detects that the port on one side of the standby link is recovered from the fault, the second equipment determines that the standby link is recovered from the fault;
the link switching unit is used for determining that the main link is communicated when the receiving unit receives a link recovery message sent by the second device along the main link, and switching the working link to the main link if the current working link is a standby link; and the receiving unit is used for determining that the standby link is connected and keeping the current working link unchanged when receiving a link recovery message sent by the second equipment along the standby link.
11. The link switching apparatus according to claim 8,
the receiving unit is further configured to receive a link recovery message sent by the second device along the main link when the failure recovery of the main link is detected; the link recovery message is used for receiving a link recovery message sent by the second equipment along the standby link under the condition of detecting the fault recovery of the standby link;
the link switching unit is used for determining that the main link is communicated when the receiving unit receives a link recovery message sent by the second device along the main link, switching the working link to the main link if the current working link is a standby link and the standby link fails, and otherwise, keeping the current working link unchanged; the receiving unit is used for receiving a link recovery message sent by the second equipment along the standby link, determining that the standby link is communicated, if the current working link is a main link and the main link fails, switching the working link to the standby link, and if not, keeping the current working link unchanged;
when the second device receives a port recovery message sent by any device on the main link from a port on the other side of the main link when detecting that the port on one side of the main link of the second device recovers from the failure, the failure recovery of the main link is determined; and the second equipment determines the fault recovery of the standby link when receiving a port recovery message sent by any equipment on the standby link from a port on the other side of the standby link when detecting that the fault recovery of the port on one side of the standby link is carried out.
CN2012103926830A 2012-10-16 2012-10-16 Link fault informing method and apparatus Pending CN102891769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103926830A CN102891769A (en) 2012-10-16 2012-10-16 Link fault informing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103926830A CN102891769A (en) 2012-10-16 2012-10-16 Link fault informing method and apparatus

Publications (1)

Publication Number Publication Date
CN102891769A true CN102891769A (en) 2013-01-23

Family

ID=47535144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103926830A Pending CN102891769A (en) 2012-10-16 2012-10-16 Link fault informing method and apparatus

Country Status (1)

Country Link
CN (1) CN102891769A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152262A (en) * 2013-02-25 2013-06-12 华为技术有限公司 Method and equipment for connection establishment
CN103607293A (en) * 2013-10-30 2014-02-26 杭州华三通信技术有限公司 Flow protection method and equipment thereof
CN103891204A (en) * 2013-12-31 2014-06-25 华为技术有限公司 Method for link rearrangement and switching device
CN104780104A (en) * 2015-04-20 2015-07-15 杭州华三通信技术有限公司 Packet forwarding method and device in Smart Link networking
WO2016050031A1 (en) * 2014-09-29 2016-04-07 中兴通讯股份有限公司 Method and apparatus for switching transmission path of ethernet, and ethernet system
CN105634774A (en) * 2014-10-31 2016-06-01 中兴通讯股份有限公司 Method, service line card and system for recovering link communication
CN106452834A (en) * 2016-08-31 2017-02-22 大连环宇移动科技有限公司 Method for guaranteeing series connection equipment to keep consistency of main/standby network ports in communication process
CN111526059A (en) * 2020-05-19 2020-08-11 徐维灿 Networking method, device, equipment and storage medium
CN112367179A (en) * 2020-09-25 2021-02-12 新华三信息安全技术有限公司 Link switching method and device
CN115941590A (en) * 2023-03-02 2023-04-07 新华三工业互联网有限公司 Traffic forwarding method, device and system for double-uplink networking

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764731A (en) * 2009-12-09 2010-06-30 熊伟 Ethernet ring network algorithm switching method
CN101964718A (en) * 2009-07-23 2011-02-02 中兴通讯股份有限公司 Protection switching method and protection switching system for dual-homed link of Ethernet
WO2012120528A1 (en) * 2011-03-07 2012-09-13 Tejas Networks Ltd Ethernet chain protection switching

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964718A (en) * 2009-07-23 2011-02-02 中兴通讯股份有限公司 Protection switching method and protection switching system for dual-homed link of Ethernet
CN101764731A (en) * 2009-12-09 2010-06-30 熊伟 Ethernet ring network algorithm switching method
WO2012120528A1 (en) * 2011-03-07 2012-09-13 Tejas Networks Ltd Ethernet chain protection switching

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152262A (en) * 2013-02-25 2013-06-12 华为技术有限公司 Method and equipment for connection establishment
CN103152262B (en) * 2013-02-25 2016-08-03 华为技术有限公司 A kind of method and apparatus of connection establishment
CN103607293A (en) * 2013-10-30 2014-02-26 杭州华三通信技术有限公司 Flow protection method and equipment thereof
CN103607293B (en) * 2013-10-30 2017-08-22 新华三技术有限公司 A kind of flow rate protecting method and equipment
CN103891204B (en) * 2013-12-31 2015-11-25 华为技术有限公司 The method of link switchover and switching equipment
CN103891204A (en) * 2013-12-31 2014-06-25 华为技术有限公司 Method for link rearrangement and switching device
CN105530181A (en) * 2014-09-29 2016-04-27 中兴通讯股份有限公司 Method and device for Ethernet transmission path switching, and Ethernet system
WO2016050031A1 (en) * 2014-09-29 2016-04-07 中兴通讯股份有限公司 Method and apparatus for switching transmission path of ethernet, and ethernet system
CN105634774A (en) * 2014-10-31 2016-06-01 中兴通讯股份有限公司 Method, service line card and system for recovering link communication
CN104780104B (en) * 2015-04-20 2018-05-11 新华三技术有限公司 Message forwarding method and device in Smart Link networkings
CN104780104A (en) * 2015-04-20 2015-07-15 杭州华三通信技术有限公司 Packet forwarding method and device in Smart Link networking
CN106452834A (en) * 2016-08-31 2017-02-22 大连环宇移动科技有限公司 Method for guaranteeing series connection equipment to keep consistency of main/standby network ports in communication process
CN111526059A (en) * 2020-05-19 2020-08-11 徐维灿 Networking method, device, equipment and storage medium
CN111526059B (en) * 2020-05-19 2023-03-03 徐维灿 Networking method, device, equipment and storage medium
CN112367179A (en) * 2020-09-25 2021-02-12 新华三信息安全技术有限公司 Link switching method and device
CN112367179B (en) * 2020-09-25 2022-03-29 新华三信息安全技术有限公司 Link switching method and device
CN115941590A (en) * 2023-03-02 2023-04-07 新华三工业互联网有限公司 Traffic forwarding method, device and system for double-uplink networking
CN115941590B (en) * 2023-03-02 2023-05-16 新华三工业互联网有限公司 Flow forwarding method, device and system for double uplink networking

Similar Documents

Publication Publication Date Title
CN102891769A (en) Link fault informing method and apparatus
US8483050B2 (en) Method and apparatus for ethernet ring protection
CN102098201B (en) Method for realizing L2TP user access backup and network system
CN104301146A (en) Link switching method and device in software defined network
EP2352253A1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
CN101667963B (en) Link switching method and device
CN102780615B (en) Link backup method and routing forwarding device
CN102014019B (en) Aggregated link switching method and device
WO2011095101A1 (en) Linear 1: n protection method, device and system for packet transport network
CN101800774A (en) Environmental-friendly accessing method and environmental-friendly accessing network
CN102932183B (en) Double-up link failure processing method and device
WO2015196676A1 (en) Networking protection method and device, and main convergence network element in networking
US9320082B2 (en) Method and system for switching wireless devices in looped network
CN104333470B (en) Fault handling method and device
CN102264088A (en) Method and device for implementing pseudo wire protection switching
CN101222402B (en) Ethernet ring protection method, system and device
CN112218321B (en) Master-slave link switching method, device, communication equipment and storage medium
CN101465782B (en) Method for switching optimizing link of RRPP loop, system and network node
US9912527B2 (en) Communication device, communication system, method for determining path, and program
CN102143047B (en) Routing switching triggering method and service provider-end provider edge equipment
CN108259325B (en) Route maintenance method and route equipment
CN103067205B (en) Under same Host Administration, share the RT and backup RT changing method of same address
EP2573977A1 (en) Subnet protection method and device for transport multi-protocol label switching (tmpls) network
CN101958812B (en) Link failure detection method and system
CN103973537B (en) A kind of looped network with failure protection function and the fault protecting method for looped network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130123