CN102325199B - IP address management method and device in terminal - Google Patents
IP address management method and device in terminal Download PDFInfo
- Publication number
- CN102325199B CN102325199B CN201110269694.5A CN201110269694A CN102325199B CN 102325199 B CN102325199 B CN 102325199B CN 201110269694 A CN201110269694 A CN 201110269694A CN 102325199 B CN102325199 B CN 102325199B
- Authority
- CN
- China
- Prior art keywords
- terminal
- address
- uicc
- new
- network
- 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
Links
Classifications
-
- 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
Abstract
The invention discloses a kind of IP address management method in terminal, including:When determining IP address and the IP address conflict of access network of the IP address of terminal and/or the Universal Integrated Circuit Card UICC of the terminal, new IP address is configured for the UICC of the terminal and the terminal.The present invention discloses IP address management device in a kind of terminal for realizing preceding method, including:Whether determining unit, the IP address for determining the IP address of terminal and/or the UICC of the terminal during conflict trigger dispensing unit with accessing the IP address conflict of network;Dispensing unit, for configuring new IP address for the UICC of the terminal and the terminal.The present invention is avoided IP address and the IP address conflict of the external network of terminal access of terminal or UICC, ensure that between terminal and UICC, the communication between terminal and UICC and external network by the flexible configuration to terminal and UICC IP address.
Description
Technical field
The present invention relates to a kind of IP address management technology, more particularly to a kind of is IP in the terminal for prevent IP address conflict
Location management method and device.
Background technology
Smart card (smart cart), large-capacity user mark module (SIM, Subscriber Identity Module)
The Universal Integrated Circuit Cards such as card, multimedia SIM card (UICC, Universal Integrated Circuit Card) pass through piece
Interior universal serial port bus (IC-USB) interface is connected with terminal, and all operation has transmission control protocol/internet on terminal and UICC
Interconnection protocol (TCP/IP, Transmission Control Protocol/Internet Protocol) protocol stack, Shuan Fangtong
Letter uses equipment communication mode between network.Fig. 1 is the structured flowchart that terminal is connected with UICC by IC-USB interfaces, such as Fig. 1 institutes
Show, browser and various application programs be provided with terminal, Web server information and various application programs are provided with UICC,
Wherein, UICC is upper can support the business such as graphical SIM card, large-capacity memory card, terminal can by various application programs come
Access UICC.The standards of ETSI TS 102483 provide that terminal and UICC use internal IP to carry out information exchange, wherein, IP address
It is assigned two ways.A kind of mode be using fixed IP, if UICC IP address is 192.168.0.1, the IP address of terminal
For 192.168.0.2;Another way is, by DHCP (DHCP, the Dynamic Host in terminal
Configuration Protocol) server-assignment IP address.Can mutually it be accessed between UICC and terminal, UICC also can
By terminal access far-end server, web page server (Web sever) that outer net can be also had access on UICC.
And current terminal has the function of being surfed the Net by various ports mostly.When terminal is accessed by other physical interfaces
Another network (such as accesses a WLAN WLAN by Wireless Fidelity (WiFi, Wireless Fidelity);Again by logical
With universal serial bus (USB, Universal Serial BUS) connection personal computer (PC, Personal Computer), pass through
The Ethernet of simulation communicates with PC) when, the new IP address for accessing network is possible to the connectivity port with present terminal and UICC
On two IP address conflicts, so the communication of terminal will be caused to make a mistake.And existing mechanism, when IP conflicts occur
Terminal is not notified that UICC IP address conflicts, UICC IP address is replaced by the IP address not conflicted with network IP yet.
The content of the invention
In view of this, can be it is a primary object of the present invention to provide IP address management method and device in a kind of terminal
After monitoring terminal or UICC IP address and the IP address conflict of access network, be terminal and/or UICC with configuring new IP
Location, avoid because of IP address.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
A kind of IP address management method in terminal, including:
When determining IP address and the IP address conflict of access network of the IP address of terminal and/or the UICC of the terminal,
New IP address is configured for the UICC of the terminal and the terminal.
Preferably, the UICC of the terminal and terminal IP address be for realize the terminal and the UICC it
Between communication and configure.
Preferably, the Universal Integrated Circuit Card UICC of the IP address of the terminal and/or terminal IP address and institute
The IP address conflict with access network is stated, is:
The network segment residing for the UICC of the terminal and the terminal it is identical with the network segment of the access network;
Or the network segment residing for the UICC of the terminal and the terminal with the access mesh network section there is mutual include to close
System.
Preferably, it is described that new IP address, the network segment residing for new IP address are configured for the UICC of the terminal and the terminal
It is different and do not include mutually from the access mesh network section.
Preferably, it is described that new IP address is configured for the UICC of the terminal and the terminal, be:
The terminal is that the UICC configures new IP address, and notifies the UICC;Receiving, the UICC is new
After response is completed in IP address configuration, new IP address is configured for itself.
IP address management device in a kind of terminal, including determining unit and dispensing unit, wherein:
Determining unit, for determine the IP address of terminal and/or the UICC of the terminal IP address whether with access network
The IP address conflict of network, dispensing unit is triggered during conflict;
Dispensing unit, for configuring new IP address for the UICC of the terminal and the terminal.
Preferably, the UICC of the terminal and terminal IP address be for realize the terminal and the UICC it
Between communication and configure.
Preferably, the Universal Integrated Circuit Card UICC of the IP address of the terminal and/or terminal IP address and institute
The IP address conflict with access network is stated, is:
The network segment residing for the UICC of the terminal and the terminal is identical with the network segment of the access network;
Or the network segment residing for the UICC of the terminal and the terminal with the access mesh network section there is mutual include to close
System.
Preferably, the dispensing unit is further used for:
New IP address, the network segment residing for new IP address and the access network are configured for the UICC of the terminal and the terminal
Network diagram section is different and does not include mutually.
Preferably, described device also includes notification unit and receiving unit, wherein:
Notification unit, the UICC is notified for new IP address will to be configured for the UICC;
Receiving unit, response is completed for receiving the new IP address configurations of the UICC;
The dispensing unit is further used for, and receiving the new IP address of the UICC in the receiving unit configures completion
After response, new IP address is configured for the terminal.
In the present invention, when the IP address of external network and the IP address of terminal itself and UICC for monitoring terminal access
During IP address conflict, terminal will be that itself configures new IP address with UICC, so, with avoiding terminal and UICC IP
Location and the IP address conflict of the external network of terminal access, ensure that between terminal and UICC, terminal and UICC and external network
Between communication.
Brief description of the drawings
Fig. 1 is the structured flowchart that terminal is connected with UICC by IC-USB interfaces;
At solution when Fig. 2 is the terminal of the embodiment of the present invention and UICC IP address and the IP address conflict of other networks
Manage flow chart;
Fig. 3 be the embodiment of the present invention terminal in IP address management device composition structural representation.
Embodiment
The present invention basic thought be:Determine the IP address of terminal and/or the Universal Integrated Circuit Card UICC of the terminal
IP address and during the IP address conflict of access network, be that the UICC of the terminal and the terminal configures new IP address.
It is by the following examples and referring to the drawings, right for the object, technical solutions and advantages of the present invention are more clearly understood
The present invention is further described.
At solution when Fig. 2 is the terminal of the embodiment of the present invention and UICC IP address and the IP address conflict of other networks
Flow chart is managed, as shown in Fig. 2 specifically including following steps:
Step 201, UICC intercepts to the network port.
UICC is carried out to a certain specific port of User Datagram Protocol (UDP, User Datagram Protocol)
Intercept, the port 67 of UICC DHCP service can such as be intercepted.Here, it is mainly used for receipt of subsequent terminal and sends replacing
The UDP messages of IP address.
Step 202, terminal detects IP address conflict.
In this example, it is assumed that UICC is respectively with IP address of the terminal in IC-USB ports during initialization:
192.168.0.1,192.168.0.2, its subnet mask is 255.255.255.0.It should be noted that the UICC and IP of terminal
Address configuration predominantly makes terminal be communicated with UICC by IC-USB ports, also, UICC is by terminal, can be with outer net
Communication.
When terminal accesses another subnet by WIFI, if getting the IP address and itself category of new subnet by DHCP
It is also 192.168.0.2 in the same network segment, such as IP address of subnet, subnet mask is 255.255.255.0.This creates the terminal
IP address conflict.
Terminal circulation timing inquires about the IP address of itself, by the IP address and subnet mask of the physical port of new access subnet
Mutually with, draw the network number of new access network, by the IP address of terminal UICC connected ports and mask phase and draw terminal and
The network number of subnet where UICC connected ports.Two network numbers are contrasted, when they are in the same network segment or the network segment
When including mutually, conflict is just generated.Such as two network numbers are all 192.168.0.0/24, or, a network number is
At this moment it is exactly to conflict 192.168.1.0/24 another network number is 192.168.1.127/30.
Step 203, after the IP address conflict management module of end side detects IP address conflict, send and change IP address
UDP messages, UICC is issued by IC-USB ports.
The new IP address that terminal is UICC configurations is carried in UDP messages, and the new IP address that terminal is itself configuration.
When it is determined that during IP address conflict, terminal can be that itself and UICC configurations not exist with other physical ports place network
The IP address of the same network segment;
The message format of UDP messages in this step, shown in table 1 below:
Table 1
As shown in table 1, the length of said units lattice is 1 byte (BYTE).Wherein source port number, destination slogan, number
According to report length and verification and it is UDP headings as defined in udp protocol, represents that terminal sends the source port that UDP messages use respectively;
The port that UICC is intercepted in above-mentioned steps 201, can be 67 ports;Total length and the UDP datagram verification of UDP user datagrams
With.And IP address new UICC that UDP message datas part includes is to access the new of UICC that new network do not conflict with terminal
IP address, the new IP address of terminal are that the new IP address for the terminal that new network does not conflict is accessed with terminal.
Step 204, after UICC receives the UDP messages for changing IP address, confirmation message is sent to terminal.
The message format of confirmation message, it is as shown in table 2 below:
Table 2
As shown in table 2, source port number, destination slogan, datagram length and verification and be as defined in udp protocol UDP report
Literary head." confirmation " item is UDP message datas part, when equal to 1, represents that UICC will receive new IP address, 2 represent not connect
By.
Step 205, UICC will receive new IP address under normal circumstances.IP address on UICC changes IC-USB ports is
IP address new UICC.After terminal receives response message, if 1 is confirmed as in message, the IP that changes on IC-USB ports
Location is the new IP address of terminal.
So UICC and terminal can use the new IP address not conflicted with new access network.Such as 192.168.1.1
And 192.168.1.2, mask:255.255.255.252.The problem of such IP address conflict, is just resolved, terminal
Realize the smooth access to other networks.
It will be appreciated by those skilled in the art that being directed to above-mentioned example, the present invention changes terminal and UICC IP address simultaneously,
192.168.1.4,192.168.1.5 are such as respectively modified as, or is respectively modified as 192.168.2.1 and 192.168.2.2 etc., always
It, as long as the not IP address conflict with other networks of access.The present invention is no longer described in detail one by one.Here, IP
Address conflict refers to that the network segment residing for the UICC of the terminal and the terminal is identical with the network segment of the access network;Or institute
Stating the network segment residing for the UICC of terminal and the terminal and the access mesh network section has mutual inclusion relation.
IP address management method in the terminal of the embodiment of the present invention, pass through flexibly matching somebody with somebody for the IP address to terminal and UICC
Put, avoid IP address and the IP address conflict of the external network of terminal access of terminal or UICC, ensure that terminal and UICC
Between, the communication between terminal and UICC and external network.
Fig. 3 be the embodiment of the present invention terminal in IP address management device composition structural representation, as shown in figure 3, this
IP address management device includes determining unit 30 and dispensing unit 31 in the terminal of invention, wherein:
Determining unit 30, for determining the IP address of the IP address of terminal and the UICC of the terminal whether with accessing network
IP address conflict, dispensing unit 30 is triggered during conflict, is not dealt with when not conflicting;Here, circulation timing inquires about the IP of itself
Address, by the newly IP address of the physical port of access subnet and subnet mask phase with the new network number for accessing network being drawn, by eventually
Hold the IP address of UICC connected ports with mask phase and draw the network number of terminal and UICC connected ports place subnet.By two
Network number is contrasted, it is determined whether conflict.When conflict, it is necessary to be reconfigured to terminal and UICC IP address, such as
Fruit does not conflict, then does not deal with, currently processed end.
Here, the UICC of the terminal and terminal IP address is for realizing between the terminal and the UICC
Communication, also, UICC can be configured by terminal with outbound communication.
Here, it is described with access network IP address conflict be:
The network segment residing for the UICC of the terminal and the terminal is identical with the network segment of the access network;
Or the network segment residing for the UICC of the terminal and the terminal with the access mesh network section there is mutual include to close
System.
Dispensing unit 31, for configuring new IP address for the UICC of the terminal and the terminal.
Specifically, new IP address, the network segment residing for new IP address can be configured for the UICC of the terminal and the terminal
It is different and do not include mutually from the access mesh network section.
In terminal shown in Fig. 3 on the basis of IP address management device, IP address management in the terminal of the embodiment of the present invention
Device also includes notification unit (not shown in Fig. 3) and receiving unit (not shown in Fig. 3), wherein:
Notification unit, the UICC is notified for new IP address will to be configured for the UICC;
Receiving unit, response is completed for receiving the new IP address configurations of the UICC;
The dispensing unit is further used for, and receiving the new IP address configurations of the UICC in receiving unit completes response
Afterwards, new IP address is configured for the terminal.
It will be appreciated by those skilled in the art that each processing unit in terminal shown in Fig. 3 in IP address management device
Realize that function can refer to the associated description of IP address management method in aforementioned terminals and understand.IP address in terminal shown in Fig. 3
The function of each unit can be realized by running on the program on processor in managing device, can also pass through specific logic circuit
And realize.
IP address management device in the terminal of the embodiment of the present invention, pass through flexibly matching somebody with somebody for the IP address to terminal and UICC
Put, avoid IP address and the IP address conflict of the external network of terminal access of terminal or UICC, ensure that terminal and UICC
Between, the communication between terminal and UICC and external network.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (8)
1. a kind of IP address management method in terminal, it is characterised in that methods described includes:
With determining the IP address of the IP address of terminal and/or the Universal Integrated Circuit Card UICC of the terminal and the IP of access network
When location conflicts, new IP address is configured for the UICC of the terminal and the terminal;Wherein, described is the terminal and the end
The UICC at end configures new IP address, is:The terminal is that the UICC configures new IP address, and notifies the UICC;
Receive the new IP address configurations of the UICC to complete after responding, new IP address is configured for itself.
2. according to the method for claim 1, it is characterised in that the UICC of the terminal and terminal IP address is use
Configured in realizing the communication between the terminal and the UICC.
3. according to the method for claim 1, it is characterised in that the IP address of the terminal and/or the terminal it is general
Integrated circuit card UICC IP address and the IP address conflict with access network, it is:
The network segment residing for the UICC of the terminal and the terminal is identical with the network segment of the access network;
Or the network segment residing for the UICC of the terminal and the/terminal has with the network segment residing for the access network and mutually included
Relation.
4. according to the method for claim 3, it is characterised in that described to be configured newly for the UICC of the terminal and the terminal
IP address, be:
New IP address, the network segment residing for new IP address and the access network are configured for the UICC of the terminal and the terminal
The network segment is different and does not include mutually.
A kind of 5. IP address management device in terminal, it is characterised in that described device includes determining unit and dispensing unit, its
In:
Determining unit, for determining the IP address of the IP address of terminal and/or the UICC of the terminal whether with accessing network
IP address conflict, dispensing unit is triggered during conflict;
Dispensing unit, for configuring new IP address for the UICC of the terminal and the terminal;
Described device also includes notification unit and receiving unit, wherein:Notification unit, for new IP will to be configured for the UICC
Address notifies the UICC;Receiving unit, response is completed for receiving the new IP address configurations of the UICC;The dispensing unit
It is further used for, after the receiving unit receives the new IP address configuration completion responses of the UICC, matches somebody with somebody for the terminal
Put new IP address.
6. device according to claim 5, it is characterised in that the UICC of the terminal and terminal IP address is use
Configured in realizing the communication between the terminal and the UICC.
7. device according to claim 5, it is characterised in that the IP address of the terminal and/or the terminal it is general
Integrated circuit card UICC IP address with it is described with access network IP address conflict be:The UICC of the terminal and the terminal
The residing network segment is identical with the network segment of the access network;
Or there is the network segment of the network segment residing for the UICC of the terminal and the terminal and the access network mutual include to close
System.
8. device according to claim 7, it is characterised in that the dispensing unit is further used for:
New IP address, the network segment residing for new IP address and the access network are configured for the UICC of the terminal and the terminal
The network segment is different and does not include mutually.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110269694.5A CN102325199B (en) | 2011-09-13 | 2011-09-13 | IP address management method and device in terminal |
PCT/CN2011/084480 WO2012152014A1 (en) | 2011-09-13 | 2011-12-22 | Method and device for managing ip address in terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110269694.5A CN102325199B (en) | 2011-09-13 | 2011-09-13 | IP address management method and device in terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102325199A CN102325199A (en) | 2012-01-18 |
CN102325199B true CN102325199B (en) | 2017-12-26 |
Family
ID=45452867
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110269694.5A Active CN102325199B (en) | 2011-09-13 | 2011-09-13 | IP address management method and device in terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102325199B (en) |
WO (1) | WO2012152014A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105657075A (en) * | 2014-11-11 | 2016-06-08 | 中兴通讯股份有限公司 | IP collision detection and processing method, wireless hot spot device |
CN104702711A (en) * | 2015-01-23 | 2015-06-10 | 浙江金通文化创意有限公司 | Intelligent network system for adaptively controlling inner network conflict and optimization method |
CN108566649B (en) * | 2018-03-12 | 2021-07-02 | Oppo广东移动通信有限公司 | Network segment management method of personal hotspot and related products |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050144320A1 (en) * | 2003-12-16 | 2005-06-30 | Jagana Venkata R. | Avoiding conflict of a mobile node IP address |
CN102098347A (en) * | 2009-12-15 | 2011-06-15 | 中兴通讯股份有限公司 | Internet address management method and system based on terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1973306A1 (en) * | 2007-03-19 | 2008-09-24 | NEC Corporation | Method for providing a UICC with an operator DNS IP address |
CN100551035C (en) * | 2007-04-25 | 2009-10-14 | 中兴通讯股份有限公司 | The adjustment method of conditional access system |
-
2011
- 2011-09-13 CN CN201110269694.5A patent/CN102325199B/en active Active
- 2011-12-22 WO PCT/CN2011/084480 patent/WO2012152014A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050144320A1 (en) * | 2003-12-16 | 2005-06-30 | Jagana Venkata R. | Avoiding conflict of a mobile node IP address |
CN102098347A (en) * | 2009-12-15 | 2011-06-15 | 中兴通讯股份有限公司 | Internet address management method and system based on terminal |
Also Published As
Publication number | Publication date |
---|---|
CN102325199A (en) | 2012-01-18 |
WO2012152014A1 (en) | 2012-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104753697B (en) | A kind of method, equipment and system controlling the automatic beginning of the network equipment | |
CN112398817B (en) | Data sending method and device | |
EP2339792B1 (en) | Method for accessing USB device attached to home gateway, home gateway and terminal | |
CN109302466B (en) | Data processing method, related device and computer storage medium | |
CN102869125B (en) | Data card and its communication means, system | |
US20140129741A1 (en) | Pci-express device serving multiple hosts | |
CN103475751B (en) | A kind of method and device of IP address switching | |
US20160328355A1 (en) | Method and apparatus for plug and play, networkable iso 18000-7 connectivity | |
CN102984015B (en) | A kind of gateway device identifies the method for access device type and Optimized Service automatically | |
CN103384274B (en) | Public network based on http agreement connects the communication means of inner net computer | |
CN102325199B (en) | IP address management method and device in terminal | |
EP2490408B1 (en) | Method and system for managing internet addresses | |
EP2814217B1 (en) | Access control method for wifi device and wifi device thereof | |
CN104683428A (en) | Network service processing method and device | |
CN111542035A (en) | Cloud service connection method, system and related equipment | |
CN103973753B (en) | A kind of method and apparatus of data processing | |
CN104660597A (en) | Three-layer authentication method and device as well as three-layer authentication exchanger | |
JP6665190B2 (en) | Network sharing implementation method and apparatus | |
CN104205729A (en) | Method, device, and system for configuring device in network | |
CN103051738B (en) | A kind of dhcp address distribution method and system | |
CN104375788B (en) | Wireless printer | |
WO2013152644A1 (en) | Wireless sd-card type processing device | |
CN103281295A (en) | System and method for realizing parallel upgrade of multiple terminals in same IP (Internet Protocol) local area network | |
CN102821055B (en) | Method for inter-board communication | |
CN108322835A (en) | A kind of method and set-top box introducing broadband services on the set-top box |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |