CN105208140B - For sending the methods, devices and systems of data - Google Patents

For sending the methods, devices and systems of data Download PDF

Info

Publication number
CN105208140B
CN105208140B CN201410305194.6A CN201410305194A CN105208140B CN 105208140 B CN105208140 B CN 105208140B CN 201410305194 A CN201410305194 A CN 201410305194A CN 105208140 B CN105208140 B CN 105208140B
Authority
CN
China
Prior art keywords
address information
information
ipv4
prefix
ipv6
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
CN201410305194.6A
Other languages
Chinese (zh)
Other versions
CN105208140A (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 CN201410305194.6A priority Critical patent/CN105208140B/en
Publication of CN105208140A publication Critical patent/CN105208140A/en
Application granted granted Critical
Publication of CN105208140B publication Critical patent/CN105208140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a kind of for sending the methods, devices and systems of data.Wherein when receiving the first IPv6 address information of dns server transmission, IPv4 address information is extracted from the first IPv6 address information;Prefix lookups request is sent to prefix discovery server PDS, wherein prefix lookups request includes IPv4 address information, to inquire the NAT64 NODE PREFIX information of IPv4 address information ownership network segment;When receiving the NAT64 NODE PREFIX information of PDS transmission, the 2nd IPv6 address information is generated using NAT64 NODE PREFIX information and IPv4 address information;IPv6 data packet is sent to NAT64 node associated with the 2nd IPv6 address information, so that IPv6 data packet is translated as IPv4 data packet by NAT64 node, and IPv4 data packet is transmitted to the specified IPv4 server.By configuring corresponding prefix information according to different IP address network segments, so that expansible XLAT function, realizes the use under multiple gateway scene.

Description

For sending the methods, devices and systems of data
Technical field
It is the present invention relates to the communications field, in particular to a kind of for sending the methods, devices and systems of data.
Background technique
Currently, XLAT technology realizes numerous IPv4 (Internet Protocol version4, Internet protocol the 4th edition) Terminal access, can move to IPv6 (Internet Protocol version6, internet protocol for IPv4 user to unaware Discuss the 6th edition) in network.
XLAT is made of two parts:
1) terminal side CLAT- is translated, and realizes the stateless NAT46 in terminal side (Network Address Translator The network address translation of IPv4to IPv6, IPv4 to IPv6) translation;
2) PLAT- network side is translated, and realizes the stateful NAT64 of network side (Network Address Translator The network address translation of IPv6to IPv4, IPv6 to IPv4) translation.
Existing XLAT technology has the following problems:
1) XLAT uses heuristic finding method at present, can only have a PLAT gateway in network, and using identical Pref64 prefix realizes IPv6- > IPv4 translation.
2) it not can be carried out the selection of Pref64 prefix and the address IPv6 flexibly synthesize.
Now in net there may be multiple PLAT gateways, it can be achieved that path optimization and different policy controls etc., therefore it is current XLAT technology cannot achieve the use under multiple gateway scene.
Summary of the invention
The embodiment of the present invention provides a kind of for sending the methods, devices and systems of data.By according to different IP Location network segment configures corresponding prefix information, so that expansible XLAT function, realizes the use under multiple gateway scene.
According to an aspect of the present invention, a kind of method for sending data is provided, comprising:
When receiving the first IPv6 address information of dns server transmission, extracted from the first IPv6 address information IPv4 address information;Wherein the first IPv6 address information includes scheduled NAT64 Fixed CP information and specified IPv4 server IPv4 address information;
Prefix lookups request is sent to prefix discovery server PDS, wherein prefix lookups request includes that the address IPv4 is believed Breath, to inquire the NAT64 NODE PREFIX information of IPv4 address information ownership network segment;
When receiving the NAT64 NODE PREFIX information of PDS transmission, NAT64 NODE PREFIX information and the address IPv4 are utilized Information generates the 2nd IPv6 address information;
IPv6 data packet is sent to NAT64 node associated with the 2nd IPv6 address information, so that NAT64 node will IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is transmitted to specified IPv4 server.
In one embodiment, when receiving the first IPv6 address information of dns server transmission, further includes:
Judge whether prefix discovery client PDC function has turned on;
If PDC function has turned on, the step of extracting IPv4 address information from the first IPv6 address information is executed.
In one embodiment, if PDC function is not opened, IPv6 data packet is sent to and the first IPv6 address information Associated fixed NAT64 node is translated as IPv4 data packet to fix NAT64 node for IPv6 data packet, and by IPv4 Data packet is transmitted to specified IPv4 server.
In one embodiment, when receiving the NAT64 NODE PREFIX information of PDS transmission, NAT64 NODE PREFIX is utilized Information and IPv4 address information generate the step of the 2nd IPv6 address information and include:
When receiving the NAT64 NODE PREFIX information of PDS transmission, the storage of NAT64 NODE PREFIX information is configured to PDC In file;
The 2nd IPv6 address information is generated using NAT64 NODE PREFIX information and IPv4 address information.
In one embodiment, it after the step of extracting IPv4 address information in the first IPv6 address information, also wraps It includes:
Judge the NAT64 NODE PREFIX information for whether belonging to network segment including IPv4 address information in PDC configuration file;
If not including the NAT64 NODE PREFIX information of IPv4 address information ownership network segment in PDC configuration file, execute The step of prefix lookups request is sent to PDS;
If the NAT64 NODE PREFIX information including IPv4 address information ownership network segment in PDC configuration file, from PDC NAT64 NODE PREFIX information is read in configuration file, is then executed raw using NAT64 NODE PREFIX information and IPv4 address information The step of at the 2nd IPv6 address information.
According to another aspect of the present invention, provide it is a kind of for sending the user terminal of data, including first interface unit, Extraction unit, second interface unit, prefix discovery client PDC unit and information generating unit, in which:
First interface unit, for receiving the first IPv6 address information of dns server transmission, wherein the first address IPv6 Information includes the IPv4 address information of scheduled NAT64 Fixed CP information and specified IPv4 server;
Extraction unit, when for receiving the first IPv6 address information of dns server transmission when first interface unit, from IPv4 address information is extracted in first IPv6 address information;
Second interface unit, for IPv4 address information to be sent to PDC unit;
PDC unit, for after receiving IPv4 address information, prefix lookups request to be sent to prefix discovery server PDS, wherein prefix lookups request includes IPv4 address information, to inquire the NAT64 node of IPv4 address information ownership network segment Prefix information;When receiving the NAT64 NODE PREFIX information of PDS transmission, NAT64 NODE PREFIX information is sent to second and is connect Mouth unit;
Information generating unit, for being saved using NAT64 when second interface unit receives NAT64 NODE PREFIX information Point prefix information and IPv4 address information generate the 2nd IPv6 address information;Instruction first interface unit sends IPv6 data packet The associated NAT64 node of the 2nd IPv6 address information is given, so that IPv6 data packet is translated as IPv4 data by NAT64 node Packet, and IPv4 data packet is transmitted to specified IPv4 server.
In one embodiment, user terminal further includes the first recognition unit, in which:
First recognition unit, for receiving the first IPv6 address information of dns server transmission when first interface unit When, judge whether PDC unit has turned on;
Extraction unit is also used to the judging result according to the first recognition unit, if PDC unit has turned on, executes from first The operation of IPv4 address information is extracted in IPv6 address information.
In one embodiment, first interface unit is also used to the judging result according to the first recognition unit, if PDC unit It does not open, then IPv6 data packet is sent to fixed NAT64 node associated with the first IPv6 address information, to fix IPv6 data packet is translated as IPv4 data packet by NAT64 node, and IPv4 data packet is transmitted to specified IPv4 server.
In one embodiment, user terminal further includes storage unit, in which:
Specifically when receiving the NAT64 NODE PREFIX information of PDS transmission, NAT64 NODE PREFIX information is deposited for PDC unit It stores up in PDC configuration file, then executes the operation that NAT64 NODE PREFIX information is sent to second interface unit;
Storage unit, for storing PDC configuration file.
In one embodiment, user terminal further includes the second recognition unit and reading unit, in which:
Second recognition unit, in extraction unit after extracting IPv4 address information in the first IPv6 address information, Judge the NAT64 NODE PREFIX information for whether belonging to network segment including IPv4 address information in PDC configuration file;If matching in PDC Set do not include in file IPv4 address information ownership network segment NAT64 NODE PREFIX information, then indicate second interface unit execute IPv4 address information is sent to the operation of PDS;
Reading unit is also used to the judging result according to the second recognition unit, if in PDC configuration file including IPv4 Location information belongs to the NAT64 NODE PREFIX information of network segment, then NAT64 NODE PREFIX information is read from PDC configuration file, then It indicates that information generating unit is executed and generates the 2nd IPv6 address information using NAT64 NODE PREFIX information and IPv4 address information Operation.
In one embodiment, first interface unit, extraction unit, second interface unit, information generating unit, first are known Other unit, the second recognition unit and reading unit setting are in terminal side translation CLAT module;
PDC unit and storage unit setting are in prefix discovery client PDC module.
According to another aspect of the present invention, a kind of system for sending data, including the discovery of user terminal, prefix are provided Server PDS and NAT64 node, in which:
User terminal, the user terminal being related to for any of the above-described embodiment;
PDS, for including in extraction prefix lookups request in the prefix lookups request for receiving user terminal transmission IPv4 address information, the NAT64 NODE PREFIX information of inquiry IPv4 address information ownership network segment, by NAT64 NODE PREFIX information It is sent to user terminal;
NAT64 node associated with the 2nd IPv6 address information, in the IPv6 number for receiving user terminal transmission When according to packet, IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is sent to specified IPv4 server.
In one embodiment, prefix lookups request further includes identification information;
PDS specifically receive user terminal transmission prefix lookups request when, extract prefix lookups request in include Whether legal identification information judges identification information, if identification information is legal, executes inquiry IPv4 address information ownership network segment The operation of NAT64 NODE PREFIX information.
The present invention, will by extracting IPv4 address information from the first IPv6 address information that dns server is sent IPv4 address information is sent to PDS to inquire the NAT64 NODE PREFIX information of IPv4 address information ownership network segment, when receiving When the NAT64 NODE PREFIX information that PDS is sent, the 2nd IPv6 is generated using NAT64 NODE PREFIX information and IPv4 address information IPv6 data packet is sent to NAT64 node associated with the 2nd IPv6 address information, so as to NAT64 node by address information IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is transmitted to specified IPv4 server.By according to difference IP address network segment configure corresponding prefix information, so that expansible XLAT function, realizes the use under multiple gateway scene.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is the schematic diagram of the method one embodiment of the present invention for sending data.
Fig. 2 is the schematic diagram of method another embodiment of the present invention for sending data.
Fig. 3 is the schematic diagram of method another embodiment of the present invention for sending data.
Fig. 4 is the schematic diagram of the user terminal one embodiment of the present invention for sending data.
Fig. 5 is the schematic diagram of user terminal another embodiment of the present invention for sending data.
Fig. 6 is the schematic diagram of user terminal another embodiment of the present invention for sending data.
Fig. 7 is the schematic diagram of user terminal another embodiment of the present invention for sending data.
Fig. 8 is the schematic diagram of the systems approach one embodiment of the present invention for sending data.
Fig. 9 is the schematic diagram of data transmission flow one embodiment of the present invention.
Figure 10 is the schematic diagram of another embodiment of data transmission flow of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Below Description only actually at least one exemplary embodiment be it is illustrative, never as to the present invention and its application or make Any restrictions.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Unless specifically stated otherwise, positioned opposite, the digital table of the component and step that otherwise illustrate in these embodiments It is not limited the scope of the invention up to formula and numerical value.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality Proportionate relationship draw.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as authorizing part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
Fig. 1 is the schematic diagram of the method one embodiment of the present invention for sending data.Preferably, the method for the present embodiment Step can be executed by user terminal.
Step 101, when receive DNS (Domain Name Server, name server) server transmission first When IPv6 address information, IPv4 address information is extracted from the first IPv6 address information.
Wherein the first IPv6 address information includes the IPv4 of scheduled NAT64 Fixed CP information and specified IPv4 server Address information.
Preferably, user terminal sends destination address inquiry request to dns server by the channel IPv6, refers to for inquiring Determine the first IPv6 address information of IPv4 server.In the dns server, DNS64 node is specified to DNS querying node first The IPv6 address information (i.e. AAAA record) of IPv4 server, returns the result as sky;Then specified IPv4 server is carried out The inquiry of IPv4 address information (i.e. A record).It is after obtaining A record, scheduled Fixed CP information and A record synthesis is specified The AAAA of IPv4 server is recorded.
Step 102, prefix lookups request is sent to prefix discovery server (Prefix Discovery Server, letter Claim: PDS), wherein prefix lookups request includes IPv4 address information, to inquire the NAT64 of IPv4 address information ownership network segment NODE PREFIX information.
Step 103, when receive PDS transmission NAT64 NODE PREFIX information when, using NAT64 NODE PREFIX information with IPv4 address information generates the 2nd IPv6 address information.That is, regenerating AAAA record at this time.
Step 104, IPv6 data packet is sent to NAT64 node associated with the 2nd IPv6 address information, so as to IPv6 data packet is translated as IPv4 data packet by NAT64 node, and IPv4 data packet is transmitted to specified IPv4 server.
Based on the method for sending data that the above embodiment of the present invention provides, by according to different IP address network segments Corresponding prefix information is configured, so that expansible XLAT function, realizes the use under multiple gateway scene.
Fig. 2 is the schematic diagram of method another embodiment of the present invention for sending data.Preferably, the method for the present embodiment Step can be executed by user terminal.
Step 201, the first IPv6 address information that dns server is sent is received.Wherein the first IPv6 address information includes The IPv4 address information of scheduled NAT64 Fixed CP information and specified IPv4 server.
Step 202, when receiving the first IPv6 address information of dns server transmission, judge that prefix finds client Whether (Prefix Discovery Client, referred to as: PDC) function has turned on.If PDC function has turned on, then follow the steps 203;If PDC function is not opened, 207 are thened follow the steps.
Step 203, IPv4 address information is extracted from the first IPv6 address information.
Step 204, prefix lookups request is sent to prefix discovery server PDS, wherein prefix lookups request includes IPv4 address information, to inquire the NAT64 NODE PREFIX information of IPv4 address information ownership network segment.
Step 205, when receive PDS transmission NAT64 NODE PREFIX information when, using NAT64 NODE PREFIX information with IPv4 address information generates the 2nd IPv6 address information.That is, regenerating AAAA record at this time.
Step 206, IPv6 data packet is sent to NAT64 node associated with the 2nd IPv6 address information, so as to IPv6 data packet is translated as IPv4 data packet by NAT64 node, and IPv4 data packet is transmitted to specified IPv4 server.It Afterwards, other steps of the present embodiment are no longer executed.
Step 207, IPv6 data packet is sent to fixed NAT64 node associated with the first IPv6 address information, with Just it fixes NAT64 node and IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is transmitted to specified IPv4 and is serviced Device.
That is, fixed NAT64 associated with the first IPv6 address information can be passed through in the case where PDC function is not opened Node is translated and is forwarded accordingly.To which the compatibility of system can be improved.
It preferably, in one embodiment, can be by NAT64 when receiving the NAT64 NODE PREFIX information of PDS transmission NODE PREFIX information is stored into PDC configuration file, then generates the using NAT64 NODE PREFIX information and IPv4 address information Two IPv6 address informations.
Since NAT64 NODE PREFIX information to be stored in PDC configuration file, so as in subsequent inquiry, if energy Corresponding NAT64 NODE PREFIX information is inquired, then no longer needs to interact with PDS, so as to improve efficiency, and net can be saved Network resource.Specific embodiment such as Fig. 3.
Fig. 3 is the schematic diagram of method another embodiment of the present invention for sending data.Preferably, the method for the present embodiment Step can be executed by user terminal.
Step 301, the first IPv6 address information that dns server is sent is received.Wherein the first IPv6 address information includes The IPv4 address information of scheduled NAT64 Fixed CP information and specified IPv4 server.
Step 302, when receiving the first IPv6 address information of dns server transmission, judge that prefix finds client Whether PDC function has turned on.If PDC function has turned on, 303 are thened follow the steps;If PDC function is not opened, then follow the steps 310。
Step 303, IPv4 address information is extracted from the first IPv6 address information.
Step 304, judge in PDC configuration file whether include IPv4 address information ownership network segment NAT64 node before Sew information.If not including the NAT64 NODE PREFIX information of IPv4 address information ownership network segment in PDC configuration file, execute Step 305;It is no to then follow the steps 309.
Step 305, prefix lookups request is sent to prefix discovery server PDS, wherein prefix lookups request includes IPv4 address information, to inquire the NAT64 NODE PREFIX information of IPv4 address information ownership network segment.
Step 306, when receiving the NAT64 NODE PREFIX information of PDS transmission, NAT64 NODE PREFIX information is stored Into PDC configuration file.
Step 307, the 2nd IPv6 address information is generated using NAT64 NODE PREFIX information and IPv4 address information.That is, this When regenerate AAAA record.
Step 308, IPv6 data packet is sent to NAT64 node associated with the 2nd IPv6 address information, so as to IPv6 data packet is translated as IPv4 data packet by NAT64 node, and IPv4 data packet is transmitted to specified IPv4 server.It Afterwards, other steps of the present embodiment are no longer executed.
Step 309, NAT64 NODE PREFIX information is read from PDC configuration file, then executes step 307.
Step 310, IPv6 data packet is sent to fixed NAT64 node associated with the first IPv6 address information, with Just it fixes NAT64 node and IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is transmitted to specified IPv4 and is serviced Device.
Fig. 4 is the schematic diagram of the user terminal one embodiment of the present invention for sending data.As shown in figure 4, user is whole End includes first interface unit 401, extraction unit 402, second interface unit 403, prefix discovery 404 and of client PDC unit Information generating unit 405.Wherein:
First interface unit 401, for receiving the first IPv6 address information of dns server transmission, wherein the first IPv6 Address information includes the IPv4 address information of scheduled NAT64 Fixed CP information and specified IPv4 server.
Preferably, user terminal utilizes first interface unit 401, to dns server transmission target by the channel IPv6 Location inquiry request, for inquiring the first IPv6 address information of specified IPv4 server.In the dns server, DNS64 node is first The IPv6 address information (i.e. AAAA record) that IPv4 server is first specified to DNS querying node, returns the result as sky;Then it carries out The inquiry of the IPv4 address information (i.e. A record) of specified IPv4 server.After obtaining A record, scheduled Fixed CP is believed Breath and A record synthesize the AAAA record of specified IPv4 server.
Extraction unit 402, for receiving the first address the IPv6 letter of dns server transmission when first interface unit 401 When breath, IPv4 address information is extracted from the first IPv6 address information.
Second interface unit 403, for IPv4 address information to be sent to PDC unit 404.
PDC unit 404, for after receiving IPv4 address information, prefix lookups request to be sent to prefix discovery clothes Be engaged in device PDS, and wherein prefix lookups request includes IPv4 address information, to inquire the NAT64 of IPv4 address information ownership network segment NODE PREFIX information;When receiving the NAT64 NODE PREFIX information of PDS transmission, NAT64 NODE PREFIX information is sent to the Two interface units 403.
Information generating unit 405, for utilizing when second interface unit 403 receives NAT64 NODE PREFIX information NAT64 NODE PREFIX information and IPv4 address information generate the 2nd IPv6 address information;Indicate first interface unit 401 by IPv6 Data packet is sent to NAT64 node associated with the 2nd IPv6 address information, so that NAT64 node translates IPv6 data packet For IPv4 data packet, and IPv4 data packet is transmitted to specified IPv4 server.
Based on the user terminal for being used to send data that the above embodiment of the present invention provides, by according to different IP address Network segment configures corresponding prefix information, so that expansible XLAT function, realizes the use under multiple gateway scene.
Fig. 5 is the schematic diagram of user terminal another embodiment of the present invention for sending data.With embodiment illustrated in fig. 4 phase Than in the embodiment shown in fig. 5, user terminal further includes the first recognition unit 501.Wherein:
First recognition unit 501, for receiving the first IPv6 of dns server transmission when first interface unit 401 When the information of location, judge whether PDC unit has turned on.
Extraction unit 402 is also used to be executed according to the judging result of the first recognition unit 501 if PDC unit has turned on The operation of IPv4 address information is extracted from the first IPv6 address information.
First interface unit 401 is also used to the judging result according to the first recognition unit 501, if PDC unit is not opened, IPv6 data packet is sent to fixed NAT64 node associated with the first IPv6 address information, it will to fix NAT64 node IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is transmitted to specified IPv4 server.
To, if PDC unit is not opened, by fixed NAT64 node associated with the first IPv6 address information into The corresponding translation of row and forwarding.To which the compatibility of system can be improved.
Fig. 6 is the schematic diagram of user terminal another embodiment of the present invention for sending data.With embodiment illustrated in fig. 5 phase Than user terminal further includes storage unit 601.Wherein:
Specifically when receiving the NAT64 NODE PREFIX information of PDS transmission, NAT64 NODE PREFIX is believed for PDC unit 404 Then breath storage executes the operation that NAT64 NODE PREFIX information is sent to second interface unit 403 into PDC configuration file.
Storage unit 601, for storing PDC configuration file.
By by the storage of NAT64 NODE PREFIX information into PDC configuration file, so as in subsequent inquiry, if energy Corresponding NAT64 NODE PREFIX information is inquired, then no longer needs to interact with PDS, so as to improve efficiency, and net can be saved Network resource.
In one embodiment, as shown in fig. 6, user terminal further includes the second recognition unit 602 and reading unit 603. Wherein:
Second recognition unit 602 is believed for extracting the address IPv4 from the first IPv6 address information in extraction unit 402 After breath, the NAT64 NODE PREFIX information for whether belonging to network segment including IPv4 address information in PDC configuration file is judged;If Do not include the NAT64 NODE PREFIX information of IPv4 address information ownership network segment in PDC configuration file, then indicates second interface unit 403 execute the operation that IPv4 address information is sent to PDS.
Reading unit 603 is also used to the judging result according to the second recognition unit 602, if including in PDC configuration file IPv4 address information belongs to the NAT64 NODE PREFIX information of network segment, then NAT64 NODE PREFIX letter is read from PDC configuration file Then breath indicates that information generating unit 405 is executed and generates the 2nd IPv6 using NAT64 NODE PREFIX information and IPv4 address information The operation of address information.
Preferably, PDC unit 404 and the setting of storage unit 601 can be found in client PDC module in prefix, and incite somebody to action Other units are arranged in CLAT module.For example, can be by first interface unit 401, extraction unit 402, second interface unit 403, information generating unit 405, the first recognition unit 501, the second recognition unit 602 and reading unit 603 are arranged in terminal side It translates in CLAT module, CLAT module and PDC module are by interactive interfacing, as shown in Figure 7.To, by the way that PDC module is arranged, And CLAT module is adjusted to interact with PDC module, the influence to existing net equipment and terminal can be reduced as small as possible, thus The compatibility of raising system, it is easy to be disposed in existing net.
Fig. 8 is the schematic diagram of the systems approach one embodiment of the present invention for sending data.As shown in figure 8, the system packet Include user terminal 801, prefix discovery server PDS802 and NAT64 node 803.Wherein:
User terminal 801 is the user terminal that any embodiment is related in Fig. 4-Fig. 7.
PDS802, for extracting and being wrapped in prefix lookups request in the prefix lookups request for receiving user terminal transmission The IPv4 address information included, the NAT64 NODE PREFIX information of inquiry IPv4 address information ownership network segment, by NAT64 NODE PREFIX Information is sent to user terminal.So that user terminal generates second using NAT64 NODE PREFIX information and IPv4 address information IPv6 address information.
NAT64 node 803 associated with the 2nd IPv6 address information, in the IPv6 for receiving user terminal transmission When data packet, IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is sent to specified IPv4 server.
Based on the system for sending data that the above embodiment of the present invention provides, by according to different IP address network segments Corresponding prefix information is configured, so that expansible XLAT function, realizes the use under multiple gateway scene.
In one embodiment, prefix lookups request further includes identification information.
PDS802 specifically receive user terminal transmission prefix lookups request when, extract prefix lookups request in include Identification information, whether legal judge identification information, if identification information is legal, execute inquiry IPv4 address information ownership network segment NAT64 NODE PREFIX information operation.Thus the safety of system can be improved.
In one embodiment, associated with the first IPv6 address information if the PDC function of user terminal is not opened NAT64 node, for when receiving the IPv6 data packet of user terminal transmission, IPv6 data packet to be translated as IPv4 data Packet, and IPv4 data packet is sent to the specified IPv4 server.
Below by specific example, the present invention will be described.
Fig. 9 is the schematic diagram of data transmission flow one embodiment of the present invention.In this embodiment, the PDC of user terminal Function is not opened.
Step 901, the CLAT module in user terminal sends destination address inquiry to dns server by the channel IPv6 and asks It asks, to inquire the address information of specified IPv4 server.
Step 902, dns server inquires the A record of specified IPv4 server, with predetermined NAT64 Fixed CP information The AAAA that (NAT64 (F) prefix) and A record synthesize specified IPv4 server is recorded.
Step 903, the AAAA record of synthesis is sent to CLAT module by dns server.
Step 904, CLAT module judges whether PDC function opens.
Step 905, if PDC function is not opened, CLAT module is corresponding using the AAAA record access that dns server returns NAT64 node, i.e. NAT64 (F).
Step 906, IPv6 data packet is translated as IPv4 data packet by NAT64 (F).
Step 907, the IPv4 data packet after translation is sent to specified IPv4 server by NAT64 (F).
Figure 10 is the schematic diagram of another embodiment of data transmission flow of the present invention.In this embodiment, the PDC of user terminal Function is opened.
Step 1001, the CLAT module in user terminal sends destination address inquiry to dns server by the channel IPv6 Request, to inquire the address information of specified IPv4 server.
Step 1002, dns server inquires the A record of specified IPv4 server, with predetermined NAT64 Fixed CP information The AAAA that (for example, NAT64 (F) prefix) and A record synthesize specified IPv4 server is recorded.
Step 1003, the AAAA record of synthesis is sent to CLAT module by dns server.
Step 1004, CLAT module judges whether PDC function opens.
Step 1005, if PDC function is opened, CLAT module extracts A record from AAAA record.
Step 1006, whether CLAT module polls include before recording corresponding NAT64 node with A in PDC configuration file Sew information.If including corresponding NAT64 NODE PREFIX information in PDC configuration file, 1014 are thened follow the steps;Otherwise step is executed Rapid 1007.
Step 1007, the A received record is sent to PDC module by CLAT module.
Step 1008, PDC module sends prefix lookups request to PDS, includes wherein the A received in prefix lookups request Record and corresponding identification information.
Step 1009, it after PDS receives prefix lookups request, is verified according to identification information.
Step 1010, when the authentication succeeds, PDS inquiry and A record corresponding NAT64 NODE PREFIX information (for example, NAT64 (B) prefix).
Step 1011, the NAT64 NODE PREFIX information inquired is sent to PDC module by PDS.
Step 1012, the NAT64 NODE PREFIX information received is written in PDC configuration file by PDC module.
Step 1013, the NAT64 NODE PREFIX information received is sent to CLAT module by PDC module.
Step 1014, CLAT generates new AAAA using NAT64 NODE PREFIX information and A record and records.
Step 1015, CLAT module utilizes the corresponding NAT64 node of new AAAA record access generated, such as NAT64 (B)。
Step 1016, IPv6 data packet is translated as IPv4 data packet by NAT64 (B).
Step 1017, the IPv4 data packet after translation is sent to specified IPv4 server by NAT64 (B).
By applying the present invention, it is available following the utility model has the advantages that
1) CLAT after improving need not be realized with restarting is postponed to different IP addresses by modification code or modification Network segment selection and access.
2) realize CLAT to different IP addresses network segment select and access (selections and access of i.e. multiple PLAT gateways) can It can property, timeliness and validity.
3) technical guarantee is provided for different segment policy control and flow optimization.
4) under pure IPv6 access environment, realize that XLAT accesses different segment based on prefix discovery.
5) by increasing prefix discovery and selecting module in network side and terminal side, different IP cannot be accessed by solving XLAT Address network segment problem (routing of i.e. multiple PLAT gateways and access problem).
6) to the influence very little of existing net equipment and terminal, it is easy to be affixed one's name in existing wet end.
To which operator can be promoted in the traffic management and control ability of IPv6 transition stage, guarantee strategies control and flow optimization. Accumulation operator IPv4 to IPv6 transition and and operation experience during depositing, accelerate migration of the flow to IPv6.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware Complete, relevant hardware can also be instructed to complete by program, program can store in a kind of computer-readable storage In medium, storage medium mentioned above can be read-only memory, disk or CD etc..
Description of the invention is given for the purpose of illustration and description, and is not exhaustively or will be of the invention It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those skilled in the art is enable to manage The solution present invention is to design various embodiments suitable for specific applications with various modifications.

Claims (13)

1. a kind of method for sending data characterized by comprising
When receiving the first IPv6 address information of dns server transmission, extracted from the first IPv6 address information IPv4 address information;Wherein the first IPv6 address information includes scheduled NAT64 Fixed CP information and specified IPv4 clothes The IPv4 address information of business device;
Prefix lookups request is sent to prefix discovery server PDS, wherein prefix lookups request includes that the address IPv4 is believed Breath, to inquire the NAT64 NODE PREFIX information of the IPv4 address information ownership network segment;
When receive PDS transmission the NAT64 NODE PREFIX information when, using the NAT64 NODE PREFIX information with it is described IPv4 address information generates the 2nd IPv6 address information;
IPv6 data packet is sent to NAT64 node associated with the 2nd IPv6 address information, so as to NAT64 section IPv6 data packet is translated as IPv4 data packet by point, and IPv4 data packet is transmitted to the specified IPv4 server.
2. the method according to claim 1, wherein
When receiving the first IPv6 address information of dns server transmission, further includes:
Judge whether prefix discovery client PDC function has turned on;
If PDC function has turned on, the step of extracting IPv4 address information from the first IPv6 address information is executed.
3. according to the method described in claim 2, it is characterized in that,
If PDC function is not opened, IPv6 data packet is sent to fixation associated with the first IPv6 address information NAT64 node so that IPv6 data packet is translated as IPv4 data packet by the fixed NAT64 node, and IPv4 data packet is turned Issue the specified IPv4 server.
4. according to the method described in claim 3, it is characterized in that,
When receive PDS transmission the NAT64 NODE PREFIX information when, using the NAT64 NODE PREFIX information with it is described IPv4 address information generate the 2nd IPv6 address information the step of include:
When receiving the NAT64 NODE PREFIX information of PDS transmission, by NAT64 NODE PREFIX information storage to PDC In configuration file;
The 2nd IPv6 address information is generated using the NAT64 NODE PREFIX information and the IPv4 address information.
5. according to the method described in claim 4, it is characterized in that,
After the step of extracting IPv4 address information in the first IPv6 address information, further includes:
Judge the NAT64 NODE PREFIX information for whether belonging to network segment including the IPv4 address information in PDC configuration file;
If not including the NAT64 NODE PREFIX information of the IPv4 address information ownership network segment in PDC configuration file, execute The step of prefix lookups request is sent to PDS;
If the NAT64 NODE PREFIX information including IPv4 address information ownership network segment in PDC configuration file, from PDC The NAT64 NODE PREFIX information is read in configuration file, then execute using the NAT64 NODE PREFIX information with it is described IPv4 address information generates the step of the 2nd IPv6 address information.
6. a kind of for sending the user terminal of data, which is characterized in that connect including first interface unit, extraction unit, second Mouth unit, prefix discovery client PDC unit and information generating unit, in which:
First interface unit, for receiving the first IPv6 address information of dns server transmission, wherein the address first IPv6 Information includes the IPv4 address information of scheduled NAT64 Fixed CP information and specified IPv4 server;
Extraction unit, when for receiving the first IPv6 address information of dns server transmission when first interface unit, from described IPv4 address information is extracted in first IPv6 address information;
Second interface unit, for the IPv4 address information to be sent to PDC unit;
PDC unit, for after receiving the IPv4 address information, prefix lookups request to be sent to prefix discovery server PDS, wherein prefix lookups request includes the IPv4 address information, to inquire the IPv4 address information ownership network segment NAT64 NODE PREFIX information;When receiving the NAT64 NODE PREFIX information of PDS transmission, before the NAT64 node Sew information and is sent to second interface unit;
Information generating unit, for when second interface unit receives the NAT64 NODE PREFIX information, using described NAT64 NODE PREFIX information and the IPv4 address information generate the 2nd IPv6 address information;Indicate that first interface unit will IPv6 data packet is sent to NAT64 node associated with the 2nd IPv6 address information, so that the NAT64 node will IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is transmitted to the specified IPv4 server.
7. user terminal according to claim 6, which is characterized in that further include the first recognition unit, in which:
First recognition unit is sentenced when for receiving the first IPv6 address information of dns server transmission when first interface unit Whether disconnected PDC unit has turned on;
Extraction unit is also used to the judging result according to the first recognition unit, if PDC unit has turned on, executes from described first The operation of IPv4 address information is extracted in IPv6 address information.
8. user terminal according to claim 7, which is characterized in that
First interface unit is also used to the judging result according to the first recognition unit, if PDC unit is not opened, by IPv6 data Packet is sent to fixed NAT64 node associated with the first IPv6 address information, so that the fixed NAT64 node will IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is transmitted to the specified IPv4 server.
9. user terminal according to claim 8, which is characterized in that further include storage unit, in which:
Specifically when receiving the NAT64 NODE PREFIX information of PDS transmission, the NAT64 NODE PREFIX is believed for PDC unit Then breath storage executes the behaviour that the NAT64 NODE PREFIX information is sent to second interface unit into PDC configuration file Make;
Storage unit, for storing the PDC configuration file.
10. user terminal according to claim 9, which is characterized in that it further include the second recognition unit and reading unit, In:
Second recognition unit, in extraction unit after extracting IPv4 address information in the first IPv6 address information, Judge the NAT64 NODE PREFIX information for whether belonging to network segment including the IPv4 address information in PDC configuration file;If Do not include the NAT64 NODE PREFIX information of the IPv4 address information ownership network segment in PDC configuration file, then indicates second interface Unit executes the operation that the IPv4 address information is sent to PDS;
Reading unit is also used to the judging result according to the second recognition unit, if in PDC configuration file including the IPv4 Location information belongs to the NAT64 NODE PREFIX information of network segment, then the NAT64 NODE PREFIX information is read from PDC configuration file, Then instruction information generating unit, which is executed, generates second using the NAT64 NODE PREFIX information and the IPv4 address information The operation of IPv6 address information.
11. user terminal according to claim 10, which is characterized in that
First interface unit, extraction unit, second interface unit, information generating unit, the first recognition unit, the second recognition unit With reading unit setting in terminal side translation CLAT module;
PDC unit and storage unit setting are in prefix discovery client PDC module.
12. a kind of system for sending data, which is characterized in that including user terminal, prefix discovery server PDS and NAT64 node, in which:
User terminal, the user terminal being related to for any one of claim 6-11;
PDS, for extracting the IPv4 for including in prefix lookups request in the prefix lookups request for receiving user terminal transmission Address information inquires the NAT64 NODE PREFIX information of the IPv4 address information ownership network segment, by the NAT64 NODE PREFIX Information is sent to user terminal;
NAT64 node associated with the 2nd IPv6 address information, in the IPv6 data packet for receiving user terminal transmission When, IPv6 data packet is translated as IPv4 data packet, and IPv4 data packet is sent to specified IPv4 server.
13. system according to claim 12, which is characterized in that
Prefix lookups request further includes identification information;
PDS specifically in the prefix lookups request for receiving user terminal transmission, extracts the mark for including in prefix lookups request Information judges whether the identification information is legal, if the identification information is legal, executes inquiry IPv4 address information home network The operation of the NAT64 NODE PREFIX information of section.
CN201410305194.6A 2014-06-30 2014-06-30 For sending the methods, devices and systems of data Active CN105208140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410305194.6A CN105208140B (en) 2014-06-30 2014-06-30 For sending the methods, devices and systems of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410305194.6A CN105208140B (en) 2014-06-30 2014-06-30 For sending the methods, devices and systems of data

Publications (2)

Publication Number Publication Date
CN105208140A CN105208140A (en) 2015-12-30
CN105208140B true CN105208140B (en) 2018-12-11

Family

ID=54955562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410305194.6A Active CN105208140B (en) 2014-06-30 2014-06-30 For sending the methods, devices and systems of data

Country Status (1)

Country Link
CN (1) CN105208140B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11902159B2 (en) 2020-07-17 2024-02-13 Juniper Networks, Inc. Dynamic internet protocol translation for port-control-protocol communication

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3459228A1 (en) * 2016-05-18 2019-03-27 Telefonaktiebolaget LM Ericsson (PUBL) Local break-out in mobile ip networks
CN111741039B (en) * 2019-03-25 2022-06-03 阿里巴巴集团控股有限公司 Session request processing method and device and electronic equipment
CN114945013B (en) * 2022-04-28 2023-10-27 中国电信股份有限公司 Data forwarding method, device, electronic equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022426A (en) * 2007-03-14 2007-08-22 杭州华为三康技术有限公司 Method for realizing static network address translation-protocol conversion and gateway equipment
CN101827133A (en) * 2009-03-06 2010-09-08 中国移动通信集团公司 Address analyzing device, IPv4 network access method and system
CN101931658A (en) * 2009-06-26 2010-12-29 中国移动通信集团公司 Method and device for IPv6 host computer with IPv4 application to perform communication
EP2413544A1 (en) * 2009-03-26 2012-02-01 Huawei Technologies Co., Ltd. Method for realizing ipv6 host visting ipv4 host, method for obtaining ipv6 address prefix and translation device
CN102739809A (en) * 2011-04-07 2012-10-17 中国电信股份有限公司 DNS64 database, server, system and IPv4/IPv6 communication method
CN102938735A (en) * 2012-11-15 2013-02-20 北京邮电大学 Method utilizing router advertisement carrying options to issue network address translator (NAT) 64 address prefix

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9843554B2 (en) * 2012-02-15 2017-12-12 F5 Networks, Inc. Methods for dynamic DNS implementation and systems thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022426A (en) * 2007-03-14 2007-08-22 杭州华为三康技术有限公司 Method for realizing static network address translation-protocol conversion and gateway equipment
CN101827133A (en) * 2009-03-06 2010-09-08 中国移动通信集团公司 Address analyzing device, IPv4 network access method and system
EP2413544A1 (en) * 2009-03-26 2012-02-01 Huawei Technologies Co., Ltd. Method for realizing ipv6 host visting ipv4 host, method for obtaining ipv6 address prefix and translation device
CN101931658A (en) * 2009-06-26 2010-12-29 中国移动通信集团公司 Method and device for IPv6 host computer with IPv4 application to perform communication
CN102739809A (en) * 2011-04-07 2012-10-17 中国电信股份有限公司 DNS64 database, server, system and IPv4/IPv6 communication method
CN102938735A (en) * 2012-11-15 2013-02-20 北京邮电大学 Method utilizing router advertisement carrying options to issue network address translator (NAT) 64 address prefix

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"NAT-PT技术研究及实现";张平等;《无线电工程》;20130531;全文 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11902159B2 (en) 2020-07-17 2024-02-13 Juniper Networks, Inc. Dynamic internet protocol translation for port-control-protocol communication

Also Published As

Publication number Publication date
CN105208140A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN104506510B (en) Method and device for equipment authentication and authentication service system
US11171914B2 (en) Systems and methods for automatic inventory and DNS record generation
CN106953795B (en) Method and device for configuring multiple network cards
JP4354294B2 (en) Gateway device connected to a plurality of networks having different network segments, and program and method for transferring IP packet
CN103139305A (en) Device, method and setting thereof by using mobile terminal to control broadband user side apparatus
CN105208140B (en) For sending the methods, devices and systems of data
CN106797410A (en) Domain name analytic method and device
US20050182829A1 (en) System for selecting a connectivity mechanism
CN106878483A (en) A kind of IP address distribution method and device
US20190394305A1 (en) Apparatus for managing sdn-based in-vehicle network and control method thereof
CN106685949A (en) Container access method, container access device and container access system
CN103856436A (en) Method for user to select network layer protocol, household gateway and Internet network
CN102739809A (en) DNS64 database, server, system and IPv4/IPv6 communication method
CN103780711A (en) Address assignment method and address assignment system for intelligent access type decision, and AAA system
CN103997479B (en) A kind of asymmetric services IP Proxy Methods and equipment
CN104333610A (en) IPv6 address allocation method and device
US8769623B2 (en) Grouping multiple network addresses of a subscriber into a single communication session
CN106911489B (en) A kind of automatic adaptation method of access device, managing device and system
CN109788528B (en) Access point and method and system for opening internet access service thereof
CN101227506A (en) Equipment, system and method for identifying subscriber terminal
CN108566446A (en) LAN domain name analytic method, device and system
CN108804711A (en) A kind of method, apparatus and computer readable storage medium of data processing
JP6119407B2 (en) Information processing apparatus, information processing method, and information processing program
CN103220374B (en) A kind of method of client access network, device
CN102833287B (en) The method of visit data resource in distributed file system and distributed file system

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