CN106303978A - The method that on Android system, stateless obtains IPV6 address - Google Patents
The method that on Android system, stateless obtains IPV6 address Download PDFInfo
- Publication number
- CN106303978A CN106303978A CN201510308685.0A CN201510308685A CN106303978A CN 106303978 A CN106303978 A CN 106303978A CN 201510308685 A CN201510308685 A CN 201510308685A CN 106303978 A CN106303978 A CN 106303978A
- Authority
- CN
- China
- Prior art keywords
- address
- obtains
- stateless
- protocol stack
- ipv6
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5069—Address allocation for group communication, multicast communication or broadcast communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
- H04W80/04—Network layer protocols, e.g. mobile IP [Internet Protocol]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/16—Gateway arrangements
Abstract
The present invention provides a kind of method that on Android system, stateless obtains IPV6 address, it it is the method that the stateless of exploitation obtains IPv6 unicast address on the basis of Android system, only need on the RIL of android, link local address be write on wireless network card, can trigger IP protocol stack be automatically performed the acquisition of IPv6 address prefix, the assembling of the complete unicast address of IPv6 and by this address configuration to network card equipment.The method is based on existing Android system, it is not necessary to increase extra process on kernel, simple effectively and there is universality.
Description
Technical field
The present invention relates to the communications field, particularly relate to stateless on a kind of Android system and obtain IPV6
The method of address.
Background technology
The mobile terminal device of some manufacturer at present, the acquisition to stateless IPv6 address is by amendment kernel
Realize.This process that realizes initiates the activation of data link approximately as: framework layer, and
Suitable moments notice kernel (kernel) triggers ip protocol layer and sends route requests (Router Solicitation)
Message, resolves it after receiving routing broadcast (Router Advertisement) message, and forms complete
IPv6 address, this address is arranged in a certain system property;Then, framework layer passes through this
One attribute gets complete IPv6 address.This mode not only needs framework Yu kernel mutual,
And kernel additionally increase flow process trigger transmission RS message outside, in addition it is also necessary to newly-increased system property preserves
IPv6 address, is a kind of relatively cumbersome method.
Although the ip protocol layer of android system has supported ICMPv6 agreement, but to IPv6 stateless ground
Location automatically configures, and does not the most provide ready-made implementation, each manufacturer terminal to develop based on Android system
Different IPv6 address acquisition modes, some implementation modifying point is more, adds the complexity of code.
Summary of the invention
In order to solve the problem that prior art exists, the present invention provides stateless on a kind of Android system
The method obtaining IPV6 address, including
Radio interface layer obtains PDP activation result by radio protocol stack;
Described radio interface layer obtains link local address by described PDP activation result, and by described link
Local address write network card equipment;
After IP protocol stack detects the described link local address on network card equipment, send route requests to route
Device;
Described router response routing broadcast is to described IP protocol stack, and described IP protocol stack is from described routing broadcast
Parse network prefix, and by mono-for IPV6 complete with described PDP activation result composition for described network prefix
Broadcast address;And
Described complete IPV6 unicast address is write described network card equipment, described radio interface layer by IP protocol stack
Described complete IPV6 unicast address is read from described network card equipment.
Optionally, the method that radio interface layer obtains PDP activation result by radio protocol stack includes:
Described radio interface layer sends PDP activation request to described radio protocol stack;And
Described radio protocol stack is handed over mutually with real-time performance signaling, draws PDP activation result and is transmitted back to described nothing
Line interface layer.
Optionally, when being in 2G or 3G network, described PDP activation result is the IPV6 of network allocation
Address.
Optionally, the method that radio interface layer obtains link local address by described PDP activation result includes:
Radio interface layer extracts interface number from the IPV6 address of described network allocation;And
Described link local address is obtained by described interface number.
Optionally, described interface number is the interface number of rear 64bit of IPV6 address of described network allocation.
Optionally, the method that radio interface layer obtains link local address by described PDP activation result is,
The prefix of fe80 is added before described interface number.
Optionally, when being in LTE network, the result of described PDP activation is interface number.
Optionally, the method that radio interface layer obtains link local address by described PDP activation result is,
The prefix of fe80 is added before described interface number.
Optionally, described router is GGSN.
Optionally, described radio interface layer, network card equipment and described IP protocol stack are positioned at Android system
On wireless terminal,
The method that on the Android system of the present invention, stateless obtains IPV6 address, is in android system
The method that on the basis of system, the stateless of exploitation obtains IPv6 unicast address, only need to be at the RIL of android
On link local address is write on wireless network card, IP protocol stack can be triggered and be automatically performed IPv6 address prefix
Acquisition, the assembling of the complete unicast address of IPv6 and by this address configuration to network card equipment.The method based on
Existing Android system, it is not necessary to increase extra process on kernel, simple effectively and there is universality.
Accompanying drawing explanation
Fig. 1 is the side that on Android system described in one embodiment of the invention, stateless obtains IPV6 address
Combine Android system structure in method realizes schematic diagram.
Fig. 2 is the side that on Android system described in one embodiment of the invention, stateless obtains IPV6 address
The flow chart of method.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.According to following explanation and
Claims, advantages and features of the invention will be apparent from.It should be noted that, accompanying drawing all uses the simplest
The form changed and all use non-ratio accurately, only in order to convenient, aid in illustrating the embodiment of the present invention lucidly
Purpose.
The present invention provides a kind of method that on Android system, stateless obtains IPV6 address, Qi Zhongsuo
State Android system as it is shown in figure 1, include:
RIL module 10 (radio interface layer), for radio protocol stack 40 is mutual and read-write network card equipment 20;
Radio protocol stack 40, for carrying out the relevant Signalling exchange of PDP with wireless network;
Network card equipment 20, can store IP address and be available for read-write;
IP protocol stack 30, supports ICMPv6 agreement;
Router 50, can receive route requests and send routing broadcast.
Wherein, described radio interface layer 10, network card equipment 20 and described IP protocol stack 30 are positioned at android
On the wireless terminal of system.
On the basis of structure shown in Fig. 1, on the Android system of the present invention, stateless obtains IPV6
The method of address is as in figure 2 it is shown, comprise the following steps:
Radio interface layer obtains PDP activation result by radio protocol stack;
Described radio interface layer obtains link local address by described PDP activation result, and by described link
Local address write network card equipment;
After IP protocol stack detects the described link local address on network card equipment, send route requests to route
Device;
Described router response routing broadcast is to described IP protocol stack, and described IP protocol stack is from described routing broadcast
Parse network prefix, and by mono-for IPV6 complete with described PDP activation result composition for described network prefix
Broadcast address;And
Described complete IPV6 unicast address is write described network card equipment, described radio interface layer by IP protocol stack
Described complete IPV6 unicast address is read from described network card equipment.
Relative to the scheme of prior art, on the Android system that the present invention provides, stateless obtains IPV6
The method of address only need to operate wireless network card equipment 20 at RIL layer 10 can obtain IPv6 address, it is not necessary to
Framework's with kernel is mutual, more without increasing extra process at kernel, simple effectively and have
Universality.
In the present embodiment, in conjunction with Android system as shown in Figure 1, on the Android system of the present invention
Stateless obtains the method for IPV6 address and specifically includes following steps (in conjunction with the arrow in Fig. 1, arrow
Label respectively corresponding steps label):
1. RIL 10 request activates the PDP of IPv6 type, and sends the request to radio protocol stack 40;
2., after radio protocol stack 40 completes the Signalling exchange of calcaneus rete network, the result of PDP activation is informed RIL 10,
This result contains IPv6 address (2 3G network under) or the interface number (interface of 64bit of network allocation
Id, under LTE network);
If under 3. system is in 2G or 3G network, then RIL 10 extracts from the IPv6 address of network allocation
Go out the interface number of rear 64bit;If system is under LTE network, then RIL 10 directly uses network allocation
Interface number;Above-mentioned interface number is utilized to form link local (link local) address afterwards, and by described chain
Road local address writes network card equipment 20;
Wherein, the method that RIL 10 obtains link local address by described PDP activation result is, described
The prefix of fe80 is added before interface number.
4. IP protocol stack 30 detects available link local address on network card equipment 20, meet transmission road
By the condition asked;
5. IP protocol stack 30 sends route requests and to router 50, the most described router 50 is
GGSN(Gateway GPRS Support Node);
6. the routing broadcast of IP protocol stack 30 receiving router 50 response, therefrom parses network prefix, and will
It catches up with the IPv6 unicast address that the interface number composition stated is complete;
7. described complete IPv6 unicast address is write on network card equipment 20 by IP protocol stack 30;
8. RIL 10 reads described complete IPv6 unicast address from network card equipment 20.
Said method contains the acquisition process of IPv6 unicast address under two kinds of networks of 2G/3G and LTE, its
Difference is that RIL 10 passes through the difference of the PDP activation result that radio protocol stack 40 obtains.In LTE network
The interface number for 64bit of lower acquisition, now RIL 10 can be used directly this interface number composition link local address,
And at the follow-up IPV6 unicast address that can have directly been formed with the network prefix parsed by this interface number.
And under 2G/3G network, the PDP activation result obtained by radio protocol stack 40 due to RIL 10 is only wrapped
IPV6 address containing network allocation, it is therefore desirable to extract the interface number of 64bit from this address, then carry out
Subsequent step.
Being above the complete activation flow process of IPv6 type PDP, this invention is only on the basis of existing public flow process
On increased step 3 and 8 newly, this two step only need to be written and read the operation of network card equipment 20 at RIL 10,
Get available IPv6 unicast address.Wherein step 4~6 is all the existing reality of kernel of Android system
Existing, it is not necessary to make extra amendment, therefore this method realize very convenient.
The method that on the Android system of the present invention, stateless obtains IPV6 address, is in android system
The method that on the basis of system, the stateless of exploitation obtains IPv6 unicast address, only need to be at the RIL of android
On link local address is write on wireless network card, IP protocol stack can be triggered and be automatically performed IPv6 address prefix
Acquisition, the assembling of the complete unicast address of IPv6 and by this address configuration to network card equipment.The method based on
Existing Android system, it is not necessary to increase extra process on kernel, simple effectively and there is universality.
The method of the present invention only need to can reach stateless at RIL read-write network card equipment and obtain the effect of IPv6 address
Really.The method takes full advantage of Android system some function existing, in the flow process of existing PDP activation
On the basis of, it is only necessary to do, at RIL, the IP protocol stack that a shirtsleeve operation can trigger android the most automatic
Completing the step that stateless address obtains, code implements simply, and readable high, effect is the most reliable.
Obviously, those skilled in the art can carry out various change and modification without deviating from the present invention to invention
Spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of equivalent technologies, then the present invention is also intended to change and including modification include these.
Claims (10)
1. the method that on an Android system, stateless obtains IPV6 address, it is characterised in that include
Radio interface layer obtains PDP activation result by radio protocol stack;
Described radio interface layer obtains link local address by described PDP activation result, and by described link
Local address write network card equipment;
After IP protocol stack detects the described link local address on network card equipment, send route requests to route
Device;
Described router response routing broadcast is to described IP protocol stack, and described IP protocol stack is from described routing broadcast
Parse network prefix, and by mono-for IPV6 complete with described PDP activation result composition for described network prefix
Broadcast address;And
Described complete IPV6 unicast address is write described network card equipment, described radio interface layer by IP protocol stack
Described complete IPV6 unicast address is read from described network card equipment.
2. the method that stateless as claimed in claim 1 obtains IPV6 address, it is characterised in that nothing
The method that line interface layer obtains PDP activation result by radio protocol stack includes:
Described radio interface layer sends PDP activation request to described radio protocol stack;And
Described radio protocol stack is handed over mutually with real-time performance signaling, draws PDP activation result and is transmitted back to described nothing
Line interface layer.
3. the method that stateless as claimed in claim 1 obtains IPV6 address, it is characterised in that when
When being in 2G or 3G network, described PDP activation result is the IPV6 address of network allocation.
4. the method that stateless as claimed in claim 3 obtains IPV6 address, it is characterised in that nothing
The method that line interface layer obtains link local address by described PDP activation result includes:
Radio interface layer extracts interface number from the IPV6 address of described network allocation;And
Described link local address is obtained by described interface number.
5. the method that stateless as claimed in claim 4 obtains IPV6 address, it is characterised in that institute
State the interface number of the rear 64bit of the IPV6 address that interface number is described network allocation.
6. the method that stateless as claimed in claim 4 obtains IPV6 address, it is characterised in that nothing
The method that line interface layer obtains link local address by described PDP activation result is, before described interface number
Add the prefix of fe80.
7. the method that stateless as claimed in claim 1 obtains IPV6 address, it is characterised in that when
When being in LTE network, the result of described PDP activation is interface number.
8. the method that stateless as claimed in claim 7 obtains IPV6 address, it is characterised in that nothing
The method that line interface layer obtains link local address by described PDP activation result is, before described interface number
Add the prefix of fe80.
9. the method that stateless as claimed in claim 1 obtains IPV6 address, it is characterised in that institute
Stating router is GGSN.
10. the method that the stateless as described in claim 1-9 any one obtains IPV6 address, its
Being characterised by, described radio interface layer, network card equipment and described IP protocol stack are positioned at the nothing of Android system
In line terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510308685.0A CN106303978A (en) | 2015-06-07 | 2015-06-07 | The method that on Android system, stateless obtains IPV6 address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510308685.0A CN106303978A (en) | 2015-06-07 | 2015-06-07 | The method that on Android system, stateless obtains IPV6 address |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106303978A true CN106303978A (en) | 2017-01-04 |
Family
ID=57659850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510308685.0A Pending CN106303978A (en) | 2015-06-07 | 2015-06-07 | The method that on Android system, stateless obtains IPV6 address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106303978A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1838065A1 (en) * | 2006-03-20 | 2007-09-26 | Siemens Aktiengesellschaft | Apparatus & method for assuring MIPv6 functionality after handover |
CN101547223A (en) * | 2008-03-26 | 2009-09-30 | 华为技术有限公司 | Method, device and system for address configuration |
CN102833732A (en) * | 2012-07-25 | 2012-12-19 | 中兴通讯股份有限公司 | IPv6 (Internet Protocol Version 6) address stateless autoconfiguration system, data card and implementation method thereof |
CN102984294A (en) * | 2012-12-07 | 2013-03-20 | 中兴通讯股份有限公司 | IPv6 DNS address distribution and acquisition method and device |
CN103379188A (en) * | 2012-04-24 | 2013-10-30 | 联发科技股份有限公司 | Apparatuses and methods for IPv6 address acquisition |
-
2015
- 2015-06-07 CN CN201510308685.0A patent/CN106303978A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1838065A1 (en) * | 2006-03-20 | 2007-09-26 | Siemens Aktiengesellschaft | Apparatus & method for assuring MIPv6 functionality after handover |
CN101547223A (en) * | 2008-03-26 | 2009-09-30 | 华为技术有限公司 | Method, device and system for address configuration |
CN103379188A (en) * | 2012-04-24 | 2013-10-30 | 联发科技股份有限公司 | Apparatuses and methods for IPv6 address acquisition |
CN102833732A (en) * | 2012-07-25 | 2012-12-19 | 中兴通讯股份有限公司 | IPv6 (Internet Protocol Version 6) address stateless autoconfiguration system, data card and implementation method thereof |
CN102984294A (en) * | 2012-12-07 | 2013-03-20 | 中兴通讯股份有限公司 | IPv6 DNS address distribution and acquisition method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI797247B (en) | Method, network device and terminal device for wireless communication | |
US9955345B2 (en) | System and method for mobile network access point name virtualization | |
CN103988544B (en) | System and method for minimizing the loss of IP context during IRAT switches | |
CN102984288B (en) | A kind of method and system of automatic management IPv6 address conflicts | |
US9319966B2 (en) | Address processing method, gateway device, and access point | |
CN106488508B (en) | A kind of data transmission method, apparatus and system | |
CN101064936B (en) | Method and system for accessing home zone of roaming users | |
CN102388639B (en) | Method and device for accessing mobile network and user device | |
CN104685957A (en) | System and method for APN correction in GTP messages associated with GPRS data services offered by mobile operator using sponsor network | |
CN103108308A (en) | Method, network element and user end for achieving identity location separation and distribution interface identification | |
CN104243268A (en) | Association method and device between virtual extensible local area networks (VXLAN) and tunnel | |
CN103581248A (en) | Method and device for providing content distribution network CDN service | |
CN104247462A (en) | Machine-type communication proxy function | |
RU2522683C2 (en) | Message transmission method and serving gprs support node | |
CN104253878A (en) | VLAN (Virtual Local Area Network) information management system and method of DHCP (Dynamic Host Configuration Protocol) RELAY termination sub-interface | |
CN103298148A (en) | Method for connecting mobile terminal to multiple PDNs (public data networks) through fixed network and related device | |
US20200169867A1 (en) | Interception method, core network device and base station | |
CN104969521B (en) | Data sending processing method and router | |
US20160112861A1 (en) | Data Transmission Method and Gateway | |
CN104427483A (en) | Method and system for realizing roaming through LTE (Long Term Evolution) network | |
CN102098348A (en) | Selection method of packet data network gateway and mobility management network element | |
CN104601463A (en) | Message forwarding method and device in VXLAN (virtual extensible local area network) | |
CN102957755B (en) | A kind of address resolution method, device and information transferring method | |
CN101945360B (en) | Wireless terminal configuration method and system | |
CN104284383A (en) | Method and device for keeping service continuity |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20170104 Assignee: Shanghai Li Ke Semiconductor Technology Co., Ltd. Assignor: Leadcore Technology Co., Ltd. Contract record no.: 2018990000159 Denomination of invention: Method for obtaining IPV6 address on android system in stateless mode License type: Common License Record date: 20180615 |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |