CN102006218B - Tunnel protection method and device - Google Patents
Tunnel protection method and device Download PDFInfo
- Publication number
- CN102006218B CN102006218B CN200910171672.8A CN200910171672A CN102006218B CN 102006218 B CN102006218 B CN 102006218B CN 200910171672 A CN200910171672 A CN 200910171672A CN 102006218 B CN102006218 B CN 102006218B
- Authority
- CN
- China
- Prior art keywords
- node
- faulty
- information notification
- upstream
- notification message
- 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.)
- Expired - Fee Related
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种隧道保护方法及装置,该方法包括:对于环网上的各个节点,分别检测与相邻节点之间的链路故障以及节点的对端节点的故障;检测到故障的节点生成故障路径信息通告报文,并将故障路径信息通告报文发送给故障上游节点;故障上游节点将故障路径信息通告报文中同一业务转发路径的故障上游节点的出口标签和故障下游节点的入口标签进行绑定,形成一个关系绑定表;故障上游节点根据关系绑定表将业务报文发送到故障下游节点。通过本发明,实现了隧道保护比较简单,以及可以实现节点或同时出现多处故障情况下业务的恢复和保护的效果。
The invention discloses a tunnel protection method and device. The method includes: for each node on the ring network, respectively detecting the link failure between the adjacent node and the failure of the peer node of the node; Faulty path information notification message, and send the faulty path information notification message to the faulty upstream node; the faulty upstream node notifies the faulty path information of the egress label of the faulty upstream node and the ingress label of the faulty downstream node of the same service forwarding path in the message Perform binding to form a relationship binding table; the faulty upstream node sends the service message to the faulty downstream node according to the relationship binding table. Through the present invention, the tunnel protection is relatively simple, and the effect of recovering and protecting services under the condition of nodes or multiple failures at the same time can be realized.
Description
技术领域 technical field
本发明涉及通信领域,具体而言,涉及一种隧道保护方法及装置。The present invention relates to the communication field, in particular to a tunnel protection method and device.
背景技术 Background technique
随着电信业务IP化和数据业务的不断增加,传统那种同步数字体系(Synchronous Digital Hierarchy,简称为SDH)SDH电路交换设备无论在通道资源的利用率方面,还是所提供的业务的灵活性、处理业务的突发性都存在很大问题,需进行从SDH电路交换技术向IP/多协议标签交换(Multi-Protocol Label Switching,简称为MPLS)等分组传送网络转型。但现有的IP/MPLS数据网络由于采用分组交换技术,在处理业务的突发性和灵活性有了很大进步,但用在电信承载网上,可能在可靠性、运行、管理和维护(OperationAdministration and Maintenance,简称为OAM)和生存性等方面存在一些问题,于是在IP/MPLS引入了故障检测机制和业务保护等功能,来实现对电信业务的承载和传输。With the continuous increase of IP-based telecommunication services and data services, the traditional Synchronous Digital Hierarchy (referred to as SDH) SDH circuit switching equipment is not only in terms of the utilization of channel resources, but also the flexibility of services provided, There is a big problem in dealing with the suddenness of business, and it is necessary to transform from SDH circuit switching technology to IP/Multi-Protocol Label Switching (Multi-Protocol Label Switching, referred to as MPLS) and other packet transport networks. However, due to the use of packet switching technology, the existing IP/MPLS data network has made great progress in the suddenness and flexibility of business processing. and Maintenance (OAM for short) and survivability, etc., so functions such as fault detection mechanism and service protection are introduced into IP/MPLS to realize the bearer and transmission of telecommunication services.
图1是根据相关技术的FRR方式bypass隧道保护方法示意图。Fig. 1 is a schematic diagram of a bypass tunnel protection method in the FRR mode according to the related art.
在现有的MPLS环网中,采取的保护方案有很多种,如:FRR的bypass保护方法、FRR的Detour保护方法以及G.8132保护方法。而前者相对于后面两种保护方法来说,在实现起来比较简单。但它只能对单个链路故障进行保护和恢复,不能对节点故障和同时出现多处链路故障情况进行保护和恢复,其实现具体过程,如图1所示,当在节点105和106之间出现故障时,则将所有受影响的的业务,通过反方向的保护隧道,将这些业务转发到故障相邻的另一端节点上;另一端节点接收从保护隧道发送过来的报文后,将外层的隧道标签除去后,重新按照原来标签进行转发,以保护业务正常地转发目的端。但故障另一端节点出现故障或者环上同时出现两处或两处以上故障时,则通过该种保护方法并不能进行解决,于是提出一种新的隧道保护方法,能够解决在MPLS环网上出现节点故障或同时出现多处故障的情况,保证业务正常的传送。In the existing MPLS ring network, there are many protection schemes adopted, such as: bypass protection method of FRR, Detour protection method of FRR and G.8132 protection method. Compared with the latter two protection methods, the former is relatively simple to implement. However, it can only protect and restore a single link failure, and cannot protect and restore node failures and multiple link failures at the same time. The specific process of its implementation is shown in Figure 1. When a fault occurs between the faults, all affected services will be forwarded to the other end node adjacent to the fault through the protection tunnel in the opposite direction; after the other end node receives the message sent from the protection tunnel, it will After the outer tunnel label is removed, it will be forwarded according to the original label again, so as to protect the normal forwarding destination of the service. However, when the node at the other end of the fault fails or two or more faults occur on the ring at the same time, this protection method cannot solve the problem. Therefore, a new tunnel protection method is proposed to solve the problem of nodes appearing on the MPLS ring network. Failure or multiple failures occur at the same time to ensure the normal transmission of services.
针对相关技术中不能对节点故障和同时出现多处链路故障情况进行保护和恢复的问题,目前尚未提出有效的解决方案。Aiming at the problem that the related technologies cannot protect and recover node failures and multiple link failures at the same time, no effective solution has been proposed yet.
发明内容 Contents of the invention
针对相关技术中不能对节点故障和同时出现多处链路故障情况进行保护和恢复的问题而提出本发明,为此,本发明的主要目的在于提供一种隧道保护方法及装置,以解决上述问题。The present invention is proposed in view of the problem in the related art that it is impossible to protect and restore node failures and multiple link failures at the same time. Therefore, the main purpose of the present invention is to provide a tunnel protection method and device to solve the above problems .
为了实现上述目的,根据本发明的一个方面,提供了一种隧道保护方法。In order to achieve the above object, according to one aspect of the present invention, a tunnel protection method is provided.
根据本发明的隧道保护方法包括:对于环网上的各个节点,分别检测与相邻节点之间的链路故障以及节点的对端节点的故障;检测到故障的节点生成故障路径信息通告报文,并将故障路径信息通告报文发送给故障上游节点;故障上游节点将故障路径信息通告报文中同一业务转发路径的故障上游节点的出口标签和故障下游节点的入口标签进行绑定,形成一个关系绑定表;故障上游节点根据关系绑定表将业务报文发送到故障下游节点。The tunnel protection method according to the present invention includes: for each node on the ring network, respectively detecting a link failure with an adjacent node and a failure of a peer node of the node; the node that detects the failure generates a failure path information notification message, And send the faulty path information notification message to the faulty upstream node; the faulty upstream node binds the egress label of the faulty upstream node of the same service forwarding path in the faulty path information notification message with the ingress label of the faulty downstream node to form a relationship Binding table; the faulty upstream node sends the service message to the faulty downstream node according to the relationship binding table.
优选地,在相邻节点检测相邻节点之间的链路故障以及相邻节点对端故障之前,该方法还包括:在环网上,选择主节点和备节点,并建立好主节点和备节点与环网上其他节点之间的双向保护隧道。Preferably, before the adjacent node detects the link failure between the adjacent nodes and the peer failure of the adjacent node, the method further includes: on the ring network, selecting the master node and the standby node, and establishing the master node and the standby node Bidirectional protection tunnels with other nodes on the ring network.
优选地,相邻节点中生成故障路径信息通告报文,并将故障路径信息通告报文发送给故障上游节点包括:相邻节点中生成故障路径信息通告报文,并将故障路径信息通告报文发送给主节点和备节点;主节点或备节点将故障路径信息通告报文转发给故障上游节点。Preferably, generating a faulty path information notification message in an adjacent node, and sending the faulty path information notification message to a faulty upstream node includes: generating a faulty path information notification message in an adjacent node, and sending the faulty path information notification message Send to the master node and the standby node; the master node or the standby node forwards the failure path information notification message to the failure upstream node.
优选地,在将故障路径信息通告报文发送给主节点和备节点之后,该方法还包括:主节点对第一保护隧道和第二保护隧道进行绑定,第一保护隧道为故障上游保护节点和主节点之间的保护通道,第二保护隧道为故障下游保护节点和主节点之间的保护通道。Preferably, after the failure path information notification message is sent to the master node and the standby node, the method further includes: the master node binds the first protection tunnel and the second protection tunnel, and the first protection tunnel is the failure upstream protection node and the protection channel between the main node and the second protection tunnel is the protection channel between the faulty downstream protection node and the main node.
优选地,故障上游节点接收到故障路径信息通告报文后,将同一业务转发路径的上游节点的出口标签和下游节点的入口标签进行绑定包括:故障上游节点接收到故障路径信息通告报文后,根据故障路径信息通告报文中携带的转发路径序号信息将同一业务转发路径的上游节点的出口标签和下游节点的入口标签进行绑定。Preferably, after the faulty upstream node receives the faulty path information notification message, binding the egress label of the upstream node of the same service forwarding path with the ingress label of the downstream node includes: after the faulty upstream node receives the faulty path information notification message , binding the egress label of the upstream node and the ingress label of the downstream node of the same service forwarding path according to the forwarding path sequence number information carried in the failure path information notification message.
优选地,故障上游节点根据关系绑定表将业务报文发送到故障下游节点包括:故障上游节点根据关系绑定表将业务报文发送到主节点;主节点将业务报文转发到故障下游节点。Preferably, the faulty upstream node sending the service message to the faulty downstream node according to the relationship binding table includes: the faulty upstream node sends the service message to the master node according to the relational binding table; the master node forwards the service message to the faulty downstream node .
优选地,在主节点将业务报文转发到故障下游节点之前,该方法还包括:主节点将业务报文进行保护隧道的转换。Preferably, before the master node forwards the service message to the faulty downstream node, the method further includes: the master node converts the service message into a protection tunnel.
优选地,当检测到故障时,则相邻节点生成故障路径信息通告报文包括:故障两端节点判断是否存在经过节点的上游业务受故障的影响;如果有影响,则将业务的转发路径标识和在节点的入口标签信息封装成一个类型长度值形式。Preferably, when a failure is detected, the adjacent node generates a failure path information notification message including: the nodes at both ends of the failure judge whether there is an upstream service passing through the node that is affected by the failure; And the entry label information in the node is encapsulated into a type length value form.
优选地,在故障两端节点判断是否存在经过节点的上游业务受故障的影响之后,该方法还包括:如果不存在影响,则故障两端节点生成空的类型长度值报文;故障两端节点将空的类型长度值报文发送给主节点。Preferably, after the nodes at both ends of the fault judge whether there is an upstream service passing through the node that is affected by the fault, the method further includes: if there is no impact, the nodes at both ends of the fault generate an empty type length value message; the nodes at both ends of the fault Send an empty type length value message to the master node.
优选地,在故障两端节点判断是否存在经过节点的上游业务受故障的影响之后,该方法还包括:如果有影响,则故障上游节点将关系绑定表中存在的业务转发路径的报文上出口标签替换成故障下游节点的入口标签后,再将业务报文通过保护隧道发送到故障下游节点。Preferably, after the nodes at both ends of the fault judge whether there is an upstream service passing through the node that is affected by the fault, the method further includes: if there is an impact, the fault upstream node binds the packets of the service forwarding path existing in the relationship binding table After the egress label is replaced with the ingress label of the faulty downstream node, the service packet is sent to the faulty downstream node through the protection tunnel.
优选地,上述方法还包括:当主节点出现故障时,由备节点来代替主节点进行业务的转发。Preferably, the above method further includes: when the master node fails, the standby node replaces the master node to forward services.
优选地,故障路径信息通告报文中包括类型长度值和长度类型值偏移量,其中,当长度类型值偏移量为零时,不存在长度类型值报文,当长度类型值偏移量不为零时,存在长度类型值报文。Preferably, the failure path information notification message includes a type length value and a length type value offset, wherein, when the length type value offset is zero, there is no length type value message, and when the length type value offset is When it is not zero, there is a length type value message.
为了实现上述目的,根据本发明的另一方面,提供了一种隧道保护装置。In order to achieve the above purpose, according to another aspect of the present invention, a tunnel protection device is provided.
该装置包括:检测模块,用于检测相邻节点之间的链路故障以及相邻节点对端故障;生成模块,当检测到故障时,用于生成故障路径信息通告报文;处理模块,用于将同一业务转发路径的上游节点的出口标签和下游节点的入口标签进行绑定,形成一个关系绑定表;发送模块,用于将业务报文通过保护隧道发送到故障下游节点。The device includes: a detection module, which is used to detect link failures between adjacent nodes and peer-to-end failures of adjacent nodes; a generation module, which is used to generate a failure path information notification message when a failure is detected; a processing module, which uses Bind the egress label of the upstream node and the ingress label of the downstream node of the same service forwarding path to form a relationship binding table; the sending module is used to send the service message to the faulty downstream node through the protection tunnel.
优选地,上述装置还包括:判断模块,用于判断是否存在经过节点的上游业务受故障的影响。Preferably, the above device further includes: a judging module, configured to judge whether any upstream service passing through the node is affected by the fault.
通过本发明,采用对于环网上的各个节点,分别检测与相邻节点之间的链路故障以及节点的对端节点的故障;检测到故障的节点生成故障路径信息通告报文,并将故障路径信息通告报文发送给故障上游节点;故障上游节点将故障路径信息通告报文中同一业务转发路径的故障上游节点的出口标签和故障下游节点的入口标签进行绑定,形成一个关系绑定表;故障上游节点根据关系绑定表将业务报文发送到故障下游节点的方法,解决了不能对节点故障和同时出现多处链路故障情况进行保护和恢复的问题,进而达到了实现保护比较简单,以及可以实现节点或同时出现多处故障情况下业务的恢复和保护的效果。Through the present invention, each node on the ring network is used to respectively detect the link failure with the adjacent node and the failure of the opposite node of the node; the node that detects the failure generates a failure path information notification message, and sends the failure path The information notification message is sent to the faulty upstream node; the faulty upstream node binds the egress label of the faulty upstream node of the same service forwarding path in the faulty path information notification message with the ingress label of the faulty downstream node to form a relationship binding table; The method that the faulty upstream node sends the service message to the faulty downstream node according to the relationship binding table solves the problem of not being able to protect and restore node faults and multiple link faults at the same time, and thus realizes protection is relatively simple, And it can realize the recovery and protection effect of the node or the business under the condition of multiple failures at the same time.
附图说明 Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1是根据相关技术的FRR方式bypass隧道保护方法示意图;FIG. 1 is a schematic diagram of a bypass tunnel protection method in the FRR mode according to the related art;
图2是根据本发明实施例的故障路径信息通告报文结构示意图;2 is a schematic structural diagram of a failure path information notification message according to an embodiment of the present invention;
图3是根据本发明实施例的LSP TLV结构示意图;Fig. 3 is a schematic diagram of the LSP TLV structure according to an embodiment of the present invention;
图4是根据本发明实施例的标签绑定关系示意表格;FIG. 4 is a schematic table of label binding relationships according to an embodiment of the present invention;
图5是根据本发明实施例的隧道保护方法的流程图;FIG. 5 is a flowchart of a tunnel protection method according to an embodiment of the present invention;
图6是根据本发明实施例的基于本地链路故障检测多处故障的隧道保护方法示意图;6 is a schematic diagram of a tunnel protection method for detecting multiple faults based on local link faults according to an embodiment of the present invention;
图7是根据本发明实施例的优选的隧道保护方法的流程图;FIG. 7 is a flow chart of a preferred tunnel protection method according to an embodiment of the present invention;
图8是根据本发明实施例的隧道保护装置的示意图;8 is a schematic diagram of a tunnel protection device according to an embodiment of the present invention;
图9是根据本发明实施例的优选的隧道保护装置的示意图。Fig. 9 is a schematic diagram of a preferred tunnel protection device according to an embodiment of the present invention.
具体实施方式 Detailed ways
功能概述Functional Overview
考虑到相关技术中不能对节点故障和同时出现多处链路故障情况进行保护和恢复的问题,本发明实施例提供了一种隧道保护方法及装置。该方法包括:对于环网上的各个节点,分别检测与相邻节点之间的链路故障以及节点的对端节点的故障;检测到故障的节点生成故障路径信息通告报文,并将故障路径信息通告报文发送给故障上游节点;故障上游节点将故障路径信息通告报文中同一业务转发路径的故障上游节点的出口标签和故障下游节点的入口标签进行绑定,形成一个关系绑定表;故障上游节点根据关系绑定表将业务报文发送到故障下游节点。Considering the problem in the related art that node failures and multiple link failures occur at the same time cannot be protected and restored, the embodiments of the present invention provide a tunnel protection method and device. The method includes: for each node on the ring network, respectively detects a link failure with an adjacent node and a failure of a peer node of the node; the node that detects the failure generates a failure path information notification message, and transmits the failure path information The notification message is sent to the faulty upstream node; the faulty upstream node binds the egress label of the faulty upstream node of the same service forwarding path in the faulty path information notification message with the ingress label of the faulty downstream node to form a relationship binding table; The upstream node sends the service message to the faulty downstream node according to the relationship binding table.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。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 with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.
方法实施例method embodiment
根据本发明的实施例,提供了一种隧道保护方法。According to an embodiment of the present invention, a tunnel protection method is provided.
图5是根据本发明实施例的隧道保护方法的流程图。Fig. 5 is a flowchart of a tunnel protection method according to an embodiment of the present invention.
如图5所示,该方法包括如下的步骤S502至步骤S508:As shown in Figure 5, the method includes the following steps S502 to S508:
步骤S502,对于环网上的各个节点,分别检测与相邻节点之间的链路故障以及节点的对端节点的故障;Step S502, for each node on the ring network, respectively detect the failure of the link with the adjacent node and the failure of the peer node of the node;
步骤S504,检测到故障的节点生成故障路径信息通告报文,并将故障路径信息通告报文发送给故障上游节点;Step S504, the node that detects the fault generates a fault path information notification message, and sends the fault path information notification message to the fault upstream node;
步骤S506,故障上游节点将故障路径信息通告报文中同一业务转发路径的故障上游节点的出口标签和故障下游节点的入口标签进行绑定,形成一个关系绑定表;Step S506, the faulty upstream node binds the egress label of the faulty upstream node of the same service forwarding path in the faulty path information notification message with the ingress label of the faulty downstream node to form a relationship binding table;
步骤S508,故障上游节点根据关系绑定表将业务报文发送到故障下游节点。Step S508, the faulty upstream node sends the service message to the faulty downstream node according to the relationship binding table.
下面将结合实例对本发明实施例的实现过程进行详细描述。The implementation process of the embodiment of the present invention will be described in detail below with reference to examples.
图6是根据本发明实施例的基于本地链路故障检测多处故障的隧道保护方法示意图;图7是根据本发明实施例的优选的隧道保护方法的流程图。Fig. 6 is a schematic diagram of a tunnel protection method for detecting multiple faults based on local link faults according to an embodiment of the present invention; Fig. 7 is a flowchart of a preferred tunnel protection method according to an embodiment of the present invention.
如图6和图7所示,根据本发明实施例的优选的隧道保护方法可以包括以下步骤:As shown in Figures 6 and 7, a preferred tunnel protection method according to an embodiment of the present invention may include the following steps:
步骤S701,在数据环网上,选择一个主节点和备节点,并建立好主节点与备节点与环上其他节点之间双向保护隧道,在该实施例中,首先在该数据环网结构中,从该环网上的8个节点中选择1个主节点101和1个备节点108,并将环网上其他节点分别与主节点101和备节点108建立双向的保护隧道;Step S701, on the data ring network, select a master node and a backup node, and establish a bidirectional protection tunnel between the master node and the backup node and other nodes on the ring. In this embodiment, first in the data ring network structure, Select a master node 101 and a backup node 108 from the 8 nodes on the ring network, and set up two-way protection tunnels with the master node 101 and the backup node 108 respectively with other nodes on the ring network;
步骤S702,在数据环网上相邻节点,通过本地故障检测机制,来检测相邻节点之间的链路故障以及相邻节点对端故障;In step S702, adjacent nodes on the data ring network detect link failures between adjacent nodes and peer failures of adjacent nodes through a local fault detection mechanism;
步骤S703,当检测到链路故障时,则故障的两端节点都生成故障路径信息通告报文,并通过各自保护隧道发送给主(备)节点;或者相邻节点存在故障时,则由另一端节点向主(备)节点发送故障路径信息通告报文,在该实施例中,环上每两个相邻节点之间通过本地故障检测机制来检测链路故障或节点故障;当检测到故障时,则故障的两端节点,如:节点103,节点104,节点105都生成各自的故障LSP信息通告报文,并通过各自的保护隧道发送给主节点101(备节点108)。当由于节点104与主节点101之间的保护隧道也是存在故障,所以只有节点103和节点105可以将故障路径信息反馈到主节点101上;Step S703, when a link failure is detected, the nodes at both ends of the failure generate failure path information notification messages, and send them to the active (standby) node through their respective protection tunnels; or when there is a failure in the adjacent node, another An end node sends a failure path information notification message to the active (standby) node. In this embodiment, a link failure or a node failure is detected between every two adjacent nodes on the ring through a local failure detection mechanism; when a failure is detected , then the nodes at both ends of the failure, such as: node 103, node 104, and node 105, all generate their own failure LSP information notification messages, and send them to the master node 101 (standby node 108) through their respective protection tunnels. When the protection tunnel between node 104 and master node 101 is faulty, only node 103 and node 105 can feed back the failure path information to master node 101;
图2是根据本发明实施例的故障路径信息通告报文结构示意图。Fig. 2 is a schematic structural diagram of a failure path information notification message according to an embodiment of the present invention.
如图2所示,该故障路径信息通告报文中包括信息长度、信息类型、预留字段和类型长度值偏移量等。As shown in FIG. 2 , the failure path information notification message includes information length, information type, reserved fields, type length value offset, and the like.
图3是根据本发明实施例的LSP TLV结构示意图。FIG. 3 is a schematic diagram of the structure of an LSP TLV according to an embodiment of the present invention.
如图3所示,根据本发明实施例的LSP TLV结构可以包括类型、长度、LSP序号和入口标签。As shown in FIG. 3, the LSP TLV structure according to the embodiment of the present invention may include type, length, LSP sequence number and entry label.
步骤S704,对于故障两端节点103和105来说,在生成故障路径信息通告报文时,则首先判断那些上游业务LSP受到故障影响(即需要通过故障链路传送到本节点的业务);Step S704, for the nodes 103 and 105 at both ends of the failure, when generating the failure path information notification message, first judge that those upstream service LSPs are affected by the failure (that is, the business that needs to be transmitted to the node through the failure link);
步骤S705,并将这些业务的LSP ID和在本节点的入口标签(Entry Label)信息封装成一个LSP TLV报文;Step S705, and encapsulate the LSP ID of these services and the entry label (Entry Label) information at this node into an LSP TLV message;
步骤S706,通过故障LSP信息通告报文发送到主节点101上;若不存在上游业务LSP受影响,则发送一个空的TLV的信息通告报文给主节点101;主(备)节点从保护隧道接收到该故障路径信息通告报文后,将反馈过来两个故障节点的保护隧道进行绑定,并将故障下游节点发送过来的故障路径信息通告报文,又转发给故障上游节点上,在该实施例中,主节点101在通过与节点103和105之间保护隧道,接收到节点103和105发送过来的故障LSP信息通告报文后,首先将这两个保护隧道之间进行绑定,并将节点103发送过来的故障LSP信息通告报文,通过保护隧道之间交换,再通过节点101和105之间的保护隧道,发送给节点105;同样,节点由105发送过来的故障LSP信息通告报文,则在主节点101上进行保护隧道交换后,通过节点101和103节点之间的保护隧道,发送给节点103;Step S706, send on the master node 101 by the failure LSP information notification message; If there is no upstream service LSP affected, then send the information notification message of an empty TLV to the master node 101; the master (standby) node from the protection tunnel After receiving the faulty path information notification message, it binds the protection tunnels fed back from the two faulty nodes, and forwards the faulty path information notification message sent by the faulty downstream node to the faulty upstream node. In the embodiment, after the master node 101 receives the failure LSP information notification message sent by the nodes 103 and 105 through the protection tunnel with the nodes 103 and 105, it first binds the two protection tunnels, and The failure LSP information notification message sent by node 103 is exchanged between the protection tunnels, and then sent to node 105 through the protection tunnel between nodes 101 and 105; similarly, the failure LSP information notification message sent by node 105 After the protection tunnel exchange is performed on the master node 101, the text is sent to the node 103 through the protection tunnel between the nodes 101 and 103;
图4是根据本发明实施例的标签绑定关系示意表格。Fig. 4 is a schematic table of tag binding relationships according to an embodiment of the present invention.
步骤S707,故障两端节点103和105,在接收到对方发送过来的故障LSP信息通告报文后,对里面的LSP TLV报文进行分析和处理;将根据LSP ID索引,建立同一个业务LSP的上游节点的出口标签和下游节点的入口标签的绑定关系,或者将同一个业务转发路径(LSP)在该节点上出口标签与故障下游节点的入口标签(EntryLabel)进行绑定,形成一个标签绑定关系表;Step S707, the nodes 103 and 105 at both ends of the failure, after receiving the failure LSP information notification message sent by the other party, analyze and process the LSP TLV message inside; and establish the same service LSP according to the LSP ID index The binding relationship between the egress label of the upstream node and the entry label of the downstream node, or bind the egress label of the same service forwarding path (LSP) on the node with the entry label (EntryLabel) of the faulty downstream node to form a label binding Determine the relationship table;
步骤S708,该业务的上游节点103或105判断业务是否能找到对应的绑定表;Step S708, the upstream node 103 or 105 of the service judges whether the service can find the corresponding binding table;
步骤S709,如果能找到对应的绑定表,在故障状态下,该业务的上游节点103或105,根据标签的绑定关系表,将受故障影响的业务报文上原出口标签替换成下游节点的入口标签(Entry Label);Step S709, if the corresponding binding table can be found, in the fault state, the upstream node 103 or 105 of the service, according to the label binding table, replaces the original egress label on the service message affected by the fault with the downstream node's Entry Label;
步骤S710,再通过保护隧道,将该业务报文发送到主节点101上;Step S710, and then send the service message to the master node 101 through the protection tunnel;
步骤S711,主节点101接收到从业务上游节点发送过来的业务时,直接根据保护隧道的绑定关系,将该业务转换到主节点101和业务下游节点103(105)之间保护隧道,发送给业务的下游节点105(103);业务的下游节点103(105)接收到从保护隧道发送过来的业务报文后,又重新转换到原有的工作路径进行转发和交换,直至到达目的节点。Step S711, when the master node 101 receives the service sent from the service upstream node, it directly converts the service to the protection tunnel between the master node 101 and the service downstream node 103 (105) according to the binding relationship of the protection tunnel, and sends it to The service downstream node 105 (103); after receiving the service message sent from the protection tunnel, the service downstream node 103 (105) re-switches to the original working path for forwarding and switching until reaching the destination node.
此外,当本地节点检测到故障消失时,则重新通过原有工作路径进行转发,在该实施例中,当通过本地链路故障报文检测到环网上链路故障消失时,则故障两端节点103和105,又通过各自保护隧道向主节点101发送故障消失信息通告报文,且主节点接收到该报文后,将原来保护隧道绑定关系删除掉;业务又重新按照原来的工作路径进行转发。In addition, when the local node detects that the fault disappears, it will re-forward through the original working path. 103 and 105, through their respective protection tunnels, send fault disappearance information notification messages to the master node 101, and after receiving the messages, the master node deletes the original protection tunnel binding relationship; the business proceeds according to the original working path again Forward.
优选地,当主节点101出现故障时,则由备节点108来代替主节点101进行业务的保护和恢复。Preferably, when the master node 101 fails, the standby node 108 replaces the master node 101 to protect and restore services.
采用本发明所述方法和装置,与现有技术相比,一方面保护实现起来比较简单,没有复杂的控制协议;另一方面可以实现节点或同时出现多处故障情况下业务的恢复和保护。Compared with the prior art, adopting the method and device of the present invention, on the one hand, the protection is relatively simple to implement without complicated control protocols; on the other hand, it can realize the recovery and protection of services in the case of nodes or multiple failures at the same time.
装置实施例Device embodiment
根据本发明的实施例,提供了一种隧道保护装置。According to an embodiment of the present invention, a tunnel protection device is provided.
图8是根据本发明实施例的隧道保护装置的示意图。Fig. 8 is a schematic diagram of a tunnel protection device according to an embodiment of the present invention.
根据本发明实施例的隧道保护装置能够实现上述隧道保护方法。The tunnel protection device according to the embodiment of the present invention can realize the above tunnel protection method.
如图8所示,该装置包括:检测模块801、生成模块803、处理模块805、发送模块807。优选地,还包括判断模块809。As shown in FIG. 8 , the device includes: a detection module 801 , a generation module 803 , a processing module 805 , and a sending module 807 . Preferably, a judging module 809 is also included.
具体地,检测模块801,用于检测相邻节点之间的链路故障以及所述相邻节点对端故障;生成模块803,当检测到故障时,用于生成故障路径信息通告报文;处理模块805,用于将同一业务转发路径的上游节点的出口标签和下游节点的入口标签进行绑定,形成一个关系绑定表;发送模块807,用于将业务报文通过保护隧道发送到故障下游节点。判断模块809,用于判断是否存在经过节点的上游业务受故障的影响。Specifically, the detection module 801 is used to detect a link failure between adjacent nodes and the peer failure of the adjacent node; the generation module 803 is used to generate a failure path information notification message when a failure is detected; processing Module 805, used to bind the egress label of the upstream node and the ingress label of the downstream node of the same service forwarding path to form a relationship binding table; sending module 807, used to send the service message to the downstream of the fault through the protection tunnel node. A judging module 809, configured to judge whether there is an upstream service passing through the node that is affected by the fault.
图9是根据本发明实施例的优选的隧道保护装置的示意图。Fig. 9 is a schematic diagram of a preferred tunnel protection device according to an embodiment of the present invention.
如图9所示,该装置包括:故障路径信息通告报文生成模块、故障路径信息通告报文接收处理模块、故障路径信息通告报文发送模块。As shown in FIG. 9 , the device includes: a fault path information notification message generating module, a fault path information notification message receiving and processing module, and a fault path information notification message sending module.
故障路径信息通告报文生成模块:当环上节点通过本地故障检测机制,检测到链路或对端相邻节点存在故障时,则将受影响的上游业务转发路径(LSP)信息以TLV形式封装到故障路径信息通告报文中去;Faulty path information notification message generation module: when a node on the ring detects that there is a fault in the link or the adjacent node at the opposite end through the local fault detection mechanism, it will encapsulate the affected upstream service forwarding path (LSP) information in the form of TLV to the failure path information notification message;
故障路径信息通告报文接收处理模块:该模块主要是指故障上游节点接收到下游节点发送过来的故障路径信息通告报文后,对里面所封装的转发路径(LSP)TLV报文进行分析,以便在上游节点上形成一个受影响的业务的出口标签和入口标签的关系绑定表;Failure path information notification message receiving and processing module: this module mainly refers to that after the faulty upstream node receives the faulty path information notification message sent by the downstream node, it analyzes the forwarding path (LSP) TLV message encapsulated in it, so that Form a relationship binding table between the egress label and the ingress label of the affected service on the upstream node;
故障路径信息通告报文发送模块:该模块主要由故障的下游节点检测到故障后,通过其生成模块形成故障路径信息通告报文后,先通过其保护隧道上连续三次发送给主节点,并在主节点进行保护隧道的转换,直至到达故障的上游节点;若在一定时间内,还没收到从主节点的保护隧道发送过来的业务报文时,则重新向主节点发送故障路径信息通告报文。Faulty path information notification message sending module: After the faulty downstream node detects a fault, this module forms a faulty path information notification message through its generation module, and sends it to the master node through its protection tunnel three times in succession, and then The master node switches the protection tunnel until it reaches the faulty upstream node; if it has not received the service message sent from the protection tunnel of the master node within a certain period of time, it will resend the failure path information notification message to the master node .
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910171672.8A CN102006218B (en) | 2009-09-03 | 2009-09-03 | Tunnel protection method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910171672.8A CN102006218B (en) | 2009-09-03 | 2009-09-03 | Tunnel protection method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102006218A CN102006218A (en) | 2011-04-06 |
| CN102006218B true CN102006218B (en) | 2014-07-16 |
Family
ID=43813306
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910171672.8A Expired - Fee Related CN102006218B (en) | 2009-09-03 | 2009-09-03 | Tunnel protection method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102006218B (en) |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103023770B (en) * | 2011-09-21 | 2017-09-26 | 中兴通讯股份有限公司 | The guard method of looped network and device |
| CN103404091B (en) * | 2012-11-22 | 2016-09-28 | 华为技术有限公司 | Service protection method, device and system |
| CN105282028A (en) * | 2014-06-05 | 2016-01-27 | 中兴通讯股份有限公司 | Message transmission method, nodes and path management servers |
| CN106664252B (en) | 2015-06-10 | 2019-11-29 | 华为技术有限公司 | Realize method, equipment and the system of service chaining |
| CN105657748B (en) * | 2016-03-16 | 2020-06-26 | 华为技术有限公司 | Communication method and network equipment based on tunnel binding |
| CN108667751B (en) * | 2017-03-27 | 2022-01-11 | 中兴通讯股份有限公司 | Method and device for announcing time delay information |
| CN108337158B (en) * | 2018-01-23 | 2020-12-04 | 新华三技术有限公司 | Unicast message forwarding method and device |
| CN112995028A (en) | 2018-06-30 | 2021-06-18 | 华为技术有限公司 | Method, device and system for processing transmission path fault |
| CN111585842B (en) * | 2020-04-30 | 2021-08-24 | 烽火通信科技股份有限公司 | Network quality monitoring and diagnosing method and system |
| CN112488337B (en) * | 2020-12-11 | 2023-07-25 | 广东电力通信科技有限公司 | Intelligent auxiliary overhaul flow analysis method and system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1791049A (en) * | 2005-12-16 | 2006-06-21 | 杭州华为三康技术有限公司 | Looped network and its protecting method |
| CN101212366A (en) * | 2007-12-21 | 2008-07-02 | 杭州华三通信技术有限公司 | Failure detection method, system, and main node in Ethernet loop network |
| WO2009089752A1 (en) * | 2007-12-29 | 2009-07-23 | Huawei Technologies Co., Ltd. | A protection method, system and device in the packet transport network |
-
2009
- 2009-09-03 CN CN200910171672.8A patent/CN102006218B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1791049A (en) * | 2005-12-16 | 2006-06-21 | 杭州华为三康技术有限公司 | Looped network and its protecting method |
| CN101212366A (en) * | 2007-12-21 | 2008-07-02 | 杭州华三通信技术有限公司 | Failure detection method, system, and main node in Ethernet loop network |
| WO2009089752A1 (en) * | 2007-12-29 | 2009-07-23 | Huawei Technologies Co., Ltd. | A protection method, system and device in the packet transport network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102006218A (en) | 2011-04-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102006218B (en) | Tunnel protection method and device | |
| EP2560326B1 (en) | Ring network protection method, network node and ring network | |
| CN102377601B (en) | LSP (Local Switched Path) fault notification method and LSP fault notification device | |
| CN103843293B (en) | The non-emporary computer-readable medium of communication system, transmitting device, communicator, failure notification method and storage program | |
| CN102201985B (en) | Ring protection switching method adopting multi-protocol label switching transport profile (MPLS TP) and node | |
| CN105245452A (en) | Multi-protocol label switching traffic engineering tunnel establishment method and device | |
| CN102088387B (en) | Tunnel protection method and device of ring network | |
| CN101471849A (en) | Protection method for packet transmission network | |
| WO2011015011A1 (en) | Method and system for ring network fault detection and locating | |
| CN101227370B (en) | Method for processing fault of transferring multi-protocol label switch sharing protection ring | |
| CN102014011A (en) | Method and system for protecting looped network | |
| CN101247354A (en) | Fast Recovery Rerouting Method for T-MPLS Network Multicast | |
| CN101785256B (en) | Protection mechanisms for a communications network | |
| CN101997747B (en) | Method and device for notification of faulty LSP information | |
| CN102315987B (en) | Ring network protection group link switching method and device | |
| CN102185773B (en) | Multi-protocol label switching transport profile ring protection switching method and node | |
| WO2008095390A1 (en) | An equipment for detecting the line fault of the pseudo wire emulation and a method thereof | |
| CN104702498A (en) | Method and device for reducing the number of optical connections through coordination protection | |
| CN103516534A (en) | Method for realizing dual-homing protection switching, and home node | |
| CN103404091B (en) | Service protection method, device and system | |
| CN101146115B (en) | Implementation method for bidirectional protective switching of multi-protocol label switching | |
| CN102546352A (en) | Method and system for realizing point-to-multipoint label switching path protection | |
| CN103746891B (en) | A kind of guard method of looped network access service, apparatus and system | |
| CN103117924B (en) | A kind of pretection switch method and apparatus | |
| CN101160865A (en) | A multicast service path protection system and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140716 Termination date: 20190903 |