[go: up one dir, main page]

CN106161232A - Method and device for tunnel protection switching - Google Patents

Method and device for tunnel protection switching Download PDF

Info

Publication number
CN106161232A
CN106161232A CN201510191735.1A CN201510191735A CN106161232A CN 106161232 A CN106161232 A CN 106161232A CN 201510191735 A CN201510191735 A CN 201510191735A CN 106161232 A CN106161232 A CN 106161232A
Authority
CN
China
Prior art keywords
tunnel
path
layer
interface
service degradation
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.)
Granted
Application number
CN201510191735.1A
Other languages
Chinese (zh)
Other versions
CN106161232B (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The method that the invention discloses the switching of a kind of protecting tunnel; the node being applied on tunnel; the method includes: detect that link occurs that business deteriorates; produce the business deterioration warning information of three layer interfaces corresponding to described link, described warning information is encapsulated in Tunnel Notify message the head node sent to through the tunnel of described three layer interfaces;After receiving the Tunnel Notify message carrying warning information, judge self be as described in the head node in tunnel of Tunnel Notify message instruction, then carry out described tunnel protecting hand-off process.Can there is realizing when business deteriorates protection and the switching in tunnel at link in the present invention.The invention also discloses the device of a kind of protecting tunnel switching.

Description

一种隧道保护切换的方法和装置Method and device for tunnel protection switching

技术领域technical field

本发明涉及通信技术领域,尤其涉及的是一种隧道保护切换的方法和装置。The present invention relates to the technical field of communications, in particular to a method and device for tunnel protection switching.

背景技术Background technique

MPLS(Multi-Protocol Label Switching,多协议标签交换)技术,可以将IP报文转发技术巧妙的转换成二层交换技术,提高了数据包的转发速率。随着网络技术的发展,为了满足用户的服务需求,基于MPLS技术,可以构建VPN(Virtual Private Network,虚拟专用网络)网络。MPLS (Multi-Protocol Label Switching, Multi-Protocol Label Switching) technology can subtly convert IP packet forwarding technology into Layer 2 switching technology, improving the forwarding rate of data packets. With the development of network technology, in order to meet the service requirements of users, a VPN (Virtual Private Network, virtual private network) network can be constructed based on the MPLS technology.

RSVP-TE(Resource Reservation Protocol-Traffic Engineering,基于流量工程扩展的资源预留协议)是基于IP协议的资源预留协议。用户通过RSVP协议向网络请求满足特殊服务质量要求的缓存和带宽,中间节点利用RSVP协议在数据传输通路上建立起资源预留并维护该通路,为VPN网络提供了外层的转发路径,通过隧道的相关保护机制以实现相应的服务质量。RSVP-TE (Resource Reservation Protocol-Traffic Engineering, a resource reservation protocol based on traffic engineering extension) is a resource reservation protocol based on the IP protocol. Through the RSVP protocol, the user requests the cache and bandwidth that meet the special service quality requirements from the network. The intermediate node uses the RSVP protocol to establish resource reservation on the data transmission path and maintain the path, providing an outer forwarding path for the VPN network. Through the tunnel The relevant protection mechanism to achieve the corresponding quality of service.

目前,如图1所示,隧道的头节点为P1,隧道的尾节点为P4。现实的网络中,对链路down或者网元断链的情况,隧道都做了相应的保护机制,也即,正常情况下,隧道的转发路径在第一条主路径(P1→P4)上,如果第一条主路径down,会进行第一条路径的主备保护切换,切换到第一条备路径(P1→P2→P4)上,如果第一条备路径down,会计算新的路径,也即第二条主路径(P1→P2→P3→P4),如果计算成功,则切换到第二条主路径上,如果计算不成功,则仍然在第一条备路径上。此后,如果第一条主路径up,隧道在第一条备路径时,会自动回切到第一条主路径上,如果隧道是在第二条主路径上,经过路径重优化后,可以回切到第一条主路径上。Currently, as shown in FIG. 1 , the head node of the tunnel is P1, and the tail node of the tunnel is P4. In the actual network, the tunnel has a corresponding protection mechanism for the link down or network element disconnection, that is, under normal circumstances, the forwarding path of the tunnel is on the first main path (P1→P4), If the first primary path is down, the active/standby protection switchover of the first path will be performed and switched to the first backup path (P1→P2→P4). If the first backup path is down, a new path will be calculated. That is, the second main path (P1→P2→P3→P4), if the calculation is successful, then switch to the second main path; if the calculation is unsuccessful, it is still on the first backup path. Afterwards, if the first main path is up, the tunnel will automatically switch back to the first main path when the first backup path is used. If the tunnel is on the second main path, after path re-optimization, it can switch back to Cut to the first main path.

但是往往现网中会出现链路介于up和down之间的情况,即指链路没有断开,但是链路在数据传输的质量有较大的问题,存在较高的误码率以及丢包的行为,称为链路处于SD(Signal Degrade,业务劣化)状态,此时配置的BFD(Bidirectional Forwarding Detection,双向转发检测机制)检测无法检测出链路的异常状态,部署的隧道保护机制也没有办法做切换保护。However, often in the live network, the link is between up and down, which means that the link is not disconnected, but the quality of data transmission on the link has a big problem, and there is a high bit error rate and loss. The behavior of the packet is called that the link is in the SD (Signal Degrade, service degradation) state. At this time, the configured BFD (Bidirectional Forwarding Detection, bidirectional forwarding detection mechanism) detection cannot detect the abnormal state of the link, and the deployed tunnel protection mechanism is also There is no way to do toggle protection.

发明内容Contents of the invention

本发明所要解决的技术问题是提供一种隧道保护切换的方法和装置,能够在链路出现业务劣化时实现隧道的保护和切换。The technical problem to be solved by the present invention is to provide a method and device for tunnel protection switching, which can realize tunnel protection and switching when service degradation occurs on a link.

为了解决上述技术问题,本发明提供了一种隧道保护切换的方法,应用于隧道上的节点,该方法包括:In order to solve the above-mentioned technical problems, the present invention provides a method for tunnel protection switching, which is applied to nodes on the tunnel, and the method includes:

检测到链路出现业务劣化,产生所述链路对应的三层接口的业务劣化告警信息,将所述告警信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;Detecting that service degradation occurs in the link, generating service degradation warning information of the layer-3 interface corresponding to the link, encapsulating the warning information in a tunnel notification message and sending it to the head node of the tunnel passing through the layer-3 interface;

在接收到携带告警信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行保护切换处理。After receiving the tunnel notification message carrying the alarm information, if it judges that it is the head node of the tunnel indicated by the tunnel notification message, it performs protection switching processing on the tunnel.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

所述方法还包括:The method also includes:

检测到链路业务恢复正常,产生所述链路对应的三层接口的业务恢复的告警恢复信息,将所述告警恢复信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;Detecting that the link business has returned to normal, generating alarm recovery information for the service recovery of the layer-3 interface corresponding to the link, encapsulating the alarm recovery information in a tunnel notification message and sending it to the head of the tunnel passing through the layer-3 interface node;

在接收到携带告警恢复信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行回切处理。After receiving the tunnel notification message carrying the alarm recovery information, if it is judged that it is the head node of the tunnel indicated by the tunnel notification message, then switch back the tunnel.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

检测到链路出现业务劣化,包括:Service degradation on the link is detected, including:

检测到本端设备的端口出现业务劣化;和/或Detecting service degradation on the port of the local device; and/or

接收到与本端设备直连的对端设备通过链路层发现协议LLDP传递的通知消息,所述通知消息中指示双方的直连端口出现业务劣化。The notification message transmitted by the peer device directly connected to the local device through the link layer discovery protocol LLDP is received, and the notification message indicates that service degradation occurs on the directly connected ports of both parties.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

检测到链路出现业务劣化后,还包括:After detecting link service degradation, it also includes:

将出现业务劣化的端口的状态设置为业务劣化状态,通过链路层发现协议LLDP消息向与本端设备的所述端口直连的对端设备发送通知消息,所述通知消息中指示双方的直连端口出现业务劣化。The state of the port where service degradation occurs is set to the service degradation state, and a notification message is sent to the peer device directly connected to the port of the local device through the link layer discovery protocol LLDP message, and the direct connection between the two parties is indicated in the notification message. The service on the connection port is degraded.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

在接收到所述隧道通知消息后,还包括:After receiving the tunnel notification message, it also includes:

如判断自身是所述隧道通知消息指示的隧道的中间节点或尾节点,则转发所述隧道通知消息至所述隧道的头节点。If it is determined that it is an intermediate node or an end node of the tunnel indicated by the tunnel notification message, forward the tunnel notification message to the head node of the tunnel.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:In the case where active/standby protection is not configured for this tunnel, the protection switching process is performed on the tunnel, including performing the following processes:

如所述出现业务劣化的三层接口在本隧道当前的路径上,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上。If the layer-3 interface with service degradation is on the current path of the tunnel, re-optimize the path of the tunnel, and switch the path of the tunnel to a new path if the re-optimization is successful.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:In the case where active/standby protection is not configured for this tunnel, the protection switching process is performed on the tunnel, including performing the following processes:

如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道不处于回切等待过程中,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is not in the process of switching back and waiting, re-optimize the path of the tunnel. If the re-optimization is successful, switch the path of the tunnel to the new path; or

如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道切换前的路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

在本隧道未配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:In the case that the tunnel is not configured with active/standby protection, the tunnel is switched back, including the following processing:

如状态恢复正常的三层接口在本隧道切换前的路径上,则对本隧道进行路径重优化,如重优化成功,则将隧道切换到以前的路径上。If the Layer 3 interface whose state has returned to normal is on the path before the switchover of the tunnel, re-optimize the path of the tunnel. If the re-optimization succeeds, switch the tunnel to the previous path.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:In the case where active/standby protection is configured for this tunnel, the protection switching processing is performed on the tunnel, including the following processing:

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface with service degradation is on the current main path of the tunnel, and all the layer-3 interfaces on the backup path of the tunnel are in normal state, switch the tunnel to the backup path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current primary path of the tunnel, and there is an abnormal Layer 3 interface on the backup path of the tunnel, re-optimize the primary path of the tunnel. If the re-optimization is successful, then switch this tunnel to the new main path; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上。If the layer-3 interface with service degradation is on the current standby path of the tunnel, re-optimize the main path of the tunnel, and switch the tunnel to the new main path if the re-optimization is successful.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:In the case where active/standby protection is configured for this tunnel, the protection switching processing is performed on the tunnel, including the following processing:

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not waiting for switchback, and all layer-3 interfaces on the backup path of the tunnel are in normal status, then the switching the tunnel to the backup path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not in the process of waiting for switchback, and there is an abnormal layer-3 interface on the backup path of the tunnel, then the The main path is re-optimized. If the re-optimization is successful, switch the tunnel to the new main path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current main path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道不处于回切等待过程中,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current standby path of the tunnel, and the tunnel is not in the process of switching back, re-optimize the main path of the tunnel. If the re-optimization is successful, switch the tunnel onto the new primary path; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current backup path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道切换前的主路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the main path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

在本隧道配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:In the case where active/standby protection is configured for this tunnel, performing switchback processing on the tunnel includes performing the following processing:

如隧道当前在备路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则将隧道切换到以前的主路径上;或者If the tunnel is currently on the backup path, if the Layer 3 interface whose state has recovered to normal is on the primary path before the switchover of this tunnel, switch the tunnel to the previous primary path; or

如隧道当前在主路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则对隧道进行路径重优化,重优化成功后,将隧道切换到以前的主路径上。If the tunnel is currently on the main path, and if the Layer 3 interface whose state has returned to normal is on the main path before the tunnel switchover, re-optimize the tunnel path. After the re-optimization is successful, switch the tunnel to the previous main path.

进一步地,该方法还包括下述特点:Further, the method also includes the following features:

所述隧道通知消息为基于流量工程扩展的资源预留协议RSVP-TE消息。The tunnel notification message is a traffic engineering extension based resource reservation protocol RSVP-TE message.

为了解决上述技术问题,本发明提供了一种隧道保护切换的装置,应用于隧道上的节点,包括:In order to solve the above technical problems, the present invention provides a device for tunnel protection switching, which is applied to nodes on the tunnel, including:

业务检测模块,用于检测到链路出现业务劣化,产生所述链路对应的三层接口的业务劣化告警信息,将所述告警信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;A service detection module, configured to detect service degradation on a link, generate service degradation warning information on a Layer 3 interface corresponding to the link, encapsulate the warning information in a tunnel notification message and send it to the Layer 3 interface through the the head node of the tunnel;

告警处理模块,用于在接收到携带告警信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行保护切换处理。The alarm processing module is configured to perform protection switching processing on the tunnel if it determines that it is the head node of the tunnel indicated by the tunnel notification message after receiving the tunnel notification message carrying the alarm information.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

所述装置还包括告警恢复处理模块:The device also includes an alarm recovery processing module:

业务检测模块,还用于检测到链路业务恢复正常,产生所述链路对应的三层接口的业务恢复的告警恢复信息,将所述告警恢复信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;The service detection module is also used to detect that the link service has returned to normal, generate alarm recovery information for the service recovery of the layer-3 interface corresponding to the link, and encapsulate the alarm recovery information in a tunnel notification message and send it to the The head node of the tunnel of the Layer 3 interface;

告警恢复处理模块,用于在接收到携带告警恢复信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行回切处理。The alarm recovery processing module is configured to, after receiving the tunnel notification message carrying the alarm recovery information, perform switchback processing on the tunnel if it determines that it is the head node of the tunnel indicated by the tunnel notification message.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

业务检测模块,用于检测到链路出现业务劣化,包括:The business detection module is used to detect the business degradation of the link, including:

检测到本端设备的端口出现业务劣化;和/或Detecting service degradation on the port of the local device; and/or

接收到与本端设备直连的对端设备通过链路层发现协议LLDP传递的通知消息,所述通知消息中指示双方的直连端口出现业务劣化。The notification message transmitted by the peer device directly connected to the local device through the link layer discovery protocol LLDP is received, and the notification message indicates that service degradation occurs on the directly connected ports of both parties.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

业务检测模块,还用于在检测到链路出现业务劣化后,将出现业务劣化的端口的状态设置为业务劣化状态,通过链路层发现协议LLDP消息向与本端设备的所述端口直连的对端设备发送通知消息,所述通知消息中指示双方的直连端口出现业务劣化。The service detection module is also used to set the state of the port with service degradation to the service degradation state after detecting that the link has service degradation, and to directly connect to the port of the local device through the link layer discovery protocol LLDP message The peer device of the device sends a notification message, and the notification message indicates that service degradation occurs on the directly connected ports of both parties.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

告警处理模块,还用于在接收到携带告警信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的中间节点或尾节点,则转发所述隧道通知消息至所述隧道的头节点。The alarm processing module is further configured to, after receiving the tunnel notification message carrying the alarm information, forward the tunnel notification message to the tunnel node if it judges that it is an intermediate node or tail node of the tunnel indicated by the tunnel notification message. head node.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

告警恢复处理模块,还用于在接收到携带告警恢复信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的中间节点或尾节点,则转发所述隧道通知消息至所述隧道的头节点。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 the The head node of the tunnel.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

告警处理模块,用于在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:The alarm processing module is used to perform protection switching processing on the tunnel when the tunnel is not configured with active/standby protection, including performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的路径上,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上。If the layer-3 interface with service degradation is on the current path of the tunnel, re-optimize the path of the tunnel, and switch the path of the tunnel to a new path if the re-optimization is successful.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

告警处理模块,用于在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:The alarm processing module is used to perform protection switching processing on the tunnel when the tunnel is not configured with active/standby protection, including performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道不处于回切等待过程中,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is not in the process of switching back and waiting, re-optimize the path of the tunnel. If the re-optimization is successful, switch the path of the tunnel to the new path; or

如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道切换前的路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

告警恢复处理模块,用于在本隧道未配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:The alarm recovery processing module is used to switch back the tunnel when the tunnel is not configured with active/standby protection, including performing the following processing:

如状态恢复正常的三层接口在本隧道切换前的路径上,则对本隧道进行路径重优化,如重优化成功,则将隧道切换到以前的路径上。If the Layer 3 interface whose state has returned to normal is on the path before the switchover of the tunnel, re-optimize the path of the tunnel. If the re-optimization succeeds, switch the tunnel to the previous path.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

告警处理模块,用于在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:The alarm processing module is configured to perform protection switching processing on the tunnel when active/standby protection is configured for the tunnel, including performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface with service degradation is on the current main path of the tunnel, and all the layer-3 interfaces on the backup path of the tunnel are in normal state, switch the tunnel to the backup path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current primary path of the tunnel, and there is an abnormal Layer 3 interface on the backup path of the tunnel, re-optimize the primary path of the tunnel. If the re-optimization is successful, then switch this tunnel to the new main path; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上。If the layer-3 interface with service degradation is on the current standby path of the tunnel, re-optimize the main path of the tunnel, and switch the tunnel to the new main path if the re-optimization is successful.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

告警处理模块,用于在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:The alarm processing module is configured to perform protection switching processing on the tunnel when active/standby protection is configured for the tunnel, including performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not waiting for switchback, and all layer-3 interfaces on the backup path of the tunnel are in normal status, then the The tunnel is switched to the standby path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not in the process of waiting for switchback, and there is an abnormal layer-3 interface on the backup path of the tunnel, then the The main path is re-optimized. If the re-optimization is successful, switch the tunnel to the new main path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current main path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道不处于回切等待过程中,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current standby path of the tunnel, and the tunnel is not in the process of switching back, re-optimize the main path of the tunnel. If the re-optimization is successful, switch the tunnel onto the new primary path; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current backup path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道切换前的主路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the main path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

告警恢复处理模块,用于在本隧道配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:The alarm recovery processing module is used to switch back the tunnel when the tunnel is configured with active/standby protection, including performing the following processing:

如隧道当前在备路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则将隧道切换到以前的主路径上;或者If the tunnel is currently on the backup path, if the Layer 3 interface whose state has recovered to normal is on the primary path before the switchover of this tunnel, switch the tunnel to the previous primary path; or

如隧道当前在主路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则对隧道进行路径重优化,重优化成功后,将隧道切换到以前的主路径上。If the tunnel is currently on the main path, and if the Layer 3 interface whose state has returned to normal is on the main path before the tunnel switchover, re-optimize the tunnel path. After the re-optimization is successful, switch the tunnel to the previous main path.

进一步地,该装置还包括下述特点:Further, the device also includes the following features:

所述隧道通知消息为基于流量工程扩展的资源预留协议RSVP-TE消息。The tunnel notification message is a traffic engineering extension based resource reservation protocol RSVP-TE message.

与现有技术相比,本发明提供的一种隧道保护切换的方法和装置,隧道上的节点检测到链路出现业务劣化后,产生所述链路对应的三层接口的业务劣化告警信息,将所述告警信息通过RSVP-TE消息通知隧道的头节点,隧道的头节点接收到告警通知后进行保护切换处理,并且,在检测到链路业务恢复后,通过RSVP-TE消息将告警恢复信息通知给隧道的头节点,隧道的头节点及时进行回切处理,本发明能够在链路出现业务劣化和业务恢复时实现隧道的保护和切换。Compared with the prior art, the present invention provides a method and device for tunnel protection switching. After a node on the tunnel detects service degradation on a link, it generates service degradation alarm information on a layer-3 interface corresponding to the link. Notifying the head node of the tunnel of the alarm information through the RSVP-TE message, the head node of the tunnel performs protection switching processing after receiving the alarm notification, and, after detecting that the link service is restored, sends the alarm recovery information through the RSVP-TE message The head node of the tunnel is notified, and the head node of the tunnel performs switchback processing in time, and the present invention can realize protection and switching of the tunnel when service degradation and service recovery occur on the link.

附图说明Description of drawings

图1为现有技术中隧道的主备路径示意图。FIG. 1 is a schematic diagram of active and standby paths of tunnels in the prior art.

图2为本发明实施例的一种隧道保护切换的方法的流程图。Fig. 2 is a flow chart of a method for tunnel protection switching according to an embodiment of the present invention.

图3为本发明实施例的一种隧道保护切换的装置的结构示意图。FIG. 3 is a schematic structural diagram of an apparatus for tunnel protection switching according to an embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

如图2所示,本发明实施例提供了一种隧道保护切换的方法,应用于隧道上的节点,该方法包括:As shown in Figure 2, the embodiment of the present invention provides a method for tunnel protection switching, which is applied to nodes on the tunnel, and the method includes:

S10,检测到链路出现业务劣化,产生所述链路对应的三层接口的业务劣化告警信息,将所述告警信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;S10. Detecting service degradation on the link, generating service degradation alarm information on the layer-3 interface corresponding to the link, encapsulating the alarm information in a tunnel notification message and sending it to the head node of the tunnel passing through the layer-3 interface ;

S20,在接收到携带告警信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行保护切换处理;S20. After receiving the tunnel notification message carrying the alarm information, if it is judged that it is the head node of the tunnel indicated by the tunnel notification message, perform protection switching processing on the tunnel;

所述方法还可以包括下述特点:The method may also include the following features:

其中,所述方法还包括:Wherein, the method also includes:

检测到链路业务恢复正常,产生所述链路对应的三层接口的业务恢复的告警恢复信息,将所述告警恢复信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;Detecting that the link business has returned to normal, generating alarm recovery information for the service recovery of the layer-3 interface corresponding to the link, encapsulating the alarm recovery information in a tunnel notification message and sending it to the head of the tunnel passing through the layer-3 interface node;

在接收到携带告警恢复信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行回切处理;After receiving the tunnel notification message carrying the alarm recovery information, if it is judged that it is the head node of the tunnel indicated by the tunnel notification message, then switch back the tunnel;

其中,检测到链路出现业务劣化,包括:Among them, service degradation of the link is detected, including:

检测到本端设备的端口出现业务劣化;和Detecting service degradation on the port of the local device; and

接收到与本端设备直连的对端设备通过LLDP(Link Layer DiscoveryProtocol,链路层发现协议)传递的通知消息,所述通知消息中指示双方的直连端口出现业务劣化;Receive a notification message transmitted by the peer device directly connected to the local device through LLDP (Link Layer Discovery Protocol, Link Layer Discovery Protocol), in which the notification message indicates that the direct connection ports of both parties have service degradation;

其中,检测到端口出现业务劣化,包括:检测到端口接收数据的误码率超过阈值,则判定端口出现业务劣化。Wherein, detecting that service degradation occurs on the port includes: detecting that the bit error rate of data received by the port exceeds a threshold, and then determining that service degradation occurs on the port.

其中,检测到链路出现业务劣化后,还包括:Among them, after the service degradation of the link is detected, it also includes:

将出现业务劣化的端口的状态设置为业务劣化SD状态,通过LLDP(LinkLayer Discovery Protocol,链路层发现协议)消息向与本端设备的所述端口直连的对端设备发送通知消息,所述通知消息中指示双方的直连端口出现业务劣化;The state of the port where the service degradation occurs is set to the service degradation SD state, and a notification message is sent to the peer device directly connected to the port of the local device through an LLDP (LinkLayer Discovery Protocol, Link Layer Discovery Protocol) message, the said The notification message indicates that the direct connection ports of both parties have experienced service degradation;

其中,检测到链路出现业务劣化后,还包括:Among them, after the service degradation of the link is detected, it also includes:

将所述链路对应的三层接口的路由链路消耗值设置为最大,收敛路由;Set the routing link consumption value of the layer-3 interface corresponding to the link to the maximum to converge routing;

其中,在接收到携带告警信息或告警恢复信息的隧道通知消息后,还包括:Among them, after receiving the tunnel notification message carrying alarm information or alarm recovery information, it also includes:

如判断自身是所述隧道通知消息指示的隧道的中间节点或尾节点,则转发所述隧道通知消息至所述隧道的头节点;If it is judged that it is an intermediate node or tail node of the tunnel indicated by the tunnel notification message, then forward the tunnel notification message to the head node of the tunnel;

其中,在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:Wherein, in the case where active/standby protection is not configured for this tunnel, performing protection switching processing on the tunnel includes performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的路径上,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上;If the layer-3 interface where the service degradation occurs is on the current path of the tunnel, re-optimize the path of the tunnel, and if the re-optimization is successful, switch the path of the tunnel to a new path;

其中,在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:Wherein, in the case where active/standby protection is not configured for this tunnel, performing protection switching processing on the tunnel includes performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道不处于回切等待过程中,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is not in the process of switching back and waiting, re-optimize the path of the tunnel. If the re-optimization is successful, switch the path of the tunnel to the new path; or

如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道切换前的路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切;If the layer-3 interface with service degradation described above is on the path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and switchback is not performed;

其中,在本隧道未配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:Wherein, in the case where active/standby protection is not configured for this tunnel, performing switchback processing on the tunnel includes performing the following processing:

如状态恢复正常的三层接口在本隧道切换前的路径上,则对本隧道进行路径重优化,如重优化成功,则将隧道切换到以前的路径上;If the Layer 3 interface whose state has returned to normal is on the path before the switchover of this tunnel, re-optimize the path of this tunnel, and if the re-optimization is successful, switch the tunnel to the previous path;

其中,在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:Wherein, in the case where active/standby protection is configured for this tunnel, performing protection switching processing on the tunnel includes performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface with service degradation is on the current main path of the tunnel, and all the layer-3 interfaces on the backup path of the tunnel are in normal state, switch the tunnel to the backup path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current primary path of the tunnel, and there is an abnormal Layer 3 interface on the backup path of the tunnel, re-optimize the primary path of the tunnel. If the re-optimization is successful, then switch this tunnel to the new main path; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;If the Layer 3 interface with service degradation is on the current standby path of the tunnel, re-optimize the main path of the tunnel, and if the re-optimization is successful, switch the tunnel to the new main path;

其中,在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:Wherein, in the case where active/standby protection is configured for this tunnel, performing protection switching processing on the tunnel includes performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not waiting for switchback, and all layer-3 interfaces on the backup path of the tunnel are in normal status, then the switching the tunnel to the backup path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not in the process of waiting for switchback, and there is an abnormal layer-3 interface on the backup path of the tunnel, then the The main path is re-optimized. If the re-optimization is successful, switch the tunnel to the new main path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current main path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道不处于回切等待过程中,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current standby path of the tunnel, and the tunnel is not in the process of switching back, re-optimize the main path of the tunnel. If the re-optimization is successful, switch the tunnel onto the new primary path; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current backup path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道切换前的主路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切;If the layer-3 interface with service degradation described above is on the main path before the switchover of this tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and switchback is not performed;

其中,在本隧道配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:Wherein, in the case where active/standby protection is configured for this tunnel, performing switchback processing on the tunnel includes performing the following processing:

如隧道当前在备路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则将隧道切换到以前的主路径上;或者If the tunnel is currently on the backup path, if the Layer 3 interface whose state has recovered to normal is on the primary path before the switchover of this tunnel, switch the tunnel to the previous primary path; or

如隧道当前在主路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则对隧道进行路径重优化,重优化成功后,将隧道切换到以前的主路径上。If the tunnel is currently on the main path, and if the Layer 3 interface whose state has returned to normal is on the main path before the tunnel switchover, re-optimize the tunnel path. After the re-optimization is successful, switch the tunnel to the previous main path.

其中,所述携带告警信息或告警恢复信息的隧道通知消息为基于流量工程扩展的资源预留协议RSVP-TE消息。Wherein, the tunnel notification message carrying alarm information or alarm recovery information is a traffic engineering-based extended resource reservation protocol RSVP-TE message.

如图3所示,本发明实施例提供了一种隧道保护切换的装置,应用于隧道上的节点,包括:As shown in Figure 3, the embodiment of the present invention provides a device for tunnel protection switching, which is applied to nodes on the tunnel, including:

业务检测模块,用于检测到链路出现业务劣化,将所述链路对应的三层接口的状态设置为业务劣化状态,产生告警信息,将所述告警信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;The service detection module is used to detect service degradation in the link, set the state of the layer-3 interface corresponding to the link to the service degradation state, generate alarm information, and encapsulate the alarm information in a tunnel notification message and send it to the The head node of the tunnel of the layer-3 interface;

告警处理模块,用于在接收到携带告警信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行保护切换处理。The alarm processing module is configured to perform protection switching processing on the tunnel if it determines that it is the head node of the tunnel indicated by the tunnel notification message after receiving the tunnel notification message carrying the alarm information.

所述装置还可以包括下述特点:The device may also include the following features:

其中,所述装置还包括告警恢复处理模块:Wherein, the device also includes an alarm recovery processing module:

业务检测模块,还用于检测到链路业务恢复正常,产生所述链路对应的三层接口的业务恢复的告警恢复信息,将所述告警恢复信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;The service detection module is also used to detect that the link service has returned to normal, generate alarm recovery information for the service recovery of the layer-3 interface corresponding to the link, and encapsulate the alarm recovery information in a tunnel notification message and send it to the The head node of the tunnel of the Layer 3 interface;

告警恢复处理模块,用于在接收到携带告警恢复信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行回切处理。The alarm recovery processing module is configured to, after receiving the tunnel notification message carrying the alarm recovery information, perform switchback processing on the tunnel if it determines that it is the head node of the tunnel indicated by the tunnel notification message.

其中,业务检测模块,用于检测到链路出现业务劣化,包括:Among them, the business detection module is used to detect the business degradation of the link, including:

检测到本端设备的端口出现业务劣化;和/或Detecting service degradation on the port of the local device; and/or

接收到与本端设备直连的对端设备通过链路层发现协议LLDP传递的通知消息,所述通知消息中指示双方的直连端口出现业务劣化。The notification message transmitted by the peer device directly connected to the local device through the link layer discovery protocol LLDP is received, and the notification message indicates that service degradation occurs on the directly connected ports of both parties.

其中,业务检测模块,还用于在检测到链路出现业务劣化后,将出现业务劣化的端口的状态设置为业务劣化状态,通过链路层发现协议LLDP消息向与本端设备的所述端口直连的对端设备发送通知消息,所述通知消息中指示双方的直连端口出现业务劣化。Wherein, the business detection module is also used to set the state of the port where the service degradation occurs to the service degradation state after detecting that the service degradation occurs in the link, and send the link layer discovery protocol LLDP message to the port of the local device through the link layer discovery protocol LLDP message The direct-connected peer device sends a notification message, and the notification message indicates that service degradation occurs on the directly-connected ports of both parties.

其中,告警处理模块,还用于在接收到携带告警信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的中间节点或尾节点,则转发所述隧道通知消息至所述隧道的头节点。Wherein, the alarm processing module is further configured to, after receiving the tunnel notification message carrying the alarm information, forward the tunnel notification message to the The head node of the tunnel.

其中,告警恢复处理模块,还用于在接收到携带告警恢复信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的中间节点或尾节点,则转发所述隧道通知消息至所述隧道的头节点。Wherein, 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 The head node of the tunnel.

其中,告警处理模块,用于在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:Wherein, the alarm processing module is used to perform protection switching processing on the tunnel when the tunnel is not configured with active/standby protection, including performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的路径上,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上。If the layer-3 interface with service degradation is on the current path of the tunnel, re-optimize the path of the tunnel, and switch the path of the tunnel to a new path if the re-optimization is successful.

其中,告警处理模块,用于在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:Wherein, the alarm processing module is used to perform protection switching processing on the tunnel when the tunnel is not configured with active/standby protection, including performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道不处于回切等待过程中,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is not in the process of switching back and waiting, re-optimize the path of the tunnel. If the re-optimization is successful, switch the path of the tunnel to the new path; or

如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道切换前的路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed.

其中,告警恢复处理模块,用于在本隧道未配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:Wherein, the alarm recovery processing module is used to switch back the tunnel when the tunnel is not configured with active/standby protection, including performing the following processing:

如状态恢复正常的三层接口在本隧道切换前的路径上,则对本隧道进行路径重优化,如重优化成功,则将隧道切换到以前的路径上。If the Layer 3 interface whose state has returned to normal is on the path before the switchover of the tunnel, re-optimize the path of the tunnel. If the re-optimization succeeds, switch the tunnel to the previous path.

其中,告警处理模块,用于在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:Wherein, the alarm processing module is used to perform protection switching processing on the tunnel when active/standby protection is configured for this tunnel, including performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface with service degradation is on the current main path of the tunnel, and all the layer-3 interfaces on the backup path of the tunnel are in normal state, switch the tunnel to the backup path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current primary path of the tunnel, and there is an abnormal Layer 3 interface on the backup path of the tunnel, re-optimize the primary path of the tunnel. If the re-optimization is successful, then switch this tunnel to the new main path; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上。If the layer-3 interface with service degradation is on the current standby path of the tunnel, re-optimize the main path of the tunnel, and switch the tunnel to the new main path if the re-optimization is successful.

其中,告警处理模块,用于在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:Wherein, the alarm processing module is used to perform protection switching processing on the tunnel when active/standby protection is configured for this tunnel, including performing the following processing:

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not waiting for switchback, and all layer-3 interfaces on the backup path of the tunnel are in normal status, then the switching the tunnel to the backup path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not in the process of waiting for switchback, and there is an abnormal layer-3 interface on the backup path of the tunnel, then the The main path is re-optimized. If the re-optimization is successful, switch the tunnel to the new main path; or

如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current main path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道不处于回切等待过程中,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current standby path of the tunnel, and the tunnel is not in the process of switching back, re-optimize the main path of the tunnel. If the re-optimization is successful, switch the tunnel onto the new primary path; or

如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current backup path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or

如所述出现业务劣化的三层接口在本隧道切换前的主路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the main path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed.

其中,告警恢复处理模块,用于在本隧道配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:Wherein, the alarm recovery processing module is used to switch back the tunnel when active/standby protection is configured for this tunnel, including performing the following processing:

如隧道当前在备路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则将隧道切换到以前的主路径上;或者If the tunnel is currently on the backup path, if the Layer 3 interface whose state has recovered to normal is on the primary path before the switchover of this tunnel, switch the tunnel to the previous primary path; or

如隧道当前在主路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则对隧道进行路径重优化,重优化成功后,将隧道切换到以前的主路径上。If the tunnel is currently on the main path, and if the Layer 3 interface whose state has returned to normal is on the main path before the tunnel switchover, re-optimize the tunnel path. After the re-optimization is successful, switch the tunnel to the previous main path.

其中,所述隧道通知消息为基于流量工程扩展的资源预留协议RSVP-TE消息。Wherein, the tunnel notification message is a traffic engineering extension based resource reservation protocol RSVP-TE message.

上述实施例提供的一种隧道保护切换的方法和装置,隧道上的节点检测到链路出现业务劣化后,产生所述链路对应的三层接口的业务劣化告警信息,将所述告警信息通过RSVP-TE消息通知隧道的头节点,隧道的头节点接收到告警通知后进行保护切换处理,并且,在检测到链路业务恢复后,通过RSVP-TE消息将告警恢复信息通知给隧道的头节点,隧道的头节点及时进行回切处理,本发明能够在链路出现业务劣化和业务恢复时实现隧道的保护和切换。In the method and device for tunnel protection switching provided by the above-mentioned embodiments, after a node on the tunnel detects service degradation of a link, it generates service degradation warning information of a Layer 3 interface corresponding to the link, and transmits the warning information through The RSVP-TE message notifies the head node of the tunnel. After receiving the alarm notification, the head node of the tunnel performs protection switching processing, and, after detecting link service recovery, notifies the head node of the tunnel of the alarm recovery information through the RSVP-TE message , the head node of the tunnel performs switchback processing in time, and the present invention can realize tunnel protection and switching when service degradation and service recovery occur in the link.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the above embodiments can also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiments can be implemented in the form of hardware, or can be implemented in the form of software function modules. The form is realized. The present invention is not limited to any specific combination of hardware and software.

需要说明的是,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。It should be noted that the present invention can also have other various embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these Corresponding changes and deformations should belong to the scope of protection of the appended claims of the present invention.

Claims (25)

1.一种隧道保护切换的方法,应用于隧道上的节点,该方法包括:1. A method for tunnel protection switching, applied to nodes on the tunnel, the method comprising: 检测到链路出现业务劣化,产生所述链路对应的三层接口的业务劣化告警信息,将所述告警信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;Detecting that service degradation occurs in the link, generating service degradation warning information of the layer-3 interface corresponding to the link, encapsulating the warning information in a tunnel notification message and sending it to the head node of the tunnel passing through the layer-3 interface; 在接收到携带告警信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行保护切换处理。After receiving the tunnel notification message carrying the alarm information, if it judges that it is the head node of the tunnel indicated by the tunnel notification message, it performs protection switching processing on the tunnel. 2.如权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising: 检测到链路业务恢复正常,产生所述链路对应的三层接口的业务恢复的告警恢复信息,将所述告警恢复信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;Detecting that the link business has returned to normal, generating alarm recovery information for the service recovery of the layer-3 interface corresponding to the link, encapsulating the alarm recovery information in a tunnel notification message and sending it to the head of the tunnel passing through the layer-3 interface node; 在接收到携带告警恢复信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行回切处理。After receiving the tunnel notification message carrying the alarm recovery information, if it is judged that it is the head node of the tunnel indicated by the tunnel notification message, then switch back the tunnel. 3.如权利要求1或2所述的方法,其特征在于:3. The method according to claim 1 or 2, characterized in that: 检测到链路出现业务劣化,包括:Service degradation on the link is detected, including: 检测到本端设备的端口出现业务劣化;和/或Detecting service degradation on the port of the local device; and/or 接收到与本端设备直连的对端设备通过链路层发现协议LLDP传递的通知消息,所述通知消息中指示双方的直连端口出现业务劣化。The notification message transmitted by the peer device directly connected to the local device through the link layer discovery protocol LLDP is received, and the notification message indicates that service degradation occurs on the directly connected ports of both parties. 4.如权利要求1或2所述的方法,其特征在于:4. The method according to claim 1 or 2, characterized in that: 检测到链路出现业务劣化后,还包括:After detecting link service degradation, it also includes: 将出现业务劣化的端口的状态设置为业务劣化状态,通过链路层发现协议LLDP消息向与本端设备的所述端口直连的对端设备发送通知消息,所述通知消息中指示双方的直连端口出现业务劣化。The state of the port where service degradation occurs is set to the service degradation state, and a notification message is sent to the peer device directly connected to the port of the local device through the link layer discovery protocol LLDP message, and the direct connection between the two parties is indicated in the notification message. The service on the connection port is degraded. 5.如权利要求1或2所述的方法,其特征在于:5. The method according to claim 1 or 2, characterized in that: 在接收到所述隧道通知消息后,还包括:After receiving the tunnel notification message, it also includes: 如判断自身是所述隧道通知消息指示的隧道的中间节点或尾节点,则转发所述隧道通知消息至所述隧道的头节点。If it is determined that it is an intermediate node or an end node of the tunnel indicated by the tunnel notification message, forward the tunnel notification message to the head node of the tunnel. 6.如权利要求1或2所述的方法,其特征在于:6. The method according to claim 1 or 2, characterized in that: 在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:In the case where active/standby protection is not configured for this tunnel, the protection switching process is performed on the tunnel, including performing the following processes: 如所述出现业务劣化的三层接口在本隧道当前的路径上,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上。If the layer-3 interface with service degradation is on the current path of the tunnel, re-optimize the path of the tunnel, and switch the path of the tunnel to a new path if the re-optimization is successful. 7.如权利要求1或2所述的方法,其特征在于:7. The method according to claim 1 or 2, characterized in that: 在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:In the case where active/standby protection is not configured for this tunnel, the protection switching process is performed on the tunnel, including performing the following processes: 如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道不处于回切等待过程中,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is not in the process of switching back and waiting, re-optimize the path of the tunnel. If the re-optimization is successful, switch the path of the tunnel to the new path; or 如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is waiting for switchback, end the waiting and perform switchback; or 如所述出现业务劣化的三层接口在本隧道切换前的路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed. 8.如权利要求2所述的方法,其特征在于:8. The method of claim 2, wherein: 在本隧道未配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:In the case that the tunnel is not configured with active/standby protection, the tunnel is switched back, including the following processing: 如状态恢复正常的三层接口在本隧道切换前的路径上,则对本隧道进行路径重优化,如重优化成功,则将隧道切换到以前的路径上。If the Layer 3 interface whose state has returned to normal is on the path before the switchover of the tunnel, re-optimize the path of the tunnel. If the re-optimization succeeds, switch the tunnel to the previous path. 9.如权利要求1或2所述的方法,其特征在于:9. The method according to claim 1 or 2, characterized in that: 在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:In the case where active/standby protection is configured for this tunnel, the protection switching processing is performed on the tunnel, including the following processing: 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface with service degradation is on the current main path of the tunnel, and all the layer-3 interfaces on the backup path of the tunnel are in normal state, switch the tunnel to the backup path; or 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current primary path of the tunnel, and there is an abnormal Layer 3 interface on the backup path of the tunnel, re-optimize the primary path of the tunnel. If the re-optimization is successful, then switch this tunnel to the new main path; or 如所述出现业务劣化的三层接口在本隧道当前的备路径上,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上。If the layer-3 interface with service degradation is on the current standby path of the tunnel, re-optimize the main path of the tunnel, and switch the tunnel to the new main path if the re-optimization is successful. 10.如权利要求1或2所述的方法,其特征在于:10. The method according to claim 1 or 2, characterized in that: 在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:In the case where active/standby protection is configured for this tunnel, the protection switching processing is performed on the tunnel, including the following processing: 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not waiting for switchback, and all layer-3 interfaces on the backup path of the tunnel are in normal status, then the switching the tunnel to the backup path; or 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not in the process of waiting for switchback, and there is an abnormal layer-3 interface on the backup path of the tunnel, then the The main path is re-optimized. If the re-optimization is successful, switch the tunnel to the new main path; or 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current main path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or 如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道不处于回切等待过程中,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current standby path of the tunnel, and the tunnel is not in the process of switching back, re-optimize the main path of the tunnel. If the re-optimization is successful, switch the tunnel onto the new primary path; or 如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current backup path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or 如所述出现业务劣化的三层接口在本隧道切换前的主路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the main path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed. 11.如权利要求2所述的方法,其特征在于:11. The method of claim 2, wherein: 在本隧道配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:In the case where active/standby protection is configured for this tunnel, performing switchback processing on the tunnel includes performing the following processing: 如隧道当前在备路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则将隧道切换到以前的主路径上;或者If the tunnel is currently on the backup path, if the Layer 3 interface whose state has recovered to normal is on the primary path before the switchover of this tunnel, switch the tunnel to the previous primary path; or 如隧道当前在主路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则对隧道进行路径重优化,重优化成功后,将隧道切换到以前的主路径上。If the tunnel is currently on the main path, and if the Layer 3 interface whose state has returned to normal is on the main path before the tunnel switchover, re-optimize the tunnel path. After the re-optimization is successful, switch the tunnel to the previous main path. 12.如权利要求1或2所述的方法,其特征在于:12. The method of claim 1 or 2, wherein: 所述隧道通知消息为基于流量工程扩展的资源预留协议RSVP-TE消息。The tunnel notification message is a traffic engineering extension based resource reservation protocol RSVP-TE message. 13.一种隧道保护切换的装置,应用于隧道上的节点,包括:13. A device for tunnel protection switching, applied to nodes on the tunnel, comprising: 业务检测模块,用于检测到链路出现业务劣化,产生所述链路对应的三层接口的业务劣化告警信息,将所述告警信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;A service detection module, configured to detect service degradation on a link, generate service degradation warning information on a Layer 3 interface corresponding to the link, encapsulate the warning information in a tunnel notification message and send it to the Layer 3 interface through the the head node of the tunnel; 告警处理模块,用于在接收到携带告警信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行保护切换处理。The alarm processing module is configured to perform protection switching processing on the tunnel if it determines that it is the head node of the tunnel indicated by the tunnel notification message after receiving the tunnel notification message carrying the alarm information. 14.如权利要求13所述的装置,其特征在于,还包括告警恢复处理模块:14. The device according to claim 13, further comprising an alarm recovery processing module: 业务检测模块,还用于检测到链路业务恢复正常,产生所述链路对应的三层接口的业务恢复的告警恢复信息,将所述告警恢复信息封装在隧道通知消息中发送至经过所述三层接口的隧道的头节点;The service detection module is also used to detect that the link service has returned to normal, generate alarm recovery information for the service recovery of the layer-3 interface corresponding to the link, and encapsulate the alarm recovery information in a tunnel notification message and send it to the The head node of the tunnel of the Layer 3 interface; 告警恢复处理模块,用于在接收到携带告警恢复信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的头节点,则对所述隧道进行回切处理。The alarm recovery processing module is configured to, after receiving the tunnel notification message carrying the alarm recovery information, perform switchback processing on the tunnel if it determines that it is the head node of the tunnel indicated by the tunnel notification message. 15.如权利要求13或14所述的装置,其特征在于:15. The device according to claim 13 or 14, characterized in that: 业务检测模块,用于检测到链路出现业务劣化,包括:The business detection module is used to detect the business degradation of the link, including: 检测到本端设备的端口出现业务劣化;和/或Detecting service degradation on the port of the local device; and/or 接收到与本端设备直连的对端设备通过链路层发现协议LLDP传递的通知消息,所述通知消息中指示双方的直连端口出现业务劣化。The notification message transmitted by the peer device directly connected to the local device through the link layer discovery protocol LLDP is received, and the notification message indicates that service degradation occurs on the directly connected ports of both parties. 16.如权利要求13或14所述的装置,其特征在于:16. The device according to claim 13 or 14, characterized in that: 业务检测模块,还用于在检测到链路出现业务劣化后,将出现业务劣化的端口的状态设置为业务劣化状态,通过链路层发现协议LLDP消息向与本端设备的所述端口直连的对端设备发送通知消息,所述通知消息中指示双方的直连端口出现业务劣化。The service detection module is also used to set the state of the port with service degradation to the service degradation state after detecting that the link has service degradation, and to directly connect to the port of the local device through the link layer discovery protocol LLDP message The peer device of the device sends a notification message, and the notification message indicates that service degradation occurs on the directly connected ports of both parties. 17.如权利要求13或14所述的装置,其特征在于:17. The device according to claim 13 or 14, characterized in that: 告警处理模块,还用于在接收到携带告警信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的中间节点或尾节点,则转发所述隧道通知消息至所述隧道的头节点。The alarm processing module is further configured to, after receiving the tunnel notification message carrying the alarm information, forward the tunnel notification message to the tunnel node if it judges that it is an intermediate node or tail node of the tunnel indicated by the tunnel notification message. head node. 18.如权利要求14所述的装置,其特征在于:18. The apparatus of claim 14, wherein: 告警恢复处理模块,还用于在接收到携带告警恢复信息的隧道通知消息后,如判断自身是所述隧道通知消息指示的隧道的中间节点或尾节点,则转发所述隧道通知消息至所述隧道的头节点。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 the The head node of the tunnel. 19.如权利要求13或14所述的装置,其特征在于:19. The device according to claim 13 or 14, characterized in that: 告警处理模块,用于在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:The alarm processing module is used to perform protection switching processing on the tunnel when the tunnel is not configured with active/standby protection, including performing the following processing: 如所述出现业务劣化的三层接口在本隧道当前的路径上,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上。If the layer-3 interface with service degradation is on the current path of the tunnel, re-optimize the path of the tunnel, and switch the path of the tunnel to a new path if the re-optimization is successful. 20.如权利要求13或14所述的装置,其特征在于:20. The device according to claim 13 or 14, characterized in that: 告警处理模块,用于在本隧道未配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:The alarm processing module is used to perform protection switching processing on the tunnel when the tunnel is not configured with active/standby protection, including performing the following processing: 如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道不处于回切等待过程中,则对本隧道的路径进行重优化,如重优化成功,则将本隧道的路径切换到新的路径上;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is not in the process of switching back and waiting, re-optimize the path of the tunnel. If the re-optimization is successful, switch the path of the tunnel to the new path; or 如所述出现业务劣化的三层接口在本隧道当前的路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation is on the current path of the tunnel, and the tunnel is waiting for switchback, end the waiting and perform switchback; or 如所述出现业务劣化的三层接口在本隧道切换前的路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed. 21.如权利要求14所述的装置,其特征在于:21. The apparatus of claim 14, wherein: 告警恢复处理模块,用于在本隧道未配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:The alarm recovery processing module is used to switch back the tunnel when the tunnel is not configured with active/standby protection, including performing the following processing: 如状态恢复正常的三层接口在本隧道切换前的路径上,则对本隧道进行路径重优化,如重优化成功,则将隧道切换到以前的路径上。If the Layer 3 interface whose state has returned to normal is on the path before the switchover of the tunnel, re-optimize the path of the tunnel. If the re-optimization succeeds, switch the tunnel to the previous path. 22.如权利要求13或14所述的装置,其特征在于:22. The device according to claim 13 or 14, characterized in that: 告警处理模块,用于在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:The alarm processing module is configured to perform protection switching processing on the tunnel when active/standby protection is configured for the tunnel, including performing the following processing: 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface with service degradation is on the current main path of the tunnel, and all the layer-3 interfaces on the backup path of the tunnel are in normal state, switch the tunnel to the backup path; or 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current primary path of the tunnel, and there is an abnormal Layer 3 interface on the backup path of the tunnel, re-optimize the primary path of the tunnel. If the re-optimization is successful, then switch this tunnel to the new main path; or 如所述出现业务劣化的三层接口在本隧道当前的备路径上,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上。If the layer-3 interface with service degradation is on the current standby path of the tunnel, re-optimize the main path of the tunnel, and switch the tunnel to the new main path if the re-optimization is successful. 23.如权利要求13或14所述的装置,其特征在于:23. The device according to claim 13 or 14, characterized in that: 告警处理模块,用于在本隧道配置主备保护的情况下,对所述隧道进行保护切换处理,包括执行以下处理:The alarm processing module is configured to perform protection switching processing on the tunnel when active/standby protection is configured for the tunnel, including performing the following processing: 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上所有的三层接口的状态都正常,则将本隧道切换到所述备路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not waiting for switchback, and all layer-3 interfaces on the backup path of the tunnel are in normal status, then the switching the tunnel to the backup path; or 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道不处于回切等待过程中,且本隧道的备路径上存在状态不正常的三层接口,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the layer-3 interface experiencing service degradation is on the current primary path of the tunnel, and the tunnel is not in the process of waiting for switchback, and there is an abnormal layer-3 interface on the backup path of the tunnel, then the The main path is re-optimized. If the re-optimization is successful, switch the tunnel to the new main path; or 如所述出现业务劣化的三层接口在本隧道当前的主路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current main path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or 如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道不处于回切等待过程中,则对本隧道的主路径进行重优化,如重优化成功,则将本隧道切换到新的主路径上;或者If the Layer 3 interface with service degradation is on the current standby path of the tunnel, and the tunnel is not in the process of switching back, re-optimize the main path of the tunnel. If the re-optimization is successful, switch the tunnel onto the new primary path; or 如所述出现业务劣化的三层接口在本隧道当前的备路径上,且本隧道处于回切等待过程中,则结束等待,执行回切;或者If the layer-3 interface with service degradation described above is on the current backup path of the tunnel, and the tunnel is in the process of waiting for switchback, end the waiting and perform switchback; or 如所述出现业务劣化的三层接口在本隧道切换前的主路径上,且本隧道处于回切等待过程中,则结束等待,不执行回切。If the layer-3 interface where the service degradation occurs is on the main path before the switchover of the tunnel, and the tunnel is in the process of waiting for switchback, the waiting process ends and the switchback is not performed. 24.如权利要求14所述的装置,其特征在于:24. The apparatus of claim 14, wherein: 告警恢复处理模块,用于在本隧道配置主备保护的情况下,对所述隧道进行回切处理,包括执行以下处理:The alarm recovery processing module is used to switch back the tunnel when the tunnel is configured with active/standby protection, including performing the following processing: 如隧道当前在备路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则将隧道切换到以前的主路径上;或者If the tunnel is currently on the backup path, if the Layer 3 interface whose state has recovered to normal is on the primary path before the switchover of this tunnel, switch the tunnel to the previous primary path; or 如隧道当前在主路径上,如状态恢复正常的三层接口在本隧道切换前的主路径上,则对隧道进行路径重优化,重优化成功后,将隧道切换到以前的主路径上。If the tunnel is currently on the main path, and if the Layer 3 interface whose state has returned to normal is on the main path before the tunnel switchover, re-optimize the tunnel path. After the re-optimization is successful, switch the tunnel to the previous main path. 25.如权利要求13或14所述的装置,其特征在于:25. The device according to claim 13 or 14, characterized in that: 所述隧道通知消息为基于流量工程扩展的资源预留协议RSVP-TE消息。The tunnel notification message is a traffic engineering extension based resource reservation protocol RSVP-TE message.
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 true CN106161232A (en) 2016-11-23
CN106161232B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948000A (en) * 2017-12-25 2018-04-20 瑞斯康达科技发展股份有限公司 A kind of switching method of primary channel, apparatus and system
CN110011819A (en) * 2018-01-04 2019-07-12 中兴通讯股份有限公司 Generate method, apparatus, equipment and the system of SD warning information
CN112825501A (en) * 2019-11-20 2021-05-21 中兴通讯股份有限公司 Signal degradation processing method, device and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948000A (en) * 2017-12-25 2018-04-20 瑞斯康达科技发展股份有限公司 A kind of switching method of primary channel, apparatus and system
CN107948000B (en) * 2017-12-25 2021-11-19 瑞斯康达科技发展股份有限公司 Method, device and system for switching main channel and standby channel
CN110011819A (en) * 2018-01-04 2019-07-12 中兴通讯股份有限公司 Generate method, apparatus, equipment and the system of SD warning information
CN112825501A (en) * 2019-11-20 2021-05-21 中兴通讯股份有限公司 Signal degradation processing method, device and system
WO2021098477A1 (en) * 2019-11-20 2021-05-27 中兴通讯股份有限公司 Signal degradation processing method, apparatus and system
CN112825501B (en) * 2019-11-20 2024-08-16 中兴通讯股份有限公司 Signal degradation processing method, device and system

Also Published As

Publication number Publication date
CN106161232B (en) 2020-01-31
WO2016169214A1 (en) 2016-10-27

Similar Documents

Publication Publication Date Title
CN1659835B (en) Method and apparatus for distinguishing between link and node failures to facilitate fast reroute
US9294343B2 (en) System and method using RSVP hello suppression for graceful restart capable neighbors
CN104954256B (en) Devices, systems, and methods for reconfiguring point-to-multipoint label switch paths
CN105245452B (en) Multi-protocol label switching traffic engineering tunnel establishing method and equipment
CN101877665B (en) Ring network protection method, network node and ring network
CN101945049B (en) The method for building up of multiprotocol label switching system, node device and bidirectional tunnel
CN105281931B (en) Bit error detection method, the apparatus and system of POTN
CN100512292C (en) Apparatus and method of real-time recovering service
CN102204190B (en) A path creation method and a device thereof
CN101471693A (en) Method and apparatus for sharing grid protection
US20150098356A1 (en) Method and apparatus for managing end-to-end consistency of bi-directional mpls-tp tunnels via in-band communication channel (g-ach) protocol
CN102984014A (en) Data transmission method and network system
CN102143065B (en) Fault protection method and equipment
CA2762924A1 (en) Method, apparatus and system for two-node cluster hot backup
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN102088400A (en) Provider edge (PE) equipment in virtual special network and switching method
CN101656651A (en) Method and device for correlatively protecting traffic engineering tunnels
CN104468208A (en) Detection and recovery method and device for communication faults
CN102148694A (en) Linear 1-to-N protection method, device and system for packet transport network
CN101557347B (en) Creation method, device and system for label forward path during fast reroute switch
JP2017034463A (en) Protection method, communication system, and end node
CN106161232B (en) tunnel protection switching method and device
CN101374106A (en) Method, network node and system for forwarding data packets on MPLS LSP
CN102857316A (en) Method and system for realizing source looped network protection
CN101753409A (en) Method, device and system for sharing resources

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