CN103856403A - Message control method and apparatus - Google Patents
Message control method and apparatus Download PDFInfo
- Publication number
- CN103856403A CN103856403A CN201210501782.8A CN201210501782A CN103856403A CN 103856403 A CN103856403 A CN 103856403A CN 201210501782 A CN201210501782 A CN 201210501782A CN 103856403 A CN103856403 A CN 103856403A
- Authority
- CN
- China
- Prior art keywords
- lsp
- operator
- label
- notification message
- node
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例提供了一种报文控制方法,所述方法包括:骨干运营商网络中的第一PE确定第一客户运营商中的第一节点和所述第一PE之间的第一LSP是否可用,所述第一LSP以所述第一节点为终点;当确定所述第一LSP不可用时,所述第一PE向骨干运营商中的第二PE发送表明所述第一LSP不可用的第一通知报文,以便于所述第二PE停止与第二客户运营商之间的LSP建立。通过此方案,能够控制不必要的LSP建立,降低系统对LSP的开销。
An embodiment of the present invention provides a packet control method, the method comprising: a first PE in a backbone operator network determines a first LSP between a first node in a first customer operator and the first PE Whether it is available, the first LSP ends at the first node; when it is determined that the first LSP is unavailable, the first PE sends a message indicating that the first LSP is unavailable to the second PE in the backbone operator the first notification message, so that the second PE stops establishing the LSP with the second customer operator. Through this solution, unnecessary establishment of LSPs can be controlled, and system overhead on LSPs can be reduced.
Description
技术领域technical field
本发明涉及通信领域,具体涉及到一种报文控制方法及装置。The present invention relates to the communication field, in particular to a message control method and device.
背景技术Background technique
如图1所示,在现有技术中的运营商的运营商(carrier’s carrier)方案中,骨干运营商的客户设备(Customer Edge,CE)和骨干运营商的提供者边缘设备(Provider Edge,PE)之间利用内部网关协议(Internal Gateway Protocol,IGP)+标签分发协议(Label Distribution Protocol,LDP)。骨干运营商内部的PE间采用边界网关协议(Border Gateway Protocol,BGP)发布客户运营商的路由和标签。客户运营商的PE设备,也就是图1中的客户运营商提供者边缘设备(customer provider edge,C-PE)C-PE设备为了能给其客户提供虚拟专网(Virtual Private Network,VPN)业务,需要建立一条从上游的第二客户运营商的C-PE2到下游的第一客户运营商的C-PE1的标签交换路径(LabelSwitch Path,LSP)。As shown in Figure 1, in the carrier's carrier (carrier's carrier) solution in the prior art, the customer equipment (Customer Edge, CE) of the backbone operator and the provider edge device (Provider Edge, PE) of the backbone operator ) using Internal Gateway Protocol (Internal Gateway Protocol, IGP) + Label Distribution Protocol (Label Distribution Protocol, LDP). The PEs within the backbone operator use the Border Gateway Protocol (BGP) to publish the routes and labels of the customer operator. The PE equipment of the customer operator, that is, the customer provider edge (C-PE) equipment in Figure 1, in order to provide its customers with virtual private network (Virtual Private Network, VPN) services , it is necessary to establish a label switching path (LabelSwitch Path, LSP) from the upstream C-PE2 of the second customer operator to the downstream C-PE1 of the first customer operator.
骨干运营商的内部网络,以及客户设备CE1和骨干运营商PE1设备之间运行IGP+LDP协议。在PE1设备上,这两个协议都属于一个虚拟路由交换(Virtual Routing and Forwarding,VRF)。通过LDP建立起从PE1到C-PE1的LSP。PE1上通过IGP学习到C-PE1的路由。The internal network of the backbone operator and the IGP+LDP protocol run between the customer equipment CE1 and the backbone operator PE1. On PE1, both protocols belong to a Virtual Routing and Forwarding (VRF). An LSP from PE1 to C-PE1 is established through LDP. PE1 learns the route to C-PE1 through IGP.
骨干运营商PE1设备上的VRF实例里面将该VRF实例中的IGP路由引入到BGP VPN中,利用BGP把客户运营商的路由(CE1到C-PE1的路由)发布到远端骨干运营商的PE2设备。BGP发布私网路由时采用每路由标签方式给每个路由分配标签,把路由和给该路由分配的标签一起通过BGP发布到PE2设备。PE1把CE1通过LDP给PE1分配的该路由的标签和PE1本地为该路由分配的标签作标签交换。The VRF instance on the PE1 device of the backbone operator imports the IGP route in the VRF instance into the BGP VPN, and uses BGP to advertise the route of the customer operator (the route from CE1 to C-PE1) to PE2 of the remote backbone operator equipment. When BGP advertises private network routes, it assigns a label to each route in the label-per-route manner, and advertises the route and the label assigned to the route to PE2 through BGP. PE1 performs label exchange between the label of the route allocated by CE1 to PE1 through LDP and the label locally allocated by PE1 for the route.
在PE2上,收到PE1的VPN路由后,会把路由引入到IGP,触发LDP向上游的第二客户运营商的CE2设备分配标签,同时把分配的标签和从PE1通过BGP收到的该路由的标签做标签交换。最终形成一个C-PE2到C-PE1的端到端LSP。On PE2, after receiving the VPN route of PE1, it will import the route into IGP, trigger LDP to distribute labels to the CE2 device of the second upstream customer operator, and at the same time combine the distributed label with the route received from PE1 through BGP tags for tag switching. Finally, an end-to-end LSP from C-PE2 to C-PE1 is formed.
由于C-PE2需要迭代VPN业务到某隧道时,如果下游的LDP中断,上游侧的C-PE2无法感知隧道不可用,不能进行路由收敛,无法把流量切换到其他正常的隧道上,会导致业务中断。并且,当下游仅需要对小部分前缀建立LSP时,由于上游无法区分,会浪费标签和LSP资源。When C-PE2 needs to iterate VPN services to a certain tunnel, if the downstream LDP is interrupted, C-PE2 on the upstream side cannot perceive that the tunnel is unavailable, cannot perform route convergence, and cannot switch traffic to other normal tunnels, which will cause traffic interruption. Moreover, when the downstream only needs to establish LSPs for a small number of prefixes, label and LSP resources will be wasted because the upstream cannot distinguish them.
发明内容Contents of the invention
本发明提供一种报文控制方法,以解决现有技术中在下游的客户运营商的提供者边缘设备无法感知上游客户运营商的路由是否可用,从而不能控制不必要的LSP建立,降低系统对LSP开销的问题。The present invention provides a message control method to solve the problem that in the prior art, the provider edge device of the downstream customer operator cannot perceive whether the upstream customer operator's route is available, so that unnecessary LSP establishment cannot be controlled, and the system's impact on the system is reduced. The problem of LSP overhead.
第一方面,本发明实施例提供了一种报文控制方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a message control method, the method comprising:
骨干运营商网络中的第一PE确定第一客户运营商中的第一节点和所述第一PE之间的第一LSP是否可用,所述第一LSP以所述第一节点为终点;The first PE in the backbone operator's network determines whether a first LSP between a first node in a first customer operator and the first PE is available, and the first LSP terminates at the first node;
当确定所述第一LSP不可用时,所述第一PE向骨干运营商中的第二PE发送表明所述第一LSP不可用的第一通知报文,以便于所述第二PE停止与第二客户运营商之间的LSP建立。When it is determined that the first LSP is unavailable, the first PE sends a first notification message indicating that the first LSP is unavailable to the second PE in the backbone operator, so that the second PE stops communicating with the first LSP. An LSP between two customer operators is established.
在所述第一方面的第一种可能的实现方式中,所述骨干运营商网络中的第一PE确定第一客户运营商中的第一节点和所述第一PE之间的第一LSP是否可用包括:In a first possible implementation manner of the first aspect, the first PE in the backbone operator network determines the first LSP between the first node in the first customer operator and the first PE Availability includes:
当所述第一PE在预定的时间内未接收到用于建立所述第一LSP的标签时,确定所述第一LSP不可用。When the first PE does not receive the label used to establish the first LSP within a predetermined time, determine that the first LSP is unavailable.
在所述第一方面的第二种可能的实现方式中,还提供了所述第一方面的第二种可能的实现方式,所述第一通知报文包括用于表示所述第一PE未被分配用于建立所述第一LSP的标签的标识。In the second possible implementation manner of the first aspect, a second possible implementation manner of the first aspect is also provided, the first notification message includes a The identity of the label assigned to establish the first LSP.
在根据所述第一方面或所述第一方面的第一种可能的实现方式或所述第一方面的第二种可能的实现方式的所述第一方面的第三种可能的实现方式中,所述第一通知报文用于通知所述第二PE避免向与所述第二PE相连的第二客户运营商中的设备分配用于建立第二LSP的标签,所述第二LSP为以所述第二客户运营商中的第二节点为起点、以所述第一节点为终点且经过所述第一LSP的LSP。In a third possible implementation of the first aspect according to the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect , the first notification message is used to notify the second PE to avoid allocating labels for establishing a second LSP to equipment in the second customer operator connected to the second PE, and the second LSP is An LSP starting from the second node in the second customer operator, ending at the first node and passing through the first LSP.
在根据所述第一方面的第一种可能的实现方式至所述第一方面的第三种可能的实现方式中的任意一个的所述第一方面的第四种可能的实现方式中,所述第一PE通过标签分发协议LDP接收用于建立所述第一LSP的标签。In the fourth possible implementation manner of the first aspect according to any one of the first possible implementation manner of the first aspect to the third possible implementation manner of the first aspect, the The first PE receives the label used to establish the first LSP through a label distribution protocol LDP.
在根据所述第一方面的第一种可能的实现方式至所述第一方面的第三种可能的实现方式中任意一个的所述第一方面的第五种可能的实现方式中,当确定所述第一LSP不可用时,所述第一PE向骨干运营商中的第二PE发送所述第一LSP不可用的第一通知报文,具体包括:In the fifth possible implementation of the first aspect according to any one of the first possible implementation of the first aspect to the third possible implementation of the first aspect, when it is determined When the first LSP is unavailable, the first PE sends a first notification message that the first LSP is unavailable to the second PE in the backbone operator, specifically including:
所述第一PE将所述第一LSP对应的路由引入到边界网关协议BGP,以所述BGP的属性标识所述第一客户运营商没有给所述第一PE分配用于建立所述第一LSP的标签,并通过多协议网关协议MP-BGP将所述第一通知报文发布到所述第二PE。The first PE imports the route corresponding to the first LSP into the border gateway protocol BGP, and uses the attributes of the BGP to identify that the first customer operator has not assigned to the first PE to establish the first label of the LSP, and publish the first notification message to the second PE through the multi-protocol gateway protocol MP-BGP.
在所述第一方面的第六种可能的实现方式中,所述骨干运营商网络中的第一PE确定第一客户运营商中的第一节点和所述第一PE之间的第一LSP是否可用包括:In a sixth possible implementation manner of the first aspect, the first PE in the backbone operator network determines the first LSP between the first node in the first customer operator and the first PE Availability includes:
当第一PE接收到用于建立所述第一LSP的标签,且所述第一LSP存在连通性故障时,确定所述第一LSP不可用。When the first PE receives the label used to establish the first LSP, and the first LSP has a connectivity fault, determine that the first LSP is unavailable.
在根据所述第一方面或所述第一方面的第六种可能的实现方式的所述第一方面的第七种可能的实现方式中,所述第一通知报文包括:In the seventh possible implementation manner of the first aspect according to the first aspect or the sixth possible implementation manner of the first aspect, the first notification message includes:
用于表示所述第一PE已被分配用于建立所述第一LSP的标签但所述第一LSP存在连通性故障的标识。An identifier used to indicate that the first PE has been assigned a label for establishing the first LSP but the first LSP has a connectivity failure.
在根据所述第一方面或所述第一方面的第六种可能的实现方式或所述第一方面的第七种可能的实现方式的所述第一方面的第八种可能的实现方式中,所述第一通知报文用于通知所述第二PE撤销所述第二PE已经为与第二PE相连的第二客户运营商中的设备分配的用于建立第二LSP的标签,所述第二LSP为以第二客户运营商中的第二节点为起点、以所述第一节点为终点且经过所述第一LSP的LSP。In the eighth possible implementation manner of the first aspect according to the first aspect or the sixth possible implementation manner of the first aspect or the seventh possible implementation manner of the first aspect , the first notification message is used to notify the second PE to revoke the label used to establish the second LSP that the second PE has allocated for the equipment in the second customer operator connected to the second PE, so The second LSP is an LSP starting from the second node in the second customer operator, ending at the first node and passing through the first LSP.
在根据所述第一方面的第六种可能的实现方式至所述第一方面的第八种可能的实现方式中的任意一个的所述第一方面的第九种可能的实现方式中,当确定所述第一LSP不可用时,所述第一PE向骨干运营商中的第二PE发送所述第一LSP不可用的第一通知报文,具体包括:In the ninth possible implementation manner of the first aspect according to any one of the sixth possible implementation manner of the first aspect to the eighth possible implementation manner of the first aspect, when When determining that the first LSP is unavailable, the first PE sends a first notification message that the first LSP is unavailable to a second PE in the backbone operator, specifically including:
所述第一PE将所述第一LSP对应的路由引入到边界网关协议BGP,以所述BGP的属性标识所述的第一客户运营商已经给所述第一PE分配第一PE分配用于建立所述第一LSP的标签并且但所述第一LSP存在连通性故障,并通过MP-BGP协议将所述第一通知报文发布到所述第二PE。The first PE imports the route corresponding to the first LSP into the border gateway protocol BGP, and uses the attribute of the BGP to identify that the first customer operator has allocated the first PE to the first PE for Establishing the label of the first LSP but the first LSP has a connectivity failure, and publishing the first notification message to the second PE through the MP-BGP protocol.
第二方面,本发明实施例提供了一种报文控制装置,其特征在于,所述装置包括:In a second aspect, an embodiment of the present invention provides a message control device, wherein the device includes:
确定单元,用于确定第一客户运营商中的第一节点和所述第一PE之间的第一LSP是否可用,所述第一LSP以所述第一节点为终点;a determining unit, configured to determine whether a first LSP between a first node in a first customer operator and the first PE is available, and the first LSP terminates at the first node;
控制单元,用于当所述确定单元确定所述第一LSP不可用时,向骨干运营商中的第二PE发送所述第一LSP不可用的第一通知报文。A control unit, configured to, when the determination unit determines that the first LSP is unavailable, send a first notification message that the first LSP is unavailable to the second PE in the backbone operator.
在所述第二方面的第一种可能的实现方式中,所述确定单元:In a first possible implementation manner of the second aspect, the determining unit:
当所述第一PE在预定的时间内未接收到用于建立所述第一LSP的标签时,确定所述第一LSP不可用。When the first PE does not receive the label used to establish the first LSP within a predetermined time, determine that the first LSP is unavailable.
在所述第二方面的第二种可能的实现方式中,还提供了所述第二方面的第二种可能的实现方式,所述第一通知报文包括用于表示所述第一PE未被分配用于建立所述第一LSP的标签的标识。In the second possible implementation manner of the second aspect, a second possible implementation manner of the second aspect is also provided, the first notification message includes a The identity of the label assigned to establish the first LSP.
在根据所述第二方面或所述第二方面的第一种可能的实现方式或所述第二方面的第二种可能的实现方式的所述第二方面的第三种可能的实现方式中,所述第一通知报文用于通知所述第二PE避免向与所述第二PE相连的第二客户运营商中的设备分配用于建立第二LSP的标签,所述第二LSP为以所述第二客户运营商中的第二节点为起点、以所述第一节点为终点且经过所述第一LSP的LSP。In a third possible implementation of the second aspect according to the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect , the first notification message is used to notify the second PE to avoid allocating labels for establishing a second LSP to equipment in the second customer operator connected to the second PE, and the second LSP is An LSP starting from the second node in the second customer operator, ending at the first node and passing through the first LSP.
在根据所述第二方面的第一种可能的实现方式至所述第二方面的第三种可能的实现方式中的任意一个的所述第二方面的第四种可能的实现方式中,还包括:接收单元,用于通过标签分发协议LDP接收用于建立所述第一LSP的标签。In the fourth possible implementation manner of the second aspect according to any one of the first possible implementation manner of the second aspect to the third possible implementation manner of the second aspect, further It includes: a receiving unit, configured to receive the label used to establish the first LSP through a label distribution protocol LDP.
在根据所述第一方面的第一种可能的实现方式至所述第一方面的第三种可能的实现方式中任意一个的所述第二方面的第五种可能的实现方式中,所述控制单元具体用于:In the fifth possible implementation manner of the second aspect according to any one of the first possible implementation manner of the first aspect to the third possible implementation manner of the first aspect, the The control unit is used in particular for:
将所述第一LSP对应的路由引入到边界网关协议BGP,以所述BGP的属性标识所述第一客户运营商没有给所述第一PE分配用于建立所述第一LSP的标签,并通过多协议网关协议MP-BGP将所述第一通知报文发布到所述第二PE。importing the route corresponding to the first LSP into Border Gateway Protocol BGP, using the attributes of the BGP to identify that the first customer operator has not allocated a label for establishing the first LSP to the first PE, and Publishing the first notification message to the second PE through a multi-protocol gateway protocol MP-BGP.
在所述第二方面的第六种可能的实现方式中,确定单元具体用于:In a sixth possible implementation manner of the second aspect, the determining unit is specifically configured to:
当第一PE接收到用于建立所述第一LSP的标签,且所述第一LSP存在连通性故障时,确定所述第一LSP不可用。When the first PE receives the label used to establish the first LSP, and the first LSP has a connectivity fault, determine that the first LSP is unavailable.
在根据所述第二方面或所述第二方面的第六种可能的实现方式的所述第二方面的第七种可能的实现方式中,所述第一通知报文包括:In the seventh possible implementation manner of the second aspect according to the second aspect or the sixth possible implementation manner of the second aspect, the first notification message includes:
用于表示所述第一PE已被分配用于建立所述第一LSP的标签但所述第一LSP存在连通性故障的标识。An identifier used to indicate that the first PE has been assigned a label for establishing the first LSP but the first LSP has a connectivity failure.
在根据所述第二方面或所述第二方面的第六种可能的实现方式或所述第二方面的第七种可能的实现方式的所述第二方面的第八种可能的实现方式中,所述第一通知报文用于通知所述第二PE撤销所述第二PE已经为与第二PE相连的第二客户运营商中的设备分配的用于建立第二LSP的标签,所述第二LSP为以第二客户运营商中的第二节点为起点、以所述第一节点为终点且经过所述第一LSP的LSP。In the eighth possible implementation of the second aspect according to the second aspect or the sixth possible implementation of the second aspect or the seventh possible implementation of the second aspect , the first notification message is used to notify the second PE to revoke the label used to establish the second LSP that the second PE has allocated for the equipment in the second customer operator connected to the second PE, so The second LSP is an LSP starting from the second node in the second customer operator, ending at the first node and passing through the first LSP.
在根据所述第二方面的第六种可能的实现方式至所述第二方面的第八种可能的实现方式中的任意一个的所述第二方面的第九种可能的实现方式中,所述控制单元具体用于:In the ninth possible implementation manner of the second aspect according to any one of the sixth possible implementation manner of the second aspect to the eighth possible implementation manner of the second aspect, the The control unit described above is used in particular for:
将所述第一LSP对应的路由引入到边界网关协议BGP,以所述BGP的属性标识所述的第一客户运营商已经给所述第一PE分配第一PE分配用于建立所述第一LSP的标签并且但所述第一LSP存在连通性故障,并通过MP-BGP协议将所述第一通知报文发布到所述第二PE。importing the route corresponding to the first LSP into Border Gateway Protocol BGP, and using the attributes of the BGP to identify that the first customer operator has allocated the first PE to the first PE to establish the first label of the LSP and the first LSP has a connectivity fault, and publishes the first notification message to the second PE through the MP-BGP protocol.
通过本发明实施例提供的方法,骨干运营商的PE设备将VRF实例中收到的客户运营商的路由的对应标签的信息,通过第一通知报文发布到骨干运营商的其他PE设备,使得其他的PE设备在确定下游的客户运营商的路由的对应标签不可用时,避免向上游客户运营商分配标签。通过此方案,能够控制不必要的LSP建立,降低系统对LSP的开销。Through the method provided by the embodiment of the present invention, the PE equipment of the backbone operator publishes the information of the label corresponding to the route of the customer operator received in the VRF instance to other PE equipment of the backbone operator through the first notification message, so that When other PE devices determine that the label corresponding to the route of the downstream customer operator is not available, they avoid allocating labels to the upstream customer operator. Through this solution, unnecessary establishment of LSPs can be controlled, and system overhead on LSPs can be reduced.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1为LSP建立系统架构图;Figure 1 is a system architecture diagram for LSP establishment;
图2为运营商的运营商系统架构图;FIG. 2 is a diagram of an operator system architecture of an operator;
图3为本发明实施例提供的报文控制方法的流程图;FIG. 3 is a flowchart of a message control method provided by an embodiment of the present invention;
图4为本发明实施例中LSP建立方法的流程图;Fig. 4 is the flowchart of the method for establishing LSP in the embodiment of the present invention;
图5为本发明实施例提供的报文控制装置的结构图;FIG. 5 is a structural diagram of a message control device provided by an embodiment of the present invention;
图6为本发明另一实施例提供的报文控制装置的结构图。Fig. 6 is a structural diagram of a message control device provided by another embodiment of the present invention.
具体实施方式Detailed ways
下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.
多协议标签交换(Multiple Protocol Label Switch,MPLS)位于TCP/IP协议栈中的链路层和网络层之间,用于向IP层提供连接服务,同时又从链路层得到服务。MPLS不局限于任何特定的链路层协议,能够使用任意二层介质传输网络分组。MPLS并不是一种业务或者应用,它实际上是一种隧道技术。这种技术不仅支持多种高层协议与业务,而且在一定程度上可以保证信息传输的安全性。在此种技术中,MPLS以标签交换替代IP转发,其中标签是封装在链路层和网络层之间的一个短而定长的、只具有本地意义的连接标识符。Multiple Protocol Label Switching (Multiple Protocol Label Switch, MPLS) is located between the link layer and the network layer in the TCP/IP protocol stack, and is used to provide connection services to the IP layer and obtain services from the link layer at the same time. MPLS is not limited to any specific link layer protocol, and can use any layer-2 medium to transmit network packets. MPLS is not a kind of service or application, it is actually a kind of tunnel technology. This technology not only supports multiple high-level protocols and services, but also ensures the security of information transmission to a certain extent. In this technology, MPLS replaces IP forwarding with label switching, where the label is a short and fixed-length connection identifier that only has local significance and is encapsulated between the link layer and the network layer.
标签分发协议(Label Distribution Protocol,LDP)是MPLS的一种控制协议,相当于传统网络中的信令协议,负责转发等价类(Forwarding EquivalenceClass,FEC)的分类、标签的分配以及标签交换路径(Label Switched Path,LSP)的建立和维护等操作。LDP规定了标签分发过程中的各种消息以及相关处理过程。Label Distribution Protocol (Label Distribution Protocol, LDP) is a control protocol of MPLS, which is equivalent to the signaling protocol in the traditional network. Label Switched Path (LSP) establishment and maintenance operations. LDP specifies various messages and related processing procedures in the label distribution process.
MPLS支持多层标签,并且转发平面面向连接,故具有良好的扩展性,使在统一的MPLS/IP基础网络架构上为客户提供各类服务成为可能。通过LDP协议,标签交换路由器(Label Switched Router,LSR)可以把网络层的路由信息直接映射到数据链路层的交换路径上,建立起网络层的LSP。目前,LDP广泛地应用于VPN服务,具有组网和配置简单、支持路由拓扑驱动建立LSP、支持大容量LSP等优点。MPLS supports multi-layer labels, and the forwarding plane is connection-oriented, so it has good scalability, making it possible to provide customers with various services on the unified MPLS/IP basic network architecture. Through the LDP protocol, the Label Switched Router (LSR) can directly map the routing information of the network layer to the switching path of the data link layer, and establish the LSP of the network layer. Currently, LDP is widely used in VPN services. It has the advantages of simple networking and configuration, support for establishing LSPs driven by routing topology, and support for large-capacity LSPs.
VPN是依靠Internet服务提供商(Internet Service Provider,ISP)和网络服务提供商(Network Service Provider,NSP)在公共网络中建立的虚拟专用通信网络。VPN的基本原理是利用隧道技术,把VPN报文封装在隧道中,利用VPN骨干网建立专用数据传输通道,实现报文的透明传输。VPN is a virtual private communication network established in a public network by Internet Service Provider (Internet Service Provider, ISP) and Network Service Provider (Network Service Provider, NSP). The basic principle of VPN is to use tunnel technology to encapsulate VPN packets in the tunnel, and use the VPN backbone network to establish a dedicated data transmission channel to realize transparent transmission of packets.
隧道技术使用一种协议封装另外一种协议报文,而封装协议本身也可以被其他封装协议所封装或承载。Tunnel technology uses one protocol to encapsulate another protocol message, and the encapsulation protocol itself can also be encapsulated or carried by other encapsulation protocols.
BGP/MPLS IP VPN是一种三层虚拟专网(Layer 3Virtual Private Network,L3VPN)。它使用边界网关协议(Border Gateway Protocol,BGP)在服务提供商骨干网上发布VPN路由,使用MPLS在服务提供商骨干网上转发VPN报文。这里的IP是指VPN承载的是IP报文。BGP/MPLS IP VPN is a Layer 3 Virtual Private Network (L3VPN). It uses Border Gateway Protocol (BGP) to advertise VPN routes on the service provider backbone network, and uses MPLS to forward VPN packets on the service provider backbone network. The IP here means that the VPN bears IP packets.
BGP/MPLS IP VPN服务提供商的用户本身也可能是一个服务提供商。这种情况下,前者称为提供商运营商(provider carrier)或一级运营商(firstcarrier),后者称为客户运营商(customer carrier)或二级运营商(second carrier),如图2所示。这种组网模型称为运营商的运营商(carriers'carrier),低级别的服务提供商SP(Service Provider)作为更高级别SP的VPN客户。A user of a BGP/MPLS IP VPN service provider may also be a service provider itself. In this case, the former is called provider carrier or first carrier, and the latter is called customer carrier or second carrier, as shown in Figure 2 Show. This networking model is called carriers'carriers (carriers'carrier), and the low-level service provider SP (Service Provider) acts as the VPN client of the higher-level SP.
为保持良好的可扩展性,二级运营商采用一级运营商CE只把二级运营商内部的路由发布给一级运营商的PE,不发布自己客户的路由。在本文的描述中,二级运营商内部的路由称为内部路由,二级运营商客户的路由称为外部路由。In order to maintain good scalability, the second-tier operators use the CEs of the first-tier operators to only advertise the internal routes of the second-tier operators to the PEs of the first-tier operators, and do not advertise the routes of their own customers. In the description of this article, the internal routes of the second-tier carrier are called internal routes, and the routes of customers of the second-tier carrier are called external routes.
其中,内部路由和外部路由的区别在于:内部路由是指二级运营商交换路径SP站点的路由,需要在相关的一级运营商PE间通过BGP进行交换;外部路由是指二级运营商客户站点的路由,即二级运营商的VPN路由。外部路由不发布给一级运营商的PE设备,只在相关二级运营商PE间通过BGP进行交换。Among them, the difference between internal routing and external routing is: internal routing refers to the route of the secondary operator switching path SP site, which needs to be exchanged between the relevant primary operator PEs through BGP; external routing refers to the secondary operator customer The route of the site, that is, the VPN route of the secondary carrier. The external routes are not advertised to the PE devices of the first-level carrier, but are only exchanged between PEs of the related second-level carrier through BGP.
客户BGP/MPLS VPN服务提供商(也就是二级运营商)的VPN-IPv4路由被看作外部路由,骨干BGP/MPLS VPN服务提供商(也就是一级运营商)并不将这些路由引入到它自己的VPN路由转发表,它只引入客户BGP/MPLSVPN服务提供商的内部路由。这样,减少了一级运营商网络中需要维护的路由数量。二级运营商需要维护内部路由和外部路由。The VPN-IPv4 routes of the customer BGP/MPLS VPN service provider (that is, the second-tier carrier) are regarded as external routes, and the backbone BGP/MPLS VPN service provider (that is, the first-tier carrier) does not import these routes into the Its own VPN routing and forwarding table, it only imports the internal routing of the customer's BGP/MPLS VPN service provider. In this way, the number of routes that need to be maintained in the first-level carrier network is reduced. Secondary carriers need to maintain internal and external routes.
由于,在MPLS技术中存在客户运营商的提供者边缘设备C-PE2需要迭代VPN业务到某隧道时,如果下游客户运营商侧的LDP中断,上游客户运营商侧的提供者边缘设备C-PE2无法感知隧道已经不可用,不能进行路由收敛,无法把流量切换到其他正常的隧道上,会导致业务中断。并且当下游客户运营商仅需要对小部分前缀建立LSP时,由于上游客户运营商侧无法区分,会浪费label和LSP资源。Because, in MPLS technology, when the provider edge equipment C-PE2 of the customer operator needs to iterate the VPN service to a certain tunnel, if the LDP on the downstream customer operator side is interrupted, the provider edge equipment C-PE2 on the upstream customer operator side It cannot detect that the tunnel is unavailable, cannot perform route convergence, and cannot switch traffic to other normal tunnels, which will cause service interruption. And when the downstream customer operator only needs to establish LSPs for a small number of prefixes, because the upstream customer operator side cannot distinguish, label and LSP resources will be wasted.
为此,本发明实施例提供一种报文控制方法的方法。图3是本发明实施例提供的报文控制方法一种实施例的流程图。在该实施例中,执行主体为骨干运营商中的位于上游的提供者边缘设备,也就是背景技术图1中的PE1,由图可见,所述方法包括以下内容。To this end, an embodiment of the present invention provides a packet control method. Fig. 3 is a flowchart of an embodiment of a packet control method provided by an embodiment of the present invention. In this embodiment, the executor is the upstream provider edge device of the backbone operator, that is, PE1 in the background art FIG. 1 . It can be seen from the figure that the method includes the following contents.
步骤301,骨干运营商网络中的第一PE确定第一客户运营商中的第一节点和所述第一PE之间的第一LSP是否可用,所述第一LSP以所述第一节点为终点;Step 301, the first PE in the backbone operator's network determines whether a first LSP between the first node in the first customer operator and the first PE is available, and the first LSP takes the first node as end;
具体的,骨干运营商的第一PE,例如图1中的PE1为站点1(site1)侧的客户运营商创建一个第一VRF。也就是产生一个到客户运营商的PE设备C-PE1的路由,具体的产生方法可以是通过IGP协议动态学习,或者静态配置,本发明实施例包括但不限定于以上的几种方法。Specifically, the first PE of the backbone operator, for example, PE1 in FIG. 1 creates a first VRF for the customer operator at the site 1 (site1) side. That is to generate a route to the PE equipment C-PE1 of the customer operator. The specific generation method can be dynamic learning through the IGP protocol or static configuration. Embodiments of the present invention include but are not limited to the above methods.
PE1通过所述第一VRF实例接收第一客户运营商中的第一客户运营商提供者边缘设备C-PE1到第一PE的第一LSP,C-PE1作为第一LSP的终点。优选的,PE1通过标签分发协议(LDP)接收用于建立所述第一LSP的标签,客户运营商发布标签给骨干运营商的方法通常是采用LDP,还可以是其他方法,本发明只是列举了示例性的常用方法,不限于上述方法。PE1 receives the first LSP from the provider edge device C-PE1 of the first customer operator in the first customer operator to the first PE through the first VRF instance, and C-PE1 serves as the end point of the first LSP. Preferably, PE1 receives the label used to establish the first LSP through the label distribution protocol (LDP). The method for the customer operator to issue the label to the backbone operator is usually to use LDP, and other methods are also possible. The present invention only lists Exemplary common methods are not limited to the above methods.
PE1可能会接收到用于建立所述第一LSP的标签,也可能接收不到上述的标签。PE1 may receive the label used to establish the first LSP, or may not receive the above label.
当所述PE1在预定的时间内未接收到用于建立所述第一LSP的标签时,或者当第一接收到用于建立所述第一LSP的标签,但所述第一LSP存在连通性故障时,确定所述第一LSP不可用。When the PE1 does not receive the label used to establish the first LSP within a predetermined time, or when the first LSP receives the label used to establish the first LSP, but the first LSP has connectivity When a failure occurs, it is determined that the first LSP is unavailable.
步骤302,当确定所述第一LSP不可用时,所述第一PE向骨干运营商中的第二PE发送所述第一LSP不可用的第一通知报文。Step 302, when it is determined that the first LSP is unavailable, the first PE sends a first notification message that the first LSP is unavailable to a second PE in the backbone operator.
通过本发明实施例提供的方法,骨干运营商的PE设备将VRF中收到的下游客户运营商的路由的对应标签是否存在的信息,通过信令消息发送到骨干运营商的其他PE设备,使得其他PE设备能够根据情况判断是否需要向上游的客户运营商分配标签,从而节省标签并且降低系统对LSP的开销。Through the method provided by the embodiment of the present invention, the PE equipment of the backbone operator sends the information on whether the label corresponding to the route of the downstream customer operator received in the VRF exists to other PE equipment of the backbone operator through a signaling message, so that Other PE devices can determine whether to allocate labels to upstream customer operators according to the situation, thereby saving labels and reducing the system's overhead on LSPs.
在一种实施方式中,PE1在当所述第一PE因在预定的时间内未接收到用于建立所述第一LSP的标签而确定所述第一LSP不可用时,向PE2发送第一通知报文,所述第一通知报文中包括用于表示所述第一PE未被分配用于建立所述第一LSP的标签的标识。所述第一通知报文用于通知所述PE2避免向与所述PE2相连的第二客户运营商中的设备分配用于建立第二LSP的标签。可选地,所述第二LSP为以所述第二客户运营商中的第二节点为起点、以所述第一节点为终点且经过所述第一LSP的LSP。所述第一节点可以是图1所示的C-PE1,第二节点可以是图1所示的C-PE2,第一节点和第二节点也可以是其他节点。所述第二LSP可以看作是对第一LSP的延长,第一LSP可以看作是第二LSP的一部分。In one embodiment, PE1 sends a first notification to PE2 when the first PE determines that the first LSP is unavailable because the first PE has not received the label used to establish the first LSP within a predetermined time message, where the first notification message includes an identifier used to indicate that the first PE is not allocated a label for establishing the first LSP. The first notification message is used to notify the PE2 to avoid allocating the label used for establishing the second LSP to the equipment in the second customer operator connected to the PE2. Optionally, the second LSP is an LSP starting from the second node in the second customer operator, ending at the first node and passing through the first LSP. The first node may be C-PE1 shown in FIG. 1 , the second node may be C-PE2 shown in FIG. 1 , and the first node and the second node may also be other nodes. The second LSP can be regarded as an extension of the first LSP, and the first LSP can be regarded as a part of the second LSP.
更具体的,骨干运营商第一PE设备把第一VRF中的到第一客户运营商的路由引入到BGP,采用BGP的属性标识所述第一客户运营商没有给所述第一PE分配用于建立所述第一LSP的标签,并通过MP-BGP协议发布到骨干运营商的其他PE设备,例如PE2。上述采用的BGP属性,在一个实施例中是采用BGP的扩展团体属性,还可以是其他方法,本发明实施例只是列举了示例性的常用的方法,不限于上述方法。More specifically, the backbone operator's first PE device imports the route to the first customer operator in the first VRF into BGP, and uses BGP attributes to identify that the first customer operator does not allocate a route to the first PE. Labels for establishing the first LSP, and publish them to other PE devices of the backbone operator, such as PE2, through the MP-BGP protocol. The BGP attribute adopted above is the extended community attribute of BGP in one embodiment, and other methods may also be used. The embodiment of the present invention only lists exemplary commonly used methods, and is not limited to the above methods.
骨干运营商的其他PE设备,例如PE2依据第一通知报文判断是否需要触发第二VRF实例向第二客户运营商分配用于建立第二LSP的标签。Other PE devices of the backbone operator, such as PE2, judge whether it is necessary to trigger the second VRF instance to allocate a label for establishing the second LSP to the second customer operator according to the first notification message.
通过上述实施例,PE2设备能够根据下游的客户运营商是否已经为对应的客户运营商的路由分配标签,判断是否需要向上游的客户运营商分配标签,从而节省标签并且降低系统对LSP的开销。Through the above embodiments, the PE2 device can judge whether to assign labels to the upstream customer operator according to whether the downstream customer operator has assigned labels to the routes of the corresponding customer operators, thereby saving labels and reducing system overhead for LSPs.
在另一种实施方式中,PE1,即第一PE,在接收到用于建立所述第一LSP的标签,且所述第一LSP存在连通性故障时,确定所述第一LSP不可用,并向PE2,即第二PE,发送第一通知报文,该第一通知报文中包括用于表示所述第一PE已被分配用于建立所述第一LSP的标签但所述第一LSP存在连通性故障的标识。所述第一通知报文用于通知所述PE2撤销所述PE2已经为与第二PE相连的第二客户运营商中的设备分配的用于建立第二LSP的标签,所述第二LSP为以第二客户运营商中的第二节点C-PE2为起点、以所述第一节点C-PE1为终点且经过所述第一LSP的LSP,即第二LSP。In another implementation manner, PE1, that is, the first PE, determines that the first LSP is unavailable when receiving the label used to establish the first LSP, and the first LSP has a connectivity fault, And send a first notification message to PE2, that is, the second PE, which includes a label used to indicate that the first PE has been allocated for establishing the first LSP but the first Indicates that the LSP has a connectivity fault. The first notification message is used to notify the PE2 to revoke the label that the PE2 has allocated for the equipment in the second customer operator connected to the second PE to establish a second LSP, and the second LSP is An LSP starting from the second node C-PE2 in the second customer operator, ending at the first node C-PE1 and passing through the first LSP, that is, the second LSP.
更具体的,骨干运营商第一PE设备把第一VRF中的到第一客户运营商的路由引入到BGP,采用BGP的属性进行标识,以所述BGP的属性标识所述的第一客户运营商已经给所述第一PE分配第一PE分配用于建立所述第一LSP的标签但所述第一LSP存在连通性故障,并通过MP-BGP协议发布到骨干运营商的其他PE设备,例如PE2。上述采用的BGP属性,在一个实施例中是采用BGP的扩展团体属性,还可以是其他方法,本发明实施例只是列举了示例性的常用的方法,不限于上述方法。More specifically, the first PE device of the backbone operator imports the route to the first customer operator in the first VRF into BGP, uses the BGP attribute for identification, and uses the BGP attribute to identify the first customer operator The provider has allocated the first PE to the first PE to establish the label of the first LSP, but the first LSP has a connectivity failure, and advertises it to other PE devices of the backbone operator through the MP-BGP protocol, For example PE2. The BGP attribute adopted above is the extended community attribute of BGP in one embodiment, and other methods may also be used. The embodiment of the present invention only lists exemplary commonly used methods, and is not limited to the above methods.
骨干运营商的其他PE设备,例如PE2依据第一通知报文撤销已经分配的用于建立第二LSP的标签,以便撤销第二LSP。Other PE devices of the backbone operator, such as PE2, revoke the allocated label for establishing the second LSP according to the first notification message, so as to revoke the second LSP.
上述的实施方法,同样适用于已经建立从C-PE2到C-PE1的LSP的情况,即PE1发现从PE1到C-PE1之间的第一LSP存在故障,则通知PE2撤销从PE2到C-PE2之间的标签。The above implementation method is also applicable to the situation where the LSP from C-PE2 to C-PE1 has been established, that is, PE1 finds that the first LSP between PE1 and C-PE1 is faulty, and then notifies PE2 to cancel the connection from PE2 to C-PE1. label between PE2.
通过本实施例提供的方法,能够使得骨干运营商的除PE1外的其他PE设备能够及时获知LSP中断的信息,从而使其他PE避免继续建立一条中断的LSP的或者使其他PE撤销已经中断的LSP,避免资源浪费和业务损失。Through the method provided in this embodiment, other PE devices of the backbone operator except PE1 can be informed of LSP interruption information in time, so that other PEs can avoid continuing to establish an interrupted LSP or make other PEs cancel the interrupted LSP , Avoid resource waste and business loss.
优选的,在另外一种实施方式中,当PE1确定所述第一LSP可用时,所述第一PE向骨干运营商中的第二PE发送所述第一LSP可用的第二通知报文,以便于所述第二PE根据所述第二通知报文,向与所述第二PE相连的第二客户运营商中的设备分配用于建立第二LSP的标签,所述第二LSP为以所述第二客户运营商中的第二节点为起点、以所述第一节点为终点且经过所述第一LSP的LSP。实际上,第二LSP包括了第一LSP,第一LSP可以看做是第二LSP的一部分,而第二LSP可以看作是第一LSP的延长。Preferably, in another implementation manner, when PE1 determines that the first LSP is available, the first PE sends a second notification message that the first LSP is available to a second PE in the backbone operator, so that the second PE allocates a label for establishing a second LSP to a device in a second customer operator connected to the second PE according to the second notification message, and the second LSP is in the form of An LSP starting from the second node in the second customer operator, ending at the first node and passing through the first LSP. Actually, the second LSP includes the first LSP, the first LSP can be regarded as a part of the second LSP, and the second LSP can be regarded as an extension of the first LSP.
此外,无论第一LSP是否可用,第一PE均可以向第二分配一个用于建立所述第二LSP的标签。In addition, no matter whether the first LSP is available or not, the first PE can assign a label for establishing the second LSP to the second PE.
具体而言,所述第一LSP可用是指PE1接收到用于建立所述第一LSP的标签,且所述第一LSP不存在连通性故障时。Specifically, the availability of the first LSP refers to when PE1 receives a label for establishing the first LSP, and there is no connectivity fault in the first LSP.
在这种情况下,PE1可以选择发送第二通知报文,告知PE2第一LSP可用。In this case, PE1 may choose to send a second notification message to inform PE2 that the first LSP is available.
PE2可以在接收到第二通知报文之后,为客户运营商创建一个第二虚拟路由交换VRF实例;PE2与PE1类似,也为PE2连接的第二客户运营商的C-PE2也创建一个VRF,我们称为VRF2。产生的方法可以是通过IGP协议动态学习,或者静态配置。这里只列举了最常见的方法,本发明不限于上述两种方法。PE2 can create a second virtual routing and switching VRF instance for the customer operator after receiving the second notification message; PE2 is similar to PE1, and also creates a VRF for the C-PE2 of the second customer operator connected to PE2, We call it VRF2. The generated method can be dynamic learning through the IGP protocol, or static configuration. Only the most common methods are listed here, and the present invention is not limited to the above two methods.
PE2通过第二通知报文获知第一LSP可用,则触发第二VRF实例向所述第二客户运营商分配标签,建立所述第三LSP,也就是从C-PE2到PE2的LSP,进一步建立从C-PE2到C-PE1的LSP。PE2 learns that the first LSP is available through the second notification message, then triggers the second VRF instance to assign labels to the second customer operator, establishes the third LSP, that is, the LSP from C-PE2 to PE2, and further establishes LSP from C-PE2 to C-PE1.
例如,PE2可以根据图4所述的流程进行处理。For example, PE2 may perform processing according to the flow described in FIG. 4 .
步骤401,接收MP-BGP发布的路由,并将所述路由引入到所述第二VRF对应的IGP中;Step 401, receiving the route published by MP-BGP, and importing the route into the IGP corresponding to the second VRF;
步骤402,解析所述BGP携带的属性,若存在所述第一PE增加的指定属性,则执行步骤403,反之,结束;Step 402, analyzing the attribute carried by the BGP, if there is a specified attribute added by the first PE, then perform step 403, otherwise, end;
具体而言,存在第一PE增加的指定属性说明第一LSP可用,如果不存在,则证明第一LSP不可用。Specifically, the existence of the specified attribute added by the first PE indicates that the first LSP is available, and if it does not exist, it proves that the first LSP is unavailable.
步骤403,触发所述第二VRF实例中的LDP为所述路由向所述第二客户运营商分配标签。Step 403, triggering the LDP in the second VRF instance to assign a label to the second customer operator for the route.
通过上述实施例,能够使得骨干运营商的除PE1外的其他PE设备能够及时获知LSP中断的信息,从而停止建立一条中断的LSP或者侧小一条中断的LSP。这条LSP的起点可以发现LSP无法建立或者LSP被撤销,这样就有机会对受影响的业务采取措施,避免资源浪费和业务损失。Through the above-mentioned embodiment, other PE devices except PE1 of the backbone operator can learn the information of LSP interruption in time, so as to stop establishing an interrupted LSP or a side-by-side interrupted LSP. The starting point of this LSP can be found that the LSP cannot be established or the LSP is revoked, so that there is an opportunity to take measures for the affected services to avoid waste of resources and loss of services.
相应的,请参考图5,本发明实施例还提供一种报文控制装置,例如前述实施例中的骨干运营商中的PE设备,包括:Correspondingly, please refer to FIG. 5. The embodiment of the present invention also provides a packet control device, such as the PE device in the backbone operator in the foregoing embodiment, including:
确定单元501,用于确定第一客户运营商中的第一节点和所述第一PE之间的第一LSP是否可用,所述第一LSP以所述第一节点为终点;A determining
控制单元502,用于当所述确定单元501确定所述第一LSP不可用时,向骨干运营商中的第二PE发送表明所述第一LSP不可用的第一通知报文。The
所述确定单元501可以由至少一个控制电路实现,所述控制单元502可以由至少一个控制电路实现。The determining
所述确定单元501:当所述第一PE在预定的时间内未接收到用于建立所述第一LSP的标签时,或者收到用于建立第一LSP的标签,但是第一LSP存在故障的情况下,确定所述第一LSP不可用。The determining unit 501: when the first PE does not receive the label used to establish the first LSP within a predetermined time, or receives the label used to establish the first LSP, but the first LSP is faulty In the case of , it is determined that the first LSP is unavailable.
在一种较佳的实施方式中,所述装置还包括接收单元503,用于通过标签分发协议LDP接收用于建立所述第一LSP的标签。所述接收单元503可以由至少一个接收电路实现。In a preferred implementation manner, the apparatus further includes a receiving
控制单元502发送的所述第一通知报文中包括用于表示所述第一PE未被分配用于建立所述第一LSP的标签的标识,通知所述第二PE避免向与所述第二PE相连的第二客户运营商中的设备分配用于建立第二LSP的标签,所述第二LSP为以所述第二客户运营商中的第二节点为起点、以所述第一节点为终点且经过所述第一LSP的LSP。The first notification message sent by the
优选的,控制单元502将所述第一LSP对应的路由引入到边界网关协议BGP,以所述BGP的属性标识所述第一客户运营商没有给所述第一PE分配用于建立所述第一LSP的标签,并通过多协议网关协议MP-BGP将所述第一通知报文发布到所述第二PE。Preferably, the
在另外一种实施例中,确定单元501当第一接收到用于建立所述第一LSP的标签,且所述第一LSP存在连通性故障时,确定所述第一LSP不可用。In another embodiment, the determining
控制单元502发送的所述第一通知报文中包括表示所述第一PE已被分配用于建立所述第一LSP的标签但所述第一LSP存在连通性故障的标识,所述第一通知报文用于通知所述第二PE撤销所述第二PE已经为与第二PE相连的第二客户运营商中的设备分配的用于建立第二LSP的标签,所述第二LSP为以第二客户运营商中的第二节点为起点、以所述第一节点为终点且经过所述第一LSP的LSP。The first notification message sent by the
优选的,所述控制单元502将所述第一LSP对应的路由引入到边界网关协议BGP,以所述BGP的属性标识所述的第一客户运营商已经给所述第一PE分配第一PE分配用于建立所述第一LSP的标签并且但所述第一LSP存在连通性故障,并通过MP-BGP协议将所述第一通知报文发布到所述第二PE。Preferably, the
可选的,在另外一种实施方式中,所述控制单元502还用于,当所述确定单元确定所述第一LSP可用时,向骨干运营商中的第二PE发送所述第一LSP可用的第二通知报文,以便于所述第二PE根据所述第二通知报文,向与所述第二PE相连的第二客户运营商中的设备分配用于建立第二LSP的标签,所述第二LSP为以所述第二客户运营商中的第二节点为起点、以所述第一节点为终点且经过所述第一LSP的LSP。Optionally, in another implementation manner, the
值得注意的是,前述的实施例中的各个模块分别是为了实现图3所示的方法的功能模块,实际上PE设备很大可能同时具有实现图3-图4所示的方法的功能,因此上述的两种实施例中的各个模块完全能够集成在同一PE设备中,不应理解为对本发明实施例的限制。It is worth noting that each module in the foregoing embodiments is a functional module for implementing the method shown in FIG. 3 . In fact, the PE device is likely to have the function of implementing the method shown in FIGS. 3-4 at the same time, so Each module in the above two embodiments can be fully integrated in the same PE device, which should not be construed as a limitation to the embodiments of the present invention.
图6为本发明实施例报文控制装置的示意图,如图所示,本实施例包括网络接口61、处理器62和存储器63。系统总线64用于连接网络接口61、处理器62和存储器63。FIG. 6 is a schematic diagram of a message control device according to an embodiment of the present invention. As shown in the figure, this embodiment includes a
网络接口61用于与其他设备进行通信。The
存储器63可以是永久存储器,例如硬盘驱动器和闪存,存储器63中具有软件模块和设备驱动程序。软件模块能够执行本发明上述方法的各种功能模块;设备驱动程序可以是网络和接口驱动程序。The
在启动时,这些软件组件被加载到存储器63中,然后被处理器62访问并执行如下指令:At startup, these software components are loaded into
骨干运营商网络中的第一PE确定第一客户运营商中的第一节点和所述第一PE之间的第一LSP是否可用,所述第一LSP以所述第一节点为终点;The first PE in the backbone operator's network determines whether a first LSP between a first node in a first customer operator and the first PE is available, and the first LSP terminates at the first node;
当确定所述第一LSP不可用时,所述第一PE向骨干运营商中的第二PE发送表明所述第一LSP不可用的第一通知报文。When it is determined that the first LSP is unavailable, the first PE sends a first notification message indicating that the first LSP is unavailable to the second PE in the backbone operator.
图6所示的报文控制装置,可以用于执行图3-图4所示的报文控制方法,只需要在存储器或者处理器中作出相应的配置即可,不多赘述。The message control device shown in FIG. 6 can be used to execute the message control methods shown in FIGS. 3-4 , and only needs to make corresponding configurations in the memory or processor, and details will not be repeated here.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should further realize that the units and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (20)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210501782.8A CN103856403B (en) | 2012-11-30 | 2012-11-30 | message control method and device |
| PCT/CN2013/075733 WO2014082430A1 (en) | 2012-11-30 | 2013-05-16 | Packet control method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210501782.8A CN103856403B (en) | 2012-11-30 | 2012-11-30 | message control method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103856403A true CN103856403A (en) | 2014-06-11 |
| CN103856403B CN103856403B (en) | 2018-06-05 |
Family
ID=50827136
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210501782.8A Active CN103856403B (en) | 2012-11-30 | 2012-11-30 | message control method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN103856403B (en) |
| WO (1) | WO2014082430A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111385204A (en) * | 2018-12-27 | 2020-07-07 | 中国移动通信集团贵州有限公司 | Service transmission method, device, equipment and medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060133265A1 (en) * | 2004-12-22 | 2006-06-22 | Alcatel | Virtual private networking methods and systems |
| CN1870634A (en) * | 2005-09-30 | 2006-11-29 | 华为技术有限公司 | Double-attach/multi-attach logical packet network method and supplier equipment |
| CN101753464A (en) * | 2010-01-22 | 2010-06-23 | 中兴通讯股份有限公司 | Routing convergence method, provider edge devices and virtual private network system |
| CN101931586A (en) * | 2009-06-26 | 2010-12-29 | 中国电信股份有限公司 | Method and system for rapidly rerouting MPLS VPN (Multi-Protocol Label Switching Virtual Private Network) |
| CN102394804A (en) * | 2011-11-02 | 2012-03-28 | 中兴通讯股份有限公司 | VPN system building method and VPN system |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7710872B2 (en) * | 2005-12-14 | 2010-05-04 | Cisco Technology, Inc. | Technique for enabling traffic engineering on CE-CE paths across a provider network |
| CN100531136C (en) * | 2006-06-08 | 2009-08-19 | 华为技术有限公司 | Method and system for transmitting message in virtual special network link fault |
| CN101330424B (en) * | 2007-06-18 | 2011-11-02 | 华为技术有限公司 | Method, system and apparatus for processing service fault of virtual special network |
-
2012
- 2012-11-30 CN CN201210501782.8A patent/CN103856403B/en active Active
-
2013
- 2013-05-16 WO PCT/CN2013/075733 patent/WO2014082430A1/en active Application Filing
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060133265A1 (en) * | 2004-12-22 | 2006-06-22 | Alcatel | Virtual private networking methods and systems |
| CN1870634A (en) * | 2005-09-30 | 2006-11-29 | 华为技术有限公司 | Double-attach/multi-attach logical packet network method and supplier equipment |
| CN101931586A (en) * | 2009-06-26 | 2010-12-29 | 中国电信股份有限公司 | Method and system for rapidly rerouting MPLS VPN (Multi-Protocol Label Switching Virtual Private Network) |
| CN101753464A (en) * | 2010-01-22 | 2010-06-23 | 中兴通讯股份有限公司 | Routing convergence method, provider edge devices and virtual private network system |
| CN102394804A (en) * | 2011-11-02 | 2012-03-28 | 中兴通讯股份有限公司 | VPN system building method and VPN system |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111385204A (en) * | 2018-12-27 | 2020-07-07 | 中国移动通信集团贵州有限公司 | Service transmission method, device, equipment and medium |
| CN111385204B (en) * | 2018-12-27 | 2022-03-29 | 中国移动通信集团贵州有限公司 | Service transmission method, device, equipment and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103856403B (en) | 2018-06-05 |
| WO2014082430A1 (en) | 2014-06-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111385207B (en) | Service data forwarding method, network device and network system | |
| CN101090355B (en) | Method, system and equipment for establishing label switching path of virtual private network tunnel | |
| CN101277245B (en) | A method, system and device for implementing L2VPN cross-domain | |
| CN102035740B (en) | Multi-protocol label switching three-layer private virtual net fast rerouting method and system | |
| CN103326940A (en) | Method for forwarding message in network and edge device of operator | |
| CN110932895B (en) | Message forwarding method and device for network slice | |
| CN107306222A (en) | The method and apparatus that traffic engineering tunnel on label switched path is set up | |
| CN113273156B (en) | Method, equipment and system for route release | |
| CN103326915A (en) | Method, device and system for achieving three-layer VPN | |
| CN102469010B (en) | A kind of method and network equipment distributing MPLS label | |
| CN106789748A (en) | A kind of distributed couple in multiplexer DAM stacking network system and its apparatus | |
| WO2014180153A1 (en) | Method, device and system for establishing label switched path | |
| CN102013990B (en) | End to end notification method and system for multi-segment pseudowire fault | |
| US10469361B1 (en) | Loop prevention for EVPN and PBB-EVPN | |
| CN1874302A (en) | Method of phantom lines in multiple hops for building simulation of phantom line from end to end | |
| EP2832055B1 (en) | Pseudowire groups in a packet switched network | |
| EP2832061B1 (en) | Pseudowire extended group messaging in a packet switched network | |
| CN103634210B (en) | Find the method and apparatus of the opposite end PE equipment of VPLS example | |
| CN103856403B (en) | message control method and device | |
| CN102904808B (en) | Across the method for building up and system of resource reservation protocol flow engineering label switched path | |
| CN102739519B (en) | Rooted multipoint service implementation method, device and system, and provider edge equipment | |
| WO2018040614A1 (en) | Method, related device, and system for establishing label-switched path for virtual private network | |
| CN112910771A (en) | Connection establishing method, device, equipment and storage medium | |
| WO2012159351A1 (en) | Tag allocating method, device and system | |
| EP2832056B1 (en) | Pseudowire extended group actions in a packet switched network |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |