CN102196051B - Terminal communication method, system and device - Google Patents

Terminal communication method, system and device Download PDF

Info

Publication number
CN102196051B
CN102196051B CN201010117736.9A CN201010117736A CN102196051B CN 102196051 B CN102196051 B CN 102196051B CN 201010117736 A CN201010117736 A CN 201010117736A CN 102196051 B CN102196051 B CN 102196051B
Authority
CN
China
Prior art keywords
address
dns
type
terminal
inquiry request
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
CN201010117736.9A
Other languages
Chinese (zh)
Other versions
CN102196051A (en
Inventor
刘大鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201010117736.9A priority Critical patent/CN102196051B/en
Publication of CN102196051A publication Critical patent/CN102196051A/en
Application granted granted Critical
Publication of CN102196051B publication Critical patent/CN102196051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a terminal communication method, a terminal communication system and a terminal communication device. The main technical scheme comprises the following steps of: receiving a domain name system (DNS) query request from a terminal, and acquiring a corresponding Internet protocol (IP) address according to the DNS query request; determining an IP address type corresponding to an opposite communication terminal of the terminal according to an IP address acquisition result; and carrying the determined IP address type into a generated DNS record, and transmitting the DNS record to the terminal. Correspondingly, the terminal communicates with the opposite communication terminal by utilizing the IP address type corresponding to IP address type information in the DNS record. In the technical scheme, a translator used for converting an Internet protocol version 6 (IPv6) address into an Internet protocol version 4 (IPv4) address is not required to be set, thereby reducing additional signaling overhead; and if the terminal is a dual-stack terminal, the dual-stack capability of the terminal can be effectively utilized.

Description

A kind of method, system and device of realizing terminal communication
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method, system and device of realizing terminal communication.
Background technology
Along with the development of network technology and the expansion of network size, IPv4 (Internet Protocol version4) can not meet the requirement of network Development.IPv6 (Internet Protocol version6), as the alternate version of IPv4, can provide huge address space, and have the not available new features of many IPv4, is subject to increasing attention.Seldom, the problem of address exhaustion is particularly outstanding for the IPv4 number of addresses having due to China, and China is just carrying forward vigorously the research and development of IPv6.But due to IPv4 agreement, used very extensively at present, the application program based on IPv4 and equipment are quite ripe and have suitable scale, can not complete in a short time all upgradings changes.And on the other hand, the application program of IPv6 and equipment are ripe not enough, therefore, it will be a very long process that IPv6 replaces IPv4.Within a very long time, IPv4 and IPv6 network can Long Coexistences.
At present, support that the major technique of communicating by letter between node in IPv6 network and the node in IPv4 network is NATPT technology, i.e. network address translation protocol conversion.The basic technique principle of NATPT is: gateway (appellation NATPT gateway) is set between IPv4 network and IPv6 network, the data message of diversity of protocol versions is carried out to address transition and protocol conversion, from the data message of IPv4 network destined IPv6 network, will convert the message of IPv6 form to; From the data message of IPv6 network destined IPv4 network, to convert the message of IPv4 form to.NATPT gateway is responsible for safeguarding the mapping table of an IPv4 address pool and IPv4 address and IPv6 address.Address transition for IPv6 to IPv4, NATPT gateway distributes an available mapping IPv6 address, IPv4 address from address pool; Address transition for IPv4 to IPv6, NATPT gateway adds the NATPT gateway prefix of 96 before IPv4 address.
In order to make IPv4 and IPv6 there is better compatibility, IETF (Internet Engineering TaskForce Internet, engineering duty group) formulating the new standard-NAT (Network Address Translation, network address translation) 64 that substitutes NATPT at present.NAT64 server by the separating function of the DNS realizing in NATPT (name server) ALG (ALG) out, is put in DNS system and realizes, and this amended DNS system is called DNS64.Its basic principle is: when a main frame that is arranged in IPv6 network sends the DNS inquiry request of AAAA type, DNS64 forwards this inquiry request, if do not get the DNS record of AAAA type, DNS64 sends the dns resolution request of category-A type, if get the DNS record of category-A type, DNS64 can be according to the IPv4 address information in this DNS record, the translation prefix of affix NAT64, the DNS record that generates AAAA type, sends to IPv6 main frame.
By the operation principle of above-mentioned DNS64, there is the situation of DNS64 to the deception of IPv6 main frame, IPv6 main frame does not know that the Correspondent Node of oneself is real IPv6 main frame or the IPv4 main frame that need to translate through NAT64.The address style obtaining due to IPv6 main frame is IPv6 address all the time, IPv6 main frame is communicated by letter with Correspondent Node with IPv6 address all the time, when Correspondent Node is actual while being IPv4 main frame, for proper communication, in network, needing to be provided for by IPv6 address transition is the translater of IPv4 address so; Even and make the two stack main frames of IPv6 be arranged in dual-stack network also cannot to use IPv4 protocol stack to communicate, this is obviously totally unfavorable to the two stacks of actual deployment and NAT64.
In sum, in order realizing in the network merging at IPv6 and IPv4, to realize proper communication, in system, to need to arrange translater, thereby increased extra signaling consumption, and fail effectively to utilize two stack capabilities of terminal during for pair stack terminal when terminal.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method, system and device of realizing terminal communication, adopts this technical scheme, has reduced signaling consumption in system, and can effectively utilize two stack capabilities of terminal.
The embodiment of the present invention is achieved through the following technical solutions:
According to the embodiment of the present invention aspect, provide a kind of method that realizes terminal communication.
The method that realizes terminal communication providing according to the embodiment of the present invention, comprising:
Terminal sends domain name server (DNS) inquiry request to network side, and receives the DNS record that network side sends according to described DNS inquiry request, carries the IP address class type information corresponding to Correspondent Node of described terminal in described DNS record;
Utilize IP address class type corresponding to described IP address class type information carrying with described DNS record to communicate by letter with described Correspondent Node.
According to the embodiment of the present invention aspect, provide a kind of method that realizes terminal communication.
The method that realizes terminal communication providing according to the embodiment of the present invention, comprising:
The domain name server (DNS) inquiry request that receiving terminal sends, and obtain corresponding IP address according to described DNS inquiry request;
According to the result of obtaining to described IP address, determine the IP address class type corresponding to Correspondent Node of described terminal;
The described IP address class type information of determining is carried in the DNS record of generation and sends to described terminal.
According to another aspect of the embodiment of the present invention, also provide a kind of system that realizes terminal communication.
The system that realizes terminal communication providing according to the embodiment of the present invention, comprises terminal and network address translation services device; Wherein,
Described terminal, for sending domain name server (DNS) inquiry request to described network address translation services device, and receive the DNS record that described network address translation services device sends according to described DNS inquiry request, in described DNS record, carry the IP address class type information corresponding to Correspondent Node of described terminal; And, utilize IP address class type corresponding to described IP address class type information carrying with described DNS record to communicate by letter with described Correspondent Node;
Described network address translation services device, the DNS inquiry request sending for receiving described terminal, obtains corresponding IP address according to described DNS inquiry request; According to the result of obtaining to described IP address, determine the IP address class type corresponding to Correspondent Node of described terminal, and the described IP address class type information of determining is carried in the DNS record of generation and sends to described terminal.
Another aspect according to the embodiment of the present invention, also provides a kind of terminal.
The terminal providing according to the embodiment of the present invention, comprising:
Network interaction unit, for sending domain name server (DNS) inquiry request to network side; And receive the DNS record that network side sends according to described DNS inquiry request, in described DNS record, carry the IP address class type information corresponding to Correspondent Node of described terminal;
Communication unit, communicates by letter with described Correspondent Node for IP address class type corresponding to described IP address class type information that utilizes described DNS record to carry.
According to another aspect of the embodiment of the present invention, also provide a kind of device of realizing terminal communication.
The device of realizing terminal communication providing according to the embodiment of the present invention, comprising:
Receiving element, the domain name server (DNS) inquiry request sending for receiving terminal;
Address acquisition unit, obtains corresponding IP address for the described DNS inquiry request receiving according to described receiving element;
Address style determining unit, for the result of obtaining to described IP address according to described address acquisition unit, determines the IP address class type corresponding to Correspondent Node of described terminal;
Transmitting element, the DNS record that is carried at generation for the described IP address class type information that described address style determining unit is determined sends to described terminal.
Above-mentioned at least one technical scheme providing by the embodiment of the present invention, network side is after receiving the DNS inquiry request of terminal transmission, can be according to IP address class type corresponding to Correspondent Node that result is determined this terminal that obtain to IP address, and definite IP address class type information is carried in the DNS record of generation and sends to terminal; IP address class type corresponding to IP address class type information corresponding to Correspondent Node that terminal can utilize the DNS record of reception to carry communicated by letter with Correspondent Node.According to this technical scheme, in system, without being provided for IPv6 address transition, be the translater of IPv4 address, thus less signaling consumption additionally, and, according to this technical scheme, when terminal can effectively be utilized two stack capabilities of this terminal during for two stack terminal.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in the specification write, claims and accompanying drawing.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, is used from explanation the present invention with the embodiment of the present invention one, is not construed as limiting the invention.In the accompanying drawings:
The method flow diagram of realizing terminal communication one that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram of realizing terminal communication two that Fig. 2 provides for the embodiment of the present invention;
The system schematic that realizes terminal communication that Fig. 3 provides for the embodiment of the present invention;
The terminal structure schematic diagram one that Fig. 4 provides for the embodiment of the present invention;
The terminal structure schematic diagram two that Fig. 5 provides for the embodiment of the present invention;
The device schematic diagram of realizing terminal communication that Fig. 6 provides for the embodiment of the present invention.
Embodiment
In order to provide, signaling consumption and effective implementation that utilizes two stack capabilities of two stack terminals in system have been reduced, the embodiment of the present invention provides a kind of method, system and device of realizing terminal communication, below in conjunction with Figure of description, the preferred embodiments of the present invention are described, be to be understood that, preferred embodiment described herein only, for description and interpretation the present invention, is not intended to limit the present invention.And in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
According to the embodiment of the present invention, first a kind of method that realizes terminal communication is provided, in the method, network address translation NAT 64 servers, when recording to terminal transmission DNS, carry the IP address class type information corresponding to Correspondent Node of this terminal in this DNS record.Detailed process as shown in Figure 1, comprises the steps:
The DNS inquiry request that step 101, NAT 64 server receiving terminals send;
Step 102, according to this DNS inquiry request receiving, obtain corresponding IP address;
When the DNS inquiry request that terminal sends to NAT 64 servers is AAAA type,, in this step, need to, according to the type of this DNS inquiry request, obtain the DNS record of the AAAA type that comprises IPv6 address; If do not get the DNS record of the AAAA type generating according to the DNS inquiry request of this AAAA type, further send the dns resolution request of category-A type, and when the DNS that receives category-A type records, according to the IPv4 address information in the DNS record of this category-A type, the translation prefix of affix NAT64, generate the DNS record of AAAA type, the DNS record of this AAAA type comprises according to the IPv6 address of the IPv4 address generation in the DNS record of category-A type.When the DNS inquiry request that terminal sends to NAT 64 servers is category-A type,, in this step, need to, according to the type of this DNS inquiry request, obtain the DNS record of the category-A type that comprises IPv4 address.
Step 103, according to the result of obtaining to IPv6 address, determine the IP address class type corresponding to Correspondent Node of this terminal;
Step 104, definite IP address class type information is carried in the DNS record of generation and sends to terminal.
By above-mentioned flow process, NAT 64 servers are when recording to terminal transmission DNS, in this DNS record, carry the IP address class type information corresponding to Correspondent Node of this terminal, protocol type corresponding to Correspondent Node communicating with to facilitate this terminal to know, thereby select suitable IP address to communicate by letter with this Correspondent Node, and can support corresponding security mechanism, for example DNS SEC.
In the preferred embodiment of the present invention, in above-mentioned steps 103, when the DNS inquiry request of terminal transmission is AAAA type, according to the result of obtaining to IP address, determine the IP address class type corresponding to Correspondent Node of terminal, specifically comprise:
If get IPv6 address, determine that the IP address class type corresponding to Correspondent Node of this terminal is IPv6 address style;
If do not get IPv6 address, determine that the IP address class type corresponding to Correspondent Node of this terminal is IPv4 address style.
In above-mentioned steps 103, if when the DNS inquiry request that terminal sends is category-A type, according to the result of obtaining to IP address, determine the IP address class type corresponding to Correspondent Node of terminal, specifically comprise:
If get IPv4 address, determine that the IP address class type corresponding to Correspondent Node of this terminal is IPv4 address style;
If do not get IPv4 address, determine that the IP address class type corresponding to Correspondent Node of this terminal is IPv6 address style.
In the preferred embodiment of the present invention, if while not getting IPv6 address, also comprise the step of obtaining IPv4 address, wherein, the process of obtaining IPv4 address comprises: terminal sends the dns resolution request of category-A type to network side, and receives the DNS record of the category-A type that network side returns according to the dns resolution request of this category-A type.
In the preferred embodiment of the present invention, the DNS of generation record also comprises IPv6 address, the IPv6 address of this IPv6 address for directly getting; Or according to the IPv6 address of the IPv4 address generation getting.
In order to understand better the embodiment of the present invention, below the mode of IP address class type information corresponding to the Correspondent Node of carried terminal in DNS record is elaborated:
In the embodiment of the present invention, by expansion DNS, record the IP address class type information corresponding to Correspondent Node of corresponding the type field carried terminal.The DNS record of RFC1035 definition comprises the type field, and this field is for representing the type of DNS record, and this type field at present definition comprises:
A 1a host address
NS 2an authoritative name server
MD 3a mail destination(Obsolete-use MX)
MF 4a mail forwarder(Obsolete-use MX)
CNAME 5the canonical name for an alias
SOA 6marks the start of a zone of authority
MB 7a mailbox domain name(EXPERIMENTAL)
MG 8a mail group member(EXPERIMENTAL)
MR 9a mail rename domain name(EXPERIMENTAL)
NULL 10a null RR(EXPERIMENTAL)
WKS 11a well known service description
PTR 12a domain name pointer
HINFO 13host information
MINFO 14mailbox or mail list information
MX 15mail exchange
TXT 16text strings
The embodiment of the present invention, by expansion the type field, increases HostType type, is used for the protocol type corresponding to Correspondent Node of marking terminal, is defined as follows:
HostType 17text string
Its value is specifically as follows: IPv4, IPv6, DualStack
Wherein:
IPv4 represents that the protocol type that the Correspondent Node of terminal is corresponding is IPv4;
IPv6 represents that the protocol type that the Correspondent Node of terminal is corresponding is IPv6;
DualStack represents that the protocol type that the Correspondent Node of terminal is corresponding can be IPv4, can be also IPv6.
By above-mentioned expansion, DNS 64 servers can arrange the protocol type of the Correspondent Node of this terminal in sending to the DNS record of terminal, for protocol type corresponding to Correspondent Node of notifying this terminal to communicate with.
Mode for IP address class type information corresponding to the Correspondent Node of carried terminal in DNS record is only optimal way above, according to the embodiment of the present invention, can also, by the IP address class type information corresponding to Correspondent Node of alternate manner carried terminal in DNS record, will not enumerate herein.
According to the embodiment of the present invention, first a kind of method that realizes terminal communication is provided, in the method, terminal is after receiving the DNS record of network side transmission, according to the IP address class type information that its Correspondent Node carrying in this record is corresponding, determine the IP address class type that its Correspondent Node is corresponding, thereby select suitable IP address class type and Correspondent Node to communicate.Detailed process as shown in Figure 2, comprises the steps:
Step 201, terminal send DNS inquiry request to network side DNS 64 servers;
The DNS record that step 202, reception network side DNS 64 servers send according to DNS inquiry request, this DNS carries the IP address class type information corresponding to Correspondent Node of this terminal in recording;
Step 203, the IP address class type information of carrying according to the DNS record receiving, determine the IP address class type that its Correspondent Node is corresponding;
Communicate by letter with this Correspondent Node in step 204, the utilization IP address corresponding with definite IP address class type.
By above-mentioned flow process, IP address class type corresponding to its Correspondent Node determined in the DNS record that terminal can send according to NAT 64 servers, thereby select suitable IP address to communicate by letter with this Correspondent Node, and can support corresponding security mechanism, for example DNS SEC.
In the preferred embodiment of the present invention, in above-mentioned steps 203, the IP address class type information of carrying according to DNS record, determines the IP address class type that Correspondent Node is corresponding, specifically comprises:
According to this DNS, record the IP address class type information that the type field in corresponding agreement is carried, determine the IP address class type that this Correspondent Node is corresponding.
In the preferred embodiment of the present invention, in above-mentioned steps 204, utilize the IP address corresponding with definite IP address class type to communicate by letter with Correspondent Node, specifically comprise:
If the IP address class type that definite Correspondent Node is corresponding is IPv6 address style, communicate by letter with Correspondent Node in the IPv6 address that utilizes this DNS record to comprise;
If the IP address class type that definite Correspondent Node is corresponding is IPv4 address style, asks network side distributing IP v4 address, and utilize this IPv4 address to communicate by letter with Correspondent Node.
Correspondingly, corresponding with said method flow process, the embodiment of the present invention also provides a kind of system that realizes terminal communication, and as shown in Figure 3, this system that realizes terminal communication comprises:
Terminal 301 and network address translation services device 302;
Wherein,
Terminal 301, for sending DNS inquiry request to network address translation services device 302, and receive the DNS record that network address translation services device 302 sends according to this DNS inquiry request, in this DNS record, carry the IP address class type information corresponding to Correspondent Node of described terminal; And, utilize IP address class type corresponding to IP address class type information carrying with DNS record to communicate by letter with described Correspondent Node;
Network address translation services device 302, the DNS inquiry request sending for receiving terminal 301, obtains corresponding IP address according to this DNS inquiry request; According to the result of obtaining to this IP address, determine the IP address class type corresponding to Correspondent Node of this terminal, and definite IP address class type information is carried in the DNS record of generation and sends to terminal 301.
Correspondingly, corresponding with said method flow process, the embodiment of the present invention also provides a kind of terminal, and as shown in Figure 4, this terminal comprises:
Network interaction unit 401, communication unit 402;
Wherein:
Network interaction unit 401, for sending DNS inquiry request to network side; And receive the domain name server (DNS) record that network side sends according to this DNS inquiry request, in this DNS record, carry the IP address class type information corresponding to Correspondent Node of this terminal;
Communication unit 402, for utilizing IP address class type corresponding to IP address class type information carrying with DNS record to communicate by letter with Correspondent Node.
In the preferred embodiment of the present invention, above-mentioned communication unit 402, specifically for:
Utilize and to record IP address class type corresponding to described IP address class type information that the type field in corresponding agreement carries with described DNS and communicate by letter with described Correspondent Node.
In the preferred embodiment of the present invention, as shown in Figure 5, the communication unit 402 shown in Fig. 4 can further include:
First communication module 402A, during for the corresponding IPv6 address style of IP address class type information corresponding to the Correspondent Node that carries when DNS record, utilizes the IPv6 address that DNS record that network communication unit 401 receives comprises to communicate by letter with this Correspondent Node;
Second communication module module 402B, during for the corresponding IPv4 address style of IP address class type information corresponding to the Correspondent Node that carries when DNS record, request network side distributing IP v4 address, and utilize this IPv4 address to communicate by letter with Correspondent Node.
Should be appreciated that the only logical partitioning for carrying out according to the function of this terminal realization of unit that above terminal comprises, in practical application, can carry out stack or the fractionation of said units.And the method flow of realizing terminal communication that the function that the terminal that this embodiment provides realizes provides with above-described embodiment is corresponding one by one, the more detailed handling process realizing for this terminal, in said method embodiment, be described in detail, be not described in detail herein.
Correspondingly, corresponding with said method flow process, the embodiment of the present invention also provides a kind of device of realizing terminal communication, and as shown in Figure 6, this device of realizing terminal communication comprises:
Receiving element 601, address acquisition unit 602, address style determining unit 603 and transmitting element 604;
Wherein:
Receiving element 601, the DNS inquiry request sending for receiving terminal;
Address acquisition unit 602, obtains corresponding IP address for the DNS inquiry request receiving according to receiving element 601;
Address style determining unit 603, for according to the result of obtaining of 602 pairs of IP addresses of address acquisition unit, determines the IP address class type corresponding to Correspondent Node of this terminal;
Transmitting element 604, sends to terminal for the definite IP address class type information of address style determining unit 603 being carried to the DNS record of generation.
In the preferred embodiment of the present invention, address above mentioned type determining unit 603, specifically for:
If address acquisition unit 602 gets IPv6 address, determine that the IP address class type corresponding to Correspondent Node of this terminal is IPv6 address style;
If address acquisition unit 602 does not get described IPv6 address, determine that the IP address class type corresponding to Correspondent Node of this terminal is IPv4 address style.
In the preferred embodiment of the present invention, address above mentioned acquiring unit 602, also for:
When not getting IPv6 address, obtain IPv4 address.
In the preferred embodiment of the present invention, the DNS record that above-mentioned transmitting element 604 sends also comprises:
The IPv6 address that address acquisition unit 602 gets; Or
The IPv6 address of the IPv4 address generation getting according to address acquisition unit 602.
In the preferred embodiment of the present invention, above-mentioned transmitting element 604, specifically for:
The DNS that the described IP address class type information of determining is carried to generation records in the type field in corresponding agreement.
The device of realizing terminal communication that above embodiment provides can be arranged in DNS 64 servers.
Should be appreciated that the only logical partitioning for carrying out according to the function of this device realization of unit that the above device of realizing terminal communication comprises, in practical application, can carry out stack or the fractionation of said units.And the method flow of realizing terminal communication that the function that the device of realizing terminal communication that this embodiment provides is realized provides with above-described embodiment is corresponding one by one, the more detailed handling process realizing for this device, in said method embodiment, be described in detail, be not described in detail herein.
Above-mentioned at least one technical scheme providing by the embodiment of the present invention, network side is after receiving the DNS inquiry request of terminal transmission, can be according to IP address class type corresponding to Correspondent Node that result is determined this terminal that obtain to IPv6 address, and definite IP address class type information is carried in the DNS record of generation and sends to terminal; IP address class type corresponding to IP address class type information corresponding to Correspondent Node that terminal can utilize the DNS record of reception to carry communicated by letter with Correspondent Node.According to this technical scheme, in system, without being provided for IPv6 address transition, be the translater of IPv4 address, thereby less signaling consumption additionally, and, according to this technical scheme, IP address class type that can be corresponding according to Correspondent Node when terminal is two stack terminal, adopts IPv4 address or IPv6 address to communicate by letter with Correspondent Node, thereby can effectively utilize two stack capabilities of terminal.
Further, according to the embodiment of the present invention, can solve the problem that cannot support the security mechanisms such as DNS SEC according to prior art, therefore it is out-of-date that the DNS record that this type of security mechanism obtains in resolver checking is tampered, think that this NDS records dangerous and ignores this DNS record, the technical scheme providing according to the embodiment of the present invention, terminal can be known the IP address class type that Correspondent Node is corresponding, when the DNS record of finding to receive is tampered, further combined with IP address class type corresponding to Correspondent Node, determine that this distorts when rationally distorting, think this NDS record security, thereby improved the applicability of security mechanism.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (17)

1. a method that realizes terminal communication, is characterized in that, comprising:
Terminal sends domain name server (DNS) inquiry request to network side, and receive network side according to the DNS record of described DNS inquiry request transmission, in described DNS record, carry the IP address class type information corresponding to Correspondent Node of described terminal, wherein, the DNS record that network side sends according to described DNS inquiry request, be specially: if when the DNS inquiry request that terminal sends is AAAA type, according to the type of this DNS inquiry request, obtain the DNS record of the AAAA type that comprises IPv6 address; If do not get the DNS record of the AAAA type generating according to the DNS inquiry request of this AAAA type, send the dns resolution request of category-A type, and when the DNS that receives category-A type records, according to the IPv4 address information in the DNS record of this category-A type, the translation prefix of affix NAT64, generate the DNS record of AAAA type, the DNS record of this AAAA type comprises according to the IPv6 address of the IPv4 address generation in the DNS record of category-A type; If when the DNS inquiry request that terminal sends to NAT64 server is category-A type, according to the type of this DNS inquiry request, obtain the DNS record of the category-A type that comprises IPv4 address;
Utilize IP address class type corresponding to described IP address class type information carrying with described DNS record to communicate by letter with described Correspondent Node.
2. the method for claim 1, is characterized in that, carries the IP address class type information corresponding to Correspondent Node of described terminal in described DNS record, specifically comprises:
Described DNS records IP address class type information corresponding to Correspondent Node that the type field in corresponding agreement is carried described terminal.
3. method as claimed in claim 1 or 2, is characterized in that, utilizes IP address class type corresponding to described IP address class type information carrying with described DNS record to communicate by letter with described Correspondent Node, comprising:
If the corresponding IPv6 address style of IP address class type information that the described Correspondent Node that described DNS record carries is corresponding, communicate by letter with described Correspondent Node in the IPv6 address that utilizes described DNS record to comprise;
If the corresponding IPv4 address style of IP address class type information that the described Correspondent Node that described DNS record carries is corresponding, asks network side distributing IP v4 address, and utilizes described IPv4 address to communicate by letter with described Correspondent Node.
4. a method that realizes terminal communication, is characterized in that, comprising:
The domain name server (DNS) inquiry request that receiving terminal sends, and obtain corresponding IP address according to described DNS inquiry request, be specially: if when the DNS inquiry request receiving is AAAA type, according to the type of this DNS inquiry request, obtain the DNS record of the AAAA type that comprises IPv6 address; If do not get the DNS record of the AAAA type generating according to the DNS inquiry request of this AAAA type, further send the dns resolution request of category-A type, and when the DNS that receives category-A type records, according to the IPv4 address information in the DNS record of this category-A type, the translation prefix of affix NAT64, generate the DNS record of AAAA type, the DNS record of this AAAA type comprises according to the IPv6 address of the IPv4 address generation in the DNS record of category-A type; When the DNS inquiry request that terminal sends if receive is category-A type, according to the type of this DNS inquiry request, obtain the DNS record of the category-A type that comprises IPv4 address;
According to the result of obtaining to described IP address, determine the IP address class type corresponding to Correspondent Node of described terminal;
The described IP address class type information of determining is carried in the DNS record of generation and sends to described terminal.
5. method as claimed in claim 4, is characterized in that, according to the result of obtaining to described IP address, determines the IP address class type corresponding to Correspondent Node of described terminal, comprising:
If get IPv6 address according to described DNS inquiry request, determine that the IP address class type corresponding to Correspondent Node of described terminal is IPv6 address style;
If do not get IPv6 address according to described DNS inquiry request, determine that the IP address class type corresponding to Correspondent Node of described terminal is IPv4 address style.
6. method as claimed in claim 5, is characterized in that, if do not get IPv6 address, also comprises:
Obtain IPv4 address.
7. the method for stating as claim 6, is characterized in that, the DNS record of generation also comprises:
The IPv6 address getting; Or
According to the IPv6 address of the IPv4 address generation getting.
8. method as claimed in claim 4, is characterized in that, the described IP address class type information of determining is carried in the DNS record of generation and sends to described terminal, specifically comprises:
The DNS that the described IP address class type information of determining is carried to generation records in the type field in corresponding agreement.
9. a system that realizes terminal communication, is characterized in that, comprises terminal and network address translation services device; Wherein,
Described terminal, for sending domain name server (DNS) inquiry request to described network address translation services device, and receive the DNS record that described network address translation services device sends according to described DNS inquiry request, in described DNS record, carry the IP address class type information corresponding to Correspondent Node of described terminal; And, utilize IP address class type corresponding to described IP address class type information carrying with described DNS record to communicate by letter with described Correspondent Node;
Described network address translation services device, the DNS inquiry request sending for receiving described terminal, according to described DNS inquiry request, obtain corresponding IP address, be specially: if when the DNS inquiry request receiving is AAAA type, according to the type of this DNS inquiry request, obtain the DNS record of the AAAA type that comprises IPv6 address; If do not get the DNS record of the AAAA type generating according to the DNS inquiry request of this AAAA type, further send the dns resolution request of category-A type, and when the DNS that receives category-A type records, according to the IPv4 address information in the DNS record of this category-A type, the translation prefix of affix NAT64, generate the DNS record of AAAA type, the DNS record of this AAAA type comprises according to the IPv6 address of the IPv4 address generation in the DNS record of category-A type; When the DNS inquiry request that terminal sends if receive is category-A type, according to the type of this DNS inquiry request, obtain the DNS record of the category-A type that comprises IPv4 address; According to the result of obtaining to described IP address, determine the IP address class type corresponding to Correspondent Node of described terminal, and the described IP address class type information of determining is carried in the DNS record of generation and sends to described terminal.
10. a terminal, is characterized in that, comprising:
Network interaction unit, for sending domain name server (DNS) inquiry request to network side; And receive network side according to the DNS record of described DNS inquiry request transmission, in described DNS record, carry the IP address class type information corresponding to Correspondent Node of described terminal, wherein, the DNS record that network side sends according to described DNS inquiry request, be specially: if when the DNS inquiry request that terminal sends is AAAA type, according to the type of this DNS inquiry request, obtain the DNS record of the AAAA type that comprises IPv6 address; If do not get the DNS record of the AAAA type generating according to the DNS inquiry request of this AAAA type, send the dns resolution request of category-A type, and when the DNS that receives category-A type records, according to the IPv4 address information in the DNS record of this category-A type, the translation prefix of affix NAT64, generate the DNS record of AAAA type, the DNS record of this AAAA type comprises according to the IPv6 address of the IPv4 address generation in the DNS record of category-A type; If when the DNS inquiry request that terminal sends to NAT64 server is category-A type,, in this step, need to, according to the type of this DNS inquiry request, obtain the DNS record of the category-A type that comprises IPv4 address;
Communication unit, for utilizing IP address class type corresponding to described IP address class type information carrying with described DNS record to communicate by letter with described Correspondent Node.
11. terminals as claimed in claim 10, is characterized in that, described communication unit, specifically for:
Utilize and to record IP address class type corresponding to described IP address class type information that the type field in corresponding agreement carries with described DNS and communicate by letter with described Correspondent Node.
12. terminals as described in claim 10 or 11, is characterized in that, described communication unit, comprising:
First communication module, during for the corresponding IPv6 address style of IP address class type information corresponding to the described Correspondent Node that carries when described DNS record, communicate by letter with described Correspondent Node in the IPv6 address that utilizes described DNS record to comprise;
Second communication module module, during for the corresponding IPv4 address style of IP address class type information corresponding to the described Correspondent Node that carries when described DNS record, request network side distributing IP v4 address, and utilize described IPv4 address to communicate by letter with described Correspondent Node.
13. 1 kinds of devices of realizing terminal communication, is characterized in that, comprising:
Receiving element, the domain name server (DNS) inquiry request sending for receiving terminal;
Address acquisition unit, for the described DNS inquiry request receiving according to described receiving element, obtain corresponding IP address, be specially: if when the DNS inquiry request receiving is AAAA type, according to the type of this DNS inquiry request, obtain the DNS record of the AAAA type that comprises IPv6 address; If do not get the DNS record of the AAAA type generating according to the DNS inquiry request of this AAAA type, further send the dns resolution request of category-A type, and when the DNS that receives category-A type records, according to the IPv4 address information in the DNS record of this category-A type, the translation prefix of affix NAT64, generate the DNS record of AAAA type, the DNS record of this AAAA type comprises according to the IPv6 address of the IPv4 address generation in the DNS record of category-A type; When the DNS inquiry request that terminal sends if receive is category-A type, according to the type of this DNS inquiry request, obtain the DNS record of the category-A type that comprises IPv4 address;
Address style determining unit, for the result of obtaining to described IP address according to described address acquisition unit, determines the IP address class type corresponding to Correspondent Node of described terminal;
Transmitting element, the DNS record that is carried at generation for the described IP address class type information that described address style determining unit is determined sends to described terminal.
14. devices as claimed in claim 13, is characterized in that, described address style determining unit, specifically for:
If described address acquisition unit gets IPv6 address, determine that the IP address class type corresponding to Correspondent Node of described terminal is IPv6 address style;
If described address acquisition unit does not get IPv6 address, determine that the IP address class type corresponding to Correspondent Node of described terminal is IPv4 address style.
15. devices as claimed in claim 14, is characterized in that, described address acquisition unit, also for:
When not getting IPv6 address, obtain IPv4 address.
16. devices of stating as claim 15, is characterized in that, the DNS record that described transmitting element sends also comprises:
The IPv6 address that described address acquisition unit gets; Or
The IPv6 address of the IPv4 address generation getting according to described address acquisition unit.
17. devices as claimed in claim 13, is characterized in that, described transmitting element, specifically for:
The DNS that the described IP address class type information of determining is carried to generation records in the type field in corresponding agreement.
CN201010117736.9A 2010-03-03 2010-03-03 Terminal communication method, system and device Active CN102196051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010117736.9A CN102196051B (en) 2010-03-03 2010-03-03 Terminal communication method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010117736.9A CN102196051B (en) 2010-03-03 2010-03-03 Terminal communication method, system and device

Publications (2)

Publication Number Publication Date
CN102196051A CN102196051A (en) 2011-09-21
CN102196051B true CN102196051B (en) 2014-09-10

Family

ID=44603416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010117736.9A Active CN102196051B (en) 2010-03-03 2010-03-03 Terminal communication method, system and device

Country Status (1)

Country Link
CN (1) CN102196051B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103109517B (en) * 2012-09-28 2016-12-07 华为技术有限公司 Method, terminal and the system of a kind of pair of stack terminal access server
CN103004173B (en) * 2012-09-29 2016-03-09 华为技术有限公司 A kind of method of allocation address, Apparatus and system
CN104702707B (en) * 2013-12-06 2018-05-01 中国联合网络通信集团有限公司 A kind of data processing method and device
CN104170356B (en) * 2013-12-30 2017-11-24 华为技术有限公司 A kind of method and apparatus for handling domain name request
CN105021917B (en) * 2015-06-05 2018-01-26 中国电力科学研究院 A kind of status of electric power detection method based on IPV6 mobile terminals and RFID label tag
CN106559505A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 IP method for parameter configuration, network address processing method and processing device
CN108769293B (en) * 2018-08-31 2022-02-25 郑州云海信息技术有限公司 IP address resolution method and related device
CN114553831B (en) 2020-11-25 2023-09-08 华为技术有限公司 Method and system related to sending management IP address

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030936A (en) * 2007-04-05 2007-09-05 中山大学 Telecommunication for switching node from IPv4 network to IPv6 network
CN101068215A (en) * 2007-06-29 2007-11-07 华为技术有限公司 Method, device and system for optimizing media protocol
CN101651718A (en) * 2009-08-27 2010-02-17 中国电信股份有限公司 Method and system for changing IP flow protocol stack
WO2010139194A1 (en) * 2009-06-03 2010-12-09 ***通信集团公司 Method and device of host with ipv4 application for performing communication

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1302651C (en) * 2004-11-10 2007-02-28 华为技术有限公司 A service universal block radio business supporting internodel communication method
US8219644B2 (en) * 2008-07-03 2012-07-10 Barracuda Networks, Inc. Requesting a service or transmitting content as a domain name system resolver

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030936A (en) * 2007-04-05 2007-09-05 中山大学 Telecommunication for switching node from IPv4 network to IPv6 network
CN101068215A (en) * 2007-06-29 2007-11-07 华为技术有限公司 Method, device and system for optimizing media protocol
WO2010139194A1 (en) * 2009-06-03 2010-12-09 ***通信集团公司 Method and device of host with ipv4 application for performing communication
CN101651718A (en) * 2009-08-27 2010-02-17 中国电信股份有限公司 Method and system for changing IP flow protocol stack

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Dual Stack Hosts Using "Bump-in-the-API";S.Lee等;《Request for Comments:3338》;20021031;参见第3.1-4.2节,图1,图2(1/2-2/2) *
S.Lee等.Dual Stack Hosts Using "Bump-in-the-API".《Request for Comments:3338》.2002,

Also Published As

Publication number Publication date
CN102196051A (en) 2011-09-21

Similar Documents

Publication Publication Date Title
CN102196051B (en) Terminal communication method, system and device
US7315543B2 (en) Apparatus and method for data communication on packet-switching network
US7085270B2 (en) Address translation method
US6580717B1 (en) Packet communication method and apparatus and a recording medium storing a packet communication program
US7701952B2 (en) Packet communication method and apparatus and a recording medium storing a packet communication program
US7450585B2 (en) Method and system in an IP network for using a network address translation (NAT) with any type of application
EP2583433B1 (en) 4t06 network stack for ipv4 applications
US20130010614A1 (en) METHOD AND APPARATUS FOR PROCESSING PACKETS IN IPv6 NETWORK
CN101325552B (en) Triangle forwarding method for access request and GLB server
KR101501963B1 (en) Method and system for implementing interconnection between internet protocol version 4 network and new network
US20060153230A1 (en) IPv6 / IPv4 translator
CN103856580B (en) A kind of method that IPv6 client computer accesses IPv4 servers
Atkinson et al. Identifier-locator network protocol (ILNP) engineering considerations
TW200924462A (en) System and method for connection of hosts behind NATs
US7764686B1 (en) Migration to IPv6 using combination of globally significant and locally significant IPv4 addresses
CN101651718A (en) Method and system for changing IP flow protocol stack
JP4572938B2 (en) Address translation method
JPH10136052A (en) Ipv4-ipv6 communication method and ipv4-ipv6 conversion device
US7356031B1 (en) Inter-v4 realm routing
KR101345372B1 (en) System and Method for servicing domain name based on user information
Abley et al. Nameservers for IPv4 and IPv6 Reverse Zones
WO2003005656A1 (en) System and method for using the address of internet protocol version 6
US20030225910A1 (en) Host resolution for IP networks with NAT
Elahi et al. Internet Protocols Part I
Wang et al. A lightweight solution to remote DNS

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant