WO2016119461A1 - Method and network device for establishing bgp lsp tunnel - Google Patents

Method and network device for establishing bgp lsp tunnel Download PDF

Info

Publication number
WO2016119461A1
WO2016119461A1 PCT/CN2015/088976 CN2015088976W WO2016119461A1 WO 2016119461 A1 WO2016119461 A1 WO 2016119461A1 CN 2015088976 W CN2015088976 W CN 2015088976W WO 2016119461 A1 WO2016119461 A1 WO 2016119461A1
Authority
WO
WIPO (PCT)
Prior art keywords
bgp
tunnel
network device
extended
transmission path
Prior art date
Application number
PCT/CN2015/088976
Other languages
French (fr)
Chinese (zh)
Inventor
庄顺万
阴元斌
王苌
陈霞
李振斌
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016119461A1 publication Critical patent/WO2016119461A1/en

Links

Images

Abstract

Provided by the present invention are a method and network device for establishing a BGP LSP tunnel. The method includes: the network device receives an instruction for establishing the BGP LSP tunnel; a transmission path is obtained from the instruction for establishing the BGP LSP tunnel, wherein the transmission path is a transmission path from an entry device to an exit device directly or a transmission path from the entry device to the exit device via a medium device; an upstream device directly bordering upon the network device on the transmission path is determined; an extended first BGP protocol message is transmitted to the upstream device, wherein the extended first BGP protocol message comprises BGP label route issued by the network device and a first extended attribute indicating the transmission path. The BGP LSP tunnel is established according to the transmission path in the present invention, and thus the BGP LSP tunnel establishment on demand is realized, and the problem that the BGP LSP tunnel is possible to be wasted is solved.

Description

一种建立BGP LSP隧道的方法及网络设备Method and network device for establishing BGP LSP tunnel
本申请要求于2015年1月27日提交中国专利局、申请号为CN 201510040793.4、发明名称为“一种建立BGP LSP隧道的方法及网络设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on Jan. 27, 2015, the Chinese Patent Application No. CN 201510040793.4, entitled "A Method for Establishing a BGP LSP Tunnel and Network Equipment", the entire contents of which are incorporated by reference. Combined in this application.
技术领域Technical field
本发明涉及通信技术领域,尤其是涉及一种建立BGP LSP隧道的方法及网络设备。The present invention relates to the field of communications technologies, and in particular, to a method and a network device for establishing a BGP LSP tunnel.
背景技术Background technique
多协议标签交换(英文:Multi-Protocol Label Switch,简称:MPLS)是一种基于标签的转发技术,目前广泛用于传输虚拟专用网(英文:Virtual Private Network,简称:VPN)报文等数据。为了在MPLS网络中跨自治(英文:Autonomous System,简称:AS)域传输数据,通常需要在MPLS网络的网络设备之间建立边界网关协议(Border Gateway Protocol,BGP)标签交换路径(Label Switch Path,LSP)隧道。Multi-Protocol Label Switch (MPLS) is a label-based forwarding technology. It is widely used to transmit virtual private network (English: Virtual Private Network, VPN) packets. In order to transmit data in the Autonomous System (AS) domain of the MPLS network, it is necessary to establish a Border Gateway Protocol (BGP) label switching path (Label Switch Path) between the network devices of the MPLS network. LSP) tunnel.
目前一种常用的建立BGP LSP隧道的方式是,某一设备通过广播的方式向该设备所有的邻居设备发布BGP路由标签,从而建立出由该设备所有的邻居设备分别至该设备的多条BGP LSP隧道。以图1所示的MPLS网络为例,边界路由器J会向边界路由器H和边界路由器I分别发布BGP路由标签,从而建立出由边界路由器H和边界路由器I分别至边界路由器J的两条BGP LSP隧道。目前通过这种建立方式,在MPLS网络的所有设备之间都能够建立BGP LSP隧道,在MPLS网络的所有设备之间都建立BGP LSP隧道后,当需要传输数据时再利用建立的BGP LSP隧道进行数据传输。A common way to establish a BGP LSP tunnel is to advertise a BGP route label to all neighbors of the device by means of a broadcast to establish multiple BGPs from the neighbor device of the device to the device. LSP tunnel. Taking the MPLS network shown in Figure 1 as an example, the border router J issues BGP route labels to the border router H and the border router I respectively, thereby establishing two BGP LSPs from the border router H and the border router I to the border router J, respectively. tunnel. The BGP LSP tunnel can be established between all the devices in the MPLS network. After the BGP LSP tunnel is established between all the devices in the MPLS network, the BGP LSP tunnel is used to transmit data. data transmission.
然而对于上述建立方式,由于建立出由某一设备所有的邻居设备分别至该设备的多条BGP LSP隧道,而其中一部分BGP LSP隧道在之后的数据传输过程中有可能并不会被使用,造成了BGP LSP隧道的浪费。而由于建立BGP LSP隧道时需要花费一定的系统资源,比如占用系统内存等,因此BGP LSP隧道的浪费实际上会导致系统资源的浪费。仍以图1所示的MPLS 网络为例,通过上述建立BGP LSP隧道的方式,建立出由边界路由器H和边界路由器I分别至边界路由器J的两条BGP LSP隧道,但是在数据传输过程中,边界路由器F有可能通过边界路由器H将数据传输给了边界路由器J,而并没有数据流经边界路由器I,因此建立出的由边界路由器I至边界路由器J的BGP LSP隧道也就没有被使用,从而使得创建这条BGP LSP隧道所花费的系统资源也同样被浪费了。However, for the above-mentioned establishment mode, a plurality of BGP LSP tunnels from a neighboring device of a certain device to the device are respectively established, and some of the BGP LSP tunnels may not be used in the subsequent data transmission process, resulting in The waste of BGP LSP tunnels. The BGP LSP tunnel waste actually consumes system resources because a certain amount of system resources, such as system memory, is required to establish a BGP LSP. Still using the MPLS shown in Figure 1. The network is used as an example to establish two BGP LSP tunnels from the border router H and the border router I to the border router J respectively. However, in the data transmission process, the border router F may pass through the border router. H transmits the data to the border router J, and no data flows through the border router I. Therefore, the established BGP LSP tunnel from the border router I to the border router J is not used, thereby creating the BGP LSP tunnel. The system resources spent are also wasted.
发明内容Summary of the invention
本发明解决的技术问题在于提供一种建立BGP LSP隧道的方法及网络设备,以解决BGP LSP隧道有可能被浪费的问题,从而节约系统资源。The technical problem to be solved by the present invention is to provide a method for establishing a BGP LSP tunnel and a network device to solve the problem that a BGP LSP tunnel may be wasted, thereby saving system resources.
为此,本发明解决技术问题的技术方案是:To this end, the technical solution of the present invention to solve the technical problem is:
第一方面,本发明提供了一种建立BGP LSP隧道的方法,包括:In a first aspect, the present invention provides a method for establishing a BGP LSP tunnel, including:
网络设备接收建立边界网关协议BGP标签交换路径LSP隧道的指示;The network device receives an indication that the border gateway protocol BGP label switching path LSP tunnel is established;
所述网络设备从所述建立BGP LSP隧道的指示中获取传输路径,所述传输路径从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径;Obtaining, by the network device, the transmission path from the indication of establishing the BGP LSP tunnel, where the transmission path is directly from the ingress device to the egress device, or the transmission path from the ingress device to the egress device through the intermediate device;
所述网络设备确定在所述传输路径上,与所述网络设备直接相邻的上游设备;Determining, by the network device, an upstream device directly adjacent to the network device on the transmission path;
所述网络设备向所述上游设备发送扩展的第一BGP协议报文,所述扩展的第一BGP协议报文中包括所述网络设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径;The network device sends an extended first BGP protocol packet to the upstream device, where the extended first BGP protocol packet includes a BGP label route and a first extended attribute advertised by the network device, where the first An extended attribute indicates the transmission path;
其中,所述网络设备为所述中间设备或者所述出口设备。The network device is the intermediate device or the egress device.
在第一方面的第一种可能的实现方式中,所述网络设备为所述中间设备;In a first possible implementation manner of the first aspect, the network device is the intermediate device;
所述网络设备接收所述建立BGP LSP隧道指示,包括:The network device receives the indication of establishing a BGP LSP tunnel, including:
所述中间设备接收在所述传输路径上,与所述中间设备直接相邻的下游设备发送的扩展的第二BGP协议报文,所述扩展的第二BGP协议报文包括所述下游设备发布的BGP标签路由和第二扩展属性,所述第二扩展属性指示出所述传输路径。The intermediate device receives the extended second BGP protocol packet sent by the downstream device directly adjacent to the intermediate device on the transmission path, where the extended second BGP protocol packet includes the downstream device BGP label routing and second extended attribute, the second extended attribute indicating the transmission path.
结合第一方面或者第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述网络设备为所述中间设备;所述方法还包 括:With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the network device is the intermediate device; include:
所述中间设备接收所述建立BGP LSP隧道的指示后,建立所述中间设备至所述下游设备的流量工程TE隧道。After receiving the indication of establishing the BGP LSP tunnel, the intermediate device establishes a traffic engineering TE tunnel from the intermediate device to the downstream device.
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述扩展的第二BGP协议报文中还包括第三扩展属性,所述第三扩展属性指示出TE隧道的建立属性;In conjunction with the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the extended second BGP protocol packet further includes a third extended attribute, where the third extended The attribute indicates the establishment attribute of the TE tunnel.
所述方法还包括:The method further includes:
所述中间设备从所述扩展的第二BGP协议报文中获取所述TE隧道的建立属性;Obtaining, by the intermediate device, the establishment attribute of the TE tunnel from the extended second BGP protocol packet;
所述中间设备建立所述中间设备至所述下游设备的TE隧道,包括:The intermediate device establishes a TE tunnel of the intermediate device to the downstream device, including:
所述中间设备基于所述TE隧道的建立属性,建立所述中间设备至所述下游设备的TE隧道。The intermediate device establishes a TE tunnel of the intermediate device to the downstream device based on an establishment attribute of the TE tunnel.
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述TE隧道的建立属性包括:TE隧道的带宽约束条件和/或可靠性参数。In conjunction with the third possible implementation of the first aspect, in a fourth possible implementation manner of the first aspect, the establishing attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter of the TE tunnel.
结合第一方面的第二种至第四种任一种可能的实现方式,在第一方面的第五种可能的实现方式中,在所述中间设备建立所述中间设备至所述下游设备的TE隧道之前,还包括:With reference to any one of the second to fourth possible implementations of the first aspect, in a fifth possible implementation manner of the first aspect, the intermediate device is established to the downstream device in the intermediate device Before the TE tunnel, it also includes:
所述中间设备确定出所述中间设备与所述下游设备具有同一域编号。The intermediate device determines that the intermediate device has the same domain number as the downstream device.
在第一方面的第六种可能的实现方式中,所述网络设备为所述出口设备,所述方法还包括:In a sixth possible implementation manner of the first aspect, the network device is the egress device, and the method further includes:
所述出口设备获取业务数据的虚拟专用网VPN标签路由信息,并将所述VPN标签路由信息发送至所述入口设备,所述VPN标签路由信息包括VPN用户信息和VPN标签,所述VPN用户信息用于指示所述入口设备将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联。The egress device obtains virtual private network VPN label routing information of the service data, and sends the VPN label routing information to the ingress device, where the VPN label routing information includes VPN user information and a VPN label, and the VPN user information And an end-to-end BGP LSP tunnel for instructing the ingress device to establish on the transmission path to associate with the VPN label.
结合第一方面、第一方面的第一种至第六种任一种可能的实现方式,在第一方面的第七种可能的实现方式中,在所述网络设备从所述建立BGP LSP隧道的指示中获取传输路径之前,还包括:With reference to the first aspect, the first to the sixth possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, the network device establishes a BGP LSP tunnel from the Before obtaining the transmission path in the instructions, it also includes:
所述网络设备确定出存在所述传输路径; Determining, by the network device, that the transmission path exists;
所述方法还包括:The method further includes:
所述网络设备确定出不存在所述传输路径,向所述网络设备的各个邻居设备发布BGP标签路由。The network device determines that the transmission path does not exist, and advertises a BGP label to each neighboring device of the network device.
第二方面,本发明提供了一种建立BGP LSP隧道的方法,包括:In a second aspect, the present invention provides a method for establishing a BGP LSP tunnel, including:
网络设备接收在传输路径上,与所述网络设备直接相邻的下游设备发送的扩展的边界网关协议BGP协议报文,所述扩展的BGP协议报文包括所述下游设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径;The network device receives the extended border gateway protocol BGP protocol packet sent by the downstream device directly adjacent to the network device on the transmission path, where the extended BGP protocol packet includes the BGP label route advertised by the downstream device. a first extended attribute, the first extended attribute indicating the transmission path, where the transmission path is directly from an ingress device to an egress device, or a transmission path from the ingress device to the egress device through the intermediate device;
其中,所述网络设备为所述入口设备。The network device is the ingress device.
在第二方面的第一种可能的实现方式中,还包括:In a first possible implementation manner of the second aspect, the method further includes:
所述网络设备接收所述扩展的BGP协议报文后,建立所述网络设备至所述下游设备的流量工程TE隧道。After receiving the extended BGP protocol packet, the network device establishes a traffic engineering TE tunnel of the network device to the downstream device.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述扩展的BGP协议报文中还包括第二扩展属性,所述第二扩展属性指示出TE隧道的建立属性;With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the extended BGP protocol packet further includes a second extended attribute, where the second extended attribute indication The establishment attribute of the outgoing TE tunnel;
所述方法还包括:The method further includes:
所述网络设备从所述扩展的BGP协议报文中获取所述TE隧道的建立属性;Obtaining, by the network device, the establishment attribute of the TE tunnel from the extended BGP protocol packet;
所述网络设备建立所述网络设备至所述下游设备的TE隧道,包括:The establishing, by the network device, the TE tunnel of the network device to the downstream device includes:
所述网络设备基于所述TE隧道的建立属性,建立所述网络设备至所述下游设备的TE隧道。The network device establishes a TE tunnel of the network device to the downstream device based on an establishment attribute of the TE tunnel.
结合第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,所述TE隧道的建立属性包括:带宽约束条件和/或可靠性参数。With reference to the second possible implementation of the second aspect, in a third possible implementation manner of the second aspect, the establishing attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter.
结合第二方面的第一种至第三种任一种可能的实现方式,在第二方面的第四种可能的实现方式中,在所述网络设备建立所述网络设备至所述下游设备的TE隧道之前,还包括:In conjunction with the first to third possible implementation manners of the second aspect, in a fourth possible implementation manner of the second aspect, the network device is configured to establish the network device to the downstream device Before the TE tunnel, it also includes:
所述网络设备确定出所述网络设备与所述下游设备具有同一域编号。 The network device determines that the network device has the same domain number as the downstream device.
结合第二方面、第二方面的第一种至第四种任一种可能的实现方式,在第二方面的第五种可能的实现方式中,还包括:With reference to the second aspect, the first to the fourth possible implementation manners of the second aspect, in a fifth possible implementation manner of the second aspect, the method further includes:
所述网络设备接收所述出口设备发送的业务数据的虚拟专用网VPN标签路由信息,所述VPN标签路由信息包括VPN用户信息和VPN标签;The network device receives virtual private network VPN label routing information of the service data sent by the egress device, where the VPN label routing information includes VPN user information and a VPN label;
所述网络设备基于所述VPN用户信息,将在所述传输路径上建立的端到端BGP标签交换路径LSP隧道与所述VPN标签相关联。The network device associates an end-to-end BGP label switched path LSP tunnel established on the transmission path with the VPN label based on the VPN user information.
结合第二方面的第五种可能的实现方式,在第二方面的第六种可能的实现方式中,所述方法还包括:With reference to the fifth possible implementation of the second aspect, in a sixth possible implementation manner of the second aspect, the method further includes:
所述网络设备获取所述业务数据;The network device acquires the service data;
所述网络设备将所述业务数据和所述VPN标签,通过在所述传输路径上建立的端到端BGP LSP隧道进行传输。The network device transmits the service data and the VPN label through an end-to-end BGP LSP tunnel established on the transmission path.
第三方面,本发明提供了一种网络设备,包括:In a third aspect, the present invention provides a network device, including:
接收单元,用于接收建立边界网关协议BGP标签交换路径LSP隧道的指示;a receiving unit, configured to receive an indication of establishing a border gateway protocol BGP label switching path LSP tunnel;
处理单元,用于从所述建立BGP LSP隧道的指示中获取传输路径,确定在所述传输路径上,与所述网络设备直接相邻的上游设备,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径;a processing unit, configured to obtain a transmission path from the indication for establishing a BGP LSP tunnel, and determine an upstream device directly adjacent to the network device on the transmission path, where the transmission path is directly from an ingress device to an egress a device, or a transmission path from the ingress device through the intermediate device to the egress device;
发送单元,用于向所述上游设备发送扩展的第一BGP协议报文,所述扩展的第一BGP协议报文中包括所述网络设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径;a sending unit, configured to send, to the upstream device, an extended first BGP protocol packet, where the extended first BGP protocol packet includes a BGP label route and a first extended attribute advertised by the network device, where An extended attribute indicating the transmission path;
其中,所述网络设备为所述中间设备或者所述出口设备。The network device is the intermediate device or the egress device.
在第三方面的第一种可能的实现方式中,所述网络设备为所述中间设备;In a first possible implementation manner of the third aspect, the network device is the intermediate device;
所述接收单元具体用于接收在所述传输路径上,与所述中间设备直接相邻的下游设备发送的扩展的第二BGP协议报文,所述扩展的第二BGP协议报文包括所述下游设备发布的BGP标签路由和第二扩展属性,所述第二扩展属性指示出所述传输路径。The receiving unit is configured to receive an extended second BGP protocol packet that is sent by the downstream device that is directly adjacent to the intermediate device, where the extended second BGP protocol packet includes the The BGP label route and the second extended attribute issued by the downstream device, where the second extended attribute indicates the transmission path.
结合第三方面或者第三方面的第一种可能的实现方式,在第三方面的 第二种可能的实现方式中,所述网络设备为所述中间设备;In combination with the third aspect or the first possible implementation of the third aspect, in the third aspect In a second possible implementation manner, the network device is the intermediate device;
所述处理单元还用于,所述接收单元接收所述建立BGP LSP隧道的指示后,所述处理单元建立所述中间设备至所述下游设备的流量工程TE隧道。The processing unit is further configured to: after the receiving unit receives the indication of establishing a BGP LSP tunnel, the processing unit establishes a traffic engineering TE tunnel of the intermediate device to the downstream device.
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,所述扩展的第二BGP协议报文中还包括第三扩展属性,所述第三扩展属性指示出TE隧道的建立属性;With the second possible implementation of the third aspect, in a third possible implementation manner of the third aspect, the extended second BGP protocol packet further includes a third extended attribute, where the third extended The attribute indicates the establishment attribute of the TE tunnel.
所述处理单元还用于,从所述扩展的第二BGP协议报文中获取所述TE隧道的建立属性;The processing unit is further configured to: obtain the establishment attribute of the TE tunnel from the extended second BGP protocol packet;
当建立所述中间设备至所述下游设备的TE隧道时,所述处理单元具体用于基于所述TE隧道的建立属性,建立所述中间设备至所述下游设备的TE隧道。When the TE tunnel is established to the downstream device, the processing unit is specifically configured to establish a TE tunnel of the intermediate device to the downstream device based on an establishment attribute of the TE tunnel.
结合第三方面的第三种可能的实现方式,在第三方面的第四种可能的实现方式中,所述TE隧道的建立属性包括:TE隧道的带宽约束条件和/或可靠性参数。With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the establishing attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter of the TE tunnel.
结合第三方面的第二种至第四种任一种可能的实现方式,在第三方面的第五种可能的实现方式中,所述处理单元还用于,在建立所述中间设备至所述下游设备的TE隧道之前,确定出所述中间设备与所述下游设备具有同一域编号。In conjunction with the second to fourth possible implementation manners of the third aspect, in a fifth possible implementation manner of the third aspect, the processing unit is further configured to establish the intermediate device to the Before the TE tunnel of the downstream device is described, it is determined that the intermediate device has the same domain number as the downstream device.
在第三方面的第六种可能的实现方式中,所述网络设备为所述出口设备,In a sixth possible implementation manner of the third aspect, the network device is the egress device,
所述处理单元还用于,获取业务数据的虚拟专用网VPN标签路由信息;The processing unit is further configured to: obtain virtual private network VPN label routing information of service data;
所述发送单元还用于,将所述VPN标签路由信息发送至所述入口设备,所述VPN标签路由信息包括VPN用户信息和VPN标签,所述VPN用户信息用于指示所述入口设备将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联。The sending unit is further configured to send the VPN label routing information to the ingress device, where the VPN label routing information includes VPN user information and a VPN label, where the VPN user information is used to indicate that the ingress device is to be in An end-to-end BGP LSP tunnel established on the transmission path is associated with the VPN label.
结合第三方面、第三方面的第一种至第六种任一种可能的实现方式,在第三方面的第七种可能的实现方式中,所述处理单元还用于,在从所述建立BGP LSP隧道的指示中获取传输路径之前,确定出存在所述传输路径; With reference to the third aspect, the first to the sixth possible implementation manners of the third aspect, in a seventh possible implementation manner of the third aspect, the processing unit is further configured to: Before obtaining the transmission path in the indication of establishing the BGP LSP tunnel, determining that the transmission path exists;
所述发送单元还用于,所述处理单元确定出不存在所述传输路径,所述发送单元向所述网络设备的各个邻居设备发布BGP标签路由。The sending unit is further configured to: the processing unit determines that the transmission path does not exist, and the sending unit issues a BGP label route to each neighboring device of the network device.
第四方面,本发明提供了一种网络设备,包括:In a fourth aspect, the present invention provides a network device, including:
接收单元,用于接收在传输路径上,与所述网络设备直接相邻的下游设备发送的扩展的边界网关协议BGP协议报文;所述扩展的BGP协议报文包括所述下游设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径;a receiving unit, configured to receive an extended border gateway protocol BGP protocol packet sent by a downstream device directly adjacent to the network device, where the extended BGP protocol packet includes the BGP advertised by the downstream device a label route and a first extended attribute, the first extended attribute indicating the transmission path, the transmission path being directly from the ingress device to the egress device, or the transmission from the ingress device to the egress device path;
其中,所述网络设备为所述入口设备。The network device is the ingress device.
在第四方面的第一种可能的实现方式中,所述网络设备还包括:处理单元;In a first possible implementation manner of the fourth aspect, the network device further includes: a processing unit;
所述处理单元还用于,所述接收单元接收所述扩展的BGP协议报文后,所述处理单元建立所述网络设备至所述下游设备的流量工程TE隧道。The processing unit is further configured to: after the receiving unit receives the extended BGP protocol packet, the processing unit establishes a traffic engineering TE tunnel of the network device to the downstream device.
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述扩展的BGP协议报文中还包括第二扩展属性,所述第二扩展属性指示出TE隧道的建立属性;With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the extended BGP protocol packet further includes a second extended attribute, where the second extended attribute indication The establishment attribute of the outgoing TE tunnel;
所述处理单元还用于,从所述扩展的BGP协议报文中获取所述TE隧道的建立属性;The processing unit is further configured to: obtain an establishment attribute of the TE tunnel from the extended BGP protocol packet;
当建立所述网络设备至所述下游设备的TE隧道时,所述处理单元具体用于基于所述TE隧道的建立属性,建立所述网络设备至所述下游设备的TE隧道。When the TE tunnel of the network device is established to the downstream device, the processing unit is specifically configured to establish a TE tunnel of the network device to the downstream device based on an establishment attribute of the TE tunnel.
结合第四方面的第二种可能的实现方式,在第四方面的第三种可能的实现方式中,所述TE隧道的建立属性包括:带宽约束条件和/或可靠性参数。With reference to the second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the establishing attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter.
结合第四方面的第一种至第三种任一种可能的实现方式,在第四方面的第四种可能的实现方式中,所述处理单元还用于,在建立所述网络设备至所述下游设备的TE隧道之前,确定出所述网络设备与所述下游设备具有同一域编号。In conjunction with the first to third possible implementation manners of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the processing unit is further configured to establish the network device to the Before the TE tunnel of the downstream device is described, it is determined that the network device has the same domain number as the downstream device.
结合第四方面、第四方面的第一种至第四种任一种可能的实现方式, 在第四方面的第五种可能的实现方式中,所述接收单元,还用于接收所述出口设备发送的业务数据的虚拟专用网VPN标签路由信息,所述VPN标签路由信息包括VPN用户信息和VPN标签;With reference to the fourth aspect, any one of the first to fourth possible implementation manners of the fourth aspect, In a fifth possible implementation manner of the fourth aspect, the receiving unit is further configured to receive virtual private network VPN label routing information of the service data sent by the egress device, where the VPN label routing information includes VPN user information. And VPN tags;
所述网络设备还包括:处理单元,所述处理单元用于基于所述VPN用户信息,将在所述传输路径上建立的端到端BGP标签交换路径LSP隧道与所述VPN标签相关联。The network device further includes: a processing unit, configured to associate an end-to-end BGP label switched path LSP tunnel established on the transmission path with the VPN label based on the VPN user information.
结合第四方面的第五种可能的实现方式,在第四方面的第六种可能的实现方式中,所述网络设备还包括:处理单元,所述处理单元还用于,获取所述业务数据,将所述业务数据和所述VPN标签,通过在所述传输路径上建立的端到端BGP LSP隧道进行传输。With reference to the fifth possible implementation manner of the foregoing aspect, in a sixth possible implementation manner of the fourth aspect, the network device further includes: a processing unit, where the processing unit is further configured to acquire the service data And transmitting the service data and the VPN label by using an end-to-end BGP LSP tunnel established on the transmission path.
通过上述技术方案可知,在本发明中,网络设备在接收到建立BGP LSP隧道的指示时,不再是向所述网络设备的所有邻居设备发布BGP标签路由,建立出有可能使用不到的BGP LSP隧道,而是从所述建立BGP LSP隧道的指示中获取从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径,向在所述传输路径上,与所述网络设备直接相邻的上游设备发送扩展的第一BGP协议报文,该报文中包括所述网络设备发布的BGP标签路由,从而创建出了所述上游设备至所述网络设备的BGP LSP隧道。可见本发明是根据所述传输路径,而建立指定方向的BGP LSP隧道,从而实现了按需建立BGP LSP隧道,解决了BGP LSP隧道有可能被浪费的问题,从而节约了系统资源。。According to the foregoing technical solution, in the present invention, when receiving the indication of establishing a BGP LSP tunnel, the network device does not advertise the BGP label route to all neighboring devices of the network device, and establishes BGP that may not be used. An LSP tunnel, but obtaining, from the indication of establishing the BGP LSP tunnel, a direct transmission path from the ingress device to the egress device, or from the ingress device to the egress device, to the transmission path, An upstream device directly adjacent to the network device sends an extended first BGP protocol packet, where the packet includes a BGP label route advertised by the network device, thereby creating the upstream device to the network device. BGP LSP tunnel. It can be seen that the BGP LSP tunnel is set up in the specified direction according to the transmission path, thereby realizing the establishment of a BGP LSP tunnel on demand, which solves the problem that the BGP LSP tunnel may be wasted, thereby saving system resources. .
附图说明DRAWINGS
图1为MPLS网络的一种可能的网络拓扑;Figure 1 shows a possible network topology of an MPLS network;
图2为本发明提供的建立BGP LSP隧道的一种方法实施例的流程示意图;2 is a schematic flowchart of a method for establishing a BGP LSP tunnel according to an embodiment of the present invention;
图3为图2所示的实施例中建立BGP LSP隧道的一种实现方式;FIG. 3 is an implementation manner of establishing a BGP LSP tunnel in the embodiment shown in FIG. 2;
图4为本发明提供的建立BGP LSP隧道的另一种方法实施例的流程示意图;4 is a schematic flowchart of another method for establishing a BGP LSP tunnel according to the present invention;
图5为本发明提供的网络设备的一种装置实施例的结构示意图;FIG. 5 is a schematic structural diagram of an apparatus embodiment of a network device according to the present invention;
图6为本发明提供的网络设备的另一种装置实施例的结构示意图; FIG. 6 is a schematic structural diagram of another apparatus embodiment of a network device according to the present invention;
图7为本发明提供的网络设备的另一种装置实施例的结构示意图;FIG. 7 is a schematic structural diagram of another apparatus embodiment of a network device according to the present invention; FIG.
图8为本发明提供的网络设备的另一种装置实施例的结构示意图。FIG. 8 is a schematic structural diagram of another apparatus embodiment of a network device according to the present invention.
具体实施方式detailed description
为了更清楚的理解本发明实施例,下面以图1所示的网络拓扑为例,介绍建立BGP LSP隧道的过程和利用建立的BGP LSP隧道进行数据传输的过程。For a clear understanding of the embodiments of the present invention, the following describes the process of establishing a BGP LSP tunnel and the process of using the established BGP LSP tunnel for data transmission.
图1所示的MPLS网络中包括AS域1、AS域2和AS域3,其中,AS域1包括边界路由器A、边界路由器B和边界路由器C,AS域2包括边界路由器D、边界路由器E、边界路由器F和边界路由器G,AS域3包括边界路由器H、边界路由器I和边界路由器J。The MPLS network shown in FIG. 1 includes an AS domain 1, an AS domain 2, and an AS domain 3. The AS domain 1 includes a border router A, a border router B, and a border router C. The AS domain 2 includes a border router D and a border router E. The border router F and the border router G, the AS domain 3 includes a border router H, a border router I, and a border router J.
由于BGP LSP隧道的建立方向(即控制流的方向)与BGP LSP隧道本身的方向(即数据流的方向)相反,因此当需要建立一条从边界路由器A到边界路由器J的端到端BGP LSP隧道时,一般是由边界路由器J发起建立隧道,在基于控制转发分离的网络中,也可以由控制设备控制边界路由器J建立隧道。Since the direction in which the BGP LSP tunnel is established (that is, the direction of the control flow) is opposite to the direction of the BGP LSP tunnel itself (that is, the direction of the data flow), an end-to-end BGP LSP tunnel from the border router A to the border router J needs to be established. In general, the border router J initiates the establishment of a tunnel. In the network based on the control forwarding separation, the control device may also control the border router J to establish a tunnel.
具体建立过程是:所述边界路由器J开始建立隧道后,边界路由器J会向所述边界路由器J的所有邻居,即所述边界路由器H和所述边界路由器I分别发布BGP标签路由,从而建立出由所述边界路由器H和所述边界路由器I分别至所述边界路由器J的两条BGP LSP隧道。当所述边界路由器H和所述边界路由器I接收到所述边界路由器J发布的BGP标签路由后,会分别向各自的所有邻居发布BGP标签路由,建立出对应的BGP LSP隧道。各个边界路由器不断重复上述过程,直至所述边界路由器B和所述边界路由器C向所述边界路由器A发布BGP标签路由,建立出从所述边界路由器A分别至所述边界路由器B和所述边界路由器C的BGP LSP隧道,从而最终建立出由所述边界路由器A至所述边界路由器J的端到端BGP LSP隧道。其中可以理解的是,某一设备的所有邻居设备,指的是除了向该设备发布BGP标签路由设备之外的所有邻居设备。The specific establishment process is: after the border router J starts to establish a tunnel, the border router J issues a BGP label route to all the neighbors of the border router J, that is, the border router H and the border router I, thereby establishing a tunnel. Two BGP LSP tunnels from the border router H and the border router I to the border router J, respectively. After the border router H and the border router 1 receive the BGP label route advertised by the border router J, the BGP label route is advertised to all the neighbors, and the corresponding BGP LSP tunnel is established. Each of the border routers repeats the above process until the border router B and the border router C issue a BGP label route to the border router A, establishing a boundary from the border router A to the border router B and the boundary, respectively. The BGP LSP tunnel of Router C, thereby finally establishing an end-to-end BGP LSP tunnel from the border router A to the border router J. It can be understood that all neighbor devices of a device refer to all neighbor devices except the BGP label routing device.
当建立出了从所述边界路由器A至所述边界路由器J的端到端BGP  LSP隧道后,当需要从所述边界路由器A向所述边界路由器J传输数据时,可以利用建立好的端到端BGP LSP隧道传输数据。When the end-to-end BGP from the border router A to the border router J is established After the LSP tunnel, when it is required to transmit data from the border router A to the border router J, the established end-to-end BGP LSP tunnel can be used to transmit data.
需要说明的是,BGP LSP隧道本身的方向,与所述BGP LSP隧道传输数据的方向一致,并且与所述BGP LSP隧道的建立方向相反。例如在图1中,由边界路由器J向边界路由器H发布BGP路由,即由所述边界路由器J向所述边界路由器H建立所述BGP LSP隧道,最终建立出的所述BGP LSP隧道的方向是从所述边界路由器H至所述边界路由器J,因此所述边界路由器H可以利用该BGP LSP隧道向所述边界路由器J传输数据。It should be noted that the direction of the BGP LSP tunnel itself is consistent with the direction in which the BGP LSP tunnel transmits data, and is opposite to the direction in which the BGP LSP tunnel is established. For example, in FIG. 1, the BGP route is issued by the border router J to the border router H, that is, the border router J establishes the BGP LSP tunnel to the border router H, and the direction of the BGP LSP tunnel finally established is From the border router H to the border router J, the border router H can use the BGP LSP tunnel to transmit data to the border router J.
目前通过这种建立方式,在MPLS网络的所有设备之间都能够建立BGP LSP隧道,在MPLS网络的所有设备之间都建立BGP LSP隧道后,当需要传输数据时再利用建立的BGP LSP隧道进行数据传输。The BGP LSP tunnel can be established between all the devices in the MPLS network. After the BGP LSP tunnel is established between all the devices in the MPLS network, the BGP LSP tunnel is used to transmit data. data transmission.
然而对于上述建立方式,由于建立出由某一设备所有的邻居设备分别至该设备的多条BGP LSP隧道,而其中一部分BGP LSP隧道在之后的数据传输过程中有可能并不会被使用,造成了BGP LSP隧道的浪费。而由于建立BGP LSP隧道时需要花费一定的系统资源,比如占用系统内存等,因此BGP LSP隧道的浪费实际上会导致系统资源的浪费。仍以图1所示的MPLS网络为例,通过上述建立BGP LSP隧道的方式,建立出由所述边界路由器H和所述边界路由器I分别至所述边界路由器J的两条BGP LSP隧道,但是在数据传输过程中,所述边界路由器F有可能通过所述边界路由器H将数据传输给了所述边界路由器J,而并没有数据流经所述边界路由器I,因此建立出的由所述边界路由器I至所述边界路由器J的BGP LSP隧道也就没有被使用,从而使得创建这条BGP LSP隧道所花费的系统资源也同样被浪费了。However, for the above-mentioned establishment mode, a plurality of BGP LSP tunnels from a neighboring device of a certain device to the device are respectively established, and some of the BGP LSP tunnels may not be used in the subsequent data transmission process, resulting in The waste of BGP LSP tunnels. The BGP LSP tunnel waste actually consumes system resources because a certain amount of system resources, such as system memory, is required to establish a BGP LSP. Taking the MPLS network shown in FIG. 1 as an example, two BGP LSP tunnels from the border router H and the border router I to the border router J are respectively established through the above manner of establishing a BGP LSP tunnel, but In the data transmission process, it is possible for the border router F to transmit data to the border router J through the border router H, and no data flows through the border router I, thus establishing the boundary by the boundary The BGP LSP tunnel from Router I to the border router J is not used, so the system resources spent creating this BGP LSP tunnel are also wasted.
而在本发明实施例中,提供一种建立BGP LSP隧道的方法及网络设备,以解决BGP LSP隧道有可能被浪费的问题,从而节约系统资源。In the embodiment of the present invention, a method for establishing a BGP LSP tunnel and a network device are provided to solve the problem that the BGP LSP tunnel may be wasted, thereby saving system resources.
为了更清楚的介绍本发明实施例,先对BGP标签路由进行简单说明。In order to introduce the embodiment of the present invention more clearly, the BGP label routing is briefly described first.
BGP标签路由指的是携带标签映射信息的BGP路由,根据RFC3107、RFC4760等标准的规定,BGP标签路由被携带在BGP协议报文的多协议网络层可达信息(Multiprotocol Reachable NLRI,即MP_REACH_NLRI)的字段中,其中MP_REACH_NLRI的字段中一般携带有下一跳、和网络层可达信息 (Network Layer Reachable Information,NLRI)等,NLRI中携带有标签、前缀等。BGP协议报文中一般还包括BGP基本路径属性集,该属性集包括Origin属性、AS_Path属性等等。BGP label routing refers to the BGP route carrying the label mapping information. According to the standards of RFC3107 and RFC4760, the BGP label route is carried in the Multiprotocol Reachable NLRI (MP_REACH_NLRI) of the BGP protocol packet. In the field, the field of MP_REACH_NLRI generally carries the next hop, and the network layer reachability information. (Network Layer Reachable Information, NLRI), etc., NLRI carries tags, prefixes, and the like. The BGP protocol packet generally includes a BGP basic path attribute set, and the attribute set includes an Origin attribute, an AS_Path attribute, and the like.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth" and the like in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order. Or prioritization. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
请参阅图2,本发明实施例提供了建立BGP LSP隧道的一种方法实施例。Referring to FIG. 2, an embodiment of the present invention provides an embodiment of a method for establishing a BGP LSP tunnel.
本实施例的所述方法包括:The method of this embodiment includes:
步骤201:网络设备接收建立BGP LSP隧道的指示。Step 201: The network device receives an indication that a BGP LSP tunnel is established.
本发明实施例中,当需要建立一条从其他设备至所述网络设备的BGP LSP隧道时,所述网络设备会接收到所述建立BGP LSP隧道的指示。其中所述建立BGP LSP隧道的指示可以是由控制设备发送、或者在所述网络设备配置生成的,也可以是由所述网络设备的邻居设备发送。In the embodiment of the present invention, when a BGP LSP tunnel from another device to the network device needs to be established, the network device receives the indication of establishing a BGP LSP tunnel. The indication of establishing the BGP LSP tunnel may be sent by the control device, or generated by the network device, or may be sent by the neighbor device of the network device.
步骤202:所述网络设备从所述建立BGP LSP隧道的指示中获取传输路径。Step 202: The network device acquires a transmission path from the indication of establishing a BGP LSP tunnel.
在本发明实施例中,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径。例如,当有业务数据需要从第一设备发送至第二设备时,可以通过人工方式、或者由 控制设备计算等方式,确定出一条从所述第一设备至所述第二设备的端到端路径,将该端到端路径作为所述传输路径,并且通过所述建立BGP LSP隧道的指示使得所述网络设备获取到所述传输路径。In the embodiment of the present invention, the transmission path is a transmission path directly from the ingress device to the egress device or from the ingress device to the egress device. For example, when there is service data that needs to be sent from the first device to the second device, it can be manually or by Controlling, by means of computing, etc., determining an end-to-end path from the first device to the second device, using the end-to-end path as the transmission path, and using the indication of establishing a BGP LSP tunnel The network device acquires the transmission path.
以图3所示的MPLS网络为例加以说明,假设需要从边界路由器A至边界路由器J传输业务数据时,可以由所述控制设备根据MPLS网络的拓扑确定出一条端到端路径,比如所述传输路径依次包括:边界路由器A、边界路由器B、边界路由器D、边界路由器F、边界路由器H和边界路由器J。当所述传输路径确定后,需要按照所述传输路径建立一条特定的BGP LSP隧道。在具体建立BGP LSP隧道时,所述控制设备可以向所述边界路由器J发送包括所述传输路径的建立BGP LSP隧道的指示,所述边界路由器J在向所述边界路由器H发布BGP标签路由时,可以通过扩展BGP协议将所述传输路径发送至所述边界路由器H。Taking the MPLS network shown in FIG. 3 as an example, if it is required to transmit service data from the border router A to the border router J, the control device may determine an end-to-end path according to the topology of the MPLS network, for example, The transmission path includes, in order, a border router A, a border router B, a border router D, a border router F, a border router H, and a border router J. After the transmission path is determined, a specific BGP LSP tunnel needs to be established according to the transmission path. When the BGP LSP tunnel is specifically established, the control device may send an indication to the border router J to establish a BGP LSP tunnel, where the border router J advertises a BGP label to the border router H. The transmission path can be sent to the border router H by extending the BGP protocol.
在本发明实施例中,所述控制设备可以是网络管理器、SDN控制器、或者安装特定应用软件的服务器等设备。In the embodiment of the present invention, the control device may be a network manager, an SDN controller, or a server that installs a specific application software.
步骤203:所述网络设备确定在所述传输路径上,与所述网络设备直接相邻的上游设备。Step 203: The network device determines an upstream device that is directly adjacent to the network device on the transmission path.
在本发明实施例中,所述网络设备在接收到所述建立BGP LSP隧道的指示,并不会向所述网络设备的所有邻居设备发布BGP标签路由,而是确定出指定的目的设备,即在所述传输路径上,与所述网络设备直接相邻的上游设备,并且所述网络设备只向所述指定的目的设备发布BGP标签路由,从而实现按照所述传输路径建立BGP LSP隧道。其中,所述直接相邻指的在所述传输路径上的直接相邻。In the embodiment of the present invention, the network device receives the indication of establishing the BGP LSP tunnel, and does not advertise the BGP label route to all neighboring devices of the network device, but determines the specified destination device, that is, On the transmission path, an upstream device directly adjacent to the network device, and the network device only advertises a BGP label route to the specified destination device, thereby establishing a BGP LSP tunnel according to the transmission path. Wherein the direct adjacent fingers are directly adjacent to each other on the transmission path.
仍以图3所示的MPLS网络为例加以说明,假设所述传输路径依次包括:边界路由器A、边界路由器B、边界路由器D、边界路由器F、边界路由器H和边界路由器J。所述控制设备可以向所述边界路由器J发送建立BGP LSP隧道的指示,所述边界路由器J接收到所述指示后,不再采用现有技术中的方式,即向边界路由器H和边界路由器J发布BGP标签路由,而是确定出所述传输路径上与边界路由器J直接相邻的上游设备,即边界路由器H,从而后续只需向所述边界路由器H发布BGP标签路由。从而实现了按照所述传输路径,建立出从所述边界路由器H至所述边界路由器J 的BGP LSP隧道。其他边界路由器也根据类似方式依次建立BGP LSP隧道,最终按照所述传输路径建立出一条从所述边界路由器A至所述边界路由器J的端到端BGP LSP隧道。Still taking the MPLS network shown in FIG. 3 as an example, it is assumed that the transmission path includes, in order, a border router A, a border router B, a border router D, a border router F, a border router H, and a border router J. The control device may send an indication to the border router J to establish a BGP LSP tunnel, and after receiving the indication, the border router J does not adopt the manner in the prior art, that is, to the border router H and the border router J. The BGP label route is advertised, but the upstream device directly adjacent to the border router J, that is, the border router H, is determined, so that only the BGP label route needs to be advertised to the border router H. Thereby establishing, from the border router H to the border router J, according to the transmission path BGP LSP tunnel. The other border routers also establish a BGP LSP tunnel in a similar manner, and finally establish an end-to-end BGP LSP tunnel from the border router A to the border router J according to the transmission path.
需要说明的是,在本发明实施例中,上游和下游指的是数据传输方向的上游和下游。例如在图3中,由于边界路由器J通过向边界路由器H发布BGP标签路由,建立了由边界路由器H至边界路由器J的BGP LSP隧道,利用该BGP LSP隧道能够将数据从边界路由器H传输至边界路由器J,即数据传输方向为边界路由器H至边界路由器J,因此所述边界路由器H是所述边界路由器J的上游设备,所述边界路由器J是所述边界路由器H的下游设备。It should be noted that, in the embodiment of the present invention, the upstream and downstream refer to the upstream and downstream of the data transmission direction. For example, in FIG. 3, since the border router J issues a BGP label route to the border router H, a BGP LSP tunnel from the border router H to the border router J is established, and the BGP LSP tunnel can be used to transmit data from the border router H to the boundary. The router J, that is, the data transmission direction is the border router H to the border router J, and thus the border router H is an upstream device of the border router J, and the border router J is a downstream device of the border router H.
在本发明实施例中,所述网络设备为所述中间设备或者所述出口设备,其中所述中间设备和所述出口设备指的是所述传输路径的中间设备和出口设备。需要说明的是,与上游和下游类似,本发明实施例的出口和入口指的是数据传输方向的出口和入口。假设在图3中,在所述传输路径上建立出了从边界路由器A至边界路由器J的端到端BGP LSP隧道,因此数据传输方向为也从边界路由器A至边界路由器J,因此,所述边界路由器A为所述传输路径的入口设备,边界路由器J为所述传输路径的出口设备,其余的边界路由器为所述传输路径上的中间设备。In the embodiment of the present invention, the network device is the intermediate device or the egress device, where the intermediate device and the egress device refer to an intermediate device and an egress device of the transmission path. It should be noted that, similar to the upstream and downstream, the outlet and the inlet of the embodiment of the present invention refer to the outlet and the entrance of the data transmission direction. It is assumed that in FIG. 3, an end-to-end BGP LSP tunnel from the border router A to the border router J is established on the transmission path, so the data transmission direction is also from the border router A to the border router J, therefore, the The border router A is an ingress device of the transmission path, the border router J is an egress device of the transmission path, and the remaining border routers are intermediate devices on the transmission path.
204:所述网络设备向所述上游设备发送扩展的第一BGP协议报文,所述扩展的第一BGP协议报文中包括所述网络设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径。204: The network device sends an extended first BGP protocol packet to the upstream device, where the extended first BGP protocol packet includes a BGP label route and a first extended attribute advertised by the network device, where The first extended attribute indicates the transmission path.
当所述网络设备确定出所述传输路径上,与所述网络设备直接相邻的所述上游设备后,通过向所述上游设备发布BGP路由标签,即能够实现建立出所述上游设备至所述网络设备的BGP LSP隧道。其中在向所述上游设备发布BGP标签路由时,需要对BGP协议进行扩展从而携带所述传输路径,从而使得所述上游设备能够获取所述传输路径。After the network device determines the upstream device that is directly adjacent to the network device, the BGP routing label is advertised to the upstream device, so that the upstream device can be established. The BGP LSP tunnel of the network device. When the BGP label route is advertised to the upstream device, the BGP protocol needs to be extended to carry the transmission path, so that the upstream device can acquire the transmission path.
其中,由于BGP标签路由一般包括:前缀、下一跳以及标签。其中前缀通常为端到端BGP LSP隧道的出口设备的IP地址或者IP地址前缀,也就是发起建立所述端到端BGP LSP隧道的设备的IP地址或者IP地址前缀,下一跳为发布该BGP标签路由的设备的IP地址,标签为对所述前缀所指 示的路由分配的标签。因此本步骤中所述网络设备发布的BGP标签路由中,前缀为所述传输路径的出口设备的IP地址或者IP地址前缀,下一跳为所述网络设备的IP地址,标签为对所述出口设备的IP地址或者IP地址前缀所指示的路由分配的标签。The BGP label route generally includes a prefix, a next hop, and a label. The prefix is usually the IP address or IP address prefix of the egress device of the end-to-end BGP LSP tunnel, that is, the IP address or IP address prefix of the device that initiated the end-to-end BGP LSP tunnel. The next hop is to advertise the BGP. IP address of the device that the label is routed. The label is the one specified by the prefix. The label of the route assignment shown. Therefore, in the BGP label route advertised by the network device in this step, the prefix is the IP address or IP address prefix of the egress device of the transmission path, and the next hop is the IP address of the network device, and the label is the egress. The label of the route assignment indicated by the IP address or IP address prefix of the device.
通过上述技术方案可知,在本发明实施例中,所述网络设备在接收到所述建立BGP LSP隧道的指示时,不再是向所述网络设备的所有邻居设备发布BGP标签路由,建立出有可能使用不到的BGP LSP隧道,而是从所述建立BGP LSP隧道的指示中获取从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径,向在所述传输路径上,与所述网络设备直接相邻的上游设备发送扩展的第一BGP协议报文,该报文中包括所述网络设备发布的BGP标签路由,从而创建出了所述上游设备至所述网络设备的BGP LSP隧道,可见本发明实施例实际上是根据所述传输路径,而建立指定方向的BGP LSP隧道,从而实现了按需建立BGP LSP隧道,以实现在按需建立的BGP LSP隧道上传输业务数据,解决了BGP LSP隧道有可能被浪费的问题,从而节约了系统资源。其中所述传输路径可以为传输所述业务数据而确定出的传输路径,从而使得建立出的所述BGP LSP隧道用于传输所述业务数据。According to the foregoing technical solution, in the embodiment of the present invention, when receiving the indication of establishing a BGP LSP tunnel, the network device does not advertise a BGP label route to all neighboring devices of the network device, and establishes an existing a BGP LSP tunnel that may not be used, but obtains a transmission path from the ingress device directly to the egress device or from the ingress device to the egress device through the indication of establishing the BGP LSP tunnel. An upstream device directly adjacent to the network device sends an extended first BGP protocol packet, where the packet includes a BGP label route advertised by the network device, thereby creating the upstream device. In the BGP LSP tunnel to the network device, it can be seen that the BGP LSP tunnel is set up in the specified direction according to the transmission path, so that the BGP LSP tunnel is established on demand to realize the on-demand establishment. The service data is transmitted on the BGP LSP tunnel, which solves the problem that the BGP LSP tunnel may be wasted, thus saving system resources. The transmission path may be a transmission path determined by transmitting the service data, so that the established BGP LSP tunnel is used to transmit the service data.
可选的,所述网络设备在获取所述传输路径时,还可以进一步先确定是否存在所述传输路径,如果是,则可以继续本发明实施例的流程,如果否,则说明所述网络设备不能获取到所述传输路径,例如所述网络设备可能不支持扩展的BGP协议,因此所述网络设备可以仍然按照现有的方式广播发布BGP标签路由。具体实现时,在本实施例的步骤102之前,还可以包括:所述网络设备确定出存在所述传输路径;本实施例的所述方法还包括:所述网络设备确定出不存在所述传输路径,向所述网络设备的各个邻居设备发布BGP标签路由。Optionally, when the network device obtains the transmission path, the network device may further determine whether the transmission path exists. If yes, the process of the embodiment of the present invention may continue, and if not, the network device is The transmission path cannot be obtained. For example, the network device may not support the extended BGP protocol. Therefore, the network device may still broadcast and publish the BGP label route according to the existing manner. In a specific implementation, before the step 102 of the embodiment, the network device may further include: determining, by the network device, that the transmission path exists; the method of this embodiment further includes: determining, by the network device, that the transmission does not exist The BGP label route is advertised to each neighboring device of the network device.
在本发明实施例中,所述网络设备向所述上游设备发布BGP标签路由时,需要对BGP协议进行扩展从而携带所述传输路径,在具体实现时,可以通过对BGP协议的代码进行修改,在所述第一BGP协议报文中新增一个BGP属性,即第一扩展属性,所述第一扩展属性指示出所述传输路径。其中,所述第一扩展属性具体可以在BGP基本路径属性集中添加。 In the embodiment of the present invention, when the network device issues a BGP label route to the upstream device, the BGP protocol needs to be extended to carry the transmission path. In specific implementation, the code of the BGP protocol may be modified. Adding a BGP attribute, that is, a first extended attribute, to the first BGP protocol packet, where the first extended attribute indicates the transmission path. The first extended attribute may be specifically added in the BGP basic path attribute set.
下面示例性的介绍一种所述第一扩展属性的实现方式。An implementation of the first extended attribute is exemplarily described below.
所述第一BGP协议报文中新增的所述第一扩展属性具体可以为BGP端到端LSP节点列表属性(BGP E2E LSP Node List Attribute)。其中,所述BGP E2E LSP Node List Attribute的封装格式可以如表1所示。The first extended attribute that is added to the first BGP protocol packet may be a BGP E2E LSP Node List Attribute. The encapsulation format of the BGP E2E LSP Node List Attribute can be as shown in Table 1.
表1Table 1
第一节点属性First node attribute
第二节点属性Second node attribute
……......
最后一个节点属性Last node attribute
所述表1中的所述第一节点属性、所述第二节点属性、……、所述最后一个节点属性指的是所述传输路径中各个网络设备对应的节点属性。其中每一个节点属性都可以具有相对应的定义,例如表2给出了一种示例性的说明。The first node attribute, the second node attribute, ..., the last node attribute in the table 1 refer to a node attribute corresponding to each network device in the transmission path. Each of the node attributes can have a corresponding definition, for example, Table 2 gives an exemplary description.
表2Table 2
地址族标识Address family identifier
保留位Reserved bit
子地址族标识Subaddress family identifier
后续字段的长度Length of subsequent fields
本地地址Local address
目标邻居地址Target neighbor address
在所述表2中,本地地址指的是所述表2所对应的网络设备的地址,目标邻居地址指的是所述表2所对应的网络设备,在所述传输路径上直接相邻的上游设备的地址。可见通过表1和表2,可以指示出所述传输路径上,每一个节点的上游设备。In the table 2, the local address refers to the address of the network device corresponding to the table 2, and the target neighbor address refers to the network device corresponding to the table 2, and is directly adjacent to the transmission path. The address of the upstream device. It can be seen that through Table 1 and Table 2, the upstream device of each node on the transmission path can be indicated.
在本发明实施例中,所述网络设备可以为所述传输路径的中间设备或者出口设备。下面分别进行详细说明。 In the embodiment of the present invention, the network device may be an intermediate device or an egress device of the transmission path. The details are described below separately.
一、所述网络设备为所述传输路径的出口设备。1. The network device is an egress device of the transmission path.
所述出口设备接收的所述建立BGP LSP隧道的指示,具体可以由控制设备发送,其中所述建立BGP LSP隧道中包括有所述传输路径。例如,以图3为例,当有业务数据需要从边界路由器A传输至边界路由器J时,所述控制设备可以根据MPLS网络的拓扑确定出一条端到端路径,比如所述传输路径依次包括:边界路由器A、边界路由器B、边界路由器D、边界路由器F、边界路由器H和边界路由器J。所述控制设备向所述边界路由器J发送包括所述传输路径的建立BGP LSP隧道的指示。需要说明的是,本发明实施例在所述传输路径上建立BGP LSP隧道主要是在控制平面,而在建好的BGP LSP隧道上传输数据则是在转发平面。The indication that the BGP LSP tunnel is set up by the egress device may be sent by the control device, where the BGP LSP tunnel includes the transmission path. For example, in FIG. 3, when there is service data to be transmitted from the border router A to the border router J, the control device may determine an end-to-end path according to the topology of the MPLS network, for example, the transmission path includes: Border Router A, Border Router B, Border Router D, Border Router F, Border Router H, and Border Router J. The control device sends an indication to the border router J to establish a BGP LSP tunnel including the transmission path. It should be noted that, in the embodiment of the present invention, the BGP LSP tunnel is established on the transmission path mainly in the control plane, and the data transmitted on the established BGP LSP tunnel is in the forwarding plane.
所述出口设备接收所述建立BGP LSP隧道的指示后,会向所述传输路径上,与所述出口设备直接相邻的上游设备发送扩展的第一BGP协议报文,该报文中包括所述出口设备发布的BGP标签路由和第一扩展属性,从而建立出所述上游设备至所述出口设备的BGP LSP隧道。其中所述出口设备发布的BGP标签路由中,前缀为所述出口设备的IP地址或者IP地址前缀,下一跳为所述出口设备的IP地址,标签为对所述出口设备的IP地址或者IP地址前缀所指示的路由分配的标签。其中所述第一扩展属性指示出所述传输路径,用于使得所述出口设备的上游设备能够基于所述扩展的第一BGP协议报文获取所述传输路径。After receiving the indication of establishing the BGP LSP tunnel, the egress device sends an extended first BGP protocol packet to the upstream device directly adjacent to the egress device, where the egress device includes the The BGP label route and the first extended attribute advertised by the egress device are used to establish a BGP LSP tunnel from the upstream device to the egress device. The BGP label route advertised by the egress device is prefixed with an IP address or an IP address prefix of the egress device, and the next hop is an IP address of the egress device, and the label is an IP address or IP address of the egress device. The label of the route assignment indicated by the address prefix. The first extended attribute indicates the transmission path, and is configured to enable the upstream device of the egress device to acquire the transmission path based on the extended first BGP protocol packet.
可选的,所述出口设备还可以获取业务数据的VPN标签路由信息,并将所述VPN标签路由信息通过BGP协议等方式发送至所述入口设备。其中,所述VPN标签路由信息包括:VPN标签和VPN用户信息,所述VPN用户信息用于指示所述入口设备将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联,例如,如果所述VPN是二层(Layer 2,即L2)VPN,则所述VPN用户信息可以包括接入链路(Attachment Circuit,即AC)标识(Identifier,即ID);如果所述VPN是三层(Layer 3,即L3)VPN,则所述VPN用户信息可以包括路由目标(Route Target,即RT)。在本发明实施例中,所述端到端BGP LSP隧道与所述VPN标签相关联,指的是所述端到端BGP LSP隧道与所述VPN标签具有对应关系,从而使得所述入口设备能够利用所述端到端BGP LSP隧道,传输所述VPN标签对应的 业务数据。所述相关联的一种实现方式是,在所述入口设备上保存所述端到端BGP LSP隧道与所述VPN标签的对应关系。例如图3中,边界路由器A接收到边界路由器B发布的BGP标签路由:1.1.1.1,5.5.5.5,L5后,保存该BGP标签路由中的标签L5与所述VPN标签的对应关系,即实现了所述端到端BGP LSP隧道与所述VPN标签相关联。Optionally, the egress device may also obtain the VPN label routing information of the service data, and send the VPN label routing information to the ingress device by using a BGP protocol or the like. The VPN label routing information includes: a VPN label and VPN user information, where the VPN user information is used to indicate that the ingress device associates an end-to-end BGP LSP tunnel established on the transmission path with the VPN label. For example, if the VPN is a Layer 2 (L2) VPN, the VPN user information may include an Attachment Circuit (AC) identifier (ID); The VPN is a Layer 3 (L3) VPN, and the VPN user information may include a Route Target (RT). In the embodiment of the present invention, the end-to-end BGP LSP tunnel is associated with the VPN label, and the end-to-end BGP LSP tunnel has a corresponding relationship with the VPN label, so that the Transmitting the corresponding VPN label by using the end-to-end BGP LSP tunnel Business data. The associated implementation manner is that the corresponding relationship between the end-to-end BGP LSP tunnel and the VPN label is saved on the ingress device. For example, in Figure 3, after receiving the BGP label route advertised by the border router B: 1.1.1.1, 5.5.5.5, and L5, the border router A saves the correspondence between the label L5 and the VPN label in the BGP label route. The end-to-end BGP LSP tunnel is associated with the VPN label.
其中,所述VPN标签用于标识用户业务数据,可以包括虚拟网络标识(英文:Virtual Network Identifier,简称:VNI)、虚拟专用网路由转发标识(Virtual Routing Forwarding Identifier,简称:VRF)标签等等。由于MPLS网络目前是以广播的方式建立BGP LSP隧道,因此在传输数据时,为了使得数据到达目的设备,每一个中间设备都需要使用复杂的策略定义出主备路径,不仅容易出错而且运维也比较困难。而本发明实施例中不仅在所述传输路径上建立了一条端到端BGP LSP隧道,而且将该端到端BGP LSP隧道与业务数据的VPN标签相关联,从而使得所述业务数据通过该端到端BGP LSP隧道进行传输,无需在每一个中间设备上定义主备路径,不仅实现简单而且运维也较为容易。The VPN label is used to identify the user service data, and may include a virtual network identifier (English: Virtual Network Identifier, VNI for short), a virtual private network forwarding and forwarding identifier (VRF) label, and the like. Since the MPLS network is currently configured to establish a BGP LSP tunnel in broadcast mode, in order to make data reach the destination device when transmitting data, each intermediate device needs to use a complicated policy to define the active and standby paths, which is not only error-prone but also operation and maintenance. tougher. In the embodiment of the present invention, an end-to-end BGP LSP tunnel is established not only on the transmission path, but also the end-to-end BGP LSP tunnel is associated with the VPN label of the service data, so that the service data passes through the end. The BGP LSP tunnel is transmitted to the BGP LSP. It is not necessary to define the active/standby path on each intermediate device.
需要说明的是,由于在本发明实施例中,所述出口设备在向所述传输路径上,与所述出口设备直接相邻的上游设备发布BGP标签路由时,为了要将所述传输路径也与所述BGP标签路由一同发送,需要对BGP协议进行扩展,下面从所述中间设备的角度进行详细描述。It should be noted that, in the embodiment of the present invention, when the egress device issues a BGP label route to the upstream device directly adjacent to the egress device on the transmission path, in order to The BGP protocol is transmitted together with the BGP label route. The BGP protocol needs to be extended. The following describes the detailed description from the perspective of the intermediate device.
二、所述网络设备为所述传输路径的中间设备。2. The network device is an intermediate device of the transmission path.
所述中间设备接收的所述建立BGP LSP隧道的指示,具体为所述传输路径上与所述中间设备直接相邻的下游设备发送的扩展的第二BGP协议报文。其中所述扩展的第二BGP协议报文包括所述下游设备发布的BGP标签路由和第二扩展属性,所述第二扩展属性指示出所述传输路径。The indication of the establishment of the BGP LSP tunnel received by the intermediate device is specifically the extended second BGP protocol packet sent by the downstream device directly adjacent to the intermediate device in the transmission path. The extended second BGP protocol packet includes a BGP label route and a second extended attribute advertised by the downstream device, where the second extended attribute indicates the transmission path.
也就是说,本发明实施例通过所述扩展的第二BGP协议报文,所述下游设备可以在发布BGP标签路由的同时,通过所述第二扩展属性指示出所述传输路径。因此所述中间设备在接收所述下游设备发送的所述扩展的第二BGP协议报文后,会进一步确定该报文中是否携带有BGP E2E LSP Node List属性,如果有该属性,找到本地地址为所述中间设备的地址的节点属性,根据该节点属性的目标邻居地址,获得所述中间设备的上游设备的地 址,通过向所述上游设备发布BGP标签路由,从而建立出所述上游设备至所述中间设备的BGP LSP隧道。其中,对于所述第二扩展属性的实现方式,请参见本发明实施例中所述第一扩展属性的相关内容,这里不再赘述。That is, the embodiment of the present invention, by using the extended second BGP protocol packet, the downstream device may indicate the transmission path by using the second extended attribute while issuing the BGP label route. Therefore, after receiving the extended second BGP protocol packet sent by the downstream device, the intermediate device further determines whether the BGP E2E LSP Node List attribute is carried in the packet, and if the attribute is found, the local address is found. Obtaining the location of the upstream device of the intermediate device according to the node attribute of the address of the intermediate device according to the target neighbor address of the node attribute The BGP LSP tunnel of the upstream device to the intermediate device is established by advertising the BGP label route to the upstream device. For the implementation of the second extended attribute, refer to the related content of the first extended attribute in the embodiment of the present invention, and details are not described herein again.
下面说明所述中间设备发布的BGP标签路由。The BGP label route advertised by the intermediate device is described below.
所述中间设备发布的BGP标签路由中,前缀为所述出口设备的IP地址或者IP地址前缀,下一跳为所述中间设备的IP地址,标签为对所述出口设备的IP地址或者IP地址前缀所指示的路由分配的标签。例如在图3中,所述边界路由器H接收到所述边界路由器J发布的BGP标签路由:1.1.1.1,1.1.1.1,L1,将其中的下一跳修改为所述边界路由器H的IP地址2.2.2.2,并且重新分配标签L2,从而获取到所述中间设备发布的BGP标签路由1.1.1.1,2.2.2.2,L2。通过将该BGP标签路由向所述边界路由器F发布,从而建立出所述边界路由器F至所述边界路由器H的BGP LSP隧道。同时所述边界路由器H还保存将所述边界路由器J的IP地址1.1.1.1与所述边界路由器H的对应关系,以及所述标签L1和所述标签L2的对应关系,以用于转发所述业务数据时使用。The BGP label route advertised by the intermediate device is prefixed with an IP address or an IP address prefix of the egress device, and the next hop is an IP address of the intermediate device, and the label is an IP address or an IP address of the egress device. The label assigned by the route indicated by the prefix. For example, in FIG. 3, the border router H receives the BGP label route advertised by the border router J: 1.1.1.1, 1.1.1.1, L1, and modifies the next hop therein to the IP address of the border router H. 2.2.2.2, and re-allocating the label L2 to obtain the BGP label routes 1.1.1.1, 2.2.2.2, L2 issued by the intermediate device. The BGP LSP tunnel of the border router F to the border router H is established by routing the BGP label to the border router F. At the same time, the border router H also stores a correspondence between the IP address 1.1.1.1 of the border router J and the border router H, and a correspondence between the label L1 and the label L2, for forwarding the Used when business data.
在本发明实施例中,所述传输路径中的每一个中间设备,都可以建立出所述传输路径上,与该中间设备直接相邻的上游设备至该中间设备的BGP LSP隧道,再加上所述出口设备建立的所述传输路径上与所述出口设备直接相邻的上游设备至所述出口设备的BGP LSP隧道,最终在所述传输路径上建立出一条端到端BGP LSP隧道。In the embodiment of the present invention, each intermediate device in the transmission path may establish a BGP LSP tunnel of the upstream device directly adjacent to the intermediate device to the intermediate device in the transmission path, plus The BGP LSP tunnel of the upstream device directly adjacent to the egress device in the transmission path to the egress device, and finally an end-to-end BGP LSP tunnel is established on the transmission path.
需要说明的是,为了实现在同一个域内传输数据,除了建立BGP LSP隧道之外,一般还需要建立流量工程(英文:Traffic Engineer,简称:TE)隧道或者标签分发协议(英文:Label Distribution Protocol,简称:LDP)LSP隧道。其中同一个域一般指的是同一AS域。而目前在建立LDP LSP隧道和TE隧道时,都是在建立BGP LSP隧道之前,就已经在域内建立好LDP LSP隧道和TE隧道。而在本发明实施例中,还提供了一种建立TE隧道的方式,以实现在建立BGP LSP隧道的同时,建立TE隧道。其中,LDP LSP隧道指的是利用LDP传递标签生成的LSP隧道。It should be noted that in order to implement data transmission in the same domain, in addition to establishing a BGP LSP tunnel, a traffic engineering (English: Traffic Engineer, TE: Tunnel) or a label distribution protocol (English: Label Distribution Protocol) is generally required. Abbreviation: LDP) LSP tunnel. The same domain generally refers to the same AS domain. In the LDP LSP tunnel and the TE tunnel, the LDP LSP tunnel and the TE tunnel are established in the domain. In the embodiment of the present invention, a manner of establishing a TE tunnel is also provided, so as to establish a TE tunnel while establishing a BGP LSP tunnel. The LDP LSP tunnel refers to an LSP tunnel generated by using LDP to transmit labels.
具体地,所述中间设备接收所述建立BGP LSP隧道的指示后,建立所述中间设备至所述下游设备的TE隧道。例如图3所示,所述中间设备在 接收到所述扩展的第二BGP协议报文后,向所述下游设备逐跳发送路径请求(RSVP PATH MSG),所述下游设备接收到所述RSVP PATH MSG后,向所述中间设备逐跳发送路径保留请求(RSVP RESV MSG),所述中间设备接收到所述RSVP RESV MSG,表示所述TE隧道建立成功。可见本发明实施例中,当所述中间设备接收到所述扩展的第二BGP协议报文后,才开始建立所述TE隧道。并且,所述中间设备还可以在确定出建立所述TE隧道后,向所述上游设备发送所述扩展的第一协议报文。Specifically, after receiving the indication of establishing a BGP LSP tunnel, the intermediate device establishes a TE tunnel of the intermediate device to the downstream device. For example, as shown in Figure 3, the intermediate device is After receiving the extended second BGP protocol packet, the downlink device sends a path request (RSVP PATH MSG) to the downstream device, and after receiving the RSVP PATH MSG, the downstream device hops to the intermediate device. The path reservation request (RSVP RESV MSG) is sent, and the intermediate device receives the RSVP RESV MSG, indicating that the TE tunnel is successfully established. It can be seen that, in the embodiment of the present invention, the TE tunnel is started to be established after the intermediate device receives the extended second BGP protocol packet. And the intermediate device may further send the extended first protocol packet to the upstream device after determining that the TE tunnel is established.
其中,所述扩展的第二BGP协议报文还可以指示出建立的所述TE隧道的建立属性。具体地,所述扩展的第二BGP协议报文中还包括第三扩展属性,所述第三扩展属性指示出TE隧道的建立属性;本实施例的所述方法还包括:所述中间设备从所述扩展的第二BGP协议报文中获取所述TE隧道的建立属性;所述中间设备建立所述中间设备至所述下游设备的TE隧道,可以包括:所述中间设备基于所述TE隧道的建立属性,建立所述中间设备至所述下游设备的TE隧道。其中,所述第三扩展属性具体可以在BGP基本路径属性集中添加。The extended second BGP protocol packet may also indicate the established establishment attribute of the TE tunnel. Specifically, the extended second BGP protocol packet further includes a third extended attribute, where the third extended attribute indicates an establishment attribute of the TE tunnel; the method in this embodiment further includes: the intermediate device from Obtaining the establishment attribute of the TE tunnel in the extended second BGP protocol packet; the intermediate device establishing the TE tunnel of the intermediate device to the downstream device may include: the intermediate device is based on the TE tunnel Establishing an attribute, establishing a TE tunnel of the intermediate device to the downstream device. The third extended attribute may be specifically added in the BGP basic path attribute set.
下面示例性的介绍一种所述第三扩展属性的实现方式。An implementation of the third extended attribute is exemplarily described below.
所述第二BGP协议报文中新增的所述第三扩展属性具体可以为外层隧道约束条件属性(Outer Tunnel Constraint Attribute)。其中,所述Outer Tunnel Constraint Attribute具体可以有多种实现方式,例如表3给出了一种示例性的说明。The third extended attribute that is added to the second BGP protocol packet may be an Outer Tunnel Constraint Attribute. The Outer Tunnel Constraint Attribute may have multiple implementation manners. For example, Table 3 gives an exemplary description.
表3table 3
带宽bandwidth
可靠性参数Reliability parameter
从表3可以看出,所述TE隧道的建立属性可以包括:TE隧道的带宽约束条件和/或可靠性参数。As can be seen from Table 3, the establishment attributes of the TE tunnel may include: bandwidth constraints and/or reliability parameters of the TE tunnel.
其中,在所述中间设备建立所述中间设备至所述下游设备的TE隧道之前,还可以包括:所述中间设备确定出所述中间设备与所述下游设备具有同一域编号。即所述中间设备和所述下游设备具有同一域编号时,才建 立所述TE隧道,而两者不具有同一域编号时,则无需建立所述TE隧道。其中确定是否具有同一域编号,可以通过确定BGP标签路由是内部边界网关协议(即IBGP)路由类型还是外部边界网关协议EBGP路由类型实现,具体地,所述中间设备接收到所述下游设备发布的BGP标签路由后,如果确定出所述BGP标签路由是IBGP路由类型,表示所述中间设备与所述下游设备之间部署的是IBGP邻居关系,也即所述中间设备与所述下游设备具有同一域编号,则建立所述TE隧道;如果确定出所述BGP标签路由是EBGP路由类型,表示所述中间设备与所述下游设备之间部署的是EBGP邻居关系,也即所述中间设备与所述下游设备不具有同一域编号,则无需建立所述TE隧道。其中所述域编号一般指的是AS域编号。Before the intermediate device establishes the TE tunnel of the intermediate device to the downstream device, the intermediate device may further include: the intermediate device determines that the intermediate device has the same domain number as the downstream device. That is, when the intermediate device and the downstream device have the same domain number, When the TE tunnel is established, and the two do not have the same domain number, the TE tunnel does not need to be established. If the BGP label routing is determined by the internal border gateway protocol (IBGP) routing type or the external border gateway protocol EBGP routing type, the intermediate device receives the advertised by the downstream device. After the BGP label is routed, if it is determined that the BGP label route is an IBGP route type, it indicates that an IBGP neighbor relationship is deployed between the intermediate device and the downstream device, that is, the intermediate device and the downstream device are the same. The domain number is used to establish the TE tunnel; if it is determined that the BGP label route is an EBGP route type, the EBGP neighbor relationship is set between the intermediate device and the downstream device, that is, the intermediate device and the device are If the downstream device does not have the same domain number, the TE tunnel does not need to be established. The domain number generally refers to the AS domain number.
上面对所述传输路径中的出口设备和中间设备进行了描述,下面介绍本发明实施例中的所述传输路径中的入口设备。The egress device and the intermediate device in the transmission path are described above. The following describes the ingress device in the transmission path in the embodiment of the present invention.
请参阅图4,本发明实施例提供了建立BGP LSP隧道的另一种方法实施例。Referring to FIG. 4, an embodiment of the present invention provides another method for establishing a BGP LSP tunnel.
本实施例的所述方法包括:The method of this embodiment includes:
步骤401:网络设备接收在传输路径上,与所述网络设备直接相邻的下游设备发送的扩展的BGP协议报文。Step 401: The network device receives the extended BGP protocol packet sent by the downstream device directly adjacent to the network device on the transmission path.
其中,所述网络设备为所述传输路径的入口设备。例如图3中,本实施例中的所述网络设备为边界路由器A。The network device is an ingress device of the transmission path. For example, in FIG. 3, the network device in this embodiment is a border router A.
本发明实施例中,所述扩展的BGP协议报文包括所述下游设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径,所述传输路径是从所述入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径。其中,所述第一扩展属性的实现方式具体可以参见在上述方法实施例中对所述第一扩展属性的介绍,这里不再赘述。In the embodiment of the present invention, the extended BGP protocol packet includes a BGP label route and a first extended attribute advertised by the downstream device, where the first extended attribute indicates the transmission path, and the transmission path is from the The ingress device directly goes to the egress device or a transmission path from the ingress device through the intermediate device to the egress device. For the implementation of the first extended attribute, refer to the description of the first extended attribute in the foregoing method embodiment, and details are not described herein again.
通过上述技术方案可知,本实施例中,所述入口设备,在接收到所述下游设备发送的扩展的BGP协议报文后,即实现在所述传输路径上建立了一条端到端的BGP LSP隧道。According to the foregoing technical solution, in the embodiment, the ingress device establishes an end-to-end BGP LSP tunnel on the transmission path after receiving the extended BGP protocol packet sent by the downstream device. .
可选的,本实施例还可以将所述端到端BGP LSP隧道与业务数据的VPN 标签相关联,从而使得所述业务数据通过该端到端BGP LSP隧道进行传输,无需在每一个中间设备上定义主备路径,不仅实现简单而且运维也较为容易。具体实现时,本实施例还可以包括步骤402和步骤403。Optionally, in this embodiment, the end-to-end BGP LSP tunnel and service data VPN may also be used. The labels are associated, so that the service data is transmitted through the end-to-end BGP LSP tunnel, and the active/standby path is not required to be defined on each intermediate device, which is not only simple but also easy to operate and maintain. In a specific implementation, the embodiment may further include step 402 and step 403.
步骤402:所述网络设备接收所述出口设备发送的所述业务数据的VPN标签路由信息,所述VPN标签路由信息包括VPN用户信息和VPN标签。其中所述VPN用户信息用于指示所述入口设备将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联。例如,如果所述VPN是L2VPN,则所述VPN用户信息可以包括AC ID;如果所述VPN是L3VPN,则所述VPN用户信息可以包括RT,所述VPN标签用于标识用户业务数据,可以包括VNI、VRF标签等等。Step 402: The network device receives VPN label routing information of the service data sent by the egress device, where the VPN label routing information includes VPN user information and a VPN label. The VPN user information is used to instruct the ingress device to associate an end-to-end BGP LSP tunnel established on the transmission path with the VPN label. For example, if the VPN is an L2VPN, the VPN user information may include an AC ID; if the VPN is an L3VPN, the VPN user information may include an RT, and the VPN label is used to identify user service data, which may include VNI, VRF tags, etc.
步骤403:所述网络设备基于所述VPN用户信息,将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联。Step 403: The network device associates the end-to-end BGP LSP tunnel established on the transmission path with the VPN label based on the VPN user information.
在本发明实施例中,所述端到端BGP LSP隧道与所述VPN标签相关联,指的是所述端到端BGP LSP隧道与所述VPN标签具有对应关系,从而使得所述入口设备能够利用所述端到端BGP LSP隧道,传输所述VPN标签对应的所述业务数据。所述相关联的具体实现方式请参见上述方法实施例的相关描述,这里不再赘述。In the embodiment of the present invention, the end-to-end BGP LSP tunnel is associated with the VPN label, and the end-to-end BGP LSP tunnel has a corresponding relationship with the VPN label, so that the Transmitting the service data corresponding to the VPN label by using the end-to-end BGP LSP tunnel. For the specific implementation of the related implementation, refer to the related description of the foregoing method embodiments, and details are not described herein again.
本实施例还可以包括所述网络设备获取所述业务数据;所述网络设备将所述业务数据和所述VPN标签,通过在所述传输路径上建立的端到端BGP LSP隧道进行传输。The embodiment may further include the network device acquiring the service data; the network device transmitting the service data and the VPN label by using an end-to-end BGP LSP tunnel established on the transmission path.
需要说明的是,为了实现在同一个域内传输数据,除了建立BGP LSP隧道之外,一般还需要建立TE隧道或者LDP LSP隧道。而在本发明实施例中,还提供了一种建立TE隧道的方式,以实现在建立BGP LSP隧道的同时,建立TE隧道。It should be noted that in order to transmit data in the same domain, in addition to establishing a BGP LSP tunnel, a TE tunnel or an LDP LSP tunnel is generally required. In the embodiment of the present invention, a manner of establishing a TE tunnel is also provided, so as to establish a TE tunnel while establishing a BGP LSP tunnel.
可选的,本实施例可以包括:所述网络设备接收所述扩展的BGP协议报文后,建立所述网络设备至所述下游设备的TE隧道。Optionally, the embodiment may include: after receiving the extended BGP protocol packet, the network device establishes a TE tunnel of the network device to the downstream device.
进一步可选的,所述扩展的BGP协议报文中还包括第二扩展属性,所述第二扩展属性指示出TE隧道的建立属性;本实施例还可以包括所述网络设备从所述扩展的BGP协议报文中获取所述TE隧道的建立属性;本实 施例的所述网络设备建立所述网络设备至所述下游设备的TE隧道,包括:所述网络设备基于所述TE隧道的建立属性,建立所述网络设备至所述下游设备的TE隧道。其中,所述TE隧道的建立属性包括:带宽约束条件和/或可靠性参数。Further, the extended BGP protocol packet further includes a second extended attribute, where the second extended attribute indicates an establishment attribute of the TE tunnel; the embodiment may further include the network device from the extended Obtaining the establishment attribute of the TE tunnel in the BGP protocol packet; The network device of the embodiment establishes the TE tunnel of the network device to the downstream device, and the network device establishes a TE tunnel of the network device to the downstream device based on the establishment attribute of the TE tunnel. The establishment attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter.
进一步可选的,在所述网络设备建立所述网络设备至所述下游设备的TE隧道之前,还包括:所述网络设备确定出所述网络设备与所述下游设备具有同一域编号。Further, before the network device establishes the TE tunnel of the network device to the downstream device, the method further includes: the network device determining that the network device has the same domain number as the downstream device.
对于所述TE隧道的具体建立方式和所述第二扩展属性的实现方式,具体请参见上述方法实施例中的所述TE隧道和所述第三扩展属性的相关内容,这里不再赘述。For the specific manner of establishing the TE tunnel and the implementation manner of the second extended attribute, refer to the related content of the TE tunnel and the third extended attribute in the foregoing method embodiment, and details are not described herein again.
上面对本发明实施例中的建立BGP LSP隧道的方法实施例进行了描述,下面将从模块化功能实体的角度对本发明实施例中的网络设备的装置实施例进行描述。The embodiment of the method for establishing a BGP LSP tunnel in the embodiment of the present invention is described above. The device embodiment of the network device in the embodiment of the present invention will be described below from the perspective of a modular functional entity.
请参阅图5,本发明实施例提供了网络设备500的一种装置实施例。Referring to FIG. 5, an embodiment of the present invention provides an apparatus embodiment of a network device 500.
本实施例的所述网络设备500包括接收单元501、处理单元502和发送单元503。The network device 500 of this embodiment includes a receiving unit 501, a processing unit 502, and a sending unit 503.
所述接收单元501用于接收建立BGP LSP隧道的指示。The receiving unit 501 is configured to receive an indication that a BGP LSP tunnel is established.
本发明实施例中,当需要建立一条从其他设备至所述网络设备500的BGP LSP隧道时,所述接收单元501会接收到所述建立BGP LSP隧道的指示。其中所述建立BGP LSP隧道的指示可以是由控制设备发送、或者在所述网络设备配置生成的,也可以是由所述网络设备500的邻居设备发送。In the embodiment of the present invention, when a BGP LSP tunnel from another device to the network device 500 needs to be established, the receiving unit 501 receives the indication of establishing a BGP LSP tunnel. The indication of establishing the BGP LSP tunnel may be sent by the control device, or generated by the network device, or may be sent by the neighbor device of the network device 500.
所述处理单元502用于,从所述建立BGP LSP隧道的指示中获取传输路径。The processing unit 502 is configured to obtain a transmission path from the indication of establishing a BGP LSP tunnel.
在本发明实施例中,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径。例如,当有业务数据需要从第一设备发送至第二设备时,可以通过人工方式、或者由控制设备计算等方式,确定出一条从所述第一设备至所述第二设备的端到端路径,将该端到端路径作为所述传输路径,并且通过所述建立BGP LSP隧道的指示使得所述网络设备500获取到所述传输路径。 In the embodiment of the present invention, the transmission path is a transmission path directly from the ingress device to the egress device or from the ingress device to the egress device. For example, when there is service data to be sent from the first device to the second device, an end-to-end from the first device to the second device may be determined by manual mode or by calculation by a control device. A path, the end-to-end path is used as the transmission path, and the network device 500 acquires the transmission path by using the indication of establishing a BGP LSP tunnel.
以图3所示的MPLS网络为例加以说明,假设需要从边界路由器A至边界路由器J传输业务数据时,可以由所述控制设备根据所述MPLS网络的拓扑确定出一条端到端路径,比如所述传输路径依次包括:边界路由器A、边界路由器B、边界路由器D、边界路由器F、边界路由器H和边界路由器J。当所述传输路径确定后,需要按照所述传输路径建立一条特定的BGP LSP隧道。在具体建立BGP LSP隧道时,所述控制设备可以向所述边界路由器J发送包括所述传输路径的建立BGP LSP隧道的指示,所述边界路由器J在向所述边界路由器H发布BGP标签路由时,可以通过扩展BGP协议将所述所述传输路径发送至所述边界路由器H。Taking the MPLS network shown in FIG. 3 as an example, if it is required to transmit service data from the border router A to the border router J, the control device may determine an end-to-end path according to the topology of the MPLS network, for example, The transmission path includes, in order, a border router A, a border router B, a border router D, a border router F, a border router H, and a border router J. After the transmission path is determined, a specific BGP LSP tunnel needs to be established according to the transmission path. When the BGP LSP tunnel is specifically established, the control device may send an indication to the border router J to establish a BGP LSP tunnel, where the border router J advertises a BGP label to the border router H. The transmission path may be sent to the border router H by an extended BGP protocol.
在本发明实施例中,所述控制设备可以是网络管理器、SDN控制器、或者安装特定应用软件的服务器等设备。In the embodiment of the present invention, the control device may be a network manager, an SDN controller, or a server that installs a specific application software.
所述处理单元502还用于,确定在所述传输路径上,与所述网络设备500直接相邻的上游设备。The processing unit 502 is further configured to determine an upstream device directly adjacent to the network device 500 on the transmission path.
在本发明实施例中,所述接收单元501接收到所述建立BGP LSP隧道的指示后,所述发送单元503并不会向所述网络设备500的所有邻居设备发布BGP标签路由,而是由所述处理单元502确定出指定的目的设备,即在所述传输路径上,与所述网络设备500直接相邻的上游设备,并且所述发送单元503只向所述指定的目的设备发布BGP标签路由,从而实现按照所述传输路径建立BGP LSP隧道。其中,所述直接相邻指的在所述传输路径上的直接相邻。In the embodiment of the present invention, after the receiving unit 501 receives the indication of establishing a BGP LSP tunnel, the sending unit 503 does not advertise a BGP label route to all neighboring devices of the network device 500, but instead The processing unit 502 determines the designated destination device, that is, the upstream device directly adjacent to the network device 500 on the transmission path, and the sending unit 503 only issues the BGP label to the specified destination device. Routing, thereby establishing a BGP LSP tunnel according to the transmission path. Wherein the direct adjacent fingers are directly adjacent to each other on the transmission path.
需要说明的是,在本发明实施例中,上游和下游指的是数据传输方向的上游和下游。在本发明实施例中,所述网络设备500为所述中间设备或者所述出口设备。与上游和下游类似,本发明实施例的出口和入口指的是数据传输方向的出口和入口。It should be noted that, in the embodiment of the present invention, the upstream and downstream refer to the upstream and downstream of the data transmission direction. In the embodiment of the present invention, the network device 500 is the intermediate device or the egress device. Similar to the upstream and downstream, the outlets and inlets of the embodiments of the present invention refer to the outlets and inlets of the data transmission direction.
所述发送单元503用于,向所述上游设备发送扩展的第一BGP协议报文,所述扩展的第一BGP协议报文中包括所述网络设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径。The sending unit 503 is configured to send, to the upstream device, an extended first BGP protocol packet, where the extended first BGP protocol packet includes a BGP label route and a first extended attribute advertised by the network device, where The first extended attribute indicates the transmission path.
当所述处理单元502确定出所述传输路径上,与所述网络设备500直接相邻的所述上游设备后,通过发送单元503向所述上游设备发布BGP路由标签,即能够实现建立出所述上游设备至所述网络设备500的BGP LSP 隧道。其中在向所述上游设备发布BGP标签路由时,需要对BGP协议进行扩展从而携带所述传输路径,从而使得所述上游设备能够获取所述传输路径。After the processing unit 502 determines that the upstream device that is directly adjacent to the network device 500 on the transmission path, the BGP routing label is advertised to the upstream device by the sending unit 503, that is, the establishment of the device can be established. BGP LSP of the upstream device to the network device 500 tunnel. When the BGP label route is advertised to the upstream device, the BGP protocol needs to be extended to carry the transmission path, so that the upstream device can acquire the transmission path.
其中,由于BGP标签路由一般包括:前缀、下一跳以及标签。所述网络设备500发布的BGP标签路由中,前缀为所述传输路径的出口设备的IP地址或者IP地址前缀,下一跳为所述网络设备500的IP地址,标签为对所述出口设备的IP地址或者IP地址前缀所指示的路由分配的标签。The BGP label route generally includes a prefix, a next hop, and a label. In the BGP label route advertised by the network device 500, the prefix is the IP address or IP address prefix of the egress device of the transmission path, and the next hop is the IP address of the network device 500, and the label is for the egress device. The label assigned by the IP address or IP address prefix.
通过上述技术方案可知,在本发明实施例中,所述接收单元501在接收到所述建立BGP LSP隧道的指示时,所述发送单元503不再是向所述网络设备500的所有邻居设备发布BGP标签路由,建立出有可能使用不到的BGP LSP隧道,而是从所述建立BGP LSP隧道的指示中获取从所述入口设备直接至所述出口设备,或者从所述入口设备经过所述中间设备至所述出口设备的传输路径,向在所述传输路径上,与所述网络设备500直接相邻的上游设备发送扩展的第一BGP协议报文,该报文中包括所述网络设备500发布的BGP标签路由,从而创建出了所述上游设备至所述网络设备500的BGP LSP隧道,可见本发明实施例实际上是根据所述传输路径,而建立指定方向的BGP LSP隧道,从而实现了按需建立BGP LSP隧道,以实现在按需建立的BGP LSP隧道上传输业务数据,解决了BGP LSP隧道有可能被浪费的问题,从而节约了系统资源。其中所述传输路径可以为传输所述业务数据而确定出的传输路径,从而使得建立出的所述BGP LSP隧道用于传输所述业务数据。According to the foregoing technical solution, in the embodiment of the present invention, when the receiving unit 501 receives the indication of establishing a BGP LSP tunnel, the sending unit 503 is no longer issued to all neighboring devices of the network device 500. BGP label routing, establishing a BGP LSP tunnel that may not be used, but obtaining the direct connection from the ingress device to the egress device from the indication of establishing the BGP LSP tunnel, or passing the a transmission path of the intermediate device to the egress device, where the first BGP protocol packet is sent to the upstream device that is directly adjacent to the network device 500, where the packet includes the network device The BGP label route is advertised by the BGP label, so that the BGP LSP tunnel of the upstream device to the network device 500 is created, and the embodiment of the present invention actually establishes a BGP LSP tunnel in a specified direction according to the transmission path, thereby The BGP LSP tunnel is set up on demand to transmit service data on the BGP LSP tunnel established on demand. This solves the problem that the BGP LSP tunnel may be wasted. , Saving system resources. The transmission path may be a transmission path determined by transmitting the service data, so that the established BGP LSP tunnel is used to transmit the service data.
可选的,所述处理单元502在获取所述传输路径时,还可以进一步先确定是否存在所述传输路径,如果是,则可以继续获取所述传输路径,如果否,则说明所述处理单元502不能获取到所述传输路径,例如所述网络设备500可能不支持扩展的BGP协议,因此所述发送单元503可以仍然按照现有的方式广播发布BGP标签路由。具体实现时,所述处理单元502还可以用于,在从所述建立BGP LSP隧道的指示中获取传输路径之前,确定出存在所述传输路径;所述发送单元503还用于,所述处理单元502确定出不存在所述传输路径,所述发送单元503向所述网络设备500的各个邻居设备发布BGP标签路由。 Optionally, the processing unit 502 may further determine whether the transmission path exists when acquiring the transmission path, and if yes, may continue to acquire the transmission path, if not, the processing unit is The transmission path may not be obtained by the 502. For example, the network device 500 may not support the extended BGP protocol. Therefore, the sending unit 503 may still broadcast and publish the BGP label route according to the existing manner. In a specific implementation, the processing unit 502 is further configured to: before the obtaining the transmission path from the indication of establishing the BGP LSP tunnel, determining that the transmission path exists; the sending unit 503 is further configured to: The unit 502 determines that the transmission path does not exist, and the sending unit 503 issues a BGP label route to each neighboring device of the network device 500.
在本发明实施例中,所述网络设备向所述上游设备发布BGP标签路由时,需要对BGP协议进行扩展从而携带所述传输路径,在具体实现时,可以通过对BGP协议的代码进行修改,在所述第一BGP协议报文中新增一个BGP属性,即第一扩展属性,所述第一扩展属性指示出所述传输路径。其中所述第一扩展属性,请参见上述方法实施例中的相关内容,这里不再赘述。In the embodiment of the present invention, when the network device issues a BGP label route to the upstream device, the BGP protocol needs to be extended to carry the transmission path. In specific implementation, the code of the BGP protocol may be modified. Adding a BGP attribute, that is, a first extended attribute, to the first BGP protocol packet, where the first extended attribute indicates the transmission path. For the first extended attribute, refer to related content in the foregoing method embodiment, and details are not described herein again.
在本发明实施例中,所述网络设备500可以为所述传输路径的中间设备或者出口设备。下面分别进行详细说明。In the embodiment of the present invention, the network device 500 may be an intermediate device or an egress device of the transmission path. The details are described below separately.
一、所述网络设备500为所述传输路径的出口设备。1. The network device 500 is an egress device of the transmission path.
所述接收单元501接收的所述建立BGP LSP隧道的指示,具体可以由控制设备发送,其中所述建立BGP LSP隧道中包括有所述传输路径。例如,以图3为例,当有业务数据需要从边界路由器A传输至边界路由器J时,所述控制设备可以根据所述MPLS网络的拓扑确定出一条端到端路径,比如所述传输路径依次包括:边界路由器A、边界路由器B、边界路由器D、边界路由器F、边界路由器H和边界路由器J。所述控制设备向所述边界路由器J发送包括所述传输路径的建立BGP LSP隧道的指示。需要说明的是,本发明实施例在所述传输路径上建立BGP LSP隧道主要是在控制平面,而在建好的BGP LSP隧道上传输数据则是在转发平面。The indication of the establishment of the BGP LSP tunnel received by the receiving unit 501 may be specifically sent by the control device, where the establishing the BGP LSP tunnel includes the transmission path. For example, in FIG. 3, when there is service data to be transmitted from the border router A to the border router J, the control device may determine an end-to-end path according to the topology of the MPLS network, for example, the transmission path is sequentially Including: border router A, border router B, border router D, border router F, border router H, and border router J. The control device sends an indication to the border router J to establish a BGP LSP tunnel including the transmission path. It should be noted that, in the embodiment of the present invention, the BGP LSP tunnel is established on the transmission path mainly in the control plane, and the data transmitted on the established BGP LSP tunnel is in the forwarding plane.
所述接收单元501在接收到所述建立BGP LSP隧道的指示,所述发送单元503会向所述传输路径上,与所述出口设备直接相邻的上游设备发布BGP标签路由,从而建立出所述上游设备至所述出口设备的BGP LSP隧道。其中所述出口设备发布的BGP标签路由中,前缀为所述出口设备的IP地址或者IP地址前缀,下一跳均为所述出口设备的IP地址,标签对所述出口设备的IP地址或者IP地址前缀所指示的路由分配的标签。The receiving unit 501 receives the indication of establishing a BGP LSP tunnel, and the sending unit 503 issues a BGP label route to the upstream device directly adjacent to the egress device on the transmission path, thereby establishing an office. A BGP LSP tunnel from the upstream device to the egress device. The BGP label route advertised by the egress device is prefixed with the IP address or IP address prefix of the egress device, the next hop is the IP address of the egress device, and the label is the IP address or IP address of the egress device. The label of the route assignment indicated by the address prefix.
可选的,所述处理单元502还可以用于获取所述业务数据的VPN标签路由信息,所述发送单元503还可以用于将所述VPN标签路由信息通过BGP协议等方式发送至所述入口设备。其中,所述VPN标签路由信息包括:VPN标签和VPN用户信息,所述VPN用户信息用于指示所述入口设备将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联,例如,如果所述VPN是L2VPN,则所述VPN用户信息可以包括AC ID;如果所述VPN 是L3VPN,则所述VPN用户信息可以包括RT。在本发明实施例中,所述端到端BGP LSP隧道与所述VPN标签相关联,指的是所述端到端BGP LSP隧道与所述VPN标签具有对应关系,从而使得所述入口设备能够利用所述端到端BGP LSP隧道,传输所述VPN标签对应的所述业务数据。所述相关联的一种实现方式是,在所述入口设备上保存所述端到端BGP LSP隧道与所述VPN标签的对应关系。Optionally, the processing unit 502 is further configured to obtain the VPN label routing information of the service data, where the sending unit 503 is further configured to send the VPN label routing information to the portal by using a BGP protocol or the like. device. The VPN label routing information includes: a VPN label and VPN user information, where the VPN user information is used to indicate that the ingress device associates an end-to-end BGP LSP tunnel established on the transmission path with the VPN label. For example, if the VPN is an L2VPN, the VPN user information may include an AC ID; if the VPN If it is an L3VPN, the VPN user information may include an RT. In the embodiment of the present invention, the end-to-end BGP LSP tunnel is associated with the VPN label, and the end-to-end BGP LSP tunnel has a corresponding relationship with the VPN label, so that the Transmitting the service data corresponding to the VPN label by using the end-to-end BGP LSP tunnel. The associated implementation manner is that the corresponding relationship between the end-to-end BGP LSP tunnel and the VPN label is saved on the ingress device.
其中,所述VPN标签用于标识用户业务数据,可以包括VNI、VRF标签等等。由于MPLS网络目前是以广播的方式建立BGP LSP隧道,因此在传输数据时,为了使得数据到达目的设备,每一个中间设备都需要使用复杂的策略定义出主备路径,不仅容易出错而且运维也比较困难。而本发明实施例中不仅在所述传输路径上建立了一条端到端BGP LSP隧道,而且将该端到端BGP LSP隧道与业务数据的VPN标签相关联,从而使得所述业务数据通过该端到端BGP LSP隧道进行传输,无需在每一个中间设备上定义主备路径,不仅实现简单而且运维也较为容易。The VPN tag is used to identify user service data, and may include a VNI, a VRF tag, and the like. Since the MPLS network is currently configured to establish a BGP LSP tunnel in broadcast mode, in order to make data reach the destination device when transmitting data, each intermediate device needs to use a complicated policy to define the active and standby paths, which is not only error-prone but also operation and maintenance. tougher. In the embodiment of the present invention, an end-to-end BGP LSP tunnel is established not only on the transmission path, but also the end-to-end BGP LSP tunnel is associated with the VPN label of the service data, so that the service data passes through the end. The BGP LSP tunnel is transmitted to the BGP LSP. It is not necessary to define the active/standby path on each intermediate device.
需要说明的是,由于在本发明实施例中,所述发送单元503在向所述传输路径上,与所述出口设备直接相邻的上游设备发布BGP标签路由时,为了要将所述传输路径也与所述BGP标签路由一同发送,需要对BGP协议进行扩展,下面从所述中间设备的角度进行详细描述。It should be noted that, in the embodiment of the present invention, when the sending unit 503 issues a BGP label route to an upstream device directly adjacent to the egress device on the transmission path, in order to use the transmission path. It is also sent with the BGP label route. The BGP protocol needs to be extended. The following describes the detailed description from the perspective of the intermediate device.
二、所述网络设备500为所述传输路径的中间设备。2. The network device 500 is an intermediate device of the transmission path.
所述接收单元501具体用于接收所述传输路径上,与所述中间设备直接相邻的下游设备发送的扩展的第二BGP协议报文,所述扩展的第二BGP协议报文包括所述下游设备发布的BGP标签路由和第二扩展属性,所述第二扩展属性指示出所述传输路径。The receiving unit 501 is configured to receive the extended second BGP protocol packet that is sent by the downstream device that is directly adjacent to the intermediate device, where the extended second BGP protocol packet includes the The BGP label route and the second extended attribute issued by the downstream device, where the second extended attribute indicates the transmission path.
也就是说,本发明实施例通过所述扩展的第二BGP协议报文,所述下游设备可以在发布BGP标签路由的同时,通过所述第二扩展属性指示出所述传输路径。因此所述接收单元501在接收所述下游设备发送的所述扩展的第二BGP协议报文后,所述处理单元502会进一步确定该报文中是否携带有BGP E2E LSP Node List属性,如果有该属性,找到本地地址为所述中间设备的地址的节点属性,根据该节点属性的目标邻居地址,获得所述中间设备的上游设备的地址,通过所述发送单元503向所述上游设备发布 BGP标签路由,从而建立出所述上游设备至所述中间设备的BGP LSP隧道。其中,对于所述第二扩展属性的实现方式,请参见本发明实施例中所述第一扩展属性的相关内容,这里不再赘述。That is, the embodiment of the present invention, by using the extended second BGP protocol packet, the downstream device may indicate the transmission path by using the second extended attribute while issuing the BGP label route. After the receiving unit 501 receives the extended second BGP protocol packet sent by the downstream device, the processing unit 502 further determines whether the packet carries the BGP E2E LSP Node List attribute, if any The attribute, the node attribute of the address of the intermediate device is found, and the address of the upstream device of the intermediate device is obtained according to the target neighbor address of the node attribute, and is sent to the upstream device by the sending unit 503. The BGP label is routed to establish a BGP LSP tunnel from the upstream device to the intermediate device. For the implementation of the second extended attribute, refer to the related content of the first extended attribute in the embodiment of the present invention, and details are not described herein again.
所述中间设备发布的BGP标签路由中,前缀为所述传输路径中所述出口设备的IP地址或者IP地址前缀,下一跳为所述中间设备的IP地址,标签为对所述出口设备的IP地址或者IP地址前缀所指示的路由分配的标签。The BGP label route advertised by the intermediate device is prefixed with an IP address or an IP address prefix of the egress device in the transmission path, and a next hop is an IP address of the intermediate device, and the label is for the egress device. The label assigned by the IP address or IP address prefix.
在本发明实施例中,所述传输路径中的每一个中间设备,都可以建立出所述传输路径上,与该中间设备直接相邻的上游设备至该中间设备的BGP LSP隧道,再加上所述出口设备建立的所述传输路径上,与所述出口设备直接相邻的上游设备至所述出口设备的BGP LSP隧道,最终在所述传输路径上建立出一条端到端BGP LSP隧道。In the embodiment of the present invention, each intermediate device in the transmission path may establish a BGP LSP tunnel of the upstream device directly adjacent to the intermediate device to the intermediate device in the transmission path, plus On the transmission path established by the egress device, the BGP LSP tunnel of the upstream device directly adjacent to the egress device to the egress device finally establishes an end-to-end BGP LSP tunnel on the transmission path.
需要说明的是,为了实现在同一个域内传输数据,除了建立BGP LSP隧道之外,一般还需要建立TE隧道或者LDP LSP隧道。而目前在建立LDP隧道和TE隧道时,都是在建立BGP LSP隧道之前,就已经在域内建立好LDP LSP隧道和TE隧道。而在本发明实施例中,还提供了一种建立TE隧道的方式,以实现在建立BGP LSP隧道的同时,建立TE隧道。It should be noted that in order to transmit data in the same domain, in addition to establishing a BGP LSP tunnel, a TE tunnel or an LDP LSP tunnel is generally required. The LDP LSP and the TE tunnel are established in the domain before the BGP LSP is established. In the embodiment of the present invention, a manner of establishing a TE tunnel is also provided, so as to establish a TE tunnel while establishing a BGP LSP tunnel.
具体地,所述处理单元502还用于,所述接收单元501接收所述建立BGP LSP隧道的指示后,所述处理单元502建立所述中间设备至所述下游设备的TE隧道。例如图3所示,所述接收单元501在接收到所述扩展的第二BGP协议报文后,所述处理单元502通过所述发送单元503向所述下游设备逐跳发送RSVP PATH MSG,所述下游设备接收到所述RSVP PATH MSG后,向所述中间设备逐跳发送RSVP RESV MSG,所述接收单元501接收到所述RSVP RESV MSG,表示所述TE隧道建立成功。可见本发明实施例中,当所述接收单元501接收到所述扩展的第二BGP协议报文后,所述处理单元502才开始建立所述TE隧道。并且,所述处理单元502还可以在确定出建立所述TE隧道后,所述发送单元503向所述上游设备发布BGP标签路由。Specifically, the processing unit 502 is further configured to: after the receiving unit 501 receives the indication of establishing a BGP LSP tunnel, the processing unit 502 establishes a TE tunnel of the intermediate device to the downstream device. For example, as shown in FIG. 3, after receiving the extended second BGP protocol packet, the processing unit 502 sends the RSVP PATH MSG to the downstream device by using the sending unit 503 by using the sending unit 503. After receiving the RSVP PATH MSG, the downstream device sends the RSVP RESV MSG to the intermediate device hop by hop, and the receiving unit 501 receives the RSVP RESV MSG, indicating that the TE tunnel is successfully established. It can be seen that, in the embodiment of the present invention, after the receiving unit 501 receives the extended second BGP protocol packet, the processing unit 502 starts to establish the TE tunnel. Moreover, the processing unit 502 may further, after determining that the TE tunnel is established, the sending unit 503 issues a BGP label route to the upstream device.
其中,所述扩展的第二BGP协议报文还可以指示出建立的所述TE隧道的建立属性。具体地,所述扩展的第二BGP协议报文中还包括第三扩展 属性,所述第三扩展属性指示出TE隧道的建立属性;所述处理单元502还用于,从所述扩展的第二BGP协议报文中获取所述TE隧道的建立属性;当建立所述中间设备至所述下游设备的TE隧道时,所述处理单元502具体用于基于所述TE隧道的建立属性,建立所述中间设备至所述下游设备的TE隧道。所述TE隧道的建立属性可以包括:TE隧道的带宽约束条件和/或可靠性参数。其中,所述第三扩展属性,具体可以参加上述方法实施例的相关之处,这里不再赘述。The extended second BGP protocol packet may also indicate the established establishment attribute of the TE tunnel. Specifically, the extended second BGP protocol packet further includes a third extension. An attribute, where the third extended attribute indicates an establishment attribute of the TE tunnel; the processing unit 502 is further configured to: obtain the establishment attribute of the TE tunnel from the extended second BGP protocol packet; When the intermediate device is connected to the TE tunnel of the downstream device, the processing unit 502 is specifically configured to establish a TE tunnel of the intermediate device to the downstream device based on the establishment attribute of the TE tunnel. The establishment attribute of the TE tunnel may include: a bandwidth constraint condition and/or a reliability parameter of the TE tunnel. The third extended attribute may be specifically related to the foregoing method embodiments, and details are not described herein again.
其中,所述处理单元502还可以用于,在建立所述中间设备至所述下游设备的TE隧道之前,确定出所述中间设备与所述下游设备具有同一域编号。即所述中间设备和所述下游设备具有同一域编号时,才建立TE隧道,而两者不具有同一域编号时,则无需建立TE隧道。其中确定是否具有同一域编号,可以通过确定BGP标签路由是内部边界网关协议(即IBGP)路由类型还是外部边界网关协议(即EBGP)路由类型实现,具体请参见上述方法实施例,这里不再赘述。The processing unit 502 is further configured to: before establishing the TE tunnel of the intermediate device to the downstream device, determine that the intermediate device has the same domain number as the downstream device. That is, when the intermediate device and the downstream device have the same domain number, the TE tunnel is established. If the two devices do not have the same domain number, the TE tunnel does not need to be established. If the BGP label routing is determined by the internal border gateway protocol (IBGP) route type or the external border gateway protocol (EBGP) route type, refer to the foregoing method embodiment, and details are not described herein. .
上面对所述传输路径中的出口设备和中间设备进行了描述,下面介绍本发明实施例中的所述传输路径中的入口设备。The egress device and the intermediate device in the transmission path are described above. The following describes the ingress device in the transmission path in the embodiment of the present invention.
请参阅图6,本发明实施例还提供了网络设备600的一种装置实施例。Referring to FIG. 6, an embodiment of the present invention further provides an apparatus embodiment of the network device 600.
本实施例的所述网络设备600包括接收单元601。The network device 600 of this embodiment includes a receiving unit 601.
所述接收单元601用于接收在传输路径上,与所述网络设备600直接相邻的下游设备发送的扩展的BGP协议报文。The receiving unit 601 is configured to receive an extended BGP protocol packet sent by a downstream device directly adjacent to the network device 600 on the transmission path.
其中,所述网络设备600为所述传输路径的入口设备。例如图3中,本实施例中的所述网络设备600为边界路由器A。The network device 600 is an entry device of the transmission path. For example, in FIG. 3, the network device 600 in this embodiment is a border router A.
本发明实施例中,所述扩展的BGP协议报文包括所述下游设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径。其中,所述第一扩展属性的实现方式具体可以参见在上述方法实施例中对所述第一扩展属性的介绍,这里不再赘述。In the embodiment of the present invention, the extended BGP protocol packet includes a BGP label route and a first extended attribute advertised by the downstream device, where the first extended attribute indicates the transmission path, and the transmission path is from an entry. The device goes directly to the egress device or a transmission path from the ingress device through the intermediate device to the egress device. For the implementation of the first extended attribute, refer to the description of the first extended attribute in the foregoing method embodiment, and details are not described herein again.
通过上述技术方案可知,本实施例中,所述传输路径上的入口设备, 即所述网络设备600在接收到所述下游设备发送的扩展的BGP协议报文后,即实现在所述传输路径上建立了一条端到端的BGP LSP隧道。According to the above technical solution, in the embodiment, the access device on the transmission path, That is, after receiving the extended BGP protocol packet sent by the downstream device, the network device 600 establishes an end-to-end BGP LSP tunnel on the transmission path.
可选的,本实施例还可以将所述端到端BGP LSP隧道与业务数据的VPN标签相关联,从而使得所述业务数据通过该端到端BGP LSP隧道进行传输,无需在每一个中间设备上定义主备路径,不仅实现简单而且运维也较为容易。Optionally, in this embodiment, the end-to-end BGP LSP tunnel is associated with the VPN label of the service data, so that the service data is transmitted through the end-to-end BGP LSP tunnel, and does not need to be in each intermediate device. The definition of the active and standby paths is not only simple but also easy to operate and maintain.
具体实现时,本实施例还可以包括处理单元。所述接收单元601还用于,接收所述出口设备发送的所述业务数据的VPN标签路由信息,所述VPN标签路由信息包括VPN用户信息和VPN标签。其中所述VPN用户信息用于指示所述入口设备将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联,具体可以包括RT和RD,所述VPN标签用于标识用户业务数据,可以包括VNI、VRF标签等等。所述处理单元用于基于所述VPN用户信息,将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联。在本发明实施例中,所述端到端BGP LSP隧道与所述VPN标签相关联,指的是所述端到端BGP LSP隧道与所述VPN标签具有对应关系,从而使得所述入口设备能够利用所述端到端BGP LSP隧道,传输所述VPN标签对应的所述业务数据。所述相关联的具体实现方式请参见上述方法实施例的相关描述,这里不再赘述。In a specific implementation, the embodiment may further include a processing unit. The receiving unit 601 is further configured to receive VPN label routing information of the service data sent by the egress device, where the VPN label routing information includes VPN user information and a VPN label. The VPN user information is used to indicate that the ingress device associates the end-to-end BGP LSP tunnel established on the transmission path with the VPN label, and specifically includes an RT and an RD, where the VPN label is used to identify User service data, which may include VNI, VRF tags, and the like. The processing unit is configured to associate an end-to-end BGP LSP tunnel established on the transmission path with the VPN label based on the VPN user information. In the embodiment of the present invention, the end-to-end BGP LSP tunnel is associated with the VPN label, and the end-to-end BGP LSP tunnel has a corresponding relationship with the VPN label, so that the Transmitting the service data corresponding to the VPN label by using the end-to-end BGP LSP tunnel. For the specific implementation of the related implementation, refer to the related description of the foregoing method embodiments, and details are not described herein again.
其中,所述处理单元还可以用于,获取所述业务数据,将所述业务数据和所述VPN标签,通过在所述传输路径上建立的端到端BGP LSP隧道进行传输。The processing unit may be further configured to: acquire the service data, and transmit the service data and the VPN label by using an end-to-end BGP LSP tunnel established on the transmission path.
需要说明的是,为了实现在同一个域内传输数据,除了建立BGP LSP隧道之外,一般还需要建立TE隧道或者LDP LSP隧道。而在本发明实施例中,还提供了一种建立TE隧道的方式,以实现在建立BGP LSP隧道的同时,建立TE隧道。It should be noted that in order to transmit data in the same domain, in addition to establishing a BGP LSP tunnel, a TE tunnel or an LDP LSP tunnel is generally required. In the embodiment of the present invention, a manner of establishing a TE tunnel is also provided, so as to establish a TE tunnel while establishing a BGP LSP tunnel.
可选的,本实施例还可以包括处理单元,所述处理单元可以用于,所述接收单元601接收所述扩展的BGP协议报文后,所述处理单元建立所述网络设备600至所述下游设备的TE隧道。Optionally, the embodiment may further include a processing unit, where the processing unit may be configured to: after the receiving unit 601 receives the extended BGP protocol packet, the processing unit establishes the network device 600 to the TE tunnel of the downstream device.
进一步可选的,所述扩展的BGP协议报文中还包括第二扩展属性,所述第二扩展属性指示出TE隧道的建立属性;所述处理单元还用于,从所 述扩展的BGP协议报文中获取所述TE隧道的建立属性;当建立所述网络设备600至所述下游设备的TE隧道时,所述处理单元具体用于基于所述TE隧道的建立属性,建立所述网络设备600至所述下游设备的TE隧道。其中,所述TE隧道的建立属性包括:带宽约束条件和/或可靠性参数。Further, the extended BGP protocol packet further includes a second extended attribute, where the second extended attribute indicates an establishment attribute of the TE tunnel; and the processing unit is further configured to: Obtaining the establishment attribute of the TE tunnel in the extended BGP protocol packet; when the TE tunnel of the network device 600 to the downstream device is established, the processing unit is specifically configured to establish an attribute based on the TE tunnel. Establishing a TE tunnel of the network device 600 to the downstream device. The establishment attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter.
进一步可选的,所述处理单元还用于,在建立所述网络设备600至所述下游设备的TE隧道之前,确定出所述网络设备600与所述下游设备具有同一域编号。Further, the processing unit is further configured to: before establishing the TE tunnel of the network device 600 to the downstream device, determine that the network device 600 has the same domain number as the downstream device.
对于所述TE隧道的具体建立方式和所述第二扩展属性的实现方式,具体请参见上述方法实施例中的所述TE隧道和所述第三扩展属性的相关内容,这里不再赘述。For the specific manner of establishing the TE tunnel and the implementation manner of the second extended attribute, refer to the related content of the TE tunnel and the third extended attribute in the foregoing method embodiment, and details are not described herein again.
上面从模块化功能实体的角度对本发明实施例中的网络设备的装置实施例进行描述。下面将从硬件处理的角度对本发明实施例中的网络设备的装置实施例进行描述。The device embodiment of the network device in the embodiment of the present invention is described above from the perspective of a modular functional entity. The device embodiment of the network device in the embodiment of the present invention will be described below from the perspective of hardware processing.
请参考图7,本发明的一个实施例提供一种网络设备700,该网络设备700可以是微处理计算机。比如:该网络设备700可以是通用计算机、客户定制机、手机终端或平板机等便携设备中的一种。该网络设备700包括:处理器704、存储器706、通信接口702和总线708。处理器704、存储器706和通信接口702通过总线708连接并完成相互间的通信。Referring to FIG. 7, an embodiment of the present invention provides a network device 700, which may be a microprocessor computer. For example, the network device 700 can be one of a portable device such as a general purpose computer, a custom machine, a mobile phone terminal, or a tablet. The network device 700 includes a processor 704, a memory 706, a communication interface 702, and a bus 708. The processor 704, the memory 706, and the communication interface 702 are connected by bus 708 and complete communication with each other.
所述总线708可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线或外部设备互连(Peripheral Component,简称为PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,简称为EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线中的一种或多种。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 708 may be an Industry Standard Architecture (ISA) bus or a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA). Bus, etc. The bus can be divided into one or more of an address bus, a data bus, and a control bus. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus.
存储器706用于存储可执行程序代码,该程序代码包括计算机操作指令。当网络设备700执行该程序代码时,所述网络设备700可以完成图2所示的实施例的步骤201~204,也可以实现图5所示的实施例中所述网络设备500的所有功能。存储器706可以包含高速RAM(Ramdom Access Memory)存储器。可选地,存储器706还可以还包括非易失性存储器(non-volatile memory)。例如存储器706可以包括磁盘存储器。 Memory 706 is for storing executable program code, the program code including computer operating instructions. When the network device 700 executes the program code, the network device 700 can complete steps 201-204 of the embodiment shown in FIG. 2, and can also implement all the functions of the network device 500 in the embodiment shown in FIG. The memory 706 can include a high speed RAM (Ramdom Access Memory) memory. Optionally, the memory 706 may further include a non-volatile memory. For example, memory 706 can include disk storage.
处理器704可以是一个中央处理器(Central Processing Unit,简称为CPU),或者是处理器704可以特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者处理器704可以是被配置成实施本发明实施例的一个或多个集成电路。The processor 704 may be a central processing unit (CPU), or the processor 704 may be an application specific integrated circuit (ASIC), or the processor 704 may be configured to implement the present invention. One or more integrated circuits of an embodiment of the invention.
通信接口702,用于执行图2所示的实施例和图5所示的实施例中的接收建立BGP LSP隧道的指示的操作。The communication interface 702 is configured to perform the operations of receiving the indication of establishing a BGP LSP tunnel in the embodiment shown in FIG. 2 and the embodiment shown in FIG. 5.
处理器704,用于读取存储器706中存储的指令,从而执行图2所示的实施例和图5所示的实施例中的从所述建立BGP LSP隧道的指示中获取传输路径、确定所述传输路径上与所述网络设备700直接相邻的上游设备的操作。The processor 704 is configured to read the instructions stored in the memory 706, so as to perform the implementation of the embodiment shown in FIG. 2 and the indication of establishing the BGP LSP tunnel in the embodiment shown in FIG. The operation of the upstream device on the transmission path directly adjacent to the network device 700.
所述通信接口702,还用于执行图2所示的实施例和图5所示的实施例中的,向所述上游设备发送扩展的第一BGP协议报文的操作,所述扩展的第一BGP协议报文中包括所述网络设备700发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径。The communication interface 702 is further configured to perform the operation of sending the extended first BGP protocol packet to the upstream device in the embodiment shown in FIG. 2 and the embodiment shown in FIG. 5, where the extended A BGP protocol packet includes a BGP label route and a first extended attribute advertised by the network device 700, where the first extended attribute indicates the transmission path.
其中,所述网络设备700为所述中间设备或者所述出口设备。所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径。The network device 700 is the intermediate device or the egress device. The transmission path is a transmission path from the ingress device directly to the egress device or from the ingress device through the intermediate device to the egress device.
值得说明的是,本实施例提供的所述网络设备700的各功能单元,可以是基于图2所示的方法实施例和图5所示的装置实施例所具备的功能的具体实现,术语的定义和说明与图2所示的方法实施例和图5所示的装置实施例保持一致,此处不再赘述。It should be noted that each functional unit of the network device 700 provided by this embodiment may be a specific implementation based on the method embodiment shown in FIG. 2 and the device embodiment shown in FIG. The definition and description are consistent with the method embodiment shown in FIG. 2 and the device embodiment shown in FIG. 5, and details are not described herein again.
上面对所述传输路径中的出口设备和中间设备进行了描述,下面介绍本发明实施例中的所述传输路径中的入口设备。The egress device and the intermediate device in the transmission path are described above. The following describes the ingress device in the transmission path in the embodiment of the present invention.
请参考图8,本发明的一个实施例提供一种网络设备800,该网络设备800可以是微处理计算机。比如:该网络设备800可以是通用计算机、客户定制机、手机终端或平板机等便携设备中的一种。该网络设备800包括:处理器804、存储器806、通信接口802和总线808。处理器804、存储器806和通信接口802通过总线808连接并完成相互间的通信。Referring to FIG. 8, an embodiment of the present invention provides a network device 800, which may be a microprocessor computer. For example, the network device 800 can be one of a portable device such as a general-purpose computer, a custom machine, a mobile phone terminal, or a tablet. The network device 800 includes a processor 804, a memory 806, a communication interface 802, and a bus 808. Processor 804, memory 806, and communication interface 802 are connected by bus 808 and complete communication with one another.
所述总线808可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线或外部设备互连(Peripheral Component, 简称为PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,简称为EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线中的一种或多种。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 808 may be an Industry Standard Architecture (ISA) bus or a Peripheral Component (Peripheral Component). Referred to as the PCI) bus or the Extended Industry Standard Architecture (EISA) bus. The bus can be divided into one or more of an address bus, a data bus, and a control bus. For ease of representation, only one thick line is shown in Figure 8, but it does not mean that there is only one bus or one type of bus.
存储器806用于存储可执行程序代码,该程序代码包括计算机操作指令。当网络设备800执行该程序代码时,所述网络设备800可以完成图4所示的实施例的步骤401,也可以实现图6所示的实施例中所述网络设备600的所有功能。存储器806可以包含高速RAM(Ramdom Access Memory)存储器。可选地,存储器806还可以还包括非易失性存储器(non-volatile memory)。例如存储器806可以包括磁盘存储器。 Memory 806 is for storing executable program code, the program code including computer operating instructions. When the network device 800 executes the program code, the network device 800 can complete step 401 of the embodiment shown in FIG. 4, and can also implement all the functions of the network device 600 in the embodiment shown in FIG. 6. The memory 806 can include a high speed RAM (Ramdom Access Memory) memory. Optionally, the memory 806 may further include a non-volatile memory. For example, memory 806 can include disk storage.
处理器804可以是一个中央处理器(Central Processing Unit,简称为CPU),或者是处理器804可以特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者处理器804可以是被配置成实施本发明实施例的一个或多个集成电路。The processor 804 may be a central processing unit (CPU), or the processor 804 may be an application specific integrated circuit (ASIC), or the processor 804 may be configured to implement the present invention. One or more integrated circuits of an embodiment of the invention.
通信接口802,用于执行图4所示的实施例和图6所示的实施例中的接收在传输路径上,与所述网络设备直接相邻的下游设备发送的扩展的BGP协议报文的操作。The communication interface 802 is configured to execute the extended BGP protocol packet sent by the downstream device directly adjacent to the network device on the transmission path in the embodiment shown in FIG. 4 and the embodiment shown in FIG. operating.
其中,所述扩展的BGP协议报文包括所述下游设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径;所述网络设备800为所述入口设备。The extended BGP protocol packet includes a BGP label route and a first extended attribute advertised by the downstream device, where the first extended attribute indicates the transmission path, and the transmission path is directly from the ingress device to the egress. a device, or a transmission path from the ingress device through the intermediate device to the egress device; the network device 800 is the ingress device.
值得说明的是,本实施例提供的所述网络设备800的各功能单元,可以是基于图4所示的方法实施例和图6所示的装置实施例所具备的功能的具体实现,术语的定义和说明与图4所示的方法实施例和图6所示的装置实施例保持一致,此处不再赘述。It should be noted that each functional unit of the network device 800 provided by this embodiment may be a specific implementation based on the method embodiment shown in FIG. 4 and the device embodiment shown in FIG. The definition and description are consistent with the method embodiment shown in FIG. 4 and the device embodiment shown in FIG. 6, and details are not described herein again.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.

Claims (28)

  1. 一种建立BGP LSP隧道的方法,其特征在于,包括:A method for establishing a BGP LSP tunnel, which is characterized by:
    网络设备接收建立边界网关协议BGP标签交换路径LSP隧道的指示;The network device receives an indication that the border gateway protocol BGP label switching path LSP tunnel is established;
    所述网络设备从所述建立BGP LSP隧道的指示中获取传输路径,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径;Obtaining, by the network device, the transmission path from the indication of establishing the BGP LSP tunnel, where the transmission path is directly from the ingress device to the egress device, or the transmission path from the ingress device to the egress device through the intermediate device;
    所述网络设备确定在所述传输路径上,与所述网络设备直接相邻的上游设备;Determining, by the network device, an upstream device directly adjacent to the network device on the transmission path;
    所述网络设备向所述上游设备发送扩展的第一BGP协议报文,所述扩展的第一BGP协议报文中包括所述网络设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径;The network device sends an extended first BGP protocol packet to the upstream device, where the extended first BGP protocol packet includes a BGP label route and a first extended attribute advertised by the network device, where the first An extended attribute indicates the transmission path;
    其中,所述网络设备为所述中间设备或者所述出口设备。The network device is the intermediate device or the egress device.
  2. 根据权利要求1所述的方法,其特征在于,所述网络设备为所述中间设备;The method according to claim 1, wherein said network device is said intermediate device;
    所述网络设备接收所述建立BGP LSP隧道指示,包括:The network device receives the indication of establishing a BGP LSP tunnel, including:
    所述中间设备接收在所述传输路径上,与所述中间设备直接相邻的下游设备发送的扩展的第二BGP协议报文,所述扩展的第二BGP协议报文包括所述下游设备发布的BGP标签路由和第二扩展属性,所述第二扩展属性指示出所述传输路径。The intermediate device receives the extended second BGP protocol packet sent by the downstream device directly adjacent to the intermediate device on the transmission path, where the extended second BGP protocol packet includes the downstream device BGP label routing and second extended attribute, the second extended attribute indicating the transmission path.
  3. 根据权利要求1或2所述的方法,其特征在于,所述网络设备为所述中间设备;所述方法还包括:The method according to claim 1 or 2, wherein the network device is the intermediate device; the method further comprises:
    所述中间设备接收所述建立BGP LSP隧道的指示后,建立所述中间设备至所述下游设备的流量工程TE隧道。After receiving the indication of establishing the BGP LSP tunnel, the intermediate device establishes a traffic engineering TE tunnel from the intermediate device to the downstream device.
  4. 根据权利要求3所述的方法,其特征在于,所述扩展的第二BGP协议报文中还包括第三扩展属性,所述第三扩展属性指示出TE隧道的建立属性;The method according to claim 3, wherein the extended second BGP protocol message further includes a third extended attribute, where the third extended attribute indicates an establishment attribute of the TE tunnel;
    所述方法还包括:The method further includes:
    所述中间设备从所述扩展的第二BGP协议报文中获取所述TE隧道的 建立属性;Obtaining, by the intermediate device, the TE tunnel from the extended second BGP protocol packet Establish properties;
    所述中间设备建立所述中间设备至所述下游设备的TE隧道,包括:The intermediate device establishes a TE tunnel of the intermediate device to the downstream device, including:
    所述中间设备基于所述TE隧道的建立属性,建立所述中间设备至所述下游设备的TE隧道。The intermediate device establishes a TE tunnel of the intermediate device to the downstream device based on an establishment attribute of the TE tunnel.
  5. 根据权利要求4所述的方法,其特征在于,所述TE隧道的建立属性包括:TE隧道的带宽约束条件和/或可靠性参数。The method according to claim 4, wherein the establishment attribute of the TE tunnel comprises: a bandwidth constraint condition and/or a reliability parameter of the TE tunnel.
  6. 根据权利要求3至5任一项所述的方法,其特征在于,在所述中间设备建立所述中间设备至所述下游设备的TE隧道之前,还包括:The method according to any one of claims 3 to 5, further comprising: before the intermediate device establishes the TE tunnel of the intermediate device to the downstream device,
    所述中间设备确定出所述中间设备与所述下游设备具有同一域编号。The intermediate device determines that the intermediate device has the same domain number as the downstream device.
  7. 根据权利要求1所述的方法,其特征在于,所述网络设备为所述出口设备,所述方法还包括:The method of claim 1, wherein the network device is the egress device, the method further comprising:
    所述出口设备获取业务数据的虚拟专用网VPN标签路由信息,并将所述VPN标签路由信息发送至所述入口设备,所述VPN标签路由信息包括VPN用户信息和VPN标签,所述VPN用户信息用于指示所述入口设备将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联。The egress device obtains virtual private network VPN label routing information of the service data, and sends the VPN label routing information to the ingress device, where the VPN label routing information includes VPN user information and a VPN label, and the VPN user information And an end-to-end BGP LSP tunnel for instructing the ingress device to establish on the transmission path to associate with the VPN label.
  8. 一种建立BGP LSP隧道的方法,其特征在于,包括:A method for establishing a BGP LSP tunnel, which is characterized by:
    网络设备接收在传输路径上,与所述网络设备直接相邻的下游设备发送的扩展的边界网关协议BGP协议报文,所述扩展的BGP协议报文包括所述下游设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径;The network device receives the extended border gateway protocol BGP protocol packet sent by the downstream device directly adjacent to the network device on the transmission path, where the extended BGP protocol packet includes the BGP label route advertised by the downstream device. a first extended attribute, the first extended attribute indicating the transmission path, where the transmission path is directly from an ingress device to an egress device, or a transmission path from the ingress device to the egress device through the intermediate device;
    其中,所述网络设备为所述入口设备。The network device is the ingress device.
  9. 根据权利要求8所述的方法,其特征在于,还包括:The method of claim 8 further comprising:
    所述网络设备接收所述扩展的BGP协议报文后,建立所述网络设备至所述下游设备的流量工程TE隧道。After receiving the extended BGP protocol packet, the network device establishes a traffic engineering TE tunnel of the network device to the downstream device.
  10. 根据权利要求9所述的方法,其特征在于,所述扩展的BGP协议报文中还包括第二扩展属性,所述第二扩展属性指示出TE隧道的建立属性;The method according to claim 9, wherein the extended BGP protocol message further includes a second extended attribute, where the second extended attribute indicates an establishment attribute of the TE tunnel;
    所述方法还包括: The method further includes:
    所述网络设备从所述扩展的BGP协议报文中获取所述TE隧道的建立属性;Obtaining, by the network device, the establishment attribute of the TE tunnel from the extended BGP protocol packet;
    所述网络设备建立所述网络设备至所述下游设备的TE隧道,包括:The establishing, by the network device, the TE tunnel of the network device to the downstream device includes:
    所述网络设备基于所述TE隧道的建立属性,建立所述网络设备至所述下游设备的TE隧道。The network device establishes a TE tunnel of the network device to the downstream device based on an establishment attribute of the TE tunnel.
  11. 根据权利要求10所述的方法,其特征在于,所述TE隧道的建立属性包括:带宽约束条件和/或可靠性参数。The method according to claim 10, wherein the establishment attributes of the TE tunnel comprise: a bandwidth constraint and/or a reliability parameter.
  12. 根据权利要求9至11任一项所述的方法,其特征在于,在所述网络设备建立所述网络设备至所述下游设备的TE隧道之前,还包括:The method according to any one of claims 9 to 11, further comprising: before the network device establishes the TE tunnel of the network device to the downstream device,
    所述网络设备确定出所述网络设备与所述下游设备具有同一域编号。The network device determines that the network device has the same domain number as the downstream device.
  13. 根据权利要求8至12任一项所述的方法,其特征在于,还包括:The method according to any one of claims 8 to 12, further comprising:
    所述网络设备接收所述出口设备发送的业务数据的虚拟专用网VPN标签路由信息,所述VPN标签路由信息包括VPN用户信息和VPN标签;The network device receives virtual private network VPN label routing information of the service data sent by the egress device, where the VPN label routing information includes VPN user information and a VPN label;
    所述网络设备基于所述VPN用户信息,将在所述传输路径上建立的端到端BGP标签交换路径LSP隧道与所述VPN标签相关联。The network device associates an end-to-end BGP label switched path LSP tunnel established on the transmission path with the VPN label based on the VPN user information.
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13 wherein the method further comprises:
    所述网络设备获取所述业务数据;The network device acquires the service data;
    所述网络设备将所述业务数据和所述VPN标签,通过在所述传输路径上建立的端到端BGP LSP隧道进行传输。The network device transmits the service data and the VPN label through an end-to-end BGP LSP tunnel established on the transmission path.
  15. 一种网络设备,其特征在于,包括:A network device, comprising:
    接收单元,用于接收建立边界网关协议BGP标签交换路径LSP隧道的指示;a receiving unit, configured to receive an indication of establishing a border gateway protocol BGP label switching path LSP tunnel;
    处理单元,用于从所述建立BGP LSP隧道的指示中获取传输路径,确定在所述传输路径上,与所述网络设备直接相邻的上游设备,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径;a processing unit, configured to obtain a transmission path from the indication for establishing a BGP LSP tunnel, and determine an upstream device directly adjacent to the network device on the transmission path, where the transmission path is directly from an ingress device to an egress a device, or a transmission path from the ingress device through the intermediate device to the egress device;
    发送单元,用于向所述上游设备发送扩展的第一BGP协议报文,所述扩展的第一BGP协议报文中包括所述网络设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径; a sending unit, configured to send, to the upstream device, an extended first BGP protocol packet, where the extended first BGP protocol packet includes a BGP label route and a first extended attribute advertised by the network device, where An extended attribute indicating the transmission path;
    其中,所述网络设备为所述中间设备或者所述出口设备。The network device is the intermediate device or the egress device.
  16. 根据权利要求15所述的网络设备,其特征在于,所述网络设备为所述中间设备;The network device according to claim 15, wherein the network device is the intermediate device;
    所述接收单元具体用于接收在所述传输路径上,与所述中间设备直接相邻的下游设备发送的扩展的第二BGP协议报文,所述扩展的第二BGP协议报文包括所述下游设备发布的BGP标签路由和第二扩展属性,所述第二扩展属性指示出所述传输路径。The receiving unit is configured to receive an extended second BGP protocol packet that is sent by the downstream device that is directly adjacent to the intermediate device, where the extended second BGP protocol packet includes the The BGP label route and the second extended attribute issued by the downstream device, where the second extended attribute indicates the transmission path.
  17. 根据权利要求15或16所述的网络设备,其特征在于,所述网络设备为所述中间设备;The network device according to claim 15 or 16, wherein the network device is the intermediate device;
    所述处理单元还用于,所述接收单元接收所述建立BGP LSP隧道的指示后,所述处理单元建立所述中间设备至所述下游设备的流量工程TE隧道。The processing unit is further configured to: after the receiving unit receives the indication of establishing a BGP LSP tunnel, the processing unit establishes a traffic engineering TE tunnel of the intermediate device to the downstream device.
  18. 根据权利要求17所述的网络设备,其特征在于,所述扩展的第二BGP协议报文中还包括第三扩展属性,所述第三扩展属性指示出TE隧道的建立属性;The network device according to claim 17, wherein the extended second BGP protocol message further includes a third extended attribute, where the third extended attribute indicates an establishment attribute of the TE tunnel;
    所述处理单元还用于,从所述扩展的第二BGP协议报文中获取所述TE隧道的建立属性;The processing unit is further configured to: obtain the establishment attribute of the TE tunnel from the extended second BGP protocol packet;
    当建立所述中间设备至所述下游设备的TE隧道时,所述处理单元具体用于基于所述TE隧道的建立属性,建立所述中间设备至所述下游设备的TE隧道。When the TE tunnel is established to the downstream device, the processing unit is specifically configured to establish a TE tunnel of the intermediate device to the downstream device based on an establishment attribute of the TE tunnel.
  19. 根据权利要求18所述的网络设备,其特征在于,所述TE隧道的建立属性包括:TE隧道的带宽约束条件和/或可靠性参数。The network device according to claim 18, wherein the establishment attribute of the TE tunnel comprises: a bandwidth constraint condition and/or a reliability parameter of the TE tunnel.
  20. 根据权利要求17至19任一项所述的网络设备,其特征在于,所述处理单元还用于,在建立所述中间设备至所述下游设备的TE隧道之前,确定出所述中间设备与所述下游设备具有同一域编号。The network device according to any one of claims 17 to 19, wherein the processing unit is further configured to: before establishing the TE tunnel of the intermediate device to the downstream device, determine the intermediate device and The downstream devices have the same domain number.
  21. 根据权利要求15所述的网络设备,其特征在于,所述网络设备为所述出口设备,The network device according to claim 15, wherein the network device is the egress device,
    所述处理单元还用于,获取业务数据的虚拟专用网VPN标签路由信息;The processing unit is further configured to: obtain virtual private network VPN label routing information of service data;
    所述发送单元还用于,将所述VPN标签路由信息发送至所述入口设备, 所述VPN标签路由信息包括VPN用户信息和VPN标签,所述VPN用户信息用于指示所述入口设备将在所述传输路径上建立的端到端BGP LSP隧道与所述VPN标签相关联。The sending unit is further configured to send the VPN label routing information to the ingress device, The VPN label routing information includes VPN user information and a VPN label, and the VPN user information is used to instruct the ingress device to associate an end-to-end BGP LSP tunnel established on the transmission path with the VPN label.
  22. 一种网络设备,其特征在于,包括:A network device, comprising:
    接收单元,用于接收在传输路径上,与所述网络设备直接相邻的下游设备发送的扩展的边界网关协议BGP协议报文;所述扩展的BGP协议报文包括所述下游设备发布的BGP标签路由和第一扩展属性,所述第一扩展属性指示出所述传输路径,所述传输路径是从入口设备直接至出口设备,或者从所述入口设备经过中间设备至所述出口设备的传输路径;a receiving unit, configured to receive an extended border gateway protocol BGP protocol packet sent by a downstream device directly adjacent to the network device, where the extended BGP protocol packet includes the BGP advertised by the downstream device a label route and a first extended attribute, the first extended attribute indicating the transmission path, the transmission path being directly from the ingress device to the egress device, or the transmission from the ingress device to the egress device path;
    其中,所述网络设备为所述入口设备。The network device is the ingress device.
  23. 根据权利要求22所述的网络设备,其特征在于,所述网络设备还包括:处理单元;The network device according to claim 22, wherein the network device further comprises: a processing unit;
    所述处理单元还用于,所述接收单元接收所述扩展的BGP协议报文后,所述处理单元建立所述网络设备至所述下游设备的流量工程TE隧道。The processing unit is further configured to: after the receiving unit receives the extended BGP protocol packet, the processing unit establishes a traffic engineering TE tunnel of the network device to the downstream device.
  24. 根据权利要求23所述的网络设备,其特征在于,所述扩展的BGP协议报文中还包括第二扩展属性,所述第二扩展属性指示出TE隧道的建立属性;The network device according to claim 23, wherein the extended BGP protocol message further includes a second extended attribute, where the second extended attribute indicates an establishment attribute of the TE tunnel;
    所述处理单元还用于,从所述扩展的BGP协议报文中获取所述TE隧道的建立属性;The processing unit is further configured to: obtain an establishment attribute of the TE tunnel from the extended BGP protocol packet;
    当建立所述网络设备至所述下游设备的TE隧道时,所述处理单元具体用于基于所述TE隧道的建立属性,建立所述网络设备至所述下游设备的TE隧道。When the TE tunnel of the network device is established to the downstream device, the processing unit is specifically configured to establish a TE tunnel of the network device to the downstream device based on an establishment attribute of the TE tunnel.
  25. 根据权利要求24所述的网络设备,其特征在于,所述TE隧道的建立属性包括:带宽约束条件和/或可靠性参数。The network device according to claim 24, wherein the establishment attribute of the TE tunnel comprises: a bandwidth constraint condition and/or a reliability parameter.
  26. 根据权利要求23至25任一项所述的网络设备,其特征在于,所述处理单元还用于,在建立所述网络设备至所述下游设备的TE隧道之前,确定出所述网络设备与所述下游设备具有同一域编号。The network device according to any one of claims 23 to 25, wherein the processing unit is further configured to: before establishing the TE tunnel of the network device to the downstream device, determine the network device and The downstream devices have the same domain number.
  27. 根据权利要求22至26任一项所述的网络设备,其特征在于,A network device according to any one of claims 22 to 26, characterized in that
    所述接收单元,还用于接收所述出口设备发送的业务数据的虚拟专用 网VPN标签路由信息,所述VPN标签路由信息包括VPN用户信息和VPN标签;The receiving unit is further configured to receive a virtual private service data sent by the egress device Network VPN label routing information, the VPN label routing information includes VPN user information and a VPN label;
    所述网络设备还包括:处理单元,所述处理单元用于基于所述VPN用户信息,将在所述传输路径上建立的端到端BGP标签交换路径LSP隧道与所述VPN标签相关联。The network device further includes: a processing unit, configured to associate an end-to-end BGP label switched path LSP tunnel established on the transmission path with the VPN label based on the VPN user information.
  28. 根据权利要求27所述的网络设备,其特征在于,所述网络设备还包括:处理单元,所述处理单元还用于,获取所述业务数据,将所述业务数据和所述VPN标签,通过在所述传输路径上建立的端到端BGP LSP隧道进行传输。 The network device according to claim 27, wherein the network device further comprises: a processing unit, the processing unit is further configured to: acquire the service data, pass the service data and the VPN label, The end-to-end BGP LSP tunnel established on the transmission path is transmitted.
PCT/CN2015/088976 2015-01-27 2015-09-06 Method and network device for establishing bgp lsp tunnel WO2016119461A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510040793.4 2015-01-27
CN201510040793.4A CN105991385B (en) 2015-01-27 2015-01-27 A kind of method that establishing BGP lsp tunnel and the network equipment

Publications (1)

Publication Number Publication Date
WO2016119461A1 true WO2016119461A1 (en) 2016-08-04

Family

ID=56542325

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088976 WO2016119461A1 (en) 2015-01-27 2015-09-06 Method and network device for establishing bgp lsp tunnel

Country Status (2)

Country Link
CN (1) CN105991385B (en)
WO (1) WO2016119461A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022166464A1 (en) * 2021-02-07 2022-08-11 华为技术有限公司 Packet transmission method and system, and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630320B (en) * 2020-05-06 2023-03-24 瞻博网络公司 Method for creating tunnel in computer network, entrance network device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7751405B1 (en) * 2007-09-26 2010-07-06 Juniper Networks, Inc. Automatic configuration of label switched path tunnels using BGP attributes
US20110222413A1 (en) * 2010-03-09 2011-09-15 Juniper Networks, Inc. Communicating network path and status information in multi-homed networks
CN102487351A (en) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 Establishment method of end-to-end multicast label switched path, apparatus thereof and system
WO2013011420A1 (en) * 2011-07-18 2013-01-24 Telefonaktiebolaget L M Ericsson (Publ) Signaling a label switched path (lsp) tunneling model
CN103475557A (en) * 2013-09-05 2013-12-25 华为技术有限公司 Tunnel setup method and router

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020196737A1 (en) * 2001-06-12 2002-12-26 Qosient Llc Capture and use of service identifiers and service labels in flow activity to determine provisioned service for datagrams in the captured flow activity
CN100542127C (en) * 2004-06-30 2009-09-16 华为技术有限公司 A kind of method of realizing group broadcasting based on multiservice transport platform
CN101150491B (en) * 2006-09-22 2010-04-21 华为技术有限公司 An optimization method for multicast tree in multi-protocol label switching network
EP1976319A1 (en) * 2007-03-28 2008-10-01 NTT DoCoMo, Inc. Method and apparatus for performing a seamless handover of a multicast source

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7751405B1 (en) * 2007-09-26 2010-07-06 Juniper Networks, Inc. Automatic configuration of label switched path tunnels using BGP attributes
US20110222413A1 (en) * 2010-03-09 2011-09-15 Juniper Networks, Inc. Communicating network path and status information in multi-homed networks
CN102487351A (en) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 Establishment method of end-to-end multicast label switched path, apparatus thereof and system
WO2013011420A1 (en) * 2011-07-18 2013-01-24 Telefonaktiebolaget L M Ericsson (Publ) Signaling a label switched path (lsp) tunneling model
CN103475557A (en) * 2013-09-05 2013-12-25 华为技术有限公司 Tunnel setup method and router

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022166464A1 (en) * 2021-02-07 2022-08-11 华为技术有限公司 Packet transmission method and system, and device

Also Published As

Publication number Publication date
CN105991385A (en) 2016-10-05
CN105991385B (en) 2019-03-26

Similar Documents

Publication Publication Date Title
US11888651B2 (en) Virtual private network VPN service optimization method and device
US7751405B1 (en) Automatic configuration of label switched path tunnels using BGP attributes
EP3300317B1 (en) Method, device and system for realizing service link
WO2020052230A1 (en) Transmission control method, node, network system, and storage medium
EP3002913B1 (en) Tunnel establishment method, label allocation method, device, and network system
US9807001B2 (en) Segment routing using a remote forwarding adjacency identifier
US8098663B2 (en) Carrier's carrier without customer-edge-to-customer-edge border gateway protocol
US8068442B1 (en) Spanning tree protocol synchronization within virtual private networks
WO2015184852A1 (en) Sr information obtainment method and sr network establishment method
CN107306222B (en) Method and equipment for establishing traffic engineering tunnel on label switching path
CN107026796B (en) VPN route notification method, data flow forwarding method and related equipment
EP2911350B1 (en) Neighbor-label distribution with label distribution protocol
US11743166B2 (en) Provisioning non-colored segment routing label switched paths via segment routing policies in border gateway protocol
EP2735126B1 (en) Signaling a label switched path (lsp) tunneling model
EP3754913A1 (en) Signaling ip path tunnels for traffic engineering
WO2020142873A1 (en) Method, device and system for controlling route iteration
CN105830500B (en) Method and apparatus for packet network
EP3852319B1 (en) Message sending method
WO2020107977A1 (en) Path construction method and related device
CN105814944B (en) Topology Discovery based on explicit signaling
EP3754914B1 (en) Class-based traffic engineering in an ip network
CN107959611B (en) Method, device and system for forwarding message
US20230362092A1 (en) Stitching label-switched paths between autonomous systems with internet protocol
US11888722B2 (en) Route advertisement method, device, and system
WO2016119461A1 (en) Method and network device for establishing bgp lsp tunnel

Legal Events

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

Ref document number: 15879659

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15879659

Country of ref document: EP

Kind code of ref document: A1