CN102036422A - Method, device and system for acquiring IP address - Google Patents

Method, device and system for acquiring IP address Download PDF

Info

Publication number
CN102036422A
CN102036422A CN2009100936928A CN200910093692A CN102036422A CN 102036422 A CN102036422 A CN 102036422A CN 2009100936928 A CN2009100936928 A CN 2009100936928A CN 200910093692 A CN200910093692 A CN 200910093692A CN 102036422 A CN102036422 A CN 102036422A
Authority
CN
China
Prior art keywords
address
type
network side
dns resolution
analysis result
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.)
Granted
Application number
CN2009100936928A
Other languages
Chinese (zh)
Other versions
CN102036422B (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 CN200910093692.8A priority Critical patent/CN102036422B/en
Publication of CN102036422A publication Critical patent/CN102036422A/en
Application granted granted Critical
Publication of CN102036422B publication Critical patent/CN102036422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method, a device and a system for acquiring an internet protocol (IP) address, which are used for solving the problem that dual-stack terminal access service has high failure rate in the prior art. The main technical scheme comprises the following steps of: requesting a network side to allocate a first type of IP address, and performing domain name server (DNS) resolution according to the first type of IP address allocated by the network side; and after the DNS resolution is failed or the DNS resolution is successful and an address carried in the resolution result is mismatched with the first type of IP address, requesting the network side to allocate a second type of IP address. Due to the technical scheme, when the DNS resolution is failed or an IP address acquired by a terminal is mismatched with an address of access service, the second type of IP address is acquired further; therefore, the service access failure due to mismatching of the type of IP address acquired by a terminal and an address type corresponding to the access service is avoided, the success rate of the dual-stack terminal access service is improved, and the dual-stack capacity of a dual-stack terminal is fully exerted.

Description

A kind of IP address acquiring method, Apparatus and system
Technical field
The present invention relates to the mobile communication technology field, relate in particular to a kind of IP address acquiring method, Apparatus and system.
Background technology
At moving communicating field, terminal quantity is more and more, therefore, numerous terminals can not have been satisfied gradually to IP (Internet Protocol in the IPv4 address, Internet protocol) demand of address, IPv6 has the address space widely than IPv4, and therefore, IPv6 has bright prospect in the use of moving communicating field.
Because quite huge based on the network size that IPv4 realizes, the most application also developed at IPv4 specially, therefore, communication network will experience a very long period to the IPv6 transition, and IPv4 and IPv6 will coexist for a comparatively long period of time.In order to adapt to this transitional period, increasing terminal can be supported IPv4 and IPv6 simultaneously, and this Terminal Type is called two stack terminals.At present two stack terminals as shown in Figure 1, are carried out following steps by APN (Access Point Name, APN) access internet business the time:
Step 101, terminal MS specify the PDP type to be IPv4 or IPv6 according to the APN that uses, and to SGSN (Serving GPRS Support Node, Serving GPRS Support Node) sends PDP (Packet Data Protocol, data pack protocol) context activation request (Activate PDP Context Request) comprises the address style of user's acquisition request in this PDP context activation request;
After step 102, SGSN pass through the MS authentication, send PDP Context request to create (Create PDP Context Request) to GGSN (Gateway GPRS Support Node, Gateway GPRS Support Node);
Step 103, GGSN create response (Create PDP Context Response) to SGSN feedback PDP Context, and comprise the address (for IPv4 address or IPv6 address prefix) of user's acquisition request in this PDP Context;
Step 104, SGSN accept (Activate PDP Context Accept) to MS feedback PDP context activation.
If what comprise in the PDP Context that MS receives is the IPv4 address, then terminal can directly be carried out dns resolution and resolve successfully back access service according to this IPv4 address, if what comprise in the PDP Context that MS receives is the IPv6 address prefix, terminal also need receive the router advertisement message that GGSN issues, comprise the IPv6 address prefix in this message, can generate the IPv6 address based on this IPv6 address prefix, and carry out dns resolution and is resolving successfully access service afterwards according to the IPv6 address that generates, wherein, route announcement message can initiatively be issued according to timing mechanism by GGSN, also can issue based on the router request message of MS.
Existing terminal can only obtain IPv4 address or IPv6 address prefix by above flow process, because terminal was only known its domain name of wanting access service (as www.abc.com) before access service usually, and can't determine the IP address class type that its service server that will visit is supported, therefore, if terminal activates by PDP and has obtained the IPv4 address, it is the IPv6 business and will be visited, then terminal is being passed through DNS (Domain Name Server, when name server) the IPv4 address of access service is wanted in system interrogation, the non-existent information of domain name that will visit is replied by the DNS system to terminal, cause terminal traffic visit failure, vice versa.
In sum, when existing two stack terminal accesses were professional, under the prerequisite of the IP type of unknown its business support that will visit, it can only get access to IPv4 address or IPv6 address prefix, the mortality height that causes the terminal access business, two stack capabilities of terminal are not fully exerted yet.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of IP address acquiring method, Apparatus and system, is used for solving the two high problems of stack terminal access service fail rate of prior art.
The embodiment of the invention is achieved through the following technical solutions:
An aspect according to the embodiment of the invention provides a kind of IP address acquiring method.
IP address acquiring method according to the embodiment of the invention provides comprises:
The request network side distributes the Internet protocol IP address of the first kind, and the IP address of the first kind of distributing according to network side is carried out domain name server (DNS) and resolved;
When the IP address of dns resolution failure back or the address of carrying in dns resolution success and analysis result and the described first kind did not match, the request network side distributed the IP address of second type.
According to another aspect of the embodiment of the invention, also provide a kind of IP address deriving means.
IP address deriving means according to the embodiment of the invention provides comprises:
First communication unit is used to ask network side to distribute the Internet protocol IP address of the first kind, and receives the IP address of the first kind of network side distribution;
The dns resolution unit, the IP address that is used for the first kind that receives according to described first communication unit is carried out domain name server (DNS) and is resolved;
The second communication unit is used in described dns resolution unit resolves failure back or when not matching in the IP address of address that dns resolution success and analysis result carry and the described first kind, asks network side to distribute the IP address of second type.
According to another aspect of the embodiment of the invention, also provide a kind of IP address acquisition system.
IP address acquisition system according to the embodiment of the invention provides comprises:
The IP address assignment server is used for the Internet protocol IP address assignment request of receiving terminal, and distributes the IP address of respective type according to the IP address class type of appointment in the described request;
Terminal is used to ask the IP address of the described IP address assignment server-assignment first kind, and carries out domain name server (DNS) according to the IP address of the first kind of described IP address assignment server-assignment and resolve; And, when not matching, ask the IP address of described IP address assignment server-assignment second type in the IP address of dns resolution failure back or the address of in dns resolution success and analysis result, carrying and the described first kind.
Above-mentioned at least one technical scheme that provides by the embodiment of the invention, terminal at first asks network side to distribute the IP address of the first kind, dns resolution is carried out in the IP address of the first kind of distributing according to network side, and in dns resolution failure back or the IP address of the address of in dns resolution success and analysis result, carrying and the first kind when not matching, ask network side to distribute the IP address of second type.The technical scheme that provides according to the embodiment of the invention, when dns resolution failure or when determining that IP address class type that terminal is obtained and its access service corresponding address type do not match, further obtain the IP address of second type, thereby the Operational Visit failure problem of having avoided the IP address class type that obtains owing to terminal and its access service corresponding address type not to match and cause has improved the success rate of two stack terminal access business.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of specification, is used from explanation the present invention with the embodiment of the invention one, is not construed as limiting the invention.In the accompanying drawings:
The terminal that Fig. 1 provides for background technology of the present invention is obtained the flow chart of IP address;
The method first pass figure that obtains IP address and access service that Fig. 2 provides for the embodiment of the invention;
The method of obtaining IP address and access service second flow chart that Fig. 3 provides for the embodiment of the invention;
The method of obtaining IP address and access service the 3rd flow chart that Fig. 4 provides for the embodiment of the invention;
IP address deriving means first schematic diagram that Fig. 5 provides for the embodiment of the invention;
IP address deriving means second schematic diagram that Fig. 6 provides for the embodiment of the invention;
IP address deriving means the 3rd schematic diagram that Fig. 7 provides for the embodiment of the invention;
The IP address acquisition system schematic diagram that Fig. 8 provides for the embodiment of the invention.
Embodiment
In order to provide the implementation of the success rate that improves two stack terminal access business, the embodiment of the invention provides a kind of IP address acquiring method, Apparatus and system, 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 is used for description and interpretation the present invention, and is not used in qualification the present invention.And under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
According to the embodiment of the invention, the method for a kind of IP of obtaining address and access service is provided, as shown in Figure 2, comprising:
Step 201, two stack terminal request network side distribute the IP address of the first kind.
In this step, the IP address of the first kind is definite address that need preferentially obtain in IPv4 address and the IPv6 address.
The IP address of the first kind that step 202, reception network side distribute.
In this step, if step 201 request is the IPv4 address style, then network side directly distributes an IPv4 address to give two stack terminals, if step 201 request is the IPv6 address style, then network side distributes an IPv6 address prefix to give two stack terminals, generates the IPv6 address that is used for access service by two stack terminals according to the IPv6 address prefix that network side distributes.
Dns resolution is carried out in the IP address of step 203, the first kind of distributing according to network side.
In this step, if terminal is the IPv4 address the distribution of step 201 request network side, it need obtain the IPv4 address of service server to be visited, then send the address resolution request to the DNS system, request DNS returns the category-A address (being the IPv4 address) of service server correspondence, carries the domain name of service server correspondence in this request; If terminal is the IPv6 address the distribution of step 201 request network side, it need obtain the IPv6 address of service server to be visited, then send the address resolution request to the DNS system, request DNS returns the AAAA class address (being the IPv6 address) of service server correspondence, carries the domain name of service server correspondence in this request.
Step 204, judge whether whether dns resolution success and the address of carrying in the analysis result and the IP address of the first kind mate when resolving successfully, if, execution in step 205, otherwise execution in step 206.
In this step, if the service server of dns resolution terminal request visit is supported the address style that this terminal request is obtained, then return the IP address of respective type and give terminal, behind the IP address that terminal reception DNS returns, if determine to be complementary, then determine the dns resolution success with its IP address that in step 202, obtains; If the service server of dns resolution terminal request visit is not supported the address style that this terminal request is obtained, then return the non-existent message of service server domain name, after terminal receives this message, determine the dns resolution failure.
Step 205, according to the IP address access service of the IP matching addresses of the first kind of distributing with network side in the analysis result.
Step 206, two stack terminal request network sides distribute the IP address of second type.
In this step, if the first kind IP address that is defined as preferentially obtaining is the IPv4 address, then the IP address of second type is the IPv6 address; If the first kind IP address that is defined as preferentially obtaining is the IPv6 address, then the IP address of second type is the IPv4 address.
The IP address of second type that step 207, reception network side distribute.
In the above-mentioned steps 201, can determine the IP address of the first kind by following strategy:
Two stack terminals can provide to the user and the interface are set the address style of preferentially obtaining in IPv4 address and the IPv6 address is set by the user, and the address style of preferentially obtaining in IPv4 address that the user is provided with and the IPv6 address, are defined as the IP address of the first kind; Perhaps,
Determine the address style preferentially obtained in IPv4 address and the IPv6 address by network side, and be handed down to terminal by setting communication mode (for example short message), terminal is defined as the IP address of the first kind with the address style of preferentially obtaining in the IPv4 address of network side configuration and the IPv6 address; Perhaps,
Terminal is given tacit consent to a kind of address style for preferentially obtaining in IPv4 address and the IPv6 address, i.e. the IP address of the first kind when dispatching from the factory.
According to the embodiment of the invention, preferential acquisition strategy can be provided with flexibly, does not enumerate one by one herein.Specifically when being provided with, in order to improve the success rate of the IP address access service of preferentially obtaining, the IP address class type that can obtain with reference to concrete network environment configuration preference, for example, can be according to the professional shared ratio decision of IPv4 business and IPv6 in the network, at the initial stage of network to the IPv6 transition, business is still based on IPv4, therefore, the IP address class type that terminal can configuration preference be obtained is IPv4, and in the later stage of network to the IPv6 transition, and business may be with based on IPv6, therefore, the IP address class type that can configuration preference obtains of terminal is IPv6.
Further, in the embodiment of the invention, can also adjust the address style of determining according to above-mentioned strategy of preferentially obtaining, specific as follows:
The matching rate of the IP address of the address of carrying in the analysis result of dns resolution and this first kind is carried out in the IP address (the IP address that promptly preferentially obtains) of determining the first kind of distributing according to network side, when this matching rate is lower than setting threshold (for example 50%), the address style that the IP address of second type is defined as preferentially obtaining.Wherein: the total degree of the matching times/Operational Visit of the IP address class type that obtains with terminal among the matching rate of dns resolution=dns resolution result.
In further embodiment of this invention, after the IP address of second type that step 207 reception network side distributes, can also further carry out dns resolution,, avoid because the network resources waste that the IP address does not match and causes to improve the success rate of Operational Visit to the IP address of this second type.Specifically as shown in Figure 3, comprise the steps:
Dns resolution is carried out in the IP address of step 301, second type of distributing according to network side.
In this step, concrete dns resolution process and above-mentioned steps 203 described resolving basically identicals are not described in detail herein.
Step 302, judge whether whether dns resolution success and the address of carrying in the analysis result and the IP address of second type mate when resolving successfully, if, execution in step 303, otherwise execution in step 304.
Step 303, according to the IP address access service of the IP matching addresses of second type of distributing with network side in the analysis result.
Step 304, prompt terminal business can't be visited.
Consider the difference of DNS system operating mode, under the setting situation, the DNS system can return the IPv4 address and the IPv6 address of service server correspondence simultaneously, perhaps when the service server of dns resolution terminal request visit is not supported address style that this terminal request obtains, also can return an IP address, this IP address may be different with the address style that terminal request DNS returns, therefore, according to the embodiment of the invention, before dns resolution is carried out in the IP address of second type that execution in step 301 is promptly distributed network side, further carry out following steps:
Promptly carry out searching the analysis result of dns resolution address with the IP matching addresses of second type from step 203 according to the IP address of the first kind, if find, then according to the IP address access service that finds, and need not carry out above-mentioned steps 301~step 304, if do not find, then carry out above-mentioned steps 301~step 304.
According to the embodiment of the invention, before carrying out above-mentioned steps, need carry out the configuration of two stack terminals, following configuration mode is specifically arranged:
In the existing two stack terminals, the APN of terminal and the binding of operable IP address class type, i.e. IPv4APN and IPv6 APN do not have the APN that not only can use the IPv4 address style but also can use the IPv6 address style.Terminal can only be carried out the IPv4 application IP addresses by IPv4 APN, and terminal can only be carried out the IPv6 application IP addresses by IPv6 APN.By the embodiment of the invention two stack APN are set, make two stack terminals not only can carry out the IPv4 application IP addresses but also can carry out the IPv6 application IP addresses by two stack APN.The concrete set-up mode of two stack APN includes but not limited to following mode:
The new address style IPv4v6 that mode one, two stack APN can bind when the APN of terminal by the type carries out the address when obtaining, can apply for the IPv4 address, also can apply for the IPv6 address.
Mode two, APN and specific address type are not bound, no matter this APN can be passed through in the address of which kind of type of terminal to apply.
In order to understand the embodiment of the invention better, below be example with visit PS territory business, embodiment of the invention technique scheme is carried out more detailed description:
Suppose that the address style of determining of preferentially obtaining (being the IP address of the first kind) is IPv4, as shown in Figure 4, obtains IP address and access service and specifically carries out following steps:
Step 401, two stack terminal activate PS territory business by two stack APN, and specifying the PDP type is IPv4, sends the PDP context activation request to network side.
Step 402, reception network side carry the IPv4 address of network side for this terminal distribution to the PDP Context of this pair stack terminal authentication by the back feedback in this PDP Context.
Step 403, from the PDP Context that receives, obtain the IPv4 address, and carry out dns resolution according to this IPv4 address.
Step 404, judge to resolve whether success and whether the address and the IPv4 address of carrying in the analysis result mate when resolving successfully, if, execution in step 405, otherwise execution in step 406.
Step 405, by in the analysis result with the IP address access service of the IPv4 matching addresses obtained.
Step 406, two stack terminal activate PS territory business by two stack APN, and specifying the PDP type is IPv6, sends the PDP context activation request to network side.
Step 407, reception network side carry the IPv6 address prefix of network side for this terminal distribution to the PDP Context of this pair stack terminal authentication by the back feedback in this PDP Context.
Step 408, from the analysis result that carries out dns resolution according to the IPv4 address, search whether the IPv6 address is arranged.
Step 409, judge whether to find the IPv6 address, if then execution in step 410, otherwise execution in step 411.
Step 410, IPv6 address access service by finding.
Step 411, from the PDP Context that receives, obtain the IPv6 address, and carry out dns resolution according to this IPv6 address.
Step 412, judge to resolve whether success and whether the address and the IPv4 address of carrying in the analysis result mate when resolving successfully, if, execution in step 413, otherwise execution in step 414.
Step 413, by in the analysis result with the address access service of the IPv6 matching addresses obtained.
Step 414, Operational Visit failure.
Corresponding with above-mentioned flow process, the embodiment of the invention also provides a kind of IP address deriving means, and as shown in Figure 5, this device comprises:
First communication unit 501, dns resolution unit 502 and second communication unit 503; Wherein:
First communication unit 501 is used to ask network side to distribute the Internet protocol IP address of the first kind, and receives the IP address of the first kind of network side distribution;
Dns resolution unit 502, the IP address that is used for the first kind that receives according to first communication unit is carried out domain name server (DNS) and is resolved;
Second communication unit 503 is used in the dns resolution unit 502 and resolves the failure back or when not matching in the IP address of address that dns resolution success and analysis result carry and the first kind, ask network side to distribute the IP address of second type.
Further, as shown in Figure 6, the device that the embodiment of the invention provides can also comprise:
Preferentially obtain IP address determining unit 504, be used for before the request network side distributes the IP address of the first kind, the address style of preferentially obtaining in IPv4 address that the user is provided with and the IPv6 address is defined as the IP address of the first kind; Or, with network side by setting the communication mode configuration the IPv4 address and the IPv6 address in the address style preferentially obtained, be defined as the IP address of the first kind; Or, with the address style preferentially obtained in the IPv4 address of acquiescence and the IPv6 address, be defined as the IP address of the first kind.
More specifically, the above-mentioned IP address determining unit 504 of preferentially obtaining also is used for:
The matching rate of the IP address of the address of carrying in the analysis result of dns resolution and the first kind is carried out in the IP address of determining the first kind of distributing according to network side, when this matching rate is lower than setting threshold, the address style that the IP address of second type is defined as preferentially obtaining.
Further, as shown in Figure 7, the device that the embodiment of the invention provides can also comprise: Operational Visit unit 505; Wherein:
Dns resolution unit 502 also is used for: after receiving the IP address of second type that network side distributes, dns resolution is carried out in the IP address of second type of distributing according to network side; Or, behind the IP address of second type that the reception network side distributes, search the address with the IP matching addresses of second type from the analysis result that carries out dns resolution according to the IP address of the first kind, if do not find, dns resolution is carried out in the IP address of second type of distributing according to network side;
Operational Visit unit 505 is used in the dns resolution unit 505 when resolving the IP matching addresses of the address that successes and analysis result carry and second type, according in the analysis result with the address access service of the IP matching addresses of second type; Or when from the analysis result that carries out dns resolution according to the IP address of the first kind, finding address with the IP matching addresses of second type, according to the IP address access service that finds.
Be to be understood that, the function that the IP address deriving means that this embodiment provides is realized is corresponding one by one with the method flow that obtains IP that the foregoing description provides, install the more detailed handling process that each functional unit is realized for this, in said method embodiment, done detailed description, be not described in detail herein.
Corresponding with above-mentioned flow process, the embodiment of the invention also provides a kind of IP address acquisition system, and as shown in Figure 8, this system comprises:
IP address assignment server 801 and terminal 802; Wherein:
IP address assignment server 801 is used for the IP address assignment request of receiving terminal, and distributes the IP address of respective type according to the IP address class type of appointment in this request;
Terminal 802 is used to ask IP address assignment server 801 to distribute the IP address of the first kind, and dns resolution is carried out in the IP address of the first kind of distributing according to IP address assignment server 801; And when not matching in the IP address of dns resolution failure back or the address of carrying in dns resolution success and analysis result and the first kind, request IP address assignment server 801 distributes the IP address of second type.
Further, in the embodiment of the invention, above-mentioned terminal 802 also is used for:
Before request IP address assignment server 801 distributed the IP address of the first kind, the address style of preferentially obtaining in IPv4 address that the user is provided with and the IPv6 address was defined as the IP address of the first kind; Or, with network equipment by setting the communication mode configuration the IPv4 address and the IPv6 address in the address style preferentially obtained, be defined as the IP address of the first kind; Or, with the address style preferentially obtained in the IPv4 address of acquiescence and the IPv6 address, be defined as the IP address of the first kind.
Further, in the embodiment of the invention, above-mentioned terminal 802 also is used for:
The matching rate of the IP address of the address of carrying in the analysis result of dns resolution and the described first kind is carried out in the IP address of determining the first kind of distributing according to IP address assignment server 801, when this matching rate is lower than setting threshold, the address style that the IP address of second type is defined as preferentially obtaining.
Further, in the embodiment of the invention, above-mentioned terminal 802 also is used for:
After request IP address assignment server 801 distributes the IP address of second type, dns resolution is carried out in the IP address of second type of distributing according to IP address assignment server 801, when the address of in resolving successfully back and analysis result, carrying and the IP matching addresses of second type, according in the analysis result with the address access service of the IP matching addresses of second type; Or,
After request IP address assignment server 801 distributes the IP address of second type, from the analysis result that carries out dns resolution according to the IP address of the first kind, search address with the IP matching addresses of second type, if find, then according to the IP address access service that finds, otherwise, dns resolution is carried out in the IP address of second type of distributing according to IP address assignment server 801, and during the IP matching addresses of the address of in resolving success and analysis result, carrying and second type, according in the analysis result with the address access service of the IP matching addresses of second type.
In the practical application, above-mentioned IP address allocation server 801 can be GGSN, or PDN Gateway (Packet Data Network Gateway grouped data network gateway).
Above-mentioned at least one technical scheme that provides by the embodiment of the invention, terminal at first asks network side to distribute the Internet protocol IP address of the first kind, dns resolution is carried out in the IP address of the first kind of distributing according to network side, and in dns resolution failure back or the IP address of the address of in dns resolution success and analysis result, carrying and the first kind when not matching, ask network side to distribute the IP address of second type.The technical scheme that provides according to the embodiment of the invention, when dns resolution failure or when determining that IP address class type that terminal is obtained and its access service corresponding address type do not match, further obtain the IP address of second type, thereby the Operational Visit failure problem of having avoided the IP address class type that obtains owing to terminal and its access service corresponding address type not to match and cause has improved the success rate of two stack terminal access business.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (12)

1. an IP address acquiring method is characterized in that, comprising:
The request network side distributes the Internet protocol IP address of the first kind, and the IP address of the first kind of distributing according to network side is carried out domain name server (DNS) and resolved;
When the IP address of dns resolution failure back or the address of carrying in dns resolution success and analysis result and the described first kind did not match, the request network side distributed the IP address of second type.
2. the method for claim 1 is characterized in that, before the request network side distributes the IP address of the first kind, also comprises:
The address style of preferentially obtaining in IPv4 address that the user is provided with and the IPv6 address is defined as the IP address of the first kind; Or,
With network side by setting the communication mode configuration the IPv4 address and the IPv6 address in the address style preferentially obtained, be defined as the IP address of the first kind; Or,
With the address style preferentially obtained in the IPv4 address of acquiescence and the IPv6 address, be defined as the IP address of the first kind.
3. method as claimed in claim 2 is characterized in that, also comprises:
The matching rate of the IP address of the address of carrying in the analysis result of dns resolution and the described first kind is carried out in the IP address of determining the first kind of distributing according to network side, when described matching rate is lower than setting threshold, the address style that the IP address of described second type is defined as preferentially obtaining.
4. the method for claim 1 is characterized in that, the request network side distributes after the IP address of second type, also comprises:
Dns resolution is carried out in the IP address of second type of distributing according to network side, when the address of in resolving success and analysis result, carrying and the IP matching addresses of described second type, according in the described analysis result with the address access service of the IP matching addresses of described second type; Or,
From the analysis result that carries out dns resolution according to the IP address of the described first kind, search address with the IP matching addresses of described second type, if find, then according to the IP address access service that finds, otherwise, dns resolution is carried out in the IP address of second type of distributing according to network side, and during the IP matching addresses of address of in resolving success and analysis result, carrying and described second type, according in the described analysis result with the address access service of the IP matching addresses of described second type.
5. an IP address deriving means is characterized in that, comprising:
First communication unit is used to ask network side to distribute the Internet protocol IP address of the first kind, and receives the IP address of the first kind of network side distribution;
The dns resolution unit, the IP address that is used for the first kind that receives according to described first communication unit is carried out domain name server (DNS) and is resolved;
The second communication unit is used in described dns resolution unit resolves failure back or when not matching in the IP address of address that dns resolution success and analysis result carry and the described first kind, asks network side to distribute the IP address of second type.
6. device as claimed in claim 5 is characterized in that, also comprises:
Preferentially obtain IP address determining unit, be used for before the request network side distributes the IP address of the first kind, the address style of preferentially obtaining in IPv4 address that the user is provided with and the IPv6 address is defined as the IP address of the first kind; Or, with network side by setting the communication mode configuration the IPv4 address and the IPv6 address in the address style preferentially obtained, be defined as the IP address of the first kind; Or, with the address style preferentially obtained in the IPv4 address of acquiescence and the IPv6 address, be defined as the IP address of the first kind.
7. device as claimed in claim 6 is characterized in that, the described IP address determining unit of preferentially obtaining also is used for:
The matching rate of the IP address of the address of carrying in the analysis result of dns resolution and the described first kind is carried out in the IP address of determining the first kind of distributing according to network side, when described matching rate is lower than setting threshold, the address style that the IP address of described second type is defined as preferentially obtaining.
8. device as claimed in claim 5 is characterized in that,
Described dns resolution unit also is used for: after receiving the IP address of second type that network side distributes, dns resolution is carried out in the IP address of second type of distributing according to network side; Or, behind the IP address of second type that the reception network side distributes, from the analysis result that carries out dns resolution according to the IP address of the described first kind, search address with the IP matching addresses of described second type, if do not find, dns resolution is carried out in the IP address of second type of distributing according to network side;
Described device also comprises: the Operational Visit unit, be used for when the IP matching addresses of address that the success of described dns resolution unit resolves and analysis result carry and described second type, according in the described analysis result with the address access service of the IP matching addresses of described second type; Or when from the analysis result that carries out dns resolution according to the IP address of the described first kind, finding address with the IP matching addresses of described second type, according to the IP address access service that finds.
9. an IP address acquisition system is characterized in that, comprising:
The IP address assignment server is used for the Internet protocol IP address assignment request of receiving terminal, and distributes the IP address of respective type according to the IP address class type of appointment in the described request;
Terminal is used to ask the IP address of the described IP address assignment server-assignment first kind, and carries out domain name server (DNS) according to the IP address of the first kind of described IP address assignment server-assignment and resolve; And, when not matching, ask the IP address of described IP address assignment server-assignment second type in the IP address of dns resolution failure back or the address of in dns resolution success and analysis result, carrying and the described first kind.
10. system as claimed in claim 9 is characterized in that, described terminal also is used for:
Before the IP address of the described IP address assignment server-assignment first kind of request, the address style of preferentially obtaining in IPv4 address that the user is provided with and the IPv6 address is defined as the IP address of the first kind; Or, with network equipment by setting the communication mode configuration the IPv4 address and the IPv6 address in the address style preferentially obtained, be defined as the IP address of the first kind; Or, with the address style preferentially obtained in the IPv4 address of acquiescence and the IPv6 address, be defined as the IP address of the first kind.
11. system as claimed in claim 10 is characterized in that, described terminal also is used for:
Determine to carry out the matching rate of the IP address of the address of carrying in the analysis result of dns resolution and the described first kind according to the IP address of the first kind of described IP address assignment server-assignment, when described matching rate is lower than setting threshold, the address style that the IP address of described second type is defined as preferentially obtaining.
12. system as claimed in claim 9 is characterized in that, described terminal also is used for:
After the IP address of described IP address assignment server-assignment second type of request, dns resolution is carried out in IP address according to second type of described IP address assignment server-assignment, when the address of in resolving success and analysis result, carrying and the IP matching addresses of described second type, according in the described analysis result with the address access service of the IP matching addresses of described second type; Or,
After the IP address of described IP address assignment server-assignment second type of request, from the analysis result that carries out dns resolution according to the IP address of the described first kind, search address with the IP matching addresses of described second type, if find, then according to the IP address access service that finds, otherwise, dns resolution is carried out in IP address according to second type of described IP address assignment server-assignment, and during the IP matching addresses of address of in resolving success and analysis result, carrying and described second type, according in the described analysis result with the address access service of the IP matching addresses of described second type.
CN200910093692.8A 2009-09-27 2009-09-27 Method, device and system for acquiring IP address Active CN102036422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910093692.8A CN102036422B (en) 2009-09-27 2009-09-27 Method, device and system for acquiring IP address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910093692.8A CN102036422B (en) 2009-09-27 2009-09-27 Method, device and system for acquiring IP address

Publications (2)

Publication Number Publication Date
CN102036422A true CN102036422A (en) 2011-04-27
CN102036422B CN102036422B (en) 2014-09-17

Family

ID=43888530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910093692.8A Active CN102036422B (en) 2009-09-27 2009-09-27 Method, device and system for acquiring IP address

Country Status (1)

Country Link
CN (1) CN102036422B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790808A (en) * 2011-05-16 2012-11-21 奇智软件(北京)有限公司 Domain name resolution method and system, client
CN102984294A (en) * 2012-12-07 2013-03-20 中兴通讯股份有限公司 IPv6 DNS address distribution and acquisition method and device
CN103812955A (en) * 2012-11-12 2014-05-21 中国移动通信集团公司 Terminal access management platform address method and system and terminal
CN104660398A (en) * 2015-01-28 2015-05-27 北京深思数盾科技有限公司 Generation method of encryption keys
CN109802959A (en) * 2019-01-07 2019-05-24 烽火通信科技股份有限公司 Internet protocol selection method and system under double stack environment
CN110191031A (en) * 2019-05-10 2019-08-30 杭州迪普科技股份有限公司 Network resource access method, device, electronic equipment
CN111417163A (en) * 2020-03-27 2020-07-14 Oppo广东移动通信有限公司 IP address recovery method, terminal and storage medium
CN112153753A (en) * 2020-09-24 2020-12-29 维沃移动通信有限公司 Network connection method and device
CN114143230A (en) * 2020-09-02 2022-03-04 中国移动通信集团安徽有限公司 Method and device for calculating DNS (Domain name Server) resolution time of dual-stack user

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578296A (en) * 2003-07-29 2005-02-09 华为技术有限公司 Method for realizing double-stack transition
US20060075138A1 (en) * 2004-09-28 2006-04-06 Utstarcom, Inc. Method and apparatus to facilitate IPv6 DNS requests
CN1773988A (en) * 2004-11-10 2006-05-17 华为技术有限公司 A service universal block radio business supporting internodel communication method
CN101534496A (en) * 2008-03-12 2009-09-16 中兴通讯股份有限公司 Method for obtaining home link information by user

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578296A (en) * 2003-07-29 2005-02-09 华为技术有限公司 Method for realizing double-stack transition
US20060075138A1 (en) * 2004-09-28 2006-04-06 Utstarcom, Inc. Method and apparatus to facilitate IPv6 DNS requests
CN1773988A (en) * 2004-11-10 2006-05-17 华为技术有限公司 A service universal block radio business supporting internodel communication method
CN101534496A (en) * 2008-03-12 2009-09-16 中兴通讯股份有限公司 Method for obtaining home link information by user

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790808A (en) * 2011-05-16 2012-11-21 奇智软件(北京)有限公司 Domain name resolution method and system, client
CN102790808B (en) * 2011-05-16 2015-11-25 北京奇虎科技有限公司 A kind of domain name analytic method and system, a kind of client
CN103812955B (en) * 2012-11-12 2018-04-03 中国移动通信集团公司 A kind of terminal obtains method, terminal and the system of management platform address
CN103812955A (en) * 2012-11-12 2014-05-21 中国移动通信集团公司 Terminal access management platform address method and system and terminal
CN102984294A (en) * 2012-12-07 2013-03-20 中兴通讯股份有限公司 IPv6 DNS address distribution and acquisition method and device
CN104660398A (en) * 2015-01-28 2015-05-27 北京深思数盾科技有限公司 Generation method of encryption keys
CN104660398B (en) * 2015-01-28 2018-02-13 北京深思数盾科技股份有限公司 A kind of generation method of encryption key
CN109802959A (en) * 2019-01-07 2019-05-24 烽火通信科技股份有限公司 Internet protocol selection method and system under double stack environment
CN110191031A (en) * 2019-05-10 2019-08-30 杭州迪普科技股份有限公司 Network resource access method, device, electronic equipment
CN110191031B (en) * 2019-05-10 2021-06-29 杭州迪普科技股份有限公司 Network resource access method and device and electronic equipment
CN111417163A (en) * 2020-03-27 2020-07-14 Oppo广东移动通信有限公司 IP address recovery method, terminal and storage medium
CN111417163B (en) * 2020-03-27 2022-05-20 Oppo广东移动通信有限公司 IP address recovery method, terminal and storage medium
CN114143230A (en) * 2020-09-02 2022-03-04 中国移动通信集团安徽有限公司 Method and device for calculating DNS (Domain name Server) resolution time of dual-stack user
CN114143230B (en) * 2020-09-02 2023-07-21 中国移动通信集团安徽有限公司 Dual-stack user DNS analysis duration calculation method and device
CN112153753A (en) * 2020-09-24 2020-12-29 维沃移动通信有限公司 Network connection method and device

Also Published As

Publication number Publication date
CN102036422B (en) 2014-09-17

Similar Documents

Publication Publication Date Title
CN102036422B (en) Method, device and system for acquiring IP address
CN102148878B (en) IP (internet protocol) address allocation method, system and device
US9882866B2 (en) Address allocating method, apparatus, and system
US8667182B2 (en) User locating system, method and server in packet-based network
US20130166776A1 (en) Method, apparatus, and system for allocating public ip address
CN101080098B (en) A communication method and system
EP1739899A1 (en) A method and system for providing ipv6 service
CN101753460A (en) Method and device for processing internet protocol version 6(IPV6) routing prefix
US9825951B2 (en) Method and system for distributing service data
CN101094224A (en) Method and system of providing services, access services, logging in and out services
CN102172062A (en) Communication system, connection control device, mobile terminal, base station control method, service request method, and program
CN101674336A (en) Method, system and device for allocating IP addresses
CN103312749A (en) Discovery method, equipment and system for application layer flow optimization (ALTO) server
CN105323325A (en) Address assignment method for identity and position separation network, and access service node
US20120210008A1 (en) Method and Mobile Communication System Capable of Establishing Peer-to-Peer Transmission
CN103051739A (en) Network terminal and IP (Internet Protocol) address configuration method thereof
CN104079682A (en) Address translation method and device based on domain name system (DNS)
WO2013117172A1 (en) Private network address allocation method, device, and system
CN106878479B (en) Address allocation method and device
CN103826320A (en) Method and device for establishing general-packet-radio-service connection
CN102984696A (en) IP communication method, equipment and system based on mobile terminals
CN103179222B (en) Method and device for distributing double-stack addresses
KR100642124B1 (en) Method and system for providing contents billing service at terminal during international roaming
CN102299860B (en) Acquisition method and equipment for path maximum transmission unit (Pathmtu)
US8738038B2 (en) Method and system for implementing information interaction in a next generation 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
C14 Grant of patent or utility model
GR01 Patent grant