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

Method, device and system for acquiring IP address Download PDF

Info

Publication number
CN102036422B
CN102036422B CN200910093692.8A CN200910093692A CN102036422B CN 102036422 B CN102036422 B CN 102036422B CN 200910093692 A CN200910093692 A CN 200910093692A CN 102036422 B CN102036422 B CN 102036422B
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.)
Active
Application number
CN200910093692.8A
Other languages
Chinese (zh)
Other versions
CN102036422A (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

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 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, IPv4 address can not meet numerous terminals gradually to IP (Internet Protocol, 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 the network size realizing based on IPv4 is quite huge, most application are also specially for IPv4 exploitation, and therefore, communication network will experience a very long period to 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, when by APN (Access PointName, APN) access Internet service, as shown in Figure 1, are carried out following steps:
It is IPv4 or IPv6 that step 101, terminal MS are specified PDP type according to the APN using, and to SGSN (Serving GPRS Support Node, Serving GPRS Support Node) transmission PDP (PacketData Protocol, data pack protocol) context activation request (Activate PDP Context Request), this PDP context activation request comprises the address style of user's acquisition request;
After step 102, SGSN pass through MS authentication, send PDP Context request to create (Create PDP ContextRequest) to GGSN (Gateway GPRS SupportNode, Gateway GPRS Support Node);
Step 103, GGSN create response (Create PDP ContextResponse) to SGSN feedback PDP Context, and the address that comprises user's acquisition request in this PDP Context (for IPv4 address or IPv6 address prefix);
Step 104, SGSN accept (Activate PDP ContextAccept) to MS feedback PDP context activation.
If what comprise in the PDP Context that MS receives is IPv4 address, terminal can directly be carried out dns resolution and access service after successfully resolved according to this IPv4 address, if what comprise in the PDP Context that MS receives is IPv6 address prefix, terminal also needs to receive the router advertisement message that GGSN issues, in this message, comprise IPv6 address prefix, can generate IPv6 address based on this IPv6 address prefix, and carry out dns resolution and access service after successfully resolved according to the IPv6 address generating, wherein, route announcement message can initiatively be issued according to timing mechanism by GGSN, also can the router request message based on MS issue.
Existing terminal can only obtain IPv4 address or IPv6 address prefix by above flow process, because common terminal was only known its domain name of wanting access service (as www.abc.com) before access service, and cannot determine the IP address class type that its service server that will access is supported, therefore, if terminal is activated and has been obtained IPv4 address by PDP, be IPv6 business and it will be accessed, terminal is being passed through DNS (DomainName Server, name server) system interrogation is while wanting the IPv4 address of access service, DNS system is replied the non-existent information of domain name that will access to terminal, cause terminal traffic to be accessed unsuccessfully, vice versa.
In sum, when existing pair of stack terminal access business, under the prerequisite of the IP type of unknown its business support that will access, it can only get IPv4 address or IPv6 address prefix, cause the mortality of terminal access business high, two stack capabilities of terminal are not also not fully exerted.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of IP address acquiring method, Apparatus and system, for solving the two high problems of stack terminal access service fail rate of prior art.
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 IP address acquiring method.
The IP address acquiring method providing according to the embodiment of the present invention, comprising:
Request network side distributes the Internet protocol IP address of the first kind, and domain name server (DNS) parsing is carried out in the IP address of the first kind of distributing according to network side;
After dns resolution failure or when the address of carrying in dns resolution success and analysis result is not mated with the IP address of the described first kind, request network side distributes the IP address of Second Type.
According to another aspect of the embodiment of the present invention, also provide a kind of IP address acquisition device.
The IP address acquisition device providing according to the embodiment of the present invention, comprising:
The first communication unit, for asking 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, for carrying out domain name server (DNS) parsing according to the IP address of the first kind of described the first communication unit reception;
Second communication unit, when not mating with the IP address of the described first kind after the failure of described dns resolution unit resolves or in the address that dns resolution success and analysis result carry, the IP address of request network side distribution Second Type.
According to another aspect of the embodiment of the present invention, also provide a kind of IP address acquisition system.
The IP address acquisition system providing according to the embodiment of the present invention, comprising:
IP address assignment server, 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 specifying in described request;
Terminal, for asking the IP address of the described IP address assignment server-assignment first kind, and carries out domain name server (DNS) parsing according to the IP address of the first kind of described IP address assignment server-assignment; And, after dns resolution failure or when the address of carrying is not mated with the IP address of the described first kind, ask the IP address of described IP address assignment server-assignment Second Type in dns resolution success and analysis result.
Above-mentioned at least one technical scheme providing by the embodiment of the present invention, first terminal 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 after dns resolution failure or when the address of carrying in dns resolution success and analysis result is not mated with the IP address of the first kind, request network side distributes the IP address of Second Type.The technical scheme providing according to the embodiment of the present invention, when the IP address class type address style corresponding with its access service failed when dns resolution or that definite terminal is obtained do not mated, further obtain the IP address of Second Type, thereby avoid the IP address class type address style corresponding with its access service of obtaining due to terminal not mate the Operational Visit failure problem causing, 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, 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 write specification, claims and accompanying drawing.
Brief description of the drawings
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 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 present invention;
The method of obtaining IP address and access service the second flow chart that Fig. 3 provides for the embodiment of the present invention;
The method of obtaining IP address and access service the 3rd flow chart that Fig. 4 provides for the embodiment of the present invention;
IP address acquisition device the first schematic diagram that Fig. 5 provides for the embodiment of the present invention;
IP address acquisition device the second schematic diagram that Fig. 6 provides for the embodiment of the present invention;
IP address acquisition device the 3rd schematic diagram that Fig. 7 provides for the embodiment of the present invention;
The IP address acquisition system schematic diagram that Fig. 8 provides for the embodiment of the present invention.
Embodiment
In order to provide the implementation of the success rate that improves two stack terminal access business, the embodiment of the present 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, for description and interpretation the present invention, is not intended to limit the present invention.And in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.
According to the embodiment of the present 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 in IPv4 address and IPv6 address, to determine the address that need to preferentially obtain.
The IP address of the first kind that step 202, reception network side distribute.
In this step, if what step 201 was asked is IPv4 address style, network side directly distributes an IPv4 address to two stack terminals, if what step 201 was asked is IPv6 address style, network side distributes an IPv6 address prefix to two stack terminals, and the IPv6 address prefix being distributed according to network side by two stack terminals generates the IPv6 address for access service.
Dns resolution is carried out in step 203, the IP address of the first kind of distributing according to network side.
In this step, if what terminal was asked network side distribution in step 201 is IPv4 address, it need to obtain the IPv4 address of service server to be visited, send address resolution request to DNS system, request DNS returns to the category-A address that service server is corresponding (being IPv4 address), carries the domain name that service server is corresponding in this request; If what terminal was asked network side distribution in step 201 is IPv6 address, it need to obtain the IPv6 address of service server to be visited, send address resolution request to DNS system, request DNS returns to the AAAA class address that service server is corresponding (being IPv6 address), carries the domain name that service server is corresponding in this request.
Step 204, judge that whether whether dns resolution success and the address of carrying in analysis result mate with the IP address of the first kind, if so, performs step 205, otherwise perform step 206 in the time of successfully resolved.
In this step, if the service server of dns resolution terminal request access is supported the address style that this terminal request is obtained, return to the IP address of respective type to terminal, behind the IP address that terminal reception DNS returns, if determine with its IP address obtaining and match, determine dns resolution success in step 202; If the service server of dns resolution terminal request access is not supported the address style that this terminal request is obtained, return to the non-existent message of service server domain name, terminal receives after this message, determines dns resolution failure.
Step 205, according to the IP address access service of IP matching addresses of the first kind of distributing with network side in analysis result.
Step 206, two stack terminal request network side distribute the IP address of Second Type.
In this step, if the first kind IP address that is defined as preferentially obtaining is IPv4 address, the IP address of Second Type is IPv6 address; If the first kind IP address that is defined as preferentially obtaining is IPv6 address, the IP address of Second Type is IPv4 address.
The IP address of the Second Type that step 207, reception network side distribute.
In above-mentioned steps 201, can determine by following strategy the IP address of the first kind:
Two stack terminals can provide and interface are set the address style of preferentially obtaining in IPv4 address and IPv6 address is set by user to user, and the address style of preferentially obtaining in the IPv4 address that user is arranged and IPv6 address, are defined as the IP address of the first kind; Or,
Determined the address style of preferentially obtaining in IPv4 address and IPv6 address by network side, and for example, be handed down to terminal by setting communication mode (short message), terminal, by the address style of preferentially obtaining in the IPv4 address of network side configuration and IPv6 address, is defined as the IP address of the first kind; Or,
Terminal is given tacit consent to a kind of address style for preferentially obtaining in IPv4 address and IPv6 address, i.e. the IP address of the first kind in the time dispatching from the factory.
According to the embodiment of the present invention, preferential acquisition strategy can arrange flexibly, does not enumerate herein.Specifically in the time arranging, 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 determine according to IPv4 business in network and the shared ratio of IPv6 business, initial stage at from network to IPv6 transition, business is still taking IPv4 as main, therefore, the IP address class type that terminal can configuration preference be obtained is IPv4, and at network the later stage to IPv6 transition, business may be by taking IPv6 as main, therefore the IP address class type that, terminal can configuration preference be obtained is IPv6.
Further, in the embodiment of the present invention, can also adjust the address style of preferentially obtaining of determining according to above-mentioned strategy, specific as follows:
Determine that the IP address (the IP address preferentially obtaining) of the first kind of distributing according to network side carries out the matching rate of the IP address of the address of carrying in the analysis result of dns resolution and this first kind, when this matching rate is for example, during lower than setting threshold (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 obtaining with terminal in matching rate=dns resolution result of dns resolution.
In further embodiment of this invention, after step 207 receives the IP address of Second Type of network side distribution, can also further carry out dns resolution to the IP address of this Second Type, to improve the success rate of Operational Visit, avoid because the network resources waste causing is not mated in IP address.Specifically as shown in Figure 3, comprise the steps:
Dns resolution is carried out in step 301, the IP address of Second Type of distributing according to network side.
In this step, specifically the resolving described in dns resolution process and above-mentioned steps 203 is basically identical, is not described in detail herein.
Step 302, judge that whether whether dns resolution success and the address of carrying in analysis result mate with the IP address of Second Type, if so, performs step 303, otherwise perform step 304 in the time of successfully resolved.
Step 303, according to the IP address access service of IP matching addresses of the Second Type distributing with network side in analysis result.
Step 304, prompt terminal business cannot be accessed.
Consider the difference of DNS system operating mode, in setting situation, DNS system can be returned to IPv4 address and the IPv6 address that service server is corresponding simultaneously, or in the time that the service server of dns resolution terminal request access is not supported address style that this terminal request obtains, also can return to an IP address, the address style that this IP address may be returned from terminal request DNS is different, therefore, according to the embodiment of the present invention, following steps are further carried out before carrying out dns resolution in the IP address of the Second Type network side being distributed in execution step 301:
Carry out searching the analysis result of dns resolution and the address of the IP matching addresses of Second Type according to the IP address of the first kind from step 203, if find, according to the IP address access service finding, and do not need to carry out above-mentioned steps 301~step 304, if do not find, carry out above-mentioned steps 301~step 304.
According to the embodiment of the present invention, before carrying out above-mentioned steps, need to carry out the configuration of two stack terminals, specifically there is following configuration mode:
In existing pair of stack terminal, the binding of the APN of terminal and operable IP address class type, i.e. IPv4APN and IPv6 APN, does not have the APN that not only can use IPv4 address style but also can use IPv6 address style.Terminal can only be carried out IPv4 application IP addresses by IPv4 APN, and terminal can only be carried out IPv6 application IP addresses by IPv6 APN.By the embodiment of the present invention, two stack APN are set, make two stack terminals not only can carry out IPv4 application IP addresses but also can carry out 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, in the time that terminal is carried out address acquisition by the APN of the type, can apply for IPv4 address, also can apply for IPv6 address.
Mode two, APN and specific address type are not bound, no matter the address of which kind of type of terminal to apply, can pass through this APN.
In order to understand better the embodiment of the present invention, below taking access PS territory business as example, embodiment of the present invention technique scheme is carried out to more detailed description:
Suppose that the address style of preferentially obtaining (being the IP address of the first kind) of determining is IPv4, as shown in Figure 4, obtain IP address and access service and specifically carry out following steps:
Step 401, two stack terminal activate PS territory business by two stack APN, and specifying PDP type is IPv4, sends PDP context activation request to network side.
Step 402, receive network side to this pair of stack terminal authentication by the PDP Context of rear feedback, in this PDP Context, carrying network side is the IPv4 address of this terminal distribution.
Step 403, from the PDP Context receiving, obtain IPv4 address, and carry out dns resolution according to this IPv4 address.
Step 404, judge that whether mate with IPv4 address the address of resolving whether success and carry in analysis result in the time of successfully resolved, if so, performs step 405, otherwise perform step 406.
Step 405, by 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 PDP type is IPv6, sends PDP context activation request to network side.
Step 407, receive network side to this pair of stack terminal authentication by the PDP Context of rear feedback, in this PDP Context, carrying network side is the IPv6 address prefix of this terminal distribution.
Step 408, from carry out the analysis result of dns resolution according to IPv4 address, search whether there is IPv6 address.
Step 409, judge whether to find IPv6 address, if so, perform step 410, otherwise execution step 411.
Step 410, by the IPv6 address access service finding.
Step 411, from the PDP Context receiving, obtain IPv6 address, and carry out dns resolution according to this IPv6 address.
Step 412, judge that whether mate with IPv4 address the address of resolving whether success and carry in analysis result in the time of successfully resolved, if so, performs step 413, otherwise perform step 414.
Step 413, by 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 present invention also provides a kind of IP address acquisition device, and as shown in Figure 5, this device comprises:
The first communication unit 501, dns resolution unit 502 and second communication unit 503; Wherein:
The first communication unit 501, for asking 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, for carrying out domain name server (DNS) parsing according to the IP address of the first kind of the first communication unit reception;
Second communication unit 503, when not mating with the IP address of the first kind after resolving in dns resolution unit 502 unsuccessfully or in the address that dns resolution success and analysis result carry, the IP address of request network side distribution Second Type.
Further, as shown in Figure 6, the device that the embodiment of the present invention provides can also comprise:
Preferentially obtain IP address determining unit 504, before distributing the IP address of the first kind at request network side, by the address style of preferentially obtaining in the IPv4 address of user's setting and IPv6 address, be defined as the IP address of the first kind; Or, network side, by setting the address style of preferentially obtaining in the IPv4 address of communication mode configuration and IPv6 address, is defined as to the IP address of the first kind; Or, by the address style of preferentially obtaining in the IPv4 address of acquiescence and 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 for:
Determine that the IP address of the first kind of distributing according to network side carries out the matching rate of the IP address of the address of carrying in the analysis result of dns resolution and the first kind, when this matching rate is during 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 present invention provides can also comprise: Operational Visit unit 505; Wherein:
Dns resolution unit 502 also for: receive behind the IP address of Second Type that network side distributes, dns resolution is carried out in the IP address of the Second Type distributing according to network side; Or, receive behind the IP address of Second Type of network side distribution, from carry out the analysis result of dns resolution according to the IP address of the first kind, search and the address of the IP matching addresses of Second Type, if do not find, dns resolution is carried out in the IP address of the Second Type distributing according to network side;
Operational Visit unit 505, during for the IP matching addresses of the address of carrying at dns resolution unit 505 successfully resolveds and analysis result and Second Type, according in analysis result with the address access service of the IP matching addresses of Second Type; Or while finding with the address of the IP matching addresses of Second Type from carry out the analysis result of dns resolution according to the IP address of the first kind, according to the IP address access service finding.
Be to be understood that, the method flow that obtains IP that the function that the IP address acquisition device that this embodiment provides is realized provides with above-described embodiment is corresponding one by one, the more detailed handling process realizing for each functional unit of this device, in said method embodiment, be described in detail, be not described in detail herein.
Corresponding with above-mentioned flow process, the embodiment of the present 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, 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 specifying in this request;
Terminal 802, distributes the IP address of the first kind for IP address requesting distribution server 801, and dns resolution is carried out in the IP address of the first kind of distributing according to IP address assignment server 801; And while coupling with the IP address of the first kind in dns resolution failure address rear or that carry in dns resolution success and analysis result, IP address requesting distribution server 801 distributes the IP address of Second Type.
Further, in the embodiment of the present invention, above-mentioned terminal 802 also for:
Distribute the IP address of the first kind at IP address requesting distribution server 801 before, by the address style of preferentially obtaining in the IPv4 address of user's setting and IPv6 address, be defined as the IP address of the first kind; Or, network equipment, by setting the address style of preferentially obtaining in the IPv4 address of communication mode configuration and IPv6 address, is defined as to the IP address of the first kind; Or, by the address style of preferentially obtaining in the IPv4 address of acquiescence and IPv6 address, be defined as the IP address of the first kind.
Further, in the embodiment of the present invention, above-mentioned terminal 802 also 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 during 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 present invention, above-mentioned terminal 802 also for:
After IP address requesting distribution server 801 distributes the IP address of Second Type, dns resolution is carried out in the IP address of the Second Type distributing according to IP address assignment server 801, when the IP matching addresses of the address of carrying after successfully resolved and in analysis result and Second Type, according in analysis result with the address access service of the IP matching addresses of Second Type; Or,
After IP address requesting distribution server 801 distributes the IP address of Second Type, from carry out the analysis result of dns resolution according to the IP address of the first kind, search the address with the IP matching addresses of Second Type, if find, according to the IP address access service finding, otherwise, dns resolution is carried out in the IP address of the Second Type distributing according to IP address assignment server 801, and when the IP matching addresses of the address of carrying in successfully resolved and analysis result and Second Type, according in analysis result with the address access service of the IP matching addresses of Second Type.
In 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 providing by the embodiment of the present invention, first terminal 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 after dns resolution failure or when the address of carrying in dns resolution success and analysis result is not mated with the IP address of the first kind, request network side distributes the IP address of Second Type.The technical scheme providing according to the embodiment of the present invention, when the IP address class type address style corresponding with its access service failed when dns resolution or that definite terminal is obtained do not mated, further obtain the IP address of Second Type, thereby avoid the IP address class type address style corresponding with its access service of obtaining due to terminal not mate the Operational Visit failure problem causing, improved the success rate of two stack terminal access business.
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 these amendments of the present invention and within 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 (6)

1. an IP address acquiring method, is characterized in that, comprising:
Request network side distributes the Internet protocol IP address of the first kind, and domain name server (DNS) parsing is carried out in the IP address of the first kind of distributing according to network side;
After dns resolution failure or when the address of carrying in dns resolution success and analysis result is not mated with the IP address of the described first kind, request network side distributes the IP address of Second Type;
Before request network side distributes the IP address of the first kind, also comprise:
By the address style of preferentially obtaining in the IPv4 address of user's setting and IPv6 address, be defined as the IP address of the first kind; Or,
Network side, by setting the address style of preferentially obtaining in the IPv4 address of communication mode configuration and IPv6 address, is defined as to the IP address of the first kind; Or,
By the address style of preferentially obtaining in the IPv4 address of acquiescence and IPv6 address, be defined as the IP address of the first kind;
Described method also comprises:
Determine that the IP address of the first kind of distributing according to network side carries 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, when described matching rate is during lower than setting threshold, the address style that the IP address of described Second Type is defined as preferentially obtaining.
2. the method for claim 1, is characterized in that, request network side also comprises after distributing the IP address of Second Type:
Dns resolution is carried out in the IP address of the Second Type distributing according to network side, when the IP matching addresses of the address of carrying in successfully resolved and analysis result and described Second Type, according in described analysis result with the address access service of the IP matching addresses of described Second Type; Or,
From carry out the analysis result of dns resolution according to the IP address of the described first kind, search the address with the IP matching addresses of described Second Type, if find, according to the IP address access service finding, otherwise, dns resolution is carried out in the IP address of the Second Type distributing according to network side, and when the IP matching addresses of the address of carrying in successfully resolved and analysis result and described Second Type, according in described analysis result with the address access service of the IP matching addresses of described Second Type.
3. an IP address acquisition device, is characterized in that, comprising:
The first communication unit, for asking 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, for carrying out domain name server (DNS) parsing according to the IP address of the first kind of described the first communication unit reception;
Second communication unit, when not mating with the IP address of the described first kind after the failure of described dns resolution unit resolves or in the address that dns resolution success and analysis result carry, the IP address of request network side distribution Second Type;
Also comprise:
Preferentially obtain IP address determining unit, before distributing the IP address of the first kind at request network side, by the address style of preferentially obtaining in the IPv4 address of user's setting and IPv6 address, be defined as the IP address of the first kind; Or, network side, by setting the address style of preferentially obtaining in the IPv4 address of communication mode configuration and IPv6 address, is defined as to the IP address of the first kind; Or, by the address style of preferentially obtaining in the IPv4 address of acquiescence and IPv6 address, be defined as the IP address of the first kind;
The described IP address determining unit of preferentially obtaining, also for:
Determine that the IP address of the first kind of distributing according to network side carries 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, when described matching rate is during lower than setting threshold, the address style that the IP address of described Second Type is defined as preferentially obtaining.
4. device as claimed in claim 3, is characterized in that,
Described dns resolution unit also for: receive behind the IP address of Second Type that network side distributes, dns resolution is carried out in the IP address of the Second Type distributing according to network side; Or, receive behind the IP address of Second Type of network side distribution, from carry out the analysis result of dns resolution according to the IP address of the described first kind, search the address with the IP matching addresses of described Second Type, if do not find, dns resolution is carried out in the IP address of the Second Type distributing according to network side;
Described device also comprises: Operational Visit unit, during for the IP matching addresses of the address of carrying at the success of described dns resolution unit resolves and analysis result and described Second Type, according in described analysis result with the address access service of the IP matching addresses of described Second Type; Or while finding with the address of the IP matching addresses of described Second Type from carry out the analysis result of dns resolution according to the IP address of the described first kind, according to the IP address access service finding.
5. an IP address acquisition system, is characterized in that, comprising:
IP address assignment server, 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 specifying in described request;
Terminal, for asking the IP address of the described IP address assignment server-assignment first kind, and carries out domain name server (DNS) parsing according to the IP address of the first kind of described IP address assignment server-assignment; And, after dns resolution failure or when the address of carrying is not mated with the IP address of the described first kind, ask the IP address of described IP address assignment server-assignment Second Type in dns resolution success and analysis result;
Described terminal also for:
Before the IP address of the described IP address assignment server-assignment first kind of request, by the address style of preferentially obtaining in the IPv4 address of user's setting and IPv6 address, be defined as the IP address of the first kind; Or, network equipment, by setting the address style of preferentially obtaining in the IPv4 address of communication mode configuration and IPv6 address, is defined as to the IP address of the first kind; Or, by the address style of preferentially obtaining in the IPv4 address of acquiescence and IPv6 address, be defined as the IP address of the first kind;
Described terminal also for:
Determine the matching rate that carries out 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 during lower than setting threshold, the address style that the IP address of described Second Type is defined as preferentially obtaining.
6. system as claimed in claim 5, is characterized in that, described terminal also for:
After the IP address of the described IP address assignment server-assignment Second Type of request, carry out dns resolution according to the IP address of the Second Type of described IP address assignment server-assignment, when the IP matching addresses of the address of carrying in successfully resolved and analysis result and described Second Type, according in described analysis result with the address access service of the IP matching addresses of described Second Type; Or,
After the IP address of the described IP address assignment server-assignment Second Type of request, from carry out the analysis result of dns resolution according to the IP address of the described first kind, search the address with the IP matching addresses of described Second Type, if find, according to the IP address access service finding, otherwise, carry out dns resolution according to the IP address of the Second Type of described IP address assignment server-assignment, and when the IP matching addresses of the address of carrying in successfully resolved and analysis result and described Second Type, according in 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 CN102036422A (en) 2011-04-27
CN102036422B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102984294A (en) * 2012-12-07 2013-03-20 中兴通讯股份有限公司 IPv6 DNS address distribution and acquisition method and device
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
CN110191031B (en) * 2019-05-10 2021-06-29 杭州迪普科技股份有限公司 Network resource access method and device and electronic equipment
CN111417163B (en) * 2020-03-27 2022-05-20 Oppo广东移动通信有限公司 IP address recovery method, terminal and storage medium
CN114143230B (en) * 2020-09-02 2023-07-21 中国移动通信集团安徽有限公司 Dual-stack user DNS analysis duration calculation method and device
CN112153753B (en) * 2020-09-24 2022-09-16 维沃移动通信有限公司 Network connection method and device

Citations (3)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060075138A1 (en) * 2004-09-28 2006-04-06 Utstarcom, Inc. Method and apparatus to facilitate IPv6 DNS requests

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
CN102036422A (en) 2011-04-27

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
CN101997934A (en) Method and system for accessing addresses, mobile terminal and application method thereof
EP2890091B1 (en) Address allocation method, device and system
US9031074B2 (en) Method and apparatus for packet call setup
CN101729500B (en) Method, device and system for identifying IP session
CN101080098B (en) A communication method and system
CN1929497B (en) Method and system for obtaining moving nodes local proxy information
EP1739899A1 (en) A method and system for providing ipv6 service
CN102752413B (en) Dynamic Host Configuration Protocol server system of selection and the network equipment
CN101188514A (en) Method, device and system for automatically discovering network element device
CN102172062A (en) Communication system, connection control device, mobile terminal, base station control method, service request method, and program
CN101094224A (en) Method and system of providing services, access services, logging in and out services
CN1744596B (en) Method for host obtaining network allocation parameterns in IPV6 network
CN101674336A (en) Method, system and device for allocating IP addresses
US20120210008A1 (en) Method and Mobile Communication System Capable of Establishing Peer-to-Peer Transmission
CN103312749A (en) Discovery method, equipment and system for application layer flow optimization (ALTO) server
CN103051739A (en) Network terminal and IP (Internet Protocol) address configuration method thereof
CN102651862A (en) IP (Internet Protocol) address configuration method of WAP (Wireless Application Protocol) gateway and equipment thereof
CN104079682A (en) Address translation method and device based on domain name system (DNS)
CN104581977B (en) WLAN user management method, apparatus and system
CN103248716A (en) Distribution method, device and system of private network address
CN103826320A (en) Method and device for establishing general-packet-radio-service connection
CN102299860B (en) Acquisition method and equipment for path maximum transmission unit (Pathmtu)
CN101510900A (en) Method for configuring route of mobile terminal in PMIPv4

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