CN106161232B - tunnel protection switching method and device - Google Patents

tunnel protection switching method and device Download PDF

Info

Publication number
CN106161232B
CN106161232B CN201510191735.1A CN201510191735A CN106161232B CN 106161232 B CN106161232 B CN 106161232B CN 201510191735 A CN201510191735 A CN 201510191735A CN 106161232 B CN106161232 B CN 106161232B
Authority
CN
China
Prior art keywords
tunnel
path
notification message
layer interface
switching
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.)
Active
Application number
CN201510191735.1A
Other languages
Chinese (zh)
Other versions
CN106161232A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510191735.1A priority Critical patent/CN106161232B/en
Priority to PCT/CN2015/090948 priority patent/WO2016169214A1/en
Publication of CN106161232A publication Critical patent/CN106161232A/en
Application granted granted Critical
Publication of CN106161232B publication Critical patent/CN106161232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a tunnel protection switching method, which is applied to nodes on a tunnel and comprises the steps of detecting service degradation of a link, generating service degradation alarm information of a three-layer interface corresponding to the link, packaging the alarm information in a tunnel notification message, sending the tunnel notification message to a head node of the tunnel passing through the three-layer interface, and carrying out protection switching processing on the tunnel if the tunnel notification message carrying the alarm information is received and the tunnel notification message is judged to be the head node of the tunnel indicated by the tunnel notification message.

Description

tunnel protection switching method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for switching tunnel protection.
Background
The MPLS (Multi-Protocol Label Switching) technology can ingeniously convert the IP packet forwarding technology into a two-layer Switching technology, thereby increasing the packet forwarding rate. With the development of Network technology, in order to meet the service requirements of users, a VPN (Virtual Private Network) Network may be constructed based on the MPLS technology.
RSVP-TE (Resource Reservation Protocol-Traffic Engineering, Resource Reservation Protocol based on Traffic Engineering extensions) is a Resource Reservation Protocol based on the IP Protocol. The user requests the network for the buffer memory and bandwidth meeting the special service quality requirement through the RSVP protocol, the intermediate node establishes resource reservation and maintains the path on the data transmission path by using the RSVP protocol, provides an outer layer forwarding path for the VPN network, and realizes the corresponding service quality through the related protection mechanism of the tunnel.
At present, as shown in fig. 1, a head node of a tunnel is P1, a tail node of the tunnel is P4. in a real network, when a link down or a network element is broken, the tunnel is protected accordingly, that is, in a normal case, a forwarding path of the tunnel is on the -th primary path (P1 → P4), if the -th primary path down, a primary-standby protection switch of the -th path is performed, and the forwarding path is switched to the -th standby path (P1 → P2 → P4), if the -th standby path down, a new path is calculated, that is, the second primary path (P1 → P2 → P3 → P4), if the calculation is successful, the forwarding path is switched to the second primary path, and if the calculation is unsuccessful, the forwarding path is still on the -th standby path.
However, a situation that a link is between up and down often occurs in an existing network, that is, the link is not disconnected, but the quality of data transmission of the link is high, a behavior of high bit error rate and packet loss exists, which is called that the link is in an SD (Signal degradation) state, at this time, configured BFD (Bidirectional forwarding detection) detection cannot detect an abnormal state of the link, and a deployed tunnel protection mechanism also has no way to perform switching protection.
Disclosure of Invention
The technical problem to be solved by the invention is to provide methods and devices for protecting and switching tunnels, which can realize protection and switching of tunnels when service degradation occurs to a link.
In order to solve the above technical problem, the present invention provides methods for switching tunnel protection, which are applied to a node on a tunnel, and the method includes:
detecting that a link has service degradation, generating service degradation alarm information of a three-layer interface corresponding to the link, packaging the alarm information in a tunnel notification message, and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
after receiving the tunnel notification message carrying the warning information, if the tunnel notification message is judged to be the head node of the tunnel indicated by the tunnel notification message, performing protection switching processing on the tunnel.
Further , the method includes the following features:
the method further comprises the following steps:
detecting that the link service is recovered to be normal, generating alarm recovery information of service recovery of a three-layer interface corresponding to the link, packaging the alarm recovery information in a tunnel notification message, and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
after receiving the tunnel notification message carrying the alarm recovery information, if the tunnel notification message is judged to be the head node of the tunnel indicated by the tunnel notification message, performing back-switching processing on the tunnel.
Further , the method includes the following features:
detecting the occurrence of service degradation of the link, including:
detecting that service degradation occurs at a port of local terminal equipment; and/or
Receiving a notification message transmitted by an opposite terminal device directly connected with a local terminal device through a Link Layer Discovery Protocol (LLDP), wherein the notification message indicates that service degradation occurs to direct-connected ports of the two parties.
Further , the method includes the following features:
after detecting that the link has service degradation, the method further comprises:
setting the state of a port with service degradation as a service degradation state, and sending a notification message to an opposite terminal device directly connected with the port of a local terminal device through a Link Layer Discovery Protocol (LLDP) message, wherein the notification message indicates that the directly connected ports of the two parties have service degradation.
Further , the method includes the following features:
after receiving the tunnel notification message, the method further includes:
and if the tunnel notification message is judged to be the intermediate node or the tail node of the tunnel indicated by the tunnel notification message, forwarding the tunnel notification message to the head node of the tunnel.
Further , the method includes the following features:
under the condition that the main/standby protection is not configured in the tunnel, performing protection switching processing on the tunnel, including executing the following processing:
and if the three-layer interface with the service degradation is on the current path of the tunnel, re-optimizing the path of the tunnel, and if the re-optimization is successful, switching the path of the tunnel to a new path.
Further , the method includes the following features:
under the condition that the main/standby protection is not configured in the tunnel, performing protection switching processing on the tunnel, including executing the following processing:
if the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is not in the process of switching back waiting, re-optimizing the path of the tunnel, and if the re-optimizing is successful, switching the path of the tunnel to a new path; or
If the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the path before the tunnel is switched and the tunnel is in the process of the back-switch waiting, the waiting is finished and the back-switch is not executed.
Further , the method includes the following features:
under the condition that the main/standby protection is not configured in the tunnel, carrying out switching-back processing on the tunnel, wherein the switching-back processing comprises the following steps:
if the three-layer interface with the state recovered to be normal is on the path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and if the re-optimization is successful, the tunnel is switched to the previous path.
Further , the method includes the following features:
under the condition that the tunnel is configured with main/standby protection, the protection switching processing is carried out on the tunnel, and the following processing is executed:
if the three-layer interface with service degradation is on the current main path of the tunnel and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path.
Further , the method includes the following features:
under the condition that the tunnel is configured with main/standby protection, the protection switching processing is carried out on the tunnel, and the following processing is executed:
if the three-layer interface with service degradation is on the current main path of the tunnel, and the tunnel is not in the process of back-off waiting, and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel, the tunnel is not in the process of back-off waiting and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the current standby path of the tunnel and the tunnel is not in the process of back-off waiting, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with the service degradation is on the current standby path of the tunnel and the tunnel is in the process of the back-off waiting, ending the waiting and executing the back-off; or
If the three-layer interface with service degradation is on the main path before the tunnel is switched and the tunnel is in the process of the back-cut waiting, the waiting is finished and the back-cut is not executed.
Further , the method includes the following features:
under the condition that the tunnel is configured with main/standby protection, the tunnel is switched back, and the following processing is executed:
if the tunnel is currently on the standby path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, the tunnel is switched to the previous main path; or
If the tunnel is currently on the main path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and after the re-optimization is successful, the tunnel is switched to the previous main path.
Further , the method includes the following features:
the tunnel notification message is a resource reservation protocol RSVP-TE message based on traffic engineering extension.
In order to solve the above technical problem, the present invention provides an apparatus for switching tunnel protection, applied to a node on a tunnel, including:
the system comprises a service detection module, a data processing module and a data processing module, wherein the service detection module is used for detecting that a link has service degradation, generating service degradation alarm information of a three-layer interface corresponding to the link, packaging the alarm information in a tunnel notification message and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
and the alarm processing module is used for carrying out protection switching processing on the tunnel if the tunnel notification message carrying the alarm information is received and the tunnel notification message is judged to be the head node of the tunnel indicated by the tunnel notification message.
, the device further includes the following features:
the device also comprises an alarm recovery processing module:
the service detection module is also used for detecting that the link service is recovered to be normal, generating alarm recovery information of service recovery of a three-layer interface corresponding to the link, packaging the alarm recovery information in a tunnel notification message and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
and the alarm recovery processing module is used for performing back-switching processing on the tunnel if the tunnel notification message carrying the alarm recovery information is received and the tunnel notification message is judged to be the head node of the tunnel indicated by the tunnel notification message.
, the device further includes the following features:
the service detection module is used for detecting that the service degradation occurs in the link, and comprises the following steps:
detecting that service degradation occurs at a port of local terminal equipment; and/or
Receiving a notification message transmitted by an opposite terminal device directly connected with a local terminal device through a Link Layer Discovery Protocol (LLDP), wherein the notification message indicates that service degradation occurs to direct-connected ports of the two parties.
, the device further includes the following features:
the service detection module is further configured to set a state of a port with service degradation as a service degradation state after detecting that a link has service degradation, and send a notification message to an opposite-end device directly connected to the port of the local-end device through a link layer discovery protocol LLDP message, where the notification message indicates that the directly connected ports of both parties have service degradation.
, the device further includes the following features:
and the alarm processing module is further configured to, after receiving the tunnel notification message carrying the alarm information, forward the tunnel notification message to a head node of the tunnel if it is determined that the tunnel notification message is the intermediate node or the tail node of the tunnel indicated by the tunnel notification message.
, the device further includes the following features:
and the alarm recovery processing module is further configured to, after receiving the tunnel notification message carrying the alarm recovery information, forward the tunnel notification message to a head node of the tunnel if it is determined that the tunnel notification message is the intermediate node or the tail node of the tunnel indicated by the tunnel notification message.
, the device further includes the following features:
the alarm processing module is used for performing protection switching processing on the tunnel under the condition that the main/standby protection is not configured in the tunnel, and comprises the following steps:
and if the three-layer interface with the service degradation is on the current path of the tunnel, re-optimizing the path of the tunnel, and if the re-optimization is successful, switching the path of the tunnel to a new path.
, the device further includes the following features:
the alarm processing module is used for performing protection switching processing on the tunnel under the condition that the main/standby protection is not configured in the tunnel, and comprises the following steps:
if the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is not in the process of switching back waiting, re-optimizing the path of the tunnel, and if the re-optimizing is successful, switching the path of the tunnel to a new path; or
If the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the path before the tunnel is switched and the tunnel is in the process of the back-switch waiting, the waiting is finished and the back-switch is not executed.
, the device further includes the following features:
the alarm recovery processing module is used for performing back-switching processing on the tunnel under the condition that the main/standby protection is not configured in the tunnel, and comprises the following steps:
if the three-layer interface with the state recovered to be normal is on the path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and if the re-optimization is successful, the tunnel is switched to the previous path.
, the device further includes the following features:
the alarm processing module is used for performing protection switching processing on the tunnel under the condition that the main/standby protection is configured in the tunnel, and comprises the following steps:
if the three-layer interface with service degradation is on the current main path of the tunnel and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path.
, the device further includes the following features:
the alarm processing module is used for performing protection switching processing on the tunnel under the condition that the main/standby protection is configured in the tunnel, and comprises the following steps:
if the three-layer interface with service degradation is on the current main path of the tunnel, and the tunnel is not in the process of back-off waiting, and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel, the tunnel is not in the process of back-off waiting and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the current standby path of the tunnel and the tunnel is not in the process of back-off waiting, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with the service degradation is on the current standby path of the tunnel and the tunnel is in the process of the back-off waiting, ending the waiting and executing the back-off; or
If the three-layer interface with service degradation is on the main path before the tunnel is switched and the tunnel is in the process of the back-cut waiting, the waiting is finished and the back-cut is not executed.
, the device further includes the following features:
the alarm recovery processing module is used for performing switching back processing on the tunnel under the condition that the main/standby protection is configured in the tunnel, and comprises the following steps:
if the tunnel is currently on the standby path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, the tunnel is switched to the previous main path; or
If the tunnel is currently on the main path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and after the re-optimization is successful, the tunnel is switched to the previous main path.
, the device further includes the following features:
the tunnel notification message is a resource reservation protocol RSVP-TE message based on traffic engineering extension.
Compared with the prior art, the tunnel protection switching method and device provided by the invention have the advantages that after detecting the service degradation of the link, the node on the tunnel generates the service degradation alarm information of the three-layer interface corresponding to the link, the alarm information is notified to the head node of the tunnel through the RSVP-TE message, the head node of the tunnel carries out protection switching processing after receiving the alarm notification, and after detecting the recovery of the link service, the alarm recovery information is notified to the head node of the tunnel through the RSVP-TE message, and the head node of the tunnel carries out switching back in time.
Drawings
Fig. 1 is a schematic diagram of active/standby paths of a tunnel in the prior art.
Fig. 2 is a flowchart of an method for switching tunnel protection according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of kinds of devices for switching tunnel protection 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 apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
As shown in fig. 2, an embodiment of the present invention provides methods for switching tunnel protection, where the methods are applied to nodes on a tunnel, and the methods include:
s10, detecting the link business deterioration, generating the business deterioration alarm information of the three-layer interface corresponding to the link, packaging the alarm information in the tunnel notice information and sending the information to the head node of the tunnel passing through the three-layer interface;
s20, after receiving the tunnel notification message carrying the warning information, if judging that the tunnel notification message is the head node of the tunnel indicated by the tunnel notification message, performing protection switching processing on the tunnel;
the method may further comprise the following features:
wherein the method further comprises:
detecting that the link service is recovered to be normal, generating alarm recovery information of service recovery of a three-layer interface corresponding to the link, packaging the alarm recovery information in a tunnel notification message, and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
after receiving a tunnel notification message carrying alarm recovery information, if judging that the tunnel notification message is a head node of the tunnel indicated by the tunnel notification message, performing back-switching processing on the tunnel;
the detecting that the link has the service degradation includes:
detecting that service degradation occurs at a port of local terminal equipment; and
receiving a notification message transmitted by an opposite terminal device directly connected with a local terminal device through an LLDP (Link Layer Discovery Protocol), wherein the notification message indicates that service degradation occurs to direct-connected ports of the two parties;
detecting the occurrence of service degradation on the port includes: and if the error rate of the data received by the port exceeds the threshold value, judging that the service degradation occurs in the port.
After detecting that the service degradation occurs to the link, the method further includes:
setting the state of a port with service degradation as a service degradation SD state, and sending a notification message to opposite-end equipment directly connected with the port of local-end equipment through an LLDP (Link layer discovery Protocol) message, wherein the notification message indicates that the directly connected ports of the two parties have service degradation;
after detecting that the service degradation occurs to the link, the method further includes:
setting the consumption value of the routing link of the three-layer interface corresponding to the link to be maximum, and converging the routing;
wherein, after receiving the tunnel notification message carrying the alarm information or the alarm recovery information, the method further comprises:
if the tunnel notification message is judged to be the middle node or the tail node of the tunnel indicated by the tunnel notification message, the tunnel notification message is forwarded to the head node of the tunnel;
under the condition that the main/standby protection is not configured in the tunnel, performing protection switching processing on the tunnel, including executing the following processing:
if the three-layer interface with the service degradation is on the current path of the tunnel, re-optimizing the path of the tunnel, and if the re-optimization is successful, switching the path of the tunnel to a new path;
under the condition that the main/standby protection is not configured in the tunnel, performing protection switching processing on the tunnel, including executing the following processing:
if the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is not in the process of switching back waiting, re-optimizing the path of the tunnel, and if the re-optimizing is successful, switching the path of the tunnel to a new path; or
If the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with the service degradation is on the path before the tunnel switching and the tunnel is in the process of the back-switching waiting, ending the waiting and not executing the back-switching;
under the condition that the main/standby protection is not configured in the tunnel, performing back-switching processing on the tunnel, wherein the back-switching processing comprises the following steps:
if the three-layer interface with the state recovered to be normal is on the path before the tunnel switching, path re-optimization is carried out on the tunnel, and if the re-optimization is successful, the tunnel is switched to the previous path;
under the condition that the main/standby protection is configured in the tunnel, the protection switching processing is performed on the tunnel, and the following processing is executed:
if the three-layer interface with service degradation is on the current main path of the tunnel and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path;
under the condition that the main/standby protection is configured in the tunnel, the protection switching processing is performed on the tunnel, and the following processing is executed:
if the three-layer interface with service degradation is on the current main path of the tunnel, and the tunnel is not in the process of back-off waiting, and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel, the tunnel is not in the process of back-off waiting and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the current standby path of the tunnel and the tunnel is not in the process of back-off waiting, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with the service degradation is on the current standby path of the tunnel and the tunnel is in the process of the back-off waiting, ending the waiting and executing the back-off; or
If the three-layer interface with service degradation is on the main path before the tunnel is switched and the tunnel is in the process of the back-cut waiting, ending the waiting and not executing the back-cut;
under the condition that the main/standby protection is configured in the tunnel, the tunnel is subjected to back-switching processing, which comprises the following steps:
if the tunnel is currently on the standby path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, the tunnel is switched to the previous main path; or
If the tunnel is currently on the main path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and after the re-optimization is successful, the tunnel is switched to the previous main path.
Wherein, the tunnel notification message carrying the alarm information or the alarm recovery information is a resource reservation protocol RSVP-TE message based on traffic engineering extension.
As shown in fig. 3, an embodiment of the present invention provides apparatus for switching tunnel protection, where the apparatus is applied to a node on a tunnel, and includes:
the system comprises a service detection module, a service detection module and a data processing module, wherein the service detection module is used for detecting that a link is degraded in service, setting the state of a three-layer interface corresponding to the link as a service degradation state, generating alarm information, packaging the alarm information in a tunnel notification message and sending the alarm information to a head node of a tunnel passing through the three-layer interface;
and the alarm processing module is used for carrying out protection switching processing on the tunnel if the tunnel notification message carrying the alarm information is received and the tunnel notification message is judged to be the head node of the tunnel indicated by the tunnel notification message.
The apparatus may also include the following features:
wherein, the device also comprises an alarm recovery processing module:
the service detection module is also used for detecting that the link service is recovered to be normal, generating alarm recovery information of service recovery of a three-layer interface corresponding to the link, packaging the alarm recovery information in a tunnel notification message and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
and the alarm recovery processing module is used for performing back-switching processing on the tunnel if the tunnel notification message carrying the alarm recovery information is received and the tunnel notification message is judged to be the head node of the tunnel indicated by the tunnel notification message.
The service detection module is configured to detect that service degradation occurs in a link, and includes:
detecting that service degradation occurs at a port of local terminal equipment; and/or
Receiving a notification message transmitted by an opposite terminal device directly connected with a local terminal device through a Link Layer Discovery Protocol (LLDP), wherein the notification message indicates that service degradation occurs to direct-connected ports of the two parties.
The service detection module is further configured to set a state of a port with service degradation as a service degradation state after detecting that a link has service degradation, and send a notification message to an opposite-end device directly connected to the port of the local-end device through a link layer discovery protocol LLDP message, where the notification message indicates that the directly connected ports of both parties have service degradation.
The alarm processing module is further configured to, after receiving a tunnel notification message carrying alarm information, forward the tunnel notification message to a head node of the tunnel if it is determined that the tunnel notification message is a middle node or a tail node of the tunnel indicated by the tunnel notification message.
The alarm recovery processing module is further configured to, after receiving a tunnel notification message carrying alarm recovery information, forward the tunnel notification message to a head node of the tunnel if it is determined that the tunnel notification message is a middle node or a tail node of the tunnel indicated by the tunnel notification message.
The alarm processing module is configured to perform protection switching processing on the tunnel under the condition that the main/standby protection is not configured in the tunnel, and includes the following steps:
and if the three-layer interface with the service degradation is on the current path of the tunnel, re-optimizing the path of the tunnel, and if the re-optimization is successful, switching the path of the tunnel to a new path.
The alarm processing module is configured to perform protection switching processing on the tunnel under the condition that the main/standby protection is not configured in the tunnel, and includes the following steps:
if the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is not in the process of switching back waiting, re-optimizing the path of the tunnel, and if the re-optimizing is successful, switching the path of the tunnel to a new path; or
If the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the path before the tunnel is switched and the tunnel is in the process of the back-switch waiting, the waiting is finished and the back-switch is not executed.
The alarm recovery processing module is configured to perform a back-cut processing on the tunnel under the condition that the main/standby protection is not configured in the tunnel, and includes the following steps:
if the three-layer interface with the state recovered to be normal is on the path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and if the re-optimization is successful, the tunnel is switched to the previous path.
The alarm processing module is configured to perform protection switching processing on the tunnel under the condition that the main/standby protection is configured in the tunnel, and includes the following steps:
if the three-layer interface with service degradation is on the current main path of the tunnel and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path.
The alarm processing module is configured to perform protection switching processing on the tunnel under the condition that the main/standby protection is configured in the tunnel, and includes the following steps:
if the three-layer interface with service degradation is on the current main path of the tunnel, and the tunnel is not in the process of back-off waiting, and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel, the tunnel is not in the process of back-off waiting and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the current standby path of the tunnel and the tunnel is not in the process of back-off waiting, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with the service degradation is on the current standby path of the tunnel and the tunnel is in the process of the back-off waiting, ending the waiting and executing the back-off; or
If the three-layer interface with service degradation is on the main path before the tunnel is switched and the tunnel is in the process of the back-cut waiting, the waiting is finished and the back-cut is not executed.
The alarm recovery processing module is configured to perform a back-cut processing on the tunnel under the condition that the main/standby protection is configured in the tunnel, and includes the following steps:
if the tunnel is currently on the standby path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, the tunnel is switched to the previous main path; or
If the tunnel is currently on the main path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and after the re-optimization is successful, the tunnel is switched to the previous main path.
The tunnel notification message is a resource reservation protocol RSVP-TE message based on traffic engineering extension.
In the methods and apparatuses for tunnel protection switching provided by the above embodiments, after detecting that a link has service degradation, a node on a tunnel generates service degradation alarm information of a three-layer interface corresponding to the link, and notifies the alarm information to a head node of the tunnel through an RSVP-TE message, and the head node of the tunnel performs protection switching processing after receiving the alarm notification, and notifies the head node of the tunnel of the alarm recovery information through the RSVP-TE message after detecting that the link has service recovery, and the head node of the tunnel performs back-switching processing in time.
Alternatively, all or part of the steps of the above embodiments may be implemented by using or more integrated circuits, and accordingly, each module/unit of the above embodiments may be implemented in the form of hardware or a software functional module.
It should be noted that the present invention can be embodied in other specific forms, and various changes and modifications can be made by those skilled in the art without departing from the spirit and scope of the invention.

Claims (23)

1, method for switching tunnel protection, applied to nodes on a tunnel, the method includes:
detecting that a link has service degradation, generating service degradation alarm information of a three-layer interface corresponding to the link, packaging the alarm information in a tunnel notification message, and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
after receiving the tunnel notification message carrying the warning information, if it is determined that the tunnel notification message is the head node of the tunnel indicated by the tunnel notification message, performing protection switching processing on the tunnel, specifically including: and under the condition that the tunnel is not configured with the main-standby protection, if the three-layer interface with the service degradation is on the current path of the tunnel, re-optimizing the path of the tunnel, and if the re-optimization is successful, switching the path of the tunnel to a new path.
2. The method of claim 1, further comprising:
detecting that the link service is recovered to be normal, generating alarm recovery information of service recovery of a three-layer interface corresponding to the link, packaging the alarm recovery information in a tunnel notification message, and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
after receiving the tunnel notification message carrying the alarm recovery information, if the tunnel notification message is judged to be the head node of the tunnel indicated by the tunnel notification message, performing back-switching processing on the tunnel.
3. The method of claim 1 or 2, wherein:
detecting the occurrence of service degradation of the link, including:
detecting that service degradation occurs at a port of local terminal equipment; and/or
Receiving a notification message transmitted by an opposite terminal device directly connected with a local terminal device through a Link Layer Discovery Protocol (LLDP), wherein the notification message indicates that service degradation occurs to direct-connected ports of the two parties.
4. The method of claim 1 or 2, wherein:
after detecting that the link has service degradation, the method further comprises:
setting the state of a port with service degradation as a service degradation state, and sending a notification message to an opposite terminal device directly connected with the port of a local terminal device through a Link Layer Discovery Protocol (LLDP) message, wherein the notification message indicates that the directly connected ports of the two parties have service degradation.
5. The method of claim 1 or 2, wherein:
after receiving the tunnel notification message, the method further includes:
and if the tunnel notification message is judged to be the intermediate node or the tail node of the tunnel indicated by the tunnel notification message, forwarding the tunnel notification message to the head node of the tunnel.
6. The method of claim 1 or 2, wherein:
under the condition that the main/standby protection is not configured in the tunnel, performing protection switching processing on the tunnel, including executing the following processing:
if the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is not in the process of switching back waiting, re-optimizing the path of the tunnel, and if the re-optimizing is successful, switching the path of the tunnel to a new path; or
If the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the path before the tunnel is switched and the tunnel is in the process of the back-switch waiting, the waiting is finished and the back-switch is not executed.
7. The method of claim 2, wherein:
under the condition that the main/standby protection is not configured in the tunnel, carrying out switching-back processing on the tunnel, wherein the switching-back processing comprises the following steps:
if the three-layer interface with the state recovered to be normal is on the path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and if the re-optimization is successful, the tunnel is switched to the previous path.
8. The method of claim 1 or 2, wherein:
under the condition that the tunnel is configured with main/standby protection, the protection switching processing is carried out on the tunnel, and the following processing is executed:
if the three-layer interface with service degradation is on the current main path of the tunnel and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path.
9. The method of claim 1 or 2, wherein:
under the condition that the tunnel is configured with main/standby protection, the protection switching processing is carried out on the tunnel, and the following processing is executed:
if the three-layer interface with service degradation is on the current main path of the tunnel, and the tunnel is not in the process of back-off waiting, and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel, the tunnel is not in the process of back-off waiting and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the current standby path of the tunnel and the tunnel is not in the process of back-off waiting, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with the service degradation is on the current standby path of the tunnel and the tunnel is in the process of the back-off waiting, ending the waiting and executing the back-off; or
If the three-layer interface with service degradation is on the main path before the tunnel is switched and the tunnel is in the process of the back-cut waiting, the waiting is finished and the back-cut is not executed.
10. The method of claim 2, wherein:
under the condition that the tunnel is configured with main/standby protection, the tunnel is switched back, and the following processing is executed:
if the tunnel is currently on the standby path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, the tunnel is switched to the previous main path; or
If the tunnel is currently on the main path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and after the re-optimization is successful, the tunnel is switched to the previous main path.
11. The method of claim 1 or 2, wherein:
the tunnel notification message is a resource reservation protocol RSVP-TE message based on traffic engineering extension.
The device for switching tunnel protection of kinds 12, , applied to the node on the tunnel, includes:
the system comprises a service detection module, a data processing module and a data processing module, wherein the service detection module is used for detecting that a link has service degradation, generating service degradation alarm information of a three-layer interface corresponding to the link, packaging the alarm information in a tunnel notification message and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
the warning processing module is configured to, after receiving a tunnel notification message carrying warning information, perform protection switching processing on a tunnel if it is determined that the tunnel notification message is a head node of the tunnel indicated by the tunnel notification message, and specifically includes: and under the condition that the tunnel is not configured with the main-standby protection, if the three-layer interface with the service degradation is on the current path of the tunnel, re-optimizing the path of the tunnel, and if the re-optimization is successful, switching the path of the tunnel to a new path.
13. The apparatus of claim 12, further comprising an alarm recovery processing module:
the service detection module is also used for detecting that the link service is recovered to be normal, generating alarm recovery information of service recovery of a three-layer interface corresponding to the link, packaging the alarm recovery information in a tunnel notification message and sending the tunnel notification message to a head node of a tunnel passing through the three-layer interface;
and the alarm recovery processing module is used for performing back-switching processing on the tunnel if the tunnel notification message carrying the alarm recovery information is received and the tunnel notification message is judged to be the head node of the tunnel indicated by the tunnel notification message.
14. The apparatus of claim 12 or 13, wherein:
the service detection module is used for detecting that the service degradation occurs in the link, and comprises the following steps:
detecting that service degradation occurs at a port of local terminal equipment; and/or
Receiving a notification message transmitted by an opposite terminal device directly connected with a local terminal device through a Link Layer Discovery Protocol (LLDP), wherein the notification message indicates that service degradation occurs to direct-connected ports of the two parties.
15. The apparatus of claim 12 or 13, wherein:
the service detection module is further configured to set a state of a port with service degradation as a service degradation state after detecting that a link has service degradation, and send a notification message to an opposite-end device directly connected to the port of the local-end device through a link layer discovery protocol LLDP message, where the notification message indicates that the directly connected ports of both parties have service degradation.
16. The apparatus of claim 12 or 13, wherein:
and the alarm processing module is further configured to, after receiving the tunnel notification message carrying the alarm information, forward the tunnel notification message to a head node of the tunnel if it is determined that the tunnel notification message is the intermediate node or the tail node of the tunnel indicated by the tunnel notification message.
17. The apparatus of claim 13, wherein:
and the alarm recovery processing module is further configured to, after receiving the tunnel notification message carrying the alarm recovery information, forward the tunnel notification message to a head node of the tunnel if it is determined that the tunnel notification message is the intermediate node or the tail node of the tunnel indicated by the tunnel notification message.
18. The apparatus of claim 12 or 13, wherein:
the alarm processing module is used for performing protection switching processing on the tunnel under the condition that the main/standby protection is not configured in the tunnel, and comprises the following steps:
if the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is not in the process of switching back waiting, re-optimizing the path of the tunnel, and if the re-optimizing is successful, switching the path of the tunnel to a new path; or
If the three-layer interface with the service degradation is on the current path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the path before the tunnel is switched and the tunnel is in the process of the back-switch waiting, the waiting is finished and the back-switch is not executed.
19. The apparatus of claim 13, wherein:
the alarm recovery processing module is used for performing back-switching processing on the tunnel under the condition that the main/standby protection is not configured in the tunnel, and comprises the following steps:
if the three-layer interface with the state recovered to be normal is on the path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and if the re-optimization is successful, the tunnel is switched to the previous path.
20. The apparatus of claim 12 or 13, wherein:
the alarm processing module is used for performing protection switching processing on the tunnel under the condition that the main/standby protection is configured in the tunnel, and comprises the following steps:
if the three-layer interface with service degradation is on the current main path of the tunnel and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimization is successful, switching the tunnel to a new main path.
21. The apparatus of claim 12 or 13, wherein:
the alarm processing module is used for performing protection switching processing on the tunnel under the condition that the main/standby protection is configured in the tunnel, and comprises the following steps:
if the three-layer interface with service degradation is on the current main path of the tunnel, and the tunnel is not in the process of back-off waiting, and the states of all three-layer interfaces on the standby path of the tunnel are normal, switching the tunnel to the standby path; or
If the three-layer interface with service degradation is on the current main path of the tunnel, the tunnel is not in the process of back-off waiting and the three-layer interface with abnormal state exists on the standby path of the tunnel, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with service degradation is on the current main path of the tunnel and the tunnel is in the process of the back-cut waiting, ending the waiting and executing the back-cut; or
If the three-layer interface with service degradation is on the current standby path of the tunnel and the tunnel is not in the process of back-off waiting, re-optimizing the main path of the tunnel, and if the re-optimizing is successful, switching the tunnel to a new main path; or
If the three-layer interface with the service degradation is on the current standby path of the tunnel and the tunnel is in the process of the back-off waiting, ending the waiting and executing the back-off; or
If the three-layer interface with service degradation is on the main path before the tunnel is switched and the tunnel is in the process of the back-cut waiting, the waiting is finished and the back-cut is not executed.
22. The apparatus of claim 13, wherein:
the alarm recovery processing module is used for performing switching back processing on the tunnel under the condition that the main/standby protection is configured in the tunnel, and comprises the following steps:
if the tunnel is currently on the standby path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, the tunnel is switched to the previous main path; or
If the tunnel is currently on the main path, and if the three-layer interface with the state recovered to be normal is on the main path before the switching of the tunnel, path re-optimization is carried out on the tunnel, and after the re-optimization is successful, the tunnel is switched to the previous main path.
23. The apparatus of claim 12 or 13, wherein:
the tunnel notification message is a resource reservation protocol RSVP-TE message based on traffic engineering extension.
CN201510191735.1A 2015-04-21 2015-04-21 tunnel protection switching method and device Active CN106161232B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510191735.1A CN106161232B (en) 2015-04-21 2015-04-21 tunnel protection switching method and device
PCT/CN2015/090948 WO2016169214A1 (en) 2015-04-21 2015-09-28 Tunnel protection switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510191735.1A CN106161232B (en) 2015-04-21 2015-04-21 tunnel protection switching method and device

Publications (2)

Publication Number Publication Date
CN106161232A CN106161232A (en) 2016-11-23
CN106161232B true CN106161232B (en) 2020-01-31

Family

ID=57143032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510191735.1A Active CN106161232B (en) 2015-04-21 2015-04-21 tunnel protection switching method and device

Country Status (2)

Country Link
CN (1) CN106161232B (en)
WO (1) WO2016169214A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948000B (en) * 2017-12-25 2021-11-19 瑞斯康达科技发展股份有限公司 Method, device and system for switching main channel and standby channel
CN110011819B (en) * 2018-01-04 2022-04-19 中兴通讯股份有限公司 Method, device, equipment and system for generating SD (secure digital) alarm information
CN112825501A (en) * 2019-11-20 2021-05-21 中兴通讯股份有限公司 Signal degradation processing method, device and system
CN114979988B (en) * 2022-05-07 2023-09-19 中移互联网有限公司 Method and device for issuing short message, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6885632B1 (en) * 2000-12-21 2005-04-26 Nortel Networks Limited Method and system for signal degrade (SD) information passthrough in T-Mux systems
CN101505246A (en) * 2009-03-02 2009-08-12 中兴通讯股份有限公司 Fault detection and recovery method for network tunnel sectional protection mode
CN101562536A (en) * 2009-05-19 2009-10-21 迈普通信技术股份有限公司 Rapid rerouting method for protecting local path
CN102215127A (en) * 2011-06-08 2011-10-12 中兴通讯股份有限公司 Signal degrade processing method, device and node equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719843B (en) * 2009-12-18 2011-11-02 烽火通信科技股份有限公司 Method of LSP linear protection switching in PTN

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6885632B1 (en) * 2000-12-21 2005-04-26 Nortel Networks Limited Method and system for signal degrade (SD) information passthrough in T-Mux systems
CN101505246A (en) * 2009-03-02 2009-08-12 中兴通讯股份有限公司 Fault detection and recovery method for network tunnel sectional protection mode
CN101562536A (en) * 2009-05-19 2009-10-21 迈普通信技术股份有限公司 Rapid rerouting method for protecting local path
CN102215127A (en) * 2011-06-08 2011-10-12 中兴通讯股份有限公司 Signal degrade processing method, device and node equipment

Also Published As

Publication number Publication date
CN106161232A (en) 2016-11-23
WO2016169214A1 (en) 2016-10-27

Similar Documents

Publication Publication Date Title
US8886831B2 (en) System and methodology for fast link failover based on remote upstream failures
US9571383B2 (en) Rerouting technique
EP2763359B1 (en) Communication system, sending device, communication device, failure notification method and non-temporary computer-readable medium storing program
WO2015192518A1 (en) Error detection method, apparatus and system for potn
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
US9425893B1 (en) Methods and apparatus for implementing optical integrated routing with traffic protection
CN106161232B (en) tunnel protection switching method and device
CN102282805B (en) Method for service protection and access device
KR101688682B1 (en) Fast lsp alert mechanism
WO2014206207A1 (en) Route withdrawal method and network device
EP2658177B1 (en) Method for detecting tunnel faults and traffic engineering node
EP1942609B1 (en) A system and method for protecting multicast service path
CN105515816A (en) Processing method and apparatus for detection level information
CN104468208A (en) Detection and recovery method and device for communication faults
CN106330699B (en) Multicast link switching method and device and routing equipment
CN102769552B (en) A kind of method by transmission BFD message during BFD detection LSP and equipment
EP3139527B1 (en) Protection switching method, node and control device
CN104702498A (en) Method and device for reducing the number of optical connections through coordination protection
EP2573977A1 (en) Subnet protection method and device for transport multi-protocol label switching (tmpls) network
WO2011011934A1 (en) Method and apparatus for ethernet tunnel segmentation protection
CN112929261A (en) Fiber breakage preventing method and device for segmented routing tunnel, entrance node and storage medium
CN112073285B (en) Error code notification method and related equipment
CN113489626A (en) Method and device for detecting and notifying path fault
CN102487327B (en) Service switch method and device
CN102571576B (en) The method of Graceful Restart and routing device in a kind of multi-protocol label switching network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant