METHOD AND SYSTEM FOR MOBILE TERMINAL TO ACCESS THE NETWORK THROUGH CELL PHONE
First Claim
1. A method for a mobile terminal to access a network through a cell phone, comprising the steps:
- pre-establishing a connection management Hash table for tagging a network address mapping relationship in a network enabled cell phone, wherein a Hash value in the connection management Hash table is equal to a modulus table length of a binary sum of a source address, a protocol type, a source port and a destination port;
establishing, by a mobile terminal, a point-to-point communication connection with the network enabled cell phone through WiFi, and sending a data packet of a destination server to the network enabled cell phone;
extracting, by the network enabled cell phone, an element group from the data packet sent by the mobile terminal at a network layer and saving the element group in a tuple structure, wherein the element group comprises a source address, a source port, a protocol type, a destination address and a destination port of the data packet;
carrying out, by the network enabled cell phone, NAT treatment on the element group, translating the source address of the data packet to an IP address for dial-up networking of the cell phone, and distributing a dial-up networking port;
connecting the network enabled cell phone to the destination server to communicate according to information of the treated element group; and
saving the element group after being subjected to source address NAT treatment in the connection management Hash table in a form of tuple structure.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for a mobile terminal to access a network through a cell phone is provided. The mobile terminal may be connected to a network enabled cell phone via a WIFI (wireless fidelity) connection mode, and the network enabled cell phone may serve as a gateway router. TCP/IP (transmission control protocol/internet protocol) operating principle having element information, such as source address, source port, protocol, destination address and destination port in a data packet, may be processed when a data packet arrives at a network layer of a network enabled cell phone. A Hash table may be dynamically established for searching a network connection, and NAT (network address translation) treatment may be carried out to a data packet, thus, an associated mobile terminal may simultaneously access the network with the network enabled cell phone by the external network IP address of the network enabled cell phone. Because the two devices may share an IP address to access the network, all the network flow may be generated at the gateway cell phone, thus, avoiding cost of other devices. Furthermore, a Hash table may be dynamically established for the data packet in the present invention, which may accelerate search speed of a data packet and processing speed.
-
Citations
20 Claims
-
1. A method for a mobile terminal to access a network through a cell phone, comprising the steps:
-
pre-establishing a connection management Hash table for tagging a network address mapping relationship in a network enabled cell phone, wherein a Hash value in the connection management Hash table is equal to a modulus table length of a binary sum of a source address, a protocol type, a source port and a destination port; establishing, by a mobile terminal, a point-to-point communication connection with the network enabled cell phone through WiFi, and sending a data packet of a destination server to the network enabled cell phone; extracting, by the network enabled cell phone, an element group from the data packet sent by the mobile terminal at a network layer and saving the element group in a tuple structure, wherein the element group comprises a source address, a source port, a protocol type, a destination address and a destination port of the data packet; carrying out, by the network enabled cell phone, NAT treatment on the element group, translating the source address of the data packet to an IP address for dial-up networking of the cell phone, and distributing a dial-up networking port; connecting the network enabled cell phone to the destination server to communicate according to information of the treated element group; and saving the element group after being subjected to source address NAT treatment in the connection management Hash table in a form of tuple structure. - View Dependent Claims (2, 3, 4, 5, 14, 15, 16)
-
-
6. A method for a mobile terminal to access a network through a cell phone, comprising the steps:
-
pre-establishing a connection management Hash table used for tagging a network address mapping relationship in a network enabled cell phone, wherein a Hash value in the connection management Hash table is equal to a modulus table length of a binary sum of a source address, a protocol type, a source port and a destination port; establishing, by a mobile terminal, a point-to-point communication connection with the network enabled cell phone through WIFI, and sending a data packet of a destination server to the network enabled cell phone; extracting, by the network enabled cell phone, an element group in the data packet sent by the mobile terminal at a network layer and saving the element group in a tuple structure, wherein the element group comprises a source address, a source port, a protocol type, a destination address and a destination port of the data packet; carrying out, by the network enabled cell phone, source address NAT treatment on the element group, translating the source address of the data packet to an IP address for the dial-up networking of the cell phone, and distributing a dial-up networking port; and connecting the network enabled cell phone to the destination server to communicate according to information of the treated element group. - View Dependent Claims (7, 8, 9, 10, 17, 18, 19, 20)
-
-
11. A system for a mobile terminal to access a network through a cell phone, comprising a mobile terminal and a network enabled cell phone, wherein:
-
the mobile terminal establishes a point-to-point communication connection with the network enabled cell phone through WIFI, and sends a data packet of a destination server to the network enabled cell phone; the network enabled cell phone is for extracting an element group in the data packet sent by the mobile terminal at a network layer and saving the element group in a tuple structure, wherein, the element group comprises a source address, a source port, a protocol type, a destination address and a destination port of the data packet;
moreover, the network enabled cell phone is used for carrying out source address NAT treatment on the element group, translating the source address of the data packet to an IP address for the dial-up networking of the cell phone, and distributing a dial-up networking port; andbeing connected to the destination server to communicate according to information of the treated element group; the destination server is used for being communicated with the mobile terminal and the network enabled cell phone; and the network enabled cell phone includes; a Hash table establishing management module used for pre-establishing a connection management Hash table used for tagging a network address mapping relationship in a network enabled cell phone, wherein a Hash value in the connection management Hash table is equal to a modulus table length of a binary sum of a source address, a protocol type, a source port and a destination port. - View Dependent Claims (12, 13)
-
Specification