WO2016033870A1 - 隧道信号劣化通知及切换方法、装置和计算机存储介质 - Google Patents

隧道信号劣化通知及切换方法、装置和计算机存储介质 Download PDF

Info

Publication number
WO2016033870A1
WO2016033870A1 PCT/CN2014/091300 CN2014091300W WO2016033870A1 WO 2016033870 A1 WO2016033870 A1 WO 2016033870A1 CN 2014091300 W CN2014091300 W CN 2014091300W WO 2016033870 A1 WO2016033870 A1 WO 2016033870A1
Authority
WO
WIPO (PCT)
Prior art keywords
lsp
notification message
message
node device
information
Prior art date
Application number
PCT/CN2014/091300
Other languages
English (en)
French (fr)
Inventor
付志涛
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP14901256.9A priority Critical patent/EP3190753A4/en
Publication of WO2016033870A1 publication Critical patent/WO2016033870A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics

Definitions

  • the present invention relates to the field of data network communications, and in particular, to a tunnel signal degradation notification and handover method, apparatus, and computer storage medium.
  • RSVP-TE Resource Reservation Protocol-Traffic Engineer
  • MPLS Multi-Protocol Label Switching
  • the RSVP-TE tunnel needs to be protected against the backup LSP when there is a problem with the Label Switched Path (LSP).
  • LSP Label Switched Path
  • the figure includes routing devices R1, R2, R3, and R4, where the routing device refers to a switch or a router; wherein, according to different functions, the routing devices are divided into a head node device, a tail node device, and The intermediate node device; specifically to FIG.
  • R1 is a head node device
  • R4 is a tail node device
  • R2 and R3 are intermediate node devices
  • the primary LSP path in the RSVP-TE tunnel is R1-R2-R3, that is, a service
  • the traffic (mainly the message) finally reaches R3 via R2 via R2
  • the alternate LSP path is R1-R4-R3.
  • LSP bidirectional forwarding detection can be used to detect whether an LSP path is faulty.
  • the LSP BFD sends a detection packet periodically. If the response packet is not received after the detection packet is sent for a certain number of times, the detection path is considered faulty.
  • the signal is degraded due to network congestion, and the service packet is lost too much.
  • the LSP BFD technology cannot be detected in this case. As a result, the service cannot be switched in time and is forwarded in the primary LSP path, which affects the forwarding effect of the service.
  • embodiments of the present invention are expected to provide a tunnel signal degradation notification and handover method, apparatus, and computer storage medium.
  • the embodiment of the invention provides a tunnel signal degradation notification method, and the method includes:
  • the intermediate node device determines that the packet loss rate of the packet forwarding time reaches a preset threshold, it searches for the label switching path LSP information;
  • the sending by the head node device corresponding to the LSP that is found, the notification message includes:
  • a notification message is sent for the same LSP of all the head nodes, and the notification message includes LSP information of the same LSP of all the head nodes and indication information indicating that the LSPs are unavailable.
  • the notification message is a Notify message or a Path-Err message.
  • the indication information used to indicate that the LSP is unavailable is a type error code of ⁇ 25, 13> in the ERROR_SPEC object in the Notify message or the Path-Err message.
  • the embodiment of the invention further provides a tunnel switching method, the method comprising:
  • the head node device receives the notification message
  • the LSP is switched to the corresponding backup LSP according to the notification message.
  • the notification message is a Notify message or a Path-Err message.
  • the indication information used to indicate that the LSP is unavailable is a type error code of ⁇ 25, 13> in the ERROR_SPEC object in the Notify message or the Path-Err message.
  • the switching the LSP to the corresponding backup LSP according to the notification message includes:
  • the embodiment of the present invention provides a tunnel signal degradation notification apparatus, which is located on an intermediate node device, and includes: a packet loss rate detection module, a first judgment module, a label switching path LSP information search module, and a notification module;
  • the packet loss rate detecting module is configured to detect a packet loss rate when the packet is forwarded in the intermediate node device
  • the first determining module is configured to determine whether the packet loss rate reaches a preset threshold, and trigger an LSP information searching module when the packet loss rate reaches a preset threshold;
  • the LSP information searching module is configured to: when triggered by the determining module, search for LSP information that passes through the intermediate node device;
  • the notification module is configured to construct a notification message, and send the notification message to the head node device corresponding to the found LSP information.
  • the notification message includes: LSP information and used to indicate the LSP. Indications not available.
  • An embodiment of the present invention provides a tunnel switching apparatus, which is located on a head node device, where the apparatus includes: a notification message receiving module, a second determining module, and a switching module;
  • the notification message receiving module is configured to receive a notification message sent by the intermediate node device
  • the second determining module is configured to determine whether the notification message includes the label switching path LSP information and the indication information that is used to indicate that the LSP corresponding to the LSP information is unavailable, and triggers the switching module when the determining structure is YES;
  • the switching module is configured to switch the LSP to a corresponding backup LSP according to the notification message.
  • the embodiment of the present invention provides a computer storage medium, where the storage medium includes a set of computer executable instructions, and the instructions are used in the tunnel signal degradation notification method according to the embodiment of the present invention.
  • the embodiment of the present invention provides a computer storage medium, the storage medium includes a set of computer executable instructions, and the instructions are used to execute the tunnel switching method according to the embodiment of the present invention.
  • the tunnel signal degradation notification and switching method and device, and the computer storage medium provided by the embodiment of the present invention when the intermediate node device determines that the packet loss rate of the packet forwarding reaches a preset threshold, searches for the label switching path through itself. LSP information; sending, to the head node device corresponding to the found LSP information, a notification message, where the notification message includes LSP information and indication information indicating that the LSP is unavailable; the head node device receives the notification message; When the notification message includes the LSP information and the indication information indicating that the LSP corresponding to the LSP information is unavailable, the LSP is switched to the corresponding backup LSP according to the notification message.
  • LSP which avoids the problem of further loss of packets and low communication efficiency caused by untimely LSP switching, and solves the problem that the signal degradation caused by network congestion cannot be detected in the prior art, and the LSP handover cannot be initiated in time.
  • FIG. 2 is a flowchart 1 of a tunnel protection switching method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart 2 of a tunnel protection switching method according to an embodiment of the present disclosure
  • FIG. 4 is a first structural diagram 1 of an RSVP-TE tunnel according to an embodiment of the present invention.
  • FIG. 5 is a second structural diagram of an RSVP-TE tunnel according to an embodiment of the present invention.
  • FIG. 6 is a first structural diagram 1 of a tunnel protection switching apparatus according to an embodiment of the present invention.
  • FIG. 7 is a second structural diagram of a tunnel protection switching apparatus according to an embodiment of the present invention.
  • the intermediate node device determines that the packet loss rate of the packet forwarding time reaches a preset threshold
  • the LSP information of the LSP information is searched for, and the notification message is sent to the head node device corresponding to the LSP information that is found.
  • the notification message includes LSP information and indication information indicating that the LSP is unavailable; the head node device receives the notification message; and when the notification message is determined to include the LSP information and the indication that the LSP corresponding to the LSP information is unavailable
  • the LSP is switched to the corresponding backup LSP according to the notification message.
  • a first embodiment of the present invention provides a tunnel signal degradation notification method. As shown in FIG. 2, the method includes the following steps:
  • Step 201 When the intermediate node device determines that the packet loss rate of the packet forwarding time reaches a preset threshold, the intermediate node device searches for the label switching path LSP information.
  • the intermediate node device needs to detect the packet loss rate when the packet is forwarded.
  • various packet loss detection methods in the field can be used to detect the packet loss rate, which is not limited herein;
  • the intermediate node device Before detecting the packet loss rate, the intermediate node device needs to set a preset threshold of the packet loss rate in advance.
  • the preset threshold of the packet loss rate can be set according to actual needs, and the impact of different packet loss rates on packet forwarding. Different, therefore, the selection of the default threshold of the packet loss rate can be determined according to the tolerance of the packet loss rate in the RSVP-TE tunnel; when the accuracy of the packet forwarding needs to be ensured in the RSVP-TE tunnel, the packet can be lost.
  • the preset threshold of the rate is set relatively low; if the RSVP-TE tunnel can tolerate a certain amount of packet loss, the preset threshold of the packet loss rate can be set relatively higher;
  • the intermediate node device After the preset threshold of the packet loss rate is set, the intermediate node device detects the packet loss rate when the packet is forwarded. When the packet loss rate reaches a preset threshold, the intermediate node device passes through the intermediate node device. If packet degradation occurs on the LSP packet forwarding, you need to avoid continuing to pass the LSP. Forward the message;
  • the intermediate node device searches for the LSP information passing through itself
  • the LSP information forwarded by the RSVP-TE protocol carries the LSP information forwarded by the packet, so the intermediate node device can save all the LSP information forwarded by itself to the local device by saving the LSP information in the packet.
  • the LSP information includes: head node device information, intermediate node device information, and tail node device information;
  • Step 202 Send a notification message to the head node device corresponding to the found LSP, where the notification message includes LSP information and indication information indicating that the LSP is unavailable.
  • step 202 After the LSP information of the label switching path of the intermediate node device is found in step 201, step 202 sends a notification message to the head node device corresponding to the LSP.
  • a notification message is sent, where the notification message includes LSP information of the same LSP of all the head nodes and indication information indicating that the LSPs are unavailable.
  • the notification message may be implemented by using a message that can include the LSP information and the indication information.
  • the notification message may be implemented by using a Notify message or a Path-Err message.
  • the LSP information may be carried in the message, and the ERROR_SPEC object in the message indicates that the LSP corresponding to the LSP information is unavailable;
  • a type error code of ⁇ 25, 13> may be added to the ERROR_SPEC object, and the type of error code is used to indicate that the LSP corresponding to the LSP information is unavailable.
  • a second embodiment of the present invention provides a tunnel switching method. As shown in FIG. 3, the method includes the following steps:
  • Step 301 The head node device receives the notification message.
  • the head node device receives the notification message sent to itself;
  • Step 302 When it is determined that the notification message includes LSP information and indication information indicating that the LSP corresponding to the LSP information is unavailable, the LSP is switched to the corresponding backup LSP according to the notification message.
  • the notification message may be implemented by using a message that can include the LSP information and the indication information; for example, the notification may be implemented by using a Notify message or a Path-err message.
  • the LSP information may be carried in the message, and the ERROR_SPEC object is used to indicate that the LSP corresponding to the LSP information is unavailable;
  • a type error code of ⁇ 25, 13> may be added to the ERROR_SPEC object object, and the type of error code is used to indicate that the LSP corresponding to the LSP information is unavailable.
  • the head node device that receives the notification message parses the notification message, and when the indication information indicating that the LSP is unavailable is parsed, the LSP information is further parsed to determine the LSP corresponding to the parsed LSP information.
  • the packet forwarding occurs with signal degradation, so that the LSP is unavailable;
  • the head node device searches for the backup LSP corresponding to the LSP, and switches the LSP to its corresponding backup LSP, so as to prevent the packet from continuing to be forwarded through the LSP that is already unavailable.
  • tunnel signal degradation notification method and the tunnel switching method provided by the embodiments of the present invention are described in detail below by using two specific examples.
  • the intermediate node device R2 detects the outbound interface of R2 through packet loss rate detection. When the packet loss reaches the set threshold, the intermediate node device R2 locally searches for all the LSP information of the 23 links in the direction.
  • the LSP of the 23 link passing through the direction has only one primary LSP with the head node device as R1. Therefore, R2 sends a Notify message to R1, where the Notify message carries the information of the found LSP, and uses the special error code of ⁇ 25, 13> in the ERROR_SPEC object in the Notify message to report the Notify message.
  • the text is sent to R1.
  • R1 receives the Notify message, parses out the error code of type ⁇ 25,13>, and knows that a signal degradation event occurs downstream; R1 can find the local backup LSP of the LSP by using the carried LSP information in the packet. , thus completing the active and standby switching.
  • the head node devices of the primary LSP1 and the primary LSP2 are both R1, and the primary node devices of the primary LSP3 and the primary LSP4 are both R5.
  • the signal degradation of the 23 link on R2 is taken as an example. Since there are four affected LSPs: primary LSP1, primary LSP2, primary LSP3, and primary LSP4, the head nodes of the four LSPs are not identical, and the head node devices are the same.
  • the LSP is sent in a Notify message.
  • the primary LSP1 and the primary LSP2 are sent in a Notify message, and the destination of the message is R1.
  • the primary LSP3 and the primary LSP4 are sent in another Notify message, and the destination of the message is R5.
  • the header node R1 receives the Notify message, parses out the special error code ⁇ 25, 13>, knows that the signal degradation event occurs on the downstream link, and can separately parse the information of the primary LSP1 and the primary LSP2, respectively, and find the LSP1 at the node respectively.
  • the backup LSP corresponding to LSP2 performs the active/standby switchover.
  • the head node R5 processes the received Notify message in the same manner, and performs the active/standby switchover of LSP3 and LSP4.
  • the third embodiment of the present invention provides a tunnel signal degradation notification device, which is located on an intermediate node device.
  • the device includes: a packet loss rate detection module 61, a first determination module 62, An LSP information searching module 63 and a notification module 64;
  • the packet loss rate detecting module 61 is configured to detect a packet loss rate when the packet is forwarded in the intermediate node device.
  • the first determining module 62 is configured to determine whether the packet loss rate reaches a preset threshold, and trigger an LSP information searching module when the packet loss rate reaches a preset threshold;
  • the LSP information searching module 63 is configured to: when triggered by the determining module, search for LSP information that passes through the intermediate node device;
  • the notification module 64 is configured to construct a notification message, and send the notification message to the head node device corresponding to the found LSP information.
  • the notification message includes: LSP information and is used to indicate the Indicates that the LSP is unavailable.
  • the device further includes: a setting module 65 configured to set a preset threshold of a packet loss rate.
  • the notification module 64 is configured to send a notification message to the head node device corresponding to the found LSP according to the following manner:
  • a notification message is sent for the same LSP of all the head nodes, and the notification message includes LSP information of the same LSP of all the head nodes and indication information indicating that the LSPs are unavailable.
  • the notification message is a Notify message or a Path-Err message;
  • the indication information indicating that the LSP is unavailable is a type error code of ⁇ 25, 13> in the ERROR_SPEC object in the Notify message or the Path-Err message. .
  • the fourth embodiment of the present invention provides a tunnel switching device, which is located on the head node device, and its structural diagram is as shown in FIG. 7.
  • the device includes: a notification message receiving module 71, a second determining module 72, and a switching module 73.
  • the notification message receiving module 71 is configured to receive a notification message sent by the intermediate node device
  • the second determining module 72 is configured to determine whether the notification message includes label switching path LSP information and indication information indicating that the LSP corresponding to the LSP information is unavailable, and triggers the switching module when the determining structure is YES. ;
  • the switching module 73 is configured to switch the LSP to a corresponding backup LSP according to the notification message.
  • the notification message may be a Notify message or a Path-Err message; the indication information indicating that the LSP is unavailable is a type error of ⁇ 25, 13> in the ERROR_SPEC object in the Notify message or the Path-Err message. code.
  • the switching module 73 is configured to switch the LSP to a corresponding backup LSP according to the following manner:
  • the packet loss detection module 61, the first determining module 62, the LSP information searching module 63, the notification module 64, and the setting module 65 may be configured by a central processing unit (CPU, Central Processing Unit) in the intermediate node device. , a microprocessor (MPU, Micro Processing Unit), a digital signal processor (DSP), or a programmable logic array (FPGA), the notification message receiving module 71, the second The decision module 72 and the switch module 73 can be implemented by a CPU, MPU, DSP or FPGA within the head node device.
  • CPU Central Processing Unit
  • MPU Micro Processing Unit
  • DSP digital signal processor
  • FPGA programmable logic array
  • the embodiment of the present invention provides a computer storage medium, where the storage medium includes a set of computer executable instructions, and the instructions are used in the tunnel signal degradation notification method according to the embodiment of the present invention.
  • the embodiment of the present invention provides a computer storage medium, the storage medium includes a set of computer executable instructions, and the instructions are used to execute the tunnel switching method according to the embodiment of the present invention.
  • embodiments of the present invention can be provided as a method, system, Or a computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种隧道信号劣化通知及切换方法,当中间节点设备确定自身报文转发时的丢包率达到预设阈值时,查找经过自身的标签交换路径LSP信息;向所述查找到的LSP信息对应的头节点设备发送通知消息,所述通知消息包含LSP信息及用于指示所述LSP不可用的指示信息;头节点设备接收通知消息;当确定所述通知消息中包含LSP信息及用于指示所述LSP信息对应的LSP不可用的指示信息时,根据所述通知消息将所述LSP切换到对应的备用LSP。本发明同时还公开了一种隧道信号劣化通知装置、及隧道切换装置、计算机存储介质。

Description

隧道信号劣化通知及切换方法、装置和计算机存储介质 技术领域
本发明涉及数据网络通信领域,具体涉及一种隧道信号劣化通知及切换方法、装置和计算机存储介质。
背景技术
基于流量工程的资源预留协议(RSVP-TE,Resource Reservation Protocol-Traffic Engineer)是一种基于多协议标签转换(MPLS,Multi-Protocol Label Switching)的流量工程技术。通过信息发布、路径计算、信令交互、流量转发四个部件实现业务流量在RSVP-TE隧道中的转发。
通常情况下,部署RSVP-TE隧道都需要做好保护措施,以备主用标签交换路径(LSP,Label Switched Path)出现问题时,能够迅速的切换到备用LSP。如图1所示,图中包括路由设备R1、R2、R3及R4,所述路由设备指交换机或路由器;其中,根据功能上的不同,将这些路由设备划分为头节点设备、尾节点设备和中间节点设备;具体到图1,其中,R1为头节点设备、R4为尾节点设备,R2和R3为中间节点设备;该RSVP-TE隧道中主用LSP路径为R1-R2-R3,即业务流量(主要指报文)通过R1经由R2最终到达R3;备用LSP路径为R1-R4-R3。当主用LSP路径发生故障时,需要在隧道头节点执行LSP切换,业务流量走备用LSP。
在现有技术中,LSP双向转发检测(BFD,Bidirection Forwarding Detection)可以用于检测LSP路径是否发生故障。LSP BFD是通过周期性发送检测报文,如果在发送该检测报文一定次数后,仍没有接收到该检测报文的回复消息,就认为该检测路径存在故障。但是,在实际的工程部署中发现,大多数情况由于网络拥塞导致信号劣化,从而业务报文丢失过多, 但是,这类情况采用LSP BFD技术却可能检测不出来,从而导致业务没法及时切换,一直在主LSP路径中转发,影响业务的转发效果。
发明内容
为了解决现有存在的技术问题,本发明实施例期望提供一种隧道信号劣化通知及切换方法、装置和计算机存储介质。
本发明实施例提供了一种隧道信号劣化通知方法,所述方法包括:
当中间节点设备确定自身报文转发时的丢包率达到预设阈值时,查找经过自身的标签交换路径LSP信息;
向所述查找到的LSP信息对应的头节点设备发送通知消息,所述通知消息包含LSP信息及用于指示所述LSP不可用的指示信息。
上述方案中,所述向查找到的LSP对应的头节点设备发送通知消息,包括:
针对每一条LSP,向所述LSP对应的头节点设备发送一条通知消息,所述通知消息包含所述LSP的LSP信息和用于指示所述LSP不可用的指示信息;或者,
针对所有头节点相同的LSP,发送一条通知消息,所述通知消息包含所有头节点相同的LSP的LSP信息和用于指示这些LSP不可用的指示信息。
上述方案中,所述通知消息为Notify报文或Path-Err报文。
上述方案中,所述用于指示LSP不可用的指示信息为Notify报文或Path-Err报文中ERROR_SPEC对象中的<25,13>的类型错误码。
本发明实施例还提供了一种隧道切换方法,所述方法包括:
头节点设备接收通知消息;
当确定所述通知消息中包含LSP信息及用于指示所述LSP信息对应的LSP不可用的指示信息时,根据所述通知消息将所述LSP切换到对应的备用LSP。
上述方案中,所述通知消息为Notify报文或Path-Err报文。
上述方案中,所述用于指示LSP不可用的指示信息为Notify报文或Path-Err报文中ERROR_SPEC对象中的<25,13>的类型错误码。
上述方案中,所述根据所述通知消息将所述LSP切换到对应的备用LSP,包括:
查找对应于所述LSP的备用LSP,将所述LSP切换到对应的备用LSP。
本发明实施例提供了一种隧道信号劣化通知装置,位于中间节点设备上,所述装置包括:丢包率检测模块、第一判断模块、标签交换路径LSP信息查找模块、通知模块;其中,
所述丢包率检测模块,配置为检测中间节点设备中报文转发时的丢包率;
所述第一判断模块,配置为判断所述丢包率是否达到预设阈值,并在丢包率达到预设阈值时,触发LSP信息查找模块;
所述LSP信息查找模块,配置为被判断模块触发时,查找经过所述中间节点设备的LSP信息;
所述通知模块,配置为构造通知消息,并将所述通知消息发送给对应所述查找到的LSP信息的头节点设备;其中,所述通知消息,包括:LSP信息及用于指示所述LSP不可用的指示信息。
本发明实施例提供了一种隧道切换装置,位于头节点设备上,所述装置包括:通知消息接收模块、第二判断模块和切换模块;其中,
所述通知消息接收模块,配置为接收中间节点设备发送的通知消息;
所述第二判断模块,配置为判断所述通知消息中是否包含标签交换路径LSP信息及用于指示所述LSP信息对应的LSP不可用的指示信息,并在判断结构为是时触发切换模块;
所述切换模块,配置为根据所述通知消息将所述LSP切换到对应的备用LSP。
本发明实施例提供了一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于本发明实施例所述的隧道信号劣化通知方法。
本发明实施例提供了一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行本发明实施例所述的隧道切换方法。
本发明实施例所提供的一种隧道信号劣化通知及切换方法、装置和计算机存储介质,当中间节点设备确定自身报文转发时的丢包率达到预设阈值时,查找经过自身的标签交换路径LSP信息;向所述查找到的LSP信息对应的头节点设备发送通知消息,所述通知消息包含LSP信息及用于指示所述LSP不可用的指示信息;头节点设备接收通知消息;当确定所述通知消息中包含LSP信息及用于指示所述LSP信息对应的LSP不可用的指示信息时,根据所述通知消息将所述LSP切换到对应的备用LSP。如此,当RSVP-TE隧道中的LSP由于网络拥塞导致信号劣化而使报文丢失时,可以及时将该问题通知给相应LSP对应的头节点设备,使头节点设备能够及时将相应LSP切换至备用LSP,从而避免LSP切换不及时而引发的报文进一步丢失及通信效率低等问题,也解决了现有技术中无法对网络拥塞导致信号劣化进行检测,从而不能及时发起LSP切换的问题。
附图说明
图1为现有技术中RSVP-TE隧道基本结构图;
图2为本发明实施例提供的隧道保护切换方法流程图一;
图3为本发明实施例提供的隧道保护切换方法流程图二;
图4为本发明实施例提供的RSVP-TE隧道基本结构图一;
图5为本发明实施例提供的RSVP-TE隧道基本结构图二;
图6为本发明实施例提供的隧道保护切换装置的基本结构图一;
图7为本发明实施例提供的隧道保护切换装置的基本结构图二。
具体实施方式
本发明实施例中,当中间节点设备确定自身报文转发时的丢包率达到预设阈值时,查找经过自身的LSP信息;向查找到的LSP信息对应的头节点设备发送通知消息,所述通知消息包含LSP信息及用于指示所述LSP不可用的指示信息;头节点设备接收通知消息;当确定所述通知消息中包含LSP信息及用于指示所述LSP信息对应的LSP不可用的指示信息时,根据所述通知消息将所述LSP切换到对应的备用LSP。
下面通过附图及具体实施例对本发明做进一步的详细说明。
实施例一
本发明实施例一提供了一种隧道信号劣化通知方法,如图2所示,该方法包括以下步骤:
步骤201:当中间节点设备确定自身报文转发时的丢包率达到预设阈值时,查找经过自身的标签交换路径LSP信息;
这一步骤之前,中间节点设备需要对自身中报文转发时的丢包率进行检测;实际实现中,可以采用本领域中各种丢包率检测方法进行丢包率检测,这里不作限制;
对丢包率进行检测之前,中间节点设备需要预先设置丢包率的预设阈值;所述丢包率的预设阈值可以根据实际需要进行设置,不同的丢包率对报文转发的影响程度不同,因此,丢包率预设阈值的选择,可以视RSVP-TE隧道中对于丢包率的容忍程度而定;当RSVP-TE隧道中需要确保报文转发的精准性时,可以将丢包率的预设阈值设置的相对低些;如果RSVP-TE隧道可以容忍一定程度的丢包,则可以将丢包率的预设阈值设置的相对高些;
当丢包率的预设阈值设置完成之后,中间节点设备对其自身中报文转发时的丢包率进行检测,当所述丢包率达到预设阈值时,则说明经过该中间节点设备的LSP的报文转发出现了信号劣化,则需要避免继续通过该LSP 进行报文转发;
因此,中间节点设备对经过自身的LSP信息进行查找;
由于RSVP-TE协议的报文发送时,会同时携带该报文转发的LSP信息,所以中间节点设备可以通过保存报文中的LSP信息,将所有经过自身转发的LSP信息保存于本地;所述LSP信息包括:头节点设备信息、中间节点设备信息和尾节点设备信息;
步骤202:向所述查找到的LSP对应的头节点设备发送通知消息,所述通知消息包含LSP信息及用于指示所述LSP不可用的指示信息;
步骤201中查找到经过所述中间节点设备的标签交换路径LSP信息之后,步骤202向所述LSP对应的头节点设备发送通知消息;
所述向所述查找到的LSP对应的头节点设备发送通知消息,包括:
针对每一条LSP,向所述LSP对应的头节点设备发送一条通知消息,所述通知消息包含所述LSP的LSP信息和用于指示所述LSP不可用的指示信息;
或者,针对所有头节点相同的LSP,发送一条通知消息,所述通知消息包含所有头节点相同的LSP的LSP信息和用于指示这些LSP不可用的指示信息。
实际实现中,所述通知消息可以采用各种能够包含LSP信息和指示信息的消息进行实现;例如,可以采用Notify报文或Path-Err报文实现;
当采用Notify报文或Path-Err报文实现时,可以将LSP信息携带于所述报文中,并使用所述报文中的错误说明ERROR_SPEC对象指示所述LSP信息对应的LSP不可用;具体的,可以在ERROR_SPEC对象中新增<25,13>的类型错误码,采用该类型错误码来指示所述LSP信息对应的LSP不可用。
实施例二
本发明实施例二提供了一种隧道切换方法,如图3所示,该方法包括以下步骤:
步骤301:头节点设备接收通知消息;
这一步骤中,头节点设备对发送到自身的通知消息进行接收;
步骤302:当确定所述通知消息中包含LSP信息及用于指示所述LSP信息对应的LSP不可用的指示信息时,根据所述通知消息将所述LSP切换到对应的备用LSP。
所述通知消息可以采用各种能够包含LSP信息和指示信息的消息进行实现;例如,可以采用Notify报文或Path-err报文实现;
当采用Notify报文或Path-err报文实现时,可以将LSP信息携带于所述报文中,并使用所述报文中的错误说明ERROR_SPEC对象指示所述LSP信息对应的LSP不可用;具体的,可以在ERROR_SPEC对象对象中新增<25,13>的类型错误码,采用该类型错误码来指示所述LSP信息对应的LSP不可用。
接收到通知消息的头节点设备,对所述通知消息进行解析,当解析出用于指示LSP不可用的指示信息时,进一步解析出LSP信息,从而确定所述解析出的LSP信息对应的LSP的报文转发发生信号劣化,从而所述LSP不可用;
因此,头节点设备查找对应于所述LSP的备用LSP,并将所述LSP切换到其对应的备用LSP,从而避免报文继续经由已经不可用的LSP进行转发。
下面通过两个具体示例,对本发明实施例提供的隧道信号劣化通知方法及隧道切换方法进行详细介绍;
示例一
参照图4,中间节点设备R2通过丢包率检测,检测到R2的出接口方 向丢包达到了设定的阈值时,中间节点设备R2在本地查找所有该方向经过23链路的LSP信息。
图4中经过该方向的23链路的LSP只有一条以头节点设备为R1的主LSP。因此,R2向R1发送Notify报文,所述Notify报文中携带查找到的LSP的信息,并在Notify报文中的ERROR_SPEC对象中使用<25,13>的特殊错误码,将所述Notify报文发送给R1。
R1接收到该Notify报文,解析出<25,13>类型的错误码,知道下游发生了信号劣化事件;通过报文中的携带的LSP信息,R1能够查找到本地的所述LSP的备用LSP,从而完成主备切换。
示例二
如图5所示:主LSP1和主LSP2的头节点设备均为R1,主LSP3和主LSP4的头节点设备均为R5。同样还是以R2上的23链路发生信号劣化为例,由于受影响的LSP有四条:主LSP1、主LSP2、主LSP3、主LSP4,这四条LSP的头节点设备不完全相同,头节点设备相同的LSP在一个Notify消息中发送。主LSP1和主LSP2会在一个Notify消息中发送,报文目的地为R1;主LSP3和主LSP4会在另外一个Notify消息中发送,报文目的地为R5。头节点R1接收到该Notify消息,解析出特殊的错误码<25,13>,知道下游链路发生了信号劣化事件,同时可以分别解析出主LSP1和主LSP2的信息,在该节点分别找到LSP1和LSP2对应的备份LSP,进行主备切换。头节点R5以相同的方式处理接收到的Notify消息,对应执行LSP3和LSP4的主备切换。
实施例三
本发明实施例三提供了一种隧道信号劣化通知装置,位于中间节点设备上,如图6所示,所述装置包括:丢包率检测模块61、第一判断模块62、 LSP信息查找模块63及通知模块64;其中,
所述丢包率检测模块61,配置为检测中间节点设备中报文转发时的丢包率;
所述第一判断模块62,配置为判断所述丢包率是否达到预设阈值,并在丢包率达到预设阈值时,触发LSP信息查找模块;
所述LSP信息查找模块63,配置为被判断模块触发时,查找经过所述中间节点设备的LSP信息;
所述通知模块64,配置为构造通知消息,并将所述通知消息发送给对应所述查找到的LSP信息的头节点设备;其中,所述通知消息,包括:LSP信息及用于指示所述LSP不可用的指示信息。
所述装置还包括:设置模块65,配置为设置丢包率的预设阈值。
所述通知模块64配置为根据以下方式向所述查找到的LSP对应的头节点设备发送通知消息:
针对每一条LSP,向所述LSP对应的头节点设备发送一条通知消息,所述通知消息包含所述LSP的LSP信息和用于指示所述LSP不可用的指示信息;或者,
针对所有头节点相同的LSP,发送一条通知消息,所述通知消息包含所有头节点相同的LSP的LSP信息和用于指示这些LSP不可用的指示信息。
所述通知消息为Notify报文或Path-Err报文;所述用于指示LSP不可用的指示信息为Notify报文或Path-Err报文中ERROR_SPEC对象中的<25,13>的类型错误码。
实施例四
本发明实施例四提供了隧道切换装置,位于头节点设备上,其结构图如图7所示,所述装置包括:通知消息接收模块71、第二判断模块72和切换模块73;其中,
所述通知消息接收模块71,配置为接收中间节点设备发送的通知消息;
所述第二判断模块72,配置为判断所述通知消息中是否包含标签交换路径LSP信息及用于指示所述LSP信息对应的LSP不可用的指示信息,并在判断结构为是时触发切换模块;
所述切换模块73,配置为根据所述通知消息将所述LSP切换到对应的备用LSP。
所述通知消息可以为Notify报文或Path-Err报文;所述用于指示LSP不可用的指示信息为Notify报文或Path-Err报文中ERROR_SPEC对象中的<25,13>的类型错误码。
所述切换模块73配置为根据以下方式将所述LSP切换到对应的备用LSP:
查找对应于所述LSP的备用LSP,将所述LSP切换到其对应的备用LSP。
在具体实施过程中,上述丢包率检测模块61、第一判断模块62、LSP信息查找模块63、通知模块64及设置模块65可以由中间节点设备内的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)来实现;所述通知消息接收模块71、第二判断模块72和切换模块73可以由头节点设备内的CPU、MPU、DSP或FPGA来实现。
本发明实施例提供了一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于本发明实施例所述的隧道信号劣化通知方法。
本发明实施例提供了一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行本发明实施例所述的隧道切换方法。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、 或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。

Claims (17)

  1. 一种隧道信号劣化通知方法,所述方法包括:
    当中间节点设备确定自身报文转发时的丢包率达到预设阈值时,查找经过自身的标签交换路径LSP信息;
    向所述查找到的LSP信息对应的头节点设备发送通知消息,所述通知消息包含LSP信息及用于指示所述LSP不可用的指示信息。
  2. 根据权利要求1所述的方法,其中,所述向查找到的LSP对应的头节点设备发送通知消息,包括:
    针对每一条LSP,向所述LSP对应的头节点设备发送一条通知消息,所述通知消息包含所述LSP的LSP信息和用于指示所述LSP不可用的指示信息;或者,
    针对所有头节点相同的LSP,发送一条通知消息,所述通知消息包含所有头节点相同的LSP的LSP信息和用于指示这些LSP不可用的指示信息。
  3. 根据权利要求1或2所述的方法,其中,所述通知消息为Notify报文或Path-Err报文。
  4. 根据权利要求3所述的方法,其中,所述用于指示LSP不可用的指示信息为Notify报文或Path-Err报文中ERROR_SPEC对象中的<25,13>的类型错误码。
  5. 一种隧道切换方法,所述方法包括:
    头节点设备接收通知消息;
    当确定所述通知消息中包含LSP信息及用于指示所述LSP信息对应的LSP不可用的指示信息时,根据所述通知消息将所述LSP切换到对应的备用LSP。
  6. 根据权利要求5所述的方法,其中,所述通知消息为Notify报文 或Path-Err报文。
  7. 根据权利要求6所述的方法,其中,所述用于指示LSP不可用的指示信息为Notify报文或Path-Err报文中ERROR_SPEC对象中的<25,13>的类型错误码。
  8. 根据权利要求5至7其中任一项所述的方法,其中,所述根据所述通知消息将所述LSP切换到对应的备用LSP,包括:
    查找对应于所述LSP的备用LSP,将所述LSP切换到对应的备用LSP。
  9. 一种隧道信号劣化通知装置,位于中间节点设备上,所述装置包括:丢包率检测模块、第一判断模块、标签交换路径LSP信息查找模块、通知模块;其中,
    所述丢包率检测模块,配置为检测中间节点设备中报文转发时的丢包率;
    所述第一判断模块,配置为判断所述丢包率是否达到预设阈值,并在丢包率达到预设阈值时,触发LSP信息查找模块;
    所述LSP信息查找模块,配置为被判断模块触发时,查找经过所述中间节点设备的LSP信息;
    所述通知模块,配置为构造通知消息,并将所述通知消息发送给对应所述查找到的LSP信息的头节点设备;其中,所述通知消息,包括:LSP信息及用于指示所述LSP不可用的指示信息。
  10. 根据权利要求9所述隧道信号劣化通知装置,其中,所述通知模块配置为根据以下方式向所述查找到的LSP对应的头节点设备发送通知消息:
    针对每一条LSP,向所述LSP对应的头节点设备发送一条通知消息,所述通知消息包含所述LSP的LSP信息和用于指示所述LSP不可用的指示信息;或者,
    针对所有头节点相同的LSP,发送一条通知消息,所述通知消息包含 所有头节点相同的LSP的LSP信息和用于指示这些LSP不可用的指示信息。
  11. 根据权利要求9或10所述隧道信号劣化通知装置,其中,所述通知消息为Notify报文或Path-Err报文。
  12. 根据权利要求11所述隧道信号劣化通知装置,其中,所述用于指示LSP不可用的指示信息为Notify报文或Path-Err报文中ERROR_SPEC对象中的<25,13>的类型错误码。
  13. 一种隧道切换装置,位于头节点设备上,所述装置包括:通知消息接收模块、第二判断模块和切换模块;其中,
    所述通知消息接收模块,配置为接收中间节点设备发送的通知消息;
    所述第二判断模块,配置为判断所述通知消息中是否包含标签交换路径LSP信息及用于指示所述LSP信息对应的LSP不可用的指示信息,并在判断结构为是时触发切换模块;
    所述切换模块,配置为根据所述通知消息将所述LSP切换到对应的备用LSP。
  14. 根据权利要求13所述隧道切换装置,其中,所述通知消息为Notify报文或Path-Err报文。
  15. 根据权利要求14所述隧道切换装置,其中,所述用于指示LSP不可用的指示信息为Notify报文或Path-Err报文中ERROR_SPEC对象中的<25,13>的类型错误码。
  16. 一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行权利要求1-4任一项所述的隧道信号劣化通知方法。
  17. 一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行权利要求5-8任一项所述的隧道切换方法。
PCT/CN2014/091300 2014-09-02 2014-11-17 隧道信号劣化通知及切换方法、装置和计算机存储介质 WO2016033870A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP14901256.9A EP3190753A4 (en) 2014-09-02 2014-11-17 Tunnel signal degradation notifying and switching method and apparatus, and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410444519.9 2014-09-02
CN201410444519.9A CN105471736B (zh) 2014-09-02 2014-09-02 一种隧道信号劣化通知及切换方法、装置

Publications (1)

Publication Number Publication Date
WO2016033870A1 true WO2016033870A1 (zh) 2016-03-10

Family

ID=55439066

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091300 WO2016033870A1 (zh) 2014-09-02 2014-11-17 隧道信号劣化通知及切换方法、装置和计算机存储介质

Country Status (3)

Country Link
EP (1) EP3190753A4 (zh)
CN (1) CN105471736B (zh)
WO (1) WO2016033870A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789390A (zh) * 2016-04-28 2017-05-31 新华三技术有限公司 一种伪线状态检测方法及装置
CN106302215A (zh) * 2016-08-30 2017-01-04 华为技术有限公司 一种转发报文的方法及装置
CN109547279B (zh) * 2017-09-22 2023-04-07 中兴通讯股份有限公司 一种信号劣化故障的处理方法和系统
CN112073285B (zh) * 2019-06-10 2022-04-22 华为技术有限公司 一种误码通告的方法及相关设备
CN112995024A (zh) * 2019-12-02 2021-06-18 中兴通讯股份有限公司 信号劣化告警方法、系统、终端设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605020A (zh) * 2009-07-07 2009-12-16 中兴通讯股份有限公司 一种丢包率检测方法、系统及装置
CN102215127A (zh) * 2011-06-08 2011-10-12 中兴通讯股份有限公司 一种信号劣化处理方法、装置及节点设备
CN102377601A (zh) * 2011-10-14 2012-03-14 杭州华三通信技术有限公司 一种lsp故障通告方法和装置
CN102843726A (zh) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Ptp lsp的选取方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8072879B2 (en) * 2006-02-03 2011-12-06 Cisco Technology, Inc. Technique for determining whether to reestablish fast rerouted primary tunnels based on backup tunnel path quality feedback
US8976680B2 (en) * 2010-03-15 2015-03-10 Juniper Networks, Inc. Operations, administration, and management fields for packet transport

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605020A (zh) * 2009-07-07 2009-12-16 中兴通讯股份有限公司 一种丢包率检测方法、系统及装置
CN102215127A (zh) * 2011-06-08 2011-10-12 中兴通讯股份有限公司 一种信号劣化处理方法、装置及节点设备
CN102843726A (zh) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Ptp lsp的选取方法及装置
CN102377601A (zh) * 2011-10-14 2012-03-14 杭州华三通信技术有限公司 一种lsp故障通告方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3190753A4 *

Also Published As

Publication number Publication date
CN105471736B (zh) 2020-09-11
EP3190753A4 (en) 2017-10-11
CN105471736A (zh) 2016-04-06
EP3190753A1 (en) 2017-07-12

Similar Documents

Publication Publication Date Title
US9722917B2 (en) Traffic recovery in openflow networks
EP2222023B1 (en) Link fault processing method and data forwarding device
US9036642B2 (en) Point-to point based multicast label distribution protocol local protection solution
WO2016033870A1 (zh) 隧道信号劣化通知及切换方法、装置和计算机存储介质
WO2012037820A1 (zh) 多协议标签交换系统、节点设备及双向隧道的建立方法
JP5975037B2 (ja) 通信システム、通信装置、障害通知方法、及びプログラム
EP1845656A1 (en) A method for implementing master and backup transmission path
US9473350B2 (en) Protecting a label switched path egress without using downstream labels
WO2019057211A1 (zh) 信号劣化故障的处理方法、系统、装置和存储介质
CN102769543B (zh) 一种基于lsp的bfd检测方法和设备
WO2015192518A1 (zh) Potn的误码检测方法、装置及系统
EP2219329B1 (en) A fast reroute method and a label switch router
US8934335B2 (en) System and method for enhancing loop free alternative coverage
US9699073B2 (en) System and method for reducing traffic loss while using loop free alternate routes for multicast only fast reroute (MoFRR)
WO2013185567A1 (zh) 一种分组传送网络保护倒换装置和方法
US20150036685A1 (en) Multicast label distribution protocol over a remote loop-free alternative
CN108924044A (zh) 链路维持方法、pe设备及可读存储介质
US9491095B2 (en) Fast reroute in multi-protocol label switching traffic engineering network
CN101159681A (zh) 实现快速重路由的方法和节点
US9253082B2 (en) Failure detection in the multiprotocol label switching multicast label switched path&#39;s end-to-end protection solution
WO2016169214A1 (zh) 一种隧道保护切换的方法和装置
WO2016061920A1 (zh) 一种路径备份方法及系统、头节点设备和中间节点设备
US20080181102A1 (en) Network routing
WO2016134582A1 (zh) 一种实现rsvp-te协议报文处理的方法及装置
WO2017181756A1 (zh) 一种隧道保护的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14901256

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014901256

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014901256

Country of ref document: EP