WO2016119461A1 - Procédé et dispositif de réseau pour établir un tunnel lsp bgp - Google Patents

Procédé et dispositif de réseau pour établir un tunnel lsp bgp 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
English (en)
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/fr

Links

Images

Definitions

  • 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.
  • Multi-Protocol Label Switch 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.
  • AS Autonomous System
  • BGP Border Gateway Protocol
  • Label Switch Path Label Switch Path
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • the present invention provides a method for establishing a BGP LSP tunnel, including:
  • the network device receives an indication that the border gateway protocol BGP label switching path LSP tunnel is established
  • 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;
  • 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.
  • the network device is the intermediate device
  • the network device receives the indication of establishing a BGP LSP tunnel, including:
  • 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.
  • the network device is the intermediate device; include:
  • the intermediate device 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.
  • 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:
  • the intermediate device establishes a TE tunnel of the intermediate device to the downstream device, including:
  • the intermediate device establishes a TE tunnel of the intermediate device to the downstream device based on an establishment attribute of the TE tunnel.
  • the establishing attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter of the TE tunnel.
  • 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.
  • the network device is the egress device, and the method further includes:
  • 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.
  • the network device establishes a BGP LSP tunnel from the Before obtaining the transmission path in the instructions, it also includes:
  • the method further includes:
  • the network device determines that the transmission path does not exist, and advertises a BGP label to each neighboring device of the network device.
  • the present invention provides a method for establishing a BGP LSP tunnel, including:
  • 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.
  • the method further includes:
  • the network device After receiving the extended BGP protocol packet, the network device establishes a traffic engineering TE tunnel of the network device to the downstream device.
  • 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:
  • the establishing, by the network device, the TE tunnel of the network device to the downstream device includes:
  • the network device establishes a TE tunnel of the network device to the downstream device based on an establishment attribute of the TE tunnel.
  • the establishing attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter.
  • 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.
  • the method further includes:
  • 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;
  • 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.
  • the method further includes:
  • the network device acquires the service data
  • the network device transmits the service data and the VPN label through an end-to-end BGP LSP tunnel established on the transmission path.
  • the present invention provides a network device, including:
  • a receiving unit configured to receive an indication of establishing a border gateway protocol BGP label switching path LSP tunnel
  • 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;
  • 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.
  • the network device is the intermediate device
  • 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.
  • the network device is the intermediate device
  • 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.
  • 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 processing unit is further configured to: obtain the establishment attribute of the TE tunnel from the extended second BGP protocol packet;
  • 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.
  • the establishing attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter of the TE tunnel.
  • 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.
  • the network device is the egress device
  • the processing unit is further configured to: obtain virtual private network VPN label routing information of service data;
  • 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.
  • 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;
  • 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.
  • the present invention provides a network device, including:
  • 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.
  • the network device further includes: a processing unit;
  • 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.
  • 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 processing unit is further configured to: obtain an establishment attribute of the TE tunnel from the extended BGP protocol packet;
  • 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.
  • the establishing attributes of the TE tunnel include: a bandwidth constraint condition and/or a reliability parameter.
  • 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.
  • 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;
  • 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.
  • 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.
  • the network device 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 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,
  • 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. .
  • Figure 1 shows a possible network topology of an MPLS network
  • FIG. 2 is a schematic flowchart of a method for establishing a BGP LSP tunnel according to an embodiment of the present invention
  • FIG. 3 is an implementation manner of establishing a BGP LSP tunnel in the embodiment shown in FIG. 2;
  • FIG. 4 is a schematic flowchart of another method for establishing a BGP LSP tunnel according to the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus embodiment of a network device according to the present invention.
  • FIG. 6 is a schematic structural diagram of another apparatus embodiment of a network device according to the present invention.
  • FIG. 7 is a schematic structural diagram of another apparatus embodiment of a network device according to the present invention.
  • FIG. 8 is a schematic structural diagram of another apparatus embodiment of a network device according to 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.
  • 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.
  • the border router 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.
  • the border router J initiates the establishment of a tunnel.
  • the control device may also control the border router J to establish a tunnel.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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
  • the border router F 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.
  • 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 label routing refers to the BGP route carrying the label mapping information.
  • the BGP label route is carried in the Multiprotocol Reachable NLRI (MP_REACH_NLRI) of the BGP protocol packet.
  • MP_REACH_NLRI Multiprotocol Reachable NLRI
  • the field of MP_REACH_NLRI generally carries the next hop, and the network layer reachability information.
  • NLRI Network Layer Reachable Information
  • 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.
  • an embodiment of the present invention provides an embodiment of a method for establishing a BGP LSP tunnel.
  • Step 201 The network device receives an indication that a BGP LSP tunnel is established.
  • the network device 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.
  • Step 202 The network device acquires a transmission path from the indication of establishing a BGP LSP tunnel.
  • 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.
  • 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.
  • 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.
  • a specific BGP LSP tunnel needs to be established according to the transmission path.
  • 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.
  • control device may be a network manager, an SDN controller, or a server that installs a specific application software.
  • Step 203 The network device determines an upstream device that is directly adjacent to the network device on the transmission path.
  • 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.
  • the direct adjacent fingers are directly adjacent to each other on the transmission path.
  • 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.
  • 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.
  • the upstream and downstream refer to the upstream and downstream of the data transmission direction.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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 network device when receiving the indication of establishing a BGP LSP tunnel, 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.
  • 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.
  • 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.
  • 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.
  • the BGP protocol 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.
  • 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.
  • 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.
  • 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.
  • the local address refers to the address of the network device corresponding to the table 2
  • 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.
  • the network device may be an intermediate device or an egress device of the transmission path. The details are described below separately.
  • the network device is an egress device of the transmission path.
  • 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.
  • 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.
  • 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.
  • the egress device 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 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.
  • 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.
  • 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
  • the VPN user information may include a Route Target (RT).
  • 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.
  • 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.
  • VNI Virtual Network Identifier
  • VRF virtual private network forwarding and forwarding identifier
  • 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.
  • the network device is an intermediate device of the transmission path.
  • 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.
  • 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.
  • 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.
  • the BGP label route advertised by the intermediate device is described below.
  • 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.
  • 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.
  • 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.
  • LDP LSP tunnel
  • the same domain generally refers to the same AS domain.
  • the LDP LSP tunnel and the TE tunnel are established in the domain.
  • 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.
  • the intermediate device 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.
  • 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.
  • the TE tunnel is started to be established after the intermediate device receives the extended second BGP protocol packet.
  • the intermediate device may further send the extended first protocol packet to the upstream device after determining that the TE tunnel is established.
  • the extended second BGP protocol packet may also indicate the established establishment attribute of the TE tunnel.
  • 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.
  • 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.
  • the establishment attributes of the TE tunnel may include: bandwidth constraints and/or reliability parameters of the TE tunnel.
  • 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.
  • IBGP internal border gateway protocol
  • EBGP routing type the external border gateway protocol EBGP routing type
  • the BGP label route 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.
  • an embodiment of the present invention provides another method for establishing a BGP LSP tunnel.
  • 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.
  • the network device is an ingress device of the transmission path.
  • the network device in this embodiment is a border router A.
  • 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.
  • 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.
  • 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. .
  • 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.
  • the embodiment may further include step 402 and step 403.
  • 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.
  • the VPN is an L2VPN
  • the VPN user information may include an AC ID
  • the VPN is an L3VPN
  • the VPN user information may include an RT
  • the VPN label is used to identify user service data, which may include VNI, VRF tags, etc.
  • 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.
  • 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 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.
  • a TE tunnel or an LDP LSP tunnel is generally required.
  • a manner of establishing a TE tunnel is also provided, so as to establish a TE tunnel while establishing a BGP LSP tunnel.
  • 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.
  • 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.
  • the method further includes: the network device determining that the network device has the same domain number as the downstream device.
  • an embodiment of the present invention provides an apparatus embodiment of a network device 500.
  • the network device 500 of this embodiment includes a receiving unit 501, a processing unit 502, and a sending unit 503.
  • the receiving unit 501 is configured to receive an indication that a BGP LSP tunnel is established.
  • the receiving unit 501 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.
  • the processing unit 502 is configured to obtain a transmission path from the indication of establishing a BGP LSP tunnel.
  • 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.
  • 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.
  • 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.
  • a specific BGP LSP tunnel needs to be established according to the transmission path.
  • 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.
  • control device may be a network manager, an SDN controller, or a server that installs a specific application software.
  • the processing unit 502 is further configured to determine an upstream device directly adjacent to the network device 500 on the transmission path.
  • 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.
  • the upstream and downstream refer to the upstream and downstream of the data transmission direction.
  • 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.
  • 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.
  • 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.
  • the BGP protocol needs to be extended to carry the transmission path, so that the upstream device can acquire the transmission path.
  • the BGP label route generally includes a prefix, a next hop, and a label.
  • the prefix is the IP address or IP address prefix of the egress device of the transmission path
  • the next hop is the IP address of the network device 500
  • the label is for the egress device.
  • the label assigned by the IP address or IP address prefix is the IP address or IP address prefix.
  • the sending unit 503 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.
  • 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.
  • 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.
  • 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.
  • the BGP protocol 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.
  • 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.
  • a BGP attribute that is, a first extended attribute
  • the network device 500 may be an intermediate device or an egress device of the transmission path. The details are described below separately.
  • the network device 500 is an egress device of the transmission path.
  • 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.
  • 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.
  • 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.
  • 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 is the label of the route assignment indicated by the address prefix.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • the network device 500 is an intermediate device of the transmission path.
  • 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.
  • the downstream device may indicate the transmission path by using the second extended attribute while issuing the BGP label route.
  • 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.
  • 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.
  • 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 is an IP address of the intermediate device, and the label is for the egress device.
  • 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.
  • 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.
  • a manner of establishing a TE tunnel is also provided, so as to establish a TE tunnel while establishing a BGP LSP tunnel.
  • 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.
  • the processing unit 502 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.
  • the extended second BGP protocol packet may also indicate the established establishment attribute of the TE tunnel.
  • the extended second BGP protocol packet further includes a third extension.
  • 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.
  • 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. .
  • IBGP internal border gateway protocol
  • EBGP external border gateway protocol
  • 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.
  • an embodiment of the present invention further provides an apparatus embodiment of the network device 600.
  • the network device 600 of this embodiment includes a receiving unit 601.
  • 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.
  • the network device 600 is an entry device of the transmission path.
  • the network device 600 in this embodiment is a border router A.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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 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.
  • a TE tunnel or an LDP LSP tunnel is generally required.
  • a manner of establishing a TE tunnel is also provided, so as to establish a TE tunnel while establishing a BGP LSP tunnel.
  • 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.
  • 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.
  • 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.
  • 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.
  • an embodiment of the present invention provides a network device 700, which may be a microprocessor computer.
  • 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.
  • 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.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • 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.
  • Memory 706 is for storing executable program code, the program code including computer operating instructions.
  • 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.
  • the memory 706 may further include a non-volatile memory.
  • memory 706 can include disk storage.
  • 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.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • an embodiment of the present invention provides a network device 800, which may be a microprocessor computer.
  • 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.
  • 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.
  • ISA Industry Standard Architecture
  • Peripheral Component Peripheral Component
  • EISA Extended Industry Standard Architecture
  • 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.
  • Memory 806 is for storing executable program code, the program code including computer operating instructions.
  • 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.
  • the memory 806 may further include a non-volatile memory.
  • memory 806 can include disk storage.
  • 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.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • 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.
  • 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.
  • 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.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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. .

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

La présente invention concerne un procédé et un dispositif de réseau pour établir un tunnel LSP BGP. Le procédé comprend les étapes suivantes : le dispositif de réseau reçoit une instruction d'établissement du tunnel LSP BGP ; un chemin de transmission est obtenu à partir de l'instruction d'établissement du tunnel LSP BGP, le chemin de transmission étant un chemin de transmission d'un dispositif d'entrée à un dispositif de sortie directement ou un chemin de transmission du dispositif d'entrée au dispositif de sortie par l'intermédiaire d'un dispositif intermédiaire ; un dispositif amont bordant directement le dispositif de réseau sur le chemin de transmission est déterminé ; un premier message de protocole BGP étendu est transmis au dispositif amont, le premier message de protocole BGP étendu comprenant une route à étiquette BGP délivrée par le dispositif de réseau et un premier attribut étendu indiquant le chemin de transmission. Le tunnel LSP BGP est établi conformément au chemin de transmission dans la présente invention, et par conséquent l'établissement de tunnel LSP BGP à la demande est réalisé, et le problème de possibilité de gaspillage de tunnel LSP BGP est résolu.
PCT/CN2015/088976 2015-01-27 2015-09-06 Procédé et dispositif de réseau pour établir un tunnel lsp bgp WO2016119461A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510040793.4 2015-01-27
CN201510040793.4A CN105991385B (zh) 2015-01-27 2015-01-27 一种建立bgp lsp隧道的方法及网络设备

Publications (1)

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

Family

ID=56542325

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088976 WO2016119461A1 (fr) 2015-01-27 2015-09-06 Procédé et dispositif de réseau pour établir un tunnel lsp bgp

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022166464A1 (fr) * 2021-02-07 2022-08-11 华为技术有限公司 Procédé et système de transmission de paquets, et dispositif

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630320B (zh) * 2020-05-06 2023-03-24 瞻博网络公司 计算机网络内创建隧道的方法、入口网络装置及存储介质

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 (zh) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 端到端组播标签交换路径的建立方法、装置及系统
WO2013011420A1 (fr) * 2011-07-18 2013-01-24 Telefonaktiebolaget L M Ericsson (Publ) Signalisation d'un modèle de tunnellisation de chemin à commutation d'étiquettes (lsp)
CN103475557A (zh) * 2013-09-05 2013-12-25 华为技术有限公司 隧道建立的方法及路由器

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 (zh) * 2004-06-30 2009-09-16 华为技术有限公司 一种基于多业务传输平台的组播实现方法
CN101150491B (zh) * 2006-09-22 2010-04-21 华为技术有限公司 一种多协议标签交换网络中的组播树的优化方法
EP1976319A1 (fr) * 2007-03-28 2008-10-01 NTT DoCoMo, Inc. Procédé et appareil pour réaliser un transfert sans interruption d'un source multidiffusion

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 (zh) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 端到端组播标签交换路径的建立方法、装置及系统
WO2013011420A1 (fr) * 2011-07-18 2013-01-24 Telefonaktiebolaget L M Ericsson (Publ) Signalisation d'un modèle de tunnellisation de chemin à commutation d'étiquettes (lsp)
CN103475557A (zh) * 2013-09-05 2013-12-25 华为技术有限公司 隧道建立的方法及路由器

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022166464A1 (fr) * 2021-02-07 2022-08-11 华为技术有限公司 Procédé et système de transmission de paquets, et dispositif

Also Published As

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

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 (fr) Procédé, dispositif et système pour réaliser une liaison de service
EP3002913B1 (fr) Procédé d'établissement de tunnel, procédé d'attribution d'étiquette, dispositif, et système de réseau
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 (fr) Procédé d'obtention d'informations sr, et procédé d'établissement de réseau sr
CN107306222B (zh) 标签交换路径上的流量工程隧道建立的方法和设备
US11743166B2 (en) Provisioning non-colored segment routing label switched paths via segment routing policies in border gateway protocol
EP3754913A1 (fr) Signalisation de tunnels de voie ip pour l'ingénierie de trafic
EP2911350B1 (fr) Distribution étiquette-voisine avec protocole de distribution d'étiquette
CN107026796B (zh) 一种vpn路由通告方法、数据流转发方法及相关设备
WO2020142873A1 (fr) Procédé, dispositif et système de commande d'itération d'itinéraire
EP2735126B1 (fr) Signalisation d'un modèle de tunnellisation de chemin à commutation d'étiquettes (lsp)
CN105830500B (zh) 用于分组网络的方法和装置
EP3852319B1 (fr) Procédé d'envoi de messages
WO2020107977A1 (fr) Procédé de construction de trajet et dispositif associé
CN105814944B (zh) 基于显式信令的拓扑发现
CN107959611B (zh) 一种转发报文的方法,装置及系统
EP3754914B1 (fr) Ingénierie de trafic à base de classes dans un réseau ip
US11888722B2 (en) Route advertisement method, device, and system
US12021744B2 (en) Stitching Label-Switched Paths between autonomous systems with internet protocol
WO2016119461A1 (fr) Procédé et dispositif de réseau pour établir un tunnel lsp bgp
WO2018040614A1 (fr) Procédé, dispositif associé et système d'établissement de trajet commuté par étiquette pour un réseau privé virtuel

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