CN103428303A - Method and system for IPv6 host to have access to IPv4 server - Google Patents

Method and system for IPv6 host to have access to IPv4 server Download PDF

Info

Publication number
CN103428303A
CN103428303A CN2012101592515A CN201210159251A CN103428303A CN 103428303 A CN103428303 A CN 103428303A CN 2012101592515 A CN2012101592515 A CN 2012101592515A CN 201210159251 A CN201210159251 A CN 201210159251A CN 103428303 A CN103428303 A CN 103428303A
Authority
CN
China
Prior art keywords
ipv6
message
ipv4
hns4
mapping relations
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.)
Pending
Application number
CN2012101592515A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2012101592515A priority Critical patent/CN103428303A/en
Publication of CN103428303A publication Critical patent/CN103428303A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for an IPv6 host to have access to an IPv4 server. The method includes the steps that an access request carrying a first IPv6 massage is received; according to preset rules and a mapping relation table, the first IPv6 massage is translated into a first IPv4 massage of a preset format; a responding message, namely a second IPv4 massage, of an HNS4 is received, the second IPv4 massage is translated into a second IPv6 massage, and the second IPv6 massage is sent to an IPv6 host. The invention further discloses a system for the IPv6 host to have access to the IPv4 server. Through the method that in an HGW, the DDNS technology and the NAT64 technology are combined to work in coordination with relevant functional modules in the HGW, the beneficial effect of communication between a PND6 and an HNS4 is achieved, safety and convenience for having access to the HNS4 are improved, and experience of a user is improved.

Description

The method and system of IPv6 host access IPv4 server
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of method and system of IPv6 host access IPv4 server.
Background technology
Along with the development of the Internet technologies such as home network and Internet of Things, can carry out the favor that remote monitoring more and more is subject to people to home environment outside, this is also the inexorable trend of intelligent home network development.In IP(Internet Protocol, Internet protocol) in network, the IP address is the important sign of the network equipment.The user communicates by remote network equipment and home network device when going out, thereby realizes home environment is carried out to long-range picture supervision, equipment remote-control etc., and the essence of this process is the process that LA Management Room communicates based on the IP address.
At present, along with IPv4(Internet Protocol Version 4, internet protocol version 4) expanding day of network size, the exhausted problem in IPv4 address is very obvious; Thus, some home network devices, as home gateway, Home Video Server etc. has been difficult to the independently IPv4 public network address of reentrying.For addressing this problem, IPv6(Internet Protocol Version 6, internet protocol version 6) network starts to replace gradually IPv4, but, because existing IPv4 network size is huge, application program is various, coexisting of IPv6 and two kinds of networks of IPv4 will be a long-term process.
At IPv4 in the multiple network model of IPv6 evolution, following situation is one of modal model: public network upgrades to the IPv6 network, now the user is at PND6(Public Network Device V6, the IPv6 equipment of public network) can obtain IPv6GUA(Global UnicastAddress, global unicast address), HGW(Home Gateway, home gateway) support the IPv4/IPv6 dual stack as the edge device of public network and home network, can obtain IPv6GUA and prefix, and only support HNS4(Home Network Server V4, the IPv4 home network device) still from HGW, obtain the IPv4 private net address.In this case, the remote monitoring function of completing user at home network, need urgent following two problems that solve: when (1) equipment based on two kinds of agreements of IPv6 and IPv4 is communicated by letter mutually, the problem of translation conversion between address and agreement; (2) address of HNS4 is the IPv4 private net address, and this IPv4 private net address may change, IPv6 address and prefix information that HGW obtains also may change, the secure access how completed HNS4 by relatively-stationary sign on PND6 is particular importance, otherwise domestic consumer will be difficult to use this business.
Summary of the invention
Main purpose of the present invention is to provide a kind of method and system of IPv6 host access IPv4 server, when being intended to solve equipment based on two kinds of agreements of IPv6 and IPv4 and communicating by letter mutually, translation transfer problem between address and agreement and use relatively-stationary sign to access safely HNS4 on PND6, improve systematic function, promote the user and experience.
The invention discloses a kind of method of IPv6 host access IPv4 server, comprise the following steps:
The access request of an IPv6 message is carried in reception;
According to presetting rule and mapping relations table, a described IPv6 message is translated as to an IPv4 message of initialize format;
The response message that receives IPv4 home network device HNS4 is the 2nd IPv4 message, described the 2nd IPv4 message is translated as to the 2nd IPv6 message, and described the 2nd IPv6 message is sent to the IPv6 main frame.
Preferably, described reception is carried before the step of access request of an IPv6 message and is also comprised step:
According to described presetting rule, set up the mapping relations table of IPv4 home network device HNS4 domain name and IPv6 global unicast address GUA.
Preferably, described according to presetting rule, the step that an IPv6 message is translated as to an IPv4 message of initialize format specifically comprises:
Whether the destination address and the described presetting rule that judge a described IPv6 message mate;
If, according to described presetting rule, a described IPv6 message is translated as to an IPv4 message of initialize format;
Whether the public network IP v6 equipment PND6GUA that if not, judges a described IPv6 message meets preset field restriction requirement;
If meet described preset field restriction requirement, according to described presetting rule, a described IPv6 message is translated as to an IPv4 message of initialize format.
Preferably, the described step that the 2nd IPv4 message is translated as to the 2nd IPv6 message specifically comprises:
According to described the 2nd IPv4 message destination address, search described mapping relations table, judge whether the mapping relations of described the 2nd IPv4 message and described the 2nd IPv6 message exist;
If, according to described mapping relations, described the 2nd IPv4 message is translated as to the 2nd IPv6 message.
Preferably, the step of the mapping relations table of the described HNS4 of foundation domain name and IPv6 GUA specifically comprises:
Set up the IPv4 private net address of HNS4 and the transformational relation of IPv6 GUA;
According to described transformational relation, set up the mapping relations table of HNS4 domain name and described IPv6 GUA, and described mapping relations table is reported;
Detect described HNS4 domain name and whether described IPv6 GUA upgrades;
If, the described mapping relations table that upgrades in time, and the mapping relations table after upgrading is reported.
The present invention also discloses a kind of system of IPv6 host access IPv4 server, comprising:
The request receiving module, the access request of carrying an IPv6 message for reception;
The downlink message module, for according to presetting rule and mapping relations table, be translated as a described IPv6 message the one IPv4 message of initialize format;
The uplink message module, be the 2nd IPv4 message for the response message that receives HNS4, described the 2nd IPv4 message is translated as to the 2nd IPv6 message, and described the 2nd IPv6 message is sent to the IPv6 main frame.
Preferably, the system of described IPv6 host access IPv4 server also comprises:
Module is set up in mapping, for according to described presetting rule, sets up the mapping relations table of HNS4 domain name and IPv6 GUA.
Preferably, described downlink message module specifically comprises:
Whether the rule match unit, mate for the destination address and the described presetting rule that judge a described IPv6 message;
The fields match unit, while not mating for the destination address at a described IPv6 message and described presetting rule, judge whether the PND6 GUA of a described IPv6 message meets preset field restriction requirement;
The downlink message translation unit, during for the destination address at a described IPv6 message and described presetting rule coupling, or the destination address of a described IPv6 message and described presetting rule are not mated but the PND6 GUA of a described IPv6 message meets described preset field restriction while requiring, according to described presetting rule, a described IPv6 message is translated as to an IPv4 message of initialize format.
Preferably, described uplink message module specifically comprises:
The response message receiving element is the 2nd IPv4 message for the response message that receives IPv4 home network device HNS4;
The uplink message translation unit, while existing for the mapping relations of described the 2nd IPv4 message and described the 2nd IPv6 message, according to described mapping relations, be translated as the 2nd IPv6 message by described the 2nd IPv4 message.
Preferably, described mapping is set up module and is specifically comprised:
Transformational relation is set up unit, for the IPv4 private net address of setting up HNS4 and the transformational relation of IPv6 GUA;
Mapping is set up and is reported unit, for according to described transformational relation, sets up the mapping relations table of HNS4 domain name and described IPv6GUA, and described mapping relations table is reported;
Upgrade detecting unit, whether upgrade for detection of described HNS4 domain name and described IPv6 GUA;
Renewal reports unit, for when described HNS4 domain name and described IPv6 GUA have renewal, and the described mapping relations table that upgrades in time, and the mapping relations table after upgrading is reported.
The present invention carries the access request of an IPv6 message by reception, according to presetting rule and mapping relations table, a described IPv6 message is translated as to an IPv4 message of initialize format, the response message that receives IPv4 home network device HNS4 is the 2nd IPv4 message, described the 2nd IPv4 message is translated as to the 2nd IPv6 message, and described the 2nd IPv6 message is sent to the IPv6 main frame, in HGW by the DDNS technology with the NAT64 technology combines and the method for carrying out collaborative work with the correlation function module in HGW, realized the beneficial effect of communicating by letter between PND6 and HNS4, fail safe and the convenience of access HNS4 have been improved, promoted user's experience.
The accompanying drawing explanation
Fig. 1 is main functional modules figure in home gateway;
Fig. 2 is the method first embodiment schematic flow sheet of IPv6 host access IPv4 server of the present invention;
Fig. 3 is that in the method for IPv6 host access IPv4 server of the present invention, presetting rule forms and configuration cooperation sequence one embodiment signaling flow graph;
Fig. 4 is PND6 access HNS4 whole scene message processing procedure in the method for IPv6 host access IPv4 server of the present invention;
Fig. 5 is the method second embodiment schematic flow sheet of IPv6 host access IPv4 server of the present invention;
Fig. 6 be in the method for IPv6 host access IPv4 server of the present invention according to presetting rule, an IPv6 message is translated as to IPv4 message one an embodiment schematic flow sheet of initialize format;
Fig. 7 is translated as the 2nd IPv6 message one embodiment schematic flow sheet by the 2nd IPv4 message in the method for IPv6 host access IPv4 server of the present invention;
Fig. 8 sets up the mapping relations table one embodiment schematic flow sheet of HNS4 domain name and IPv6GUA in the method for IPv6 host access IPv4 server of the present invention;
Fig. 9 is that in the method for IPv6 host access IPv4 server of the present invention, the HNS4 domain name reports with the mapping relations of IPv6 GUA and upgrades the sequence one embodiment signaling flow graph that cooperates;
Figure 10 is the system first example structure schematic diagram of IPv6 host access IPv4 server of the present invention;
Figure 11 is the system second example structure schematic diagram of IPv6 host access IPv4 server of the present invention;
Figure 12 is downlink message module one example structure schematic diagram in the system of IPv6 host access IPv4 server of the present invention;
Figure 13 is uplink message module one example structure schematic diagram in the system of IPv6 host access IPv4 server of the present invention;
Figure 14 is that in the system of IPv6 host access IPv4 server of the present invention, module one example structure schematic diagram is set up in mapping.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Further illustrate technical scheme of the present invention below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, Fig. 1 is main functional modules figure in home gateway; As shown in Figure 1, in home gateway, mainly comprise: IP device administration module 10, DDNS(Dynamic Domain Name Server, the DDNS service) client 20, IPv6 address and prefix information acquisition module 30 and NAT64(Network Address Translation of IPv6 and IPv4, IPv6 and IPv4 network address translation) module 40.
Particularly, in a preferred embodiment, the major responsibility of IP device administration module 10 is: give LAN(Local Area Network, local area network (LAN)) information such as side network equipment distributing IP v4 private net address, gateway; Provide configuration HNS4 relevant information to the user, as domain name, host name, MAC(Media Access Control, medium access control) means of the information such as agreement in address and transformation rule, port, PND6 address; From the IPv6 address and prefix information acquisition module 30 obtain IPv6 address and prefix information; The calculated address transformation rule also is configured to NAT64 module 40; Notice DDNS client 20 is carried out reporting of corresponding relation between HNS4 domain name and IPv6 GUA or renewal etc.
The major responsibility of DDNS client 20 is: based on set agreement, the mapping relations of HNS4 domain name and IPv6 GUA are reported to the DDNS client 20 of the DDNS server of HGW WAN side.
The major responsibility of IPv6 address and prefix information acquisition module 30 is: from HGW WAN(Wide Area Network, wide area network) network access server of side is as BRAS(Broadband Remote Access Server, BAS Broadband Access Server), obtain IPv6 address and prefix information like the local prefix of Local Prefix(); IPv6 address and prefix information acquisition module 30 are when getting relevant information or relevant information first and change, and notice IP device administration module 10 upgrades accordingly.
The major responsibility of NAT64 module 40 is: generate and safeguard that the TEMP(that PND6 address and some are only used in family's network internal is interim)-mapping relations between the IPv4 address are as Map64(PND6 and TEMP-IPv4 mapping relations); Based on presetting rule and mapping relations, carry out the mutual translation between IPv6 and IPv4 protocol massages, the translation of the IPv6 message from PND6 to HNS4 is treated to the IPv4 message that can be forwarded to HNS4, the translation of the IPv4 message from HNS4 to PND6 is treated to the IPv6 message that can be forwarded to PND6.
Based on the described home gateway of above-described embodiment, with reference to Fig. 2, Fig. 2 is the method first embodiment schematic flow sheet of IPv6 host access IPv4 server of the present invention; As shown in Figure 2, the method for this aspect IPv6 host access IPv4 server comprises the following steps:
The access request that an IPv6 message is carried in step S01, reception;
When PND6 is used domain name to conduct interviews to HNS4, its access request can be converted to the access to IPv6 GUA by the IPv6 dns resolution, this access request finally also can be forwarded on HGW, HGW receives the access request carry an IPv6 message, so just can complete by the NAT64 function on HGW the mutual translation between IPv6 and IPv4 agreement and then complete communicating by letter between PND6 and HNS4;
Step S02, according to presetting rule and mapping relations table, a described IPv6 message is translated as to an IPv4 message of initialize format;
HGW, according to the mapping relations table between presetting rule and IPv6 and IPv4 agreement, is translated as a described IPv6 message to be treated to an IPv4 message that can be forwarded on HNS4.With reference to Fig. 3, Fig. 3 is that in the method for IPv6 host access IPv4 server of the present invention, presetting rule forms and configuration cooperation sequence one embodiment signaling flow graph; As shown in Figure 3, in the method for IPv6 host access IPv4 server of the present invention, HGW, as the edge device of IPv4 and IPv6 network, supports the IPv4/IPv6 dual stack, distinguishes the WAN/LAN both sides.HGW LAN side is supported the IPv4 network, and the IP management equipment management function on it is responsible for HNS4 distributing IP v4 private net address as 192.168.1.X.HGW WAN side is the IPv6 network, and the IPv6 address on it and prefix are obtained function and be responsible for to WAN side IPv6 access server, as BRAS, obtaining IPv6 address and Local Prefix(prefix), as 2001:C68:E90:1AFF::/L, the length that wherein L is prefix.IP device administration module 10 can produce the transformation rule of following form accordingly: and<hns4-ipv4 >, [i-port],<ipv6-gua >, [e-port], [remote-ipv6], [proto] }, wherein, during configuration:
Hns4-ipv4: essential option, the private network IPv4 address of expression HNS4;
Ipv6-gua: essential option, distribute in the IPv6GUA set of the lower suspended network of HGW or its;
I-port: option, the HNS4 internal port need occur with e-port, proto simultaneously;
E-port: option, the HNS4 outside port need occur with i-port, proto simultaneously;
Remote-ipv6: option, outer net PND6 address, for being limited PND6;
Proto: option, can be TCP(Transmission Control Protocol, transmission control protocol), UDP(User Datagram Protocol, User Datagram Protoco (UDP)), ICMP(Internet Control Messages Protocol, Internet Control Message Protocol)/ICMPv6(Internet Control Messages Protocol Version 6, Internet Control Message Protocol version 6) etc., wherein ICMP/ICMPv6 does not occur with port information simultaneously.
In a preferred embodiment, described hns4-ipv4 generally can be distributed by the DHCP protocol dynamic by IP device administration module 10; The generation strategy of ipv6-gua is more flexible, can adopt following three kinds of modes to configure: mode one, and the Local Prefix of the MAC Address based on HNS4 and length<=64 generates, and shape is as Local Prefix::EUI64-MAC; Described EUI64-MAC refer to based on MAC Address, generate meet EUI(Extended Unique Identifier, expansion unique identifier) 64 signs of standard; Mode two, the IP address based on HNS4 and the Local Prefix of length<=96 generate, and shape is as Local Prefix::xx:hns4-ipv4:xx; Mode three, distribute from the address pool by Local Prefix derives from, and shape is as Local Prefix::xx.During actual enforcement, the generation of ipv6-gua can change the usage policy of hns4-ipv4 and ipv6-gua to some extent according to the address of actual allocated and prefix information and HGW; If obtain less than prefix, in the situation that not conflict is used in address, also can use the IPv6GUA of the upper network interface of HGW as the ipv6-gua in rule; I-port, e-port, remote-ipv6 generally can be by the user security strategy static configuration based on set; Under extreme case, all subitems of a transformation rule all can be by user's static configuration; IP device administration module 10, after the explicit conversion rule as above generated, can be configured to it NAT64 module 40 on HGW, foundation and reference while translating mutually as IPv6 and IPv4 agreement; IP device administration module 10 also can not generate explicit rule, and now can to use the processing policy of acquiescence be implicit rule to system; In a preferred embodiment, be not more than the prefix of 96 if obtained length, can use and be equal to explicit rule { hns-ipv4, the implicit rule of LocalPrefix::hns-ipv4}; Directly latter 32 using hns-ipv4 as the IPv6 address are spliced into an IPv6GUA with Local Prefix.
The response message of step S03, reception HNS4 i.e. the 2nd IPv4 message, described the 2nd IPv4 message is translated as to the 2nd IPv6 message, and described the 2nd IPv6 message is sent to the IPv6 main frame;
In a preferred embodiment, after completing the configuration of presetting rule, in NAT64 module 40, carry out in the process of IPv6 and the mutual translation of IPv4 agreement, can be based on described presetting rule, according to a described IPv4 message, the access request of response PND6 also generates the 2nd IPv4 message of processing through HGW; Also can the PND6 visited be limited; Based on described presetting rule, HGW is translated as the 2nd IPv6 message by described the 2nd IPv4 message, and described the 2nd IPv6 message is sent to the IPv6 main frame, allows the access of IPv6 main frame to the IPv4 server; In a preferred embodiment, also can be by address and port translation to external shield HNS4.
The method overall process of IPv6 host access IPv4 server of the present invention is described again below with reference to the message processing procedure.With reference to Fig. 4, Fig. 4 is PND6 access HNS4 whole scene message processing procedure in the method for IPv6 host access IPv4 server of the present invention; As shown in Figure 4, in the method for IPv6 host access IPv4 server of the present invention, in a preferred embodiment, PND6 possesses IPv6 address 2001:C68:A30:806::2012, HGW, by IPv6 access server access IPv6 network, obtains prefix 2001:C68:E90:1AFF: :/64; The IPv4 address of HNS4 is 192.168.1.254, and the external domain name in IPv4 address of this HNS4 is www.myhns4.net, and the address translation rule in NAT64 module 40 is { 192.168.1.254,80,2001:C68:E90:1AFF::C0A8:01FE, 8080, TCP}.In a preferred embodiment, when access http://www.myhns4.net:8080/ on PND6, generally can go through following steps: 1. domain name www.myhns4.net analysis request; 2. domain name mapping response, in a preferred embodiment, is 2001:C68:E90:1AFF::C0A8:01FE by above-mentioned domain name mapping; 3.PND6 send src2001:C68:A30:806::2012,6160, dst 2001:C68:E90:1AFF::C0A8:01FE, the IPv6 access request message of 8080, TCP}, this message finally is forwarded to HGW; 4.HGW on NAT64 module 40 form 1.0.0.1, the mapping relations of 2001:C68:A30:806::2012}, based on preset transformation rule, described IPv6 message is translated as to shape as { src 1.0.0.1,6160, dst 192.168.1.254, the IPv4 message of 80, TCP}; 5.HNS4 described IPv6 access request is responded, is replied shape as { src192.168.1.254,80, dst 1.0.0.1, the IPv4 message of 6160, TCP}, described IPv4 message process HGW processing; 6.HGW on NAT64 module 40 by the translation of described IPv4 message be converted to shape as src2001:C68:E90:1AFF::C0A8:01FE, 8080, dst 2001:C68:A30:806::2012, the IPv6 message of 6160, TCP}, this message finally can be forwarded to PND6; Above-mentioned 6 steps are the total data handling processes that PND6 accesses HNS4 first; In the data interaction flow process of follow-up PND6 and HNS4, at HNS4 domain name and PND6GUA corresponding relation, in effective period, 1. domain name mapping request and 2. domain name mappings response can be omitted; The concrete duration of described HNS4 domain name and PND6GUA corresponding relation effective period depends on the realization of PND6.
The method of the present embodiment IPv6 host access IPv4 server is by when PND6 use domain name conducts interviews to HNS4, complete the method for translating mutually between IPv6 and IPv4 agreement by HGW, realized the beneficial effect of communicating by letter between PND6 and HNS4, the fail safe that greatly improves HNS4.
With reference to Fig. 5, Fig. 5 is the method second embodiment schematic flow sheet of IPv6 host access IPv4 server of the present invention; With the described embodiment of Fig. 2, compare, the present embodiment has increased step S 10, and all the other steps are all consistent with the described step of Fig. 2, repeat no more herein.As shown in Figure 5, in the method for IPv6 host access IPv4 server of the present invention, at step S01, receive before the step of the access request carry an IPv6 message and also comprise step:
S10, according to described presetting rule, set up the mapping relations table of HNS4 domain name and IPv6GUA.
According to presetting rule, register in advance the HNS4 domain name in associated mechanisms, and set up the mapping relations between HNS4 private network IPv4 address and IPv6GUA; Then, by the DDNS client 20 on HGW, the mapping relations between HNS4 domain name and IPv6GUA are reported to the DDNS server on the IPv6 public network, to guarantee the validity of HNS4 domain name in the IPv6 network.In a preferred embodiment, the mode that described mapping relations are reported adopts the mode that periodicity reports or condition triggers to report.
In a preferred embodiment, in HGW, IP device administration module 10 detects that HNS4 reach the standard grade and be its distribution address, IPv6 address and prefix information acquisition module 30 are after getting relevant information, notice IP device administration module 10, IP device administration module 10 is after each correlated condition possesses, form the mapping relations of HNS4 domain name and IPv6 address in connection with user's deploy content, and 20 pairs of described mapping relations of triggering DDSN client are reported; In addition, in the IPv4 address of HNS4, change or IPv6 address and prefix information while changing, IP device administration module 10 all can again form the mapping relations of HNS4 domain name and IPv6 address and trigger 20 pairs of described new mapping relations of DDSN client and upgraded and report.
The method of the present embodiment IPv6 host access IPv4 server is by the mapping relations table of setting up HNS4 domain name and IPv6GUA according to presetting rule the method that described mapping relations table is reported, improve the convenience of IPv6 host access IPv4 server, promoted user's experience.
For the ease of understanding technical scheme of the present invention, below with specific embodiment, describe the specific implementation process of each step in detail.
With reference to Fig. 6, Fig. 6 be in the method for IPv6 host access IPv4 server of the present invention according to presetting rule, an IPv6 message is translated as to IPv4 message one an embodiment schematic flow sheet of initialize format; As shown in Figure 6, in the method for IPv6 host access IPv4 server of the present invention, step S02, according to presetting rule, the step that an IPv6 message is translated as to an IPv4 message of initialize format specifically comprises:
Step S11, judge whether the destination address of a described IPv6 message and described presetting rule mate; If perform step S12; If not, perform step S13;
In a preferred embodiment, if the following rule of system configuration { 192.168.1.254, 80, 2001:C68:E90:1AFF::C0A8:01FE, 8080, TCP, 2001:C68:A30:806::2012}, carry out rule match according to the destination address of a described IPv6 message, when shape as { src2001:C68:A30:806::2012, 3600, dst 2001:C68:E90:1AFF::C0A8:01FE, when the TCP message of 8080} is processed through NAT64 module 40, at first can carry out rule match according to its destination address 2001:C68:E90:1AFF::C0A8:01FE, whether the destination address and the described presetting rule that judge a described IPv6 message mate.
Step S12, according to described presetting rule, a described IPv6 message is translated as to an IPv4 message of initialize format;
If the destination address of a described IPv6 message and described presetting rule are complementary, the IPv6 message can be translated; The destination address of a described IPv6 message is by the rule-based IPv4 address that is converted into HNS4; In a preferred embodiment, distance host carries out validity checking, checks that whether the remote-ipv6 in rule is consistent with the source address of message, in the present embodiment, is 2001:C68:A30:806::2012, and the two is consistent; Then carry out the conversion of IPv6 to IPv4 destination address and port, in the present embodiment, be by 2001:C68:E90:1AFF::C0A8:01FE, 8080} is converted to { 192.168.1.254,80}; After converting, carry out IPv6 and shine upon to the IPv4 source address; { 1.0.0.1,2001:C68:A30:806::2012} are about to 2001:C68:A30:806::2012 and are mapped as 1.0.0.1 to set up mapping relations in the present embodiment; After mapping relations have been set up, carry out the translation of IPv6 to contents such as the protocol version in the IPv4 header, stream label, TC value, payload length, burst information, upper-layer protocols, whole IPv6 message is translated as to an IPv4 message; After having translated, carry out verification and the calculating of related data in the IPv4 message; So just, the IPv6 message intactly is translated as to the IPv4 message.
Step S13, judge whether the PND6 GUA of a described IPv6 message meets preset field restriction requirement; If return to execution step S12; If not, perform step S14;
Step S14, by a described IPv6 packet loss;
For there is no rule or not mating with presetting rule, need to check whether the destination address of described IPv6 meets the processing policy conversion of system default, and check whether PND6 GUA meets the restriction requirement of described presetting rule remote-ipv6 field; If do not meet this restriction requirement, illustrate that the access of this PND6 is not allowed to, by an IPv6 packet loss.
In a preferred embodiment, for meeting the access of PND6 to HNS4, HGW need to safeguard that one is recorded PND6 address and TEMP IPv4(IPv4 temporary address) the mapping relations table.Described TEMP IPv4 is only in HGW and the inner use of home network, so the range of choice of TEMP IPv4 can have larger variation, this TEMP IPv4 of general warranty and HGW LAN side do not get final product at the same network segment, and in the present embodiment, described TEMP IPv4 can be 1.0.0.0/16; Accordingly, just the source address of IPv6 message can be exchanged into an address in the TEMP IPv4 network segment, as 1.0.0.1; For the TCP/UDP message, also need to carry out the destination interface conversion according to the port translation information in presetting rule; After completing above conversion, need again the fields such as the protocol version in the IPv6 header, stream label, TC value, payload length, burst information, upper-layer protocol to be translated as respectively to corresponding field value in the IPv4 header; Finally, then upgrade corresponding checksum field and complete IPv6 to the translation of IPv4 message conversion.
In the above-mentioned process that the IPv6 message is translated as to the IPv4 message, NAT64 module 40 is carried out rule match or mapping relationship searching and each field in message is changed or during the operation such as translation, its inside does not all have strict sequence requirement, can suitably adjust as required in the specific implementation.
The method of the present embodiment IPv6 host access IPv4 server by the coupling presetting rule, search mapping relations and to method that in message, each field is translated, changed, realized IPv6 is translated into the beneficial effect of IPv4, improve the convenience of IPv6 host access IPv4 server, promoted user's experience.
With reference to Fig. 7, Fig. 7 is translated as the 2nd IPv6 message one embodiment schematic flow sheet by the 2nd IPv4 message in the method for IPv6 host access IPv4 server of the present invention; As shown in Figure 7, in the method for IPv6 host access IPv4 server of the present invention, step S03, the step that the 2nd IPv4 message is translated as to the 2nd IPv6 message specifically comprise:
Step S21, according to described the 2nd IPv4 message destination address, search described mapping relations table, judge whether the mapping relations of described the 2nd IPv4 message and described the 2nd IPv6 message exist; If perform step S22; If not, perform step S23;
Carry out the presetting rule coupling according to the source address of message, the presetting rule in the present embodiment and mapping relations are consistent with presetting rule and the mapping relations in above-mentioned Fig. 6 embodiment.In a preferred embodiment, when shape as { src 192.168.1.254,80, dst 1.0.0.1, when the TCP message of the IPv4 of 3600} is processed through NAT64 module 40, at first can carry out rule match according to the source address of this IPv4, and according to the destination address of this IPv4 message, search the mapping relations table, judge whether the mapping relations of this IPv4 message and described the 2nd IPv6 message exist.
Step S22, according to described mapping relations, described the 2nd IPv4 message is translated as to the 2nd IPv6 message.
If the mapping relations of this described the 2nd IPv4 message and described the 2nd IPv6 message exist, based on presetting rule, carry out the conversion of source address and port, be about to 192.168.1.254,80} is converted to { 2001:C68:E90:1AFF::C0A8:01FE, 8080}; After converting, based on mapping relations, carry out the conversion of IPv4 to the IPv6 destination address, be about to 1.0.0.1 and be mapped as 2001:C68:A30:806::2012; And then carry out the translation of IPv4 to contents such as the protocol version in the IPv6 header, tos value, message length, burst information, upper-layer protocols, whole message is translated as to an IPv6 message; After having translated, carry out verification and the calculating of related data in the IPv6 message; Now, be over and the IPv4 message intactly be translated as to the overall process of IPv6 message.
Step S23, by described the 2nd IPv4 packet loss;
If the mapping relations of this described the 2nd IPv4 message and described the 2nd IPv6 message do not exist, by described the 2nd IPv4 packet loss.
Particularly, in a preferred embodiment, the uplink message from HGW LAN side to WAN side PDN6 that IPv4 sends from HNS4 to the message of IPv6 direction, shape is as { src:hns4-ipv4, the IPv4 message of dst:temp-ipv4}, for this type of message, NAT64 can first search mapping relations table as above based on destination address, as find mapping relations can temp-ipv4 be mapped as to a PDN6GUA based on this relation, can abandon this message as can not find; Then based on transformation rule, hns4-ipv4 is converted to ipv6-gua; For the TCP/UDP message, also need to carry out the source port conversion according to the port translation information in rule in addition; After completing above conversion, need again the fields such as the protocol version in the IPv4 header, tos value, message length, burst information, upper-layer protocol to be translated as respectively to corresponding field value in the IPv6 header; Finally upgrade again corresponding checksum field and complete the translation conversion of IPv4 to the IPv6 message.
In the above-mentioned process that the IPv4 message is translated as to the IPv6 message, NAT64 module 40 is carried out rule match or mapping relationship searching and each field in message is changed or during the operation such as translation, its inside does not all have strict sequence requirement, can suitably adjust as required in the specific implementation.
The method of the present embodiment IPv6 host access IPv4 server by the coupling presetting rule, search mapping relations and to method that in message, each field is translated, changed, realized IPv4 is translated into the beneficial effect of IPv6, improve the convenience of IPv6 host access IPv4 server, promoted user's experience.
With reference to Fig. 8, Fig. 8 sets up the mapping relations table one embodiment schematic flow sheet of HNS4 domain name and IPv6GUA in the method for IPv6 host access IPv4 server of the present invention; As shown in Figure 8, in the method for IPv6 host access IPv4 server of the present invention, step S10, the step of setting up the mapping relations table of HNS4 domain name and IPv6 GUA specifically comprise:
Step S31, set up the IPv4 private net address of HNS4 and the transformational relation of IPv6 GUA;
At first, based on presetting rule, set up the IPv4 private net address of HNS4 and the transformational relation of IPv6GUA on IP device administration module 10;
Step S32, according to described transformational relation, set up the mapping relations table of HNS4 domain name and described IPv6 GUA, and described mapping relations table reported;
With reference to Fig. 9, Fig. 9 is that in the method for IPv6 host access IPv4 server of the present invention, the HNS4 domain name reports with the mapping relations of IPv6 GUA and upgrades the sequence one embodiment signaling flow graph that cooperates; As shown in Figure 9, at IP device administration module 10, set up the IPv4 private net address of HNS4 and the transformational relation of an IPv6 GUA address, according to described transformational relation, and then set up the mapping relations by HNS4 domain name and IPv6 GUA; Then by IP device administration module 10, described mapping relations are passed to the DDNS client 20 on HGW, and finally report the DDNS server on public network by DDNS client 20.
Step S33, detect described HNS4 domain name and whether described IPv6 GUA upgrades; If perform step S34; If not, perform step S35;
Step S34, the described mapping relations table that upgrades in time, and the mapping relations table after upgrading is reported;
Step S35, to maintain original mapping relations table constant.
Because the IPv4 private net address of HNS4, IPv6 address and the prefix information that HGW obtains all likely change, the IPv6 GUA corresponding with the HNS4 domain name also may change, IP device administration module 10 can detect this variation in time, and trigger the mapping relations that DDNS client 20 is upgraded HNS4 domain name and IPv6 GUA, and the mapping relations after upgrading are reported; Guarantee that thus the corresponding relation of HNS4 domain name and IPv6 GUA is always in effective status.
The method of the present embodiment IPv6 host access IPv4 server is upgraded described mapping relations by mapping relations the detection at any time of setting up HNS4 domain name and IPv6GUA, the method that simultaneously described mapping relations reported, realized improving the beneficial effect of IPv6 host access IPv4 server convenience.
With reference to Figure 10, Figure 10 is the system first example structure schematic diagram of IPv6 host access IPv4 server of the present invention;
Request receiving module 01, the access request of carrying an IPv6 message for reception;
When PND6 is used domain name to conduct interviews to HNS4, its access request can be converted to the access to IPv6 GUA by the IPv6 dns resolution, this access request finally also can be forwarded on HGW, request receiving module 01 receives the access request of carrying an IPv6 message, so just can complete by the NAT64 function on HGW the mutual translation between IPv6 and IPv4 agreement and then complete communicating by letter between PND6 and HNS4;
Downlink message module 02, for according to presetting rule and mapping relations table, be translated as a described IPv6 message the one IPv4 message of initialize format;
Downlink message module 02, according to the mapping relations table between presetting rule and IPv6 and IPv4 agreement, is translated as a described IPv6 message to be treated to an IPv4 message that can be forwarded on HNS4.The configuration of described presetting rule please refer to the description of Fig. 2 and Fig. 3 embodiment, does not repeat them here.
Uplink message module 03, be the 2nd IPv4 message for the response message that receives HNS4, described the 2nd IPv4 message is translated as to the 2nd IPv6 message, and described the 2nd IPv6 message is sent to the IPv6 main frame.
In a preferred embodiment, after completing the configuration of presetting rule, in NAT64 module 40, carry out in the process of IPv6 and the mutual translation of IPv4 agreement, HGW can be based on described presetting rule, and the response message that receives HNS4 is the 2nd IPv4 message; Described HGW also can be limited the PND6 visited; Based on described presetting rule, uplink message module 03 is translated as the 2nd IPv6 message by described the 2nd IPv4 message, and described the 2nd IPv6 message is sent to the IPv6 main frame, allows the access of IPv6 main frame to the IPv4 server; In a preferred embodiment, uplink message module 03 also can be by address and port translation to external shield HNS4.
In the present embodiment server, PND6 access HNS4 whole scene message processing procedure please refer to Fig. 4 embodiment, does not repeat them here.
The present embodiment server when at PND6, using domain name to conduct interviews to HNS4, completes the method for translating mutually between IPv6 and IPv4 agreement by HGW, realized the beneficial effect of communicating by letter between PND6 and HNS4, the fail safe that greatly improves HNS4.
With reference to Figure 11, Figure 11 is the system second example structure schematic diagram of IPv6 host access IPv4 server of the present invention; As shown in figure 11, on the basis of the system of Figure 10 example I Pv6 host access IPv4 server, added following module:
Module 04 is set up in mapping, for according to described presetting rule, sets up the mapping relations table of HNS4 domain name and IPv6 GUA.
According to presetting rule, module 04 registration HNS4 domain name in associated mechanisms is in advance set up in mapping, and sets up the mapping relations between HNS4 private network IPv4 address and IPv6 GUA; And the mapping relations between HNS4 domain name and IPv6 GUA are reported to the DDNS server on the IPv6 public network, to guarantee the validity of HNS4 domain name in the IPv6 network.In a preferred embodiment, mapping is set up mode that module 04 reports described mapping relations and is adopted and periodically report or mode that condition triggers reports.
In a preferred embodiment, in the system of IPv6 host access IPv4 server, when mapping sets up that module 04 changes in the IPv4 address of HNS4 or IPv6 address and prefix information change, all can again form the mapping relations of HNS4 domain name and IPv6 address and trigger 20 pairs of described new mapping relations of DDSN client and upgraded and report.
The system of the present embodiment IPv6 host access IPv4 server is by the mapping relations table of setting up HNS4 domain name and IPv6 GUA according to presetting rule the method that described mapping relations table is reported, improve the convenience of IPv6 host access IPv4 server, promoted user's experience.
With reference to Figure 12, Figure 12 is downlink message module one example structure schematic diagram in the system of IPv6 host access IPv4 server of the present invention; As shown in figure 12, in the system of IPv6 host access IPv4 server of the present invention, downlink message module 02 specifically comprises:
Whether rule match unit 021, mate for the destination address and the described presetting rule that judge a described IPv6 message;
In a preferred embodiment, if the following rule of server configuration { 192.168.1.254, 80, 2001:C68:E90:1AFF::C0A8:01FE, 8080, TCP, 2001:C68:A30:806::2012}, rule match unit 021 carries out rule match according to the destination address of a described IPv6 message, as { src2001:C68:A30:806::2012, 3600, dst 2001:C68:E90:1AFF::C0A8:01FE, when the NAT64 module 40 of the TCP message of 8080} in HGW processed, at first rule match unit 021 can carry out rule match according to its destination address 2001:C68:E90:1AFF::C0A8:01FE, whether the destination address and the described presetting rule that judge a described IPv6 message mate.
Fields match unit 022, while not mating for the destination address at a described IPv6 message and described presetting rule, judge whether the PND6 GUA of a described IPv6 message meets preset field restriction requirement;
For there is no rule or not mating with presetting rule, fields match unit 022 checks whether the destination address of described IPv6 meets the processing policy conversion of system default, and checks whether PND6 GUA meets the restriction requirement of described presetting rule remote-ipv6 field; If do not meet this restriction requirement, illustrate that the access of this PND6 is not allowed to, fields match unit 022 is by an IPv6 packet loss.
Downlink message translation unit 023, during for the destination address at a described IPv6 message and described presetting rule coupling, or the destination address of a described IPv6 message and described presetting rule are not mated but the PND6 GUA of a described IPv6 message meets described preset field restriction while requiring, according to described presetting rule, a described IPv6 message is translated as to an IPv4 message of initialize format.
If the destination address of a described IPv6 message and described presetting rule coupling, perhaps at the destination address of a described IPv6 message and described presetting rule is not mated but the PND6GUA of a described IPv6 message meets described preset field restriction requirement, fields match unit 022 can be translated the IPv6 message; The rule-based destination address by a described IPv6 message in fields match unit 022 is converted to the IPv4 address of HNS4; In a preferred embodiment, distance host carries out validity checking, checks that whether the remote-ipv6 in rule is consistent with the source address of message, in the present embodiment, is 2001:C68:A30:806::2012, and the two is consistent; Then fields match unit 022 carries out the conversion of IPv6 to IPv4 destination address and port, fields match unit 022 general in the present embodiment 2001:C68:E90:1AFF::C0A8:01FE, 8080} is converted to { 192.168.1.254,80}; After converting, fields match unit 022 carries out IPv6 and shines upon to the IPv4 source address; { 1.0.0.1,2001:C68:A30:806::2012} are about to 2001:C68:A30:806::2012 and are mapped as 1.0.0.1 to set up mapping relations in the present embodiment; After mapping relations have been set up, fields match unit 022 carries out the translation of IPv6 to contents such as the protocol version in the IPv4 header, stream label, TC value, payload length, burst information, upper-layer protocols, and whole IPv6 message is translated as to an IPv4 message; After having translated, fields match unit 022 carries out verification and the calculating of related data in the IPv4 message; So just, the IPv6 message intactly is translated as to the IPv4 message.
In a preferred embodiment, for meeting the access of PND6 to HNS4, HGW need to safeguard that one is recorded PND6 address and TEMP IPv4(IPv4 temporary address) the mapping relations table.Described TEMP IPv4 is only in HGW and the inner use of home network, so the range of choice of TEMP IPv4 can have larger variation, this TEMP IPv4 of general warranty and HGW LAN side do not get final product at the same network segment, and in the present embodiment, described TEMP IPv4 can be 1.0.0.0/16; Accordingly, just downlink message translation unit 023 can be converted to the source address of IPv6 message an address in the TEMP IPv4 network segment, as 1.0.0.1; For the TCP/UDP message, downlink message translation unit 023 also needs to carry out the destination interface conversion according to the port translation information in presetting rule; After completing above conversion, downlink message translation unit 023 needs again the fields such as the protocol version in the IPv6 header, stream label, TC value, payload length, burst information, upper-layer protocol to be translated as respectively to corresponding field value in the IPv4 header; Finally, downlink message translation unit 023 upgrades corresponding checksum field again and completes IPv6 to the translation of IPv4 message conversion.
In above-mentioned IP v6 host access IPv4 server system, downlink message translation unit 023 is translated as the IPv6 message in the process of IPv4 message, carry out rule match or mapping relationship searching and each field in message is changed or during the operation such as translation, its inside does not all have strict sequence requirement, can suitably adjust as required in the specific implementation.
The system of the present embodiment IPv6 host access IPv4 server by the coupling presetting rule, search mapping relations and to method that in message, each field is translated, changed, realized IPv6 is translated into the beneficial effect of IPv4, improve the convenience of IPv6 host access IPv4 server, promoted user's experience.
With reference to Figure 13, Figure 13 is uplink message module one example structure schematic diagram in the system of IPv6 host access IPv4 server of the present invention; As shown in figure 13, in the system of IPv6 host access IPv4 server of the present invention, uplink message module 03 specifically comprises:
Response message receiving element 031 is the 2nd IPv4 message for the response message that receives IPv4 home network device HNS4;
HNS4 is that the 2nd IPv4 message sends to HGW by response message, response message receiving element 031 on HGW receives the 2nd IPv4 message of described HNS4, carry out the presetting rule coupling according to the source address of message, the presetting rule in the present embodiment and mapping relations are consistent with the presetting rule in the various embodiments described above and mapping relations.In a preferred embodiment, when shape as { src 192.168.1.254,80, dst1.0.0.1, when the TCP message of the IPv4 of 3600} is processed through NAT64 module 40, at first NAT64 module 40 can carry out rule match according to the source address of this IPv4, and according to the destination address of this IPv4 message, search the mapping relations table, judge whether the mapping relations of this IPv4 message and described the 2nd IPv6 message exist.
Uplink message translation unit 032, while existing for the mapping relations of described the 2nd IPv4 message and described the 2nd IPv6 message, according to described mapping relations, be translated as the 2nd IPv6 message by described the 2nd IPv4 message.
If the mapping relations of this described the 2nd IPv4 message and described the 2nd IPv6 message exist, uplink message translation unit 032 carries out the conversion of source address and port based on presetting rule, will 192.168.1.254,80} is converted to { 2001:C68:E90:1AFF::C0A8:01FE, 8080}; After converting, uplink message translation unit 032, based on mapping relations, carries out the conversion of IPv4 to the IPv6 destination address, is about to 1.0.0.1 and is mapped as 2001:C68:A30:806::2012; Then uplink message translation unit 032 carries out the translation of IPv4 to contents such as the protocol version in the IPv6 header, tos value, message length, burst information, upper-layer protocols again, and whole message is translated as to an IPv6 message; After having translated, uplink message translation unit 032 carries out verification and the calculating of related data in the IPv6 message; Now, uplink message translation unit 032 is over and the IPv4 message intactly is translated as to the overall process of IPv6 message.
If the mapping relations of this described the 2nd IPv4 message and described the 2nd IPv6 message do not exist, uplink message translation unit 032 is by described the 2nd IPv4 packet loss.
In the system of the present embodiment IPv6 host access IPv4 server, uplink message translation unit 032 is translated as the IPv4 message in the process of IPv6 message, carry out rule match or mapping relationship searching and each field in message is changed or during the operation such as translation, its inside does not all have strict sequence requirement, can suitably adjust as required in the specific implementation.
The system of the present embodiment IPv6 host access IPv4 server by the coupling presetting rule, search mapping relations and to method that in message, each field is translated, changed, realized IPv4 is translated into the beneficial effect of IPv6, improve the convenience of IPv6 host access IPv4 server, promoted user's experience.
With reference to Figure 14, Figure 14 is that in the system of IPv6 host access IPv4 server of the present invention, module one example structure schematic diagram is set up in mapping.As shown in figure 14, in the system of IPv6 host access IPv4 server of the present invention, mapping is set up module 04 and is specifically comprised:
Transformational relation is set up unit 041, for the IPv4 private net address of setting up HNS4 and the transformational relation of IPv6 GUA;
At first, based on presetting rule, transformational relation is set up unit 041 and is set up the IPv4 private net address of HNS4 and the transformational relation of IPv6 GUA;
Mapping is set up and is reported unit 042, for according to described transformational relation, sets up the mapping relations table of HNS4 domain name and described IPv6 GUA, and described mapping relations table is reported;
With reference to Fig. 9, Fig. 9 is that in the method for IPv6 host access IPv4 server of the present invention, the HNS4 domain name reports with the mapping relations of IPv6 GUA and upgrades the sequence one embodiment signaling flow graph that cooperates; As shown in Figure 9, mapping is set up and is reported unit 042 to set up according to transformational relation the transformational relation that unit 041 is set up, and sets up the mapping relations by HNS4 domain name and IPv6 GUA; Mapping is set up and is reported unit 042 that described mapping relations are passed to the DDNS client 20 on HGW, and finally reports the DDNS server on public network by DDNS client 20.
Upgrade detecting unit 043, whether upgrade for detection of described HNS4 domain name and described IPv6 GUA;
Because the IPv4 private net address of HNS4, IPv6 address and the prefix information that HGW obtains all likely change, the IPv6 GUA corresponding with the HNS4 domain name also may change, therefore, upgrade that detecting unit 043 detects described HNS4 domain name at any time and whether described IPv6 GUA changes;
Renewal reports unit 044, for when described HNS4 domain name and described IPv6 GUA have renewal, and the described mapping relations table that upgrades in time, and the mapping relations table after upgrading is reported.
When upgrading detecting unit 043 and HNS4 domain name and IPv6 GUA any one detected and change, upgrade and report unit 044 according to this variation, the HNS4 domain name that upgrades in time and IPv6 GUA mapping relations table, and the mapping relations table after upgrading is reported; Guarantee that thus the corresponding relation of HNS4 domain name and IPv6 GUA is always in effective status.
The system of the present embodiment IPv6 host access IPv4 server is upgraded described mapping relations by mapping relations the detection at any time of setting up HNS4 domain name and IPv6GUA, the method that simultaneously described mapping relations reported, realized improving the beneficial effect of IPv6 host access IPv4 server convenience.
The foregoing is only the preferred embodiments of the present invention; not thereby limit its scope of the claims; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.

Claims (10)

1. the method for an IPv6 host access IPv4 server, is characterized in that, comprises the following steps:
The access request of an IPv6 message is carried in reception;
According to presetting rule and mapping relations table, a described IPv6 message is translated as to an IPv4 message of initialize format;
The response message that receives IPv4 home network device HNS4 is the 2nd IPv4 message, described the 2nd IPv4 message is translated as to the 2nd IPv6 message, and described the 2nd IPv6 message is sent to the IPv6 main frame.
2. the method for IPv6 host access IPv4 server according to claim 1, is characterized in that, the step that the access request of an IPv6 message is carried in described reception also comprises step before:
According to described presetting rule, set up the mapping relations table of HNS4 domain name and IPv6 global unicast address GUA.
3. the method for IPv6 host access IPv4 server according to claim 1, is characterized in that, described according to presetting rule, and the step that an IPv6 message is translated as to an IPv4 message of initialize format specifically comprises:
Whether the destination address and the described presetting rule that judge a described IPv6 message mate;
If, according to described presetting rule, a described IPv6 message is translated as to an IPv4 message of initialize format;
Whether the public network IP v6 equipment PND6 GUA that if not, judges a described IPv6 message meets preset field restriction requirement;
If meet described preset field restriction requirement, according to described presetting rule, a described IPv6 message is translated as to an IPv4 message of initialize format.
4. the method for IPv6 host access IPv4 server according to claim 1 and 2, is characterized in that, the described step that the 2nd IPv4 message is translated as to the 2nd IPv6 message specifically comprises:
According to described the 2nd IPv4 message destination address, search described mapping relations table, judge whether the mapping relations of described the 2nd IPv4 message and described the 2nd IPv6 message exist;
If, according to described mapping relations, described the 2nd IPv4 message is translated as to the 2nd IPv6 message.
5. the method for IPv6 host access IPv4 server according to claim 2, is characterized in that, the step of the mapping relations table of the described HNS4 of foundation domain name and IPv6 GUA specifically comprises:
Set up the IPv4 private net address of HNS4 and the transformational relation of IPv6 GUA;
According to described transformational relation, set up the mapping relations table of HNS4 domain name and described IPv6 GUA, and described mapping relations table is reported;
Detect described HNS4 domain name and whether described IPv6 GUA upgrades;
If, the described mapping relations table that upgrades in time, and the mapping relations table after upgrading is reported.
6. the system of an IPv6 host access IPv4 server, is characterized in that, comprising:
The request receiving module, the access request of carrying an IPv6 message for reception;
The downlink message module, for according to presetting rule and mapping relations table, be translated as a described IPv6 message the one IPv4 message of initialize format;
The uplink message module, be the 2nd IPv4 message for the response message that receives HNS4, described the 2nd IPv4 message is translated as to the 2nd IPv6 message, and described the 2nd IPv6 message is sent to the IPv6 main frame.
7. the system of IPv6 host access IPv4 server according to claim 6, is characterized in that, also comprises:
Module is set up in mapping, for according to described presetting rule, sets up the mapping relations table of HNS4 domain name and IPv6 GUA.
8. the system of IPv6 host access IPv4 server according to claim 6, is characterized in that, described downlink message module specifically comprises:
Whether the rule match unit, mate for the destination address and the described presetting rule that judge a described IPv6 message;
The fields match unit, while not mating for the destination address at a described IPv6 message and described presetting rule, judge whether the PND6 GUA of a described IPv6 message meets preset field restriction requirement;
The downlink message translation unit, during for the destination address at a described IPv6 message and described presetting rule coupling, or the destination address of a described IPv6 message and described presetting rule are not mated but the PND6 GUA of a described IPv6 message meets described preset field restriction while requiring, according to described presetting rule, a described IPv6 message is translated as to an IPv4 message of initialize format.
9. according to the system of the described IPv6 host access of claim 6 or 7 IPv4 server, it is characterized in that, described uplink message module specifically comprises:
The response message receiving element is the 2nd IPv4 message for the response message that receives IPv4 home network device HNS4;
The uplink message translation unit, while existing for the mapping relations of described the 2nd IPv4 message and described the 2nd IPv6 message, according to described mapping relations, be translated as the 2nd IPv6 message by described the 2nd IPv4 message.
10. the system of IPv6 host access IPv4 server according to claim 7, is characterized in that, described mapping is set up module and specifically comprised:
Transformational relation is set up unit, for the IPv4 private net address of setting up HNS4 and the transformational relation of IPv6 GUA;
Mapping is set up and is reported unit, for according to described transformational relation, sets up the mapping relations table of HNS4 domain name and described IPv6GUA, and described mapping relations table is reported;
Upgrade detecting unit, whether upgrade for detection of described HNS4 domain name and described IPv6 GUA;
Renewal reports unit, for when described HNS4 domain name and described IPv6 GUA have renewal, and the described mapping relations table that upgrades in time, and the mapping relations table after upgrading is reported.
CN2012101592515A 2012-05-22 2012-05-22 Method and system for IPv6 host to have access to IPv4 server Pending CN103428303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101592515A CN103428303A (en) 2012-05-22 2012-05-22 Method and system for IPv6 host to have access to IPv4 server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101592515A CN103428303A (en) 2012-05-22 2012-05-22 Method and system for IPv6 host to have access to IPv4 server

Publications (1)

Publication Number Publication Date
CN103428303A true CN103428303A (en) 2013-12-04

Family

ID=49652467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101592515A Pending CN103428303A (en) 2012-05-22 2012-05-22 Method and system for IPv6 host to have access to IPv4 server

Country Status (1)

Country Link
CN (1) CN103428303A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856580A (en) * 2014-03-26 2014-06-11 清华大学 Access method for IPv6 client to IPv4 server
CN104270475A (en) * 2014-09-03 2015-01-07 武汉烽火网络有限责任公司 System and method for achieving intercommunication between IPv4 network and IPv6 network based on NAT64
CN104735073A (en) * 2015-03-30 2015-06-24 广州杰赛科技股份有限公司 IPv4-IPv6 transitional protocol dispatching method and device
CN105282102A (en) * 2014-06-30 2016-01-27 中国电信股份有限公司 Data stream processing method and system, and IPv6 data processing equipment
CN105681481A (en) * 2014-11-18 2016-06-15 中兴通讯股份有限公司 Method and device for realizing network translation to IPv6 (Internet Protocol Version 6) based on PNAT (Prefix Network Address Translation) and terminal device
CN111049947A (en) * 2019-12-26 2020-04-21 杭州迪普科技股份有限公司 Message forwarding method and device, electronic equipment and storage medium
CN111225038A (en) * 2019-12-23 2020-06-02 山石网科通信技术股份有限公司 Server access method and device
CN116132397A (en) * 2022-11-28 2023-05-16 赛尔新技术(北京)有限公司 IPv 6-to-IPv 4 conversion method and conversion device
CN116192742A (en) * 2022-12-15 2023-05-30 四川天邑康和通信股份有限公司 Routing acceleration method and system based on application

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225911A1 (en) * 2002-05-29 2003-12-04 Samsung Electronics Co., Ltd. Method and apparatus for communicating data between IPv4 and IPv6
CN1476206A (en) * 2003-07-14 2004-02-18 中国科学院计算技术研究所 Method of breakthrough NAT using dual tunnel mechanism
CN101009941A (en) * 2007-01-15 2007-08-01 中山大学 A method for realizing the communication between the mobile IPv4 node and IPv6 communication node
CN101247308A (en) * 2007-02-13 2008-08-20 上海亿人通信终端有限公司 Tunnel packet processing method for implementing IPv6 traversing IPv4 based on network processor
CN101262410A (en) * 2007-03-07 2008-09-10 上海亿人通信终端有限公司 Implementation method for DNS application gateway based on NAT-PT
CN101431477A (en) * 2008-12-17 2009-05-13 清华大学 P2P operator and campus network router combined IPv4/IPv6 grouping conversion method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225911A1 (en) * 2002-05-29 2003-12-04 Samsung Electronics Co., Ltd. Method and apparatus for communicating data between IPv4 and IPv6
CN1476206A (en) * 2003-07-14 2004-02-18 中国科学院计算技术研究所 Method of breakthrough NAT using dual tunnel mechanism
CN101009941A (en) * 2007-01-15 2007-08-01 中山大学 A method for realizing the communication between the mobile IPv4 node and IPv6 communication node
CN101247308A (en) * 2007-02-13 2008-08-20 上海亿人通信终端有限公司 Tunnel packet processing method for implementing IPv6 traversing IPv4 based on network processor
CN101262410A (en) * 2007-03-07 2008-09-10 上海亿人通信终端有限公司 Implementation method for DNS application gateway based on NAT-PT
CN101431477A (en) * 2008-12-17 2009-05-13 清华大学 P2P operator and campus network router combined IPv4/IPv6 grouping conversion method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856580B (en) * 2014-03-26 2017-06-13 清华大学 A kind of method that IPv6 client computer accesses IPv4 servers
CN103856580A (en) * 2014-03-26 2014-06-11 清华大学 Access method for IPv6 client to IPv4 server
CN105282102B (en) * 2014-06-30 2019-03-15 中国电信股份有限公司 Data flow processing method and system and IPv6 data processing equipment
CN105282102A (en) * 2014-06-30 2016-01-27 中国电信股份有限公司 Data stream processing method and system, and IPv6 data processing equipment
CN104270475B (en) * 2014-09-03 2017-10-10 武汉烽火网络有限责任公司 The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64
CN104270475A (en) * 2014-09-03 2015-01-07 武汉烽火网络有限责任公司 System and method for achieving intercommunication between IPv4 network and IPv6 network based on NAT64
CN105681481A (en) * 2014-11-18 2016-06-15 中兴通讯股份有限公司 Method and device for realizing network translation to IPv6 (Internet Protocol Version 6) based on PNAT (Prefix Network Address Translation) and terminal device
CN104735073A (en) * 2015-03-30 2015-06-24 广州杰赛科技股份有限公司 IPv4-IPv6 transitional protocol dispatching method and device
CN111225038A (en) * 2019-12-23 2020-06-02 山石网科通信技术股份有限公司 Server access method and device
CN111049947A (en) * 2019-12-26 2020-04-21 杭州迪普科技股份有限公司 Message forwarding method and device, electronic equipment and storage medium
CN111049947B (en) * 2019-12-26 2023-03-28 杭州迪普科技股份有限公司 Message forwarding method and device, electronic equipment and storage medium
CN116132397A (en) * 2022-11-28 2023-05-16 赛尔新技术(北京)有限公司 IPv 6-to-IPv 4 conversion method and conversion device
CN116132397B (en) * 2022-11-28 2024-05-14 赛尔新技术(北京)有限公司 IPv 6-to-IPv 4 conversion method and conversion device
CN116192742A (en) * 2022-12-15 2023-05-30 四川天邑康和通信股份有限公司 Routing acceleration method and system based on application

Similar Documents

Publication Publication Date Title
CN103428303A (en) Method and system for IPv6 host to have access to IPv4 server
Jara et al. Glowbal IP: An adaptive and transparent IPv6 integration in the Internet of Things
Liu et al. Efficient naming, addressing and profile services in Internet-of-Things sensory environments
US8942212B2 (en) Autoconfiguration system for wireless sensor network and its method, and gateway apparatus for wireless sensor network
CN107113299B (en) Allocation of leases to devices
WO2016019287A2 (en) Mechanism and service for device naming
US8526352B2 (en) Method of controlling an entity of a remote network from a local network
CN103685592B (en) A kind of wireless bridge and the method for realizing dhcp address application
EP2922321A1 (en) 6lowpan network-based service discovery method and apparatus
WO2013143137A1 (en) Content centric m2m system
CN103688516B (en) There is provided the method for public accessibility and in relation to system and device
WO2017030943A1 (en) Enhanced coap group communications with selective responses
US11223989B2 (en) Method for managing handover roaming
EP2466806A1 (en) Method and system for implementing network intercommunication
KR102270909B1 (en) Multimedia sharing method, registration method, server and proxy server
CN103716189A (en) Configuration management method for local area network terminal gateway equipment
CN104683994A (en) Wireless network configuration method and wireless network devices
CN106604119A (en) Network penetrating method and system of intelligent TV private cloud equipment
KR20170124055A (en) APPARATUS FOR COMPATIBILITY BETWEEN ZIGBEE AND CoAP
WO2011116598A1 (en) Method and system for achieving management of gateway
CN202094935U (en) Dynamic IP network based remote switch signal control system
US11683275B2 (en) Device and method for interconnecting two subnetworks
CN102196417B (en) Method for user-side equipment and user-side equipment, control equipment
Ziegler et al. Scalable integration framework for heterogeneous smart objects, applications and services
CN102857907A (en) Equipment abstract in self-organization wireless local area network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20131204