In the prior art, Customer PE1 needs will be including sub-VPN(That is VPN A-1)The VPNV4 routes of routing iinformation
CE1 is sent to, VPNV4 routes are sent to Provider PE1 by CE1, VPNV4 routes include sub-VPN(VPN A-1)
RD information(100:1)With RT information(100:1).
On RD(Route Distinguish, route is distinguished)Information, due to BGP(Border Gateway
Protocol, Border Gateway Protocol)The VPN routes of address space overlap cannot correctly be processed(Assuming that VPN A-1 and VPN A-2
The address of the 1.1.1.1/32 network segments is used, and has each issued a route for going to this network segment, then BGP can have been selected wherein
One route, so as to cause another lost route);Based on this, BGP is set correctly to process address space by RD information
The VPN routes of overlap;In VPNV4 routes, the VPN-IPv4 addresses including RD information are carried, and the VPN-IPv4 addresses are common
Have 12 bytes, including 8 bytes RD information and 4 IPv4 address prefixs of byte.
On RT(Route Target, route target)Information, by using BGP extended community attributes RT(Also referred to as VPN
Target)Come the issue for controlling VPN to route;RT information includes:Export(Outlet)Target attributes(Local PE equipment will be from
It is that these routes set Export before the VPN-IPv4 routes acquired with itself direct-connected Site are distributed to other PE equipment
Target attributes)And Import(Entrance)Target attributes(PE equipment is receiving the VPN-IPv4 routes of other PE equipment issue
When, Export Target attributes are checked, only when this attribute is with local Import Target attributes match, just route is added
Enter to VPN routing tables);Therefore RT information definitions VPN-IPv4 routes can be received by which Site, and PE equipment can connect
The route which Site sends is received, and assumes that Export Target are identical with Import Target configurations in subsequent descriptions.
Further, after VPNV4 routes are sent to Provider PE1 by CE1, Provider PE1 can be by the VPNV4 roads
RD information in(100:1)Replace with itself RD information(200:1), and will substituted for the VPNV4 route transmissions of RD information to
Provider PE2;Additionally, Provider PE1 can be by the RT information of itself(100:1)It is added in VPNV4 routes(Due to
RT information in VPNV4 routes is 100:1, therefore be currently not added with), and will with the addition of the VPNV4 route transmissions of RT information to
Provider PE2。
RD information during route for VPNV4 by operator's PE equipment replaces with itself RD information, and transmission substituted for RD information
VPNV4 when routeing, when the RD information overlaps of operator PE equipment and a VPN instance of user's PE equipment, and IP route weights
When folded, it will because RD information overlaps lead to not distinguish VPN.
As shown in Fig. 2 CE3, CE4 be VPN A-1 in website, CE5 be VPN A-2 in website, Customer PE1 and
The RD that VPN A-1 are configured on Customer PE2 is 100:The RD that VPN A-2 are configured on 1, Customer PE3 is 200:1,
The RD that VPN A are configured on Provider PE1 and Provider PE2 is 200:1.
Under above-mentioned application scenarios, in the VPNV4 of Provider PE1 routes are sent to, RD information is 100 to CE1:1, IP
It is 1.1.1.1 to route, and the RD information that route for VPNV4 by Provider PE1 is revised as 200:1, by amended VPNV4 routes
Provider PE2 are sent to, amended VPNV4 routes are sent to CE2 by Provider PE2, and CE2 will be amended
VPNV4 routes are sent to Customer PE2;Customer PE2 study puts this VPNV4 routes to VPNV4 routes
Enter in BGP-VPNV4 routing tables, and VPNV4 routes, RD information is 200:1, IP route is 1.1.1.1.Customer PE3
From CE5 receive 1.1.1.1 this route after, to Provider PE2 send VPNV4 route;Customer PE3 configure RD
200:1, therefore in the VPNV4 routes sent to Customer PE2, RD information is 200:1, IP route is 1.1.1.1,
Customer PE2 learn VPNV4 routes, and put this VPNV4 routes into BGP-VPNV4 routing tables, VPNV4 routes
In, RD information is 200:1, IP route is 1.1.1.1.
In sum, occur two identical VPNV4 routes, RD letters in the BGP-VPNV4 routing tables of Customer PE2
Breath is 200:1, IP route is 1.1.1.1, but next-hop is respectively CE2 and Customer PE3;BGP can be to this two
VPNV4 routes are carried out preferably, and only one VPNV4 route can come into force.
Operator PE equipment adds the RT information of itself in VPNV4 routes, and transmits the VPNV4 roads that with the addition of RT information
By when, when the RT information overlaps of operator PE equipment and user's PE equipment, because user PE equipment cannot be in VPNV4 routes
It is the addition of operator PE equipment to distinguish which RT information, causes the RT information for being used to isolate VPN routes in user's PE equipment to be matched somebody with somebody
Put failure, it is impossible to distinguish study VPN routes.
As shown in figure 3, CE3, CE5 be VPN A-1 in website, CE6 be VPN A-2 in website, Customer PE1 and
The RT that VPN A-1 are configured on Customer PE2 is 100:The RT that VPN A-2 are configured on 1, and Customer PE2 is 200:1,
The RT that VPN A are configured on Provider PE1 and Provider PE2 is 200:1;Additionally, can be learned mutually between CE3 and CE5
Route is practised, does not allow to learn from each other route and do not allow route of learning from each other between CE5 and CE6 between CE3 and CE6.
Under above-mentioned application scenarios, in the VPNV4 of Provider PE1 routes are sent to, RT information is 100 to CE1:1,
Provider PE1 add RT information 200 in VPNV4 routes:1, amended VPNV4 routes are issued into Provider PE2,
Amended VPNV4 routes are issued CE2 by Provider PE2, and amended VPNV4 routes are issued Customer by CE2
PE2;Customer PE2 learn amended VPNV4 routes, and RT information is 100:1 and 200:1;Because the RT of VPN A-1 is
100:The RT of 1, VPN A-2 is 200:1, therefore amended VPNV4 routes can be inserted into VPN A-1 by Customer PE2
The routing table of routing table and VPN A-2, and amended VPNV4 routes are sent respectively to CE5 and CE6;During being somebody's turn to do
Customer PE2 are used to isolate the RT information configurations failure of VPN routes, it is impossible to distinguish study VPN routes.
The content of the invention
The embodiment of the present invention provides a kind of VPNV4 route processing methods and equipment based on nested VPN, embedding to solve
The problem existed when VPNV4 route is transmitted in set VPN.
In order to achieve the above object, the embodiment of the present invention provides a kind of VPNV4 based on nested virtual private network network
Route processing method, is applied to include the embedding of operator's multiprotocol label switching MPLS VPNs and user's MPLS VPNs
Set VPN, at least includes the first operator backbone network edge PE equipment and the second fortune in the operator MPLS VPNs
Battalion's business's PE equipment, the method is comprised the following steps:The second operator PE equipment is received and set from the first operator PE
Standby VPNV4 routes, carry the first operator PE equipment and replace it in the first field of the VPNV4 routes
Rear route to be distinguished and carry the first operator PE equipment in RD information, and the second field of VPNV4 routes and replace
Alternatively preceding RD information;The second operator PE equipment is needing to send a VPNV4 to user MPLS VPNs
During route, the RD information carried in first field is replaced using the RD information carried in second field, and delete institute
The second field is stated, to obtain the 2nd VPNV4 routes;Be sent to for 2nd VPNV4 routes by the second operator PE equipment
The user MPLS VPNs.
The second operator PE equipment receives the VPNV4 routes from the first operator PE equipment, before
Also include:First operator PE equipment from user's MPLS VPNs receive the 3rd VPNV4 route when, by the 3rd VPNV4
The RD information carried in first field of route replaces with local RD information, and adds the second field, by the 3rd VPNV4 routes
The first field in the RD information that carries be written in second field, route with obtaining the VPNV4;And, institute
State the first operator PE equipment and the first VPNV4 routes are sent to the second operator PE equipment.
Also carried described in the operator MPLS VPNs in first field of the first VPNV4 routes
The corresponding MPLS label of first VPNV4 routes, and also carried in second field of VPNV4 routes identical
MPLS label;The RD information carried in second field described in the second operator PE equipment utilizations replaces first field
The RD information of middle carrying, specifically includes:First word that the second operator PE equipment is route by a VPNV4
The MPLS label carried in section matches the MPLS label carried in second field that a VPNV4 route, and utilizes
RD information corresponding to the MPLS label for matching replaces the RD letters carried in first field that a VPNV4 route
Breath.
Methods described is further included:Second operator PE equipment receives the from the first operator PE equipment the 4th
VPNV4 is route, and all route target RT information, and the 4th VPNV4 roads are carried in the 3rd field of the 4th VPNV4 routes
By the RT information added by the first operator PE equipment of the 4th field identification;Second operator PE equipment need to
When user MPLS VPNs send the 4th VPNV4 and route, using the 4th field identification RT information deletions described in
The RT information added by the first operator PE equipment in 3rd field, and the 4th field is deleted, to obtain the 5th VPNV4 roads
By;And, the 5th VPNV4 routes are sent to user's MPLS VPNs.
The second operator PE equipment receives the 4th VPNV4 routes from the first operator PE equipment, before
Also include:First operator PE equipment from user's MPLS VPNs receive the 6th VPNV4 route when, in the 6th VPNV4
Local RT information is added in 3rd field of route, and adds the 4th field, added by the first operator PE equipment with identifying
RT information, with obtain the 4th VPNV4 route;And, the 4th VPNV4 routes are sent to the second operator PE and are set
It is standby.
Carry all RT information in 3rd field of the first VPNV4 route, and VPNV4 routes the
The RT information that four field identifications are added by the first operator PE equipment;The second operator PE equipment is obtaining second
During VPNV4 route, methods described is further included:4th field identification described in the second operator PE equipment utilizations
RT information deletions described in the RT information added by the first operator PE equipment in the 3rd field, and delete the 4th word
Section, is route with obtaining the 2nd VPNV4.
The second operator PE equipment receives the VPNV4 routes from the first operator PE equipment, before
Also include:The first operator PE equipment when receiving the 3rd VPNV4 from user's MPLS VPNs and routeing, by described the
The RD information carried in first field of three VPNV4 routes replaces with local RD information, and adds the second field, by described the
The RD information carried in first field of three VPNV4 routes is written in the second field of the 3rd VPNV4 routes, described
Local RT information is added in 3rd field of the 3rd VPNV4 routes, and adds the 4th field, to identify first operator
The RT information of PE equipment addition, is route with obtaining a VPNV4;And, VPNV4 routes are sent to described
Second operator's PE equipment.
The embodiment of the present invention provides a kind of VPNV4 route processing equipment based on nested virtual private network network, application
In the nested VPN including operator's multiprotocol label switching MPLS VPNs with user's MPLS VPNs, the fortune
At least include the first operator backbone network edge PE equipment and second operator's PE equipment, the place in battalion's business's MPLS VPNs
Reason equipment is the second operator PE equipment, and the second operator PE equipment includes:Receiver module, comes from for receiving
The first VPNV4 routes of the first operator PE equipment, described first is carried in the first field of the VPNV4 routes
Operator's PE equipment replace it after route distinguish RD information, and the second field of VPNV4 routes in carry described
First operator's PE equipment replace it before RD information;Processing module, for needing to send institute to user MPLS VPNs
When stating VPNV4 routes, the RD carried in first field is replaced using the RD information carried in second field and is believed
Breath, and second field is deleted, to obtain the 2nd VPNV4 routes;Sending module, sends out for the 2nd VPNV4 to be route
It is sent to user's MPLS VPNs.
Also carried described in the operator MPLS VPNs in first field of the first VPNV4 routes
The corresponding MPLS label of first VPNV4 routes, and also carried in second field of VPNV4 routes identical
MPLS label;The processing module, specifically for what is carried in first field that is route by a VPNV4
MPLS label matches the MPLS label carried in second field that a VPNV4 route, and utilizes what is matched
RD information corresponding to MPLS label replaces the RD information carried in the first field that a VPNV4 route.
The receiver module, is additionally operable to receive the 4th VPNV4 routes from the first operator PE equipment, the 4th
All route target RT information, and the 4th field identification that the 4th VPNV4 route are carried in 3rd field of VPNV4 routes
The RT information added by the first operator PE equipment;The processing module, is additionally operable to needing to user's MPLS VPN nets
When network sends the 4th VPNV4 routes, transported by described first in the field of RT information deletions the 3rd using the 4th field identification
The RT information of battalion business PE equipment additions, and the 4th field is deleted, to obtain the 5th VPNV4 routes;The sending module, also
For the 5th VPNV4 routes to be sent into user's MPLS VPNs.
Carry all RT information in 3rd field of the first VPNV4 route, and VPNV4 routes the
The RT information that four field identifications are added by the first operator PE equipment;The processing module, is additionally operable to obtaining second
During VPNV4 route, using the 4th field identification RT information deletions described in transported by described first in the 3rd field
The RT information of battalion business PE equipment additions, and the 4th field is deleted, it is route with obtaining the 2nd VPNV4.
The embodiment of the present invention provides a kind of VPNV4 route processing equipment based on nested virtual private network network, application
In the nested VPN including operator's multiprotocol label switching MPLS VPNs with user's MPLS VPNs, the fortune
At least include the first operator backbone network edge PE equipment and second operator's PE equipment, the place in battalion's business's MPLS VPNs
Reason equipment is the first operator PE equipment, and the first operator PE equipment includes:Receiver module, for from user
MPLS VPNs receive the 3rd VPNV4 routes;Processing module, for receiving the 3rd from user's MPLS VPNs
When VPNV4 route, the route carried in the first field that the 3rd VPNV4 is route distinguishes RD information and replaces with local RD
Information, and the second field is added, the RD information carried in the first field that the 3rd VPNV4 is route is written to described second
In field, it is route with obtaining a VPNV4;Sending module, for VPNV4 routes to be sent into described second
Operator's PE equipment, carries after the first operator PE equipment replaces it in the first field of VPNV4 route
The letters of the RD before the first operator PE equipment is replaced it are carried in RD information, and the second field of VPNV4 routes
Breath.
The receiver module, is additionally operable to receive the 6th VPNV4 routes from user MPLS VPNs;The processing module,
It is additionally operable to, when the 6th VPNV4 routes are received from user's MPLS VPNs, add in the 3rd field of the 6th VPNV4 routes
Plus local RT information, and the 4th field is added, to identify the RT information added by the first operator PE equipment, to obtain the 4th
VPNV4 route;The sending module, is additionally operable to for the 4th VPNV4 routes to be sent to the second operator PE equipment, institute
Carry all route target RT information in the 3rd field for stating the 4th VPNV4 routes, and the 4th VPNV4 routes the 4th
The RT information that field identification is added by the first operator PE equipment.
The receiver module, is additionally operable to receive the 3rd VPNV4 routes from user MPLS VPNs;The processing module,
It is additionally operable to when the 3rd VPNV4 routes are received from user's MPLS VPNs, the first field that the 3rd VPNV4 is route
The RD information of middle carrying replaces with local RD information, and adds the second field, the first field that the 3rd VPNV4 is route
The RD information of middle carrying is written in the second field of the 3rd VPNV4 routes, in the 3rd word of the 3rd VPNV4 routes
Local RT information is added in section, and adds the 4th field, to identify the RT information that the first operator PE equipment is added, with
Obtain the VPNV4 routes;The sending module, is additionally operable to for VPNV4 routes to be sent to second fortune
All RT information, the VPNV4 routes are carried in battalion's business's PE equipment, and the 3rd field of VPNV4 routes
The RT information added by the first operator PE equipment of the 4th field identification.
Compared with prior art, the embodiment of the present invention at least has advantages below:In the embodiment of the present invention, in nested VPN
In network, recorded by the RD information before being replaced it to operator's PE equipment, to need to user's MPLS VPNs
When sending VPNV4 routes, the RD information before operator's PE equipment is replaced it can be reduced, so as in operator PE equipment and user
The RD information overlaps of one VPN instance of PE equipment, and during IP route overlaps, VPN can be distinguished, solve VPN route independence
The problem destroyed.Further, in nested VPN, remember by the RT information that operator PE equipment is added
Record, so that when VPNV4 routes are sent to user MPLS VPNs, the RT information of operator PE equipment addition can be deleted, from
And in the RT information overlaps of operator PE equipment and user's PE equipment, can solve the problem that the problem that cannot be distinguished by learning VPN routes.
Specific embodiment
For in the prior art, the RD information overlaps of operator PE equipment and a VPN instance of user's PE equipment, and IP
When route is overlapped, it will lead to not distinguish the problem of VPN due to RD information overlaps, the embodiment of the present invention proposes a kind of based on embedding
The VPNV4 route processing methods of VPN are covered, the method is applied to include operator MPLS VPNs and user MPLS VPN
At least include the first operator PE equipment and the second operation in the nested VPN of network, and operator MPLS VPNs
Business's PE equipment, the application scenarios schematic diagram with Fig. 1-Fig. 3 as the embodiment of the present invention, then the first operator PE equipment can be
Provider PE1, the second operator PE equipment can be Provider PE2.
As shown in figure 4, the VPNV4 route processing methods are comprised the following steps:
Step 401, the first operator PE equipment, will when the 3rd VPNV4 routes are received from user's MPLS VPNs
The RD information carried in first field of the 3rd VPNV4 routes replaces with local RD information, and adds in the 3rd VPNV4 routes
Plus second field, the RD information carried in the first field is written in second field, to obtain VPNV4 routes.
In the embodiment of the present invention, first field includes but is not limited to BGP NLRI(Network Layer
Reachability Information, Network Layer Reachable Information)Field, second field is the first operator PE equipment the
Added in three VPNV4 routes, and second field includes but is not limited to the Original Route of BGP extended community attributes
Distinguisher(Initial route difference)Field.
For example, RD information 1 is carried in the NLRI fields of the 3rd VPNV4 routes, and first operator's PE equipment is local
RD information be RD information 2 when, the first operator PE equipment receive the 3rd VPNV4 route after, by the RD information 1 in NLRI fields
RD information 2 is replaced with, and adds Original Route Distinguisher fields, and in the Original Route
RD information 1 is written with Distinguisher fields;Therefore it is RD information in NLRI fields in the VPNV4 routes for obtaining
It is RD information 1 in 2, Original Route Distinguisher fields.
In the embodiment of the present invention, can also be by MPLS label(That is private network tags information)It is indexed, therefore in the first fortune
Battalion's business's PE equipment is sent in a VPNV4 of second operator's PE equipment routes, is also carried in the label stack of the first field
The corresponding MPLS label of VPNV4 routes in operator's MPLS VPNs, and the second field also carries identical
MPLS label;For example, carrying MPLS label 1 and RD information 1 and MPLS label 2 and RD information 2 in the first field;Second
MPLS label 1 and RD information 3 and MPLS label 2 and RD information 4 are carried in field.
Specifically, by defining new BGP extended community attributes, can increase for recording the RD information before replacing it
Original Route Distinguisher fields as the second field, and in the Original Route
There can be 16 bytes in Distinguisher fields, preceding 4 bytes are Type(0X1000), 8 bytes are for recording RD letters afterwards
Breath, last 4 bytes are used to record MPLS label.In a kind of specific implementation, type is the BGP extended communitys of 0X1000
Attribute(That is Original Route Distinguisher)Before other extended community attributes can be positioned over.
First VPNV4 routes are sent to second operator's PE equipment by step 402, the first operator PE equipment, by second
Operator PE equipment receives the VPNV4 routes from first operator's PE equipment;In first VPNV4 routes, the first word
Section(NLRI)Carry the RD information after the first operator PE equipment is replaced, the second field(Original Route
Distinguisher)Carry the RD information before the first operator PE equipment is replaced, specific VPNV4 route can be as
Shown in Fig. 5.
Specifically, in application scenarios shown in Fig. 5, the RD information carried in the first field of VPNV4 routes is
200:1, MPLS label is 1058, and the RD information carried in the second field of VPNV4 routes is 100:1, MPLS label is
1058。
Step 403, the second operator PE equipment need to user MPLS VPNs send a VPNV4 route when,
The RD information carried in the first field is replaced using the RD information carried in the second field, and deletes the second field, to obtain the
Two VPNV4 route.
Specifically, when second operator's PE equipment needs to send VPNV4 routes to user MPLS VPNs, needing
The Original Route Distinguisher fields in BGP extended community attributes are checked, Original Route are extracted
The RD information carried in Distinguisher fields(Such as RD information 1), and by being carried in the RD information 1 replacement NLRI fields
RD information(Such as RD information 2);Afterwards, the second operator PE equipment deletes Original Route Distinguisher words
Section, to obtain carrying RD information 1, specific second in the 2nd VPNV4 routes, and the NLRI fields of the 2nd VPNV4 routes
The extended community attribute of VPNV4 routes can be with as shown in fig. 6, do not had Original Route in the extended community attribute
Distinguisher fields.
In the embodiment of the present invention, first operator's PE equipment is sent to the VPNV4 routes of second operator's PE equipment
In, MPLS label is also carried in the label stack of the first field, the second field also carries identical MPLS label;Passing through
During MPLS label is indexed, the RD information carried in second operator PE the second fields of equipment utilization replaces the first word
The RD information carried in section includes:The MPLS carried in the first field that second operator PE equipment passes through VPNV4 routes
The MPLS label carried in second field of the VPNV4 of tag match the routes, and using corresponding to the MPLS label for matching
RD information replace a VPNV4 route the first field in carry RD information.
For example, carrying MPLS label 1 and RD information 1 and MPLS label 2 and RD information 2 in the first field;Second word
MPLS label 1 and RD information 3 and MPLS label 2 and RD information 4 are carried in section;Based on this, the second operator PE equipment is led to
Cross the MPLS label 1 carried in the first field and match the MPLS label carried in the second field, and using the RD information 3 for matching
Replace the RD information 1 carried in the first field;And, the MPLS label that the second operator PE equipment passes through carrying in the first field
The MPLS label carried in 2 the second fields of matching, and the RD information carried in the first field is replaced using the RD information 4 for matching
2。
Further, after VPNV4 routes of the second operator PE equipment reception from first operator's PE equipment,
For VPN route learning process, the second operator PE equipment will ignore Original Route Distinguisher fields,
The RD information taken in NLRI fields carries out route learning;If additionally, second operator's PE equipment needs to route a VPNV4
Other operators PE equipment in operator's MPLS VPNs is sent to, then second operator's PE equipment does not change extended community
Attribute(Original Route Distinguisher fields)It is directly transmitted;Said process will not be repeated here.
2nd VPNV4 routes are sent to user's MPLS VPNs by step 404, the second operator PE equipment.
Based on above-mentioned treatment, recorded by the RD information before being replaced it to operator's PE equipment, with need to
When family MPLS VPNs send VPNV4 routes, the RD information before operator's PE equipment is replaced it can be reduced, so as in operation
The RD information overlaps of one VPN instance of business PE equipment and user's PE equipment, and during IP route overlaps, VPN can be distinguished, solve
The problem that VPN route independence is destroyed.In the networking shown in Fig. 2, the VPNV4 that Customer PE2 learn from CE2
In route, RD information is 100:1, IP route is 1.1.1.1;The VPNV4 that Customer PE2 learn from Customer PE3
In route, RD information is 200:1, IP route is 1.1.1.1;Because the RD information of two VPNV4 routes is different, therefore in BGP
Two VPNV4 routes will not be carried out preferred process as same route in VPNV4 routing tables, protect the only of VPN route
Vertical property.
Further, in the prior art, when the RT information overlaps of operator PE equipment and user's PE equipment, due to
It is the addition of operator PE equipment which RT information is user PE equipment cannot distinguish in VPNV4 routes, causes user's PE equipment
The upper RT information configurations failure for being used to isolate VPN routes, it is impossible to distinguish the problem of study VPN routes, the embodiment of the present invention is carried
In the VPNV4 route processing methods based on nested VPN for going out, can also comprise the following steps:
Step A, the first operator PE equipment when receiving the 6th VPNV4 from user's MPLS VPNs and routeing, the
Local RT information is added in 3rd field of six VPNV4 routes, and adds the 4th field, set by the first operator PE with identifying
The RT information of standby addition, obtains the 4th VPNV4 routes.
In the embodiment of the present invention, the 3rd field includes but is not limited to BGP extended community attributes RT(VPN Target)Word
Section, the 4th field is used to identify the RT information added by the first operator PE equipment, and the 4th field is included but is not limited to
The Route Target Flag added in BGP extended community attributes(Route target flag bit)Or carry by the first fortune
The field of the RT information of battalion business PE equipment additions;As shown in fig. 7, being the extended community attribute of addition Route Target Flag
Schematic diagram, the Route Target Flag for representing which RT information are added by the first operator PE equipment, for example,
The Route Target Flag may be located at after the RT information of RT fields, identify the RT information for first operator's PE equipment
The RT information of addition, or, before the Route Target Flag may be located at the RT information of RT fields, identify the RT information
It is the RT information of the first operator PE equipment addition;Additionally, can also directly be carried in the 4th field being set by the first operator PE
The RT information of standby addition, the i.e. RT information carried in the 4th field is the RT information of the first operator PE equipment addition.
For example, carrying RT information 1, and the local RT of first operator's PE equipment in the RT fields of the 6th VPNV4 routes
Information is RT information 2, and be added to RT information 2 in RT fields after the 6th VPNV4 routes are received by the first operator PE equipment,
RT information 1 and RT information 2 are now carried in RT fields;Further, the first operator PE equipment adds the 4th field, and
RT information 2 is carried in the 4th field, for representing that RT information 2 is the addition of the first operator PE equipment;Or, the first fortune
Battalion's business PE equipment identifies the 4th field after the RT information 2 of RT fields(Route Target Flag), for representing RT information
2 is the addition of the first operator PE equipment;Therefore in the 4th VPNV4 routes for obtaining, RT information 1 and RT are carried in RT fields
Information 2, the 4th field identification RT information 2 is the information of first operator PE equipment addition.
Further, by defining new BGP extended community attributes, can increase set by the first operator PE for representing
The Route Target Flag of the RT information of standby addition, and the Route Target Flag Type(Type)It is 0x1001,
Value below(Value)It is complete zero.
4th VPNV4 routes are sent to second operator's PE equipment by step B, the first operator PE equipment, by the second fortune
Battalion business PE equipment receives the 4th VPNV4 routes from first operator's PE equipment;In 4th VPNV4 routes, the 3rd field
In carry all RT information, and the RT information added by the first operator PE equipment of the 4th field identification.
Step C, the second operator PE equipment are sharp when needing to send the 4th VPNV4 routes to user MPLS VPNs
With the RT information added by the first operator PE equipment in the field of RT information deletions the 3rd of the 4th field identification, and deletion the 4th
Field, to obtain the 5th VPNV4 routes.
Specifically, when second operator's PE equipment needs to send the 4th VPNV4 routes to user MPLS VPNs, needing
The Route Target Flag fields in BGP extended community attributes are checked, the RT added by the first operator PE equipment is obtained
Information(Such as RT information 2), and the RT information added by the first operator PE equipment in the 3rd field is deleted, and deletion should
Route Target Flag fields, finally give the 5th VPNV4 routes, are only carried in the 3rd field of the 5th VPNV4 routes
RT information 1, RT information 2 is not carried(It is deleted).
Further, after the 4th VPNV4 routes of the second operator PE equipment reception from first operator's PE equipment,
For VPN route learning process, the second operator PE equipment extracts all RT information in extended community attribute, according to VPNV4
RT information in route carries out VPN route study;If additionally, second operator's PE equipment needs to route the 4th VPNV4 sent out
Other operators PE equipment in operator's MPLS VPNs is given, then the second operator PE equipment does not change extended community category
Property(Route Target Flag fields)It is directly transmitted;Said process will not be repeated here.
5th VPNV4 routes are sent to user's MPLS VPNs by step D, the second operator PE equipment.
Based on above-mentioned treatment, recorded by the RT information that operator PE equipment is added, to need to user
When MPLS VPNs send VPNV4 routes, can distinguish which RT information is added by operator's PE equipment, is then deleted
The RT information added by operator's PE equipment, so that in the RT information overlaps of operator PE equipment and user's PE equipment, energy
Enough solve to be failed for isolating the RT information configurations of VPN routes in user's PE equipment, it is impossible to distinguish the problem of study VPN routes,
So that user PE equipment distinguishes study VPN routes, accomplish VPN route isolation;In the networking shown in Fig. 3, Customer PE2
In the VPNV4 routes for learning, RT information is 100:1, contrasted with the attribute of local VPN A-1 by by the RT information,
Insert into VPN A-1 routing tables, attribute and the RT in VPNV4 routes of VPN A-2 do not exist common factor, it is impossible to learn the VPNV4
Route.
In the above embodiment of the present invention, be by different VPNV4 Route Areas defend oneself bright RD information treatment and RT
The treatment of information;But in actual applications, it may be necessary to which RD information and RT letters to same VPNV4 routes are located simultaneously
Reason, therefore, for the handling process shown in Fig. 4, following processing procedure can also be specifically included in the embodiment of the present invention:
In step 401, the first operator PE equipment is receiving the 3rd VPNV4 routes from user's MPLS VPNs
When, the RD information carried in the first field that the 3rd VPNV4 is route replaces with local RD information, and adds the second field,
The RD information carried in the first field that 3rd VPNV4 is route is written in the second field, the 3rd of the 3rd VPNV4 routes the
Local RT information is added in field, and adds the 4th field, to identify the RT information added by the first operator PE equipment, with
Obtain VPNV4 routes.
In step 402, VPNV4 routes are sent to second operator's PE equipment by the first operator PE equipment, by
Second operator PE equipment receives VPNV4 routes;In first VPNV4 routes, the first field carries the first operator
RD information after the replacement of PE equipment, the second field carries the RD information before the first operator PE equipment is replaced, in the 3rd field
Carry all RT information, the RT information added by the first operator PE equipment of the 4th field identification.
In step 403, the second operator PE equipment is needing to send VPNV4 routes to user MPLS VPNs
When, the RD information carried in the first field is replaced using the RD information carried in the second field, the second field is deleted, using the 4th
The RT information added by the first operator PE equipment in the field of RT information deletions the 3rd of field identification, deletes the 4th field, obtains
To the 2nd VPNV4 routes.
In step 404, the 2nd VPNV4 routes are sent to user's MPLS VPNs by the second operator PE equipment, should
The RD information carried in first field of the 2nd VPNV4 routes is the RD information of carrying in the 3rd VPNV4 routes, and this second
The RT information carried in 3rd field of VPNV4 routes is the RT information of carrying in the 3rd VPNV4 routes.
Additionally provided based on the inventive concept same with the above method, in the embodiment of the present invention a kind of based on nested virtual special
With the VPNV4 route processing equipment of net VPN, it is applied to include operator's multiprotocol label switching MPLS VPNs and use
The nested VPN of family MPLS VPNs, at least includes the first provider backbone in the operator MPLS VPNs
Edge PE equipment and second operator's PE equipment, the processing equipment are the second operator PE equipment, as shown in figure 8, institute
Stating second operator's PE equipment includes:
Receiver module 11, for receiving the VPNV4 routes from the first operator PE equipment, described first
The route after the first operator PE equipment is replaced it is carried in first field of VPNV4 routes distinguish RD information, and it is described
The RD information before the first operator PE equipment is replaced it is carried in second field of the first VPNV4 routes;
Processing module 12, for when needing to send the VPNV4 routes to user MPLS VPNs, using institute
State the RD information carried in the second field and replace the RD information carried in first field, and delete second field, with
Obtain the 2nd VPNV4 routes;
Sending module 13, for the 2nd VPNV4 routes to be sent into user's MPLS VPNs.
Also carried described in the operator MPLS VPNs in first field of the first VPNV4 routes
The corresponding MPLS label of first VPNV4 routes, and also carried in second field of VPNV4 routes identical
MPLS label;The processing module 12, specifically for what is carried in first field that is route by a VPNV4
MPLS label matches the MPLS label carried in second field that a VPNV4 route, and utilizes what is matched
RD information corresponding to MPLS label replaces the RD information carried in first field that a VPNV4 route.
The receiver module 11, is additionally operable to receive the 4th VPNV4 routes from the first operator PE equipment, the 4th
All route target RT information, and the 4th field identification that the 4th VPNV4 route are carried in 3rd field of VPNV4 routes
The RT information added by the first operator PE equipment;The processing module 12, is additionally operable to needing to user MPLS VPN
Network send the 4th VPNV4 route when, using in the field of RT information deletions the 3rd of the 4th field identification by described first
The RT information of operator PE equipment addition, and the 4th field is deleted, to obtain the 5th VPNV4 routes;The sending module
13, it is additionally operable to for the 5th VPNV4 routes to be sent to user's MPLS VPNs.
In the embodiment of the present invention, all RT information are carried in the 3rd field of VPNV4 route, and described the
The RT information that 4th field identification of one VPNV4 routes is added by the first operator PE equipment;The processing module 12,
Be additionally operable to obtain the 2nd VPNV4 route during, using the 4th field identification RT information deletions described in the 3rd word
The RT information added by the first operator PE equipment in section, and the 4th field is deleted, to obtain the 2nd VPNV4
Route.
Wherein, the modules of apparatus of the present invention can be integrated in one, it is also possible to be deployed separately.Above-mentioned module can be closed
And be a module, it is also possible to it is further split into multiple submodule.
Additionally provided based on the inventive concept same with the above method, in the embodiment of the present invention a kind of based on nested virtual special
With the VPNV4 route processing equipment of net VPN, it is applied to include operator's multiprotocol label switching MPLS VPNs and use
The nested VPN of family MPLS VPNs, at least includes the first provider backbone in the operator MPLS VPNs
Edge PE equipment and second operator's PE equipment, the processing equipment are the first operator PE equipment, as shown in figure 9, institute
Stating first operator's PE equipment includes:
Receiver module 21, for receiving the 3rd VPNV4 routes from user MPLS VPNs;
Processing module 22, for when the 3rd VPNV4 routes are received from user's MPLS VPNs, by the described 3rd
The route carried in first field of VPNV4 routes distinguishes RD information and replaces with local RD information, and adds the second field, will
The RD information carried in first field of the 3rd VPNV4 routes is written in second field, to obtain described first
VPNV4 route;
Sending module 23, for VPNV4 routes to be sent into the second operator PE equipment, described first
The RD information after the first operator PE equipment is replaced it, and a VPNV4 are carried in first field of VPNV4 routes
The RD information before the first operator PE equipment is replaced it is carried in second field of route.
The receiver module 21, is additionally operable to receive the 6th VPNV4 routes from user MPLS VPNs;
The processing module 22, is additionally operable to when the 6th VPNV4 routes are received from user's MPLS VPNs, described
Local RT information is added in 3rd field of the 6th VPNV4 routes, and adds the 4th field, runed by described first with identifying
The RT information of business PE equipment addition, is route with obtaining the 4th VPNV4;
The sending module 23, is additionally operable to for the 4th VPNV4 routes to be sent to the second operator PE equipment, institute
Carry all route target RT information in the 3rd field for stating the 4th VPNV4 routes, and the 4th VPNV4 routes the 4th
The RT information that field identification is added by the first operator PE equipment.
The receiver module 21, is additionally operable to receive the 3rd VPNV4 routes from user MPLS VPNs;
The processing module 22, is additionally operable to when the 3rd VPNV4 routes are received from user's MPLS VPNs, will be described
The RD information carried in first field of the 3rd VPNV4 routes replaces with local RD information, and adds the second field, will be described
The RD information carried in first field of the 3rd VPNV4 routes is written in the second field of the 3rd VPNV4 routes, in institute
Local RT information is added in the 3rd field for stating the 3rd VPNV4 routes, and adds the 4th field, to identify first operation
The RT information of business PE equipment addition, is route with obtaining a VPNV4;
The sending module 23, is additionally operable to for VPNV4 routes to be sent to the second operator PE equipment, and described
Carry all RT information in 3rd field of the first VPNV4 routes, the 4th field identification of the VPNV4 routes by
The RT information of the first operator PE equipment addition.
Wherein, the modules of apparatus of the present invention can be integrated in one, it is also possible to be deployed separately.Above-mentioned module can be closed
And be a module, it is also possible to it is further split into multiple submodule.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but the former is more in many cases
Good implementation method.Based on such understanding, what technical scheme substantially contributed to prior art in other words
Part can be embodied in the form of software product, and the computer software product is stored in a storage medium, if including
Dry instruction is used to so that a computer equipment(Can be personal computer, server, or network equipment etc.)Perform this hair
Method described in bright each embodiment.
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram for preferred embodiment, module or stream in accompanying drawing
Journey is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can be divided according to embodiment description
It is distributed in the device of embodiment, it is also possible to carry out respective change and be disposed other than in one or more devices of the present embodiment.On
Stating the module of embodiment can merge into a module, it is also possible to be further split into multiple submodule.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Disclosed above is only several specific embodiments of the invention, but, the present invention is not limited to this, any ability
What the technical staff in domain can think change should all fall into protection scope of the present invention.