CN103905575B - Access MPLS VPN and the user side IPv6 address configuration methods and system of internet - Google Patents

Access MPLS VPN and the user side IPv6 address configuration methods and system of internet Download PDF

Info

Publication number
CN103905575B
CN103905575B CN201210583630.7A CN201210583630A CN103905575B CN 103905575 B CN103905575 B CN 103905575B CN 201210583630 A CN201210583630 A CN 201210583630A CN 103905575 B CN103905575 B CN 103905575B
Authority
CN
China
Prior art keywords
address
address field
subscriber
main station
allocated
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
CN201210583630.7A
Other languages
Chinese (zh)
Other versions
CN103905575A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201210583630.7A priority Critical patent/CN103905575B/en
Publication of CN103905575A publication Critical patent/CN103905575A/en
Application granted granted Critical
Publication of CN103905575B publication Critical patent/CN103905575B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of access MPLS VPN and the user side IPv6 address configuration methods and system of internet, wherein, method includes:Two address fields whether are configured with gateway router inquiry address table;If being configured with two address fields, the first address field of selection or the second address field are allocated to subscriber's main station, and the mapping relations set up between two address fields;The first data message that subscriber's main station is sent to the second address field or the first address field that are not allocated to subscriber's main station is received, the source address in the first data message is converted to and is not allocated to transmission after the second address field of subscriber's main station or the first address field;The internet or MPLS VPN for receiving the second address field for not being allocated to subscriber's main station or the application of the first address field are sent to the second data message of subscriber's main station, the destination address in the second data message is converted to be allocated to after the second address field of subscriber's main station or the first address field sent.The embodiment of the present invention can reduce IPv6 address configurations difficulty on its main frame.

Description

Access MPLS VPN and the user side IPv6 address configuration methods and system of internet
Technical field
The present invention relates to belong to Internet protocol(IP)The network communications technology, especially a kind of accessing multi-protocol label switched (Multi Protocol Label Switch, MPLS)Virtual Private Network(Virtual Private Network, VPN)With it is mutual The user side Internet protocol of networking the 6th edition(IPv6)Address configuration method and system.
Background technology
In Internet protocol the 4th edition(IPv4)In network, user side main frame(PC)Typically all use private net address, the private network Address can directly carry out advertising of route when accessing MPLS VPN, and network address translation is passed through when accessing internet(Network Address Translation, NAT)Noticed again after into public network address.So, in IPv4 networks, user uses simultaneously When vpn service and Internet service, its main frame does not have particular/special requirement in address configuration.
In IPv6 networks, user side main frame typically all uses IPv6 public network addresses.Small part user, which possesses, is specific to it By address assignment agency, for example, CNNIC(China Internet Network Information Center, CNNIC), during the IPv6 address fields of distribution, then the IPv6 addresses can be directly configured on its main frame, and are noticed simultaneously Into internet and/or MPLS VPN.But most of user, which does not possess from address assignment agency, obtains its exclusive IPv6 address field Ability, for this often IPv6 addresses when business is used are provided by telecom operators, if user's SEPARATE APPLICATION MPLS VPN and two kinds of internet business, will be likely to obtain two kinds of traffic assignments to its two sections of different IPv6 addresses.Now, use Family, which will face, selects the problem of which section IPv6 address configurations are on its main frame, while also needing to guarantee smoothly to two kinds of industry The different bearer network of business carries out advertising of route.
There is presently no the solution and technical standard specifically designed for this problem, but exist using private net address and system Plan two kinds of phase viewpoints in one address.
The first viewpoint is to follow the concept of the private net address in IPv4 networks, i.e., IPv6 private network is still distributed to main frame Address, then by being noticed after carrying out NAT on gateway router into internet as IPv4, while directly by the private network Notice into VPN location.It is done so that, it will force while private net address must be used by having used the user of both business, die out Address abundant advantage enough in IPv6 networks.If user is obtaining operator's distribution using a certain business IPv6 public network addresses when need make into use IPv6 private net addresses, it is also difficult to obtain the accreditation of user.
Second of viewpoint then required for same user, its IPv6 address field only have one section, i.e. MPLS vpn services and Internet service is same section to its IPv6 address field distributed.But this is there is also very big uncertainty, if one carrys out user It is the MPLS vpn services and Internet service provided using different operators, then requires that the IPv6 addresses of Liang Ge operators are unified Planning is impossible.Even MPLS vpn services and Internet service that same operator provides, due to internet industry The distribution and management of the address of business are usually that the local company in user's access location is responsible for, and the address of MPLS vpn services Distribution and management be usually to be responsible for by parent company, it is desirable to the management that both are unified to be carried out for address is also extremely difficult 's.
So, when user uses MPLS vpn services and Internet service based on IPv6 simultaneously, it is necessary to provide a kind of The method that IPv6 address configurations difficulty on its main frame and two kinds of business of flexible access can be reduced, realizes being total to for user and operator Win.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is:The user side of a kind of access MPLS VPN and internet is provided IPv6 address configuration methods and system, to reduce IPv6 address configurations difficulty and flexible access MPLS VPN and interconnection on its main frame Two kinds of business of net.
A kind of access MPLS VPN provided in an embodiment of the present invention and internet user side IPv6 address configuration methods, bag Include:
User side is used to access MPLS VPN and the gateway router of internet inquires about in address table whether be configured with difference Two address fields for accessing MPLS VPN and internet, described two address fields include the first address field and the second address Section;
If being configured with two address fields in address table, gateway router selected from two address fields the first address field or Second address field is allocated to subscriber's main station, and the mapping relations set up between two address fields;
In response to receive subscriber's main station be sent to be not allocated in two address fields subscriber's main station the second address field or The internet of first address field application or MPLS VPN the first data message, gateway router, will according to the mapping relations Source address in first data message is converted to be not allocated to the second address field of subscriber's main station or the first address field after be sent to Internet or MPLS VPN;
Be not allocated in response to receiving subscriber's main station the second address field or the first address field application internet or MPLS VPN are sent to the second data message of the subscriber's main station, and gateway router is according to the mapping relations, by the second number Be converted to according to the destination address in message and be sent to the use after being allocated to the second address field of subscriber's main station or the first address field Householder's machine.
In one specific embodiment of the above method, gateway router selects the first address field or from two address fields Double-address section, which is allocated to subscriber's main station, to be included:
Gateway router compares the length of mask in the first address field and the second address field;
Gateway router selects the first longer address field of the length of mask or the second address field to make from two address fields To be allocated to the address field of subscriber's main station;
The first address field or the second address field of selection are allocated to subscriber's main station by gateway router.
In one specific embodiment of the above method, in addition to:
If the first address field is identical with the length of mask in the second address field, gateway router according to default selection strategy or Person selects the first address field or the second address field as the address field for being allocated to subscriber's main station from two address fields at random, and will The first address field or the second address field of selection are allocated to subscriber's main station.
In one specific embodiment of the above method, the source address in the first data message is converted to and is not allocated to user The second address field or the first address field of main frame include:
The first address field or the second address field that subscriber's main station is allocated in the source address are mapped as not being allocated to use The second address field or the first address field of householder's machine, retain the main frame bit position in the source address.
In one specific embodiment of the above method, the destination address in the second data message is converted to and is allocated to user The second address field or the first address field of main frame include:
The second address field or the first address field that are not allocated to subscriber's main station in the destination address are mapped as being allocated to The first address field or the second address field of subscriber's main station, retain the main frame bit position in the source address.
In one specific embodiment of the above method, the first address field or the second address field of selection are allocated to and use householder Machine includes:
Pass through the dynamic of this Internet protocol of Neighbor Discovery agreement or router advertisement RA agreements or sixth version Host configuration DHCPv6 modes, subscriber's main station is allocated to by the first address field or the second address field of selection.
In one specific embodiment of the above method, in addition to:
If being only configured with an address field in address table, gateway router by ND agreements or RA agreements or DHCPv6 modes, subscriber's main station is allocated to by the address field in address table.
A kind of access MPLS VPN provided in an embodiment of the present invention and internet user side IPv6 address configuration systems, bag Include subscriber's main station, gateway router, MPLS VPN and internet;
Whether the gateway router, positioned at user side, match somebody with somebody for accessing in MPLS VPN and internet, inquiry address table It is equipped with two address fields for being respectively used to access MPLS VPN and internet, described two address fields include the first address field and the Double-address section;
If being configured with two address fields in address table, the first address field or the second address field is selected to match somebody with somebody from two address fields Put to subscriber's main station, and the mapping relations set up between two address fields;
In response to receive subscriber's main station be sent to be not allocated in two address fields subscriber's main station the second address field or The internet of first address field application or MPLS VPN the first data message, according to the mapping relations, by the first datagram Source address in text be converted to be not allocated to after the second address field of subscriber's main station or the first address field be sent to internet or MPLS VPN;
Be not allocated in response to receiving subscriber's main station the second address field or the first address field application internet or MPLS VPN are sent to the second data message of the subscriber's main station, according to the mapping relations, by the second data message Destination address is converted to be allocated to the second address field of subscriber's main station or the first address field after be sent to the subscriber's main station.
In one specific embodiment of said system, the gateway router selects the first address from two address fields When section or the second address field are allocated to subscriber's main station, specifically compare the length of mask in the first address field and the second address field;From The first longer address field of the length of mask or the second address field is selected to be used as the ground for being allocated to subscriber's main station in two address fields Location section;And the first address field or the second address field of selection are allocated to subscriber's main station.
In one specific embodiment of said system, the gateway router is additionally operable in the first address field and the second ground When the length of mask is identical in the section of location, according to default selection strategy or it is random selected from two address fields the first address field or Second address field is allocated to use as the address field for being allocated to subscriber's main station, and by the first address field or the second address field of selection Householder's machine.
In one specific embodiment of said system, the gateway router changes the source address in the first data message During the second address field or the first address field not to be allocated to subscriber's main station, specifically subscriber's main station will be allocated in the source address The first address field or the second address field be mapped as not being allocated to the second address field or the first address field of subscriber's main station, retain institute State the main frame bit position in source address.
In one specific embodiment of said system, the gateway router turns the destination address in the second data message When being changed to the second address field or the first address field for being allocated to subscriber's main station, specifically user will not be allocated in the destination address The second address field or the first address field of main frame are mapped as being allocated to the first address field or the second address field of subscriber's main station, retain Main frame bit position in the source address.
In one specific embodiment of said system, the gateway router especially by Neighbor Discovery agreement or The dynamic host configuration protocol DHCP v6 modes of this Internet protocol of router advertisement RA agreements or sixth version, by selection First address field or the second address field are allocated to subscriber's main station.
In one specific embodiment of said system, the gateway router is additionally operable in address table only be configured with one During individual address field, by ND agreements or RA agreements or DHCPv6 modes, the address field in address table is allocated to user Main frame.
The access MPLS VPN provided based on the above embodiment of the present invention and the user side IPv6 address configuration sides of internet Method and system, user side is used to access MPLS VPN and the gateway router of internet inquires about in address table whether be configured with difference For accessing MPLS VPN and internet two address fields, if being configured with two address fields in address table, gateway router from Select the first address field or the second address field to be allocated to subscriber's main station in two address fields, and set up reflecting between two address fields Penetrate relation;In response to receive subscriber's main station be sent to be not allocated in two address fields subscriber's main station the second address field or The internet of first address field application or MPLS VPN the first data message, gateway router is according to mapping relations, by first Source address in data message is converted to be not allocated to the second address field of subscriber's main station or the first address field after be sent to interconnection Net or MPLS VPN;It is not allocated to the second address field of subscriber's main station or the internet of the first address field application in response to receiving Or MPLS VPN are sent to the second data message of subscriber's main station, gateway router is according to mapping relations, by the second data message In destination address be converted to be allocated to the second address field of subscriber's main station or the first address field after be sent to subscriber's main station.This hair Bright embodiment is on the gateway router of user side, the IPv6 addresses independently distributed MPLS VPN and the class business of internet two Address field selected and be allocated to main frame, and to non-configuration address section data message carry out address conversion(Or be: Mapping, translation)After be advertised to carrier network, realize that user is to MPLS under the requirement additionally intervened and coordinated without operator It is seamless while two kinds of business of VPN and internet to use, solve user and obtained not from Internet service and MPLS vpn services With IPv6 address fields when, how to host assignment, only a wherein sector address is to reduce the configuration difficulty of host address, and to two The problem of bearer network of class different business notices different routes, can access two class business simultaneously.Relative in the prior art A kind of viewpoint for following the private net address in IPv4 networks, the embodiment of the present invention is provided to user and uses IPv6 public network addresses It is convenient, it is not necessary to because return back to using MPLS vpn services and Internet service in the environment of similar IPv4 private networks simultaneously, The right for keeping it to enjoy IPv6 magnanimity public network addresses;The sight of different business IPv6 address fields planning unified relative to second Point, the embodiment of the present invention, which can remove, to be required to carry out for IPv6 addresses between the different management levels of the even same operator of different operators The difficulty of coordination, also smoothly commences business for operator and overcomes obstacle.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
The accompanying drawing for constituting a part for specification describes embodiments of the invention, and together with description for explaining The principle of the present invention.
Referring to the drawings, according to following detailed description, the present invention can be more clearly understood from, wherein:
Fig. 1 is present invention access MPLS VPN and the knot of user side IPv6 address configuration system one embodiment of internet Structure schematic diagram.
Fig. 2 is present invention access MPLS VPN and the stream of user side IPv6 address configuration method one embodiment of internet Cheng Tu.
Fig. 3 is present invention access MPLS VPN and the user side IPv6 address configuration methods of internet another embodiments Flow chart.
Fig. 4 is the structural representation of gateway router one embodiment of the present invention.
Embodiment
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should be noted that:Unless had in addition Body illustrates that the part and the positioned opposite of step, numerical expression and numerical value otherwise illustrated in these embodiments does not limit this The scope of invention.
Simultaneously, it should be appreciated that for the ease of description, the size of the various pieces shown in accompanying drawing is not according to reality Proportionate relationship draw.
The description only actually at least one exemplary embodiment is illustrative below, never as to the present invention And its any limitation applied or used.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable In the case of, the technology, method and apparatus should be considered as a part for specification.
In shown here and discussion all examples, any occurrence should be construed as merely exemplary, without It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it need not be further discussed in subsequent accompanying drawing in individual accompanying drawing.
The main thought of the embodiment of the present invention is as follows:Because user can be because apply for MPLS vpn services and internet (Internet)Both business of business obtain two sections of IPv6 addresses at operator, i.e.,:Two IPv6 address fields, and general It is ready one of address field being configured on subscriber's main station, and the carrier network side of both business can only receive to come from It is the route for that section of IPv6 address that user distributes,:That is the carrying net side of MPLS vpn services can not receive to come from internet Address field/route, the carrying net side of Internet service can not receive address field/route from MPLS VPN.Therefore, this hair In bright embodiment:
The 3rd sector address, such as private net address are not re-introduced into, reduce the difficulty to subscriber's main station address configuration and management;
Concentration is managed to the address field from MPLS VPN and the address field from internet, and the management function is in net Close router(GW Router)On be achieved, and including configuring which sector address, to MPLS vpn services to subscriber's main station Bearer network and bearer network to Internet service change etc. when noticing route simultaneously;
Because a sector address can only be selected(Address field from MPLS VPN or the address field from internet)It is allocated to Subscriber's main station, the address that is bound to must be changed when leaving user network(Or be:Mapping/translation)Noticed again into other one section To the bearer network of another business, two can be further selected to reduce in the difficulty of mapping/translation, the embodiment of the present invention Granularity is thinner in address field(I.e.:Main frame position is shorter)That address field be allocated to subscriber's main station and use.
Fig. 1 is present invention access MPLS VPN and the knot of user side IPv6 address configuration system one embodiment of internet Structure schematic diagram.Fig. 2 is user side IPv6 address configuration method one embodiment of present invention access MPLS VPN and internet Flow chart, the user side IPv6 address configurations system architecture realization that the embodiment can be based on embodiment illustrated in fig. 1.Such as Fig. 2 institutes Show, the user side IPv6 address configuration methods of embodiment access MPLS VPN and internet include:
210, whether user side is configured with the gateway router inquiry address table for accessing MPLS VPN and internet It is respectively used to access MPLS VPN and two address fields of internet, the two address fields include the first address field and the second address Section.
220, if being configured with two address fields in address table, gateway router selects the first address field from two address fields Or second address field be allocated to subscriber's main station, and the mapping relations set up between the two address fields.
Exemplarily, gateway router can be selected from two address fields the first longer address field of the length of mask or Second address field is allocated to subscriber's main station.
230, it is sent in response to receiving subscriber's main station and is not allocated to the second address of subscriber's main station in two address fields First data message of the internet or MPLS VPN of section or the application of the first address field, gateway router is according to the mapping of foundation Relation, the source address in the first data message is converted to and is not allocated to after the second address field of subscriber's main station or the first address field It is sent to internet or MPLS VPN.
240, it is not allocated to the second address field of subscriber's main station or the internet of the first address field application in response to receiving Or MPLS VPN are sent to the second data message of subscriber's main station, gateway router is counted according to the mapping relations of foundation by second Be converted to be allocated to be sent to after the second address field of subscriber's main station or the first address field according to the destination address in message and use householder Machine.
Aforesaid operations 230 and 240 are triggered based on condition, are limited in the absence of time sequencing is performed.
Access MPLS VPN and the user side IPv6 address configuration methods of internet that the above embodiment of the present invention is provided, are used Whether family side is configured with the gateway router inquiry address table for accessing MPLS VPN and internet is respectively used to access MPLS VPN and internet two address fields, if being configured with two address fields in address table, gateway router is from two addresses The first address field or the second address field is selected to be allocated to subscriber's main station, and the mapping relations set up between two address fields in section; It is sent in response to receiving subscriber's main station and is not allocated to the second address field or the first address of subscriber's main station in two address fields Duan Yingyong internet or MPLS VPN the first data message, gateway router is according to mapping relations, by the first data message In source address be converted to be not allocated to the second address field of subscriber's main station or the first address field after be sent to internet or MPLS VPN;It is not allocated to the second address field of subscriber's main station or the internet or MPLS of the application of the first address field in response to receiving VPN is sent to the second data message of subscriber's main station, and gateway router is according to mapping relations, by the purpose in the second data message Address conversion is to be sent to subscriber's main station after being allocated to the second address field of subscriber's main station or the first address field.The embodiment of the present invention On the gateway router of user side, the address field for the IPv6 addresses independently distributed MPLS VPN and the class business of internet two Selected and be allocated to main frame, and address conversion is carried out to the data message of non-configuration address section(Or be:Map, turn over Translate)After be advertised to carrier network, realize under the requirement additionally intervened and coordinated without operator user to MPLS VPN and mutual It is seamless while two kinds of business of networking to use, solve user and obtain different IPv6 from Internet service and MPLS vpn services During address field, how to host assignment, only a wherein sector address is not and of the same trade or business to two classes to reduce the configuration difficulty of host address The problem of bearer network of business notices different routes, can access two class business simultaneously.Relative in the prior art the first follow The viewpoint of private net address in IPv4 networks, the embodiment of the present invention is provided to the facility that user uses IPv6 public network addresses, no Because of being return back to using MPLS vpn services and Internet service in the environment of similar IPv4 private networks simultaneously it must be kept to enjoy There is the right of IPv6 magnanimity public network addresses;The viewpoint of different business IPv6 address fields planning unified relative to second, the present invention Embodiment can remove the difficulty for requiring to be coordinated between the different management levels of the even same operator of different operators for IPv6 addresses Degree, also smoothly commences business for operator and overcomes obstacle.
After user has applied for MPLS vpn services and Internet service, two kinds of business are obtained at operator different After IPv6 address fields, the IPv6 address fields of one of which business can be configured in the address table of gateway router, or by two The IPv6 address fields of the business of kind are configured in the address table of gateway router.
Fig. 3 is present invention access MPLS VPN and the user side IPv6 address configuration methods of internet another embodiments Flow chart.As shown in figure 3, embodiment access MPLS VPN and the user side IPv6 address configuration methods of internet include:
310, whether user side is configured with the gateway router inquiry address table for accessing MPLS VPN and internet It is respectively used to access MPLS VPN and two address fields of internet, i.e.,:IPv6 address fields, the two address fields include the first ground Location section and the second address field.
If being configured with two address fields in address table, 320 operation is performed.Otherwise, if being only configured with one in address table Address field, the operation of execution 400.
320, whether gateway router compares the first address field equal with the length of mask in the second address field.
If the equal length of mask in the first address field and the second address field, 330 operation is performed.Otherwise, 340 are performed Operation.
330, gateway router according to default selection strategy or it is random selected from two address fields the first address field or Second address field is allocated to use as the address field for being allocated to subscriber's main station, and by the first address field or the second address field of selection Householder's machine.
Default selection strategy therein, for example, prioritizing selection is applied to the IPv6 addresses conduct of MPLS VPN or internet It is allocated to the address field of subscriber's main station.
Afterwards, the operation of execution 370.
340, gateway router compare mask in the first address field length whether be more than the second address field in mask length Degree.
If the length of mask is more than the length of mask in the second address field in the first address field, 350 operation is performed.It is no Then, the operation of execution 360.
350, gateway router selects the first address field to be allocated to subscriber's main station.
Afterwards, the operation of execution 370.
360, gateway router selects the second address field to be allocated to subscriber's main station.
Exemplarily, in operation 330,350,360, gateway router can specifically be found by neighbours(Neighbor Discovery, ND)Agreement or router advertisement(Route Advertise, RA)Agreement or sixth version this internet protocol The DHCP of view(Dynamic Host Configuration Protocol for IPv6, DHCPv6)Side Formula, subscriber's main station is allocated to by the first address field or the second address field of selection.
370, the mapping relations that gateway router is set up between the first address field and the second address field.
380, it is sent in response to receiving subscriber's main station and is not allocated to the second address of subscriber's main station in two address fields First data message of the internet or MPLS VPN of section or the application of the first address field, gateway router, will according to mapping relations Source address in first data message is converted to be not allocated to the second address field of subscriber's main station or the first address field after be sent to Internet or MPLS VPN.
390, it is not allocated to the second address field of subscriber's main station or the internet of the first address field application in response to receiving Or MPLS VPN are sent to the second data message of subscriber's main station, gateway router is according to mapping relations, by the second data message In destination address be converted to be allocated to the second address field of subscriber's main station or the first address field after be sent to subscriber's main station.
Afterwards, the follow-up process of the present embodiment is not performed.
Aforesaid operations 380 and 390 are triggered based on condition, are limited in the absence of time sequencing is performed.
400, the address field in address table is allocated to subscriber's main station by gateway router.
Now, subscriber's main station only supports the MPLS VPN or Internet service that the address field of the configuration applies.
Exemplarily, gateway router specifically can be by ND agreements or RA agreements or DHCPv6 modes, by ground Address field in the table of location is allocated to subscriber's main station.
According to present invention access MPLS VPN and a tool of the user side IPv6 address configuration method embodiments of internet Body example and it is unrestricted, operation 230 and 380 in, the source address in the first data message is converted to and is not allocated to subscriber's main station The second address field or the first address field can be:The first address field or the second address of subscriber's main station will be allocated in source address Section is mapped as not being allocated to the second address field or the first address field of subscriber's main station, retains the main frame bit position in source address.
According to present invention access MPLS VPN and a tool of the user side IPv6 address configuration method embodiments of internet Body example and it is unrestricted, operation 240 and 390 in, the destination address in the second data message is converted to and is allocated to subscriber's main station The second address field or the first address field can be:The second address field or first of subscriber's main station will not be allocated in destination address Address field is mapped as being allocated to the first address field or the second address field of subscriber's main station, retains the main frame bit position in source address.
MPLS VPN are accessed to following exemplary to the present invention and the user side IPv6 address configuration methods of internet are carried out Describe in detail.
Referring to Fig. 1, it is assumed that the IPv6 address fields from MPLS vpn services(Or be:The preceding N of prefix, i.e. address Position)For PV, form is 2001:c68::/ A, wherein, 2001:C68 represents address field, mask A length or the value model of digit Enclose for:32~64,2001:c68::/ 32 refer to such IPv6 address fields, and its preceding 32bit identical is 2001:C68, and Remaining 96bit can change.IPv6 address fields/prefix from Internet service is PI, form is 2001:d68:/ B masks B length or the span of digit are:32~64.The embodiment of the present invention increases by one on gateway router and is directed to this two sections Address is carried out the function of logic judgment by mentioned above principle, while realizing corresponding PVAnd PIBetween address of cache/translation.
According to the flow of embodiment illustrated in fig. 2, first determine whether whether the length of two sector addresses is consistent, IPv6 addresses are by prefix + main frame position is constituted, mask(I.e.:A or B)Its network bit length of long explanation, i.e.,:Main frame position is short, and open ended main frame is few, then originally Inventive embodiments select it to be allocated to subscriber's main station, are easy to subsequently realize the intersegmental mapping/translation in two addresses.Main frame position is short The address field that address field is mapped to main frame bit length is easier, and typically only needs to carry out the full 0 or complete 1 of the upper relevant position in main frame position Filling.
If A=B, i.e. the length of two sector address prefixes is consistent, then can optionally PVOr PIFor Office Network(Internet service)/ office Domain net(MPLS vpn services)Used IPv6 addresses, whether select PVOr PIBefore the address configured as main frame Sew, be required for carrying out address of cache/translation between the two on gateway router, can now retain the main frame position in IPv6 addresses Part, only changes network-prefix portion, and because A=B, can be by 2001 in IPv6 addresses:C68 and 2001:d68:Part is directly Exchange, the address field of MPLS VPN subscriber's main station is communicated to as P using guaranteeV, and it is communicated to the ground of the subscriber's main station of internet Location section is PI
If A > B, that is, PVThe length of prefix is more than PI, PVGranularity it is thinner, then the address of subscriber's main station should be selected Select PVThe address field at place, i.e.,:With PVSubscriber's main station configuration of IP v6 addresses are given for prefix, and both are carried out on gateway router Between address reflect and translate/translate, can now retain the main frame bit position in IPv6 addresses, but because A > B, changing address prefix , can be by the 2001 of IPv6 addresses during part:' B ' position replaces with 2001 before c68 takes:D68, to ensure the user for being communicated to internet Host address section is PI
If A < B, that is, PVThe length of prefix is more than PI, PVGranularity it is thinner, then the address of subscriber's main station should be selected Select PVThe address field at place, i.e.,:With PVSubscriber's main station configuration of IP v6 addresses are given for prefix;And carry out both on gateway router Between address of cache/translation, can now retain the main frame bit position in IPv6 addresses, but because A < BB, changing address prefix , can be by the 2001 of IPv6 addresses during part:' A ' position replaces with 2001 before d68 takes:C68, to ensure the main frame for being communicated to internet Address field is PV
Exemplarily, in the embodiment of the present invention, it is possible to use NAT principles realize the intersegmental conversion in two addresses, realize from The source address for the data message that connection MPLS VPN interface is sent is fixed as PV, sent out from the interface of connection internet The source address of the data message gone is fixed as PI.Equally, NAT principles can also realize that destination address is PVAnd PIData message Between IPv6 addresses mapping.
Fig. 1 is present invention access MPLS VPN and the knot of user side IPv6 address configuration system one embodiment of internet Structure schematic diagram.The user side IPv6 address configurations system of the embodiment can be used for realizing the various embodiments described above user side of the present invention IPv6 address configuration method flows.As shown in figure 1, the user side IPv6 address configurations system of the embodiment include subscriber's main station, Gateway router, MPLS VPN and internet.Wherein:
Gateway router, positioned at user side, for accessing MPLS VPN and internet, inquire about in address table therein whether It is configured with two address fields for being respectively used to access MPLS VPN and internet, two address fields include the first address field and the Double-address section.If being configured with two address fields in address table, the first address field or the second address are selected from the two address fields Section is allocated to subscriber's main station, exemplarily, can be by ND agreements or RA agreements or DHCPv6 modes, by the of selection One address field or the second address field are allocated to subscriber's main station, and the mapping relations set up between two address fields.In response to receiving Be sent to subscriber's main station the second address field for not being allocated to subscriber's main station in two address fields or the first address field application it is mutual Networking or MPLS VPN the first data message, according to the mapping relations of foundation, the source address in the first data message is changed To be sent to internet or MPLS VPN after not being allocated to the second address field or the first address field of subscriber's main station.In response to receiving The internet or MPLS VPN applied to the second address field for not being allocated to subscriber's main station or the first address field are sent to and use householder Second data message of machine, according to the mapping relations of foundation, the destination address in the second data message is converted to and is allocated to use Subscriber's main station is sent to after the second address field or the first address field of householder's machine.
Access MPLS VPN and the user side IPv6 address configuration systems of internet that the above embodiment of the present invention is provided, are used Whether family side is configured with the gateway router inquiry address table for accessing MPLS VPN and internet is respectively used to access MPLS VPN and internet two address fields, if being configured with two address fields in address table, gateway router is from two addresses The first address field or the second address field is selected to be allocated to subscriber's main station, and the mapping relations set up between two address fields in section; It is sent in response to receiving subscriber's main station and is not allocated to the second address field or the first address of subscriber's main station in two address fields Duan Yingyong internet or MPLS VPN the first data message, gateway router is according to mapping relations, by the first data message In source address be converted to be not allocated to the second address field of subscriber's main station or the first address field after be sent to internet or MPLS VPN;It is not allocated to the second address field of subscriber's main station or the internet or MPLS of the application of the first address field in response to receiving VPN is sent to the second data message of subscriber's main station, and gateway router is according to mapping relations, by the purpose in the second data message Address conversion is to be sent to subscriber's main station after being allocated to the second address field of subscriber's main station or the first address field.The embodiment of the present invention On the gateway router of user side, the address field for the IPv6 addresses independently distributed MPLS VPN and the class business of internet two Selected and be allocated to main frame, and address conversion is carried out to the data message of non-configuration address section(Or be:Map, turn over Translate)After be advertised to carrier network, realize under the requirement additionally intervened and coordinated without operator user to MPLS VPN and mutual It is seamless while two kinds of business of networking to use, solve user and obtain different from Internet service and MPLS vpn services During IPv6 address fields, how to host assignment, only a wherein sector address is to reduce the configuration difficulty of host address, and to two classes not With business bearer network notice it is different route, two class business can be accessed simultaneously the problem of.Relative in the prior art the first Follow the viewpoint of the private net address in IPv4 networks, the embodiment of the present invention is provided to user and uses IPv6 public network addresses just Profit, it is not necessary to because return back to using MPLS vpn services and Internet service in the environment of similar IPv4 private networks simultaneously, protect Hold its right for enjoying IPv6 magnanimity public network addresses;The viewpoint of different business IPv6 address fields planning unified relative to second, The embodiment of the present invention, which can remove, to be required to be assisted for IPv6 addresses between the different management levels of the even same operator of different operators The difficulty of tune, also smoothly commences business for operator and overcomes obstacle.
According to present invention access MPLS VPN and a tool of the user side IPv6 address configuration system embodiments of internet Body example and it is unrestricted, the gateway router of the embodiment of the present invention can include data transceiving unit 410, address table 420, address Dispensing unit 430 and address conversioning unit 440.As shown in figure 4, being the structural representation of gateway router one embodiment of the present invention Figure.Wherein:
Data transceiving unit 410, the forwarding for realizing the data message between user side and internet, MPLS VPN. It is configured with address table 420 and is respectively used to access MPLS VPN and two address fields of internet or one of address field, And the mapping relations between two address fields of the foundation of address configuration unit 430.Address configuration unit 430, for inquiring about ground Whether two address fields being respectively used to access MPLS VPN and internet are configured with location table 420, and two address fields include the One address field and the second address field.If being configured with two address fields in address table 420, the first ground is selected from the two address fields Location section or the second address field are allocated to subscriber's main station, and the mapping relations set up between two address fields.Address conversioning unit 440, it is sent in two address fields for receiving subscriber's main station in response to data transceiving unit 410 and is not allocated to subscriber's main station The second address field or the first address field application internet or MPLS VPN the first data message, according in address table 420 The mapping relations of foundation, the source address in the first data message are converted to the second address field for not being allocated to subscriber's main station or Internet or MPLS VPN are sent to by data transceiving unit 410 after one address field.Received in response to data transceiving unit 410 The second address field of subscriber's main station is not allocated to or the internet or MPLS VPN of the first address field application are sent to subscriber's main station The second data message, according to the mapping relations set up in address table 420, the destination address in the second data message is converted to Subscriber's main station is sent to by data transceiving unit 410 after being allocated to the second address field of subscriber's main station or the first address field.
According to present invention access MPLS VPN and a tool of the user side IPv6 address configuration system embodiments of internet Body example and it is unrestricted, gateway router selects the first address field or the second address field to be allocated to and use householder from two address fields During machine, it can specifically compare the length of mask in the first address field and the second address field;Mask is selected from two address fields The first longer address field of length or the second address field are used as the address field for being allocated to subscriber's main station;And by the first ground of selection Location section or the second address field are allocated to subscriber's main station.
According to another of the user side IPv6 address configuration system embodiments of present invention access MPLS VPN and internet Specific example and it is unrestricted, gateway router can be also used for identical with the length of mask in the second address field in the first address field When, random the first address field or the second address field are selected according to default selection strategy or from two address fields as being allocated to The address field of subscriber's main station, and the first address field or the second address field of selection are allocated to subscriber's main station.
According to another of the user side IPv6 address configuration system embodiments of present invention access MPLS VPN and internet Specific example and it is unrestricted, gateway router, which is converted to the source address in the first data message, is not allocated to the of subscriber's main station When double-address section or the first address field, the first address field or the second address of subscriber's main station can will be specifically allocated in source address Section is mapped as not being allocated to the second address field or the first address field of subscriber's main station, retains the main frame bit position in source address.
According to another of the user side IPv6 address configuration system embodiments of present invention access MPLS VPN and internet Specific example and it is unrestricted, gateway router, which is converted to the destination address in the second data message, is allocated to the of subscriber's main station When double-address section or the first address field, the second address field or first of subscriber's main station specifically will can not be allocated in destination address Address field is mapped as being allocated to the first address field or the second address field of subscriber's main station, retains the main frame bit position in source address.
According to present invention access MPLS VPN and another embodiment of the user side IPv6 address configuration systems of internet, When gateway router can be also used for only being configured with an address field in address table, by ND agreements or RA agreements or DHCPv6 modes, subscriber's main station is allocated to by the address field in address table.
The embodiment of each in this specification is described by the way of progressive, what each embodiment was stressed be with Same or analogous part cross-reference between the difference of other embodiments, each embodiment.Implement for system For example, because it is substantially corresponding with embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part illustrates.
Method, system and the equipment of the present invention may be achieved in many ways.For example, software, hardware, firmware can be passed through Or any combinations of software, hardware, firmware come realize the present invention method and system.The step of for methods described it is above-mentioned Order is not limited to order described in detail above merely to illustrate, the step of method of the invention, unless with other sides Formula is illustrated.In addition, in certain embodiments, the present invention can be also embodied as recording to program in the recording medium, these Program includes the machine readable instructions for being used to realize the method according to the invention.Thus, the present invention also covering storage is used to perform The recording medium of the program of the method according to the invention.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
In the embodiment of the present invention, in the egress router of user network(I.e.:Gateway router)On, one address of increase is sentenced Disconnected logic function, and according to the result of judgement, select which address field directly distribute/be allocated to subscriber's main station(PC), and Another address field then only does conversion in external notice route and used, then real by setting up mapping table on gateway router Intersegmental mapping/the translation in present two addresses, it is ensured that the bearer network of the address field whereabouts different business of different business.
Description of the invention is provided for the sake of example and description, and is not exhaustively or by the present invention It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Select and retouch State embodiment and be more preferably to illustrate the principle and practical application of the present invention, and one of ordinary skill in the art is managed The solution present invention is so as to design the various embodiments with various modifications suitable for special-purpose.

Claims (12)

1. a kind of access MPLS VPN and internet user side IPv6 address configuration methods, it is characterised in that including:
Whether user side is configured with the gateway router inquiry address table for accessing MPLS VPN and internet is respectively used to MPLS VPN and two address fields of internet are accessed, described two address fields include the first address field and the second address field;
If being configured with two address fields in address table, gateway router selects the first address field or the second ground from two address fields Location section is allocated to subscriber's main station, and the mapping relations set up between two address fields;Wherein, gateway router is from two address fields The first address field of middle selection or the second address field are allocated to subscriber's main station and included:Gateway router compares the first address field and second The length of mask in address field;Gateway router selects the first longer address field of the length of mask or from two address fields Double-address section is used as the address field for being allocated to subscriber's main station;Gateway router matches somebody with somebody the first address field or the second address field of selection Put to subscriber's main station;
It is sent in response to receiving subscriber's main station and is not allocated to the second address field or first of subscriber's main station in two address fields The internet of address field application or MPLS VPN the first data message, gateway router is according to the mapping relations, by first Source address in data message is converted to be not allocated to the second address field of subscriber's main station or the first address field after be sent to interconnection Net or MPLSVPN;
It is not allocated to the second address field of subscriber's main station or the internet or MPLS of the application of the first address field in response to receiving VPN is sent to the second data message of the subscriber's main station, and gateway router is according to the mapping relations, by the second data message In destination address be converted to be allocated to the second address field of subscriber's main station or the first address field after be sent to the subscriber's main station.
2. according to the method described in claim 1, it is characterised in that also include:
If the first address field is identical with the length of mask in the second address field, gateway router according to default selection strategy or with Machine selects the first address field or the second address field as the address field for being allocated to subscriber's main station from two address fields, and will selection The first address field or the second address field be allocated to subscriber's main station.
3. method according to claim 2, it is characterised in that the source address in the first data message is converted to and not configured The second address field or the first address field to subscriber's main station include:
The first address field or the second address field that subscriber's main station is allocated in the source address are mapped as not being allocated to and use householder The second address field or the first address field of machine, retain the main frame bit position in the source address.
4. method according to claim 2, it is characterised in that the destination address in the second data message is converted into configuration The second address field or the first address field to subscriber's main station include:
The second address field or the first address field that are not allocated to subscriber's main station in the destination address are mapped as being allocated to user The first address field or the second address field of main frame, retain the main frame bit position in the source address.
5. method according to claim 2, it is characterised in that be allocated to the first address field or the second address field of selection Subscriber's main station includes:
Pass through the DynamicHost of this Internet protocol of Neighbor Discovery agreement or router advertisement RA agreements or sixth version Configuration protocol DHCP v6 modes, subscriber's main station is allocated to by the first address field or the second address field of selection.
6. the method according to claim 1 to 5 any one, it is characterised in that also include:
If being only configured with an address field in address table, gateway router passes through ND agreements or RA agreements or DHCPv6 side Formula, subscriber's main station is allocated to by the address field in address table.
7. a kind of access MPLS VPN and internet user side IPv6 address configuration systems, it is characterised in that including with householder Machine, gateway router, MPLS VPN and internet;
Whether the gateway router, positioned at user side, be configured with for accessing in MPLS VPN and internet, inquiry address table It is respectively used to access MPLS VPN and two address fields of internet, described two address fields include the first address field and the second ground Location section;
If being configured with two address fields in address table, the first address field or the second address field is selected to be allocated to from two address fields Subscriber's main station, and the mapping relations set up between two address fields;Wherein, the gateway router is selected from two address fields When first address field or the second address field are allocated to subscriber's main station, specifically compare mask in the first address field and the second address field Length;Longer the first address field of length or the second address field of mask are selected from two address fields as being allocated to and uses householder The address field of machine;And the first address field or the second address field of selection are allocated to subscriber's main station;
It is sent in response to receiving subscriber's main station and is not allocated to the second address field or first of subscriber's main station in two address fields The internet of address field application or MPLS VPN the first data message, according to the mapping relations, by the first data message Source address be converted to be not allocated to the second address field of subscriber's main station or the first address field after be sent to internet or MPLS VPN;
It is not allocated to the second address field of subscriber's main station or the internet or MPLS of the application of the first address field in response to receiving VPN is sent to the second data message of the subscriber's main station, according to the mapping relations, by the destination in the second data message Location is converted to be allocated to the second address field of subscriber's main station or the first address field after be sent to the subscriber's main station.
8. system according to claim 7, it is characterised in that the gateway router, be additionally operable to the first address field with When the length of mask is identical in second address field, the first ground is selected from two address fields according to default selection strategy or at random Location section or the second address field are matched somebody with somebody as the address field for being allocated to subscriber's main station, and by the first address field or the second address field of selection Put to subscriber's main station.
9. system according to claim 8, it is characterised in that the gateway router is by the source in the first data message When location is converted to the second address field or the first address field for not being allocated to subscriber's main station, specifically use will be allocated in the source address The first address field or the second address field of householder's machine are mapped as not being allocated to the second address field or the first address field of subscriber's main station, Retain the main frame bit position in the source address.
10. system according to claim 8, it is characterised in that the gateway router is by the mesh in the second data message Address conversion when being the second address field or the first address field for being allocated to subscriber's main station, will not match somebody with somebody in the destination address specifically Put the first address field or the second ground for being mapped as being allocated to subscriber's main station to the second address field or the first address field of subscriber's main station Location section, retains the main frame bit position in the source address.
11. system according to claim 8, it is characterised in that the gateway router is assisted especially by Neighbor Discovery The dynamic host configuration protocol DHCP v6 modes of this Internet protocol of view or router advertisement RA agreements or sixth version, will The first address field or the second address field of selection are allocated to subscriber's main station.
12. the system according to claim 7 to 11 any one, it is characterised in that the gateway router, is additionally operable to When being only configured with an address field in address table, by ND agreements or RA agreements or DHCPv6 modes, by address table Address field be allocated to subscriber's main station.
CN201210583630.7A 2012-12-28 2012-12-28 Access MPLS VPN and the user side IPv6 address configuration methods and system of internet Active CN103905575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210583630.7A CN103905575B (en) 2012-12-28 2012-12-28 Access MPLS VPN and the user side IPv6 address configuration methods and system of internet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210583630.7A CN103905575B (en) 2012-12-28 2012-12-28 Access MPLS VPN and the user side IPv6 address configuration methods and system of internet

Publications (2)

Publication Number Publication Date
CN103905575A CN103905575A (en) 2014-07-02
CN103905575B true CN103905575B (en) 2017-09-26

Family

ID=50996729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210583630.7A Active CN103905575B (en) 2012-12-28 2012-12-28 Access MPLS VPN and the user side IPv6 address configuration methods and system of internet

Country Status (1)

Country Link
CN (1) CN103905575B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155196A (en) * 2006-09-27 2008-04-02 中国电信股份有限公司 Service-oriented IPv6 address specification and distribution method, terminal and system for implementing the same
CN102546848A (en) * 2010-12-21 2012-07-04 中国移动通信集团公司 Device and method for generating labels in network address translation gateway
CN102739810A (en) * 2011-04-07 2012-10-17 中国电信股份有限公司 IPv4CP/SP and IPv6 network interworking method and device
CN102801826A (en) * 2012-08-29 2012-11-28 清华大学 IPv6 (Internet Protocol Version 6) site multi-homing application method on basis of IPv6 address translation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155196A (en) * 2006-09-27 2008-04-02 中国电信股份有限公司 Service-oriented IPv6 address specification and distribution method, terminal and system for implementing the same
CN102546848A (en) * 2010-12-21 2012-07-04 中国移动通信集团公司 Device and method for generating labels in network address translation gateway
CN102739810A (en) * 2011-04-07 2012-10-17 中国电信股份有限公司 IPv4CP/SP and IPv6 network interworking method and device
CN102801826A (en) * 2012-08-29 2012-11-28 清华大学 IPv6 (Internet Protocol Version 6) site multi-homing application method on basis of IPv6 address translation

Also Published As

Publication number Publication date
CN103905575A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN102025591B (en) Method and system for implementing virtual private network
CN106664252B (en) Realize method, equipment and the system of service chaining
CN104518940B (en) Realize the method and apparatus to be communicated between NVO3 networks and MPLS network
CN104380658B (en) Flow classifier, business route flip-flop, the method and system of Message processing
CN105453523B (en) Method and apparatus for ensuring the seamless flowing of flow
CN104579954B (en) The cross-domain retransmission method of message, device and communication equipment
US20230090829A1 (en) Virtualized network functions through address space aggregation
CN102316028B (en) Method and apparatus for sending internet protocol packet
WO2015165311A1 (en) Method for transmitting data packet and provider edge device
CN102025589A (en) Method and system for realizing virtual private network
CN105991433B (en) The method and apparatus of Layer3 Virtual Private Network access Layer 2 virtual private network
CN104038422B (en) Message forwarding method and gateway
CN107770026A (en) Tenant network data transmission method, tenant network system and relevant device
CN104782104B (en) Scaled using the OTV of website virtual mac address
CN102821165B (en) Ip address conversion method and device
CN109729012A (en) A kind of unicast message transmission method and device
CN102739502B (en) A kind of realize network identity conversion method, Apparatus and system
Iannone et al. Implementing the locator/id separation protocol: Design and experience
CN109412949A (en) A kind of data message transmission method and device
CN102571375B (en) Multicast forwarding method and device as well as network device
CN109936490A (en) Virtual home network share method and system based on VXLAN and OpenFlow
CN108063718A (en) Message processing method, device and electronic equipment
CN105991438A (en) Method and device for processing data packet in virtual two-layer network
CN104780090B (en) Method, apparatus, the PE equipment of VPN multicast transmissions
CN100428681C (en) Method for identifying multicast by using unicast address in IP network

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