WO2015032275A1 - 隧道建立的方法及路由器 - Google Patents

隧道建立的方法及路由器 Download PDF

Info

Publication number
WO2015032275A1
WO2015032275A1 PCT/CN2014/084768 CN2014084768W WO2015032275A1 WO 2015032275 A1 WO2015032275 A1 WO 2015032275A1 CN 2014084768 W CN2014084768 W CN 2014084768W WO 2015032275 A1 WO2015032275 A1 WO 2015032275A1
Authority
WO
WIPO (PCT)
Prior art keywords
abr
tunnel
mpls
bgp
lsp
Prior art date
Application number
PCT/CN2014/084768
Other languages
English (en)
French (fr)
Inventor
庄顺万
李振斌
阴元斌
文婧
宋宝华
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015032275A1 publication Critical patent/WO2015032275A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the embodiments of the present invention relate to the field of communications, and specifically relate to a method for establishing a tunnel and a routing crying port.
  • MPLS Multi-Protocol Label Switching
  • TE traffic engineering
  • QoS network quality of service
  • MPLS combines multiple networks onto an Ethernet-based infrastructure, enabling the benefits of a single forwarding model to be fully realized.
  • the cost-effectiveness of the network is self-evident.
  • Seamless MPLS encapsulates all services in the access layer for MPLS encapsulation, forming a unified MPLS control plane from the core layer to the metro layer to the access layer, which greatly reduces the difficulty of network planning and operation and maintenance.
  • Seamless MPLS consists of a control layer and a business layer.
  • the control layer mainly uses the Border Gateway Protocol (BGP) to exchange routing information between different areas. Each area uses an Intermediate System-Intermediate System (IS-IS) protocol.
  • IS-IS Intermediate System-Intermediate System
  • the business layer provides different applications such as Virtual Private LAN Service (VPLS).
  • Seamless MPLS deploys fully connected MPLS traffic engineering at the core and metro layers (MPLS Traffic Engineering (MPLS TE) tunnels; BGP Label Switch Paths (BGP LSPs) are glued together.
  • MPLS Traffic Engineering (MPLS TE) tunnels MPLS Traffic Engineering (MPLS TE) tunnels; BGP Label Switch Paths (BGP LSPs) are glued together.
  • MPLS TE tunnel is configured with a static manual configuration.
  • a typical MPLS TE tunnel requires about 10 commands.
  • the MPLS TE tunnel configuration is inefficient, and the configuration is large. It is easy to be faulty and difficult to maintain.
  • the MPLS TE tunnel cannot automatically change with the service development and lacks flexibility.
  • the embodiment of the invention provides a tunnel establishment method and a router to solve the problem of low efficiency of MPLS TE tunnel configuration.
  • the area border router receives the first BGP label route advertised by the second ABR; the first ABR establishes the first BGP LSP from the first ABR to the second ABR according to the first BGP label route; The first ABR creates the first MPLS TE tunnel from the first ABR to the second ABR according to the first BGP LSP.
  • the first ABR sends a second BGP label route to the second ABR, so that the second ABR is configured according to the Establishing, by the second BGP label, the second BGP TE to the second BGP LSP of the first ABR, and further creating a second MPLS TE from the second ABR to the first ABR according to the second BGP LSP tunnel.
  • the first ABR sends a tunnel advertisement message to the second ABR, where the tunnel advertisement message includes the first MPLS The tunnel information of the TE tunnel, so that the second ABR creates the third MPLS TE tunnel from the second ABR to the first ABR according to the tunnel information of the first MPLS TE tunnel, and the third MPLS TE tunnel and
  • the first MPLS TE tunnel is a bidirectional multiplex tunnel.
  • the first ABR sends an UPDATE message or label distribution to the second ABR by using BGP.
  • the tunnel advertisement message is sent in the form of a protocol LDP mapping MAPP message.
  • the tunnel information includes: an extended tunnel identifier, a tunnel identifier, and a tunnel endpoint address.
  • a method for establishing a tunnel including: a second ABR generating a first BGP label route; the second ABR issuing the first BGP label route to the first ABR, so that the first The ABR establishes the first BGP LSP of the first ABR to the second ABR according to the first BGP label route, and further creates the first ABR to the second ABR according to the first BGP LSP.
  • An MPLS TE tunnel including: a second ABR generating a first BGP label route; the second ABR issuing the first BGP label route to the first ABR, so that the first The ABR establishes the first BGP LSP of the first ABR to the second ABR according to the first BGP label route, and further creates the first ABR to the second ABR according to the first BGP LSP.
  • the second ABR is When the second BGP LSP is revoked and the second BGP LSP is the only BGP LSP associated with the second MPLS TE tunnel, the second MPLS TE tunnel is deleted.
  • the second ABR receives a tunnel advertisement message sent by the first ABR, where
  • the tunnel advertisement message includes the tunnel information of the first MPLS TE tunnel, and the second ABR obtains the path information of the first MPLS TE tunnel according to the tunnel information of the first MPLS TE tunnel;
  • the path information of the first MPLS TE tunnel is used to create the third MPLS TE tunnel from the second ABR to the first ABR in an explicit path manner, the third MPLS TE tunnel and the first MPLS TE
  • the tunnel is a two-way shared tunnel.
  • the tunnel information includes: an extended tunnel identifier, a tunnel identifier, and a tunnel endpoint address.
  • a first ABR including: a receiving unit, configured to receive a first BGP label route advertised by a second ABR, and a processing unit, configured to establish the first ABR according to the first BGP label route
  • the first BGP LSP to the second ABR is created, and the first MPLS TE tunnel of the first ABR to the second ABR is created according to the first BGP LSP.
  • the first ABR further includes a sending unit, configured to send a second BGP label route to the second ABR, so that The second ABR establishes the second ABR to the second BGP LSP of the first ABR according to the second BGP label route, and further creates the second ABR to the first according to the second BGP LSP.
  • the second MPLS TE tunnel of the ABR is configured to send a second BGP label route to the second ABR, so that The second ABR establishes the second ABR to the second BGP LSP of the first ABR according to the second BGP label route, and further creates the second ABR to the first according to the second BGP LSP.
  • the first ABR further includes a sending unit, configured to send a tunnel advertisement message to the second ABR, where the tunnel advertisement is The message includes the tunnel information of the first MPLS TE tunnel, so that the second ABR creates the third MPLS TE tunnel from the second ABR to the first ABR according to the tunnel information of the first MPLS TE tunnel.
  • the third MPLS TE tunnel and the first An MPLS TE tunnel is a bidirectional shared tunnel.
  • a third possible implementation manner of the third aspect is further provided, and a third possible aspect in the third aspect
  • the processing unit is further configured to: after the first MPLS TE tunnel is created, if the first BGP LSP is revoked and the first BGP LSP is the first MPLS TE tunnel The first MPLS TE tunnel is deleted when the associated unique BGP LSP is associated.
  • a BGP label routing configured to advertise the first BGP label route to the first ABR, so that the first ABR establishes the first ABR to the second ABR according to the first BGP label route
  • the first BGP LSP is further configured to create the first MPLS TE tunnel from the first ABR to the second ABR according to the first BGP LSP.
  • the second ABR further includes: a receiving unit, configured to receive a second BGP label route advertised by the first ABR, and a processing unit, configured to The second BGP label routing establishes the second ABR to the first
  • the processing unit is further configured to: after the creating the second MPLS TE tunnel If the second BGP LSP is revoked and the second BGP LSP is a unique BGP LSP associated with the second MPLS TE tunnel, the second MPLS TE tunnel is deleted.
  • the second ABR further includes: a receiving unit, configured to receive a tunnel advertisement message sent by the first ABR, where The tunnel advertisement message includes the tunnel information of the first MPLS TE tunnel, and the processing unit is configured to acquire the first MPLS according to the tunnel information of the first MPLS TE tunnel.
  • the path information of the TE tunnel and further, according to the path information of the first MPLS TE tunnel, create the third MPLS TE tunnel from the second ABR to the first ABR in an explicit path manner, the third MPLS
  • the TE tunnel and the first MPLS TE tunnel are bidirectional shared tunnels.
  • the tunnel information includes: an extended tunnel identifier, a tunnel identifier, and a tunnel endpoint address.
  • the second ABR can advertise the BGP label to the first ABR, and the first ABR receives the BGP label.
  • the BGP LSP is established, and the MPLS TE tunnel is created according to the BGP LSP.
  • the MPLS TE tunnel can be automatically established as required by the service and the configuration efficiency of the MPLS TE tunnel is improved. .
  • FIG. 1 is a schematic flowchart diagram of a method for tunnel deployment according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a method for tunnel deployment according to another embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a process of tunnel deployment according to another embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of a process of tunnel deployment according to another embodiment of the present invention.
  • FIG. 5 is a schematic flow chart of a process of tunnel deployment according to another embodiment of the present invention.
  • FIG. 6 is a schematic diagram of tunnel encapsulation attributes according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of tunnel information according to an embodiment of the present invention.
  • FIG. 8 is a schematic flow chart of a process of tunnel deployment according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a first area border router according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a second area border router according to another embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a first area border router according to another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a second area border router according to another embodiment of the present invention.
  • FIG. 1 is a schematic flow chart of a method for establishing a tunnel according to an embodiment of the present invention. The method shown in Figure 1 includes:
  • the first ABR receives the first BGP label route advertised by the second ABR.
  • the first ABR establishes the first BGP LSP of the first ABR to the second ABR according to the first BGP label route.
  • the first ABR creates the first ABR to the second according to the first BGP LSP.
  • the first MPLS TE tunnel of the ABR The first MPLS TE tunnel of the ABR.
  • the second ABR can advertise the BGP label to the first ABR, and the first ABR receives the BGP label.
  • the BGP LSP is set up, and the MPLS TE tunnel is created according to the BGP LSP.
  • the MPLS TE tunnel can be automatically established as required by the service and the MPLS TE tunnel is improved. Configuration efficiency.
  • the first BGP LSP uses the first ABR as an ingress node.
  • the first MPLS TE tunnel uses the first ABR as an ingress node (Ingress) and the second ABR as an egress node (Egress).
  • the method shown in FIG. 1 further includes: the first ABR issuing a second BGP label route to the second ABR, so that the second ABR establishes the second according to the second BGP label route.
  • the ABR is sent to the second BGP LSP of the first ABR, and the second MPLS TE tunnel is created according to the second BGP LSP. Therefore, the establishment of the reverse MPLS TE tunnel of the first ABR to the second ABR is completed, and the end-to-end bidirectional tunnel between the first ABR and the second ABR is created, which can be used to carry the A service such as a pseudo wire (PW) between the first ABR and the second ABR.
  • PW pseudo wire
  • the second BGP LSP takes the second ABR as an Ingress, and the first ABR is an Egress.
  • the second MPLS TE tunnel uses the second ABR as the Ingress and the first ABR as the Egress.
  • the method shown in FIG. 1 further includes: the first ABR sending a tunnel advertisement message to the second ABR, where the tunnel advertisement message includes tunnel information of the first MPLS TE tunnel, so that The second ABR creates the third MPLS TE tunnel from the second ABR to the first ABR according to the tunnel information of the first MPLS TE tunnel, where the third MPLS TE tunnel and the first MPLS TE tunnel are bidirectional multiplex tunnels.
  • the first ABR creates the first MPLS TE tunnel
  • the first ABR is not detected by the second ABR that is the same as the first MPLS TE tunnel to the first ABR.
  • the direction of the third MPLS TE tunnel and the first MPLS TE tunnel is the phase of the third MPLS TE tunnel and the first MPLS TE tunnel.
  • the path of the third MPLS TE tunnel and the first MPLS TE tunnel are the same. That is to say, two tunnels with opposite directions having the same path can be referred to as a two-way common tunnel.
  • the tunnel advertisement message is a BGP update (UPDATE) message or a Label Distribution Protocol (LDP) mapping message.
  • UPDATE BGP update
  • LDP Label Distribution Protocol
  • the first ABR may send the tunnel information of the first MPLS TE tunnel to the second ABR by using other methods, which is not limited by the disclosure.
  • the tunnel information includes an extended tunnel identifier, a tunnel identifier, and a tunnel endpoint address.
  • each area is responsible for routing connectivity in its own area.
  • the MPLS TE tunnel is not deployed in advance.
  • the second ABR may send a BGP label route to the first ABR.
  • the first ABR establishes a BGP LSP, and further
  • the BGP LSP triggers the creation of the MPLS TE tunnel from the first ABR to the second ABR.
  • the MPLS TE tunnel can be automatically set up as required by the service and the configuration efficiency of the MPLS TE tunnel is improved.
  • FIG. 2 is a schematic flow chart of a method for establishing a tunnel according to another embodiment of the present invention.
  • the method shown in Figure 2 includes:
  • the second ABR generates a first BGP label route.
  • the second ABR sends the first BGP label route to the first ABR, so that the first ABR establishes the first ABR to the second ABR according to the first BGP label route.
  • a BGP LSP and further creating a first MPLS TE tunnel from the first ABR to the second ABR according to the first BGP LSP.
  • the second ABR can advertise the BGP label to the first ABR, and the first ABR receives the BGP label.
  • the BGP LSP is established, and the MPLS TE tunnel is created according to the BGP LSP.
  • the MPLS TE tunnel can be automatically established as required by the service and the configuration efficiency of the MPLS TE tunnel is improved. .
  • the method further includes: the second ABR receiving the second BGP label route advertised by the first ABR.
  • the second ABR establishes the second ABR to the second BGP LSP of the first ABR according to the second BGP label route.
  • the second ABR creates the second ABR to the second MPLS TE tunnel of the first ABR according to the second BGP LSP.
  • the method further includes: after the second MPLS TE tunnel is created, if the second BGP LSP is revoked and the second BGP LSP is associated with the second MPLS
  • the second MPLS TE tunnel is deleted when the unique BGP LSP is associated with the TE tunnel. In this way, the MPLS TE tunnel is automatically deleted as needed on the service, which saves bandwidth resources.
  • the method further includes: the second ABR receiving the tunnel advertisement message sent by the first ABR, where the tunnel advertisement message includes tunnel information of the first MPLS TE tunnel.
  • the second ABR obtains path information of the first MPLS TE tunnel according to the tunnel information of the first MPLS TE tunnel.
  • the second ABR creates the third MPLS TE tunnel from the second ABR to the first ABR, the third MPLS TE tunnel and the first MPLS TE according to the path information of the first MPLS TE tunnel.
  • the tunnel is a two-way shared tunnel.
  • the direction of the third MPLS TE tunnel and the first MPLS TE tunnel is opposite, and the third MPLS TE tunnel and the third MPLS TE tunnel are The path of the first MPLS TE tunnel is consistent. That is, with Two tunnels with opposite directions with the same path can be called a two-way shared tunnel.
  • the tunnel information includes an extended tunnel identifier, a tunnel identifier, and a tunnel endpoint address.
  • FIG. 3 is a schematic flow chart of a process of tunnel establishment according to another embodiment of the present invention.
  • the second ABR 302 generates a first BGP label route.
  • the second ABR 302 when the first ABR 301 to the second ABR 302 need to use an MPLS TE tunnel for transmitting services, the second ABR 302 generates a first BGP label route, and the prefix of the first BGP label route
  • the part may be the address of the second ABR or other routing address of the domain where the second ABR is located, which is not limited by the present invention.
  • the service may be a Layer 2 virtual private network (Layer 2)
  • the virtual private network may be a Layer 3 Virtual Private Network (L3VPN) or a PW.
  • L3VPN Layer 3 Virtual Private Network
  • PW Packet Data Network
  • the present invention does not limit this.
  • the service needs to be carried by a transmission channel such as an LSP or a TE tunnel.
  • the second ABR 302 advertises the first BGP label route to the first ABR 301. 305. After the first ABR 301 receives the first BGP label route, establish the first
  • the first ABR 301 creates the first MPLS TE tunnel from the first ABR 301 to the second ABR 302 according to the first BGP LSP.
  • the second ABR can advertise the BGP label to the first ABR, and the first ABR receives the BGP label.
  • the BGP LSP is established, and the MPLS TE tunnel is created according to the BGP LSP.
  • the MPLS TE tunnel can be automatically established as required by the service and the configuration efficiency of the MPLS TE tunnel is improved. .
  • the first ABR 301 creates the first MPLS TE tunnel in step 306
  • the first BGP LSP is revoked and the first BGP LSP is associated with the first MPLS TE tunnel
  • the unique BGP LSP is deleted
  • the first MPLS TE tunnel is deleted.
  • the first BGP label is continually refreshed as the service changes, that is, the first BGP LSP is continuously refreshed.
  • the second ABR 302 does not issue the updated first BGP label route within a predetermined period of time, and the first BGP LSP is the unique BGP LSP associated with the first MPLS TE tunnel
  • the first ABR 301 deletes the created The first MPLS TE tunnel. In this way, the MPLS TE tunnel is automatically deleted as needed by the service, which saves bandwidth resources.
  • the process may further include:
  • the first ABR 301 generates a second BGP label route.
  • the first ABR 301 when the second ABR 302 to the first ABR 301 need to use the MPLS TE tunnel to transmit services, the first ABR 301 generates a second BGP label route.
  • the service may be an L2VPN, and may be an L3VPN, or may be a PW. And the service needs to be carried by a transmission channel such as an LSP or a TE tunnel.
  • the second ABR 302 creates the second ABR 302 to the second MPLS TE tunnel of the first ABR 301 according to the second BGP LSP.
  • the second ABR 302 creates the second ABR 302 to the second MPLS TE tunnel of the first ABR 301.
  • the second ABR 302 sends an RSVP PATH message to the first ABR 301 after the second BGP LSP is established.
  • the first ABR 301 returns an RSVP RESV message to the second ABR 302 after receiving the RSVP PATH message.
  • the second ABR 302 creates the second ABR 302 to the second MPLS TE tunnel of the first ABR 301 after receiving the RSVP RESV message.
  • the second ABR 302 creates the second in step 410.
  • the second MPLS TE tunnel After the MPLS TE tunnel, if the second BGP LSP is revoked and the second BGP LSP is a unique BGP LSP associated with the second MPLS TE tunnel, the second MPLS TE tunnel is deleted. In this way, the MPLS TE tunnel is automatically deleted as needed by the service, which saves bandwidth resources.
  • the TE tunnels are created independently of each other, and the two do not depend on each other. In this way, the BGP LSP established by the BGP label route is triggered to trigger the creation of the required MPLS TE tunnel. After the two-way BGP LSPs are set up, the end-to-end bidirectional MPLS TE tunnel is triggered.
  • FIG. 5 is a schematic flow chart of a process of tunnel establishment according to another embodiment of the present invention.
  • the second ABR 502 generates a first BGP label route.
  • the second ABR 502 when the first ABR 501 to the second ABR 502 need to use an MPLS TE tunnel for transmitting services, the second ABR 502 generates a first BGP label route.
  • the service in the embodiment of the present invention may be an L2VPN, and may be an L3VPN or a PW. The present invention does not limit this. And the service needs to be carried by a transmission channel such as an LSP or a TE tunnel.
  • the second ABR 502 advertises the first BGP label route to the first ABR 501. 505. After receiving the first BGP label route, the first ABR 501 establishes the first BGP LSP of the first ABR 501 to the second ABR 502.
  • the first ABR 501 creates the first MPLS TE tunnel from the first ABR 501 to the second ABR 502 according to the first BGP LSP.
  • the existing MPLS TE tunnel of the first ABR 501 to the second ABR 502 already exists before the step 506, the first ABR 501, after establishing the BGP LSP, the existing MPLS The TE tunnel is replaced with the first MPLS TE tunnel.
  • the first ABR 501 After the first MPLS TE tunnel is created, if the second ABR 502 that is in the same manner as the first MPLS TE tunnel is not detected to the MPLS TE tunnel of the first ABR 501, the first ABR 501 is The second ABR 502 sends a tunnel advertisement message, where the tunnel advertisement message includes tunnel information of the first MPLS TE tunnel.
  • the tunnel advertisement message is a BGP UPDATE message or an LDP mapping message.
  • the first ABR may send the tunnel advertisement message to the second ABR by using other methods, which is not limited by the disclosure.
  • the tunnel information of the first MPLS TE tunnel includes an extended tunnel identifier, a tunnel identifier, and a tunnel endpoint address.
  • the extended tunnel identifier includes the tunnel type and tunnel name.
  • the tunnel advertisement information is carried by using a "Tunnel Encapsulation Attribute" in the protocol.
  • the tunnel encapsulation attribute includes a set of type-length-value (Type -Length- Value, TLV ) The encoded value.
  • the Tunnel Type field is 2 octets (Octets), and the Length field is 2 octets.
  • the Value field carries the specific content of the tunnel information, as shown in Figure 7. Show, where:
  • An extended tunnel ID which is used to carry the identifier of the first ABR;
  • the tunnel ID is used to identify the first MPLS TE tunnel, and the tunnel end point address is used to identify the destination address of the first MPLS TE tunnel, that is, the address of the second ABR. .
  • the extended tunnel ID, the tunnel ID, and the tunnel end point address are used to uniquely identify the first MPLS TE tunnel.
  • the tunnel type is 8 and the tunnel name is an RSVP-TE LSP, as shown in Table 1.
  • the tunnel type 8 in the embodiment of the present invention is only an illustrative example, and the tunnel type value is actually a tunnel type code value assigned by an Internet Assigned Numbers Authority (IANA), which may be from 8
  • IANA Internet Assigned Numbers Authority
  • the second ABR 502 obtains path information of the first MPLS TE tunnel according to the tunnel information of the first MPLS TE tunnel.
  • the second ABR 502 after receiving the tunnel advertisement message, identifies the tunnel type to determine that the tunnel information is used to indicate the MPLS TE tunnel. For example, as shown in the example of Table 1, the second ABR 502 identifies that the tunnel type is 8 and determines that the tunnel name is an RSVP-TE LSP, and then the second ABR 502 is configured according to the tunnel information of the first MPLS TE tunnel. The second ABR 502 searches for the tunnel identifier and the traffic engineering data base (TEDB) in the tunnel information of the first MPLS TE tunnel to obtain the path information of the first MPLS TE tunnel.
  • TDB traffic engineering data base
  • the second ABR 502 creates the third MPLS TE tunnel of the second ABR 502 to the first ABR 401 by using an explicit path manner according to the path information of the first MPLS TE tunnel.
  • the third MPLS TE tunnel and the first MPLS TE tunnel are bidirectional shared tunnels.
  • the direction of the third MPLS TE tunnel and the first MPLS TE tunnel is opposite, and the third MPLS TE tunnel and the third MPLS TE tunnel are The path of the first MPLS TE tunnel is consistent. That is to say, two tunnels with opposite directions having the same path can be referred to as a two-way common tunnel.
  • the second ABR can advertise the BGP label to the first ABR, and the first ABR receives the BGP label.
  • the BGP LSP is established, and the MPLS TE tunnel is created according to the BGP LSP.
  • the MPLS TE tunnel can be automatically established as required by the service and the configuration efficiency of the MPLS TE tunnel is improved. .
  • the first ABR 501 creates the first MPLS TE tunnel in step 506
  • the first BGP LSP is revoked and the first BGP LSP is associated with the first MPLS TE tunnel
  • the first MPLS TE tunnel is deleted when the BGP LSP is unique.
  • the first BGP label is continually refreshed as the service changes, that is, the first BGP LSP is continuously refreshed.
  • the second ABR 502 does not issue the refreshed first BGP label route for a predetermined period of time, and the first BGP LSP is the unique BGP LSP associated with the first MPLS TE tunnel
  • the first ABR 501 deletes the already created one.
  • the first MPLS TE tunnel In this way, the on-demand deletion of the MPLS TE tunnel is implemented.
  • the embodiment of the present invention establishes BGP through routing of BGP labels related to services.
  • the LSP triggers the creation of the MPLS TE tunnel.
  • the MPLS TE tunnel is automatically set up as required by the service.
  • Each MPLS TE tunnel has a reverse bidirectional MPLS TE tunnel.
  • FIG. 8 is a schematic flow chart of a process of tunnel establishment according to another embodiment of the present invention.
  • the steps 503 to 815 in the foregoing embodiment of the present invention can be referred to the steps 507 to 509 in the foregoing FIG. Repeat, no longer repeat them here.
  • the second ABR 802 generates a first BGP label route.
  • the second ABR 802 when the first ABR 801 to the second ABR 802 need to use an MPLS TE tunnel for transmitting traffic, the second ABR 802 generates a first BGP label route.
  • the service in the embodiment of the present invention may be an L2VPN, and may be an L3VPN or a PW. The present invention does not limit this. And the service needs to be carried by a transmission channel such as an LSP or a TE tunnel.
  • the second ABR 802 advertises the first BGP label route to the first ABR 801.
  • the first ABR 801 After receiving the first BGP label route, the first ABR 801 establishes the first BGP LSP of the first ABR 801 to the second ABR 802.
  • the first ABR 801 creates the first MPLS TE tunnel from the first ABR 801 to the second ABR 802 according to the first BGP LSP.
  • the existing MPLS TE tunnel of the first ABR 801 to the second ABR 802 already exists before the step 806, the first ABR 801, after establishing the BGP LSP, the existing MPLS The TE tunnel is replaced with the first MPLS TE tunnel.
  • the existing MPLS TE tunnel is determined as the third MPLS TE tunnel.
  • the third MPLS TE tunnel is bidirectionally shared with the first MPLS TE tunnel.
  • the first ABR 801 deletes the first BGP LSP after the first BGP LSP is revoked and the first BGP LSP is a unique BGP LSP associated with the first MPLS TE tunnel. An MPLS TE tunnel.
  • the first ABR 801 generates a second BGP label route.
  • the second ABR 802 and the first ABR 801 need to use the MPLS TE tunnel for transmitting services, apply for a label to the first ABR 801, and the first ABR 801 generates a first BGP label route.
  • the service in the embodiment of the present invention may be an L2VPN, and may be an L3VPN or a PW. The present invention does not limit this. And the service needs such as LSP or TE
  • the transmission channel of the tunnel carries.
  • the first ABR 801 advertises the second BGP label route to the second ABR 802.
  • the second ABR 802 After receiving the second BGP label route, the second ABR 802 establishes the second BGP LSP of the second ABR 802 to the first ABR 801.
  • the second ABR 802 performs the third step created in step 807 according to the second BGP LSP.
  • the MPLS TE tunnel is replaced with the fourth MPLS TE tunnel.
  • the second ABR 802 detects that the third MPLS TE tunnel exists from the second ABR 802 to the first ABR 801, and replaces the third MPLS TE tunnel with the third MPLS TE tunnel.
  • the second ABR 802 created by the BGP LSP is connected to the fourth MPLS TE tunnel of the first ABR 801.
  • the fourth MPLS TE tunnel uses the second ABR 802 as the ingress and the first ABR 801 as the egress.
  • the second ABR 802 sends a tunnel advertisement message to the first ABR 801, where the tunnel advertisement message includes tunnel information of the fourth MPLS TE tunnel.
  • the tunnel advertisement message is a BGP UPDATE message or an LDP mapping message.
  • the second ABR 802 may send the tunnel information of the first MPLS TE tunnel to the first ABR 801 by using other methods, which is not limited by the disclosure.
  • the tunnel information of the fourth MPLS TE tunnel includes an extended tunnel identifier, a tunnel identifier, and a tunnel endpoint address.
  • the extended tunnel identifier includes the tunnel type and the tunnel name.
  • the tunnel type in the extended tunnel identifier is 8
  • the tunnel name is an RSVP-TE LSP, as shown in Table 1.
  • the tunnel type 8 in the embodiment of the present invention is only an illustrative example.
  • the tunnel type value is actually a tunnel type code value assigned by the IANA, and may be any value from 8 to 65535. This is not limited. 814.
  • the first ABR 801 obtains the path information of the fourth MPLS TE tunnel according to the tunnel information of the fourth MPLS TE tunnel according to the received tunnel advertisement message.
  • the first ABR 801 creates a fifth MPLS TE tunnel from the first ABR 801 to the second ABR 802 according to the path information of the fourth MPLS TE tunnel, and the fifth MPLS TE tunnel and the fifth MPLS TE tunnel.
  • the fourth MPLS TE tunnel is a bidirectional multiplex tunnel.
  • the second ABR can advertise the BGP label to the first ABR, and the first ABR receives the BGP label.
  • the BGP LSP is established, and the MPLS TE tunnel is created according to the BGP LSP.
  • the MPLS TE tunnel can be automatically established as required by the service and the configuration efficiency of the MPLS TE tunnel is improved. .
  • FIG. 9 is a block diagram showing the structure of a first ABR 900 in accordance with one embodiment of the present invention.
  • the first ABR 900 shown in Fig. 9 includes a receiving unit 901 and a processing unit 902.
  • the receiving unit 901 is configured to receive a first BGP label route advertised by the second ABR.
  • the processing unit 902 is configured to establish the first BGP LSP of the first ABR to the second ABR according to the first BGP label, and further create the first ABR to the second ABR according to the first BGP LSP. MPLS TE tunnel.
  • the second ABR can advertise the BGP label to the first ABR 900, and the first ABR 900 receives the After the BGP label is routed, the BGP LSP is established, and the MPLS TE tunnel is created according to the BGP LSP.
  • the MPLS TE tunnel can be automatically established as required by the service and the MPLS TE is improved. Tunnel configuration efficiency.
  • the first ABR 900 can implement the processes performed by the first ABR in the embodiment of FIG. 1 to FIG. 6. To avoid repetition, details are not described herein again.
  • the first ABR 900 further includes a sending unit 903, And issuing a second BGP label route to the second ABR, so that the second ABR establishes the second ABR to the second BGP LSP of the first ABR according to the second BGP label route, and further creates the second BGP LSP according to the second BGP LSP.
  • the second ABR is to the second MPLS TE tunnel of the first ABR.
  • the sending unit 903 is further configured to send a tunnel advertisement message to the second ABR, where the tunnel advertisement message includes tunnel information of the first MPLS TE tunnel, so that the second ABR is configured according to the The tunnel information of the first MPLS TE tunnel creates the third ABR to the third MPLS TE tunnel of the first ABR, and the third MPLS TE tunnel and the first MPLS TE tunnel are bidirectional multiplex tunnels. Specifically, after the first ABR creates the first MPLS TE tunnel, if the second ABR that is co-located with the first MPLS TE tunnel is not detected to the MPLS TE tunnel of the first ABR, the second The ABR sends the tunnel advertisement message.
  • the processing unit 902 is further configured to: after the first MPLS TE tunnel is created, if the first BGP LSP is revoked and the first BGP LSP is associated with the first MPLS TE tunnel When the unique BGP LSP is deleted, the first MPLS TE tunnel is deleted.
  • FIG. 10 is a schematic structural view of a second ABR 1000 according to an embodiment of the present invention.
  • the second ABR 1000 shown in Fig. 10 includes a generating unit 1001 and a transmitting unit 1002.
  • the generating unit 1001 is configured to generate a first BGP label route.
  • the sending unit 1002 is configured to advertise the first BGP label route to the first ABR, so that the first ABR establishes the first BGP LSP to the first BGP LSP according to the first BGP label route, and further according to the The first BGP LSP creates the first MPLS TE tunnel from the first ABR to the second ABR.
  • the second ABR 1000 can advertise the BGP label to the first ABR, and the first ABR receives the After the BGP label is routed, the BGP LSP is established, and the first ABR is triggered to be created according to the BGP LSP.
  • An MPLS TE tunnel can automatically set up an MPLS TE tunnel as required by the service and improve the configuration efficiency of the MPLS TE tunnel.
  • the second ABR 1000 can implement the processes implemented by the second ABR in the embodiments of FIG. 1 to FIG. 6. To avoid repetition, details are not described herein again.
  • the second ABR 1000 further includes a receiving unit 1003 and a processing unit 1004.
  • the receiving unit 1003 is configured to receive a second BGP label route advertised by the first ABR.
  • the processing unit 1004 is configured to establish the second ABR to the second BGP LSP of the first ABR according to the second BGP label route, and further create the second ABR to the second ABR according to the second BGP LSP. MPLS TE tunnel.
  • the processing unit 1004 is further configured to: after the second MPLS TE tunnel is created, if the second BGP LSP is revoked and the second BGP LSP is the second MPLS TE The second MPLS TE tunnel is deleted when the unique BGP LSP is associated with the tunnel.
  • the receiving unit 1003 is further configured to receive the first
  • a tunnel advertisement message sent by the ABR where the tunnel advertisement message includes tunnel information of the first MPLS TE tunnel.
  • the processing unit 1004 obtains the path information of the first MPLS TE tunnel according to the tunnel information of the first MPLS TE tunnel, and further creates the second ABR by using an explicit path manner according to the path information of the first MPLS TE tunnel.
  • the third MPLS TE tunnel of the first ABR, and the third MPLS TE tunnel and the first MPLS TE tunnel are bidirectional multiplex tunnels.
  • the tunnel information includes: an extended tunnel identifier, a tunnel identifier, and a tunnel endpoint address.
  • FIG. 11 is a schematic structural diagram of a first ABR 1100 according to an embodiment of the present invention.
  • the first ABR 1100 of FIG. 11 includes a processor 1101, a memory 1102, a receiving circuit 1103, and a transmitting circuit 1104.
  • the receiving circuit 1103 receives the first BGP label route advertised by the second ABR.
  • the processor 1101 establishes the first BGP LSP of the first ABR to the second ABR according to the first BGP label, and further creates the first MPLS TE tunnel from the first ABR to the second ABR according to the first BGP LSP. .
  • the second ABR can advertise the BGP label route to the first ABR 1100.
  • the first ABR 1100 establishes a BGP LSP, and further triggers the creation according to the BGP LSP.
  • An MPLS TE tunnel from the ABR 1100 to the second ABR can automatically establish an MPLS TE tunnel with the service as required, and improve the configuration efficiency of the MPLS TE tunnel.
  • bus system 1105 which includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • bus system 1105 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • bus system 1105 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • bus system 1105 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • the method disclosed in the foregoing embodiments of the present invention may be applied to the processor 1101 or implemented by the processor 1101.
  • the processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 1101 or an instruction in a form of software.
  • the processor 1101 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or executed.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • Software modules can be located in random access memory, flash memory, only Read memory, programmable read only memory or electrically erasable programmable memory, registers, etc. are well-known in the field of storage media.
  • the storage medium is located in the memory 1102, and the processor 1101 reads the information in the memory 1102, and completes the steps of the above method in combination with the hardware thereof.
  • the first ABR 1100 can implement the processes implemented by the first ABR in the embodiment of FIG. 1 to FIG. 6. To avoid repetition, details are not described herein again.
  • the sending circuit 1104 is configured to send a second BGP label route to the second ABR, so that the second ABR establishes the second ABR to the first ABR according to the second BGP label route. And a second BGP TE tunnel, and the second MPLS TE tunnel is created by the second BGP LSP to the first ABR.
  • the sending circuit 1104 is configured to detect, after the first ABR creates the first MPLS TE tunnel, the second ABR that is shared with the first MPLS TE tunnel to the first An MPLS TE tunnel of the ABR sends a tunnel advertisement message to the second ABR, where the tunnel advertisement message includes the tunnel information of the first MPLS TE tunnel, so that the second ABR creates the tunnel information according to the tunnel information of the first MPLS TE tunnel.
  • the second ABR is connected to the third MPLS TE tunnel of the first ABR, and the third MPLS TE tunnel and the first MPLS TE tunnel are bidirectional multiplex tunnels.
  • the processor 1101 is further configured to: after the first MPLS TE tunnel is created, if the first BGP LSP is revoked and the first BGP LSP is associated with the first MPLS TE tunnel When the unique BGP LSP is deleted, the first MPLS TE tunnel is deleted.
  • FIG. 12 is a schematic structural diagram of a second area border router according to an embodiment of the present invention.
  • the second ABR 1200 of Figure 9 includes a processor 1201, a memory 1202, a receiving circuit 1203, and a transmitting circuit 1204.
  • the processor 1201 generates a first BGP label route.
  • the sending circuit 1204 issues the first BGP label route to the first ABR, so that the first ABR establishes the first BGP LSP to the first BGP LSP according to the first BGP label route, and further according to the first BGP.
  • the LSP creates the first MPLS TE tunnel from the first ABR to the second ABR.
  • the second ABR 1200 can advertise the BGP label route to the first ABR. After receiving the BGP label route, the first ABR establishes a BGP LSP, and further triggers the creation of the first BGP LSP. ABR to the second ABR 1200
  • MPLS TE tunnels enable MPLS TE tunnels to be automatically established as required by services.
  • the second ABR 1200 can implement the processes implemented by the second ABR in the embodiment of FIG. 1 to FIG. 6. To avoid repetition, details are not described herein again.
  • bus system 1205 which in addition to the data bus includes a power bus, a control bus, and a status signal bus.
  • bus system 1205 includes a power bus, a control bus, and a status signal bus.
  • bus system 1205 includes a power bus, a control bus, and a status signal bus.
  • the method disclosed in the foregoing embodiments of the present invention may be applied to the processor 1201 or implemented by the processor 1201.
  • the processor 1201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 1201 or an instruction in a form of software.
  • the processor 1201 described above may be a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or executed.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software modules can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 1202.
  • the processor 1201 reads the information in the memory 1202 and completes the steps of the above method in combination with hardware.
  • the receiving circuit 1203 receives the second BGP label route advertised by the first ABR.
  • the processor 1201 establishes the second ABR to the second BGP LSP of the first ABR according to the second BGP label, and further creates the second MPLS TE tunnel from the second ABR to the first ABR according to the second BGP LSP. .
  • the processor 1201 is further configured to delete the second MPLS TE tunnel.
  • the receiving circuit 1203 receives the tunnel advertisement message sent by the first ABR, where the tunnel advertisement message includes tunnel information of the first MPLS TE tunnel.
  • the processor 1201 obtains the path information of the first MPLS TE tunnel according to the tunnel information of the first MPLS TE tunnel, and further creates the second ABR by using an explicit path manner according to the path information of the first MPLS TE tunnel.
  • the third MPLS TE tunnel of the first ABR, the third MPLS TE tunnel and the first MPLS TE tunnel are bidirectional multiplex tunnels.
  • the tunnel information includes: an extended tunnel identifier, a tunnel identifier, and a tunnel endpoint address.
  • the second ABR can advertise the BGP label route to the first ABR, and the first ABR receives the BGP label.
  • the BGP LSP is established, and the MPLS TE tunnel is created according to the BGP LSP.
  • the MPLS TE tunnel can be automatically established as required by the service and the configuration efficiency of the MPLS TE tunnel is improved. .
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • 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 components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over 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 functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used 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 USB flash drive, a mobile hard disk, and a read-only memory (Read-Only) Memory, ROM), Random Access Memory (RAM), disk or optical disk, and other media that can store program code.
  • a method for establishing a tunnel comprising:
  • the first area border router ABR receives the first border gateway protocol BGP label route advertised by the second ABR;
  • the first ABR establishes a first BGP label switching path LSP from the first ABR to the second ABR according to the first BGP label route;
  • the first ABR creates a first multi-protocol label switching MPLS traffic engineering TE tunnel from the first ABR to the second ABR according to the first BGP LSP.
  • the BGP label routing establishes the second ABR to the second BGP LSP of the first ABR, and further creates a second MPLS TE tunnel from the second ABR to the first ABR according to the second BGP LSP.
  • the method further includes: the first ABR sending a tunnel advertisement message to the second ABR, where the tunnel advertisement message includes the first MPLS TE tunnel Tunnel information, so that the second ABR creates the third MPLS TE tunnel from the second ABR to the first ABR according to the tunnel information of the first MPLS TE tunnel, the third MPLS TE tunnel and the The first MPLS TE tunnel is a bidirectional multiplex tunnel.
  • the first MPLS TE tunnel After the first MPLS TE tunnel is created, if the first BGP LSP is revoked and the first BGP LSP is a unique BGP LSP associated with the first MPLS TE tunnel, The first MPLS TE tunnel.
  • tunnel advertisement message is:
  • BGP updates the UPDATE message or the label distribution protocol LDP mapping.

Landscapes

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

Abstract

本发明实施例提供了一种隧道建立的方法及路由器。该方法包括:第一ABR接收第二ABR发布的第一BGP标签路由,根据该第一BGP标签路由建立该第一ABR到该第二ABR的第一BGP LSP,并进一步根据该第一BGP LSP创建该第一ABR到该第二ABR的第一MPLS TE隧道。通过本发明实施例提供的技术方案,当第一ABR到第二ABR需要使用MPLS TE隧道传送业务时,第二ABR可以向第一ABR发布BGP标签路由,第一ABR在接收到BGP标签路由后,建立BGP LSP,并进一步根据BGP LSP来触发创建第一ABR到第二ABR的MPLS TE隧道,能够使MPLS TE隧道随业务按需自动建立,并且提高了MPLS TE隧道的配置效率。

Description

隧道建立的方法及路由器 本申请要求于 2013年 09月 05 日提交中国专利局、 申请号为 CN 201310399870.6、 发明名称为 "隧道建立的方法及路由器" 的中国专利申 请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明实施例涉及通信领域, 具体涉及一种隧道建立的方法及路由 哭口
背景技术
多协议标签交换 ( Multi-Protocol Label Switching, MPLS ) 在广域网 中的价值已经得到证实, 并影响着众多服务提供商的广域网建设思路。 MPLS简化了对数据包的处理, 提高了数据包的转发效率; 基于 MPLS的 流量工程(Traffic Engineering, TE )及快速路由保护等技术, 提升了网络 服务质量(Quality of Service, QoS ) ; 尤其是, MPLS将多个网络融合到 一个以以太网 (Ethernet ) 为架构的基础设施上, 使得单一转发模式的优 势得到充分体现, 网络的成本效益也不言而喻。 当 MPLS功能逐步从网络 核心层延伸到接入层时, 即形成了端到端无缝 MPLS ( Seamless MPLS ) 体系。 无缝 MPLS将所有业务都在接入层进行 MPLS封装, 形成了由核心 层到城域层、 再到接入层的统一的 MPLS控制平面, 极大地降低了网络规 划与运维的难度。 无缝 MPLS由控制层和业务层构成。 控制层主要釆用边 界网关协议 ( Border Gateway Protocol, BGP )来进行不同区域之间的路由 信息交互, 每个区域内部则釆用中间系统到中间系统 ( Intermediate System-Intermediate System, IS-IS ) 协议; 业务层提供虚拟专用局域网服 务( Virtual Private LAN Service , VPLS ) 等不同应用。
无缝 MPLS在核心层和城域层部署全连接的 MPLS流量工程 (MPLS Traffic Engineering, MPLS TE ) 隧道; 区域之间釆用 BGP标签交换路径 ( BGP Label Switch Path, BGP LSP ) 粘连在一起。 但是 MPLS TE隧道一 般釆用静态手工的配置方法, 并且典型的 MPLS TE隧道需要 10个命令左 右。 这样导致 MPLS TE隧道配置的效率低, 而且配置量大, 容易出错且 不易维护; 当业务发放发生变化时, MPLS TE隧道不能随业务发展自动变 化, 缺乏灵活性。
发明内容
本发明实施例提供了一种隧道建立的方法及路由器,以解决 MPLS TE 隧道配置效率低的问题。
第一方面, 提供了一种隧道建立的方法, 包括: 第一区域边界路由器
( Area Border Router, ABR )接收第二 ABR发布的第一 BGP标签路由; 所述第一 ABR根据所述第一 BGP标签路由建立所述第一 ABR到所述第 二 ABR的第一 BGP LSP; 所述第一 ABR根据所述第一 BGP LSP创建所 述第一 ABR到所述第二 ABR的第一 MPLS TE隧道。
结合所述第一方面, 在所述第一方面的第一种可能的实现方式中, 所 述第一 ABR向所述第二 ABR发布第二 BGP标签路由,以便所述第二 ABR 根据所述第二 BGP标签路由建立所述第二 ABR到所述第一 ABR的第二 BGP LSP, 并进一步根据所述第二 BGP LSP创建从所述第二 ABR到所述 第一 ABR的第二 MPLS TE隧道。
结合所述第一方面, 在所述第一方面的第二种可能的实现方式中, 所 述第一 ABR向所述第二 ABR发送隧道通告消息, 所述隧道通告消息包括 所述第一 MPLS TE隧道的隧道信息, 以便所述第二 ABR根据所述第一 MPLS TE隧道的隧道信息创建所述第二 ABR到所述第一 ABR的第三 MPLS TE隧道, 所述第三 MPLS TE隧道和所述第一 MPLS TE隧道为双 向共路隧道。
结合所述第一方面或所述第一方面的上述任意一种可能的实现方式, 还提供了所述第一方面的第三种可能的实现方式, 在所述第一方面的第三 种可能的实现方式中, 所述第一 ABR在创建了所述第一 MPLS TE隧道之 后, 如果所述第一 BGP LSP被撤销且所述第一 BGP LSP是与所述第一 MPLS TE隧道关联的唯一 BGP LSP时, 删除所述第一 MPLS TE隧道。
结合所述第一方面的第二种可能的实现方式, 在所述第一方面的第四 种可能的实现方式中, 所述第一 ABR向所述第二 ABR以 BGP更新 UPDATE消息或标签分发协议 LDP映射 Mapping消息的形式发送所述隧 道通告消息。
结合所述第一方面的第二种可能的实现方式或者所述第一方面的第 四种可能的实现方式, 还提供了所述第一方面的第五种可能的实现方式, 在所述第一方面的第五种可能的实现方式中, 所述隧道信息包括: 扩展的 隧道标识、 隧道标识和隧道端点地址。
第二方面, 提供了一种隧道建立的方法, 包括: 第二 ABR生成第一 BGP标签路由; 所述第二 ABR向所述第一 ABR发布所述第一 BGP标签 路由,以便所述第一 ABR根据所述第一 BGP标签路由建立所述第一 ABR 到所述第二 ABR的第一 BGP LSP, 并进一步根据所述第一 BGP LSP创建 所述第一 ABR到所述第二 ABR的第一 MPLS TE隧道。
结合所述第二方面, 在所述第二方面的第一种可能的实现方式中, 所 述第二 ABR接收所述第一 ABR发布的第二 BGP标签路由;所述第二 ABR 根据所述第二 BGP标签路由建立所述第二 ABR到所述第一 ABR的第二 BGP LSP; 所述第二 ABR根据所述第二 BGP LSP创建所述第二 ABR到 所述第一 ABR的第二 MPLS TE隧道。
结合所述第二方面的第一种可能的实现方式, 在所述第二方面的第二 种可能的实现方式中, 所述第二 ABR在创建了所述第二 MPLS TE隧道之 后, 如果所述第二 BGP LSP被撤销且所述第二 BGP LSP是与所述第二 MPLS TE隧道关联的唯一 BGP LSP时, 删除所述第二 MPLS TE隧道。 结合所述第二方面的第一种可能的实现方式, 在所述第二方面的第三 种可能的实现方式中, 所述第二 ABR接收所述第一 ABR发送的隧道通告 消息, 所述隧道通告消息包括所述第一 MPLS TE隧道的隧道信息; 所述 第二 ABR根据所述第一 MPLS TE隧道的隧道信息, 获取所述第一 MPLS TE隧道的路径信息; 所述第二 ABR根据所述第一 MPLS TE隧道的路径 信息,釆用显式路径方式创建所述第二 ABR到所述第一 ABR的第三 MPLS TE隧道, 所述第三 MPLS TE隧道和所述第一 MPLS TE隧道为双向共路 隧道。
结合所述第二方面的第三种可能的实现方式, 在所述第二方面的第四 种可能的实现方式中, 所述隧道信息包括: 扩展的隧道标识、 隧道标识和 隧道端点地址。
第三方面, 提供了一种第一 ABR, 包括: 接收单元, 用于接收第二 ABR发布的第一 BGP标签路由; 处理单元, 用于根据所述第一 BGP标签 路由建立所述第一 ABR到所述第二 ABR的第一 BGP LSP,并进一步根据 所述第一 BGP LSP创建所述第一 ABR到所述第二 ABR的第一 MPLS TE 隧道。
结合所述第三方面, 在所述第三方面的第一种可能的实现方式中, 所 述第一 ABR还包括发送单元, 用于向所述第二 ABR发布第二 BGP标签 路由,以便所述第二 ABR根据所述第二 BGP标签路由建立所述第二 ABR 到所述第一 ABR的第二 BGP LSP, 并进一步根据所述第二 BGP LSP创建 所述第二 ABR到所述第一 ABR的第二 MPLS TE隧道。
结合所述第三方面, 在所述第三方面的第二种可能的实现方式中, 所 述第一 ABR还包括发送单元, 用于向所述第二 ABR发送隧道通告消息, 所述隧道通告消息包括所述第一 MPLS TE隧道的隧道信息, 以便所述第 二 ABR根据所述第一 MPLS TE隧道的隧道信息创建所述第二 ABR到所 述第一 ABR的第三 MPLS TE隧道, 所述第三 MPLS TE隧道和所述第一 MPLS TE隧道为双向共路隧道。
结合所述第三方面或所述第三方面的上述任意一种可能的实现方式, 还提供了所述第三方面的第三种可能的实现方式, 在所述第三方面的第三 种可能的实现方式中, 所述处理单元,还用于在创建了所述第一 MPLS TE 隧道之后, 如果所述第一 BGP LSP被撤销且所述第一 BGP LSP是与所述 第一 MPLS TE隧道关联的唯一 BGP LSP时, 删除所述第一 MPLS TE隧 道。
第四方面, 提供了一种第二 ABR, 包括: 生成单元, 用于生成第一
BGP标签路由; 发送单元, 用于向所述第一 ABR发布所述第一 BGP标签 路由,以便所述第一 ABR根据所述第一 BGP标签路由建立所述第一 ABR 到所述第二 ABR的第一 BGP LSP, 并进一步根据所述第一 BGP LSP创建 所述第一 ABR到所述第二 ABR的第一 MPLS TE隧道。
结合所述第四方面, 在第一种可能的实现方式中, 所述第二 ABR还 包括: 接收单元, 用于接收所述第一 ABR发布的第二 BGP标签路由; 处 理单元, 用于根据所述第二 BGP标签路由建立所述第二 ABR到所述第一
ABR的第二 BGP LSP , 并进一步根据所述第二 BGP LSP创建所述第二
ABR到所述第一 ABR的第二 MPLS TE隧道。
结合所述第四方面的第一种可能的实现方式, 在所述第四方面的第二 种可能的实现方式中, 所述处理单元,还用于在创建了所述第二 MPLS TE 隧道之后, 如果所述第二 BGP LSP被撤销且所述第二 BGP LSP是与所述 第二 MPLS TE隧道关联的唯一 BGP LSP时, 删除所述第二 MPLS TE隧 道。
结合所述第四方面, 在所述第四方面的第三种可能的实现方式中, 所 述第二 ABR还包括: 接收单元, 用于接收所述第一 ABR发送的隧道通告 消息, 所述隧道通告消息包括所述第一 MPLS TE隧道的隧道信息; 处理 单元,用于根据所述第一 MPLS TE隧道的隧道信息,获取所述第一 MPLS TE隧道的路径信息, 并进一步根据所述第一 MPLS TE隧道的路径信息, 釆用显式路径方式创建所述第二 ABR到所述第一 ABR的第三 MPLS TE 隧道,所述第三 MPLS TE隧道和所述第一 MPLS TE隧道为双向共路隧道。
结合所述第四方面的第三种可能的实现方式, 在所述第四方面的第四 种可能的实现方式中, 所述隧道信息包括: 扩展的隧道标识、 隧道标识和 隧道端点地址。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR到第二 ABR 需要使用 MPLS TE隧道传送业务时,第二 ABR可以向第一 ABR发布 BGP 标签路由, 第一 ABR在接收到 BGP标签路由后, 建立 BGP LSP, 并进一 步根据 BGP LSP来触发创建该第一 ABR到该第二 ABR的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高了 MPLS TE隧道的 配置效率。
附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对本发明实施例 中所需要使用的附图作简单地介绍, 显而易见地, 下面所描述的附图仅仅 是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性 劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明一个实施例的隧道部署的方法的流程示意图。
图 2是本发明另一个实施例的隧道部署的方法的流程示意图。
图 3是本发明另一个实施例的隧道部署的过程的示意流程图。
图 4是本发明另一个实施例的隧道部署的过程的示意流程图。
图 5是本发明另一个实施例的隧道部署的过程的示意流程图。
图 6是本发明一个实施例的隧道封装属性的示意图。 图 7是本发明一个实施例的隧道信息的示意图。
图 8是本发明另一个实施例的隧道部署的过程的示意流程图。
图 9是本发明一个实施例的第一区域边界路由器的结构示意图。
图 10是本发明另一个实施例的第二区域边界路由器的结构示意图。 图 11是本发明另一个实施例的第一区域边界路由器的结构示意图。 图 12是本发明另一个实施例的第二区域边界路由器的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不是全部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有 做出创造性劳动的前提下所获得的所有其他实施例, 都应属于本发明保护 的范围。
图 1是本发明一个实施例的隧道建立的方法的流程示意图。 图 1所示 的方法包括:
101 , 第一 ABR接收第二 ABR发布的第一 BGP标签路由。
102 , 该第一 ABR根据该第一 BGP标签路由建立该第一 ABR到该第 二 ABR的第一 BGP LSP。
103 , 该第一 ABR根据该第一 BGP LSP创建该第一 ABR到该第二
ABR的第一 MPLS TE隧道。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR到第二 ABR 需要使用 MPLS TE隧道传送业务时,第二 ABR可以向第一 ABR发布 BGP 标签路由, 第一 ABR在接收到 BGP标签路由后, 建立 BGP LSP, 并进一 步根据 BGP LSP来触发创建该第一 ABR到该第二 ABR的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高了 MPLS TE隧道的 配置效率。
本发明实施例中, 该第一 BGP LSP以该第一 ABR为入口节点
( Ingress ) , 以该第二 ABR为出口节点 ( Egress ) 。 该第一 MPLS TE隧 道以该第一 ABR为入口节点 (Ingress ) , 以该第二 ABR为出口节点 ( Egress ) 。
可选地, 作为一个实施例, 图 1所示的方法还包括: 该第一 ABR向 该第二 ABR发布第二 BGP标签路由, 以便该第二 ABR根据该第二 BGP 标签路由建立该第二 ABR到该第一 ABR的第二 BGP LSP ,并进一步根据 该第二 BGP LSP创建该第二 ABR到该第一 ABR的第二 MPLS TE隧道。 从而能够实现所述第一 ABR到所述第二 ABR的反向 MPLS TE隧道的建 立, 完成了该第一 ABR和该第二 ABR之间端到端的双向隧道的创建, 进 而可以用来承载该第一 ABR和该第二 ABR之间诸如伪线 ( Pseudo Wire , PW ) 等的业务。
本发明实施例中, 该第二 BGP LSP以该第二 ABR为 Ingress , 以该第 一 ABR为 Egress。 该第二 MPLS TE隧道以该第二 ABR为 Ingress , 以该 第一 ABR为 Egress。
可选地, 作为另一个实施例, 图 1所示的方法还包括: 该第一 ABR 向该第二 ABR发送隧道通告消息, 该隧道通告消息包括该第一 MPLS TE 隧道的隧道信息, 以便该第二 ABR根据该第一 MPLS TE隧道的隧道信息 创建该第二 ABR到该第一 ABR的第三 MPLS TE隧道 , 该第三 MPLS TE 隧道和该第一 MPLS TE隧道为双向共路隧道。 具体地, 在该第一 ABR创 建该第一 MPLS TE隧道之后, 没有检测到有与该第一 MPLS TE隧道共路 的该第二 ABR到该第一 ABR的 MPLS TE隧道时,该第一 ABR向该第二 ABR发送该隧道通告消息, 该隧道通告消息包括该第一 MPLS TE隧道的 隧道信息。 其中, 该第三 MPLS TE隧道和该第一 MPLS TE隧道为双向共 路隧道具体为:该第三 MPLS TE隧道和该第一 MPLS TE隧道的方向是相 反的 ,并且该第三 MPLS TE隧道和该第一 MPLS TE隧道的路径是一致的。 也就是说, 具有相同路径的两条方向相反的隧道即可称为是双向共路隧 道。
可选地, 作为另一个实施例, 图 1所示的方法还包括: 该第一 ABR 在创建了该第一 MPLS TE隧道之后, 如果该第一 BGP LSP被撤销且该第 一 BGP LSP是与该第一 MPLS TE隧道关联的唯一 BGP LSP时, 删除该 第一 MPLS TE隧道。 这样便实现了 MPLS TE隧道随业务按需自动删除, 能够节省带宽资源。
可选地,作为另一个实施例,该隧道通告消息为 BGP更新(UPDATE ) 消息或标签分发协议(Label Distribution Protocol, LDP ) 映射(Mapping ) 消息。
可选地, 作为另一个实施例, 该第一 ABR也可通过其他方式向该第 二 ABR发送该第一 MPLS TE隧道的隧道信息, 本发明对此不作限定。
可选地, 作为另一个实施例, 该隧道信息包括扩展的隧道标识、 隧道 标识和隧道端点地址。
在无缝 MPLS场景中, 各个区域负责各自区域内的路由连通, 不会预 先部署 MPLS TE隧道。 当第一 ABR到第二 ABR需要使用 MPLS TE隧道 传送用于业务时, 第二 ABR可以向第一 ABR发送 BGP标签路由, 第一 ABR在接收到 BGP标签路由后, 建立 BGP LSP, 并进一步根据 BGP LSP 来触发创建第一 ABR到第二 ABR的 MPLS TE隧道,能够使 MPLS TE隧 道随业务按需自动建立, 并且提高了 MPLS TE隧道的配置效率。
图 2是本发明另一个实施例的隧道建立的方法的流程示意图。 图 2所 示的方法包括:
201 , 第二 ABR生成第一 BGP标签路由。
202 , 该第二 ABR向该第一 ABR发布该第一 BGP标签路由, 以便该 第一 ABR根据该第一 BGP标签路由建立该第一 ABR到该第二 ABR的第 一 BGP LSP, 并进一步根据该第一 BGP LSP创建该第一 ABR到该第二 ABR的第一 MPLS TE隧道。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR到第二 ABR 需要使用 MPLS TE隧道传送业务时,第二 ABR可以向第一 ABR发布 BGP 标签路由, 第一 ABR在接收到 BGP标签路由后, 建立 BGP LSP, 并进一 步根据 BGP LSP来触发创建该第一 ABR到该第二 ABR的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高了 MPLS TE隧道的 配置效率。
可选地, 作为一个实施例, 该方法还包括: 该第二 ABR接收该第一 ABR发布的第二 BGP标签路由。 该第二 ABR根据该第二 BGP标签路由 建立该第二 ABR到该第一 ABR的第二 BGP LSP。 该第二 ABR根据该第 二 BGP LSP创建该第二 ABR到该第一 ABR的第二 MPLS TE隧道。
可选地, 作为另一个实施例, 该方法还包括: 该第二 ABR在创建了 该第二 MPLS TE隧道之后, 如果该第二 BGP LSP被撤销且该第二 BGP LSP是与该第二 MPLS TE隧道关联的唯一 BGP LSP时,删除该第二 MPLS TE隧道。 这样便实现了 MPLS TE隧道随业务按需自动删除, 能够节省带 宽资源。
可选地, 作为一个实施例, 该方法还包括: 该第二 ABR接收该第一 ABR发送的隧道通告消息, 该隧道通告消息包括该第一 MPLS TE隧道的 隧道信息。 该第二 ABR根据该第一 MPLS TE隧道的隧道信息, 获取该第 一 MPLS TE隧道的路径信息。 该第二 ABR根据该第一 MPLS TE隧道的 路径信息,釆用显式路径方式创建该第二 ABR到该第一 ABR的第三 MPLS TE隧道, 该第三 MPLS TE隧道和该第一 MPLS TE隧道为双向共路隧道。 其中,该第三 MPLS TE隧道和该第一 MPLS TE隧道为双向共路隧道是指 , 该第三 MPLS TE隧道和该第一 MPLS TE隧道的方向是相反的, 并且该第 三 MPLS TE隧道和该第一 MPLS TE隧道的路径是一致的。 也就是说, 具 有相同路径的两条方向相反的隧道即可称为是双向共路隧道。
可选地, 作为另一个实施例, 该隧道信息包括扩展的隧道标识、 隧道 标识和隧道端点地址。
图 3是本发明另一个实施例的隧道建立的过程的示意流程图。
303 , 第二 ABR 302生成第一 BGP标签路由。
可选地, 作为一个实施例, 当第一 ABR 301到第二 ABR 302需要使 用 MPLS TE隧道用于传送业务时,第二 ABR 302会生成第一 BGP标签路 由, 该第一 BGP标签路由的前缀部分可以为该第二 ABR的地址, 也可以 是该第二 ABR所在域的其他路由地址, 本发明对此不作限定。
可选地, 作为一个实施例, 该业务可以是二层虚拟私有网络(Layer 2
Virtual Private Network, L2VPN ) , 可以是三层虚拟私有网络( Layer 3 Virtual Private Network, L3VPN ) , 还可以是 PW, 本发明对此不作限定。 并且该业务需要诸如 LSP或者 TE隧道的传输通道进行承载。
304 , 第二 ABR 302向第一 ABR 301发布该第一 BGP标签路由。 305 , 第一 ABR 301接收到该第一 BGP标签路由之后, 建立该第一
ABR 301到该第二 ABR 302的第一 BGP LSP。
306 , 第一 ABR 301根据该第一 BGP LSP创建该第一 ABR 301到该 第二 ABR 302的第一 MPLS TE隧道。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR到第二 ABR 需要使用 MPLS TE隧道传送业务时,第二 ABR可以向第一 ABR发布 BGP 标签路由, 第一 ABR在接收到 BGP标签路由后, 建立 BGP LSP, 并进一 步根据 BGP LSP来触发创建该第一 ABR到该第二 ABR的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高了 MPLS TE隧道的 配置效率。
可选地, 作为一个实施例, 在步骤 306中, 第一 ABR 301在建立该第 一 BGP LSP之后, 第一 ABR 301创建该第一 ABR 301到该第二 ABR 302 的第一 MPLS TE隧道。 具体地, 在步骤 306中, 该第一 ABR 301在建立 了该第一 BGP LSP之后,向该第二 ABR 302发送资源预留协议( Resource Reservation Protocol, RSVP )路径 ( PATH ) 消息。 该第二 ABR 302接收 到该 RSVP PATH消息后向该第一 ABR 301返回 RSVP保留 ( RESV ) 消 息。该第一 ABR 301在收到该 RSVP RESV消息之后创建该第一 ABR 301 到该第二 ABR 302的该第一 MPLS TE隧道。
可选地,作为另一个实施例, 第一 ABR 301在步骤 306创建了该第一 MPLS TE隧道之后,如果该第一 BGP LSP被撤销且该第一 BGP LSP是与 该第一 MPLS TE隧道关联的唯一 BGP LSP时 , 删除该第一 MPLS TE隧 道。 具体地, 该第一 BGP标签路由会随业务变化不断刷新, 也即该第一 BGP LSP也会不断刷新。 当第二 ABR 302在预定的时间段内没有发布刷 新的第一 BGP标签路由, 并且该第一 BGP LSP是与该第一 MPLS TE隧 道关联的唯一 BGP LSP时, 第一 ABR 301删除已经创建的第一 MPLS TE 隧道。 这样便实现了 MPLS TE隧道随业务按需自动删除, 能够节省带宽 资源。
可选地, 作为另一个实施例, 在步骤 306之后, 如图 4所示, 该过程 还可以包括:
407 , 第一 ABR 301生成第二 BGP标签路由。
可选地, 作为一个实施例, 当第二 ABR 302到第一 ABR 301需要使 用 MPLS TE隧道传送业务时, 第一 ABR 301会生成第二 BGP标签路由。
可选地, 作为一个实施例, 该业务可以是 L2VPN, 可以是 L3VPN, 还可以是 PW, 本发明对此不作限定。 并且该业务需要诸如 LSP或者 TE 隧道的传输通道进行承载。
408 , 第一 ABR 301向第二 ABR 302发布该第二 BGP标签路由。 409 , 第二 ABR 302接收到该第二 BGP标签路由之后, 建立该第二
ABR 302到该第一 ABR 301的第二 BGP LSP。 410 , 第二 ABR 302根据该第二 BGP LSP创建该第二 ABR 302到该 第一 ABR 301的第二 MPLS TE隧道。
可选地, 作为一个实施例, 在步骤 410中, 第二 ABR 302在建立该第 二 BGP LSP之后, 第二 ABR 302创建该第二 ABR 302到该第一 ABR 301 的第二 MPLS TE隧道。 具体地, 在步骤 410中, 该第二 ABR 302在建立 了该第二 BGP LSP之后, 向该第一 ABR 301发送 RSVP PATH消息。 该 第一 ABR 301接收到该 RSVP PATH消息后向该第二 ABR 302返回 RSVP RESV消息。 该第二 ABR 302在收到该 RSVP RESV消息之后创建该第二 ABR 302到该第一 ABR 301的该第二 MPLS TE隧道。
可选地,作为另一个实施例, 第二 ABR 302在步骤 410创建了该第二
MPLS TE隧道之后,如果该第二 BGP LSP被撤销且该第二 BGP LSP是与 该第二 MPLS TE隧道关联的唯一 BGP LSP时 , 删除该第二 MPLS TE隧 道。 这样便实现了 MPLS TE隧道随业务按需自动删除, 能够节省带宽资 源。
应注意,本发明实施例中该第二 MPLS TE隧道的创建和该第一 MPLS
TE隧道的创建时相互独立的, 两者不相互依赖。 这样, 本发明实施例通 过发布的 BGP标签路由建立的 BGP LSP来触发创建所需的 MPLS TE隧 道。 当双向的 BGP LSP分别建立之后, 就触发创建了端到端的双向 MPLS TE隧道。
图 5是本发明另一个实施例的隧道建立的过程的示意流程图。
503 , 第二 ABR 502生成第一 BGP标签路由。
具体地, 当第一 ABR 501到第二 ABR 502需要使用 MPLS TE隧道用 于传送业务时, 第二 ABR 502会生成第一 BGP标签路由。 本发明实施例 中的业务可以是 L2VPN, 可以是 L3VPN, 还可以是 PW, 本发明对此不 作限定。 并且该业务需要诸如 LSP或者 TE隧道的传输通道进行承载。
504 , 第二 ABR 502向第一 ABR 501发布该第一 BGP标签路由。 505 , 第一 ABR 501接收到该第一 BGP标签路由之后, 建立该第一 ABR 501到该第二 ABR 502的第一 BGP LSP。
506 , 第一 ABR 501根据该第一 BGP LSP创建该第一 ABR 501到该 第二 ABR 502的第一 MPLS TE隧道。
可选地 ,作为一个实施例 ,如果在步骤 506之前已经存在第一 ABR 501 到第二 ABR 502的现有 MPLS TE隧道, 那么该第一 ABR 501在建立该 BGP LSP之后, 将该现有 MPLS TE隧道替换为该第一 MPLS TE隧道。
507 , 在该第一 MPLS TE隧道创建之后, 如果没有检测到有与该第一 MPLS TE隧道共路的该第二 ABR 502到该第一 ABR 501的 MPLS TE隧 道时, 该第一 ABR 501向该第二 ABR 502发送隧道通告消息, 该隧道通 告消息包括该第一 MPLS TE隧道的隧道信息。
可选地 , 作为一个实施例, 该隧道通告消息为 BGP UPDATE消息或 LDP Mapping消息。
可选地, 作为另一个实施例, 该第一 ABR也可通过其他方式向该第 二 ABR发送该隧道通告消息, 本发明对此不作限定。
可选地, 作为一个实施例, 该第一 MPLS TE隧道的隧道信息包括扩 展的隧道标识、 隧道标识和隧道端点地址。 该扩展的隧道标识包括隧道类 型和隧道名称。
可选地, 作为一个实施例, 该隧道通告信息通过协议中的 "Tunnel Encapsulation Attribute (隧道封装属性) " 携带进行传递, 如图 6所示, 隧道封装属性包括一组类型-长度-值 (Type-Length- Value, TLV ) 的编码 值。 其中隧道类型 (Tunnel Type ) 字段为 2个八位字节 (Octets ) , 长度 ( Length )字段为 2个八位字节, 值(Value )字段会携带该隧道信息的具 体内容, 如图 7所示, 其中:
扩展的隧道标识 ( Extended Tunnel ID ) , 用于携带所述第一 ABR的 标识; 隧道标识 ( Tunnel ID ) , 用于标识所述第一 MPLS TE隧道; 隧道端点地址( Tunnel End Point Address ) , 用于标识所述第一 MPLS TE隧道的目的地址, 即所述第二 ABR的地址。
该 Extended Tunnel ID、 Tunnel ID和 Tunnel End Point Address用于唯 一标识所述第一 MPLS TE隧道。
可选地,作为另一个实施例,该隧道类型为 8 ,该隧道名称为 RSVP-TE LSP, 见表 1所示。 应注意, 本发明实施例中的隧道类型 8仅是一个示意 性的例子, 该隧道类型值实际是由互联网编号分配机构( Internet Assigned Numbers Authority, IANA )分配的隧道类型编码值, 可以是从 8至 65535 中的任意一个值, 本发明对此不作限定。
表 1
Figure imgf000016_0001
508 , 该第二 ABR 502根据该第一 MPLS TE隧道的隧道信息 , 获取 该第一 MPLS TE隧道的路径信息。
可选地,作为一个实施例,该第二 ABR 502接收该隧道通告消息之后 , 识别隧道类型以确定该隧道信息是用于指示该 MPLS TE隧道的。 例如, 如表 1所示的一例, 该第二 ABR 502识别出隧道类型为 8 , 确定其隧道名 称为 RSVP-TE LSP, 然后该第二 ABR 502根据该第一 MPLS TE隧道的隧 道信息, 具体地, 该第二 ABR 502查找该第一 MPLS TE隧道的隧道信息 中的隧道标识和流量工程数据库 ( Traffic Engineering DataBase, TEDB ) 以获取该第一 MPLS TE隧道的路径信息。
509 , 该第二 ABR 502根据该第一 MPLS TE隧道的路径信息, 釆用 显式路径方式创建该第二 ABR 502到该第一 ABR401的第三 MPLS TE隧 道,该第三 MPLS TE隧道和该第一 MPLS TE隧道为双向共路隧道。其中, 该第三 MPLS TE隧道和该第一 MPLS TE隧道为双向共路隧道是指,该第 三 MPLS TE隧道和该第一 MPLS TE隧道的方向是相反的, 并且该第三 MPLS TE隧道和该第一 MPLS TE隧道的路径是一致的。 也就是说, 具有 相同路径的两条方向相反的隧道即可称为是双向共路隧道。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR到第二 ABR 需要使用 MPLS TE隧道传送业务时,第二 ABR可以向第一 ABR发布 BGP 标签路由, 第一 ABR在接收到 BGP标签路由后, 建立 BGP LSP, 并进一 步根据 BGP LSP来触发创建该第一 ABR到该第二 ABR的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高了 MPLS TE隧道的 配置效率。
可选地, 作为一个实施例, 第一 ABR 501在步骤 506创建了该第一 MPLS TE隧道之后,如果该第一 BGP LSP被撤销且该第一 BGP LSP是与 该第一 MPLS TE隧道关联的唯一 BGP LSP时 , 删除该第一 MPLS TE隧 道。 具体地, 该第一 BGP标签路由会随业务变化不断刷新, 也即该第一 BGP LSP也会不断刷新。 当第二 ABR 502在预定的时间段内没有发布刷 新的第一 BGP标签路由, 并且该第一 BGP LSP是与该第一 MPLS TE隧 道关联的唯一 BGP LSP时, 第一 ABR 501删除已经创建的第一 MPLS TE 隧道。 这样, 便实现了 MPLS TE隧道的按需删除。
这样, 本发明实施例通过由与业务相关的 BGP标签路由建立的 BGP
LSP来触发 MPLS TE隧道的创建, 实现了 MPLS TE隧道的随业务按需自 动建立, 并且每一段 MPLS TE隧道都有与之严格双向共路的反向 MPLS TE隧道。
图 8是本发明另一个实施例的隧道建立的过程的示意流程图。 本发明 实施例中的步骤 803至 806可参见前述图 5中的步骤 503至 506 , 本发明 实施例中的步骤 813至 815可参见前述图 5中的步骤 507至 509 , 为避免 重复, 这里不再赘述。
803 , 第二 ABR 802生成第一 BGP标签路由。
具体地, 当第一 ABR 801到第二 ABR 802需要使用 MPLS TE隧道用 于传送业务时, 第二 ABR 802会生成第一 BGP标签路由。 本发明实施例 中的业务可以是 L2VPN, 可以是 L3VPN, 还可以是 PW, 本发明对此不 作限定。 并且该业务需要诸如 LSP或者 TE隧道的传输通道进行承载。
804 , 第二 ABR 802向第一 ABR 801发布该第一 BGP标签路由。
805 , 第一 ABR 801接收到该第一 BGP标签路由之后, 建立该第一 ABR 801到该第二 ABR 802的第一 BGP LSP。
806 , 第一 ABR 801根据该第一 BGP LSP创建该第一 ABR 801到该 第二 ABR 802的第一 MPLS TE隧道。
可选地,作为一个实施例,如果在步骤 806之前已经存在第一 ABR 801 到第二 ABR 802的现有 MPLS TE隧道, 那么该第一 ABR 801在建立该 BGP LSP之后, 将该现有 MPLS TE隧道替换为该第一 MPLS TE隧道。
807 ,在该第一 MPLS TE隧道创建之后 ,如果检测到有与该第一 MPLS
TE隧道共路的该第二 ABR 802到该第一 ABR 801的现有 MPLS TE隧道 时,将该现有 MPLS TE隧道确定为第三 MPLS TE隧道。并且该第三 MPLS TE隧道与该第一 MPLS TE隧道双向共路。
808 , 该第一 ABR 801在创建了该第一 MPLS TE隧道之后, 如果该 第一 BGP LSP被撤销且该第一 BGP LSP是与该第一 MPLS TE隧道关联 的唯一 BGP LSP时, 删除该第一 MPLS TE隧道。
809 , 第一 ABR 801生成第二 BGP标签路由。
具体地, 当第二 ABR 802到第一 ABR 801需要使用 MPLS TE隧道用 于传送业务时, 向第一 ABR 801申请标签, 此时第一 ABR 801生成第一 BGP标签路由。 本发明实施例中的业务可以是 L2VPN, 可以是 L3VPN, 还可以是 PW, 本发明对此不作限定。 并且该业务需要诸如 LSP或者 TE 隧道的传输通道进行承载。
810 , 第一 ABR 801向第二 ABR 802发布该第二 BGP标签路由。
811 , 第二 ABR 802接收到该第二 BGP标签路由之后, 建立该第二 ABR 802到该第一 ABR 801的第二 BGP LSP。
812 , 第二 ABR 802根据该第二 BGP LSP将步骤 807所创建的第三
MPLS TE隧道替换为第四 MPLS TE隧道。
具体地, 第二 ABR 802建立该第二 BGP LSP之后, 检测到存在有该 第二 ABR 802到该第一 ABR 801的第三 MPLS TE隧道后,将该第三 MPLS TE隧道替换为根据该第二 BGP LSP创建的该第二 ABR 802到该第一 ABR 801的第四 MPLS TE隧道。其中,该第四 MPLS TE隧道以该第二 ABR 802 为 Ingress, 以该第一 ABR 801为 Egress。
813 , 该第二 ABR 802向该第一 ABR 801发送隧道通告消息, 该隧道 通告消息包括该第四 MPLS TE隧道的隧道信息。
可选地, 作为另一个实施例, 该隧道通告消息为 BGP UPDATE消息 或 LDP Mapping消息。
可选地,作为另一个实施例, 该第二 ABR 802也可通过其他方式向该 第一 ABR 801发送该第一 MPLS TE隧道的隧道信息, 本发明对此不作限 定。
可选地, 作为一个实施例, 该第四 MPLS TE隧道的隧道信息包括扩 展的隧道标识、 隧道标识和隧道端点地址。 其中该扩展的隧道标识包括隧 道类型和隧道名称。
可选地, 作为另一个实施例, 该扩展的隧道标识中的隧道类型为 8, 该隧道名称为 RSVP-TE LSP, 见表 1所示。 应注意, 本发明实施例中的隧 道类型 8仅是一个示意性的例子, 该隧道类型值实际是由 IANA分配的隧 道类型编码值, 可以是从 8至 65535中的任意一个值, 本发明对此不作限 定。 814 , 该第一 ABR 801根据接收到的该隧道通告消息之后, 根据其中 的第四 MPLS TE隧道的隧道信息,获取该第四 MPLS TE隧道的路径信息。
815 , 该第一 ABR 801根据该第四 MPLS TE隧道的路径信息, 釆用 显式路径方式创建该第一 ABR 801到该第二 ABR 802的第五 MPLS TE隧 道, 该第五 MPLS TE隧道和该第四 MPLS TE隧道为双向共路隧道。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR到第二 ABR 需要使用 MPLS TE隧道传送业务时,第二 ABR可以向第一 ABR发布 BGP 标签路由, 第一 ABR在接收到 BGP标签路由后, 建立 BGP LSP, 并进一 步根据 BGP LSP来触发创建该第一 ABR到该第二 ABR的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高了 MPLS TE隧道的 配置效率。
图 9是本发明一个实施例的第一 ABR 900的结构示意图。图 9所示的 第一 ABR 900包括接收单元 901和处理单元 902。
接收单元 901 , 用于接收第二 ABR发布的第一 BGP标签路由。 处理 单元 902 , 用于根据该第一 BGP标签路由建立该第一 ABR到该第二 ABR 的第一 BGP LSP, 并进一步根据该第一 BGP LSP创建该第一 ABR到该第 二 ABR的第一 MPLS TE隧道。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR 900到第二 ABR需要使用 MPLS TE隧道传送业务时,第二 ABR可以向第一 ABR 900 发布 BGP标签路由, 第一 ABR 900在接收到 BGP标签路由后, 建立 BGP LSP, 并进一步根据 BGP LSP来触发创建该第一 ABR 900到该第二 ABR 的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高 了 MPLS TE隧道的配置效率。
第一 ABR 900能够实现图 1至图 6的实施例中由第一 ABR执行的各 个过程, 为避免重复, 这里不再赘述。
可选地, 作为一个实施例, 该第一 ABR 900还包括发送单元 903 , 用 于向该第二 ABR发布第二 BGP标签路由, 以便该第二 ABR根据该第二 BGP标签路由建立该第二 ABR到该第一 ABR的第二 BGP LSP , 并进一 步根据该第二 BGP LSP创建该第二 ABR到该第一 ABR的第二 MPLS TE 隧道。
可选地, 作为另一个实施例, 该发送单元 903 , 还用于向该第二 ABR 发送隧道通告消息, 该隧道通告消息包括该第一 MPLS TE隧道的隧道信 息, 以便该第二 ABR根据该第一 MPLS TE隧道的隧道信息创建该第二 ABR到该第一 ABR的第三 MPLS TE隧道 , 该第三 MPLS TE隧道和该第 一 MPLS TE隧道为双向共路隧道。 具体地, 在该第一 ABR创建该第一 MPLS TE隧道之后, 没有检测到有与该第一 MPLS TE隧道共路的该第二 ABR到该第一 ABR的 MPLS TE隧道时, 向该第二 ABR发送该隧道通告 消息。
可选地, 作为另一个实施例, 处理单元 902还用于在创建了该第一 MPLS TE隧道之后,如果该第一 BGP LSP被撤销且该第一 BGP LSP是与 该第一 MPLS TE隧道关联的唯一 BGP LSP时 , 删除该第一 MPLS TE隧 道。
图 10是本发明一个实施例的第二 ABR 1000的结构示意图。 图 10所 示的第二 ABR 1000包括生成单元 1001和发送单元 1002。
生成单元 1001 , 用于生成第一 BGP标签路由。 发送单元 1002 , 用于 向第一 ABR发布该第一 BGP标签路由,以便该第一 ABR根据该第一 BGP 标签路由建立该第一 ABR到该第二 ABR的第一 BGP LSP ,并进一步根据 该第一 BGP LSP创建该第一 ABR到该第二 ABR的第一 MPLS TE隧道。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR到第二 ABR 1000需要使用 MPLS TE隧道传送业务时,第二 ABR 1000可以向第一 ABR 发布 BGP标签路由,第一 ABR在接收到 BGP标签路由后,建立 BGP LSP, 并进一步根据 BGP LSP来触发创建该第一 ABR到该第二 ABR 1000的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高了 MPLS TE隧道的配置效率。
第二 ABR 1000能够实现图 1至图 6的实施例中由第二 ABR实现的各 个过程, 为避免重复, 这里不再赘述。
可选地, 作为一个实施例, 该第二 ABR 1000还包括接收单元 1003 和处理单元 1004。
接收单元 1003 , 用于接收该第一 ABR发布的第二 BGP标签路由。 处 理单元 1004 , 用于根据该第二 BGP标签路由建立该第二 ABR到该第一 ABR的第二 BGP LSP, 并进一步根据该第二 BGP LSP创建该第二 ABR 到该第一 ABR的第二 MPLS TE隧道。
可选地, 作为另一个实施例, 该处理单元 1004, 还用于在创建了该第 二 MPLS TE隧道之后, 如果该第二 BGP LSP被撤销且该第二 BGP LSP 是与该第二 MPLS TE隧道关联的唯一 BGP LSP时,删除该第二 MPLS TE 隧道。
可选地, 作为另一个实施例, 该接收单元 1003 , 还用于接收该第一
ABR发送的隧道通告消息, 该隧道通告消息包括该第一 MPLS TE隧道的 隧道信息。 处理单元 1004根据该第一 MPLS TE隧道的隧道信息, 获取该 第一 MPLS TE隧道的路径信息,并进一步根据该第一 MPLS TE隧道的路 径信息, 釆用显式路径方式创建该第二 ABR到该第一 ABR的第三 MPLS TE隧道, 并且该第三 MPLS TE隧道和该第一 MPLS TE隧道为双向共路 隧道。
可选地, 作为另一个实施例, 该隧道信息包括: 扩展的隧道标识、 隧 道标识和隧道端点地址。
图 11是本发明一个实施例的第一 ABR 1100的结构示意图。 图 11的 第一 ABR 1100包括处理器 1101 , 存储器 1102, 接收电路 1103和发送电 路 1104。 接收电路 1103接收第二 ABR发布的第一 BGP标签路由。处理器 1101 根据该第一 BGP标签路由建立该第一 ABR到该第二 ABR的第一 BGP LSP ,并进一步根据该第一 BGP LSP创建该第一 ABR到该第二 ABR的第 一 MPLS TE隧道。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR 1100到第二
ABR需要使用 MPLS TE隧道传送业务时,第二 ABR可以向第一 ABR 1100 发布 BGP标签路由,第一 ABR 1100在接收到 BGP标签路由后,建立 BGP LSP,并进一步根据 BGP LSP来触发创建该第一 ABR 1100到该第二 ABR 的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高 了 MPLS TE隧道的配置效率。
第一 ABR 1100中的各个组件通过总线系统 1105耦合在一起,其中总 线系统 1105除包括数据总线之外, 还包括电源总线、 控制总线和状态信 号总线。 但是为了清楚说明起见, 在图 11中将各种总线都标为总线系统 1105。
上述本发明实施例揭示的方法可以应用于处理器 1101中, 或者由处 理器 1101实现。 处理器 1101可能是一种集成电路芯片, 具有信号的处理 能力。 在实现过程中, 上述方法的各步骤可以通过处理器 1101中的硬件 的集成逻辑电路或者软件形式的指令完成。 上述的处理器 1101可以是通 用处理器、 数字信号处理器 (Digital Signal Processor, DSP ) 、 专用集成 电路( Application Specific Integrated Circuit, ASIC ) 、 现成可编程门阵列 ( Field Programmable Gate Array, FPGA ) 或者其他可编程逻辑器件、 分 立门或者晶体管逻辑器件、 分立硬件组件。 可以实现或者执行本发明实施 例中的公开的各方法、 步骤及逻辑框图。 通用处理器可以是微处理器或者 该处理器也可以是任何常规的处理器等。 结合本发明实施例所公开的方法 的步骤可以直接体现为硬件译码处理器执行完成, 或者用译码处理器中的 硬件及软件模块组合执行完成。 软件模块可以位于随机存储器, 闪存、 只 读存储器, 可编程只读存储器或者电可擦写可编程存储器、 寄存器等本领 域成熟的存储介质中。 该存储介质位于存储器 1102 , 处理器 1101读取存 储器 1102中的信息, 结合其硬件完成上述方法的步骤。
第一 ABR 1100能够实现图 1至图 6的实施例中由第一 ABR实现的各 个过程, 为避免重复, 这里不再赘述。
可选地, 作为一个实施例, 发送电路 1104用于向该第二 ABR发布第 二 BGP标签路由, 以便该第二 ABR根据该第二 BGP标签路由建立该第 二 ABR到该第一 ABR的第二 BGP LSP, 并进一步根据该第二 BGP LSP 创建该第二 ABR到该第一 ABR的第二 MPLS TE隧道。
可选地, 作为另一个实施例, 发送电路 1104用于在该第一 ABR创建 该第一 MPLS TE隧道之后, 没有检测到有与该第一 MPLS TE隧道共路的 该第二 ABR到该第一 ABR的 MPLS TE隧道时 ,向该第二 ABR发送隧道 通告消息, 该隧道通告消息包括该第一 MPLS TE隧道的隧道信息, 以便 该第二 ABR根据该第一 MPLS TE隧道的隧道信息创建该第二 ABR到该 第一 ABR的第三 MPLS TE隧道,该第三 MPLS TE隧道和该第一 MPLS TE 隧道为双向共路隧道。
可选地, 作为另一个实施例, 处理器 1101还用于在创建了该第一 MPLS TE隧道之后,如果该第一 BGP LSP被撤销且该第一 BGP LSP是与 该第一 MPLS TE隧道关联的唯一 BGP LSP时 , 删除该第一 MPLS TE隧 道。
图 12是本发明一个实施例的第二区域边界路由器的结构示意图。图 9 的第二 ABR 1200包括处理器 1201 , 存储器 1202 , 接收电路 1203和发送 电路 1204。
处理器 1201生成第一 BGP标签路由。 发送电路 1204向第一 ABR发 布该第一 BGP标签路由, 以便该第一 ABR根据该第一 BGP标签路由建 立该第一 ABR到该第二 ABR的第一 BGP LSP,并进一步根据该第一 BGP LSP创建该第一 ABR到该第二 ABR的第一 MPLS TE隧道。
可见, 通过本发明实施例提供的技术方案, 当第一 ABR到第二 ABR
1200需要使用 MPLS TE隧道传送业务时,第二 ABR 1200可以向第一 ABR 发布 BGP标签路由,第一 ABR在接收到 BGP标签路由后,建立 BGP LSP, 并进一步根据 BGP LSP来触发创建该第一 ABR到该第二 ABR 1200的
MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高了
MPLS TE隧道的配置效率。
第二 ABR 1200能够实现图 1至图 6的实施例中由第二 ABR实现的各 个过程, 为避免重复, 这里不再赘述。
第二 ABR 1200中的各个组件通过总线系统 1205耦合在一起,其中总 线系统 1205除包括数据总线之外, 还包括电源总线、 控制总线和状态信 号总线。 但是为了清楚说明起见, 在图 9中将各种总线都标为总线系统
1205。
上述本发明实施例揭示的方法可以应用于处理器 1201中, 或者由处 理器 1201实现。 处理器 1201可能是一种集成电路芯片, 具有信号的处理 能力。 在实现过程中, 上述方法的各步骤可以通过处理器 1201中的硬件 的集成逻辑电路或者软件形式的指令完成。 上述的处理器 1201可以是通 用处理器、 DSP、 ASIC, FPGA或者其他可编程逻辑器件、 分立门或者晶 体管逻辑器件、 分立硬件组件。 可以实现或者执行本发明实施例中的公开 的各方法、 步骤及逻辑框图。 通用处理器可以是微处理器或者该处理器也 可以是任何常规的处理器等。 结合本发明实施例所公开的方法的步骤可以 直接体现为硬件译码处理器执行完成, 或者用译码处理器中的硬件及软件 模块组合执行完成。 软件模块可以位于随机存储器, 闪存、 只读存储器, 可编程只读存储器或者电可擦写可编程存储器、 寄存器等本领域成熟的存 储介质中。 该存储介质位于存储器 1202, 处理器 1201读取存储器 1202 中的信息, 结合其硬件完成上述方法的步骤。 可选地, 作为一个实施例, 接收电路 1203接收该第一 ABR发布的第 二 BGP标签路由。处理器 1201根据该第二 BGP标签路由建立该第二 ABR 到该第一 ABR的第二 BGP LSP , 并进一步根据该第二 BGP LSP创建该第 二 ABR到该第一 ABR的第二 MPLS TE隧道。
可选地, 作为另一个实施例, 在创建了该第二 MPLS TE隧道之后, 如果该第二 BGP LSP被撤销且该第二 BGP LSP是与该第二 MPLS TE隧 道关联的唯一 BGP LSP时, 该处理器 1201还用于删除该第二 MPLS TE 隧道。
可选地, 作为另一个实施例, 接收电路 1203接收该第一 ABR发送的 隧道通告消息, 该隧道通告消息包括该第一 MPLS TE隧道的隧道信息。 处理器 1201根据该第一 MPLS TE隧道的隧道信息,获取该第一 MPLS TE 隧道的路径信息, 并进一步根据该第一 MPLS TE隧道的路径信息, 釆用 显式路径方式创建该第二 ABR到该第一 ABR的第三 MPLS TE隧道 , 该 第三 MPLS TE隧道和该第一 MPLS TE隧道为双向共路隧道。
可选地, 作为另一个实施例, 该隧道信息包括: 扩展的隧道标识、 隧 道标识和隧道端点地址。
这样, 通过本发明实施例提供的技术方案, 当第一 ABR到第二 ABR 需要使用 MPLS TE隧道传送业务时,第二 ABR可以向第一 ABR发布 BGP 标签路由, 第一 ABR在接收到 BGP标签路由后, 建立 BGP LSP, 并进一 步根据 BGP LSP来触发创建该第一 ABR到该第二 ABR的 MPLS TE隧道, 能够使 MPLS TE隧道随业务按需自动建立, 并且提高了 MPLS TE隧道的 配置效率。
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的 各示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件 的结合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方 案的特定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使 用不同方法来实现所描述的功能, 但是这种实现不应认为超出本发明的范 围。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述 描述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的 对应过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置 和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅 是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实 现时可以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成 到另一个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论 的相互之间的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单 元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地 方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的 部分或者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在 一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或 使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本 发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方 案的部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个 存储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分 步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器(Read-Only Memory, ROM ) 、 随机存取存储器 ( Random Access Memory, RAM ) 、 磁碟或者光盘等各种可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应所述以权利要求的保护范围为准。
权 利 要 求 书
1、 一种隧道建立的方法, 其特征在于, 所述方法包括:
第一区域边界路由器 ABR接收第二 ABR发布的第一边界网关协议 BGP标签路由;
所述第一 ABR根据所述第一 BGP标签路由建立所述第一 ABR到所 述第二 ABR的第一 BGP标签交换路径 LSP;
所述第一 ABR根据所述第一 BGP LSP创建所述第一 ABR到所述第 二 ABR的第一多协议标签交换 MPLS流量工程 TE隧道。
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 所述第一 ABR向所述第二 ABR发布第二 BGP标签路由, 以便所述 第二 ABR根据所述第二 BGP标签路由建立所述第二 ABR到所述第一 ABR的第二 BGP LSP, 并进一步根据所述第二 BGP LSP创建从所述第二 ABR到所述第一 ABR的第二 MPLS TE隧道。
3、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 所述第一 ABR向所述第二 ABR发送隧道通告消息, 所述隧道通告消 息包括所述第一 MPLS TE隧道的隧道信息, 以便所述第二 ABR根据所述 第一 MPLS TE隧道的隧道信息创建所述第二 ABR到所述第一 ABR的第 三 MPLS TE隧道, 所述第三 MPLS TE隧道和所述第一 MPLS TE隧道为 双向共路隧道。
4、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 所述方法 还包括:
所述第一 ABR在创建了所述第一 MPLS TE隧道之后 ,如果所述第一 BGP LSP被撤销且所述第一 BGP LSP是与所述第一 MPLS TE隧道关联的 唯一 BGP LSP时, 删除所述第一 MPLS TE隧道。
5、 根据权利要求 3所述的方法, 其特征在于, 所述隧道通告消息为:
BGP更新 UPDATE消息或标签分发协议 LDP映射 Mapping消息。

Claims

6、 根据权利要求 3或 5所述的方法, 其特征在于, 所述隧道信息包 括: 扩展的隧道标识、 隧道标识和隧道端点地址。
7、 一种隧道建立的方法, 其特征在于, 所述方法包括:
第二区域边界路由器 ABR生成第一边界网关协议 BGP标签路由; 所述第二 ABR向所述第一 ABR发布所述第一 BGP标签路由, 以便 所述第一 ABR根据所述第一 BGP标签路由建立所述第一 ABR到所述第 二 ABR的第一 BGP标签交换路径 LSP, 并进一步根据所述第一 BGP LSP 创建所述第一 ABR到所述第二 ABR的第一多协议标签交换 MPLS流量工 程 TE隧道。
8、 根据权利要求 7所述的方法, 其特征在于, 所述方法还包括: 所述第二 ABR接收所述第一 ABR发布的第二 BGP标签路由; 所述第二 ABR根据所述第二 BGP标签路由建立所述第二 ABR到所 述第一 ABR的第二 BGP LSP;
所述第二 ABR根据所述第二 BGP LSP创建所述第二 ABR到所述第 一 ABR的第二 MPLS TE隧道。
9、 根据权利要求 8所述的方法, 其特征在于, 所述方法还包括: 所述第二 ABR在创建了所述第二 MPLS TE隧道之后 ,如果所述第二 BGP LSP被撤销且所述第二 BGP LSP是与所述第二 MPLS TE隧道关联的 唯一 BGP LSP时, 删除所述第二 MPLS TE隧道。
10、 根据权利要求 7所述的方法, 其特征在于, 所述方法还包括: 所述第二 ABR接收所述第一 ABR发送的隧道通告消息, 所述隧道通 告消息包括所述第一 MPLS TE隧道的隧道信息;
所述第二 ABR根据所述第一 MPLS TE隧道的隧道信息, 获取所述第 一 MPLS TE隧道的路径信息;
所述第二 ABR根据所述第一 MPLS TE隧道的路径信息, 釆用显式路 径方式创建所述第二 ABR到所述第一 ABR的第三 MPLS TE隧道, 所述 第三 MPLS TE隧道和所述第一 MPLS TE隧道为双向共路隧道。
11、 根据权利要求 10所述的方法, 其特征在于, 所述隧道信息包括: 扩展的隧道标识、 隧道标识和隧道端点地址。
12、 一种第一区域边界路由器 ABR, 其特征在于, 所述第一 ABR包 括:
接收单元, 用于接收第二 ABR发布的第一边界网关协议 BGP标签路 由;
处理单元, 用于根据所述第一 BGP标签路由建立所述第一 ABR到所 述第二 ABR的第一 BGP标签交换路径 LSP,并进一步根据所述第一 BGP LSP创建所述第一 ABR到所述第二 ABR的第一多协议标签交换 MPLS流 量工程 TE隧道。
13、 根据权利要求 12所述的第一 ABR, 其特征在于, 所述第一 ABR 还包括:
发送单元, 用于向所述第二 ABR发布第二 BGP标签路由, 以便所述 第二 ABR根据所述第二 BGP标签路由建立所述第二 ABR到所述第一 ABR的第二 BGP LSP , 并进一步根据所述第二 BGP LSP创建所述第二 ABR到所述第一 ABR的第二 MPLS TE隧道。
14、 根据权利要求 12所述的方法, 其特征在于, 所述第一 ABR还包 括:
发送单元, 用于向所述第二 ABR发送隧道通告消息, 所述隧道通告 消息包括所述第一 MPLS TE隧道的隧道信息, 以便所述第二 ABR根据所 述第一 MPLS TE隧道的隧道信息创建所述第二 ABR到所述第一 ABR的 第三 MPLS TE隧道, 所述第三 MPLS TE隧道和所述第一 MPLS TE隧道 为双向共路隧道。
15、 根据权利要求 12至 14任一项所述的第一 ABR, 其特征在于, 所 述处理单元, 还用于在创建了所述第一 MPLS TE隧道之后, 如果所述第 一 BGP LSP被撤销且所述第一 BGP LSP是与所述第一 MPLS TE隧道关 联的唯一 BGP LSP时, 删除所述第一 MPLS TE隧道。
16、 一种第二区域边界路由器 ABR, 其特征在于, 所述第二 ABR包 括:
生成单元, 用于生成第一边界网关协议 BGP标签路由;
发送单元, 用于向所述第一 ABR发布所述第一 BGP标签路由, 以便 所述第一 ABR根据所述第一 BGP标签路由建立所述第一 ABR到所述第 二 ABR的第一 BGP标签交换路径 LSP, 并进一步根据所述第一 BGP LSP 创建所述第一 ABR到所述第二 ABR的第一多协议标签交换 MPLS流量工 程 TE隧道。
17、 根据权利要求 16所述的第二 ABR, 其特征在于, 所述第二 ABR 还包括:
接收单元, 用于接收所述第一 ABR发布的第二 BGP标签路由; 处理单元, 用于根据所述第二 BGP标签路由建立所述第二 ABR到所 述第一 ABR的第二 BGP LSP, 并进一步根据所述第二 BGP LSP创建所述 第二 ABR到所述第一 ABR的第二 MPLS TE隧道。
18、 根据权利要求 17所述的第二 ABR, 其特征在于, 所述处理单元, 还用于, 在创建了所述第二 MPLS TE隧道之后, 如果所述第二 BGP LSP 被撤销且所述第二 BGP LSP是与所述第二 MPLS TE隧道关联的唯一 BGP LSP时, 删除所述第二 MPLS TE隧道。
19、 根据权利要求 16所述的第二 ABR, 其特征在于, 所述第二 ABR 还包括:
接收单元, 用于接收所述第一 ABR发送的隧道通告消息, 所述隧道 通告消息包括所述第一 MPLS TE隧道的隧道信息;
处理单元, 用于根据所述第一 MPLS TE隧道的隧道信息, 获取所述 第一 MPLS TE隧道的路径信息,并进一步根据所述第一 MPLS TE隧道的 路径信息, 釆用显式路径方式创建所述第二 ABR到所述第一 ABR的第三 MPLS TE隧道, 所述第三 MPLS TE隧道和所述第一 MPLS TE隧道为双 向共路隧道。
20、 根据权利要求 19所述的第二 ABR, 其特征在于, 所述隧道信 息包括: 扩展的隧道标识、 隧道标识和隧道端点地址。
PCT/CN2014/084768 2013-09-05 2014-08-20 隧道建立的方法及路由器 WO2015032275A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310399870.6 2013-09-05
CN201310399870.6A CN103475557B (zh) 2013-09-05 2013-09-05 隧道建立的方法及路由器

Publications (1)

Publication Number Publication Date
WO2015032275A1 true WO2015032275A1 (zh) 2015-03-12

Family

ID=49800264

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084768 WO2015032275A1 (zh) 2013-09-05 2014-08-20 隧道建立的方法及路由器

Country Status (2)

Country Link
CN (1) CN103475557B (zh)
WO (1) WO2015032275A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475557B (zh) * 2013-09-05 2017-02-08 华为技术有限公司 隧道建立的方法及路由器
CN104980347B (zh) * 2014-04-04 2019-02-12 华为技术有限公司 一种建立隧道的方法及装置
CN104980362B (zh) * 2014-04-04 2019-04-12 华为技术有限公司 一种业务隧道建立方法及设备
CN105991385B (zh) * 2015-01-27 2019-03-26 华为技术有限公司 一种建立bgp lsp隧道的方法及网络设备
US10637775B2 (en) * 2015-10-17 2020-04-28 Cisco Technology, Inc. Make-before-break mechanism for label switched paths
CN107995084B (zh) * 2017-11-09 2020-12-01 新华三技术有限公司 隧道选择方法及装置
CN112422307B (zh) * 2019-08-22 2022-06-14 华为技术有限公司 Evpn和vpls共存双活的方法、设备及系统
CN112751741B (zh) * 2019-10-31 2023-09-15 中兴通讯股份有限公司 一种报文的传输方法及装置
CN111064670B (zh) * 2019-12-30 2021-05-11 联想(北京)有限公司 一种获取下一跳路由信息的方法和装置

Citations (4)

* 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
CN102123088A (zh) * 2011-02-21 2011-07-13 杭州华三通信技术有限公司 建立te隧道的方法及设备
CN102724117A (zh) * 2012-06-06 2012-10-10 华为技术有限公司 多协议标签交换流量工程隧道建立方法及设备
CN103475557A (zh) * 2013-09-05 2013-12-25 华为技术有限公司 隧道建立的方法及路由器

Patent Citations (4)

* 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
CN102123088A (zh) * 2011-02-21 2011-07-13 杭州华三通信技术有限公司 建立te隧道的方法及设备
CN102724117A (zh) * 2012-06-06 2012-10-10 华为技术有限公司 多协议标签交换流量工程隧道建立方法及设备
CN103475557A (zh) * 2013-09-05 2013-12-25 华为技术有限公司 隧道建立的方法及路由器

Also Published As

Publication number Publication date
CN103475557A (zh) 2013-12-25
CN103475557B (zh) 2017-02-08

Similar Documents

Publication Publication Date Title
WO2015032275A1 (zh) 隧道建立的方法及路由器
KR102057980B1 (ko) 네트워크 서비스를 위한 경로 계산 요소 중앙 제어기(PCECCs)
US7751405B1 (en) Automatic configuration of label switched path tunnels using BGP attributes
US11811595B2 (en) Signaling IP path tunnels for traffic engineering
EP1983701B1 (en) Method and apparatus for reserving network resources for pseudo point-to-point connection
US9184935B2 (en) Network communication method and network node device
US20160006614A1 (en) Source Routing Using Path Computation Elements
WO2015184852A1 (zh) Sr信息获取方法及建立sr网络的方法
EP1713197A1 (en) A method for implementing the virtual leased line
WO2013053284A1 (zh) 基于流量工程隧道的虚拟专用网络实现方法及系统
WO2015000173A1 (zh) 建立隧道的方法、分配标签的方法、设备及网络系统
US9025442B2 (en) Pseudo wire end-to-end redundancy setup over disjoint MPLS transport paths
WO2011103781A2 (zh) 身份标识与位置分离的实现方法、设备及数据封装方法
WO2017211164A1 (zh) 一种确定跨域标签交换路径隧道的方法、设备和系统
US11888722B2 (en) Route advertisement method, device, and system
WO2014180153A1 (zh) 建立标签交换路径的方法、设备及系统
WO2012116545A1 (en) Multiprotocol label switching (mpls) virtual private network (vpn) over routed ethernet backbone
WO2014186978A1 (zh) 用于以太虚拟专用网的方法和设备
US9521072B2 (en) Method and network device for distributing multi-protocol label switching labels
WO2011000140A1 (zh) 一种伪线的建立方法、装置和系统
US10291522B1 (en) Applications-aware targeted LDP sessions
US8023518B2 (en) Efficient path setup in a provider backbone bridge network
WO2013117165A1 (zh) 实现基于VPLS的E-tree业务的方法和节点
WO2018040614A1 (zh) 建立虚拟专用网标签交换路径方法、相关设备和系统
WO2016119461A1 (zh) 一种建立bgp lsp隧道的方法及网络设备

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: 14842046

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: 14842046

Country of ref document: EP

Kind code of ref document: A1