Data card and method for quickly establishing dial-up connection thereof

Abstract
The disclosure provides a method for quickly establishing a dial-up connection by using a data card, which comprises: when a mobile terminal initiates the dial-up connection from a computer, performing both a process of initiating a wireless connection establishment through a Unified Messaging (Um) port and a process of initiating a Dynamic Host Configuration Protocol (DHCP) server through a Remote Messaging (Rm) port at the same time. Compared with the prior art, in the technical solution of the disclosure, the time for initiating the DHCP server by the terminal equipment (TE) is advanced and is identical to the time for initiating the wireless transmission connection establishment, thus the Um side and the Rm side can initiate the dial-up flow at the same time, and the time for waiting DHCP discover messages and the time for waiting the wireless connection establishment overlap, in this way, the purpose of shortening dial-up time and realizing quick dial-up is achieved.
Description
TECHNICAL FIELD

The disclosure relates to the field of wireless communications, particularly to a data card and a method for quickly establishing a dial-up connection by using a data card.


BACKGROUND

As the coming of the 3G mobile communication era, with respect to fixed network access, the wireless data card attracts huge demand of users on wireless Internet access due to its high-speed and mobility, and dial-up time delay for Internet dial-up access of a wireless data card also becomes an important user experience index.


TE+MT application mode is employed in the data card to realize dial-up Internet access, Terminal Equipment (TE) is generally a PC or laptop, Mobile Terminal (MT) is a wireless data card or mobile phone terminal. The interface between TE and MT is called Rm interface, and the interface between MT and wireless network is called Um interface. The dial-up Internet access process of the data card comprises Rm interface connection establishment and Um interface connection establishment two processes.


In the 3rd Generation Partnership Project (3GPP) protocol, two bearing ways are defined for the upper application data of the data card, namely, IP and PPP two ways. In practical application, the data card usually employs IP bearing way to perform data transmission. The following two dial-up ways described in the disclosure are both based on IP bearing way.


Point-to-point (PPP) data link protocol or Dynamic Host Configuration Protocol (DHCP) data protocol may be employed for Rm interface connection establishment. Due to different connection establishment protocols employed by the Rm interface, the dial-up of the data card may be divided into RAS dial-up and NDIS dial-up two ways. For NDIS dial-up, the Rm interface employs DHCP to establish the data connection; and for RAS dial-up, the Rm interface employs PPP to establish the data connection.


Um interface connection establishment comprises wireless bearing establishment and PDP activation processes. For RAS and NDIS, the processing flow of the Um interface is the same.


As shown in FIG. 1, the dial-up connection establishment flow diagram of the NDIS dial-up comprises the following steps.


Step S101: A user initiates a dial-up: TE sends a QMI dial-up message to MT;


Step S102: MT receives the dial-up message: MT initiates a dial-up connection process;


Step S103: Um port of MT establishes a wireless connection with the access network: MT sends information requesting for activating the Packet Data Protocol context (PDP Context) to a Servicing GPRS Support Node (SGSN), SGSN authenticates the CHAP or PAP authentication information from TE, after authentication is successful, it allocates a dynamic IP address, a DNS address and a NBNS address for the user. These parameters are sent to MT through reception information activating the PDP is context. The largest duration for PDP activation is specified as 40 s in the 3GPP protocol.


Step S104: The Rm port finishes DHCP negotiation: MT receives the PDP activation message, the status of the Um interface becomes UP, then the DHCP server is initiated, and the activation status of PDP is notified to TE, finally TE sends a DHCP discover message; after MT receives the DHCP discover message from TE, TE and MT start the DHCP negotiation process, MT sends information such as IP address and DNS address allocated by the GGSN to TE according to specifications of the DHCP protocol.


Step S105: The Rm interface finishes the ARP negotiation: TE initiates the ARP process, and MT and TE finish the ARP negotiation;


Step S106: The dial-up connection is established, and the dial-up process is ended.


It can be seen from above flows that, in step S104, MT side has to wait TE to establish DHCP service and sends DHCP discover, if TE side is based on the WINDOWS operating system, the time for establishing DHCP service generally needs about 3 s, the whole process is complicated and takes relatively long time, the user experience is poor.


SUMMARY

The purpose of the disclosure is to provide a data card and a method for quickly establishing a dial-up connection, so as to shorten dial-up time and realize quick dial-up.


In order to achieve the purpose, the technical solution of the disclosure is realized as follows.


A method for quickly establishing a dial-up connection by using a data card is provided, which comprises: when a mobile terminal initiates the dial-up connection from a computer, performing both a process of initiating a wireless connection establishment through a Unified Messaging (Um) port and a process of initiating a Dynamic Host Configuration Protocol (DHCP) server through a Remote Messaging (Rm) port at the same time.


The process of initiating the wireless connection establishment through the Um port may comprise: initiating, by the mobile terminal, the connection establishment between the Um port and a wireless network after receiving a dial-up connection message from the computer; and the method may further comprise: before the process of initiating the wireless connection establishment through the Um port, initiating, through the Um port of the mobile terminal, cell attachment, authentication and PDP activation processes sequentially.


The method may further comprise: after the process of initiating the wireless connection establishment through the Um port and the process of initiating the DHCP server through the Rm port are started, starting a DHCP timer for performing time-out detection, wherein the DHCP timer is notified of a wireless connection establishment event after the process of the wireless connection establishment ends.


The method may further comprise: detecting, by the DHCP timer, the wireless connection establishment event; in the case that the wireless connection establishment event is a wireless connection establishment success event, when the timer is not yet timed out, continuing to wait, by the DHCP, until discovering a DHCP discover message, and then responding a DHCP offer message and completing the DHCP process; or when the DHCP timer is timed out, determining the connection establishment as being failed; in the case that the wireless connection establishment event is a wireless connection establishment failure event, deleting the DHCP server, deleting the DHCP timer, and no longer responding the DHCP discover message from a Terminal Equipment (TE), determining the connection establishment as being failed, since the TE which fails to receive a response to the DHCP discover message.


The method may further comprise: when the DHCP timer detects the DHCP discover message and the timer is not yet timed out, in the case that no wireless connection establishment event has been detected, not responding the DHCP discover message, resending, by the TE, the DHCP discover message after a response to the message is timed out, wherein the steps are repeated until the wireless connection establishment event is received.


The may further comprise: when the DHCP timer is timed out, in the case that no message is detected, restarting the DHCP timer, wherein the step is repeated until the wireless connection establishment event or the DHCP discover message is received.


The method may further comprise: when the wireless connection establishment is unsuccessful, deleting the DHCP timer and ending the DHCP process.


The method may further comprise: when the DHCP discover message is detected, deleting the DHCP timer, and beginning to perform Address Resolution Protocol (ARP) negotiation through the Rm port.


A data card for quickly establishing a dial-up connection, comprises a driver module, a Data service (DS) module, a Session manager (SM) module and a Dynamic Host Configuration Protocol (DHCP) stack module, wherein the driver module is a communication module that performs data exchange between the data card and a Personal Computer (PC), a dial-up message are sent to the data card from the PC through the driver module; the DS module is a module through which the data card processes dial-up-related data messages, the DS module, after receiving the dial-up message, analyzes and sends the dial-up message to the SM module and the DHCP stack module for processing, respectively; the SM module is a processing module that performs data interaction between the data card and a network.


The data card may further comprise a Unified Messaging (Um) port and a Remote Messaging (Rm) port, after the data card receives the dial-up message, the DS module initiates a process of wireless connection establishment through the Um port, and initiates a DHCP server through the Rm port.


In conclusion, when compared with the prior art, in the technical solution of the disclosure, the time for initiating the DHCP server by the TE is advanced and is identical to the time for initiating the wireless transmission connection establishment, thus the Um side and the Rm side can initiate the dial-up flow at the same time, and the time for waiting DHCP discover messages and the time for waiting the wireless connection establishment overlap, in this way, the purpose of shortening dial-up time and realizing quick dial-up is achieved.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows a flowchart of NDIS dial-up by an existing mobile communication terminal;



FIG. 2 shows a flowchart of a method for quickly establishing a dial-up connection by a mobile communication terminal in an embodiment of the disclosure; and



FIG. 3 shows a diagram of a data card in an embodiment of the disclosure.





DETAILED DESCRIPTION

Based on analysis of a dial-up flow and test data under a test network, the disclosure provides a method for shortening NDIS dial-up connection duration; the technical solution of the disclosure is based on terminal equipment.











TABLE 1





No.
Processes
Duration (ms)







1
Process of interface connection establishment
3440


2
Process of waiting TE to establish DHCP service
3830


3
Process of DHCP negotiation between MT and
3830



TE


4
ARP protocol establishment of TE
1325









In Table 1, NDIS dial-up is divided into multiple sub-flows, data obtained by testing a dial-up connection for 20 times in the test network is listed. As shown in Table 1, the NDIS dial-up flow is divided into sub-processes in order; columns show consumed time of each sub-flow of the NDIS dial-up. Wherein, sub-processes 1, 2 and 3 belong to interaction processes between an MT and a wireless network, sub-process 4 belongs to an interaction process between a TE and the MT. All sub-processes are explained as follows, respectively.


1. Process of Interface Connection Establishment


It indicates time for process of Um interface wireless connection establishment, including wireless bearing establishment, PDP activation, Um interface protocol UP identifier Um interface wireless connection establishment between the MT and the wireless access network.


2. Process of Waiting TE to Establish DHCP Service


It indicates time for Rm interface connection establishment, including initiating a DHCP server, notifying the TE to initiate the DHCP negotiation, and executing the next process after receiving the DHCP discover message identifier from the TE.


3. Process of DHCP Negotiation Between MT and TE


It means consumed time for process of the DHCP negotiation between the MT and the TE.


4. ARP Protocol Establishment of TE


It indicates time for TE to finish an ARP process.


In Table 1, during NDIS dial-up, after initiating the DHCP server, the time for the process that the MT waits the TE to initiate the DHCP discover message is 3830 ms. In the technical solution of the disclosure, the time for initiating the DHCP server by the TE is advanced and is identical to the time for initiating the wireless transmission connection establishment, so a Um side and an Rm side can initiate the dial-up flow, and the time for waiting DHCP discover messages and the time for waiting the wireless connection establishment overlap, in this way, the purpose of shortening dial-up time and realizing quick dial-up is achieved. Corresponding to the dial-up processes listed in Table 1, process 2 is advanced to be synchronous with process 1. After the DHCP server is initiated, the Rm needs to detect the DHCP discover message from the TE and interface UP message from Um synchronously, after both messages are received, the DHCP negotiation process with the TE can be initiated, to further finish the dial-up process. It can be seen from the time data obtained by testing in the test network in Table 1 that, through the method, the dial-up time can be effectively shortened by about 3 s, which is ⅓ of the total dial-up Internet access duration.


As the largest establishment time for a wireless connection at the Um side is about 40 s (this is mainly because that PDP connection establishment is time-consuming), while the DHCP waiting time at the Rm side is also fixed (less than 40 s), so at the worst, the dial-up connection failure message can be obtained after about 40 s, this time is 3 s less than the time needed in the currently realized worst case. When compared with similar products, the disclosure has obvious advantage.


The technical solution disclosed in the disclosure will be described in details below with reference to drawings and specific embodiments.



FIG. 2 shows a flowchart of a method for quickly establishing a dial-up connection by using a data card, which comprises the following steps.


Step S201: A user TE initiates a dial-up connection;


Step S202: An MT receives a dial-up message;


Step S203: A Um port initiates a wireless connection establishment process;


After receiving a dial-up connection message from the TE, the MT imitates the process of connection establishment between the Um port and a wireless network; the Um port of the MT initiates processes such as cell attachment, authentication, PDP activation and wireless connection establishment sequentially. After the process of wireless connection establishment ends, a DHCP timer is notified of a wireless connection establishment event, the wireless connection establishment event comprises a wireless connection establishment success event and a wireless connection establishment failure event.


Step S204: An Rm port initiates a DHCP server;


Step S205: The DHCP timer is started to perform time-out detection;


The DHCP timer of the Rm port detects the following events:


The DHCP timer detects the wireless connection establishment event and the timer is not yet timed out. In the case that the wireless connection establishment event is the wireless connection establishment success event, a DHCP discover message is waited, a DHCP offer message is responded and the DHCP process is finished, or when the DHCP timer is time out, and the connection establishment is determined as being failed; in the case that the wireless connection establishment event is the wireless connection establishment failure event, the DHCP server is further deleted, the DHCP timer is deleted, the DHCP discover message from the TE side is no longer responded, the connection establishment is determined as being failed if the DHCP discover message from the TE side is always not responded.


The DHCP timer detects the DHCP discover message and the timer is not yet timed out. In the case that no wireless connection establishment event has been detected, the DHCP discover message is not responded, the TE resends the DHCP discover message after a response to the message is timed out; wherein the steps are repeated until the wireless connection establishment event is received, at this time, the last flow is executed.


The timer is time out, in the case that no message is detected, the DHCP timer is reinitiated, wherein the step is repeated until the wireless connection establishment event or the DHCP discover message is received, at this time last two flows are executed.


Step S206: It is judged whether the timer is time out; if yes, step S205 is executed; otherwise, step S207 is executed;


Step S207: It is judged whether a wireless connection finish message is detected; if yes, step S208 is executed; otherwise, step S206 is executed;


Step S208: It is judged whether the wireless connection is established successfully; if yes, step S209 is executed; otherwise, step S213 is executed;


Step S209: It is judged whether the DHCP discover message is detected; if yes, step S210 is executed; otherwise, step S206 is executed;


Step S210: The DHCP timer is deleted;


Step S211: The Rm port starts ARP negotiation;


Step S212: The connection is established, and the dial-up flow ends;


Step S213: The DHCP timer is deleted;


Step S214: The DHCP process ends;


Step S215: The connection establishment is failed, and the dial-up flow ends.



FIG. 3 shows a diagram of main software modules involved with a data card in an embodiment of the disclosure. The method proposed in the disclosure is not involved to TE side software modules. The data card comprises a driver module 301, a Data service (DS) module 302, a Session manager (SM) module 303 and a DHCP stack module 304.


The driver module 301 is a communication module that performs data exchange between the data card and a PC, a dial-up message are sent to the data card from the PC through the driver module, step S201 relates to the process of the driver module 301. The DS module 302 is a module through which the data card processes dial-up-related data messages, after receiving the dial-up message, the DS module 302 analyzes and sends the dial-up message to the SM module 303 and the DHCP stack module 304 for processing, respectively. The SM module 303 is a processing module that performs data interaction between the data card and a network. The DHCP stack module 304 processes flows related to the DHCP protocol. Step S203 relates to the process of the SM module 303 and the DHCP stack module 304. Steps S203-S209 are finished by the DHCP stack module 304. Steps S210-S215 are processed by a PC software module.


Of course, the disclosure may also have many implementation ways, for technicians in the field, the disclosure may have various corresponding modifications or changes within the spirit and principle of the disclosure, any modifications, equivalent replacements and improvements within the spirit and principle of the disclosure should be included within the protection scope of the disclosure.

Claims
  • 1. A method for quickly establishing a dial-up connection by using a data card, comprising: when a mobile terminal initiates the dial-up connection from a computer, performing both a process of initiating a wireless connection establishment through a Unified Messaging (Um) port and a process of initiating a Dynamic Host Configuration Protocol (DHCP) server through a Remote Messaging (Rm) port at the same time.
  • 2. The method according to claim 1, wherein the process of initiating the wireless connection establishment through the Um port comprises: initiating, by the mobile terminal, the connection establishment between the Um port and a wireless network after receiving a dial-up connection message from the computer; andthe method further comprises:before the process of initiating the wireless connection establishment through the Um port, initiating, through the Um port of the mobile terminal, cell attachment, authentication and PDP activation processes sequentially.
  • 3. The method according to claim 1, further comprising: after the process of initiating the wireless connection establishment through the Um port and the process of initiating the DHCP server through the Rm port are started, starting a DHCP timer for performing time-out detection, wherein the DHCP timer is notified of a wireless connection establishment event after the process of the wireless connection establishment ends.
  • 4. The method according to claim 3, further comprising: detecting, by the DHCP timer, the wireless connection establishment event;in the case that the wireless connection establishment event is a wireless connection establishment success event, when the timer is not yet timed out, continuing to wait, by the DHCP, until discovering a DHCP discover message, and then responding a DHCP offer message and completing the DHCP process; or when the DHCP timer is timed out, determining the connection establishment as being failed;in the case that the wireless connection establishment event is a wireless connection establishment failure event, deleting the DHCP server, deleting the DHCP timer, and no longer responding the DHCP discover message from a Terminal Equipment (TE), determining the connection establishment as being failed, since the TE which fails to receive a response to the DHCP discover message.
  • 5. The method according to claim 4, further comprising: when the DHCP timer detects the DHCP discover message and the timer is not yet timed out,in the case that no wireless connection establishment event has been detected, not responding the DHCP discover message, resending, by the TE, the DHCP discover message after a response to the message is timed out,wherein the steps are repeated until the wireless connection establishment event is received.
  • 6. The method according to claim 3, further comprising: when the DHCP timer is timed out, in the case that no message is detected, restarting the DHCP timer,wherein the step is repeated until the wireless connection establishment event or the DHCP discover message is received.
  • 7. The method according to claim 3, further comprising: when the wireless connection establishment is unsuccessful, deleting the DHCP timer and ending the DHCP process.
  • 8. The method according to claim 4, further comprising: when the DHCP discover message is detected,deleting the DHCP timer, and beginning to perform Address Resolution Protocol (ARP) negotiation through the Rm port.
  • 9. A data card for quickly establishing a dial-up connection, comprising a driver module, a Data service (DS) module, a Session manager (SM) module and a Dynamic Host Configuration Protocol (DHCP) stack module, wherein the driver module is a communication module that performs data exchange between the data card and a Personal Computer (PC), a dial-up message are sent to the data card from the PC through the driver module;the DS module is a module through which the data card processes dial-up-related data messages, the DS module, after receiving the dial-up message, analyzes and sends the dial-up message to the SM module and the DHCP stack module for processing, respectively;the SM module is a processing module that performs data interaction between the data card and a network.
  • 10. The data card according to claim 9, wherein the data card further comprises a Unified Messaging (Um) port and a Remote Messaging (Rm) port, after the data card receives the dial-up message, the DS module initiates a process of wireless connection establishment through the Um port, and initiates a DHCP server through the Rm port.
  • 11. The method according to claim 4, further comprising: when the DHCP timer is timed out, in the case that no message is detected, restarting the DHCP timer,wherein the step is repeated until the wireless connection establishment event or the DHCP discover message is received.
  • 12. The method according to claim 5, further comprising: when the DHCP timer is timed out, in the case that no message is detected, restarting the DHCP timer,wherein the step is repeated until the wireless connection establishment event or the DHCP discover message is received.
  • 13. The method according to claim 4, further comprising: when the wireless connection establishment is unsuccessful, deleting the DHCP timer and ending the DHCP process.
  • 14. The method according to claim 5, further comprising: when the wireless connection establishment is unsuccessful, deleting the DHCP timer and ending the DHCP process.
  • 15. The method according to claim 5, further comprising: when the DHCP discover message is detected,deleting the DHCP timer, and beginning to perform Address Resolution Protocol (ARP) negotiation through the Rm port.
Priority Claims (1)
Number Date Country Kind
201010106505.8 Jan 2010 CN national
PCT Information
Filing Document Filing Date Country Kind 371c Date
PCT/CN2010/077033 9/17/2010 WO 00 7/17/2012