CN104935677B - A kind of NAT64 resource acquiring method and acquisition/distributor - Google Patents
A kind of NAT64 resource acquiring method and acquisition/distributor Download PDFInfo
- Publication number
- CN104935677B CN104935677B CN201410101594.5A CN201410101594A CN104935677B CN 104935677 B CN104935677 B CN 104935677B CN 201410101594 A CN201410101594 A CN 201410101594A CN 104935677 B CN104935677 B CN 104935677B
- Authority
- CN
- China
- Prior art keywords
- pref64
- message
- information
- resource
- distribution
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/64—Hybrid switching systems
- H04L12/6418—Hybrid transport
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of NAT64 resource acquiring method and acquisition/distributors.Wherein, the NAT64 resource acquiring method includes: to send router solicitation RS message to server-side devices, and reception notices RA message from the first router of server-side devices, wherein, the information carried in RS message includes: pref64::/n resource request, and the information carried in the first RA message includes: the pref64::/n resource information distributed according to pref64::/n resource request;And/or receive the 2nd RA message of server-side devices active transmission, wherein the information carried in the 2nd RA message includes: the pref64::/n resource information of actively distribution.Through the invention, the complexity for reducing maintenance has been reached, enhancing is transitioned into the effect of the convenience of pure IPv6.
Description
Technical field
The present invention relates to the communications fields, in particular to a kind of NAT64 resource acquiring method and acquisition/distributor.
Background technique
Currently, network address translation (Network Address Translation, referred to as NAT) in the related technology
Belong to access wide area network (WAN) technology, is a kind of to convert the address legal Internet protocol (IP) for privately owned (reservation) address
Switch technology is widely used in various types of internet access ways and various types of networks.NAT is able to solve
The problem of IP address scarcity.
With the exhaustion of IPv4 address resource and the gradually deployment of IPv6 network, the IPv4 of large area present in network
Various IPv6 networks when operator IPv6/IPv4 in the urgent need to address coexists in network and newly-established IPv6 network and
Exchanging visit problem between IPv4 network.NAT64 technology and DNS64 technology are to solve IPv6 in this case and IPv4 exchanges visits
A kind of practical technique.
The technical principle of NAT64 and DNS64 will be done below simply to introduce.
NAT64 is a kind of stateful network address and protocol conversion technology, general only to support to use by IPv6 network side
Family initiates the connection the access side IPv4 Internet resources.But NAT64 also supports to realize IPv4 net by manual configuration static mappings relationship
Network actively initiates the connection access IPv6 network.NAT64 can realize IPv6 the and IPv4 network address under TCP, UDP, ICMP agreement
And protocol conversion.
DNS64 then mainly cooperation NAT64 work, mainly by A record (address the IPv4) synthesis in DNS query information
(address IPv6) is recorded to AAAA, and returns to the AAAA record user of synthesis to the side IPv6 user.
The common application scenarios networking of NAT64 and DNS64 is as shown in Figure 1, DNS64Server has been with NAT64Router
Complete independent part.Wherein 64:FF9B: :/96 be DNS64 well-known prefix, DNS64 generally default uses this prefix carries out
The address IPv4 is to the synthesis of the address IPv6, while the prefix is also used as the conversion prefix of NAT64, realizes the flow for matching the prefix
Just do NAT64 conversion.Generally the prefix is represented as pref64::/n in DNS64 and NAT64, wherein pref64 mark
NAT64 prefix, n identify NAT64 prefix length, and for the prefix in addition to using well-known prefix, network can be according to real network when disposing
Situation carries out flexible configuration.The prefix length is supported: the ranges such as 32,40,48,56,64 or 96, and the prefix of every kind of length converts rule
It is then also not exactly the same.
In Fig. 1, when IPv6Only User initiates the connection the common website IPv6 of access, flow will Match IP v6 default
It routes and is forwarded directly to IPv6Router processing.Access is initiated the connection as IPv6Only User is the mono- protocol stack of IPv4
When server, IPv6Only User can not obtain the corresponding IPv6 address information in the address destination IP v4Server, then send
DNS request is to DNS64Server, and it is the address IPv4 that it is corresponding, which to find the IPv4Server, i.e. then A record, needs
DNS64Server carries out prefix synthesis, i.e., A record and pref64::/n is synthesized AAAA record, return to IPv6Only
User.The flow of pref64::/n network segment will by routing forwarding to NAT64Router, thus realize IPv6 and the address IPv4 and
The conversion of agreement accesses the resource in IPv4 network.
In Fig. 1, DNS64 cooperative nat 64 is needed to work together, for not having to dispose the scene of DNS64 in network,
NAT64 cannot complete independently IPv6/IPv4 exchanging visit.So the case where working independently for NAT64, it would be desirable to be able to have corresponding
Technical solution is presented to simplify existing network, and is simplified the network during network upgrade and disposed range.
Currently there is the technical solution for the pref64::/n that NAT64 is obtained by PCP mode: draft-ietf-pcp-
Nat64-prefix64-04, the draft by extension PCP agreement increase newly PREFIX64Option make PCP Client from
NAT64-Controlled PCP Server obtains the letter such as pref64::/n, IPv6Suffix and IPv4Prefix List
Breath;But the technical solution needs user and NAT64 equipment to enable PCP agreement, and PCP agreement itself is not widely used in
In network.
Neighbor Discovery Protocol (Neighbor Discovery Protocol, referred to as NDP) is that one of IPv6 is crucial
Basic agreement, while being also upgrading and improvement that the certain agreements of IPv4 and IPv6 are integrated, such as: address resolution protocol
(ARP), the discovery of Internet Control Message Protocol (ICMP) router and ICMP redirection etc..And ND agreement can specifically include: preceding
Sew discovery, the unreachable monitoring of neighbours, repeat to address (RA) monitoring, Address Autoconfiguration etc..
Include Option Field in ND message, one or more option can be filled, such as: match automatically when carrying out address
When setting, domain name system (DNS) server address is issued by ND option.ND also defines some standard options simultaneously, according to need
Privately owned option can also be defined to extend the function of ND, it can be seen that ND has good scalability.
Aiming at the problem that lacking the pref64::/n resource information distribution method of suitable NAT64 in the related technology, at present
Not yet put forward effective solutions.
Summary of the invention
The present invention provides a kind of NAT64 resource acquiring method and acquisition/distributors, at least to solve the above problems.
According to an aspect of the invention, there is provided a kind of NAT64 resource acquiring method, comprising: to server-side devices
Router solicitation RS message is sent, and receives the first router notice RA message from server-side devices, wherein RS disappears
The information carried in breath includes: pref64::/n resource request, and the information carried in the first RA message includes: basis
The pref64::/n resource information of pref64::/n resource request distribution;And/or receive the of server-side devices active transmission
Two RA message, wherein the information carried in the 2nd RA message includes: the pref64::/n resource information of actively distribution.
Preferably, before pref64::/n resource request and the pref64::/n resource information of distribution include: pref64::/n
Sew information and prefix length and/or IPv6 suffix information and/or IPv4 prefix list.
Preferably, the ND option of extension is carried in RS message, wherein the content of ND option is request pref64::/n money
Source information.
Preferably, the ND option of extension is carried in the first RA message and the 2nd RA message, wherein the content of ND option is
The pref64::/n resource information of distribution.
Preferably, after receiving the first RA message or the 2nd RA message, further includes: whether detection is local has been saved
The pref64::/n resource information for thering is server apparatus to distribute;In the case where testing result is no, to server-side devices point
The pref64::/n resource information matched is saved, and ageing time is arranged, and in the case where testing result, which is, is, will have been protected
The pref64::/n Web Service deposited is newly assigned pref64::/n resource information, and resets ageing time.
Preferably, it after saving the pref64::/n resource information distributed according to pref64::/n resource request, also wraps
It includes: choosing pref64::/n prefix information and prefix length and/or IPv6 suffix from the pref64::/n resource information of preservation
Information, the address destination IP v4 for being sent to the message of IPv4 wide area network server to IPv6 client carry out the synthesis of the address IPv6,
Message is forwarded according to the address IPv6 after synthesis.
Preferably, the first RA message or the 2nd RA message include: one or more pref64::/n resource information.
Preferably, after receiving the first RA message or the 2nd RA message that different server-side devices are sent, also
It include: that the pref64::/n resource information of different server-side devices distribution is saved and updated respectively.
According to another aspect of the present invention, a kind of NAT64 resource acquisition device is provided, client device is located at, comprising:
Processing module for sending router solicitation RS message to server-side devices, and receives the from server-side devices
One router advertisement RA message, wherein the information carried in RS message includes: pref64::/n resource request, the first RA message
The information of middle carrying includes: the pref64::/n resource information distributed according to pref64::/n resource request;And/or receive mould
Block, for receiving the 2nd RA message of server-side devices active transmission, wherein the information carried in the 2nd RA message includes:
The actively pref64::/n resource information of distribution.
Preferably, the device further include: preservation and update module, for the first RA message received and/or second
The pref64::/n resource information carried in RA message is saved and/or is updated, and ageing time is arranged;Synthesis module is used
Pref64::/n prefix information and prefix length and/or IPv6 suffix letter are chosen in the pref64::/n resource information from preservation
Breath, the address destination IP v4 for being sent to the message of IPv4 wide area network server to IPv6 client carry out the synthesis of the address IPv6, press
Message is forwarded according to the address IPv6 after synthesis.
According to another aspect of the present invention, a kind of NAT64 resource allocation device is provided, server apparatus is located at, comprising:
First distribution module, the router solicitation RS message for being sent according to client device send the first via to client device
RA message is noticed by device, wherein the information carried in RS message includes: pref64::/n resource request, is taken in the first RA message
The information of band includes: the pref64::/n resource information distributed according to pref64::/n resource request;Second distribution module, is used for
The second router is sent to client device and notices RA message, wherein the information carried in the 2nd RA message includes: actively to distribute
Pref64::/n resource information.
Preferably, the device further include: processing module, for going out the address destination IP v6 into message and be locally stored
Pref64::/n resource in IPv6 prefix information matched, in the case where successful match, to the address source IP v6 carry out
NAT64 translation, the message after translation is forwarded, and, NAT64 translation is carried out to the address destination IP v4 entered into message,
The synthesis of the address IPv6 is carried out to the address source IP v4, message is forwarded according to the address IPv6 after translation.
Through the invention, using the RS message and RA message passed through in extension ND agreement, completing, the address IPv6 is ill-mannered
While state automatically configures, the mode of pref64::/n resource distributed automatically is realized, solve and lack in the related technology properly
NAT64 pref64::/n resource information distribution method the problem of, in this way since, without in a network enable PCP agreement be
It can simply solve the problems, such as complexity many present in NAT64 scene, and then having reached reduction maintenance, enhancing is transitioned into pure
The effect of the convenience of IPv6.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the common application scenarios networking schematic diagram according to the NAT64 and DNS64 of the relevant technologies;
Fig. 2 is NAT64 resource acquiring method flow chart according to an embodiment of the present invention;
Fig. 3 is the structural block diagram of NAT64 resource acquisition device according to an embodiment of the present invention;
Fig. 4 is the structural block diagram of preferred NAT64 resource acquisition device according to an embodiment of the present invention;
Fig. 5 is the structural block diagram of NAT64 resource allocation device according to an embodiment of the present invention;
Fig. 6 is the structural block diagram of preferred NAT64 resource allocation device according to an embodiment of the present invention;
Fig. 7 is the flow chart of the acquisition methods of NAT64 resource in the first equipment according to the preferred embodiment of the invention;
Fig. 8 is the flow chart of the distribution method of NAT64 resource in the second equipment according to the preferred embodiment of the invention;
Fig. 9 is the flow chart that NAT64 resource is actively distributed in the second equipment according to the preferred embodiment of the invention;
Figure 10 is the RS message packet format according to the preferred embodiment of the invention for carrying pref64::/n resource options;
Figure 11 is the RA message packet format according to the preferred embodiment of the invention for carrying pref64::/n resource options;
Figure 12 is the report of the pref64::/n resource options carried in RS and RA message according to the preferred embodiment of the invention
Literary format;
Figure 13 is that NAT64 according to the preferred embodiment of the invention works independently the schematic diagram disposed;
Figure 14 is that NAT64 according to the preferred embodiment of the invention works independently and carries out between each network element of networking deployment
Interaction diagrams;
Figure 15 is the acquisition process schematic diagram of pref64::/n resource according to the preferred embodiment of the invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
The embodiment of the invention provides a kind of NAT64 resource acquiring methods.Fig. 2 is NAT64 according to an embodiment of the present invention
Resource acquiring method flow chart, as shown in Fig. 2, this method mainly includes the following steps that (step S202- step S204):
Step S202 sends router solicitation RS message to server-side devices, and receives from server-side devices
The first router notice RA message, wherein the information carried in RS message includes: pref64::/n resource request, the first RA
The information carried in message includes: the pref64::/n resource information distributed according to pref64::/n resource request;And/or
Step S204 receives the 2nd RA message of server-side devices active transmission, wherein carry in the 2nd RA message
Information includes: the pref64::/n resource information of actively distribution.
By above-mentioned each step, distribution pref64::/n resource information can be requested to server-side devices or directly connect
The pref64::/n resource information that server-side devices actively distribute is received, in this way, without enabling PCP in a network
Agreement can simply solve the problems, such as a lot present in NAT64 scene, can reduce the complexity of maintenance, enhancing is transitioned into pure
The convenience of IPv6.
In the present embodiment, pref64::/n resource request and the pref64::/n resource information of distribution may include:
Pref64::/n prefix information and prefix length and/or IPv6 suffix information and/or IPv4 prefix list.
In the present embodiment, the ND option of extension is carried in RS message, wherein the content of ND option is request
Pref64::/n resource information.
In the present embodiment, the ND option of extension is carried in the first RA message and the 2nd RA message, wherein ND option
Content is the pref64::/n resource information of distribution.
In the present embodiment, after receiving the first RA message or the 2nd RA message, can also whether detect locally
It is saved the pref64::/n resource information of server apparatus distribution;In the case where testing result is no, to server end
The pref64::/n resource information of equipment distribution is saved, and ageing time is arranged, will in the case where testing result, which is, is
The pref64::/n Web Service being saved is newly assigned pref64::/n resource information, and resets ageing time.
In the present embodiment, save the pref64::/n resource information distributed according to pref64::/n resource request it
Afterwards, can also be chosen from the pref64::/n resource information of preservation pref64::/n prefix information and prefix length and/or
IPv6 suffix information, with being sent to the address the destination IP v4 progress IPv6 of the message of IPv4 wide area network server to IPv6 client
Location synthesis, is forwarded message according to the address IPv6 after synthesis.
In the present embodiment, the first RA message or the 2nd RA message may include: one or more pref64::/n money
Source information.
In the present embodiment, receive the first RA message that different server-side devices are sent or the 2nd RA message it
Afterwards, the pref64::/n resource information that can also be distributed different server-side devices is saved and is updated respectively.
The embodiment of the invention provides a kind of NAT64 resource acquisition device, which is located at client device, for realizing
Above-mentioned NAT64 resource acquiring method.Fig. 3 is the structural block diagram of NAT64 resource acquisition device according to an embodiment of the present invention, is such as schemed
Shown in 3, which includes: processing module 10 and receiving module 20.Wherein, processing module 10, for being sent out to server-side devices
Router solicitation RS message is sent, and receives the first router notice RA message from server-side devices, wherein RS message
The information of middle carrying includes: pref64::/n resource request, and the information carried in the first RA message includes: according to pref64::/n
The pref64::/n resource information of resource request distribution;And/or receiving module 20, it is actively sent out for receiving server-side devices
The 2nd RA message sent, wherein the information carried in the 2nd RA message includes: the pref64::/n resource information of actively distribution.
On the basis of NAT64 resource acquisition device shown in Fig. 3, the embodiment of the invention also provides a kind of preferred
NAT64 resource acquisition device.Fig. 4 is the structural block diagram of preferred NAT64 resource acquisition device according to an embodiment of the present invention, is such as schemed
Shown in 4, the preferred embodiment further include: preservation and update module 30, for disappearing to the first RA message received and/or the 2nd RA
The pref64::/n resource information carried in breath is saved and/or is updated, and ageing time is arranged;Synthesis module 40, is used for
Pref64::/n prefix information and prefix length and/or IPv6 suffix letter are chosen from the pref64::/n resource information of preservation
Breath, the address destination IP v4 for being sent to the message of IPv4 wide area network server to IPv6 client carry out the synthesis of the address IPv6, press
Message is forwarded according to the address IPv6 after synthesis.
The embodiment of the invention provides a kind of NAT64 resource allocation device, which is located at server apparatus, for realizing
Above-mentioned NAT64 resource acquiring method.Fig. 5 is the structural block diagram of NAT64 resource allocation device according to an embodiment of the present invention, is such as schemed
Shown in 5, which includes: the first distribution module 10 and the second distribution module 20.Wherein, the first distribution module 10 is used for basis
The router solicitation RS message that client device is sent sends the first router to client device and notices RA message, wherein RS
The information carried in message includes: pref64::/n resource request, and the information carried in the first RA message includes: basis
The pref64::/n resource information of pref64::/n resource request distribution;Second distribution module 20, for being sent out to client device
The second router is sent to notice RA message, wherein the information carried in the 2nd RA message includes: the pref64::/n money of actively distribution
Source information.
On the basis of NAT64 resource allocation device shown in Fig. 5, the embodiment of the invention also provides a kind of preferred
NAT64 resource allocation device.Fig. 6 is the structural block diagram of preferred NAT64 resource allocation device according to an embodiment of the present invention, is such as schemed
Shown in 6, the preferred embodiment further include: processing module 30, for going out the address destination IP v6 into message and be locally stored
IPv6 prefix information in pref64::/n resource is matched, and in the case where successful match, is carried out to the address source IP v6
NAT64 translation, the message after translation is forwarded, and, NAT64 translation is carried out to the address destination IP v4 entered into message,
The synthesis of the address IPv6 is carried out to the address source IP v4, message is forwarded according to the address IPv6 after translation.
Below with reference to Fig. 7 to Figure 15 and preferred embodiment to NAT64 resource acquiring method provided by the above embodiment
It is further described in more detail and illustrates.
Preferred embodiment
Fig. 7 is the flow chart of the acquisition methods of NAT64 resource in the first equipment according to the preferred embodiment of the invention, is such as schemed
Shown in 7, the process the following steps are included:
Step S702 sends the first RS message to server-side devices, wherein the packet carried in the first RS message
It includes: pref64::/n resource request;
Step S704 receives the first RA message from server-side devices, wherein the letter carried in the first RA message
Breath includes: the pref64::/n resource information distributed according to pref64::/n resource request.
Fig. 8 is the flow chart of the distribution method of NAT64 resource in the second equipment according to the preferred embodiment of the invention, is such as schemed
Shown in 8, the process the following steps are included:
Step S802 receives the first RS message from the first equipment, wherein the packet carried in the first RS message
It includes: pref64::/n resource request;
Step S804 sends the first RA message, wherein the information carried in the first RA message includes: according to pref64: :/
The pref64::/n resource information of n resource request distribution.
Fig. 9 is the flow chart that NAT64 resource is actively distributed in the second equipment according to the preferred embodiment of the invention, such as Fig. 9
It is shown, the process the following steps are included:
Step S902, NAT64 resource changes in the second equipment of server end or NAT64 equipment is restarted;
Step S904: the 2nd RA message of the second equipment of server end active transmission, wherein the letter carried in the 2nd RA message
Breath includes: the pref64::/n resource information after variation.
In order to have a clear understanding of the message format and its message content carried of each message, Figure 10 is please referred to Figure 12
(Figure 10 is the RS message packet format according to the preferred embodiment of the invention for carrying pref64::/n resource options, and Figure 11 is root
According to the RA message packet format of the carrying pref64::/n resource options of the preferred embodiment of the present invention, Figure 12 is excellent according to the present invention
Select the message format of the pref64::/n resource options carried in RS the and RA message of embodiment).
Figure 13 is that NAT64 according to the preferred embodiment of the invention works independently and carries out between each network element of networking deployment
Interaction diagrams, in the process shown in Figure 13:
Client device IPv6Host/CPE can send the first RS message to server-side devices NAT64/BRAS,
In, the information carried in the first RS message includes: pref64::/n resource request;Server-side devices NAT64/BRAS is received
After RS message from client device IPv6Host/CPE, the first RA message is sent, wherein carry in the first RA message
Information includes: pref64::/n resource information.
In practical applications, server-side devices NAT64/BRAS is being sent to the of client device IPv6Host/CPE
After or before one RA message, the 2nd RA message of server-side devices NAT64/BRAS active transmission, wherein in the 2nd RA message
The information of carrying includes: pref64::/n resource information.
In practical applications, client device IPv6Host/CPE is being received from server-side devices NAT64/BRAS
The 2nd RA message after, whether detection is local has preserved pref64::/n resource information, if do not saved, to server
The pref64::/n resource information of end equipment NAT64/BRAS distribution is saved;If saved, to server-side devices
The pref64::/n resource information of NAT64/BRAS distribution is updated.
Figure 14 is that NAT64 according to the preferred embodiment of the invention works independently the schematic diagram disposed, as shown in figure 14,
IPv6-Only terminal is by bridge type home gateway cpe device and access network, access band remote access server (BRAS)
Equipment can realize that IPv6-Only user's access is remote into the process of IPv6 transition by merging NAT64 in BRAS equipment
Hold the application of IPv4 server.User network is IPv6-Only network, and address uses the globally unique address IPv6.
It is IPv6 network that operator, which accesses net, and BRAS carries out the address IPv6 to IPv6 terminal by ND and statelessly automatically configures, meanwhile,
BRAS is IPv6 terminal distribution pref64::/n resource by ND scaling option, real in the case where no independent DNS64 is assisted
The application demand of existing IPv6-Only Client-initiated access far-end IP v4 server.
Figure 15 is the acquisition process schematic diagram of pref64::/n resource according to the preferred embodiment of the invention, such as Figure 15 institute
Show, the process the following steps are included:
(1) step S1502- step S1504 is the address IPv6 and NAT64 resource bid process:
Step S1502, IPv6 terminal sends RS message to BRAS, wherein the information carried in the RS message includes following
At least one: request IPv6 Address requests, the option for requesting NAT64 resource;
Step S1504, BRAS by the address IPv6 of distribution and NAT64 resource (such as: the address IPv6 2002::1/96,
NAT64 resource information: 2001:db8:122: :/96) alternatively encapsulating in a ra message, is then forwarded to IPv6 terminal;
(2) step S1506- step S1508 is the corresponding IP address process of request destination address:
Step S1506, IPv6 terminal initiates the AAAA record queries of purpose Web Server, DNS service to dns server
Device does not find corresponding AAAA record;
Step S1508, IPv6 terminal initiates the A record queries of purpose Web Server, dns server to dns server
Corresponding A record is found, and returns to A record (11.2.3.4) to IPv6 terminal;
(3) step S1510- step S1512 is the repeating process to flow:
Step S1510, IPv6 terminal access IPv4WEB server, the source IP v6 of the WEB request traffic messages generated
Location is 2002::1/96, and the address destination IP v6 is synthesized according to the NAT64 resource of distribution and the address IPv4 of destination IP v4Web
The address IPv6 2001:db8:122::11.2.3.4;Flow reaches BRAS equipment by access network;
Step S1512, BRAS equipment receive out to flow, match whether destination IP v6 address prefix is locally configured
NAT64 prefix, if it is, carrying out NAT64 translation, the address destination IP v4 in the message after NAT64 translation to the address source IP v6
It is 11.2.3.4, the address source IP v4 is 221.2.1.1, records NAT64 translation record, then turns the message after conversion process
It is sent to IPv4WEB server;If it is not, then abandoning the message;
(4) step S1514- step S1516 is into the repeating process to flow:
Step S1514, IPv4Web server generates response traffic messages, and the address destination IP v4 of the message is
11.2.3.4 the address source IP v4 is 221.2.1.1;
Step S1516, enter to flow reach BRAS, BRAS equipment to enter to traffic messages carry out NAT64 conversion process, turn
The address destination IP v6 after changing is 2002::1, and the address source IP v6 is 2001::db8:122::11.2.3.4;Message after conversion
It is forwarded to corresponding IPv6 terminal.
Increased while can statelessly being configured by ND agreement progress IPv6 terminal address using above preferred embodiment
Add related mechanism to carry out the distribution of NAT64 prefix information, extends simple and convenient easy to operate easy to maintain.
It should be noted that above-described embodiment is a preferred embodiment of the embodiment of the present invention, the embodiment of the present invention
It can also apply in other various application scenarios, such as: the application such as IPv6-initiated TCP Session, SIP Flow
Scene no longer repeats one by one here.
In another embodiment, a kind of software is additionally provided, the software is for executing above-described embodiment and preferred reality
Apply technical solution described in mode.
In another embodiment, a kind of storage medium is additionally provided, above-mentioned software is stored in the storage medium, it should
Storage medium includes but is not limited to: CD, floppy disk, hard disk, scratch pad memory etc..
It can be seen from the above description that the present invention realizes following technical effect: using by extension ND agreement
RS message and RA message, while completing the address IPv6 and statelessly automatically configuring, realize pref64::/n resource from
The mode of dynamic distribution, solves asking for the pref64::/n resource information distribution method for lacking suitable NAT64 in the related technology
Topic, in this way since, can simply be solved the problems, such as without enabled PCP agreement in a network it is many present in NAT64 scene, into
And having reached the complexity for reducing maintenance, enhancing is transitioned into the effect of the convenience of pure IPv6.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of NAT64 resource acquiring method characterized by comprising
To server-side devices send router solicitation RS message, and receive from the server-side devices the first via by
Device notices RA message, wherein the information carried in the RS message includes: pref64::/n resource request, and the first RA disappears
The information carried in breath includes: the pref64::/n resource information distributed according to the pref64::/n resource request, wherein institute
State the ND option that extension is carried in the first RA message, wherein the content of the ND option is the pref64::/n resource of distribution
The pref64::/n resource information of information, the pref64::/n resource request and distribution includes: pref64::/n prefix information
And prefix length and/or IPv6 suffix information and/or IPv4 prefix list;And/or
Receive the 2nd RA message of the server-side devices active transmission, wherein the information carried in the 2nd RA message
It include: the pref64::/n resource information of actively distribution, wherein the ND option of extension is carried in the 2nd RA message,
In, the content of the ND option is the pref64::/n resource information of distribution, and the pref64::/n resource information of distribution includes:
Pref64::/n prefix information and prefix length and/or IPv6 suffix information and/or IPv4 prefix list.
2. the method according to claim 1, wherein carrying the ND option of extension in the RS message, wherein
The content of the ND option is request pref64::/n resource information.
3. the method according to claim 1, wherein receiving the first RA message or the 2nd RA disappears
After breath, further includes:
The local pref64::/n resource information for whether having preserved the server apparatus distribution of detection;
In the case where testing result is no, the pref64::/n resource information of server-side devices distribution is protected
It deposits, and ageing time is set, in the case where testing result, which is, is, be by the pref64::/n Web Service being saved
Newly assigned pref64::/n resource information, and reset ageing time.
4. according to the method described in claim 3, it is characterized in that, described according to the pref64::/n resource request saving
After the pref64::/n resource information of distribution, further includes:
Pref64::/n prefix information and prefix length and/or IPv6 suffix are chosen from the pref64::/n resource information of preservation
Information, the address destination IP v4 for being sent to the message of IPv4 wide area network server to IPv6 client carry out the synthesis of the address IPv6,
The message is forwarded according to the address IPv6 after synthesis.
5. the method according to claim 1, wherein the first RA message or the 2nd RA message include:
One or more pref64::/n resource information.
6. the method according to claim 1, wherein receiving described in different server-side devices transmissions
After first RA message or the 2nd RA message, further includes:
The pref64::/n resource information of the different server-side devices distribution is saved and updated respectively.
7. a kind of NAT64 resource acquisition device is located at client device characterized by comprising
Processing module for sending router solicitation RS message to server-side devices, and is received from the server end
The first router of equipment notices RA message, wherein the information carried in the RS message includes: that pref64::/n resource is asked
It asks, the information carried in the first RA message includes: the pref64::/n distributed according to the pref64::/n resource request
Resource information, wherein the ND option of extension is carried in the first RA message, wherein the content of the ND option is distribution
Pref64::/n resource information, the pref64::/n resource information of the pref64::/n resource request and distribution includes:
Pref64::/n prefix information and prefix length and/or IPv6 suffix information and/or IPv4 prefix list;And/or
Receiving module, for receiving the 2nd RA message of the server-side devices active transmission, wherein taken in the 2nd RA message
The information of band includes: the pref64::/n resource information of actively distribution, wherein the ND of extension is carried in the 2nd RA message
Option, wherein the content of the ND option is the pref64::/n resource information of distribution, the pref64::/n resource information of distribution
It include: pref64::/n prefix information and prefix length and/or IPv6 suffix information and/or IPv4 prefix list.
8. device according to claim 7, which is characterized in that described device further include:
It saves and update module, for carrying to the first RA message received and/or in the 2nd RA message
Pref64::/n resource information is saved and/or is updated, and ageing time is arranged;
Synthesis module, for choosing pref64::/n prefix information and prefix length from the pref64::/n resource information of preservation
And/or IPv6 suffix information, the address destination IP v4 for being sent to the message of IPv4 wide area network server to IPv6 client carry out
The synthesis of the address IPv6, is forwarded the message according to the address IPv6 after synthesis.
9. a kind of NAT64 resource allocation device is located at server apparatus characterized by comprising
First distribution module, the router solicitation RS message for being sent according to client device, Xiang Suoshu client device hair
The first router is sent to notice RA message, wherein the information carried in the RS message includes: pref64::/n resource request, institute
Stating the information carried in the first RA message includes: the pref64::/n resource letter according to pref64::/n resource request distribution
Breath, wherein the ND option of extension is carried in the first RA message, wherein the content of the ND option is distribution
The pref64::/n resource information of pref64::/n resource information, the pref64::/n resource request and distribution includes:
Pref64::/n prefix information and prefix length and/or IPv6 suffix information and/or IPv4 prefix list;
Second distribution module notices RA message for sending the second router to the client device, wherein the 2nd RA message
The information of middle carrying includes: the pref64::/n resource information of actively distribution, wherein carries extension in the 2nd RA message
ND option, wherein the content of the ND option be distribution pref64::/n resource information, the pref64::/n resource of distribution
Information includes: pref64::/n prefix information and prefix length and/or IPv6 suffix information and/or IPv4 prefix list.
10. device according to claim 9, which is characterized in that described device further include:
Processing module, for the IPv6 gone out in the address destination IP v6 into message and the pref64::/n resource being locally stored
Prefix information is matched, and in the case where successful match, NAT64 translation is carried out to the address source IP v6, by the message after translation
It is forwarded, and, NAT64 translation is carried out to the address destination IP v4 entered into message, the address IPv6 is carried out to the address source IP v4
Synthesis, is forwarded the message according to the address IPv6 after translation.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410101594.5A CN104935677B (en) | 2014-03-18 | 2014-03-18 | A kind of NAT64 resource acquiring method and acquisition/distributor |
PCT/CN2014/082854 WO2015139397A1 (en) | 2014-03-18 | 2014-07-23 | Nat64 resource acquisition method and acquisition/distribution apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410101594.5A CN104935677B (en) | 2014-03-18 | 2014-03-18 | A kind of NAT64 resource acquiring method and acquisition/distributor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104935677A CN104935677A (en) | 2015-09-23 |
CN104935677B true CN104935677B (en) | 2019-10-18 |
Family
ID=54122643
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410101594.5A Active CN104935677B (en) | 2014-03-18 | 2014-03-18 | A kind of NAT64 resource acquiring method and acquisition/distributor |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104935677B (en) |
WO (1) | WO2015139397A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111107122B (en) * | 2018-10-29 | 2023-08-18 | 上海诺基亚贝尔股份有限公司 | Method, apparatus and computer readable medium for discovering fog resources in a network |
CN111385173B (en) * | 2018-12-28 | 2023-08-25 | 中兴通讯股份有限公司 | Message processing method and device, control plane equipment and computer storage medium |
CN111654444A (en) * | 2020-06-10 | 2020-09-11 | 展讯通信(上海)有限公司 | IPv6 prefix obtaining method, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299974A (en) * | 2010-06-25 | 2011-12-28 | 中兴通讯股份有限公司 | Method and device for realizing IPv6 (Internet Protocol Version 6) prefix distribution |
CN102938735A (en) * | 2012-11-15 | 2013-02-20 | 北京邮电大学 | Method utilizing router advertisement carrying options to issue network address translator (NAT) 64 address prefix |
CN103179227A (en) * | 2013-03-21 | 2013-06-26 | 北京邮电大学 | Method for host selection and address configuration manner switchover of IPv6 (Internet Protocol version 6) network |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101931658B (en) * | 2009-06-26 | 2013-07-03 | 中国移动通信集团公司 | Method and device for IPv6 host computer with IPv4 application to perform communication |
CN102238075A (en) * | 2010-05-05 | 2011-11-09 | 杭州华三通信技术有限公司 | IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server |
-
2014
- 2014-03-18 CN CN201410101594.5A patent/CN104935677B/en active Active
- 2014-07-23 WO PCT/CN2014/082854 patent/WO2015139397A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299974A (en) * | 2010-06-25 | 2011-12-28 | 中兴通讯股份有限公司 | Method and device for realizing IPv6 (Internet Protocol Version 6) prefix distribution |
CN102938735A (en) * | 2012-11-15 | 2013-02-20 | 北京邮电大学 | Method utilizing router advertisement carrying options to issue network address translator (NAT) 64 address prefix |
CN103179227A (en) * | 2013-03-21 | 2013-06-26 | 北京邮电大学 | Method for host selection and address configuration manner switchover of IPv6 (Internet Protocol version 6) network |
Also Published As
Publication number | Publication date |
---|---|
WO2015139397A1 (en) | 2015-09-24 |
CN104935677A (en) | 2015-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2536108B1 (en) | Method, system and apparatus for acquiring ipv6 configuration information in ipv6 transient network | |
RU2602971C2 (en) | Dynamic ipv6 configuration method for home gateway | |
US9013992B2 (en) | Method and apparatus for network address translation | |
US9479422B2 (en) | mDNS-DNS architecture | |
CN102938735B (en) | Advertising of route is used to carry the method that option issues NAT64 address prefix | |
US8458303B2 (en) | Utilizing a gateway for the assignment of internet protocol addresses to client devices in a shared subset | |
US20120324063A1 (en) | Method, network device, and system for automatically configuring network device in ipv6 network | |
CN101321111A (en) | Communication method and device, server, and computer readable recording medium | |
JP5848478B2 (en) | Split network address translation | |
WO2011018775A1 (en) | A method and host node for multiple nat64 environments | |
US20140313933A1 (en) | Method, apparatus, and system for layer 2 interworking based on ipv6 | |
KR101381701B1 (en) | Data message processing method, system and access service node | |
CN103227787B (en) | Automatic 4over6 tunnel establishment method based on ARP proxy | |
CN104883407A (en) | IPv6 address handling method and apparatus and DHCPv6 relay | |
CN1744596B (en) | Method for host obtaining network allocation parameterns in IPV6 network | |
CN104935677B (en) | A kind of NAT64 resource acquiring method and acquisition/distributor | |
JP6383797B2 (en) | NAT64 prefix processing method, network device, and DHCPv6 server | |
CN106878481B (en) | Method, device and system for acquiring Internet Protocol (IP) address | |
US10129145B2 (en) | Routing IPv6 packets between autonomous systems | |
CA2961192C (en) | Discovery of network address allocations and translations in wireless communication systems | |
JP2010062757A (en) | Dns proxy apparatus and dns relay method | |
CN102299860A (en) | Acquisition method and equipment for path maximum transmission unit (Pathmtu) | |
WO2015039563A1 (en) | Method and device for implementing layer 3 virtual private network | |
JP2016515371A (en) | Packet transmission method and apparatus, and server | |
Ali et al. | Hybrid approach for migration of IPv6 to IPv4 Network for enhancing security in Virtual Private Cloud. |
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 |