The disclosure relates to a technique for Internet Protocol (IP) address management, particularly relates to a method and system for terminal-based Internet address management.
For smart cards, mass Subscriber Identity Module (SIM) cards and multimedia SIM cards, it has been proposed that a Universal Integrated Circuit Card (UICC) is connected to a terminal through an InterChip Universal Serial Bus (IC-USB) interface, the Transmission Control Protocol (TCP)/Internet Protocol (IP) protocol stack is run on both the terminal and the UICC, and that communication between the two sides is achieved by inter-network equipment communication.
The UICC may support services such as Smart Card Web Server (SCWS)-based SIM cards and mass memory cards and may be accessed by the terminal through various applications. The specific structure is shown in
It is stipulated by the European Telecommunications Standards Institute (ETSI) standard that internal IPs are used in the terminal and the UICC. Currently, IP address assignment mainly includes the following two approaches:
For example, the UICC uses a fixed IP address 192.168.0.1 and the terminal uses a fixed IP address 192.168.0.2.
Since most of the existing terminals can access the Internet via various ports, the terminal, when connected to the UICC, can be connected to another network by another physical interface, e.g. the terminal can be connected to a Wireless Local Area Network (WLAN) by Wifi, or connected to a Personal Computer (PC) by a Universal Serial Bus (USB), through which the terminal communicates with a PC using a simulated Ethernet.
In the above cases, it is possible that the network address to which the terminal newly accesses conflicts with the network address of the current terminal or the UICC on the port connecting the current terminal and the UICC.
For example, if the IP address of the UICC is 192.168.0.1, while the IP address of the network which the terminal currently accesses is 192.168.0.0, when the subnet mask is 255.255.255.0, the IP address of the UICC conflicts with the IP address of the network currently accessed by the terminal, which results in communication error.
However, no solution has been proposed to solve this problem effectively.
In view of the above, the main object of the disclosure is to provide a method and system for terminal-based internet address management, which can prevent communication error caused by network address conflict, and thus improve communication stability.
To achieve the above object, the technical solutions of the disclosure are implemented in the following ways.
A method for terminal-based internet address management includes the following steps:
A system for terminal-based Internet address management, includes a terminal and a Universal Integrated Circuit Card (UICC), wherein
According to the method and system for terminal-based Internet address management of the disclosure, when the network addresses of the terminal and the UICC conflict with the network address of another network, the terminal notifies the UICC of the network address conflict, the UICC releases the currently used IP address after receiving the notification, and sends a release message to the client. Subsequently, the DHCP client of the UICC returns to the initialization state and re-applies for an IP address. In the case of network address conflict, the terminal of the disclosure can timely notify the UICC to change the IP address. Therefore, communication error caused by the conflict of network addresses may be prevented, and thus communication stability may be improved.
The basic idea of the disclosure is that when the network addresses of a terminal and an UICC conflict with the network address of another network, the terminal notifies the UICC of the network address conflict. After receiving the notification, the UICC releases the current IP address being used, and sends a release message to the client. Subsequently, the DHCP client of the UICC returns to the initializing state and reapplies for an IP address.
The implementation of the technical solution is described below with reference to the accompanying drawings in details.
As shown in
The terminal 21 and the UICC 22 are further configured to obtain their respective IP address during initialization processes.
The network address conflict management module 221 of the UICC is further configured to perform interception at a specific port.
The network address conflict management module 221 of the UICC is further configured to perform interception using Port 67 for the DHCP service.
The network address conflict management module 211 of the terminal is further configured to send the network address conflict message to Port 67 of the UICC through the UDP.
As shown in
A UICC card includes a server, an application, a DHCP client, a network address conflict management module, a TCP/IP protocol stack and an IC-USB interface.
The terminal and the UICC are connected through an IC-USB port, and the terminal can access another network through the WIFI module.
The network address conflict management module at the terminal side and the network address conflict management module at the UICC side can be integrated with the DHCP server and the DHCP client, respectively or can be operated independently.
As shown in
Step 401: the terminal sends a network address conflict message to the UICC when the network address of the network which terminal accesses conflicts with the network address of the subnet in which the UICC is currently located.
In the disclosure, when the subnet segment address of the IP address of the network which the terminal currently accesses conflicts with the subnet segment address of the IP address of the connection port between the terminal and the UICC, it is considered as a network address conflict.
For the message format as shown in
the hardware type is set as 1, representing the Ethernet; the IP address of the UICC is written in both the client address and local IP address; the terminal IP address is written in both the server IP address and the router IP address;
Step 402: after receiving the network address conflict message, the UICC releases the current IP address being used and returns a corresponding release message to the terminal.
It is to be noted that, the release of the IP address and the return of the corresponding release message may be performed concurrently or according to a certain sequence.
Step 403: the terminal and the UICC obtain non-conflicting IP addresses.
The implementation of the technical solution is described below with reference to the specific embodiments in details.
As shown in
Step 601: the terminal and the UICC obtain their respective IP address during an initialization process.
For example, during the initialization process, the UICC and the terminal obtain IP addresses 192.168.0.1 and 192.168.0.2 respectively and a subnet mask 255.255.255.0 at the IC-USB port.
Step 602: the network address conflict management module of the UICC performs an interception at the specific port.
For example, the network address conflict management module of the UICC can use Port 67 for the DHCP service to perform the interception.
Step 603: when the terminal accesses another subnet, it is determined whether the network address of the subnet conflicts with the network address for the IP address obtained in Step 601.
When the terminal accesses another subnet through the WIFI module, if the IP address obtained through he DHCP is an IP address of the same subnet, e.g. the IP address is also 192.168.0.2 and the subnet mask is 255.255.255.0, this will result in a network address conflict.
Step 604: the network address conflict management module of the terminal sends the network address conflict message to the UICC.
For example, the network address conflict management module at the terminal side can send a network address conflict message to Port 67 of the UICC through the UDP.
Step 605: after receiving the network address conflict message, the network address conflict management module of the UICC sends an IP release request signal to the DHCP client.
Step 606: the DHCP client returns a response to the network address conflict management module of the UICC and sends a DHCP release message (DHCPRELEASE) to the DHCP server of the terminal, and the UICC returns to a DHCP initialization state.
Step 607: the terminal and the UICC re-obtain non-conflicting IP addresses.
Here, the IP addresses re-obtained by the terminal and the UICC are generally assigned by the DHCP server.
Specifically, after receiving the DHCP release message, the DHCP server confirms that the UICC has released the original IP address. The network address conflict management module of the terminal configures the IP address of the connection port between the terminal and the UICC as an IP address of another subnet, e.g. 192.168.1.2, with the subnet mask 255.255.255.252,
Accordingly, the UICC card can re-use the DHCP to apply for a new IP address from the DHCP server of the terminal, e.g. 192.168.1.1 with the subnet mask 255.255.255.252.
In this way, the problem of network address conflict is solved.
The above contents serve only as preferred embodiments of the present disclosure and are not intended to limit the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200910242706.8 | Dec 2009 | CN | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/CN2010/074723 | 6/29/2010 | WO | 00 | 5/15/2012 |