CN104270475B - The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64 - Google Patents

The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64 Download PDF

Info

Publication number
CN104270475B
CN104270475B CN201410444590.7A CN201410444590A CN104270475B CN 104270475 B CN104270475 B CN 104270475B CN 201410444590 A CN201410444590 A CN 201410444590A CN 104270475 B CN104270475 B CN 104270475B
Authority
CN
China
Prior art keywords
ipv4
ipv6
nat64
address
submodule
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
CN201410444590.7A
Other languages
Chinese (zh)
Other versions
CN104270475A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Wuhan FiberHome Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan FiberHome Networks Co Ltd filed Critical Wuhan FiberHome Networks Co Ltd
Priority to CN201410444590.7A priority Critical patent/CN104270475B/en
Publication of CN104270475A publication Critical patent/CN104270475A/en
Application granted granted Critical
Publication of CN104270475B publication Critical patent/CN104270475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/251Translation of Internet protocol [IP] addresses between different IP versions

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 system and method that IPv4 networks and IPv6 network interworkings are realized based on NAT64, it is related to IPv6 transitional technologies field, this method comprises the following steps:Ensure NAT64 modules connection IPv4 networks and IPv6 networks, realize that the global of NAT64 functions is enabled and interface enable;NAT64 modules receive the data message that network side is sent, according to the protocol version of data message, update dynamic table and set up the address mapping information for safeguarding submodule, obtain the address five-tuple after translation;NAT64 modules carry out protocol translation to IPv4 headers and IPv6 headers;IPv4/IPv6 messages forward submodule to forward the new data message for completing address translation and protocol translation according to destination address.The present invention can lead on product in existing number intactly realizes NAT64 correlation functions, effectively reduces the loss of equipment performance and the use of system resource, improves operating efficiency.

Description

The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64
Technical field
The present invention relates to IPv6 transitional technologies field, it is specifically related to one kind and IPv4 networks and IPv6 is realized based on NAT64 The system and method for network interworking.
Background technology
IPv6 (Internet Protocol Version 6, IPv 6) is to solve IPv4 (Internet Protocol Version 4, internet protocol version four) address exhaustion problem basic solution, but be due to existing IPv4 user's storage is very big, and most existing networks do not support IPv6 to apply, hence in so that existing network is from IPv4 to IPv6 evolution Difficulty it is larger.
In order to ensure the smooth transition of user and business, it is contemplated that whole evolution cycle will be a long-term process, that is, Say that IPv6 will be with IPv4 long-term co-existence.Therefore, IPv6 transition schemes are particularly important.Our usually said IPv6 transition Technology is generally divided into three major types:Double stacks, tunnel, NAT-PT (Network Address Translation-Protocol Translation, the network address translation of subsidiary protocol conversion) technology.But every kind of mechanism be not it is blanket, all only Suitable for a certain or several specific network conditions, and usually need to be applied in combination with other technologies.
IETF (Internet Engineering Task Force, Internet engineering task force) issue RFC in 2011 (Request For Comments, request for comments) 6146 and RFC6147, redesigns a new solution NAT64 (Network Address and Protocol Translation from IPv6Clients to IPv4Servers, by Network address translation of the IPv6 clients to the subsidiary protocol conversion of IPv4 servers) and DNS64 (DNS Extensions for Network Address Translation from IPv6Clients to IPv4Servers, are applicable NAT64 extension field Name system) technology.
Currently, IPv6 and IPv4 technology co-existences are in internet, and the most contents in internet only can to IPv4 With, but IPv6 user needs also exist for access IPv4 contents, and this is realized by NAT64 and correlation technique.
NAT64 is a kind of stateful network address and protocol conversion technology, general only support IPv6 network side user hairs Play connected reference IPv4 sides Internet resources.But NAT64 also supports manual configuration static mappings relation, IPv4 networks actively hair is realized Play connected reference IPv6 networks.NAT64 technologies realize the mutual phase transformation between IPv6 bags and IPv4 bags.NAT64 can realize TCP (Transmission Control Protocol, transmission control protocol), UDP (User Data Protocol, user data Datagram protocol), under ICMP (Internet Control Message Protocol, Internet Control Message Protocol) agreement IPv6 and the IPv4 network address and protocol conversion.NAT64 typically cooperates with DNS64, it is not necessary in IPv6 clients or IPv4 server ends make any modification.
The shortcoming of tunneling technique is to need extra tunnel configuration, inefficiency;NAT-PT resource consumption is larger, seriously Influence the runnability of equipment.
The content of the invention
The invention aims to overcome the shortcomings of above-mentioned background technology there is provided one kind based on NAT64 to realize IPv4 nets Network and the system and method for IPv6 network interworkings, can lead on product in existing number and intactly realize NAT64 correlation functions, have simultaneously Effect reduces the loss of equipment performance and the use of system resource, improves operating efficiency, to equipment runnability or network environment not Have undesirable effect.
The present invention provides a kind of system that IPv4 networks and IPv6 network interworkings are realized based on NAT64, including NAT64 moulds Block, network management interface, bottom data transceiver interface and configuration data sync cap, the NAT64 modules respectively with network management interface, bottom Layer data transceiver interface is connected with configuration data sync cap, and the NAT64 modules include NAT64 configurations submodule, dynamic table Submodule and IPv4/IPv6 messages forwarding submodule are safeguarded in foundation, and NAT64 configuration submodules are set up with dynamic table safeguards submodule It is connected, dynamic table, which is set up, safeguards that submodule is connected with IPv4/IPv6 messages forwarding submodule;NAT64 configurations submodule, dynamic table Foundation safeguards that submodule is connected with network management interface, and dynamic table is set up and safeguards that submodule is also connected with configuration data sync cap, IPv4/IPv6 messages forwarding submodule, configuration data sync cap are connected with bottom data transceiver interface;
The NAT64 configurations submodule is used for:Carry out global configuration and the interface configuration of NAT64 functions;
The dynamic table is set up and safeguards that submodule is used for:Dynamic address mapping table is set up and safeguards, when producing new session Mapping is created, mapping is safeguarded in a session, mapping is deleted after the session is completed;
The IPv4/IPv6 messages forwarding submodule is used for:NAT64 address translation and association is carried out to the message received View translation, then the message after NAT64 address translation and protocol translation is forwarded from correct interface.
On the basis of above-mentioned technical proposal, the NAT64 configurations submodule carries out the global configuration of NAT64 functions and connect Mouth configuration includes:NAT64 functions are enabled, IPv6 changes prefix, static address mapping table, IPv4 address pools and its enable, maximum Session number.
On the basis of above-mentioned technical proposal, the NAT64 modules possess an IPv6 address pool and an IPv4 address Pond, IPv6 address pools are used in IPv6 networks represent IPv4 addresses, and IPv4 address pools are used to represent IPv6 in IPv4 networks Address;Represent that the IPv6 addresses of IPv4 addresses are made up of three parts in IPv6 networks:IPv6 prefixes, the IPv4 being embedded into Location and variable-length suffix.
On the basis of above-mentioned technical proposal, the IPv6 address pools include one or more IPv6 prefixes.
On the basis of above-mentioned technical proposal, the IPv6 prefixes mainly include three characteristics:
(1) prefix index value:Data type is 16bit unsigned ints, is entered in address translation by prefix index value Row selection is used;
(2) prefix:IPv6 prefixes are stored with array form;
(3) prefix length:Variable prefix length.
On the basis of above-mentioned technical proposal, the prefix length is 32,40,48,56,64 or 96.
On the basis of above-mentioned technical proposal, the IPv4 address pools are by the continuous IP v4 addresses structure under same subnet section Into except the situation of static manual configuration, address of cache is all dynamic, and takes IPv6 transmission ground in actual applications The mapping of address is transmitted to IPv4 in location;The IPv4 address pools mainly include:(1) address pool index value;(2) starting ip v4 Location, termination IPv4 addresses and subnet mask;(3) single IPv4 addresses are common to the quantity of session simultaneously;(4) TCP, UDP meeting The port numbers of words and ICMP identifier.
On the basis of above-mentioned technical proposal, the IPv4/IPv6 messages forward submodule defined in dual stack stack The structure on the various heads needed for translation, mainly including following several:
struct ip6_hdr:Represent IPv6 heads;
struct ip6_frag:Represent IPv6 bursts head;
struct icmp6_hdr:Represent ICMPv6 heads;
struct ip:Represent IPv4 heads;
struct ippseudo:Represent the pseudo- heads of IPv4 for Transmission Control Protocol;
struct icmp2_hdr:Represent ICMPv4 heads.
The present invention is also provided a kind of realizes IPv4 networks and IPv6 network interworkings suitable for said system based on NAT64 Method, comprises the following steps:
A, ensure NAT64 modules connection IPv4 networks and IPv6 networks, realize that the global of NAT64 functions is enabled and interface makes Energy;
B, NAT64 module receive the data message that network side is sent, according to the protocol version of data message, update dynamic table The address mapping information for safeguarding submodule is set up, the address five-tuple after translation is obtained:IPv4/IPv6 messages forwarding submodule is sentenced Whether the data message that disconnecting is received is new session, if data message is the new session of IPv4 protocol versions and reflected without static address Presence is penetrated, IPv4/IPv6 messages forwarding submodule directly abandons the data message;If data message is new for IPv6 protocol versions Session, dynamic table, which is set up, safeguards that submodule creates a new address of cache;When data message is non-new session, IPv4/ IPv6 messages forward submodule according to already present address mapping table, and the source for receiving data message is transmitted into address and purpose is transmitted Form of the address conversion into corresponding another protocol version in mapping table;
C, NAT64 module carry out protocol translation to IPv4 headers and IPv6 headers:
When IPv4/IPv6 messages forwarding submodule receives one by the packet of IPv4 network destined IPv6 networks, IPv4 heads can be translated as IPv6 heads by IPv4/IPv6 messages forwarding submodule, and initial IP v4 heads are removed and replaced into One IPv6 head;If the transport layer protocol of message is the IPv4/IPv6 messages, forwarding submodule is supported, the school of transport layer Re-computation is tested and carries out, the data field of bag is without modification;
When IPv4/IPv6 messages forward submodule receive be a destination be IPv4 networks IPv6 packets when, IPv4/IPv6 messages forwarding submodule needs IPv6 heads being translated as IPv4 heads, and initial IP v6 heads will be removed and replace Change a new IPv4 head into;ICMPv6, TCP, UDP and datagram congestion control protocol DCCP heads all include verification With, if mapping address algorithm is not verification and neutral, the value of verification sum is calculated before translation, and to ICMP and transmission Layer head is updated;
For TCP and UDP messages, IP heads are only translated;To icmp packet, translation IP and ICMP heads;If address translation is calculated The non-verification of method and neutrality, then be the transport layer header of 0 UDP messages to the TCP containing pseudo- head, icmp packet and verification and not Portion carries out re-computation and renewal;If message is fragment message, the respective handling of fragment message is carried out;
D, IPv4/IPv6 message forward submodule to complete the new data message of address translation and protocol translation according to purpose Address is forwarded.
On the basis of above-mentioned technical proposal, step A comprises the following steps:NAT64 configuration submodules carry out NAT64 functions Global configuration and interface configuration:NAT64 functions enable, IPv6 conversion prefix, static address mapping table, IPv4 address pools and its Enable, max-session number.
Compared with prior art, advantages of the present invention is as follows:
The present invention combines the hardware platform resource situation and software platform characteristic that existing number leads to product, can be in the logical production of existing number NAT64 correlation functions are intactly realized on product, while effectively reducing the loss of equipment performance and the use of system resource, work are improved Make efficiency, equipment runnability or network environment are not had undesirable effect.
Brief description of the drawings
Fig. 1 is based on NAT64 to realize IPv4 networks and the structural frames of the system of IPv6 network interworkings in the embodiment of the present invention Figure.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment the present invention is described in further detail.
Shown in Figure 1, offer of the embodiment of the present invention is a kind of to realize IPv4 networks and IPv6 network interworkings based on NAT64 System, including NAT64 modules, network management interface, bottom data transceiver interface and configuration data sync cap, NAT64 modules difference It is connected with network management interface, bottom data transceiver interface and configuration data sync cap, NAT64 modules and network management interface, bottom number Cooperated according to transceiver interface and configuration data sync cap, complete NAT64 functions could be realized on datacom device.
NAT64 modules include NAT64 configurations submodule, dynamic table foundation and safeguard submodule and the forwarding of IPv4/IPv6 messages Submodule, NAT64 configures submodule and safeguards that submodule is connected with dynamic table foundation, and dynamic table is set up and safeguards submodule and IPv4/ IPv6 messages forwarding submodule is connected.NAT64 configurations submodule, dynamic table are set up and safeguard that submodule is connected with network management interface, Dynamic table is set up and safeguards that submodule is also connected with configuration data sync cap, IPv4/IPv6 messages forwarding submodule, configuration data Sync cap is connected with bottom data transceiver interface.
NAT64 configuration submodules are used for:Carry out global configuration and the interface configuration of NAT64 functions:NAT64 functions enable, IPv6 conversions prefix, static address mapping table, IPv4 address pools and its enable, max-session number etc., NAT64 functions are in the overall situation It is required for enabling under lower and interface.
Dynamic table is set up and safeguards that submodule is used for:Dynamic address mapping table is set up and safeguarded, is created when producing new session Mapping, safeguards mapping in a session, and mapping is deleted after the session is completed.
IPv4/IPv6 messages forwarding submodule is used for:The address translation and agreement that the message received carries out NAT64 are turned over Translate, then the message after NAT64 address translation and protocol translation is forwarded from correct interface.IPv4/IPv6 messages are forwarded Submodule is the key components for realizing IPv4 networks and IPv6 network services.
In order to create address of cache, NAT64 modules, which must possess an IPv6 address pool, (to be used to represent in IPv6 networks IPv4 addresses) and an IPv4 address pool (being used to represent IPv6 addresses in IPv4 networks).
Represent that the IPv6 addresses of IPv4 addresses are made up of three parts in IPv6 networks:IPv6 prefixes, it is embedded into IPv4 addresses and variable-length suffix (suffix is typically set to 0).
IPv6 address pools include one or more IPv6 prefixes.
IPv6 prefixes mainly include three characteristics:
(1) prefix index value:Data type is 16bit unsigned ints, and prefix index value may have multiple, be turned in address Selection is carried out when translating by prefix index value to use;
(2) prefix:IPv6 prefixes, prefix up to 96 are stored with array form;
(3) prefix length:Variable prefix length, prefix length can for 32,40,48,56,64 or 96.
IPv4 address pools are generally made up of the continuous IP v4 addresses under same subnet section.Because IPv4 address spaces are sharp Subtract, IPv4 address pool very littles, it is impossible to set up the one-to-one mapping with IPv6 addresses.Therefore, except the situation of static manual configuration, Address of cache is all dynamic, and takes IPv6 to transmit the mapping that address transmits address to IPv4 in actual applications, That is, IP address and port numbers will participate in translation.
IPv4 address pools mainly include:(1) address pool index value;(2) starting ip v4 addresses, termination IPv4 addresses and son Net mask;(3) single IPv4 addresses are common to the quantity of session simultaneously;(4) port numbers of TCP, UDP session and ICMP mark Symbol.
IPv4/IPv6 messages forwarding submodule translates the structure on required various heads defined in dual stack stack, Mainly include following several:
struct ip6_hdr:Represent IPv6 heads;
struct ip6_frag:Represent IPv6 bursts head;
struct icmp6_hdr:Represent ICMPv6 heads;
struct ip:Represent IPv4 heads;
struct ippseudo:Represent the pseudo- heads of IPv4 for Transmission Control Protocol;
struct icmp2_hdr:Represent ICMPv4 heads.
Offer of the embodiment of the present invention is a kind of to realize that IPv4 networks and IPv6 networks are mutual suitable for said system based on NAT64 Logical method, comprises the following steps:
A, ensure NAT64 modules connection IPv4 networks and IPv6 networks, realize that the global of NAT64 functions is enabled and interface makes Energy.NAT64 modules connect IPv4 or IPv6 networks, not only need to enable NAT64 functions in the overall situation, in addition it is also necessary in operation NAT64 The interface of function enables NAT64 functions.NAT64 configuration submodules carry out global configuration and the interface configuration of NAT64 functions: NAT64 functions are enabled, IPv6 conversions prefix, static address mapping table, IPv4 address pools and its enable, max-session number etc..
B, NAT64 module receive the data message that network side is sent, according to the protocol version of data message, update dynamic table The address mapping information for safeguarding submodule is set up, the address five-tuple after translation is obtained.
IPv4/IPv6 messages forwarding submodule judges whether the data message received is new session, if data message is The new session of IPv4 protocol versions and without static address map exist, IPv4/IPv6 messages forwarding submodule directly abandon the number According to message;If data message is the new session of IPv6 protocol versions, dynamic table, which is set up, safeguards that submodule creates a new address Mapping;When data message is non-new session, IPv4/IPv6 messages forward submodule according to already present address mapping table, will Receive source transmission address (source IP address and source port number) and purpose transmission address (purpose IP address and the destination of data message Slogan) it is converted into the form of corresponding another protocol version in mapping table.
C, NAT64 module carry out protocol translation to IPv4 headers and IPv6 headers.
At present, NAT64 modules support unicast UDP, TCP and icmp packet communication.
When IPv4/IPv6 messages forwarding submodule receives one by the packet of IPv4 network destined IPv6 networks, IPv4 heads can be translated as IPv6 heads by IPv4/IPv6 messages forwarding submodule.Initial IP v4 heads are removed and replaced into One IPv6 head.If the transport layer protocol of message is the IPv4/IPv6 messages, forwarding submodule is supported, then transport layer Verification and re-computation may be needed.The data field of bag is without modification.
When IPv4/IPv6 messages forward submodule receive be a destination be IPv4 networks IPv6 packets when, IPv4/IPv6 messages forwarding submodule needs IPv6 heads being translated as IPv4 heads.Initial IP v6 heads will be removed and replace Change a new IPv4 head into.Due to ICMPv6 (Internet Control Message Protocol Version 6, Sixth version ICMP), TCP, UDP and DCCP (Datagram Congestion Control Protocol, Datagram congestion control protocol) head all include verification and, therefore, if mapping address algorithm be not verification and neutrality, The value of verification sum must be calculated before translation, and ICMP and transport layer header are updated.
Ordinary circumstance, IP need to be only translated for TCP and UDP messages, to icmp packet, not only need to translate IP Head, while should also translate ICMP heads.
If in addition, the non-verification of address translation algorithm and neutrality, to the TCP containing pseudo- head, icmp packet and verification The transport layer header for 0 UDP messages does not carry out re-computation and renewal.
If message is fragment message, the respective handling of fragment message is carried out.
D, IPv4/IPv6 message forward submodule to complete the new data message of address translation and protocol translation according to purpose Address is forwarded.
Those skilled in the art can carry out various modifications and variations to the embodiment of the present invention, if these modifications and change Type is within the scope of the claims in the present invention and its equivalent technologies, then these modifications and variations are also in protection scope of the present invention Within.
The prior art that the content not being described in detail in specification is known to the skilled person.

Claims (10)

1. a kind of system that IPv4 networks and IPv6 network interworkings are realized based on NAT64, including NAT64 modules, network management interface, bottom Layer data transceiver interface and configuration data sync cap, the NAT64 modules respectively with network management interface, bottom data transceiver interface It is connected with configuration data sync cap, it is characterised in that:The NAT64 modules include NAT64 configurations submodule, dynamic table and set up Submodule and IPv4/IPv6 messages forwarding submodule are safeguarded, NAT64 configures submodule and safeguards submodule phase with dynamic table foundation Even, dynamic table, which is set up, safeguards that submodule is connected with IPv4/IPv6 messages forwarding submodule;NAT64 configurations submodule, dynamic table are built Vertical to safeguard that submodule is connected with network management interface, dynamic table is set up and safeguards that submodule is also connected with configuration data sync cap, IPv4/IPv6 messages forwarding submodule, configuration data sync cap are connected with bottom data transceiver interface;
The NAT64 configurations submodule is used for:Carry out global configuration and the interface configuration of NAT64 functions;
The dynamic table is set up and safeguards that submodule is used for:Dynamic address mapping table is set up and safeguarded, is created when producing new session Mapping, safeguards mapping in a session, and mapping is deleted after the session is completed;
The IPv4/IPv6 messages forwarding submodule is used for:NAT64 address translation and association is carried out to the data message received View translation, then the data message after NAT64 address translation and protocol translation is forwarded from correct interface;
When the system is based on realizing IPv4 networks with IPv6 network interworkings, it is used for:
Ensure NAT64 modules connection IPv4 networks and IPv6 networks, realize that the global of NAT64 functions is enabled and interface enable;
NAT64 modules receive the data message that network side is sent, according to the protocol version of data message, update dynamic table and set up dimension The address mapping information of submodule is protected, the address five-tuple after translation is obtained:IPv4/IPv6 messages forwarding submodule judges to receive To data message whether be new session, if data message for IPv4 protocol versions new session and without static address mapping deposit The data message is directly abandoned in, IPv4/IPv6 messages forwarding submodule;If data message is the new meeting of IPv6 protocol versions Words, dynamic table, which is set up, safeguards that submodule creates a new address of cache;When data message is non-new session, IPv4/IPv6 Message forwards submodule according to already present address mapping table, and the source for receiving data message is transmitted into address and purpose transmits address It is converted into the form of corresponding another protocol version in mapping table;
NAT64 modules carry out protocol translation to IPv4 headers and IPv6 headers:
When IPv4/IPv6 messages forwarding submodule receives one by the data message of IPv4 network destined IPv6 networks, IPv4/ IPv4 heads can be translated as IPv6 heads by IPv6 messages forwarding submodule, and initial IP v4 heads are removed and replaced into one IPv6 heads;If the transport layer protocol of data message is the IPv4/IPv6 messages, forwarding submodule is supported, the school of transport layer Re-computation is tested and carries out, the data field of data message is without modification;
When IPv4/IPv6 messages forward submodule receive be a destination be IPv4 networks IPv6 data messages when, IPv4/IPv6 messages forwarding submodule needs IPv6 heads being translated as IPv4 heads, and initial IP v6 heads will be removed and replace Change a new IPv4 head into;ICMPv6, TCP, UDP and datagram congestion control protocol DCCP heads all include verification With, if mapping address algorithm is not verification and neutral, the value of verification sum is calculated before translation, and to ICMP and transmission Layer head is updated;
For TCP and UDP message message, IP heads are only translated;To ICMP data messages, translation IP and ICMP heads;If address is turned over The non-verification of algorithm and neutrality are translated, then is 0 UDP datagram to TCP, ICMP data message containing pseudo- head and verification and not The transport layer header of text carries out re-computation and renewal;If data message is fragment data message, fragment data message is carried out Respective handling;
IPv4/IPv6 messages forward submodule to turn the new data message for completing address translation and protocol translation according to destination address Send out.
2. the system as claimed in claim 1 that IPv4 networks and IPv6 network interworkings are realized based on NAT64, it is characterised in that: The global configuration and interface configuration that the NAT64 configurations submodule carries out NAT64 functions are included:NAT64 functions are enabled, IPv6 turns Change prefix, static address mapping table, IPv4 address pools and its enable, max-session number.
3. the system as claimed in claim 1 that IPv4 networks and IPv6 network interworkings are realized based on NAT64, it is characterised in that: The NAT64 modules possess an IPv6 address pool and an IPv4 address pool, and IPv6 address pools are used for the table in IPv6 networks Show IPv4 addresses, IPv4 address pools are used to represent IPv6 addresses in IPv4 networks;IPv4 addresses are represented in IPv6 networks IPv6 addresses are made up of three parts:IPv6 prefixes, the IPv4 addresses being embedded into and variable-length suffix.
4. the system as claimed in claim 3 that IPv4 networks and IPv6 network interworkings are realized based on NAT64, it is characterised in that: The IPv6 address pools include one or more IPv6 prefixes.
5. the system as claimed in claim 3 that IPv4 networks and IPv6 network interworkings are realized based on NAT64, it is characterised in that: The IPv6 prefixes include three characteristics:
(1) prefix index value:Data type is 16bit unsigned ints, is selected in address translation by prefix index value Select and use;
(2) prefix:IPv6 prefixes are stored with array form;
(3) prefix length:Variable prefix length.
6. the system as claimed in claim 5 that IPv4 networks and IPv6 network interworkings are realized based on NAT64, it is characterised in that: The prefix length is 32,40,48,56,64 or 96.
7. the system as claimed in claim 3 that IPv4 networks and IPv6 network interworkings are realized based on NAT64, it is characterised in that: The IPv4 address pools are made up of the continuous IP v4 addresses under same subnet section, except the situation of static manual configuration, address Mapping is all dynamic, and takes IPv6 to transmit the mapping that address transmits address to IPv4 in actual applications;It is described IPv4 address pools include:(1) address pool index value;(2) starting ip v4 addresses, termination IPv4 addresses and subnet mask;(3) it is single Individual IPv4 addresses are common to the quantity of session simultaneously;(4) port numbers of TCP, UDP session and ICMP identifier.
8. the system as claimed in claim 1 that IPv4 networks and IPv6 network interworkings are realized based on NAT64, it is characterised in that: The IPv4/IPv6 messages forwarding submodule translates the structure on required various heads defined in dual stack stack, including It is several below:
struct ip6_hdr:Represent IPv6 heads;
struct ip6_frag:Represent IPv6 bursts head;
struct icmp6_hdr:Represent ICMPv6 heads;
struct ip:Represent IPv4 heads;
struct ippseudo:Represent the pseudo- heads of IPv4 for Transmission Control Protocol;
struct icmp2_hdr:Represent ICMPv4 heads.
9. IPv4 networks and IPv6 network interworkings are realized based on NAT64 suitable for system any one of claim 1 to 8 Method, it is characterised in that comprise the following steps:
A, ensure NAT64 modules connection IPv4 networks and IPv6 networks, realize that the global of NAT64 functions is enabled and interface is enabled;
B, NAT64 module receive the data message that network side is sent, according to the protocol version of data message, update dynamic table and set up The address mapping information of submodule is safeguarded, the address five-tuple after translation is obtained:IPv4/IPv6 messages forwarding submodule judges to connect Whether the data message received is new session, if data message is the new session of IPv4 protocol versions and deposited without static address mapping The data message is directly abandoned in, IPv4/IPv6 messages forwarding submodule;If data message is the new meeting of IPv6 protocol versions Words, dynamic table, which is set up, safeguards that submodule creates a new address of cache;When data message is non-new session, IPv4/IPv6 Message forwards submodule according to already present address mapping table, and the source for receiving data message is transmitted into address and purpose transmits address It is converted into the form of corresponding another protocol version in mapping table;
C, NAT64 module carry out protocol translation to IPv4 headers and IPv6 headers:
When IPv4/IPv6 messages forwarding submodule receives one by the data message of IPv4 network destined IPv6 networks, IPv4/ IPv4 heads can be translated as IPv6 heads by IPv6 messages forwarding submodule, and initial IP v4 heads are removed and replaced into one IPv6 heads;If the transport layer protocol of data message is the IPv4/IPv6 messages, forwarding submodule is supported, the school of transport layer Re-computation is tested and carries out, the data field of data message is without modification;
When IPv4/IPv6 messages forward submodule receive be a destination be IPv4 networks IPv6 data messages when, IPv4/IPv6 messages forwarding submodule needs IPv6 heads being translated as IPv4 heads, and initial IP v6 heads will be removed and replace Change a new IPv4 head into;ICMPv6, TCP, UDP and datagram congestion control protocol DCCP heads all include verification With, if mapping address algorithm is not verification and neutral, the value of verification sum is calculated before translation, and to ICMP and transmission Layer head is updated;
For TCP and UDP message message, IP heads are only translated;To ICMP data messages, translation IP and ICMP heads;If address is turned over The non-verification of algorithm and neutrality are translated, then is 0 UDP datagram to TCP, ICMP data message containing pseudo- head and verification and not The transport layer header of text carries out re-computation and renewal;If data message is fragment data message, fragment data message is carried out Respective handling;
D, IPv4/IPv6 message forward submodule to complete the new data message of address translation and protocol translation according to destination address Forward.
10. the method as claimed in claim 9 that IPv4 networks and IPv6 network interworkings are realized based on NAT64, it is characterised in that: Step A comprises the following steps:NAT64 configuration submodules carry out global configuration and the interface configuration of NAT64 functions:NAT64 functions Enable, IPv6 changes prefix, static address mapping table, IPv4 address pools and its enable, max-session number.
CN201410444590.7A 2014-09-03 2014-09-03 The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64 Active CN104270475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410444590.7A CN104270475B (en) 2014-09-03 2014-09-03 The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410444590.7A CN104270475B (en) 2014-09-03 2014-09-03 The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64

Publications (2)

Publication Number Publication Date
CN104270475A CN104270475A (en) 2015-01-07
CN104270475B true CN104270475B (en) 2017-10-10

Family

ID=52161964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410444590.7A Active CN104270475B (en) 2014-09-03 2014-09-03 The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64

Country Status (1)

Country Link
CN (1) CN104270475B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453664A (en) * 2016-12-16 2017-02-22 广东睿哲科技股份有限公司 IPv4 terminal based on virtual IPv4 address pool, and IPv6 service interworking service load balancing system
CN107682472A (en) * 2017-10-24 2018-02-09 睿哲科技股份有限公司 IPv4 and IPv6 interoperability methods, apparatus and system based on RTSP reverse proxys
CN107835198B (en) * 2017-12-13 2020-11-24 睿哲科技股份有限公司 Method and device for PPTP traversal in IPv4-IPv6 intercommunication scene and electronic equipment
CN109218219A (en) * 2018-10-15 2019-01-15 迈普通信技术股份有限公司 A kind of load-balancing method, device, the network equipment and storage medium
CN109688240A (en) * 2018-12-24 2019-04-26 睿哲科技股份有限公司 IPv4 multicast and the mutual phase changing device of IPv6 multicast and equipment
CN112261054B (en) * 2020-10-23 2022-07-15 重庆邮电大学 Ethernet/IP and IPv6 protocol conversion system and method based on application service quality of service
CN112532641B (en) * 2020-12-07 2023-04-28 四川光慧新能源科技有限公司 Communication method for connecting internal modules of charging pile
CN113630378B (en) * 2021-06-29 2022-08-19 清华大学 IPv6 network access source address verification deployment measurement method and device based on ICMP speed limit
CN113783974B (en) * 2021-09-09 2023-06-13 烽火通信科技股份有限公司 Method and device for dynamically issuing MAP domain rule
CN113746954B (en) * 2021-09-22 2023-06-13 烽火通信科技股份有限公司 Method and device for quickly recovering NAT address block through secondary allocation
CN113923188B (en) * 2021-12-08 2022-03-08 北京英迪瑞讯网络科技有限公司 Stateless flexible mapping algorithm for IPv6/IPv4 access
CN114745456A (en) * 2022-05-13 2022-07-12 咪咕音乐有限公司 Message processing method and device and network address translation equipment
CN116566943A (en) * 2023-07-12 2023-08-08 明阳时创(北京)科技有限公司 Lightweight direct-conversion relay method and system for audio and video streams

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431477A (en) * 2008-12-17 2009-05-13 清华大学 P2P operator and campus network router combined IPv4/IPv6 grouping conversion method
CN102148773A (en) * 2010-02-08 2011-08-10 中国联合网络通信集团有限公司 Method and system for converting IPv6 (Internet Protocol Version 6) protocol and IPv4 (Internet Protocol Version 4) protocol
CN102907072A (en) * 2010-02-26 2013-01-30 瑞典爱立信有限公司 Enabling ipv6 mobility with nat64
CN103428303A (en) * 2012-05-22 2013-12-04 中兴通讯股份有限公司 Method and system for IPv6 host to have access to IPv4 server
CN103634216A (en) * 2013-11-04 2014-03-12 汉柏科技有限公司 Method and equipment for forwarding datagram based on NAT 64 (Network Address Translation 64)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7356045B2 (en) * 2002-10-22 2008-04-08 Cisco Technology, Inc. Shared port address translation on a router behaving as NAT & NAT-PT gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431477A (en) * 2008-12-17 2009-05-13 清华大学 P2P operator and campus network router combined IPv4/IPv6 grouping conversion method
CN102148773A (en) * 2010-02-08 2011-08-10 中国联合网络通信集团有限公司 Method and system for converting IPv6 (Internet Protocol Version 6) protocol and IPv4 (Internet Protocol Version 4) protocol
CN102907072A (en) * 2010-02-26 2013-01-30 瑞典爱立信有限公司 Enabling ipv6 mobility with nat64
CN103428303A (en) * 2012-05-22 2013-12-04 中兴通讯股份有限公司 Method and system for IPv6 host to have access to IPv4 server
CN103634216A (en) * 2013-11-04 2014-03-12 汉柏科技有限公司 Method and equipment for forwarding datagram based on NAT 64 (Network Address Translation 64)

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
DNS64: DNS Extensions for Network Address Translation from IPv6 Clients to IPv4 Servers;M. Bagnulo等;《IETF RFC6147》;20110430;全文 *
IP/ICMP Translation Algorithm;X. Li等;《IETF RFC6145》;20110430;全文 *
IPv4至IPv6过渡技术方案的设计与实施;王中震;《中国优秀硕士学位论文全文数据库》;20130315(第3期);正文第30-35页、第44页 *
IPv6 Addressing of IPv4/IPv6 Translators;C. Bao等;《IETF RFC6052》;20101031;全文 *
Stateful NAT64: Network Address and Protocol Translation from IPv6 Clients to IPv4 Servers;M. Bagnulo等;《IETF RFC6146》;20110430;全文 *

Also Published As

Publication number Publication date
CN104270475A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN104270475B (en) The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64
Wu et al. Transition from IPv4 to IPv6: A state-of-the-art survey
CN104734963B (en) A kind of IPv4 and IPv6 network interconnecting methods based on SDN
JP4130962B2 (en) System and method for using a domain name to route data sent to a destination on a network
CN1333568C (en) Method for intercommunication between IP V6 network and IPV4 network based on transit mechanism
KR100694209B1 (en) ISATAP TUNNELING SYSTEM AND METHOD BETWEEN IPv4 NETWORK AND IPv6 NETWORK
CN101488904B (en) Method for GRE tunnel crossing network address translation apparatus and network address translation apparatus
US9185072B2 (en) Stateless NAT44
CN101227373B (en) Method for intercommunication based on IPv4 and IPv6 networks without state mapping
JP5239618B2 (en) Address translation apparatus, method and program, and node
CN100484083C (en) Addressing converting method and mixed addressing converting router for realizing the same
CN101316272A (en) Multi-protocol layer interpretation method for constructing hybrid network of internet protocol version four and version six
CN102938735B (en) Advertising of route is used to carry the method that option issues NAT64 address prefix
US20060146870A1 (en) Transparent communication with IPv4 private address spaces using IPv6
CN102255982A (en) Internet protocol version 4 (IPv4)/IPv6 translation gateway and translation method
KR20140034951A (en) Method for managing context table for compress the ipv6 header based on context in wireless mesh networks
CN104584517A (en) Method and a network node, for use in a data center, for routing an IPv4 packet over an IPv6 network
US20150032898A1 (en) Method for establishing a virtual community network connection and a system for implementing said method
CN105515995B (en) Message processing method and device
JP2011061541A (en) Address/protocol translation system, translator device and translator program
CN100490445C (en) Method of ICMP error message conversion under PAT mode in NAT-PT gateway
CN105516382A (en) Communication method and system for IPV4 network and IPV6 Internet of Things (IOT) node
CN102075921B (en) Inter-network communication method and device
JP2009207182A (en) Packet generating method, information processing apparatus with function thereof, and recording medium with packet generation program recorded thereon
Shang et al. IVI-based locator/ID separation architecture for IPv4/IPv6 transition

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
TR01 Transfer of patent right

Effective date of registration: 20190114

Address after: 430074 No. 6, High-tech Fourth Road, Donghu High-tech Development Zone, Wuhan City, Hubei Province

Patentee after: Fenghuo Communication Science &. Technology Co., Ltd.

Address before: 430074 Guandong Optical Communication Industry Building, No. 5 Donghu High-tech Dongxin Road, Wuhan City, Hubei Province

Patentee before: Wuhan Fenghuo Network Co., Ltd.

TR01 Transfer of patent right