CN105991385B - A kind of method that establishing BGP lsp tunnel and the network equipment - Google Patents

A kind of method that establishing BGP lsp tunnel and the network equipment Download PDF

Info

Publication number
CN105991385B
CN105991385B CN201510040793.4A CN201510040793A CN105991385B CN 105991385 B CN105991385 B CN 105991385B CN 201510040793 A CN201510040793 A CN 201510040793A CN 105991385 B CN105991385 B CN 105991385B
Authority
CN
China
Prior art keywords
bgp
network equipment
tunnel
equipment
traffic engineering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510040793.4A
Other languages
Chinese (zh)
Other versions
CN105991385A (en
Inventor
庄顺万
阴元斌
王苌
陈霞
李振斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510040793.4A priority Critical patent/CN105991385B/en
Priority to PCT/CN2015/088976 priority patent/WO2016119461A1/en
Publication of CN105991385A publication Critical patent/CN105991385A/en
Application granted granted Critical
Publication of CN105991385B publication Critical patent/CN105991385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of method for establishing BGP lsp tunnel and the network equipments, which comprises the network equipment receives the instruction for establishing BGP lsp tunnel;Transmission path is obtained from the instruction for establishing BGP lsp tunnel, the transmission path is from access device directly into outlet device, or the transmission path from the access device by intermediate equipment to the outlet device;Determine the upstream equipment with the network equipment direct neighbor on the transmit path;The first bgp protocol message of extension is sent to the upstream equipment, includes that the BGP label routing of network equipment publication and the first extended attribute, first extended attribute indicate the transmission path in the first bgp protocol message of the extension.The present invention establishes BGP lsp tunnel according to the transmission path, realizes and establishes BGP lsp tunnel on demand, solves the problems, such as that BGP lsp tunnel is possible to be wasted.

Description

A kind of method that establishing BGP lsp tunnel and the network equipment
Technical field
The present invention relates to fields of communication technology, more particularly, to a kind of method for establishing the tunnel BGPLSP and the network equipment.
Background technique
Multiprotocol label switching (English: Multi-Protocol Label Switch, referred to as: MPLS) it is that one kind is based on The retransmission technique of label, be now widely used in transfer of virtual private network (English: Virtual PrivateNetwork, referred to as: VPN) the data such as message.In order to transmit number across autonomous (English: Autonomous System, abbreviation: AS) domain in an mpls network According to, it usually needs established between the network equipment of MPLS network Border Gateway Protocol (Border Gateway Protocol, BGP) the tunnel label switched path (Label Switch Path, LSP).
It is that a certain equipment is by way of broadcast to the equipment that one kind, which commonly establishes the mode of BGP lsp tunnel, at present All neighbor devices issue BGP routing tag, to establish out by all neighbor devices of the equipment respectively to the equipment A plurality of BGP lsp tunnel.By taking MPLS network shown in FIG. 1 as an example, border router J can be to border router H and border routing Device I issues BGP routing tag respectively, to establish out by border router H and border router I respectively to border router J Two tunnels BGP LSP.Mode is established by this at present, BGP can be established between all devices of MPLS network Lsp tunnel after all establishing BGP lsp tunnel between all devices of MPLS network, is recycled when needing to transmit data and is built Vertical BGP lsp tunnel carries out data transmission.
However mode is established for above-mentioned, due to establishing out by all neighbor devices of a certain equipment respectively to the equipment A plurality of BGP lsp tunnel, and a portion BGP lsp tunnel is possible to be made in data transmission procedure later With causing the waste of BGP lsp tunnel.And due to needing to spend certain system resource when establishing the tunnel LSP BGP, than Installed System Memory is such as occupied, therefore the waste of BGP lsp tunnel actually will lead to the waste of system resource.Still shown in Fig. 1 MPLS network for, it is above-mentioned establish BGP lsp tunnel by way of, establish out by border router H and border router I Respectively to two BGP lsp tunnels of border router J, but in data transmission procedure, border router F is possible to logical It crosses border router H and has transferred data to border router J, and flow through border router I there is no data, therefore establish out The BGP lsp tunnel by border router I to border router J be also just not used so that creating this BGP The system resource that lsp tunnel is spent similarly is wasted.
Summary of the invention
Present invention solves the technical problem that being to provide a kind of method for establishing BGP lsp tunnel and the network equipment, with solution Certainly BGP lsp tunnel is possible to the problem of being wasted, to save system resource.
For this purpose, the technical solution that the present invention solves technical problem is:
In a first aspect, the present invention provides a kind of methods for establishing BGP lsp tunnel, comprising:
The network equipment receives the instruction for establishing Border Gateway Protocol (BGP) label switching path LSP tunnel;
The network equipment obtains transmission path from the instruction for establishing BGP lsp tunnel, the transmission path from Access device passes through intermediate equipment to the transmission road of the outlet device directly into outlet device, or from the access device Diameter;
The network equipment is determining on the transmit path, the upstream equipment with the network equipment direct neighbor;
The network equipment sends the first bgp protocol message of extension, the first BGP of the extension to the upstream equipment It include that the BGP label routing of network equipment publication and the first extended attribute, first extended attribute refer in protocol massages The transmission path is shown;
Wherein, the network equipment is the intermediate equipment or the outlet device.
In the first possible implementation of the first aspect, the network equipment is the intermediate equipment;
The network equipment receives the BGP lsp tunnel of establishing and indicates, comprising:
The intermediate equipment receives on the transmit path, sends with the upstream device of the intermediate equipment direct neighbor Extension the second bgp protocol message, the second bgp protocol message of the extension includes the BGP mark of upstream device publication Label routing and the second extended attribute, second extended attribute indicate the transmission path.
With reference to first aspect or the first possible implementation of first aspect, second in first aspect are possible Implementation in, the network equipment be the intermediate equipment;The method also includes:
After the intermediate equipment receives the instruction for establishing BGP lsp tunnel, the intermediate equipment is established under described Swim the TE tunnel of traffic engineering of equipment.
The possible implementation of second with reference to first aspect, in the third possible implementation of first aspect In, it further include third extended attribute in the second bgp protocol message of the extension, the third extended attribute indicates traffic engineering tunnel Establish attribute;
The method also includes:
What the intermediate equipment obtained the traffic engineering tunnel from the second bgp protocol message of the extension establishes attribute;
The intermediate equipment establishes the traffic engineering tunnel of the intermediate equipment to the upstream device, comprising:
The intermediate equipment establishes attribute based on the traffic engineering tunnel, establishes the intermediate equipment to the upstream device Traffic engineering tunnel.
The third possible implementation with reference to first aspect, in the 4th kind of possible implementation of first aspect In, the traffic engineering tunnel establishes the bandwidth constraint condition and/or dependability parameter that attribute includes: traffic engineering tunnel.
To the 4th kind of any possible implementation, the 5th kind in first aspect can for second with reference to first aspect In the implementation of energy, before the intermediate equipment establishes traffic engineering tunnel of the intermediate equipment to the upstream device, also wrap It includes:
The intermediate equipment determines that the intermediate equipment and the upstream device have same Field Number.
In the sixth possible implementation of the first aspect, the network equipment is the outlet device, the side Method further include:
The outlet device obtains the virtual private network label routing information of business datum, and by the VPN label Routing iinformation is sent to the access device, and the VPN label routing iinformation includes VPN user information and VPN label, described VPN user information is used to indicate the access device for the end-to-end BGP lsp tunnel established on the transmit path and institute It is associated to state VPN label.
With reference to first aspect, the first of first aspect is to the 6th kind of any possible implementation, in first aspect The 7th kind of possible implementation in, transmission is obtained from the instruction for establishing the tunnel BGP LSP in the network equipment Before path, further includes:
The network equipment determines that there are the transmission paths;
The method also includes:
The network equipment determines that, there is no the transmission path, each neighbor device of the Xiang Suoshu network equipment is issued BGP label routing.
Second aspect, the present invention provides a kind of methods for establishing BGP lsp tunnel, comprising:
The network equipment receives on the transmit path, the extension sent with the upstream device of the network equipment direct neighbor Border Gateway Protocol (BGP) protocol massages, the bgp protocol message of the extension include the BGP label road of the upstream device publication By with the first extended attribute, first extended attribute indicates that the transmission path, the transmission path are from access device Directly into outlet device, or the transmission path from the access device by intermediate equipment to the outlet device;
Wherein, the network equipment is the access device.
In the first possible implementation of the second aspect, further includes:
After the network equipment receives the bgp protocol message of the extension, establishes the network equipment to the downstream and set Standby TE tunnel of traffic engineering.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect In, it further include the second extended attribute in the bgp protocol message of the extension, second extended attribute indicates building for traffic engineering tunnel Vertical attribute;
The method also includes:
What the network equipment obtained the traffic engineering tunnel from the bgp protocol message of the extension establishes attribute;
The network equipment establishes the traffic engineering tunnel of the network equipment to the upstream device, comprising:
The network equipment establishes attribute based on the traffic engineering tunnel, establishes the network equipment to the upstream device Traffic engineering tunnel.
In conjunction with second of possible implementation of second aspect, in the third possible implementation of second aspect In, the attribute of establishing of the traffic engineering tunnel includes: bandwidth constraint condition and/or dependability parameter.
In conjunction with second aspect the first to the third any possible implementation, the 4th kind in second aspect can In the implementation of energy, before the network equipment establishes traffic engineering tunnel of the network equipment to the upstream device, also wrap It includes:
The network equipment determines that the network equipment and the upstream device have same Field Number.
In conjunction with second aspect, second aspect the first to the 4th kind of any possible implementation, in second aspect The 5th kind of possible implementation in, further includes:
The network equipment receives the virtual private network label routing letter for the business datum that the outlet device is sent Breath, the VPN label routing iinformation includes VPN user information and VPN label;
The network equipment is based on the VPN user information, the end-to-end BGP label that will be established on the transmit path Switching path lsp tunnel is associated with the VPN label.
In conjunction with the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect In, the method also includes:
The network equipment obtains the business datum;
The business datum and the VPN label are passed through the end established on the transmit path by the network equipment It is transmitted to end BGP lsp tunnel.
The third aspect, the present invention provides a kind of network equipments, comprising:
Receiving unit, for receiving the instruction for establishing Border Gateway Protocol (BGP) label switching path LSP tunnel;
Processing unit is determined for obtaining transmission path from the instruction for establishing BGP lsp tunnel in the transmission On path, upstream equipment with the network equipment direct neighbor, the transmission path is set from access device directly into outlet It is standby, or the transmission path from the access device by intermediate equipment to the outlet device;
Transmission unit, the first bgp protocol message for being extended to upstream equipment transmission, the first of the extension It include BGP label routing and the first extended attribute of network equipment publication, first extended attribute in bgp protocol message Indicate the transmission path;
Wherein, the network equipment is the intermediate equipment or the outlet device.
In the first possible implementation of the third aspect, the network equipment is the intermediate equipment;
The receiving unit is specifically used for receiving on the transmit path, the downstream with the intermediate equipment direct neighbor Second bgp protocol message of the extension that equipment is sent, the second bgp protocol message of the extension include the upstream device publication BGP label routing and the second extended attribute, second extended attribute indicates the transmission path.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, second in the third aspect may Implementation in, the network equipment be the intermediate equipment;
The processing unit is also used to, after the receiving unit receives the instruction for establishing BGP lsp tunnel, the place Reason unit establishes the TE tunnel of traffic engineering of the intermediate equipment to the upstream device.
In conjunction with second of possible implementation of the third aspect, in the third possible implementation of the third aspect In, it further include third extended attribute in the second bgp protocol message of the extension, the third extended attribute indicates traffic engineering tunnel Establish attribute;
The processing unit is also used to, and the foundation of the traffic engineering tunnel is obtained from the second bgp protocol message of the extension Attribute;
When establishing traffic engineering tunnel of the intermediate equipment to the upstream device, the processing unit is specifically used for being based on institute That states traffic engineering tunnel establishes attribute, establishes the traffic engineering tunnel of the intermediate equipment to the upstream device.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible implementation of the third aspect In, the traffic engineering tunnel establishes the bandwidth constraint condition and/or dependability parameter that attribute includes: traffic engineering tunnel.
In conjunction with second to the 4th kind any possible implementation of the third aspect, the 5th kind in the third aspect can Can implementation in, the processing unit is also used to, establish the intermediate equipment to the upstream device traffic engineering tunnel it Before, determine that the intermediate equipment and the upstream device have same Field Number.
In the 6th kind of possible implementation of the third aspect, the network equipment is the outlet device,
The processing unit is also used to, and obtains the virtual private network label routing information of business datum;
The transmission unit is also used to, and the VPN label routing iinformation is sent to the access device, the VPN mark Signing routing iinformation includes VPN user information and VPN label, and the VPN user information is used to indicate the access device will be in institute It is associated with the VPN label to state the end-to-end BGP lsp tunnel established in transmission path.
In conjunction with the third aspect, the third aspect the first to the 6th kind of any possible implementation, in the third aspect The 7th kind of possible implementation in, the processing unit is also used to, from the instruction for establishing BGP lsp tunnel Before obtaining transmission path, determine that there are the transmission paths;
The transmission unit is also used to, and the processing unit determines that there is no the transmission path, the transmission units To the publication BGP label routing of each neighbor device of the network equipment.
Fourth aspect, the present invention provides a kind of network equipments, comprising:
Receiving unit is sent for receiving on the transmit path with the upstream device of the network equipment direct neighbor The Border Gateway Protocol (BGP) protocol massages of extension;The bgp protocol message of the extension includes the BGP of the upstream device publication Label routing and the first extended attribute, first extended attribute indicate the transmission path, and the transmission path is from entering Jaws equipment is directly into outlet device, or the transmission path from the access device by intermediate equipment to the outlet device;
Wherein, the network equipment is the access device.
In the first possible implementation of the fourth aspect, the network equipment further include: processing unit;
The processing unit is also used to, and after the receiving unit receives the bgp protocol message of the extension, the processing is single Member establishes the TE tunnel of traffic engineering of the network equipment to the upstream device.
In conjunction with the first possible implementation of fourth aspect, in second of possible implementation of fourth aspect In, it further include the second extended attribute in the bgp protocol message of the extension, second extended attribute indicates building for traffic engineering tunnel Vertical attribute;
The processing unit is also used to, and the traffic engineering tunnel is obtained from the bgp protocol message of the extension establishes attribute;
When establishing traffic engineering tunnel of the network equipment to the upstream device, the processing unit is specifically used for being based on institute That states traffic engineering tunnel establishes attribute, establishes the traffic engineering tunnel of the network equipment to the upstream device.
In conjunction with second of possible implementation of fourth aspect, in the third possible implementation of fourth aspect In, the attribute of establishing of the traffic engineering tunnel includes: bandwidth constraint condition and/or dependability parameter.
In conjunction with fourth aspect the first to the third any possible implementation, the 4th kind in fourth aspect can Can implementation in, the processing unit is also used to, establish the network equipment to the upstream device traffic engineering tunnel it Before, determine that the network equipment and the upstream device have same Field Number.
In conjunction with fourth aspect, fourth aspect the first to the 4th kind of any possible implementation, in fourth aspect The 5th kind of possible implementation in, the receiving unit is also used to receive the business datum that the outlet device is sent Virtual private network label routing information, the VPN label routing iinformation include VPN user information and VPN label;
The network equipment further include: processing unit, the processing unit are used to be based on the VPN user information, will be The end-to-end BGP label switching path lsp tunnel established in the transmission path is associated with the VPN label.
In conjunction with the 5th kind of possible implementation of fourth aspect, in the 6th kind of possible implementation of fourth aspect In, the network equipment further include: processing unit, the processing unit are also used to, and obtain the business datum, by the business Data and the VPN label are transmitted by the end-to-end BGP lsp tunnel established on the transmit path.
According to the above-mentioned technical solution, in the present invention, the network equipment is receiving the finger for establishing the tunnel BGP LSP It is no longer to establish out to the publication BGP label routing of all neighbor devices of the network equipment there is a possibility that taking less than when showing BGP lsp tunnel, but obtain from access device from the instruction for establishing BGP lsp tunnel directly into outlet device, or Transmission path of the person from the access device by intermediate equipment to the outlet device, on the transmit path, with institute The upstream equipment for stating network equipment direct neighbor sends the first bgp protocol message of extension, includes that the network is set in the message The BGP label of preparation cloth routes, to be created that the BGP lsp tunnel of the upstream equipment to the network equipment.It can be seen that The present invention is and to establish the BGP lsp tunnel of assigned direction according to the transmission path, establishes BGP on demand to realize Lsp tunnel solves the problems, such as that BGP lsp tunnel is possible to be wasted, to save system resource.
Detailed description of the invention
Fig. 1 is a kind of possible network topology of MPLS network;
Fig. 2 is a kind of flow diagram of the embodiment of the method provided by the invention for establishing BGP lsp tunnel;
Fig. 3 is a kind of implementation that BGP lsp tunnel is established in embodiment shown in Fig. 2;
Fig. 4 is the flow diagram of another embodiment of the method provided by the invention for establishing BGP lsp tunnel;
Fig. 5 is a kind of structural schematic diagram of Installation practice of the network equipment provided by the invention;
Fig. 6 is the structural schematic diagram of another Installation practice of the network equipment provided by the invention;
Fig. 7 is the structural schematic diagram of another Installation practice of the network equipment provided by the invention;
Fig. 8 is the structural schematic diagram of another Installation practice of the network equipment provided by the invention.
Specific embodiment
The embodiment of the present invention is understood in order to clearer, and below by taking network topology shown in FIG. 1 as an example, BGP is established in introduction The process of lsp tunnel and the process that carries out data transmission of BGP lsp tunnel using foundation.
In MPLS network shown in FIG. 1 include the domain AS 1, the domain AS 2 and the domain AS 3, wherein the domain AS 1 include border router A, Border router B and the domain border router C, AS 2 include border router D, border router E, border router F and boundary road By device G, the domain AS 3 includes border router H, border router I and border router J.
Since the direction for establishing direction (controlling the direction of stream) and BGP lsp tunnel itself of BGP lsp tunnel (counts According to the direction of stream) on the contrary, therefore ought need to establish an end-to-end BGP LSP tunnel from border router A to border router J When road, tunnel is usually established by border router J initiation, is being forwarded in isolated network based on control, it can also be by controlling Equipment control border router J establishes tunnel.
Specific establishment process is: after the border router J begins setting up tunnel, border router J can be to the boundary All neighbours of router J, i.e., the described border router H and the border router I issue BGP label routing respectively, thus It establishes out by the border router H and border router I respectively to two BGP LSP tunnels of the border router J Road.When the border router H and the border router I receive the BGP label routing of the border router J publication Afterwards, BGP label routing can be issued to respective all neighbours respectively, establishes out corresponding BGP lsp tunnel.Each border routing Device constantly repeats the above process, until the border router B and border router C is issued to the border router A BGP label routing, is established out from the border router A respectively to the border router B's and border router C BGP lsp tunnel, to finally establish out by the end-to-end BGP LSP tunnel of the border router A to the border router J Road.Wherein it is understood that all neighbor devices of a certain equipment, refer in addition to routing to equipment publication BGP label All neighbor devices except equipment.
After having established out the end-to-end tunnel BGP LSP from the border router A to the border router J, when When needing to transmit data to the border router J from the border router A, established end-to-end BGP can use Lsp tunnel transmits data.
It should be noted that the direction of BGP lsp tunnel itself, the direction one with BGP lsp tunnel transmission data It causes, and contrary with establishing for the BGP lsp tunnel.Such as in Fig. 1, from border router J to border router H BGP routing is issued, i.e., establishes the BGP lsp tunnel from the border router J to the border router H, it is final to establish The direction of the BGP lsp tunnel out is therefore the boundary road from the border router H to the border router J The BGP lsp tunnel can use from device H and transmit data to the border router J.
Mode is established by this at present, the tunnel BGP LSP can be established between all devices of MPLS network, After all establishing BGP lsp tunnel between all devices of MPLS network, the BGP established is recycled when needing to transmit data Lsp tunnel carries out data transmission.
However mode is established for above-mentioned, due to establishing out by all neighbor devices of a certain equipment respectively to the equipment A plurality of BGP lsp tunnel, and a portion BGP lsp tunnel is possible to be made in data transmission procedure later With causing the waste of BGP lsp tunnel.And due to needing to spend certain system resource when establishing the tunnel LSP BGP, than Installed System Memory is such as occupied, therefore the waste of BGP lsp tunnel actually will lead to the waste of system resource.Still shown in Fig. 1 MPLS network for, it is above-mentioned establish BGP lsp tunnel by way of, establish out by the border router H and the side Boundary router I is respectively to two BGP lsp tunnels of the border router J, but in data transmission procedure, the boundary Router F has transferred data to the border router J possibly through the border router H, and there is no data flows Through the border router I, therefore the BGP lsp tunnel by the border router I to the border router J established out Also it is just not used, is similarly wasted so that creating the system resource that this BGP lsp tunnel is spent.
And in embodiments of the present invention, a kind of method for establishing BGP lsp tunnel and the network equipment are provided, to solve BGP Lsp tunnel is possible to the problem of being wasted, to save system resource.
The embodiment of the present invention is introduced in order to clearer, first BGP label routing is briefly described.
BGP label routing refers to carrying the BGP routing of tag mapping information, according to standards such as RFC3107, RFC4760 Regulation, BGP label routing is carried at the multiprotocol network layer of bgp protocol message up to information (Multiprotocol Reachable NLRI, i.e. MP_REACH_NLRI) field in, wherein generally carried in the field of MP_REACH_NLRI There are next-hop and Network Layer Reachable Information (Network Layer Reachable Information, NLRI) etc., in NLRI Carry label, prefix etc..It generally further include BGP elementary path property set in BGP protocol massages, which includes Origin attribute, AS_Path attribute etc..
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing Four " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein or describing Sequence other than appearance is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that covering is non-exclusive Include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to clearly arrange Those of out step or unit, but may include be not clearly listed or it is solid for these process, methods, product or equipment The other step or units having.
Referring to Fig. 2, the embodiment of the invention provides a kind of embodiments of the method for establishing BGP lsp tunnel.
The embodiment of the present invention method includes:
Step 201: the network equipment receives the instruction for establishing BGP lsp tunnel.
In the embodiment of the present invention, when needing to establish a tunnel BGP LSP from other equipment to the network equipment When, the network equipment can receive the instruction for establishing BGP lsp tunnel.The wherein finger for establishing BGP lsp tunnel Showing, which can be, is sent by control equipment or in network equipments configuration generation, is also possible to by the network equipment Neighbor device is sent.
Step 202: the network equipment obtains transmission path from the instruction for establishing BGP lsp tunnel.
In embodiments of the present invention, the transmission path is from access device directly into outlet device, or from it is described enter Transmission path of the jaws equipment by intermediate equipment to the outlet device.For example, when there is business datum to need to send out from the first equipment When sending to the second equipment, it the modes such as can calculate by manual type or by control equipment, determine one from described first Equipment using the end-to-end path as the transmission path, and is built to the end-to-end path of second equipment by described The instruction of vertical BGP lsp tunnel is so that the network equipment gets the transmission path.
It is illustrated by taking MPLS network shown in Fig. 3 as an example, it is assumed that need to pass from border router A to border router J When defeated business datum, one end-to-end path, such as institute can be determined according to the topology of MPLS network by the control equipment Stating transmission path successively includes: border router A, border router B, border router D, border router F, border router H and border router J.After the transmission path determines, need to establish a specific BGP LSP according to the transmission path Tunnel.When specifically establishing BGP lsp tunnel, it includes the biography that the control equipment can be sent to the border router J The instruction for establishing BGP lsp tunnel in defeated path, the border router J are issuing BGP label to the border router H When routing, the transmission path can be sent to by the border router H by extension bgp protocol.
In embodiments of the present invention, it is specific to can be network manager, SDN controller or installation for the control equipment The equipment such as the server of application software.
Step 203: the network equipment is determining on the transmit path, the upstream with the network equipment direct neighbor Equipment.
In embodiments of the present invention, the network equipment is receiving the instruction for establishing BGP lsp tunnel, can't To the publication BGP label routing of all neighbor devices of the network equipment, but determine specified purpose equipment, i.e., described In transmission path, upstream equipment with the network equipment direct neighbor, and the network equipment is only to the specified mesh Equipment publication BGP label routing, according to the transmission path establish BGP lsp tunnel to realize.Wherein, the direct phase The direct neighbor on the transmit path that neighbour refers to.
It is still illustrated by taking MPLS network shown in Fig. 3 as an example, it is assumed that the transmission path successively includes: border router A, border router B, border router D, border router F, border router H and border router J.The control equipment The instruction for establishing BGP lsp tunnel can be sent to the border router J, the border router J receives the instruction Afterwards, no longer use mode in the prior art, i.e., to border router H and border router J publication BGP label routing, but The upstream equipment in the transmission path with border router J direct neighbor, i.e. border router H are determined, thus subsequent BGP label routing need to be issued to the border router H.To realize according to the transmission path, establish out from the side The BGP lsp tunnel of boundary router H to the border router J.Other border routers are also successively established according to similar fashion BGP lsp tunnel finally establishes out one from the border router A to the border router J according to the transmission path End-to-end BGP lsp tunnel.
It should be noted that in embodiments of the present invention, upstream and downstream refers to the upstream of data transfer direction under Trip.Such as in Fig. 3, since border router J is by issuing BGP label routing to border router H, establish by boundary The BGP lsp tunnel of router H to border router J can be passed data from border router H using the BGP lsp tunnel Transport to border router J, i.e. data transfer direction is border router H to border router J, therefore the border router H It is the upstream equipment of the border router J, the border router J is the upstream device of the border router H.
In embodiments of the present invention, the network equipment is the intermediate equipment or the outlet device, wherein described Intermediate equipment and the outlet device refer to the intermediate equipment and outlet device of the transmission path.It should be noted that with Upstream and downstream is similar, and the outlet of the embodiment of the present invention and entrance refer to outlet and the entrance of data transfer direction.Assuming that In Fig. 3, the end-to-end BGP lsp tunnel from border router A to border router J has been established out on the transmit path, Therefore data transfer direction is also from border router A to border router J, and therefore, the border router A is the transmission The access device in path, border router J are the outlet device of the transmission path, remaining border router is the transmission Intermediate equipment on path.
204: the network equipment sends the first bgp protocol message of extension to the upstream equipment, and the of the extension It include BGP label routing and the first extended attribute of network equipment publication in one bgp protocol message, first extension belongs to Property indicates the transmission path.
When the network equipment is determined in the transmission path, set with the upstream of the network equipment direct neighbor After standby, by issuing BGP routing tag to the upstream equipment, it can realize and establish out the upstream equipment to the network The BGP lsp tunnel of equipment.Wherein when routing to upstream equipment publication BGP label, need to expand bgp protocol Exhibition is to carry the transmission path, so that the upstream equipment can obtain the transmission path.
Wherein, since BGP label routing generally comprises: prefix, next-hop and label.Wherein prefix is usually end-to-end The IP address or IP address prefix of the outlet device of BGP lsp tunnel, that is, initiate to establish the end-to-end BGP LSP tunnel The IP address or IP address prefix of the equipment in road, next-hop are to issue the IP address of the equipment of BGP label routing, and label is To the label of route assignment indicated by the prefix.Therefore in the BGP label routing of the publication of the network equipment described in this step, Prefix is the IP address or IP address prefix of the outlet device of the transmission path, and next-hop is the IP of the network equipment Location, label are the label of route assignment indicated by IP address or IP address prefix to the outlet device.
According to the above-mentioned technical solution, in embodiments of the present invention, the network equipment described establishes BGP receiving It is no longer to the publication BGP label routing of all neighbor devices of the network equipment, establishing out can when the instruction of lsp tunnel The BGP lsp tunnel that can be used less than, but from the instruction for establishing BGP lsp tunnel obtain from access device directly into Outlet device, or the transmission path from the access device by intermediate equipment to the outlet device, in the transmission On path, the first bgp protocol message of extension is sent with the upstream equipment of the network equipment direct neighbor, includes in the message The BGP label routing of the network equipment publication, to be created that the BGP LSP of the upstream equipment to the network equipment Tunnel, it is seen that the embodiment of the present invention establishes the BGP lsp tunnel of assigned direction actually according to the transmission path, from And realize and establish the tunnel BGPLSP on demand, business datum is transmitted on the BGP lsp tunnel established on demand to realize, is solved BGP lsp tunnel is possible to the problem of being wasted, to save system resource.Wherein the transmission path can be transmission institute The transmission path stating business datum and determining, so that the BGP lsp tunnel established out is used for transmission the business Data.
Optionally, the network equipment further can also first determine whether there is institute when obtaining the transmission path Transmission path is stated, if it is, the process of the embodiment of the present invention can be continued, if it is not, then illustrating that the network equipment cannot The transmission path is got, such as the network equipment may not support the bgp protocol of extension, therefore the network equipment can Still according to broadcast distribution BGP label routing in a manner of existing.When specific implementation, before the step 102 of the present embodiment, It can also include: that the network equipment determines that there are the transmission paths;The embodiment of the present invention method further include: the net Network equipment determines that there is no the transmission path, each neighbor device publication BGP label routings of the Xiang Suoshu network equipment.
In embodiments of the present invention, it when the network equipment is routed to upstream equipment publication BGP label, needs pair Bgp protocol is extended to carry the transmission path, in specific implementation, can be carried out by the code to bgp protocol Modification, increases a bgp attribute, i.e. the first extended attribute newly in the first bgp protocol message, and first extended attribute refers to The transmission path is shown.Wherein, first extended attribute can specifically add in BGP elementary path property set.
A kind of implementation of first extended attribute is illustratively introduced below.
First extended attribute increased newly in the first bgp protocol message is specifically as follows the end-to-end LSP node of BGP List attribute (BGP E2E LSP Node List Attribute).Wherein, the BGP E2E LSP Node List The encapsulation format of Attribute can be as shown in table 1.
Table 1
First node attribute
Second node attribute
……
The last one nodal community
The first node attribute, the second node attribute in the table 1 ..., the last one described node category Property refers to the corresponding nodal community of each network equipment in the transmission path.Wherein each nodal community may have Corresponding definition, such as table 2 give a kind of illustrative explanation.
Table 2
Address-Family Identifier
Reserved bit
Subaddressing race mark
The length of subsequent field
Local address
Target base address
In the table 2, local address refers to the address of the network equipment corresponding to the table 2, target base address Refer to the network equipment corresponding to the table 2, on the transmit path the address of the upstream equipment of direct neighbor.It can be seen that logical Tables 1 and 2 is crossed, can indicate that in the transmission path, the upstream equipment of each node.
In embodiments of the present invention, the network equipment can set for the intermediate equipment of the transmission path or outlet It is standby.It is described in detail separately below.
One, the network equipment is the outlet device of the transmission path.
The received instruction for establishing BGP lsp tunnel of outlet device, can specifically be sent by control equipment, Described in establish include the transmission path in BGP lsp tunnel.For example, by taking Fig. 3 as an example, when have business datum need from When border router A is transmitted to border router J, the control equipment can determine an end according to the topology of MPLS network To end path, for example the transmission path successively includes: border router A, border router B, border router D, boundary road By device F, border router H and border router J.It includes the transmission that the control equipment is sent to the border router J The instruction for establishing BGP lsp tunnel in path.It should be noted that the embodiment of the present invention establishes BGP on the transmit path Lsp tunnel is then in Forwarding plane in the BGP lsp tunnel transmitting data built up mainly in control plane.
It, can be and described in the transmission path after the outlet device receives the instruction for establishing BGP lsp tunnel The upstream equipment of outlet device direct neighbor sends the first bgp protocol message of extension, includes the outlet device in the message The BGP label routing of publication and the first extended attribute, to establish out the BGP LSP of the upstream equipment to the outlet device Tunnel.Wherein in the BGP label routing of the outlet device publication, prefix is for the IP address of the outlet device or IP Location prefix, next-hop be the outlet device IP address, label be to the IP address or IP address of the outlet device before Sew the label of indicated route assignment.Wherein first extended attribute indicates the transmission path, for so that described The upstream equipment of outlet device being capable of transmission path described in the first bgp protocol Receive message based on the extension.
Optionally, the outlet device can also obtain the VPN label routing iinformation of business datum, and the VPN is marked It signs routing iinformation and is sent to the access device by modes such as bgp protocols.Wherein, the VPN label routing iinformation includes: VPN label and VPN user information, the VPN user information are used to indicate the access device and will build on the transmit path The vertical end-to-end tunnel BGPLSP is associated with the VPN label, for example, if the VPN is two layers (Layer 2, i.e. L2) VPN, then the VPN user information may include access link (Attachment Circuit, i.e. AC) mark (Identifier, i.e. ID);If the VPN is three layers of (Layer 3, i.e. L3) VPN, then the VPN user information can wrap Include route target (Route Target, i.e. RT).In embodiments of the present invention, the end-to-end BGP lsp tunnel and the VPN Label is associated, refers to that the end-to-end BGP lsp tunnel and the VPN label have corresponding relationship, so that described Access device can utilize the end-to-end BGP lsp tunnel, transmit the corresponding business datum of the VPN label.The correlation One kind of connection is achieved in that, pair in the end-to-end tunnel BGPLSP and the VPN label is saved on the access device It should be related to.Such as in Fig. 3, border router A receives the BGP label routing of border router B publication: 1.1.1.1, 5.5.5.5, after L5, the corresponding relationship of the label L5 and the VPN label in BGP label routing is saved, that is, is realized described The end-to-end tunnel BGPLSP is associated with the VPN label.
Wherein, the VPN label be used for identity user business datum, may include virtual process identifications (English: Virtual Network Identifier, referred to as: VNI), Virtual Private Network routing forwarding identify (Virtual Routing Forwarding Identifier, referred to as: VRF) label etc..Since MPLS network is currently to establish in a broadcast manner The tunnel BGPLSP, therefore when transmitting data, in order to enable data reach purpose equipment, each intermediate equipment require using Complicated policy definition goes out active-standby path, is not only easy error but also O&M is also relatively difficult.And in the embodiment of the present invention not only Establish an end-to-end BGP lsp tunnel on the transmit path, and by the end-to-end BGP lsp tunnel and business number According to VPN label it is associated so that the business datum is transmitted by the tunnel end-to-end BGP LSP, be not necessarily to Active-standby path is defined in each intermediate equipment, not only realizes that simple but also O&M is also relatively easy to.
It should be noted that due in embodiments of the present invention, the outlet device is in the transmission path, with institute State outlet device direct neighbor upstream equipment publication BGP label routing when, in order to by the transmission path also with the BGP Label routing is sent together, needs to be extended bgp protocol, is described in detail below from the angle of the intermediate equipment.
Two, the network equipment is the intermediate equipment of the transmission path.
The received instruction for establishing BGP lsp tunnel of intermediate equipment, in the specially described transmission path with institute State the second bgp protocol message of the extension of the upstream device transmission of intermediate equipment direct neighbor.Wherein the 2nd BGP of the extension Protocol massages include BGP label routing and the second extended attribute of the upstream device publication, the second extended attribute instruction The transmission path out.
That is, second bgp protocol message of the embodiment of the present invention by the extension, the upstream device can be While issuing BGP label routing, the transmission path is indicated by second extended attribute.Therefore the intermediate equipment After the 2nd BGP protocol massages for receiving the extension that the upstream device is sent, can further determine that in the message whether BGP E2E LSP Node List attribute is carried, if there is the attribute, finds the address that local address is the intermediate equipment Nodal community obtain the address of the upstream equipment of the intermediate equipment according to the target base address of the nodal community, pass through To upstream equipment publication BGP label routing, to establish out the BGP LSP tunnel of the upstream equipment to the intermediate equipment Road.Wherein, for the implementation of second extended attribute, the first extended attribute described in the embodiment of the present invention is referred to Related content, which is not described herein again.
Illustrate the BGP label routing of the intermediate equipment publication below.
In the BGP label routing of the intermediate equipment publication, prefix is the IP address or IP address of the outlet device Prefix, next-hop are the IP address of the intermediate equipment, and label is the IP address or IP address prefix to the outlet device The label of indicated route assignment.Such as in Fig. 3, the border router H receives the border router J publication BGP label routing: next-hop therein is revised as the IP address of the border router H by 1.1.1.1,1.1.1.1, L1 2.2.2.2, and label L2 is redistributed, so that the BGP label routing 1.1.1.1 of the intermediate equipment publication is got, 2.2.2.2, L2.It is issued by routing the BGP label to the border router F, to establish out the border router F To the BGP lsp tunnel of the border router H.The border router H is also saved the IP of the border router J simultaneously Address 1.1.1.1 and the corresponding relationship of the border router H and the corresponding relationship of the label L1 and the label L2, For use when forwarding the business datum.
In embodiments of the present invention, each of described transmission path intermediate equipment could set up out the transmission On path, the upstream equipment with the intermediate equipment direct neighbor goes out along with described in the tunnel BGP LSP of the intermediate equipment In the transmission path that jaws equipment is established with the BGP of the upstream equipment of the outlet device direct neighbor to the outlet device Lsp tunnel finally establishes out an end-to-end BGP lsp tunnel on the transmit path.
It should be noted that data are transmitted in the same domain in order to realize, and other than establishing BGP lsp tunnel, one As also need to establish traffic engineering (English: Traffic Engineer, referred to as: TE) tunnel or tag distribution protocol (English Text: Label Distribution Protocol, referred to as: LDP) lsp tunnel.Wherein the same domain is generally referred to as same AS Domain.And at present when establishing LDP lsp tunnel and traffic engineering tunnel, be all before establishing the tunnel BGPLSP, it is just built-in in domain The tunnel LDP LSP and traffic engineering tunnel are found.And in embodiments of the present invention, a kind of mode for establishing traffic engineering tunnel is additionally provided, with reality While now setting up BGP lsp tunnel, traffic engineering tunnel is established.Wherein, LDP lsp tunnel refers to raw using LDP transmitting label At lsp tunnel.
Specifically, after the intermediate equipment receives the instruction for establishing BGP lsp tunnel, the intermediate equipment is established extremely The traffic engineering tunnel of the upstream device.Such as shown in Fig. 3, the intermediate equipment is in the second bgp protocol report for receiving the extension Wen Hou, Xiang Suoshu upstream device hop-by-hop transmitting path request (RSVP PATH MSG), and the upstream device receives the RSVP After PATH MSG, Xiang Suoshu intermediate equipment hop-by-hop transmitting path retains request (RSVP RESV MSG), and the intermediate equipment receives To the RSVP RESV MSG, indicate that the traffic engineering tunnel is successfully established.It can be seen that in the embodiment of the present invention, when the intermediate equipment After the second bgp protocol message for receiving the extension, the traffic engineering tunnel is just begun setting up.Also, the intermediate equipment may be used also With after determining to establish the traffic engineering tunnel, Xiang Suoshu upstream equipment sends the first protocol massages of the extension.
Wherein, what the second bgp protocol message of the extension can indicate that the traffic engineering tunnel of foundation establishes attribute. It specifically, further include third extended attribute in the second bgp protocol message of the extension, the third extended attribute indicates TE Attribute is established in tunnel;The embodiment of the present invention method further include: second bgp protocol report of the intermediate equipment from the extension The traffic engineering tunnel is obtained in text establishes attribute;The intermediate equipment establishes the TE tunnel of the intermediate equipment to the upstream device Road may include: that the intermediate equipment based on the traffic engineering tunnel establishes attribute, establish the intermediate equipment to the downstream and set Standby traffic engineering tunnel.Wherein, the third extended attribute can specifically add in BGP elementary path property set.
A kind of implementation of third extended attribute is illustratively introduced below.
The third extended attribute increased newly in the second bgp protocol message is specifically as follows outer layer tunnel constraint condition Attribute (Outer Tunnel Constraint Attribute).Wherein, the Outer Tunnel Constraint Attribute specifically can be there are many implementation, such as table 3 gives a kind of illustrative explanation.
Table 3
Bandwidth
Dependability parameter
From table 3 it can be seen that the traffic engineering tunnel establish bandwidth constraint condition that attribute may include: traffic engineering tunnel and/or Dependability parameter.
It wherein, can be with before the intermediate equipment establishes traffic engineering tunnel of the intermediate equipment to the upstream device It include: that the intermediate equipment determines that the intermediate equipment and the upstream device have same Field Number.The i.e. described centre is set When the standby and described upstream device has same Field Number, the traffic engineering tunnel is just established, and when the two does not have same Field Number, Then without establishing the traffic engineering tunnel.Where it is determined whether there is same Field Number, it can be by determining that BGP label routing is internal Border Gateway Protocol (i.e. IBGP) route-type or External BGP EBGP route-type are realized, specifically, described After intermediate equipment receives the BGP label routing of the upstream device publication, if it is determined that going out the BGP label routing is IBGP Route-type, indicate to dispose between the intermediate equipment and the upstream device is IBGP neighborhood namely the centre Equipment and the upstream device have same Field Number, then establish the tunnel TE;If it is determined that the BGP label routing It is EBGP route-type, that indicate to dispose between the intermediate equipment and the upstream device is ebgp neighbor relationship, Ye Jisuo It states intermediate equipment and the upstream device does not have same Field Number, then without establishing the traffic engineering tunnel.The wherein Field Number Generally referred to as AS Field Number.
Above in the transmission path outlet device and intermediate equipment be described, implementation of the present invention is described below The access device in the transmission path in example.
Referring to Fig. 4, the embodiment of the invention provides another embodiments of the method for establishing BGP lsp tunnel.
The embodiment of the present invention method includes:
Step 401: the network equipment receives on the transmit path, sends with the upstream device of the network equipment direct neighbor Extension bgp protocol message.
Wherein, the network equipment is the access device of the transmission path.It is described in the present embodiment such as in Fig. 3 The network equipment is border router A.
In the embodiment of the present invention, the bgp protocol message of the extension includes the BGP label road of the upstream device publication By with the first extended attribute, first extended attribute indicates that the transmission path, the transmission path are from the entrance Equipment is directly into outlet device, or the transmission path from the access device by intermediate equipment to the outlet device.Its In, the implementation of first extended attribute specifically may refer in above method embodiment to first extended attribute Introduction, which is not described herein again.
According to the above-mentioned technical solution, in the present embodiment, the access device is sent receiving the upstream device Extension bgp protocol message after, that is, realize and establish a BGP lsp tunnel end to end on the transmit path.
Optionally, the present embodiment can also be related to the VPN label of business datum by the end-to-end tunnel BGPLSP Connection, so that the business datum is transmitted by the end-to-end tunnel BGPLSP, without in each intermediate equipment Active-standby path is defined, not only realizes that simple but also O&M is also relatively easy to.When specific implementation, the present embodiment can also include step 402 and step 403.
Step 402: the network equipment receives the VPN label routing letter for the business datum that the outlet device is sent Breath, the VPN label routing iinformation includes VPN user information and VPN label.Wherein the VPN user information is used to indicate institute State access device the end-to-end BGP lsp tunnel established on the transmit path is associated with the VPN label.For example, If the VPN is L2VPN, the VPN user information may include ACID;It is described if the VPN is L3VPN VPN user information may include RT, and it may include VNI, VRF label etc. that the VPN label, which is used for identity user business datum, Deng.
Step 403: the network equipment is based on the VPN user information, and the end established on the transmit path is arrived Hold BGP lsp tunnel associated with the VPN label.
In embodiments of the present invention, the end-to-end BGP lsp tunnel is associated with the VPN label, refers to described End-to-end BGP lsp tunnel and the VPN label have corresponding relationship, so that the access device can utilize the end To end BGP lsp tunnel, the corresponding business datum of the VPN label is transmitted.The associated specific implementation is asked Referring to the associated description of above method embodiment, which is not described herein again.
The present embodiment can also include that the network equipment obtains the business datum;The network equipment is by the business Data and the VPN label are transmitted by the tunnel end-to-end BGP LSP established on the transmit path.
It should be noted that data are transmitted in the same domain in order to realize, and other than establishing BGP lsp tunnel, one As also need to establish traffic engineering tunnel or LDP lsp tunnel.And in embodiments of the present invention, a kind of traffic engineering tunnel of establishing is additionally provided Mode establishes traffic engineering tunnel while to now set up BGP lsp tunnel in fact.
Optionally, it after the present embodiment may include: the bgp protocol message that the network equipment receives the extension, establishes The network equipment to the upstream device traffic engineering tunnel.
It is further alternative, it further include the second extended attribute in the bgp protocol message of the extension, second extension belongs to What property indicated traffic engineering tunnel establishes attribute;The present embodiment can also include bgp protocol report of the network equipment from the extension The traffic engineering tunnel is obtained in text establishes attribute;The embodiment of the present invention network equipment establishes the network equipment to the downstream The traffic engineering tunnel of equipment, comprising: the network equipment establishes attribute based on the traffic engineering tunnel, establishes the network equipment to described The traffic engineering tunnel of upstream device.Wherein, the attribute of establishing of the traffic engineering tunnel includes: bandwidth constraint condition and/or dependability parameter.
It is further alternative, the network equipment establish the network equipment to the tunnel TE of the upstream device it Before, further includes: the network equipment determines that the network equipment and the upstream device have same Field Number.
For the implementation for specifically establishing mode and second extended attribute of the traffic engineering tunnel, specifically refer to The related content of the traffic engineering tunnel and the third extended attribute in embodiment of the method is stated, which is not described herein again.
The embodiment of the method for establishing BGP lsp tunnel in the embodiment of the present invention is described above, it below will be from The Installation practice of the network equipment in the embodiment of the present invention is described in the angle of modular functionality entity.
Referring to Fig. 5, the embodiment of the invention provides a kind of Installation practices of the network equipment 500.
The embodiment of the present invention network equipment 500 includes receiving unit 501, processing unit 502 and transmission unit 503.
The receiving unit 501 is for receiving the instruction for establishing BGP lsp tunnel.
In the embodiment of the present invention, when needing to establish one from other equipment to the BGP lsp tunnel of the network equipment 500 When, the receiving unit 501 can receive the instruction for establishing BGP lsp tunnel.The wherein BGP lsp tunnel established It indicates can be and is sent by control equipment or in network equipments configuration generation, be also possible to by the network equipment 500 neighbor device is sent.
The processing unit 502 is used for, and obtains transmission path from the instruction for establishing BGP lsp tunnel.
In embodiments of the present invention, the transmission path is from access device directly into outlet device, or from it is described enter Transmission path of the jaws equipment by intermediate equipment to the outlet device.For example, when there is business datum to need to send out from the first equipment When sending to the second equipment, it the modes such as can calculate by manual type or by control equipment, determine one from described first Equipment using the end-to-end path as the transmission path, and is built to the end-to-end path of second equipment by described The instruction of vertical BGP lsp tunnel is so that the network equipment 500 gets the transmission path.
It is illustrated by taking MPLS network shown in Fig. 3 as an example, it is assumed that need to pass from border router A to border router J When defeated business datum, one end-to-end path can be determined according to the topology of the MPLS network by the control equipment, than If the transmission path successively includes: border router A, border router B, border router D, border router F, boundary road By device H and border router J.After the transmission path determines, need to establish a specific BGP according to the transmission path Lsp tunnel.When specifically establishing BGP lsp tunnel, it includes described that the control equipment can be sent to the border router J The instruction for establishing BGP lsp tunnel of transmission path, the border router J are issuing BGP label to the border router H When routing, the transmission path can be sent to by the border router H by extension bgp protocol.
In embodiments of the present invention, it is specific to can be network manager, SDN controller or installation for the control equipment The equipment such as the server of application software.
The processing unit 502 is also used to, and is determined on the transmit path, with 500 direct neighbor of the network equipment Upstream equipment.
In embodiments of the present invention, after the receiving unit 501 receives the instruction for establishing BGP lsp tunnel, institute BGP label routing can't be issued to all neighbor devices of the network equipment 500 by stating transmission unit 503, but by described Processing unit 502 determines specified purpose equipment, i.e., on the transmit path, with 500 direct neighbor of the network equipment Upstream equipment, and the transmission unit 503 is only to the specified purpose equipment publication BGP label routing, to realize BGP lsp tunnel is established according to the transmission path.Wherein, the direct phase on the transmit path that the direct neighbor refers to It is adjacent.
It should be noted that in embodiments of the present invention, upstream and downstream refers to the upstream of data transfer direction under Trip.In embodiments of the present invention, the network equipment 500 is the intermediate equipment or the outlet device.With upstream and under Swim similar, the outlet of the embodiment of the present invention and entrance refer to outlet and the entrance of data transfer direction.
The transmission unit 503 is used for, and Xiang Suoshu upstream equipment sends the first bgp protocol message of extension, the extension The first bgp protocol message in include the network equipment publication BGP label routing and the first extended attribute, it is described first expand Exhibition attribute indicates the transmission path.
When the processing unit 502 is determined in the transmission path, and described in 500 direct neighbor of the network equipment After upstream equipment, BGP routing tag is issued to the upstream equipment by transmission unit 503, can be realized described in establishing out Upstream equipment to the network equipment 500 BGP lsp tunnel.Wherein when being routed to upstream equipment publication BGP label, It needs to be extended bgp protocol to carry the transmission path, so that the upstream equipment can obtain the biography Defeated path.
Wherein, since BGP label routing generally comprises: prefix, next-hop and label.The network equipment 500 is issued BGP label routing in, prefix be the transmission path outlet device IP address or IP address prefix, next-hop is institute The IP address of the network equipment 500 is stated, label is routing indicated by the IP address or IP address prefix to the outlet device The label of distribution.
According to the above-mentioned technical solution, in embodiments of the present invention, the receiving unit 501 is receiving the foundation When the instruction of BGP lsp tunnel, the transmission unit 503 is issued to all neighbor devices of the network equipment 500 BGP label routing, establishes out the tunnel BGP LSP there is a possibility that taking less than, but from the finger for establishing BGP lsp tunnel Show it is middle acquisition from the access device directly into the outlet device, or from the access device by the intermediate equipment to The transmission path of the outlet device, the upstream equipment on the transmit path, with 500 direct neighbor of the network equipment The first bgp protocol message of extension is sent, includes the BGP label routing of the network equipment 500 publication in the message, to create The BGP lsp tunnel of the upstream equipment to the network equipment 500 is built out, it is seen that the embodiment of the present invention is actually basis The transmission path, and the BGP lsp tunnel of assigned direction is established, BGP lsp tunnel is established on demand to realize, to realize Business datum is transmitted on the BGP lsp tunnel established on demand, solves the problems, such as that BGP lsp tunnel is possible to be wasted, from And system resource is saved.The wherein transmission path that the transmission path can be determined to transmit the business datum, from And the BGP lsp tunnel established out is made to be used for transmission the business datum.
Optionally, the processing unit 502 further can also be determined whether there is first when obtaining the transmission path The transmission path, if it is, can continue to obtain the transmission path, if it is not, then illustrating the processing unit 502 not The transmission path can be got, such as the network equipment 500 may not support the bgp protocol of extension, therefore the transmission Unit 503 can be routed still according to existing mode broadcast distribution BGP label.When specific implementation, the processing unit 502 is also It can be used for, before obtaining transmission path in the instruction for establishing BGP lsp tunnel, determine that there are the transmission roads Diameter;The transmission unit 503 is also used to, and the processing unit 502 determines that there is no the transmission path, the transmission units 503 route to each neighbor device of the network equipment 500 publication BGP label.
In embodiments of the present invention, it when the network equipment is routed to upstream equipment publication BGP label, needs pair Bgp protocol is extended to carry the transmission path, in specific implementation, can be carried out by the code to bgp protocol Modification, increases a bgp attribute, i.e. the first extended attribute newly in the first bgp protocol message, and first extended attribute refers to The transmission path is shown.Wherein first extended attribute, refers to the related content in above method embodiment, here not It repeats again.
In embodiments of the present invention, the network equipment 500 can be the intermediate equipment or outlet of the transmission path Equipment.It is described in detail separately below.
One, the network equipment 500 is the outlet device of the transmission path.
The received instruction for establishing BGP lsp tunnel of receiving unit 501, can specifically be sent out by control equipment It send, wherein described establish includes the transmission path in BGP lsp tunnel.For example, by taking Fig. 3 as an example, when there is business datum to need When being transmitted to border router J from border router A, the control equipment can be determined according to the topology of the MPLS network An end-to-end path out, such as the transmission path successively include: border router A, border router B, border router D, border router F, border router H and border router J.The control equipment is sent to the border router J The instruction for establishing BGP lsp tunnel of the transmission path.It should be noted that the embodiment of the present invention is on the transmit path BGP lsp tunnel is established mainly in control plane, and is then flat in forwarding in the tunnel the BGP LSP transmitting data built up Face.
The receiving unit 501 is receiving the instruction for establishing BGP lsp tunnel, and the transmission unit 503 can be to In the transmission path, BGP label routing is issued with the upstream equipment of the outlet device direct neighbor, to establish out institute State the BGP lsp tunnel of upstream equipment to the outlet device.It is preceding wherein in the BGP label routing of the outlet device publication Sew the IP address or IP address prefix for the outlet device, next-hop is the IP address of the outlet device, label pair The label of route assignment indicated by the address IP of the outlet device or IP address prefix.
Optionally, the processing unit 502 can be also used for obtaining the VPN label routing iinformation of the business datum, institute It states transmission unit 503 and can be also used for the VPN label routing iinformation being sent to the entrance by modes such as bgp protocols and set It is standby.Wherein, the VPN label routing iinformation includes: VPN label and VPN user information, and the VPN user information is used to indicate The access device is associated with the VPN label by the end-to-end tunnel BGPLSP established on the transmit path, for example, If the VPN is L2VPN, the VPN user information may include ACID;It is described if the VPN is L3VPN VPN user information may include RT.In embodiments of the present invention, the end-to-end tunnel BGPLSP is related to the VPN label Connection refers to that the end-to-end BGP lsp tunnel and the VPN label have corresponding relationship, so that the access device The end-to-end BGP lsp tunnel can be utilized, the corresponding business datum of the VPN label is transmitted.It is described associated One kind is achieved in that, end-to-end BGP lsp tunnel pass corresponding with the VPN label is saved on the access device System.
Wherein, the VPN label is used for identity user business datum, may include VNI, VRF label etc..Due to MPLS Network is currently to establish BGP lsp tunnel in a broadcast manner, therefore when transmitting data, set in order to enable data reach purpose Standby, each intermediate equipment requires to go out active-standby path using complicated policy definition, is not only easy error but also O&M also compares It is more difficult.And an end-to-end BGP lsp tunnel is not only established in the embodiment of the present invention on the transmit path, but also will The tunnel end-to-end BGP LSP is associated with the VPN label of business datum, so that the business datum is arrived by the end End BGP lsp tunnel is transmitted, and without defining active-standby path in each intermediate equipment, not only realizes simple but also O&M Also it is relatively easy to.
It should be noted that due in embodiments of the present invention, the transmission unit 503 in the transmission path, When with the publication BGP label routing of the upstream equipment of the outlet device direct neighbor, in order to by the transmission path also with institute It states BGP label routing to send together, needs to be extended bgp protocol, carried out below from the angle of the intermediate equipment detailed Description.
Two, the network equipment 500 is the intermediate equipment of the transmission path.
The receiving unit 501 is specifically used for receiving in the transmission path, under the intermediate equipment direct neighbor The second bgp protocol message of the extension that equipment is sent is swum, the second bgp protocol message of the extension includes the upstream device hair The BGP label routing of cloth and the second extended attribute, second extended attribute indicate the transmission path.
That is, second bgp protocol message of the embodiment of the present invention by the extension, the upstream device can be While issuing BGP label routing, the transmission path is indicated by second extended attribute.Therefore the receiving unit 501 after the second bgp protocol message for receiving the extension that the upstream device is sent, and the processing unit 502 can be into one It walks and determines in the message whether carry BGP E2E LSP Node List attribute, if there is the attribute, finding local address is The nodal community of the address of the intermediate equipment obtains the intermediate equipment according to the target base address of the nodal community BGP label routing is issued to the upstream equipment by the transmission unit 503, to establish out institute in the address of upstream equipment State the BGP lsp tunnel of upstream equipment to the intermediate equipment.Wherein, it for the implementation of second extended attribute, asks Referring to the related content of the first extended attribute described in the embodiment of the present invention, which is not described herein again.
In the BGP label routing of the intermediate equipment publication, prefix is the IP of outlet device described in the transmission path Address or IP address prefix, next-hop are the IP address of the intermediate equipment, and label is the IP address to the outlet device Or the label of route assignment indicated by IP address prefix.
In embodiments of the present invention, each of described transmission path intermediate equipment could set up out the transmission On path, the upstream equipment with the intermediate equipment direct neighbor goes out along with described in the tunnel BGP LSP of the intermediate equipment In the transmission path that jaws equipment is established, with the upstream equipment of the outlet device direct neighbor to the outlet device BGP lsp tunnel finally establishes out an end-to-end BGP lsp tunnel on the transmit path.
It should be noted that data are transmitted in the same domain in order to realize, and other than establishing BGP lsp tunnel, one As also need to establish traffic engineering tunnel or LDP lsp tunnel.And at present when establishing the tunnel LDP and traffic engineering tunnel, it is all to establish BGP Before lsp tunnel, the tunnel LDP LSP and traffic engineering tunnel are just established in domain.And in embodiments of the present invention, also provide A kind of mode that establishing traffic engineering tunnel, with it is real now set up BGP lsp tunnel while, establish traffic engineering tunnel.
Specifically, the processing unit 502 is also used to, and the receiving unit 501 receives the BGP lsp tunnel of establishing After instruction, the processing unit 502 establishes the traffic engineering tunnel of the intermediate equipment to the upstream device.Such as shown in Fig. 3, institute Receiving unit 501 is stated after receiving the second bgp protocol message of the extension, the processing unit 502 passes through the transmission Unit 503 sends RSVP PATH MSG to the upstream device hop-by-hop, and the upstream device receives the RSVP PATH After MSG, Xiang Suoshu intermediate equipment hop-by-hop sends RSVP RESV MSG, and the receiving unit 501 receives the RSVP RESV MSG indicates that the traffic engineering tunnel is successfully established.It can be seen that in the embodiment of the present invention, when the receiving unit 501 receives the extension The second bgp protocol message after, the processing unit 502 just begins setting up the traffic engineering tunnel.Also, the processing unit 502 It can also be after determining to establish the traffic engineering tunnel, the transmission unit 503 is routed to upstream equipment publication BGP label.
Wherein, what the second bgp protocol message of the extension can indicate that the traffic engineering tunnel of foundation establishes attribute. It specifically, further include third extended attribute in the second bgp protocol message of the extension, the third extended attribute indicates TE Attribute is established in tunnel;The processing unit 502 is also used to, and obtains the TE from the second bgp protocol message of the extension Attribute is established in tunnel;When establishing traffic engineering tunnel of the intermediate equipment to the upstream device, the processing unit 502 is specific For establishing attribute based on the traffic engineering tunnel, the traffic engineering tunnel of the intermediate equipment to the upstream device is established.The TE The bandwidth constraint condition and/or dependability parameter that attribute may include: traffic engineering tunnel are established in tunnel.Wherein, the third extension Attribute can specifically participate in the related place of above method embodiment, and which is not described herein again.
Wherein, the processing unit 502 can be also used for, and establish TE tunnel of the intermediate equipment to the upstream device Before road, determine that the intermediate equipment and the upstream device have same Field Number.The i.e. described intermediate equipment and it is described under When swimming equipment has same Field Number, traffic engineering tunnel is just established, and when the two does not have same Field Number, then without establishing TE tunnel Road.Where it is determined whether have same Field Number, can by determine BGP label routing be Internal BGP (i.e. IBGP) route-type or External BGP (i.e. EBGP) route-type are realized, specifically refer to above method implementation Example, which is not described herein again.
Above in the transmission path outlet device and intermediate equipment be described, implementation of the present invention is described below The access device in the transmission path in example.
Referring to Fig. 6, the embodiment of the invention also provides a kind of Installation practices of the network equipment 600.
The embodiment of the present invention network equipment 600 includes receiving unit 601.
The receiving unit 601 is set for receiving on the transmit path with the downstream of 600 direct neighbor of the network equipment The bgp protocol message for the extension that preparation is sent.
Wherein, the network equipment 600 is the access device of the transmission path.Institute such as in Fig. 3, in the present embodiment Stating the network equipment 600 is border router A.
In the embodiment of the present invention, the bgp protocol message of the extension includes the BGP label road of the upstream device publication By with the first extended attribute, first extended attribute indicates that the transmission path, the transmission path are from access device Directly into outlet device, or the transmission path from the access device by intermediate equipment to the outlet device.Wherein, institute The implementation for stating the first extended attribute specifically may refer in above method embodiment to Jie of first extended attribute It continues, which is not described herein again.
According to the above-mentioned technical solution, in the present embodiment, access device in the transmission path, i.e., the described network is set Standby 600 after the bgp protocol message for receiving the extension that the upstream device is sent, that is, realize and establish on the transmit path One BGP lsp tunnel end to end.
Optionally, the present embodiment can also be related to the VPN label of business datum by the end-to-end BGP lsp tunnel Connection, so that the business datum is transmitted by the end-to-end BGP lsp tunnel, without in each intermediate equipment Active-standby path is defined, not only realizes that simple but also O&M is also relatively easy to.
When specific implementation, the present embodiment can also include processing unit.The receiving unit 601 is also used to, described in reception The VPN label routing iinformation for the business datum that outlet device is sent, the VPN label routing iinformation include VPN user's letter Breath and VPN label.Wherein the VPN user information is used to indicate the end that the access device will be established on the transmit path It is associated with the VPN label to the end tunnel BGPLSP, it can specifically include RT and RD, the VPN label is used for identity user Business datum may include VNI, VRF label etc..The processing unit is used to be based on the VPN user information, will be described The end-to-end BGP lsp tunnel established in transmission path is associated with the VPN label.In embodiments of the present invention, the end It is associated with the VPN label to end BGP lsp tunnel, refer to that the end-to-end BGP lsp tunnel and the VPN label have There is corresponding relationship, so that the access device can utilize the end-to-end BGP lsp tunnel, transmits the VPN label The corresponding business datum.The associated specific implementation refers to the associated description of above method embodiment, this In repeat no more.
Wherein, the processing unit can be also used for, and obtain the business datum, by the business datum and the VPN Label is transmitted by the end-to-end BGP lsp tunnel established on the transmit path.
It should be noted that data are transmitted in the same domain in order to realize, and other than establishing BGP lsp tunnel, one As also need to establish traffic engineering tunnel or LDP lsp tunnel.And in embodiments of the present invention, a kind of traffic engineering tunnel of establishing is additionally provided Mode establishes traffic engineering tunnel while to now set up BGP lsp tunnel in fact.
Optionally, the present embodiment can also include processing unit, and the processing unit can be used for, the receiving unit After 601 receive the bgp protocol message of the extension, the processing unit establishes the network equipment 600 to the upstream device Traffic engineering tunnel.
It is further alternative, it further include the second extended attribute in the bgp protocol message of the extension, second extension belongs to What property indicated traffic engineering tunnel establishes attribute;The processing unit is also used to, from the bgp protocol message of the extension described in acquisition Traffic engineering tunnel establishes attribute;When establishing traffic engineering tunnel of the network equipment 600 to the upstream device, the processing unit tool Body is used to establish attribute based on the traffic engineering tunnel, establishes the traffic engineering tunnel of the network equipment 600 to the upstream device.Its In, the attribute of establishing of the traffic engineering tunnel includes: bandwidth constraint condition and/or dependability parameter.
Further alternative, the processing unit is also used to, and is establishing the network equipment 600 to the upstream device Before traffic engineering tunnel, determine that the network equipment 600 and the upstream device have same Field Number.
For the implementation for specifically establishing mode and second extended attribute of the traffic engineering tunnel, specifically refer to The related content of the traffic engineering tunnel and the third extended attribute in embodiment of the method is stated, which is not described herein again.
It is carried out above from Installation practice of the angle of modular functionality entity to the network equipment in the embodiment of the present invention Description.It will be described below from Installation practice of the angle of hardware handles to the network equipment in the embodiment of the present invention.
Referring to FIG. 7, one embodiment of the present of invention provides a kind of network equipment 700, which be can be Micro process computer.Such as: the network equipment 700 can be general purpose computer, customization machine, mobile phone terminal or purl machine etc. One of portable equipment.The network equipment 700 includes: processor 704, memory 706, communication interface 702 and bus 708. Processor 704, memory 706 and communication interface 702 connect by bus 708 and complete mutual communication.
The bus 708 can be industry standard architecture (Industry Standard Architecture, abbreviation For ISA) bus or external equipment interconnection (Peripheral Component, referred to as PCI) bus or extension industrial standard body Architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be with It is divided into one of address bus, data/address bus, control bus or a variety of.For convenient for indicating, only with a thick line table in Fig. 7 Show, it is not intended that an only bus or a type of bus.
For memory 706 for storing executable program code, which includes computer operation instruction.When network is set When standby 700 execution program code, the network equipment 700 can complete step 201~204 of embodiment shown in Fig. 2, The institute that the network equipment 500 described in embodiment shown in fig. 5 may be implemented is functional.Memory 706 may include high-speed RAM (Ramdom Access Memory) memory.Optionally, memory 706 can also further include nonvolatile memory (non- volatile memory).Such as memory 706 may include magnetic disk storage.
Processor 704 can be a central processing unit (Central Processing Unit, referred to as CPU), or Be processor 704 can with specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or processor 704 can be arranged to implement one or more integrated circuits of the embodiment of the present invention.
Communication interface 702 establishes BGP for executing the reception in embodiment shown in Fig. 2 and embodiment shown in fig. 5 The operation of the instruction of lsp tunnel.
Processor 704, for reading the instruction stored in memory 706, thereby executing embodiment shown in Fig. 2 and Fig. 5 Shown in obtaining transmission path from the instruction for establishing BGP lsp tunnel, determining in the transmission path in embodiment With the operation of the upstream equipment of 700 direct neighbor of the network equipment.
The communication interface 702 is also used to execute in embodiment shown in Fig. 2 and embodiment shown in fig. 5, Xiang Suoshu Upstream equipment sends the operation of the first bgp protocol message of extension, includes described in the first bgp protocol message of the extension The BGP label routing and the first extended attribute, first extended attribute that the network equipment 700 is issued indicate the transmission road Diameter.
Wherein, the network equipment 700 is the intermediate equipment or the outlet device.The transmission path is from entering Jaws equipment is directly into outlet device, or the transmission path from the access device by intermediate equipment to the outlet device.
It is worth noting that each functional unit of the network equipment 700 provided in this embodiment, can be based on Fig. 2 Shown in the specific implementation of function that has of embodiment of the method and Installation practice shown in fig. 5, the definition and explanation of term It is consistent with embodiment of the method shown in Fig. 2 and Installation practice shown in fig. 5, details are not described herein again.
Above in the transmission path outlet device and intermediate equipment be described, implementation of the present invention is described below The access device in the transmission path in example.
Referring to FIG. 8, one embodiment of the present of invention provides a kind of network equipment 800, which be can be Micro process computer.Such as: the network equipment 800 can be general purpose computer, customization machine, mobile phone terminal or purl machine etc. One of portable equipment.The network equipment 800 includes: processor 804, memory 806, communication interface 802 and bus 808. Processor 804, memory 806 and communication interface 802 connect by bus 808 and complete mutual communication.
The bus 808 can be industry standard architecture (Industry Standard Architecture, abbreviation For ISA) bus or external equipment interconnection (Peripheral Component, referred to as PCI) bus or extension industrial standard body Architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be with It is divided into one of address bus, data/address bus, control bus or a variety of.For convenient for indicating, only with a thick line table in Fig. 8 Show, it is not intended that an only bus or a type of bus.
For memory 806 for storing executable program code, which includes computer operation instruction.When network is set Standby 800 when executing the program code, and the network equipment 800 can complete the step 401 of embodiment shown in Fig. 4, can also be with Realize that the institute of the network equipment 600 described in embodiment shown in fig. 6 is functional.Memory 806 may include high-speed RAM (Ramdom Access Memory) memory.Optionally, memory 806 can also further include nonvolatile memory (non- volatile memory).Such as memory 806 may include magnetic disk storage.
Processor 804 can be a central processing unit (Central Processing Unit, referred to as CPU), or Person be processor 804 can with specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or processor 804 can be arranged to implement one or more integrated circuits of the embodiment of the present invention.
Communication interface 802, for executing the reception in embodiment shown in Fig. 4 and embodiment shown in fig. 6 on transmission road On diameter, the operation of the bgp protocol message of the extension sent with the upstream device of the network equipment direct neighbor.
Wherein, the bgp protocol message of the extension includes the BGP label routing and the first extension of the upstream device publication Attribute, first extended attribute indicate that the transmission path, the transmission path are set from access device directly into outlet It is standby, or the transmission path from the access device by intermediate equipment to the outlet device;The network equipment 800 is institute State access device.
It is worth noting that each functional unit of the network equipment 800 provided in this embodiment, can be based on Fig. 4 Shown in the specific implementation of function that has of embodiment of the method and Installation practice shown in fig. 6, the definition and explanation of term It is consistent with embodiment of the method shown in Fig. 4 and Installation practice shown in fig. 6, details are not described herein again.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (28)

1. a kind of method for establishing BGP lsp tunnel characterized by comprising
The network equipment receives the instruction for establishing Border Gateway Protocol (BGP) label switching path LSP tunnel;
The network equipment obtains transmission path from the instruction for establishing BGP lsp tunnel, and the transmission path is from entering Jaws equipment is directly into outlet device, or the transmission path from the access device by intermediate equipment to the outlet device;
The network equipment is determining on the transmit path, the upstream equipment with the network equipment direct neighbor;
The network equipment sends the first bgp protocol message of extension, the first bgp protocol of the extension to the upstream equipment It include that the BGP label routing of network equipment publication and the first extended attribute, first extended attribute indicate in message The transmission path;
Wherein, the network equipment is the intermediate equipment or the outlet device.
2. the method according to claim 1, wherein the network equipment is the intermediate equipment;
The network equipment receives the BGP lsp tunnel of establishing and indicates, comprising:
The intermediate equipment receives the expansion sent with the upstream device of the intermediate equipment direct neighbor on the transmit path Second bgp protocol message of exhibition, the second bgp protocol message of the extension include the BGP label road of the upstream device publication By with the second extended attribute, second extended attribute indicates the transmission path.
3. according to the method described in claim 2, it is characterized in that, the network equipment is the intermediate equipment;The method Further include:
After the intermediate equipment receives the instruction for establishing BGP lsp tunnel, establishes the intermediate equipment to the downstream and set Standby TE tunnel of traffic engineering.
4. according to the method described in claim 3, it is characterized in that, further including in the second bgp protocol message of the extension Three extended attributes, what the third extended attribute indicated traffic engineering tunnel establishes attribute;
The method also includes:
What the intermediate equipment obtained the traffic engineering tunnel from the second bgp protocol message of the extension establishes attribute;
The intermediate equipment establishes the traffic engineering tunnel of the intermediate equipment to the upstream device, comprising:
The intermediate equipment establishes attribute based on the traffic engineering tunnel, establishes the TE tunnel of the intermediate equipment to the upstream device Road.
5. according to the method described in claim 4, it is characterized in that, the traffic engineering tunnel establishes the band that attribute includes: traffic engineering tunnel Wide constraint condition and/or dependability parameter.
6. according to the described in any item methods of claim 3 to 5, which is characterized in that establish the centre in the intermediate equipment Before equipment to the traffic engineering tunnel of the upstream device, further includes:
The intermediate equipment determines that the intermediate equipment and the upstream device have same Field Number.
7. the method according to claim 1, wherein the network equipment is the outlet device, the method Further include:
The outlet device obtains the virtual private network label routing information of business datum, and the VPN label is routed and is believed Breath is sent to the access device, and the VPN label routing iinformation includes VPN user information and VPN label, the VPN user Information is used to indicate the access device and marks the end-to-end BGP lsp tunnel established on the transmit path and the VPN Label are associated.
8. a kind of method for establishing BGP lsp tunnel characterized by comprising
The network equipment receives the boundary of the extension on the transmit path, sent with the upstream device of the network equipment direct neighbor Gateway protocol bgp protocol message, the bgp protocol message of the extension include upstream device publication BGP label routing and First extended attribute, first extended attribute indicate that the transmission path, the transmission path are direct from access device To outlet device, or the transmission path from the access device by intermediate equipment to the outlet device;
Wherein, the network equipment is the access device.
9. according to the method described in claim 8, it is characterized by further comprising:
After the network equipment receives the bgp protocol message of the extension, the network equipment is established to the upstream device TE tunnel of traffic engineering.
10. according to the method described in claim 9, it is characterized in that, further including the second expansion in the bgp protocol message of the extension Attribute is opened up, what second extended attribute indicated traffic engineering tunnel establishes attribute;
The method also includes:
What the network equipment obtained the traffic engineering tunnel from the bgp protocol message of the extension establishes attribute;
The network equipment establishes the traffic engineering tunnel of the network equipment to the upstream device, comprising:
The network equipment establishes attribute based on the traffic engineering tunnel, establishes the TE tunnel of the network equipment to the upstream device Road.
11. according to the method described in claim 10, it is characterized in that, the attribute of establishing of the traffic engineering tunnel includes: bandwidth constraint Condition and/or dependability parameter.
12. according to the described in any item methods of claim 9 to 11, which is characterized in that establish the net in the network equipment Before network equipment to the traffic engineering tunnel of the upstream device, further includes:
The network equipment determines that the network equipment and the upstream device have same Field Number.
13. method according to any one of claims 8 to 11, which is characterized in that further include:
The network equipment receives the virtual private network label routing information for the business datum that the outlet device is sent, institute Stating VPN label routing iinformation includes VPN user information and VPN label;
The network equipment is based on the VPN user information, and the end-to-end BGP label established on the transmit path is exchanged Path lsp tunnel is associated with the VPN label.
14. according to the method for claim 13, which is characterized in that the method also includes:
The network equipment obtains the business datum;
The network equipment is end-to-end by what is established on the transmit path by the business datum and the VPN label BGP lsp tunnel is transmitted.
15. a kind of network equipment characterized by comprising
Receiving unit, for receiving the instruction for establishing Border Gateway Protocol (BGP) label switching path LSP tunnel;
Processing unit is determined for obtaining transmission path from the instruction for establishing BGP lsp tunnel in the transmission path On, the upstream equipment with the network equipment direct neighbor, the transmission path is from access device directly into outlet device, or Transmission path of the person from the access device by intermediate equipment to the outlet device;
Transmission unit, for sending the first bgp protocol message of extension, the first BGP association of the extension to the upstream equipment Discuss the BGP label routing in message including network equipment publication and the first extended attribute, the first extended attribute instruction The transmission path out;
Wherein, the network equipment is the intermediate equipment or the outlet device.
16. the network equipment according to claim 15, which is characterized in that the network equipment is the intermediate equipment;
The receiving unit is specifically used for receiving on the transmit path, the upstream device with the intermediate equipment direct neighbor Second bgp protocol message of the second bgp protocol message of the extension of transmission, the extension includes what the upstream device was issued BGP label routing and the second extended attribute, second extended attribute indicate the transmission path.
17. the network equipment according to claim 16, which is characterized in that the network equipment is the intermediate equipment;
The processing unit is also used to, and after the receiving unit receives the instruction for establishing BGP lsp tunnel, the processing is single Member establishes the TE tunnel of traffic engineering of the intermediate equipment to the upstream device.
18. the network equipment according to claim 17, which is characterized in that in the second bgp protocol message of the extension also Including third extended attribute, what the third extended attribute indicated traffic engineering tunnel establishes attribute;
The processing unit is also used to, and the traffic engineering tunnel is obtained from the second bgp protocol message of the extension establishes attribute;
When establishing traffic engineering tunnel of the intermediate equipment to the upstream device, the processing unit is specifically used for being based on the TE Attribute is established in tunnel, establishes the traffic engineering tunnel of the intermediate equipment to the upstream device.
19. the network equipment according to claim 18, which is characterized in that the attribute of establishing of the traffic engineering tunnel includes: TE tunnel The bandwidth constraint condition and/or dependability parameter in road.
20. 7 to 19 described in any item network equipments according to claim 1, which is characterized in that the processing unit is also used to, Before establishing traffic engineering tunnel of the intermediate equipment to the upstream device, the intermediate equipment and the upstream device are determined With same Field Number.
21. the network equipment according to claim 15, which is characterized in that the network equipment is the outlet device,
The processing unit is also used to, and obtains the virtual private network label routing information of business datum;
The transmission unit is also used to, and the VPN label routing iinformation is sent to the access device, the VPN label road It include VPN user information and VPN label by information, the VPN user information is used to indicate the access device will be in the biography The end-to-end BGP lsp tunnel established on defeated path is associated with the VPN label.
22. a kind of network equipment characterized by comprising
Receiving unit, for receiving the extension sent with the upstream device of the network equipment direct neighbor on the transmit path Border Gateway Protocol (BGP) protocol massages;The bgp protocol message of the extension includes the BGP label of the upstream device publication Routing and the first extended attribute, first extended attribute indicate that the transmission path, the transmission path are set from entrance For the transmission path directly into outlet device, or from the access device by intermediate equipment to the outlet device;
Wherein, the network equipment is the access device.
23. the network equipment according to claim 22, which is characterized in that the network equipment further include: processing unit;
The processing unit is also used to, and after the receiving unit receives the bgp protocol message of the extension, the processing unit is built Found the TE tunnel of traffic engineering of the network equipment to the upstream device.
24. the network equipment according to claim 23, which is characterized in that further include in the bgp protocol message of the extension Second extended attribute, what second extended attribute indicated traffic engineering tunnel establishes attribute;
The processing unit is also used to, and the traffic engineering tunnel is obtained from the bgp protocol message of the extension establishes attribute;
When establishing traffic engineering tunnel of the network equipment to the upstream device, the processing unit is specifically used for being based on the TE Attribute is established in tunnel, establishes the traffic engineering tunnel of the network equipment to the upstream device.
25. the network equipment according to claim 24, which is characterized in that the attribute of establishing of the traffic engineering tunnel includes: bandwidth Constraint condition and/or dependability parameter.
26. according to the described in any item network equipments of claim 23 to 25, which is characterized in that the processing unit is also used to, Before establishing traffic engineering tunnel of the network equipment to the upstream device, the network equipment and the upstream device are determined With same Field Number.
27. according to the described in any item network equipments of claim 22 to 25, which is characterized in that
The receiving unit is also used to receive the virtual private network label routing for the business datum that the outlet device is sent Information, the VPN label routing iinformation include VPN user information and VPN label;
The network equipment further include: processing unit, the processing unit are used to be based on the VPN user information, will be described The end-to-end BGP label switching path lsp tunnel established in transmission path is associated with the VPN label.
28. the network equipment according to claim 27, which is characterized in that the network equipment further include: processing unit, institute It states processing unit to be also used to, obtains the business datum, by the business datum and the VPN label, by the transmission The end-to-end BGP lsp tunnel established on path is transmitted.
CN201510040793.4A 2015-01-27 2015-01-27 A kind of method that establishing BGP lsp tunnel and the network equipment Active CN105991385B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510040793.4A CN105991385B (en) 2015-01-27 2015-01-27 A kind of method that establishing BGP lsp tunnel and the network equipment
PCT/CN2015/088976 WO2016119461A1 (en) 2015-01-27 2015-09-06 Method and network device for establishing bgp lsp tunnel

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN105991385A CN105991385A (en) 2016-10-05
CN105991385B true CN105991385B (en) 2019-03-26

Family

ID=56542325

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630320B (en) * 2020-05-06 2023-03-24 瞻博网络公司 Method for creating tunnel in computer network, entrance network device and storage medium
CN114915518A (en) * 2021-02-07 2022-08-16 华为技术有限公司 Message transmission method, system and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716904A (en) * 2004-06-30 2006-01-04 华为技术有限公司 Group broadcast realizing method based on multiple service transmission platform
CN101150491A (en) * 2006-09-22 2008-03-26 华为技术有限公司 An optimization method for multicast tree in multi-protocol label switching network
EP1976319A1 (en) * 2007-03-28 2008-10-01 NTT DoCoMo, Inc. Method and apparatus for performing a seamless handover of a multicast source
CN102487351A (en) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 Establishment method of end-to-end multicast label switched path, apparatus thereof and system

Family Cites Families (5)

* 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
US7751405B1 (en) * 2007-09-26 2010-07-06 Juniper Networks, Inc. Automatic configuration of label switched path tunnels using BGP attributes
US8593973B2 (en) * 2010-03-09 2013-11-26 Juniper Networks, Inc. Communicating network path and status information in multi-homed networks
US20130022041A1 (en) * 2011-07-18 2013-01-24 Sriganesh Kini Signaling a label switched path (lsp) tunneling model
CN103475557B (en) * 2013-09-05 2017-02-08 华为技术有限公司 Tunnel setup method and router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716904A (en) * 2004-06-30 2006-01-04 华为技术有限公司 Group broadcast realizing method based on multiple service transmission platform
CN101150491A (en) * 2006-09-22 2008-03-26 华为技术有限公司 An optimization method for multicast tree in multi-protocol label switching network
EP1976319A1 (en) * 2007-03-28 2008-10-01 NTT DoCoMo, Inc. Method and apparatus for performing a seamless handover of a multicast source
CN102487351A (en) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 Establishment method of end-to-end multicast label switched path, apparatus thereof and system

Also Published As

Publication number Publication date
CN105991385A (en) 2016-10-05
WO2016119461A1 (en) 2016-08-04

Similar Documents

Publication Publication Date Title
CN105939257B (en) Communication means and router
CN105379197B (en) It establishes the method in tunnel, distribute method, equipment and the network system of label
CN105049350B (en) Utilize the method, apparatus and system of the Segment routing of the reciprocity engineering in outlet
EP2880826B1 (en) Label distribution and route installation in a loop-free routing topology using routing arcs
CN107306222B (en) Method and equipment for establishing traffic engineering tunnel on label switching path
CN111385165A (en) Method and device for configuring Seamless Bidirectional Forwarding Detection (SBFD) mechanism
CN108337157A (en) The method and node of transmitting message in a kind of network
EP3780514B1 (en) Tunnel setup method, apparatus, and system
CN105830500B (en) Method and apparatus for packet network
WO2015010518A1 (en) Service transmission path determination method, device and system
CN103841022A (en) Method and device for building tunnel
CN101523354A (en) Protecting multi-segment pseudowires
CN105516025B (en) Path clustering and data transmission method, OpenFlow controller and interchanger end to end
CN107483338A (en) A kind of method, apparatus and system for determining cross-domain label switched path tunnel
CN105531966B (en) The method, apparatus and system of message routing are realized in a kind of network
CN105814944B (en) Topology Discovery based on explicit signaling
CN106982157A (en) Traffic engineering tunnel building method and device
CN105515802B (en) Network virtualization method and device
CN106105114A (en) The more preferable replacement paths belonging to IS IS prefix more
CN107959611B (en) Method, device and system for forwarding message
CN103117925A (en) Processing method and processing device for data message forward
CN114465920A (en) Method, device and system for determining corresponding relation
CN108141392A (en) The method and apparatus that pseudowire load is shared
CN105391633A (en) Transponder, controller and route distribution method of controller
CN105991385B (en) A kind of method that establishing BGP lsp tunnel and the network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant