WO2018196503A1 - Method for processing authentication information, terminal, and system - Google Patents

Method for processing authentication information, terminal, and system Download PDF

Info

Publication number
WO2018196503A1
WO2018196503A1 PCT/CN2018/079448 CN2018079448W WO2018196503A1 WO 2018196503 A1 WO2018196503 A1 WO 2018196503A1 CN 2018079448 W CN2018079448 W CN 2018079448W WO 2018196503 A1 WO2018196503 A1 WO 2018196503A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
apn
pdn connection
user authentication
authentication information
Prior art date
Application number
PCT/CN2018/079448
Other languages
French (fr)
Chinese (zh)
Inventor
丁晓磊
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018196503A1 publication Critical patent/WO2018196503A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Definitions

  • the present invention relates to a PPP dialing technology in the field of communications, and in particular, to a method and a terminal for processing authentication information.
  • Point-to-Point Protocol (PPP) dialing (also known as Dial Up Networking (DUN), also known as Remote Access Service (RAS) dialing in Windows) is based on the PPP protocol.
  • the terminal device can be a general personal computer or a device with an embedded Linux system (such as a tablet computer, a home wireless router, etc.).
  • the mobile terminal can be a mobile phone.
  • PPP dialup it needs to be initiated by the terminal device, and then the terminal device and the mobile terminal complete related interaction actions, and trigger the signaling interaction between the mobile terminal and the mobile network until the dialing is completed.
  • a mobile terminal under a mobile network usually automatically registers a network, completes an attach procedure using an existing Access Point Name (APN) and user authentication parameters stored therein, and establishes a packet data network with the mobile network ( Packet Data Network, PDN) connection.
  • PDN Packet Data Network
  • IP Internet Protocol
  • DNS Domain Name System
  • the mobile terminal After receiving the PPP dialing request from the terminal device, if the APN specified by the current dialing is the same as the APN used for the connection, the mobile terminal does not re-initiate the establishment of the PDN connection, but uses the existing PDN connection (ie, PDN connection established when attached). However, if the APNs are the same but the user authentication parameters are different, the mobile terminal still uses the PDN connection established at the time of attachment, and assigns the corresponding IP address and DNS address to the terminal device to complete the PPP dialing process.
  • IP Internet Protocol
  • DNS Domain Name System
  • the user authentication parameters sent by the terminal device to the mobile terminal during the PPP dialing process are not used by the mobile terminal to establish a PDN connection. Therefore, this may result in the user authentication parameters set on the terminal device side may not be used, that is, the incorrect user authentication parameters may actually be used.
  • the mobile terminal may be required to use the current customer identification module (Subscriber Identification). Module, SIM) card user name, password, and authentication mode. These user authentication parameters are used to establish a PDN connection to ensure that users can access the Internet normally. Otherwise, problems such as inaccessibility to the network may occur.
  • Subscriber Identification Subscriber Identification
  • Module SIM
  • embodiments of the present invention are expected to provide a method, a mobile terminal, and a system for authentication information processing, which can enable a mobile terminal to use correct user authentication parameters.
  • a method for processing authentication information including: when performing PPP dialing, the second APN and the second user authentication information acquired by the mobile terminal when dialing PPP respectively are Comparing the first APN used when registering the mobile network with the first user authentication information; determining that the first APN and the second APN are the same and the first user authentication information and the second user authentication When the information is different, the mobile terminal initiates a request to release the first PDN connection to the mobile network; and after the mobile network releases the first PDN connection, the mobile terminal uses the second APN and the second user authentication information and moves The network establishes a second PDN connection.
  • a mobile terminal for processing authentication information including a determination module, a determination module, and a connection module.
  • the determining module is configured to: when performing PPP dialing, respectively, the second APN and the second user authentication information acquired during the PPP dialing and the first APN and the first user authentication information used by the mobile terminal when registering the mobile network Compare.
  • the determining module is configured to initiate release of the first PDN connection to the mobile network when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different Request.
  • the connection module is configured to establish a second PDN connection with the mobile network using the second APN and the second user authentication information after the mobile network releases the first PDN connection.
  • a system for processing authentication information including a terminal device, a mobile terminal, and a mobile network.
  • the terminal device is configured to initiate a PPP dialing request to the mobile terminal, send the second APN and the second user authentication information when the PPP dialing is performed to the mobile terminal, and request the IP address configuration information from the mobile terminal.
  • the mobile terminal is configured to perform, when performing PPP dialing, respectively performing the second APN and the second user authentication information acquired during the PPP dialing, and the first APN and the first user authentication information used by the mobile terminal when registering the network.
  • the mobile terminal initiates release of the first PDN connection to the mobile network.
  • Requesting, and after the mobile network releases the first PDN connection the mobile terminal establishes a second PDN connection with the mobile network using the second APN and the second user authentication information.
  • Receiving, by the mobile network, a request initiated by the mobile terminal to release the first PDN connection, and releasing a first PDN connection established with the mobile terminal according to the request, and using the second APN and the second user authentication information The mobile terminal establishes a second PDN connection.
  • a mobile terminal comprising: a communication interface configured to communicate with other devices; a storage medium configured to store a computer program; a processor respectively associated with the communication interface and The storage medium is connected, and is configured to perform at least the following steps by running the computer program: when PPP dialing is performed, the second APN and the second user authentication information acquired when dialing PPP respectively and the mobile terminal are registered to move Comparing the first APN used by the network with the first user authentication information; determining that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are not Simultaneously, a request to release the first PDN connection is initiated to the mobile network; and after the mobile network releases the first PDN connection, establishing a second PDN connection with the mobile network using the second APN and the second user authentication information .
  • a computer storage medium storing a computer program, the computer program being executed by a processor to perform a processing method of authentication information according to the present invention.
  • FIG. 1 is a schematic diagram of an interaction process between a terminal device, a mobile terminal, and a mobile network in a PPP dialing process on a 2G/3G network;
  • FIG. 2 is a schematic diagram of an interaction process between a terminal device, a mobile terminal, and a mobile network in a PPP dialing process under a 4G network;
  • FIG. 3 is a schematic flowchart diagram of a method for processing authentication information according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a specific implementation process of an authentication information processing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an interaction process between a terminal device, a mobile terminal, and a mobile network in a PPP dialing process according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a mobile terminal processing authentication information according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram showing the structure of a system for processing authentication information according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a structure of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal when the point-to-point protocol (PPP) dialing is performed, the mobile terminal first determines the second APN and the second user authentication information acquired when the PPP is dialed, and when the mobile terminal registers the mobile network. Whether the first APN used and the first user authentication information are the same. If the first APN and the second APN are the same, but the first user authentication information and the second user authentication information are different, the mobile terminal initiates release of the current packet data network to the mobile network (Packet Data Network, PDN) Connect the request to release the current PDN connection. After the mobile network releases the PDN connection, the mobile terminal re-establishes the PDN connection using the second APN and the second user authentication information, ie, establishes a second PDN connection.
  • PDN Packet Data Network
  • the main purpose of signaling interaction between the mobile terminal and the mobile network is to establish a logical path of data transmission and activate the interconnection protocol between the mobile networks to ensure that the data can be IP packets.
  • the form is transmitted to the gateway node of the mobile network.
  • the 2nd Generation communication system, 2G/3G it is embodied as the activation of the Packet Data Protocol (PDP) context
  • PDP Packet Data Protocol
  • 4G The 4th Generation communication system
  • the process of activating a PDP context and the process of establishing a PDN connection are both that the mobile terminal sends a series of related parameters to the mobile network, and then the mobile network completes the registration of the user information and the allocation of related resources, and allocates the network through the signaling response.
  • the IP address, DNS address, and the like are sent to the mobile terminal.
  • a logical channel is formed between the mobile terminal and the mobile network. This logical channel is an active PDP context at 2G/3G and a PDN connection at 4G.
  • the parameters sent by the mobile terminal to the mobile network include APN and user authentication information.
  • Figure 1 and Figure 2 respectively illustrate the interaction process between mobile terminals, terminal devices and mobile networks in the PPP dialing process under 2G/3G and 4G networks.
  • FIG. 3 is a schematic flowchart diagram of a method for processing authentication information according to an embodiment of the present invention.
  • the authentication information processing method may include steps S301 to S303.
  • step S301 when performing PPP dialing, the second access point name APN and the second user authentication information acquired by the mobile terminal for PPP dialing respectively and the first APN and the first user used when the mobile terminal registers the mobile network The authentication information is compared.
  • step S302 when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, the mobile terminal initiates release of the first PDN connection to the mobile network. Request.
  • step S303 after the mobile network releases the first PDN connection, the mobile terminal establishes a second PDN connection with the mobile network by using the second APN and the second user authentication information.
  • the mobile terminal receives the PPP dialing request initiated by the terminal device, and performs information interaction with the terminal device.
  • the mobile terminal acquires the second APN and the second user authentication information delivered by the terminal device according to the information received during the information interaction with the terminal device.
  • the terminal device may be a general personal computer or a device with an embedded Linux system (such as a tablet computer, a home wireless router, etc.).
  • the mobile terminal can be a mobile phone.
  • a personal computer (PC) may be used herein to represent the terminal device, but the inventive concept is not limited thereto.
  • the PC initiates a PPP dialing request to the mobile terminal.
  • the PC can set the APN for PPP dialing to the mobile terminal through the modem command language AT command. For example, the PC can do this with the standard AT command "+CGDCONT" specified in the communication protocol 3GPP TS 27.007.
  • the PC sends the AT command to set the APN, in addition to specifying the APN in the parameter, the PC needs to give the Context Identification (CID) parameter.
  • the CID parameter is a positive integer indicating which file the APN sent to the mobile terminal is to store in the mobile terminal, that is, the index number of the file.
  • the mobile terminal After receiving the PPP dialing request initiated by the PC, the mobile terminal reads the APN from the corresponding file according to the CID for the PPP dialing process.
  • the PC can also set the user authentication information to a profile in the mobile terminal by means of an AT command or the like, and also needs to specify the index number of the file by the CID parameter.
  • the PC can set the user authentication information to the file in the mobile terminal by means of an AT command or the like, this is not a necessary operation before the PPP dialing. If the PC does not perform this operation, the user authentication parameters within the mobile terminal may be some uncertain value.
  • the PC sends the user authentication information set or input by the user on the PC to the mobile terminal through the PPP authentication protocol.
  • the mobile terminal should use this set of user authentication parameters to complete the dialing process.
  • the user authentication parameter may include a user name, a password, an authentication mode, and the like of the current user, that is, user authentication information.
  • the mobile terminal receives the PPP dialing request initiated by the terminal device, and the process of performing information interaction with the terminal device may include the following steps (1) to (3).
  • step (1) the PC sends an AT command ATD*99# to the mobile terminal, and the mobile terminal returns a connection response (CONNECT).
  • CONNECT connection response
  • "*99#” is a dial string, or it can be in the form of "*99***N#” (N is a positive integer), which is used to specify the CID used when dialing PPP. If the dial string is "*99#", the CID takes the default value of 1.
  • the mobile terminal can read information such as APN in the corresponding file stored therein according to the CID.
  • step (2) the PPP link is configured.
  • PPP Link Control Protocol (PPP LCP) Configuration Request (Config Request) and the PPP Link Control Protocol Configuration Confirmation (PPP LCP Config Ack) are used for signaling interaction between the PC and the mobile terminal to complete the PPP link configuration.
  • step (3) the PPP is authenticated.
  • the PC sends the user authentication parameter input by the user or configured in advance to the mobile terminal through a PPP authentication request (PPP Auth Request).
  • PPP Auth Request PPP authentication request
  • the mobile terminal After receiving, the mobile terminal returns a PPP Auth Ack response.
  • the user authentication parameter is user authentication information used when dialing PPP, that is, second user authentication information.
  • step S301 the PC initiates a PPP IPCP Request (PPP IPCP Request), and the mobile terminal acquires the second APN and the second user authentication information delivered by the PC.
  • the second APN can be set by the PC to the mobile terminal by using an AT command, and the mobile terminal can read the APN information in the corresponding file stored internally.
  • the second user authentication information may be sent by the PC to the mobile terminal through the PPP authentication request.
  • the second APN and the second user authentication information are registered with the mobile terminal as the first APN and the first user authentication information. Compare separately.
  • the first APN and the first user authentication information may be existing APN information and user authentication information built in the mobile terminal. After the mobile terminal is powered on, the first APN and the first user authentication information are used to initiate an attach request to the mobile network, and establish a first PDN connection with the mobile network.
  • the mobile terminal When the mobile terminal determines that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, the mobile terminal initiates a request to release the current first PDN connection to the mobile network. That is, when the mobile terminal establishes a PDN connection in the process of attaching to the mobile network, although the PPN dialed APN is used, the user authentication information that needs to be used due to the user authentication information used and the PPP dialing initiated by the PC may be Different, so there may be problems with surfing the Internet based on the PDN connection at this time. The mobile terminal may initiate a detach request to the mobile network to request release of the current first PDN connection.
  • step S303 after receiving the detach accept response sent by the mobile network, the mobile terminal re-initiates an attach request to the mobile network.
  • the mobile terminal establishes a second PDN connection by using the second APN obtained when the PPP is dialed and the second user authentication information.
  • the mobile terminal establishes a PDN connection with the mobile network using the correct APN and user authentication information.
  • the mobile network After the mobile terminal initiates the request to establish the second PDN connection using the second APN and the second user authentication information, the mobile network sends an attach accept to the mobile terminal.
  • the mobile terminal acquires IP address configuration information of the second PDN connection from the accept attachment response, constructs an IPCP response of the PPP dialup according to the IP address configuration information of the second PDN connection, and sends the IP address configuration information of the second PDN connection by using the IPCP response.
  • the IP address configuration information may include an IP address, a DNS address, and the like.
  • the mobile terminal establishes the PDN with the mobile network by using the correct APN and the user authentication information. Connected, the mobile terminal maintains a first PDN connection established with the mobile network, and the mobile terminal acquires IP address configuration information of the first PDN connection directly from the mobile network. Then, the mobile terminal constructs an IPCP response of the PPP dialing according to the IP address configuration information of the first PDN connection, and sends the IP address configuration information of the first PDN connection to the terminal device by using an IPCP response.
  • the mobile terminal uses the APN at this time to perform Internet access, and an error occurs. Therefore, the mobile terminal establishes a third PDN connection with the mobile network using the second APN and the second user authentication information. After the third PDN connection establishment is completed, the mobile terminal acquires IP address configuration information of the third PDN connection from the mobile network, constructs an IPCP response of the PPP dialup according to the IP address configuration information of the third PDN connection, and responds the third PDN by the IPCP response. The connected IP address configuration information is sent to the terminal device.
  • the PC After receiving the IP address configuration information sent by the mobile terminal, the PC completes the address configuration, that is, the PPP dialing is completed.
  • FIG. 4 is a schematic flowchart of a specific implementation process of an authentication information processing method according to an embodiment of the present invention.
  • the authentication information processing method may include steps S401 to S416.
  • step S401 the mobile terminal starts the registration network, and establishes a first PDN connection pdn1 with the mobile network, wherein the APN and user authentication information used to establish the first PDN connection pdn1 are apn1 and auth_info1, respectively.
  • the attach procedure of the mobile terminal under the 4G network needs to establish a PDN connection by using information such as APN and user authentication parameters, which is different from the case of the 2G/3G network. This is because, under the 2G/3G network, the mobile terminal does not need to use this information when registering the network, but needs to activate the PDP context with the mobile network when dialing PPP, and then the APN and user authentication parameters, etc. will be Information is sent to the mobile network.
  • the mobile terminal Since the registration network is a spontaneous behavior of the mobile terminal, under the 4G network, the mobile terminal usually initiates an attach request to the mobile network using the existing APN and user authentication parameters stored internally. After receiving the attach request, the mobile network establishes a PDN connection with the mobile terminal. After the PDN connection is established, the mobile network allocates relevant resources, IP address, DNS address and other information (ie, IP address configuration information) to the mobile terminal, and sends an accept attachment response to the mobile terminal.
  • the PDN connection established at this time may be referred to as a “first PDN connection” in the present application, and may be pdn1.
  • the APN and user authentication parameters (ie, user authentication information) used to establish the first PDN connection pdn1 may be respectively Apn1 and auth_info1.
  • the IP address configuration information assigned by the mobile network in this case may be ip_info1.
  • step S402 the mobile terminal acquires the APN delivered by the PC when performing PPP dialing as apn2.
  • the PPP dialing starts, and the mobile terminal receives the ATD command sent by the PC, for example, it can be ATD*99#.
  • the mobile terminal parses out the CID and reads the corresponding APN (ie, apn2) stored in the mobile terminal according to the CID, which is the APN to be used when dialing PPP.
  • the mobile terminal then returns a connection response.
  • step S403 the mobile terminal receives the user authentication information auth_info2 sent by the PC.
  • the mobile terminal receives the PPP authentication request that is sent by the PC and carries the user authentication information.
  • the mobile terminal obtains the user authentication information auth_info2 for PPP dialing, which may include information such as a username, a password, and an authentication method, which is user authentication information to be used when performing PPP dialing.
  • step S404 the mobile terminal determines whether the currently registered mobile network is a 4G network. If it is a 4G network, step S405 is performed; if it is not a 4G network (for example, a 2G/3G network), step S411 is performed.
  • User authentication information (auth_info2) User authentication information
  • the mobile terminal releases the current PDN connection and re-establishes the PDN (ie, the second PDN connection pdn2) using the APN and user authentication information (auth_info2) used in PPP dialing.
  • auth_info2 user authentication information
  • step S407 the mobile terminal initiates a release attach request, that is, the mobile terminal initiates a release attach request to the mobile network to release the current first PDN connection pdn1.
  • the mobile terminal re-initiates the attach procedure to the mobile network using apn2 and auth_info2 to re-establish the PDN connection pdn2.
  • step S409 the mobile terminal constructs an IPCP response (IPCP Ack) using the IP address configuration information of pdn2.
  • IPCP Ack IPCP response
  • the mobile terminal fills the IP address and DNS address of the pdn2 into the corresponding field in the IPCP Ack, and then performs step S415.
  • step S410 the mobile terminal constructs an IPCP Ack using the IP address configuration information of pdn1.
  • the mobile terminal fills the IP address and DNS address of the pdn1 into the corresponding field in the IPCP Ack, and then performs step S415.
  • step S411 the mobile terminal activates the PDP context pdp1 using apn2 and auth_info2.
  • step S412 the mobile terminal constructs an IPCP Ack using the IP address configuration information of pdp1.
  • the mobile terminal fills the IP address and DNS address of the pdp1 into the corresponding field in the IPCP Ack, and then performs step S415.
  • step S413 the mobile terminal newly establishes the PDN connection pdn3 using apn2 and auth_info2.
  • the mobile terminal constructs an IPCP Ack using the IP address configuration information of pdn3.
  • the mobile terminal fills the IP address and DNS address of the pdn3 into the corresponding field in the IPCP Ack.
  • the mobile terminal sends the constructed IPCP Ack response to the PC.
  • the PC parses the IP address and DNS address from the received IPCP Ack to complete the configuration, and the PPP dialing is completed.
  • FIG. 5 is a schematic diagram of an interaction process between a terminal device, a mobile terminal, and a mobile network in a PPP dialing process according to an embodiment of the present invention.
  • the PPP dialing interaction process may include steps S501 to S508.
  • step S501 the mobile terminal starts up registration.
  • the built-in existing user authentication information and the APN information are used to initiate an attach request to the mobile network to establish a PDN connection with the mobile terminal.
  • the mobile network allocates related resources, IP address, DNS address and other information (ie, IP address configuration information) ip_info1 to the mobile terminal, and returns an accept attachment response to the mobile terminal.
  • the APN and user authentication information used at this time are apn1 and auth_info1, respectively.
  • the mobile terminal receives the command ATD*99# or ATD*99***N# sent by the PC, and according to the dial string, parses the CID specified by the PPP dialing, and reads the APN used for dialing, which can be recorded as apn2. The mobile terminal then returns a connection response.
  • step S503 the PPP link is configured.
  • the PPP link configuration request and the PPP link configuration confirmation signaling interaction between the PC and the mobile terminal complete the PPP link configuration.
  • the PPP is authenticated.
  • the PC sends the user authentication parameter input by the user or configured in advance to the mobile terminal through the PPP authentication request, and the mobile terminal returns a PPP authentication confirmation response after receiving.
  • the user authentication parameter is the user authentication information to be dialed, that is, the second user authentication information can be recorded as auth_info2.
  • the PC initiates a PPP dialing IP control protocol request to the mobile terminal, requests the IP address configuration, and the mobile terminal determines whether the following conditions are met: the APN used for powering on the registration is the same as the APN specified by the PC through the PPP dialing string, and the user profile used for registration
  • step S505 it means that when the mobile terminal establishes a PDN connection with the mobile network, although the PPN dialed APN is used, since the user authentication information used is different from the user authentication information used for PPP dialing, Using the PDN connection at this time to access the Internet may cause problems. Therefore, the mobile terminal initiates a release attach request to the mobile network. After receiving the release attachment request, the mobile network releases the PDN connection currently established with the mobile terminal, and returns a acceptance release attachment response to the mobile terminal.
  • the mobile terminal initiates an attach request to the network using the user authentication parameters and APNs (ie, auth_info2 and anp2) delivered by the PC during PPP dialing, and then re-establishes a PDN connection with the mobile network.
  • the mobile network assigns IP address configuration information (ip_info2) to the mobile terminal and sends an accept attachment response to the mobile network.
  • the address is responsive.
  • the mobile terminal will re-attach the IP address configuration information such as the obtained IP address and DNS address, and determine the response to the PC through the PPP IP control protocol. Then the PC completes the address configuration and the PPP dialing is completed.
  • FIG. 6 is a schematic structural diagram of a mobile terminal processing authentication information according to an embodiment of the present invention.
  • the mobile terminal processing the authentication information may include a determining module 601, a determining module 602, and a connecting module 603.
  • the determining module 601 is configured to perform, when performing PPP dialing, respectively performing the second APN and the second user authentication information acquired during the PPP dialing with the first APN and the first user authentication information used by the mobile terminal when registering the mobile network. Comparison.
  • the determining module 602 is configured to initiate release of the first PDN to the mobile network when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different. The request to connect.
  • the connection module 603 is configured to establish a second PDN connection with the mobile network using the second APN and the second user authentication information after the mobile network releases the first PDN connection.
  • the mobile terminal may further include a communication module 604 and an acquisition module 605.
  • the communication module 604 is configured to receive a PPP dialing request initiated by the terminal device, and perform information interaction with the terminal device.
  • the obtaining module 605 is configured to acquire the second APN and the second user authentication information delivered by the terminal device according to the information received during the information interaction with the terminal device.
  • the obtaining module 605 is further configured to acquire IP address configuration information of the second PDN connection from the mobile network, and the communication module 604 is further configured to be based on the IP address of the second PDN connection.
  • the configuration information constructs an IPCP protocol IPCP response of the PPP dialing, and sends the IP address configuration information of the second PDN connection to the terminal device by using the IPCP response.
  • the determining module 602 is further configured to: when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are the same,
  • the first PDN connection established with the mobile network the obtaining module 605 is further configured to acquire IP address configuration information of the first PDN connection from the mobile network
  • the communication module 604 is further configured according to the first PDN
  • the IP address configuration information of the connection constructs an IPCP response of the PPP dialing, and the IP address configuration information of the first PDN connection is sent to the terminal device by using the IPCP response.
  • the connection module 603 is further configured to use the second APN and the second user authentication information
  • the mobile network establishes a third PDN connection
  • the obtaining module 605 is further configured to acquire IP address configuration information of the third PDN connection from the mobile network
  • the communication module 604 is further configured to be configured according to the IP of the third PDN connection
  • the address configuration information constructs an IPCP response of the PPP dialing, and sends the IP address configuration information of the third PDN connection to the terminal device by using the IPCP response.
  • the connection module 603 uses the existing APN and user authentication parameters stored internally to complete the establishment of the PDN connection in the attach process.
  • the established PDN connection may be referred to as a first PDN connection, and may be recorded as pdn1.
  • the user authentication parameter used is user authentication information, and the APN and user authentication information may be recorded as apn1 and auth_info1, respectively.
  • the communication module 604 of the mobile terminal receives the ATD command sent by the PC, and the obtaining module 605 parses the CID according to the dialing string, and reads the corresponding APN stored in the mobile terminal according to the CID, which can be recorded as Apn2, this is the APN to be used when dialing PPP. Then, the communication module 604 receives the PPP authentication request sent by the PC, where the user authentication information is carried, and the obtaining module 605 obtains the user authentication information for the PPP dialing, including the user name, the password, and the authentication mode. It can be recorded as auth_info2, which is the user authentication information to be used when dialing PPP.
  • the determining module 601 determines whether the second APN and the second user authentication information acquired during the PPP dialing are the same as the first APN and the first user authentication information used when registering the mobile network.
  • the determining module 602 determines that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, a request to release the first PDN connection is initiated to the mobile network.
  • the connection module 603 establishes a second PDN connection with the second APN and the second user authentication information.
  • the obtaining module 605 acquires the IP address configuration information of the second PDN connection from the mobile network, and the communication module 604 transmits the IP address configuration information of the second PDN connection to the terminal device.
  • the determining module 602 determines that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are the same, the originally established first PDN connection is maintained.
  • the obtaining module 605 acquires the IP address configuration information of the first PDN connection from the mobile network, and the communication module 605 sends the IP address configuration information of the first PDN connection to the terminal device.
  • the connection module 603 uses the second APN and the second user authentication information to establish a third PDN connection with the mobile network.
  • the obtaining module 605 acquires the IP address configuration information of the third PDN connection from the mobile network, and the communication module 604 transmits the IP address configuration information of the third PDN connection to the terminal device.
  • FIG. 7 is a schematic diagram showing the structure of a system for processing authentication information according to an embodiment of the present invention.
  • a system for processing authentication information may include a terminal device 701, a mobile terminal 702, and a mobile network 703.
  • the terminal device 701 is configured to initiate a PPP dialing request to the mobile terminal 702, transmit the second APN and the second user authentication information when performing PPP dialing to the mobile terminal, and request the mobile terminal 702 for IP address configuration information.
  • the mobile terminal is configured to compare the second APN and the second user authentication information acquired during PPP dialing with the first APN and the first user authentication information used when registering the network, when the PPP dialing is performed, when determining that the When the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, a request to release the first PDN connection is initiated to the mobile network 703, and when the mobile network releases the location After the first PDN connection, the second PDN connection is established with the mobile network using the second APN and the second user authentication information.
  • the mobile network 703 receives the release of the first PDN connection request initiated by the mobile terminal 702, and releases the first PDN connection established with the mobile terminal according to the request, and establishes with the mobile terminal 702 using the second APN and the second user authentication information.
  • the second PDN connection is the release of the first PDN connection request initiated by the mobile terminal 702, and releases the first PDN connection established with the mobile terminal according to the request, and establishes with the mobile terminal 702 using the second APN and the second user authentication information.
  • the mobile terminal 702 is further configured to acquire IP address configuration information of the second PDN connection from the mobile network 703, and construct an IPCP protocol IPCP response of the PPP dialing according to the IP address configuration information of the second PDN connection. And transmitting, by the IPCP response, the IP address configuration information of the second PDN connection to the terminal device 701.
  • the mobile network 703 transmits the IP address configuration information of the second PDN connection to the mobile terminal 702.
  • the mobile terminal 702 after the mobile terminal 702 is powered on, the mobile terminal 702 initiates an attach request to the mobile network 703 using the built-in existing first APN and the first user authentication information, and establishes a first PDN connection with the mobile network 703.
  • the terminal device 701 initiates a PPP dialing request to the mobile terminal 702, and transmits the second APN and the second user authentication information to the mobile terminal 702 during the information interaction with the mobile terminal 702.
  • the mobile device 701 also requests an IP address from the mobile terminal 702. After receiving the IP address request sent by the terminal device 701, the mobile terminal 702 acquires the second APN and the second user authentication information sent by the terminal device 701, and respectively the first APN and the first user authentication information and the second APN.
  • the mobile terminal 702 compare with the second user authentication information.
  • the mobile terminal 702 sends a request to release the first PDN connection to the mobile network 703.
  • the mobile network 703 accepts the request to release the first PDN connection and releases the first PDN connection with the mobile terminal 702.
  • the mobile terminal 702 then establishes a second PDN connection with the mobile network 703 using the second APN and the second user authentication information.
  • the mobile terminal 702 requests an IP address from the mobile network 703, and the mobile network 703 transmits the IP address configuration of the second PDN to the mobile terminal 702, and the mobile terminal 702 configures the IP address again through the IP address.
  • the response information is sent to the terminal device 701.
  • the terminal device 701 obtains information such as an IP address and a DNS address, and completes address configuration to complete PPP dialing.
  • FIG. 8 is a schematic structural diagram of a structure of a mobile terminal according to an embodiment of the present invention.
  • a mobile terminal may include a communication interface 801, a storage medium 802, and a processor 803.
  • Communication interface 801 is configured to communicate with other devices.
  • Communication interface 801 can include a serial interface and a parallel interface including, but not limited to, RS-232, RS-485, RS-422, and the like.
  • Storage medium 802 is configured to store a computer program.
  • the storage medium 801 may include a random storage medium and a read-only storage medium including, but not limited to, a compact flash (CF) card, a Secure Digital Memory (SD) card, and a smart media (Smart Media, SM) Cards, memory sticks, etc. have application entities that store data functions.
  • CF compact flash
  • SD Secure Digital Memory
  • SM Smart Media
  • the processor 803 is respectively connected to the communication interface 801 and the storage medium 802, and is configured to perform at least the executable step by running the computer program: when performing PPP dialing, respectively authenticating the second APN and the second user acquired during PPP dialing The information is compared with the first APN and the first user authentication information used when registering the mobile network; when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user When the authentication information is different, a request to release the current first PDN connection is initiated to the mobile network; and after the mobile network releases the first PDN connection, the second APN and the second user authentication information are used to establish with the mobile network The second PDN connection.
  • the processor 803 may further perform: receiving a PPP dialing request initiated by the terminal device, and performing information interaction with the terminal device; and performing information interaction with the terminal device.
  • the configuration information is sent to the terminal device.
  • the processor 803 may further perform: determining that the first APN and the second APN are the same and the first user authentication information and the second user profile When the rights information is the same, the first PDN connection established with the mobile network is maintained; the IP address configuration information of the first PDN connection is obtained from the mobile network; and the PPP dialing is constructed according to the IP address configuration information of the first PDN connection.
  • the IPCP responds, and transmits the IP address configuration information of the first PDN connection to the terminal device by using the IPCP response.
  • the processor 803 may further perform: when determining that the first APN and the second APN are different, using the second APN and the second user authentication information
  • the mobile network establishes a third PDN connection; acquires IP address configuration information of the third PDN connection from the mobile network; constructs an IPCP response of the PPP dialing according to the IP address configuration information of the third PDN connection, and responds by using the IPCP
  • the IP address configuration information of the third PDN connection is sent to the terminal device.
  • the communication interface, the storage medium, and the processor all have many application entities, and the above description is only for illustrative purposes, and does not limit the scope of the present invention.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program, and when the computer program is executed by the processor, when the PPP dialing is performed, the second APN obtained when dialing PPP respectively And comparing the first user authentication information with the first APN and the first user authentication information used when registering the mobile network; and determining that the first APN and the second APN are the same and the first user authentication information And requesting to release the current first PDN connection to the mobile network when the second user authentication information is different; and using the second APN and the second user authentication after the mobile network releases the first PDN connection
  • the information establishes a second PDN connection with the mobile network.
  • the second APN and the second user authentication information acquired when dialing PPP respectively and the first APN and the first used when registering the mobile network may be performed.
  • the PPP dialing request initiated by the terminal device is received, and the information is exchanged with the terminal device; and the information received by the terminal device is obtained according to the information received during the information interaction with the terminal device.
  • the second APN and the second user authentication information are the same or not.
  • the computer program when the computer program is executed by the processor, the computer program may be further configured to: acquire the second PDN connection from the mobile network after establishing the second PDN connection with the mobile network by using the second APN and the second user authentication information IP address configuration information of the second PDN connection; and constructing an IP control protocol IPCP response of the PPP dialing according to the IP address configuration information of the second PDN connection, and configuring the IP address configuration information of the second PDN connection by using the IPCP response Send to the terminal device.
  • the method when the computer program is executed by the processor, the method may further be performed: when determining that the first APN and the second APN are the same and the first user authentication information and the second user authentication When the information is the same, the first PDN connection established with the mobile network is maintained; and the IP address configuration information of the first PDN connection is obtained from the mobile network;
  • the method when the computer program is executed by the processor, the method further comprises: when determining that the first APN and the second APN are different, using the second APN and the second user authentication information and moving Establishing a third PDN connection by the network; acquiring IP address configuration information of the third PDN connection from the mobile network; and constructing an IPCP response of the PPP dialing according to the IP address configuration information of the third PDN connection, and responding by using the IPCP
  • the IP address configuration information of the third PDN connection is sent to the terminal device.
  • the determining module 601, the determining module 602, and the connecting module 603 and the communication module 604 shown in FIG. 6 may each be a Central Processing Unit (CPU), a Micro Processor Unit (MPU) located in the mobile terminal, Digital signal processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
  • CPU Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital signal processor
  • FPGA Field Programmable Gate Array
  • the method, the mobile terminal, and the system for authenticating information processing provided by the embodiment of the present invention, when performing PPP dialing, if it is determined that the second APN obtained when dialing PPP is the same as the first APN when registering the mobile network, but When the two user authentication information and the first user authentication information are different, the mobile terminal requests to release the first PDN connection, and re-establishes the PDN connection by using the correct user authentication information, that is, the mobile terminal uses the second APN and the second user.
  • the authentication information establishes a second PDN connection with the mobile network. Therefore, the mobile terminal establishes a PDN connection by using user authentication information such as a correct user name, password, and authentication mode. Even when the user authentication parameter check is strict, the user can ensure normal Internet access and improve PPP dialing. Accuracy and success rate.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed in the present invention is an method for processing authentication information: when implementing point-to-point protocol PPP dial-up networking, a mobile terminal respectively compares a second access point name APN and second user authentication information acquired during the PPP dial-up networking with a first APN and second user authentication information used by the mobile terminal when registering to the mobile network; when determining that the first APN and the second APN are the same but the first user authentication information and the second user authentication information are different, the mobile terminal issues a request to the mobile network to release a first packet data network PDN connection; and, after the mobile network releases the first PDN connection, the mobile terminal uses the second APN and the second user authentication information to establish a second PDN connection with the mobile network. Also disclosed in the present invention are a mobile terminal and system for processing authentication information.

Description

鉴权信息的处理方法、终端和系统Method, terminal and system for processing authentication information 技术领域Technical field
本发明涉及通信领域中的PPP拨号技术,尤其涉及一种鉴权信息的处理方法和终端。The present invention relates to a PPP dialing technology in the field of communications, and in particular, to a method and a terminal for processing authentication information.
背景技术Background technique
点对点协议(Point-to-Point Protocol,PPP)拨号(又称网络拨号(Dial Up Networking,DUN),在Windows系统下又称为远程访问服务(Remote Access Service,RAS)拨号)是利用PPP协议在终端设备(Terminal Equipment,TE)和移动终端(Mobile Terminal,MT)之间建立PPP链路以实现拨号的一种方法。终端设备可以是一般的个人计算机,也可以是内置嵌入式Linux系统的设备(如平板电脑、家用无线路由器等)。移动终端可以是移动电话。对于PPP拨号,需要由终端设备主动发起,然后终端设备与移动终端之间完成相关的交互动作,并触发移动终端与移动网络之间完成信令的交互,直到拨号完成。Point-to-Point Protocol (PPP) dialing (also known as Dial Up Networking (DUN), also known as Remote Access Service (RAS) dialing in Windows) is based on the PPP protocol. A method of establishing a PPP link between a terminal equipment (TE) and a mobile terminal (MT) to implement dialing. The terminal device can be a general personal computer or a device with an embedded Linux system (such as a tablet computer, a home wireless router, etc.). The mobile terminal can be a mobile phone. For PPP dialup, it needs to be initiated by the terminal device, and then the terminal device and the mobile terminal complete related interaction actions, and trigger the signaling interaction between the mobile terminal and the mobile network until the dialing is completed.
移动网络下的移动终端通常会自动注册网络,使用其内部存储的现有接入点名称(Access Point Name,APN)和用户鉴权参数完成附着(attach)过程,与移动网络建立分组数据网络(Packet Data Network,PDN)连接。PDN连接建立后,移动网络为移动终端分配相关资源以及网际互联协议(Internet Protocol,IP)地址、域名系统(Domain Name System,DNS)地址等信息。在PPP拨号过程中,移动终端在收到终端设备的PPP拨号请求后,如果发现本次拨号指定的APN与其附着时用的APN相同,则不会重新发起PDN连接的建立,而是使用现有的PDN连接(即,附着时建立的PDN连接)。然而,如果APN相同,但用户鉴权参数不同,则移动终端仍旧会使用附着时建立的PDN连接,将相应的IP地址、DNS地址分给终端设备,以完成PPP拨号过程。A mobile terminal under a mobile network usually automatically registers a network, completes an attach procedure using an existing Access Point Name (APN) and user authentication parameters stored therein, and establishes a packet data network with the mobile network ( Packet Data Network, PDN) connection. After the PDN connection is established, the mobile network allocates related resources and information such as an Internet Protocol (IP) address and a Domain Name System (DNS) address to the mobile terminal. In the PPP dialing process, after receiving the PPP dialing request from the terminal device, if the APN specified by the current dialing is the same as the APN used for the connection, the mobile terminal does not re-initiate the establishment of the PDN connection, but uses the existing PDN connection (ie, PDN connection established when attached). However, if the APNs are the same but the user authentication parameters are different, the mobile terminal still uses the PDN connection established at the time of attachment, and assigns the corresponding IP address and DNS address to the terminal device to complete the PPP dialing process.
在这种情况下,终端设备在PPP拨号过程中发给移动终端的用 户鉴权参数并未被移动终端用于建立PDN连接。因此,这就会导致终端设备侧设置的用户鉴权参数可能没有被使用,即,实际可能使用了不正确的用户鉴权参数。In this case, the user authentication parameters sent by the terminal device to the mobile terminal during the PPP dialing process are not used by the mobile terminal to establish a PDN connection. Therefore, this may result in the user authentication parameters set on the terminal device side may not be used, that is, the incorrect user authentication parameters may actually be used.
对于这个问题,虽然这在多数网络下可能不会有影响,但在某些运营商的网络下,由于对用户鉴权参数的检查比较严格,可能会要求移动终端使用当前客户识别模块(Subscriber Identification Module,SIM)卡对应的用户名、密码、鉴权方式这些用户鉴权参数来建立PDN连接,才能保证用户正常上网,否则可能会出现无法访问网络等问题。For this problem, although this may not be affected under most networks, under some operators' networks, because the user authentication parameters are checked strictly, the mobile terminal may be required to use the current customer identification module (Subscriber Identification). Module, SIM) card user name, password, and authentication mode. These user authentication parameters are used to establish a PDN connection to ensure that users can access the Internet normally. Otherwise, problems such as inaccessibility to the network may occur.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供鉴权信息处理的方法、移动终端和系统,可以使移动终端使用正确的用户鉴权参数。In view of this, embodiments of the present invention are expected to provide a method, a mobile terminal, and a system for authentication information processing, which can enable a mobile terminal to use correct user authentication parameters.
根据本发明的一个方面,提供了一种鉴权信息的处理方法,包括:当进行PPP拨号时,移动终端分别对PPP拨号时获取的第二APN和第二用户鉴权信息与该移动终端在注册移动网络时所用的第一APN和第一用户鉴权信息进行比较;当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,移动终端向移动网络发起释放第一PDN连接的请求;以及当移动网络释放所述第一PDN连接之后,移动终端使用所述第二APN和所述第二用户鉴权信息与移动网络建立第二PDN连接。According to an aspect of the present invention, a method for processing authentication information is provided, including: when performing PPP dialing, the second APN and the second user authentication information acquired by the mobile terminal when dialing PPP respectively are Comparing the first APN used when registering the mobile network with the first user authentication information; determining that the first APN and the second APN are the same and the first user authentication information and the second user authentication When the information is different, the mobile terminal initiates a request to release the first PDN connection to the mobile network; and after the mobile network releases the first PDN connection, the mobile terminal uses the second APN and the second user authentication information and moves The network establishes a second PDN connection.
根据本发明的另一方面,还提供了一种处理鉴权信息的移动终端,包括判断模块、确定模块和连接模块。所述判断模块设置为当进行PPP拨号时,分别对PPP拨号时获取的第二APN和第二用户鉴权信息与该移动终端在注册移动网络时所用的第一APN和第一用户鉴权信息进行比较。所述确定模块设置为当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,向移动网络发起释放第一PDN连接的请求。所述连接模块设置为当移动网络释放所述第一PDN连接之后,使用所述第二APN和所述第二用户鉴权信息与移动网络建立第二PDN连接。According to another aspect of the present invention, a mobile terminal for processing authentication information is provided, including a determination module, a determination module, and a connection module. The determining module is configured to: when performing PPP dialing, respectively, the second APN and the second user authentication information acquired during the PPP dialing and the first APN and the first user authentication information used by the mobile terminal when registering the mobile network Compare. The determining module is configured to initiate release of the first PDN connection to the mobile network when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different Request. The connection module is configured to establish a second PDN connection with the mobile network using the second APN and the second user authentication information after the mobile network releases the first PDN connection.
根据本发明的另一个方面,还提供了一种处理鉴权信息的系统,包括终端设备、移动终端和移动网络。所述终端设备设置为向移动终端发起PPP拨号请求,将进行PPP拨号时的第二APN和第二用户鉴权信息发送给移动终端,并且向移动终端请求IP地址配置信息。所述移动终端设置为当进行PPP拨号时,分别对PPP拨号时获取的第二APN和第二用户鉴权信息与该移动终端在注册网络时所用的第一APN和第一用户鉴权信息进行比较,当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,该移动终端向移动网络发起释放第一PDN连接的请求,并且当移动网络释放所述第一PDN连接之后,该移动终端使用所述第二APN和所述第二用户鉴权信息与移动网络建立第二PDN连接。所述移动网络接收移动终端发起的释放第一PDN连接的请求,并根据所述请求释放与移动终端建立的第一PDN连接,并且使用所述第二APN和所述第二用户鉴权信息与移动终端建立第二PDN连接。According to another aspect of the present invention, there is also provided a system for processing authentication information, including a terminal device, a mobile terminal, and a mobile network. The terminal device is configured to initiate a PPP dialing request to the mobile terminal, send the second APN and the second user authentication information when the PPP dialing is performed to the mobile terminal, and request the IP address configuration information from the mobile terminal. The mobile terminal is configured to perform, when performing PPP dialing, respectively performing the second APN and the second user authentication information acquired during the PPP dialing, and the first APN and the first user authentication information used by the mobile terminal when registering the network. For example, when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, the mobile terminal initiates release of the first PDN connection to the mobile network. Requesting, and after the mobile network releases the first PDN connection, the mobile terminal establishes a second PDN connection with the mobile network using the second APN and the second user authentication information. Receiving, by the mobile network, a request initiated by the mobile terminal to release the first PDN connection, and releasing a first PDN connection established with the mobile terminal according to the request, and using the second APN and the second user authentication information The mobile terminal establishes a second PDN connection.
根据本发明的另一个方面,还提供了一种移动终端,包括:通信接口,设置为与其他设备进行通信;存储介质,设置为存储有计算机程序;处理器,其分别与所述通信接口及所述存储介质相连,并且设置为通过运行所述计算机程序至少执行如下步骤:当进行PPP拨号时,分别对PPP拨号时获取的第二APN和第二用户鉴权信息与该移动终端在注册移动网络时所用的第一APN和第一用户鉴权信息进行比较;当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,向移动网络发起释放第一PDN连接的请求;以及当移动网络释放所述第一PDN连接之后,使用所述第二APN和所述第二用户鉴权信息与移动网络建立第二PDN连接。According to another aspect of the present invention, a mobile terminal is provided, comprising: a communication interface configured to communicate with other devices; a storage medium configured to store a computer program; a processor respectively associated with the communication interface and The storage medium is connected, and is configured to perform at least the following steps by running the computer program: when PPP dialing is performed, the second APN and the second user authentication information acquired when dialing PPP respectively and the mobile terminal are registered to move Comparing the first APN used by the network with the first user authentication information; determining that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are not Simultaneously, a request to release the first PDN connection is initiated to the mobile network; and after the mobile network releases the first PDN connection, establishing a second PDN connection with the mobile network using the second APN and the second user authentication information .
根据本发明的另一个方面,还提供了一种计算机存储介质,其存储有计算机程序,所述计算机程序被处理器运行时执行根据本发明的鉴权信息的处理方法。According to another aspect of the present invention, there is also provided a computer storage medium storing a computer program, the computer program being executed by a processor to perform a processing method of authentication information according to the present invention.
附图说明DRAWINGS
图1为2G/3G网络下PPP拨号过程中终端设备、移动终端以及 移动网络之间交互过程的示意图;1 is a schematic diagram of an interaction process between a terminal device, a mobile terminal, and a mobile network in a PPP dialing process on a 2G/3G network;
图2为4G网络下PPP拨号过程中终端设备、移动终端以及移动网络之间交互过程的示意图;2 is a schematic diagram of an interaction process between a terminal device, a mobile terminal, and a mobile network in a PPP dialing process under a 4G network;
图3为根据本发明实施例的鉴权信息的处理方法的基本流程示意图;FIG. 3 is a schematic flowchart diagram of a method for processing authentication information according to an embodiment of the present invention; FIG.
图4为根据本发明实施例的鉴权信息处理方法的具体实现流程示意图;FIG. 4 is a schematic flowchart of a specific implementation process of an authentication information processing method according to an embodiment of the present invention; FIG.
图5为根据本发明实施例的PPP拨号过程中终端设备、移动终端以及移动网络之间交互过程的示意图;5 is a schematic diagram of an interaction process between a terminal device, a mobile terminal, and a mobile network in a PPP dialing process according to an embodiment of the present invention;
图6为根据本发明实施例的处理鉴权信息的移动终端组成结构示意图;FIG. 6 is a schematic structural diagram of a mobile terminal processing authentication information according to an embodiment of the present invention; FIG.
图7为根据本发明实施例的处理鉴权信息的系统的组成结构示意图;以及7 is a schematic diagram showing the structure of a system for processing authentication information according to an embodiment of the present invention;
图8为根据本发明实施例的移动终端的组成结构示意图。FIG. 8 is a schematic structural diagram of a structure of a mobile terminal according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例中,当进行点对点协议(Point-to-Point Protocol,PPP)拨号时,移动终端首先判断PPP拨号时获取的第二APN和第二用户鉴权信息与该移动终端注册移动网络时所用的第一APN和第一用户鉴权信息是否相同。如果所述第一APN和所述第二APN相同,但是所述第一用户鉴权信息和所述第二用户鉴权信息不同,则移动终端向移动网络发起释放当前的分组数据网络(Packet Data Network,PDN)连接的请求,以释放当前的PDN连接。当移动网络释放所述PDN连接之后,移动终端使用所述第二APN和第二用户鉴权信息重新建立PDN连接,即,建立第二PDN连接。In the embodiment of the present invention, when the point-to-point protocol (PPP) dialing is performed, the mobile terminal first determines the second APN and the second user authentication information acquired when the PPP is dialed, and when the mobile terminal registers the mobile network. Whether the first APN used and the first user authentication information are the same. If the first APN and the second APN are the same, but the first user authentication information and the second user authentication information are different, the mobile terminal initiates release of the current packet data network to the mobile network (Packet Data Network, PDN) Connect the request to release the current PDN connection. After the mobile network releases the PDN connection, the mobile terminal re-establishes the PDN connection using the second APN and the second user authentication information, ie, establishes a second PDN connection.
需要说明的是,在PPP拨号时,移动终端与移动网络进行信令交互的主要目的是建立一条数据传输的逻辑通路,并激活移动网络之间互连协议,以保证数据能以IP报文的形式传送至移动网络的网关节点。在第二代通信技术和第三代通信技术(The 2nd Generation communication system/The 3rd Generation communication system, 2G/3G)下体现为分组数据协议(Packet Data Protocol,PDP)上下文的激活,而在第四代通信技术(The 4th Generation communication system,4G)下体现为PDN连接的建立。It should be noted that, in PPP dialing, the main purpose of signaling interaction between the mobile terminal and the mobile network is to establish a logical path of data transmission and activate the interconnection protocol between the mobile networks to ensure that the data can be IP packets. The form is transmitted to the gateway node of the mobile network. In the second generation communication technology and the third generation communication system (The 2nd Generation communication system, 2G/3G), it is embodied as the activation of the Packet Data Protocol (PDP) context, and in the fourth The 4th Generation communication system (4G) is embodied as the establishment of a PDN connection.
激活PDP上下文的过程和建立PDN连接的过程都是,移动终端将一系列相关参数发给移动网络,然后由移动网络完成用户信息的登记和相关资源的分配,并通过信令响应将网络所分配的IP地址、DNS地址等信息发给移动终端。完成这些信令交互后,移动终端与移动网络之间形成了一条逻辑上的通道。这条逻辑上的通道在2G/3G下是一个激活的PDP上下文,在4G下是一条PDN连接。在建立PDN连接的过程中,移动终端发给移动网络的参数中包括APN和用户鉴权信息。图1和图2分别体现了2G/3G和4G网络下PPP拨号过程中移动终端、终端设备以及移动网络之间的交互过程。The process of activating a PDP context and the process of establishing a PDN connection are both that the mobile terminal sends a series of related parameters to the mobile network, and then the mobile network completes the registration of the user information and the allocation of related resources, and allocates the network through the signaling response. The IP address, DNS address, and the like are sent to the mobile terminal. After these signaling interactions are completed, a logical channel is formed between the mobile terminal and the mobile network. This logical channel is an active PDP context at 2G/3G and a PDN connection at 4G. In the process of establishing a PDN connection, the parameters sent by the mobile terminal to the mobile network include APN and user authentication information. Figure 1 and Figure 2 respectively illustrate the interaction process between mobile terminals, terminal devices and mobile networks in the PPP dialing process under 2G/3G and 4G networks.
为了能够更加详尽地了解本发明的特点与技术内容,下面结合附图对本发明的实现进行详细阐述。In order to more fully understand the features and technical details of the present invention, the implementation of the present invention will be described in detail below with reference to the accompanying drawings.
图3为根据本发明实施例的鉴权信息的处理方法的基本流程示意图。FIG. 3 is a schematic flowchart diagram of a method for processing authentication information according to an embodiment of the present invention.
如图3所示,根据本发明实施例的鉴权信息处理方法可以包括步骤S301至S303。As shown in FIG. 3, the authentication information processing method according to an embodiment of the present invention may include steps S301 to S303.
在步骤S301,当进行PPP拨号时,移动终端分别对PPP拨号时获取的第二接入点名称APN和第二用户鉴权信息与该移动终端注册移动网络时所用的第一APN和第一用户鉴权信息进行比较。In step S301, when performing PPP dialing, the second access point name APN and the second user authentication information acquired by the mobile terminal for PPP dialing respectively and the first APN and the first user used when the mobile terminal registers the mobile network The authentication information is compared.
在步骤S302,当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,移动终端向移动网络发起释放第一PDN连接的请求。In step S302, when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, the mobile terminal initiates release of the first PDN connection to the mobile network. Request.
在步骤S303,当移动网络释放所述第一PDN连接之后,移动终端使用所述第二APN和所述第二用户鉴权信息与移动网络建立第二PDN连接。In step S303, after the mobile network releases the first PDN connection, the mobile terminal establishes a second PDN connection with the mobile network by using the second APN and the second user authentication information.
下面将对上述鉴权信息处理方法的基本流程进行详细描述。The basic flow of the above authentication information processing method will be described in detail below.
在步骤S301之前,移动终端接收终端设备发起的PPP拨号请求,并与终端设备进行信息交互。移动终端根据与终端设备进行信息交互 过程中接收的信息,获取终端设备传递的第二APN和第二用户鉴权信息。根据本发明的实施例,终端设备可以是一般的个人计算机,也可以是内置嵌入式Linux系统的设备(如平板电脑、家用无线路由器等)。移动终端可以是移动电话。为了方便阐述,在本文中可以用个人计算机(Personal Computer,PC)来代表终端设备,然而本发明构思不限于此。Before step S301, the mobile terminal receives the PPP dialing request initiated by the terminal device, and performs information interaction with the terminal device. The mobile terminal acquires the second APN and the second user authentication information delivered by the terminal device according to the information received during the information interaction with the terminal device. According to an embodiment of the present invention, the terminal device may be a general personal computer or a device with an embedded Linux system (such as a tablet computer, a home wireless router, etc.). The mobile terminal can be a mobile phone. For convenience of explanation, a personal computer (PC) may be used herein to represent the terminal device, but the inventive concept is not limited thereto.
PC向移动终端发起PPP拨号请求。PC可以通过调制解调器命令语言AT命令将PPP拨号用的APN设置到移动终端里面。比如,PC可以用通信协议3GPP TS 27.007里面规定的标准AT命令“+CGDCONT”来完成这个操作。PC在下发AT命令设置APN时,除了需要在参数里指定APN外,还需要给出内容身份(Context Identification,CID)参数。CID参数是一个正整数,用于指出下发给移动终端的APN要存到移动终端内的哪个文件,也就是指出文件的索引号。移动终端收到PC发起的PPP拨号请求后,会根据CID从对应的文件里读取APN用于PPP拨号过程。The PC initiates a PPP dialing request to the mobile terminal. The PC can set the APN for PPP dialing to the mobile terminal through the modem command language AT command. For example, the PC can do this with the standard AT command "+CGDCONT" specified in the communication protocol 3GPP TS 27.007. When the PC sends the AT command to set the APN, in addition to specifying the APN in the parameter, the PC needs to give the Context Identification (CID) parameter. The CID parameter is a positive integer indicating which file the APN sent to the mobile terminal is to store in the mobile terminal, that is, the index number of the file. After receiving the PPP dialing request initiated by the PC, the mobile terminal reads the APN from the corresponding file according to the CID for the PPP dialing process.
PC也可以通过AT命令等方式将用户鉴权信息设置到移动终端内的文件(profile),并且也需要由CID参数指定该文件的索引号。The PC can also set the user authentication information to a profile in the mobile terminal by means of an AT command or the like, and also needs to specify the index number of the file by the CID parameter.
应当认识到,尽管PC可以通过AT命令等方式将用户鉴权信息设置到移动终端内的文件,但这并不是PPP拨号前的必需操作。如果PC没有执行这项操作,则移动终端内的用户鉴权参数可能是某种不确定的值。在PPP拨号过程中,PC会通过PPP鉴权协议将用户在PC上设置或者输入的用户鉴权信息发给移动终端。移动终端应该使用这一套用户鉴权参数完成拨号过程。用户鉴权参数可以包括当前用户的用户名、密码、鉴权方式等,即,用户鉴权信息。It should be appreciated that although the PC can set the user authentication information to the file in the mobile terminal by means of an AT command or the like, this is not a necessary operation before the PPP dialing. If the PC does not perform this operation, the user authentication parameters within the mobile terminal may be some uncertain value. During the PPP dialup process, the PC sends the user authentication information set or input by the user on the PC to the mobile terminal through the PPP authentication protocol. The mobile terminal should use this set of user authentication parameters to complete the dialing process. The user authentication parameter may include a user name, a password, an authentication mode, and the like of the current user, that is, user authentication information.
移动终端接收终端设备发起的PPP拨号请求,与终端设备进行信息交互的过程可以包括以下步骤(1)至(3)。The mobile terminal receives the PPP dialing request initiated by the terminal device, and the process of performing information interaction with the terminal device may include the following steps (1) to (3).
在步骤(1),PC发送AT命令ATD*99#给移动终端,并且移动终端返回连接响应(CONNECT)。“*99#”是拨号字符串,也可以是“*99***N#”的形式(N是正整数),用于指定PPP拨号时所用的CID。如果拨号字符串是“*99#”,则CID取默认值1。如前所述,移动终 端根据CID可以读取其内部存储的对应文件中的APN等信息。In step (1), the PC sends an AT command ATD*99# to the mobile terminal, and the mobile terminal returns a connection response (CONNECT). "*99#" is a dial string, or it can be in the form of "*99***N#" (N is a positive integer), which is used to specify the CID used when dialing PPP. If the dial string is "*99#", the CID takes the default value of 1. As described above, the mobile terminal can read information such as APN in the corresponding file stored therein according to the CID.
在步骤(2),配置PPP链路。PC与移动终端之间通过PPP链路控制协议(PPP LCP)配置请求(Config Request)和PPP链路控制协议配置确认(PPP LCP Config Ack)进行信令交互,以完成PPP链路配置。In step (2), the PPP link is configured. The PPP Link Control Protocol (PPP LCP) Configuration Request (Config Request) and the PPP Link Control Protocol Configuration Confirmation (PPP LCP Config Ack) are used for signaling interaction between the PC and the mobile terminal to complete the PPP link configuration.
在步骤(3),对PPP鉴权。PC将拨号时用户输入的或者事先配置的用户鉴权参数通过PPP鉴权请求(PPP Auth Request)发给移动终端。移动终端接收后返回PPP鉴权确认(PPP Auth Ack)响应。所述用户鉴权参数为PPP拨号时使用的用户鉴权信息,即,第二用户鉴权信息。In step (3), the PPP is authenticated. The PC sends the user authentication parameter input by the user or configured in advance to the mobile terminal through a PPP authentication request (PPP Auth Request). After receiving, the mobile terminal returns a PPP Auth Ack response. The user authentication parameter is user authentication information used when dialing PPP, that is, second user authentication information.
在步骤S301,PC发起PPP IP控制协议请求(PPP IPCP Request),并且移动终端获取由PC传递的第二APN和第二用户鉴权信息。第二APN可以由PC通过AT命令设置到移动终端内,移动终端可以读取内部存储的对应文件中的APN信息。第二用户鉴权信息可以由PC通过PPP鉴权请求发送给移动终端。In step S301, the PC initiates a PPP IPCP Request (PPP IPCP Request), and the mobile terminal acquires the second APN and the second user authentication information delivered by the PC. The second APN can be set by the PC to the mobile terminal by using an AT command, and the mobile terminal can read the APN information in the corresponding file stored internally. The second user authentication information may be sent by the PC to the mobile terminal through the PPP authentication request.
在步骤S302,移动终端获取第二APN和第二用户鉴权信息之后,将第二APN和第二用户鉴权信息与该移动终端注册移动网络是所用的第一APN和第一用户鉴权信息分别进行比较。第一APN和第一用户鉴权信息可以是移动终端内置的已有的APN信息和用户鉴权信息。移动终端开机后,使用第一APN和第一用户鉴权信息向移动网络发起附着(attach)请求,并与移动网络建立第一PDN连接。After the mobile terminal acquires the second APN and the second user authentication information, the second APN and the second user authentication information are registered with the mobile terminal as the first APN and the first user authentication information. Compare separately. The first APN and the first user authentication information may be existing APN information and user authentication information built in the mobile terminal. After the mobile terminal is powered on, the first APN and the first user authentication information are used to initiate an attach request to the mobile network, and establish a first PDN connection with the mobile network.
当移动终端判断第一APN和第二APN相同且第一用户鉴权信息和第二用户鉴权信息不同时,移动终端向移动网络发起释放当前的第一PDN连接的请求。即,移动终端在对移动网络进行附着的过程中建立PDN连接时,尽管使用了PPP拨号的APN,但由于所用的用户鉴权信息与PC发起的PPP拨号时需要使用的用户鉴权信息可能是不同的,因此基于此时的PDN连接来上网可能会出现问题。移动终端可以向移动网络发起释放附着请求(detach request),以请求释放当前的第一PDN连接。When the mobile terminal determines that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, the mobile terminal initiates a request to release the current first PDN connection to the mobile network. That is, when the mobile terminal establishes a PDN connection in the process of attaching to the mobile network, although the PPN dialed APN is used, the user authentication information that needs to be used due to the user authentication information used and the PPP dialing initiated by the PC may be Different, so there may be problems with surfing the Internet based on the PDN connection at this time. The mobile terminal may initiate a detach request to the mobile network to request release of the current first PDN connection.
在步骤S303,移动终端收到移动网络发送的接受释放附着 (detach accept)响应之后,向移动网络重新发起附着请求(attach request)。移动终端使用PPP拨号时获取的第二APN和第二用户鉴权信息来建立第二PDN连接。此时,移动终端使用了正确的APN和用户鉴权信息与移动网络建立了PDN连接。In step S303, after receiving the detach accept response sent by the mobile network, the mobile terminal re-initiates an attach request to the mobile network. The mobile terminal establishes a second PDN connection by using the second APN obtained when the PPP is dialed and the second user authentication information. At this point, the mobile terminal establishes a PDN connection with the mobile network using the correct APN and user authentication information.
移动终端使用第二APN和第二用户鉴权信息发起建立第二PDN连接的请求之后,移动网络向移动终端发送接受附着响应(attach accept)。移动终端从接受附着响应中获取第二PDN连接的IP地址配置信息,根据第二PDN连接的IP地址配置信息构造PPP拨号的IPCP响应,并且通过IPCP响应将第二PDN连接的IP地址配置信息发送给终端设备。IP地址配置信息可以包括IP地址、DNS地址等。After the mobile terminal initiates the request to establish the second PDN connection using the second APN and the second user authentication information, the mobile network sends an attach accept to the mobile terminal. The mobile terminal acquires IP address configuration information of the second PDN connection from the accept attachment response, constructs an IPCP response of the PPP dialup according to the IP address configuration information of the second PDN connection, and sends the IP address configuration information of the second PDN connection by using the IPCP response. To the terminal device. The IP address configuration information may include an IP address, a DNS address, and the like.
进一步地,当确定第一APN和第二APN相同且第一用户鉴权信息和第二用户鉴权信息相同时,即,移动终端使用了正确的APN和用户鉴权信息与移动网络建立了PDN连接,则移动终端保持与移动网络建立的第一PDN连接,并且移动终端直接从移动网络获取第一PDN连接的IP地址配置信息。随后,移动终端根据第一PDN连接的IP地址配置信息构造PPP拨号的IPCP响应,并且通过IPCP响应将第一PDN连接的IP地址配置信息发送给终端设备。Further, when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are the same, that is, the mobile terminal establishes the PDN with the mobile network by using the correct APN and the user authentication information. Connected, the mobile terminal maintains a first PDN connection established with the mobile network, and the mobile terminal acquires IP address configuration information of the first PDN connection directly from the mobile network. Then, the mobile terminal constructs an IPCP response of the PPP dialing according to the IP address configuration information of the first PDN connection, and sends the IP address configuration information of the first PDN connection to the terminal device by using an IPCP response.
进一步地,当确定第一APN和第二APN不同时,不论用户鉴权信息是否相同,移动终端使用此时的APN进行上网都会出现错误。因此,移动终端使用第二APN和第二用户鉴权信息与移动网络建立第三PDN连接。在第三PDN连接建立完成之后,移动终端从移动网络获取第三PDN连接的IP地址配置信息,根据第三PDN连接的IP地址配置信息构造PPP拨号的IPCP响应,并通过IPCP响应将第三PDN连接的IP地址配置信息发送给终端设备。Further, when it is determined that the first APN and the second APN are different, regardless of whether the user authentication information is the same, the mobile terminal uses the APN at this time to perform Internet access, and an error occurs. Therefore, the mobile terminal establishes a third PDN connection with the mobile network using the second APN and the second user authentication information. After the third PDN connection establishment is completed, the mobile terminal acquires IP address configuration information of the third PDN connection from the mobile network, constructs an IPCP response of the PPP dialup according to the IP address configuration information of the third PDN connection, and responds the third PDN by the IPCP response. The connected IP address configuration information is sent to the terminal device.
PC收到移动终端发送的IP地址配置信息之后,完成地址配置,即,PPP拨号完成。After receiving the IP address configuration information sent by the mobile terminal, the PC completes the address configuration, that is, the PPP dialing is completed.
图4为根据本发明实施例的鉴权信息处理方法的具体实现流程示意图。FIG. 4 is a schematic flowchart of a specific implementation process of an authentication information processing method according to an embodiment of the present invention.
如图4所示,根据本发明实施例的鉴权信息处理方法可以包括步骤S401至S416。As shown in FIG. 4, the authentication information processing method according to an embodiment of the present invention may include steps S401 to S416.
在步骤S401,移动终端开机注册网络,与移动网络建立第一PDN连接pdn1,其中,用于建立第一PDN连接pdn1的APN和用户鉴权信息分别为apn1和auth_info1。In step S401, the mobile terminal starts the registration network, and establishes a first PDN connection pdn1 with the mobile network, wherein the APN and user authentication information used to establish the first PDN connection pdn1 are apn1 and auth_info1, respectively.
移动终端开机后,通常会自动注册网络。在注册移动网络时会完成附着过程。移动终端在4G网络下的附着过程,需要用APN和用户鉴权参数等信息建立PDN连接,这与2G/3G网络的情况是不同的。这是因为,在2G/3G网络下,移动终端在注册网络时不需要使用这些信息,而是在PPP拨号时才需要与移动网络激活PDP上下文,这时才会将APN和用户鉴权参数等信息发给移动网络。After the mobile terminal is powered on, the network is usually automatically registered. The attach process is completed when you register your mobile network. The attach procedure of the mobile terminal under the 4G network needs to establish a PDN connection by using information such as APN and user authentication parameters, which is different from the case of the 2G/3G network. This is because, under the 2G/3G network, the mobile terminal does not need to use this information when registering the network, but needs to activate the PDP context with the mobile network when dialing PPP, and then the APN and user authentication parameters, etc. will be Information is sent to the mobile network.
由于注册网络是移动终端自发的行为,因此在4G网络下,移动终端通常使用内部存储的现有APN和用户鉴权参数向移动网络发起附着请求。移动网络接收到附着请求后,与移动终端建立PDN连接。PDN连接建立后,移动网络为移动终端分配了相关资源以及IP地址、DNS地址等信息(即,IP地址配置信息),并向移动终端发送接受附着响应。此时建立的PDN连接在本申请中可以称为“第一PDN连接”,并且可以为pdn1,建立第一PDN连接pdn1所用的APN和用户鉴权参数(即,用户鉴权信息)可以分别为apn1和auth_info1。移动网络在此情况下分配的IP地址配置信息可以为ip_info1。Since the registration network is a spontaneous behavior of the mobile terminal, under the 4G network, the mobile terminal usually initiates an attach request to the mobile network using the existing APN and user authentication parameters stored internally. After receiving the attach request, the mobile network establishes a PDN connection with the mobile terminal. After the PDN connection is established, the mobile network allocates relevant resources, IP address, DNS address and other information (ie, IP address configuration information) to the mobile terminal, and sends an accept attachment response to the mobile terminal. The PDN connection established at this time may be referred to as a “first PDN connection” in the present application, and may be pdn1. The APN and user authentication parameters (ie, user authentication information) used to establish the first PDN connection pdn1 may be respectively Apn1 and auth_info1. The IP address configuration information assigned by the mobile network in this case may be ip_info1.
在步骤S402,移动终端获取PC在进行PPP拨号时传递的APN为apn2。In step S402, the mobile terminal acquires the APN delivered by the PC when performing PPP dialing as apn2.
PPP拨号开始,移动终端收到PC下发的ATD命令,例如,可以是ATD*99#。根据ATD命令中的拨号字符串,移动终端解析出CID,并根据CID读取移动终端内部存储的对应APN(即,apn2),这是PPP拨号时要用的APN。然后,移动终端返回连接响应。The PPP dialing starts, and the mobile terminal receives the ATD command sent by the PC, for example, it can be ATD*99#. According to the dialing string in the ATD command, the mobile terminal parses out the CID and reads the corresponding APN (ie, apn2) stored in the mobile terminal according to the CID, which is the APN to be used when dialing PPP. The mobile terminal then returns a connection response.
在步骤S403,移动终端接收PC发送的用户鉴权信息auth_info2。In step S403, the mobile terminal receives the user authentication information auth_info2 sent by the PC.
移动终端收到PC下发的携带有用户鉴权信息的PPP鉴权请求。移动终端取得PPP拨号用的用户鉴权信息auth_info2,其中可以包括用户名、密码和鉴权方式等信息,这是进行PPP拨号时要用的用户鉴权信息。The mobile terminal receives the PPP authentication request that is sent by the PC and carries the user authentication information. The mobile terminal obtains the user authentication information auth_info2 for PPP dialing, which may include information such as a username, a password, and an authentication method, which is user authentication information to be used when performing PPP dialing.
在步骤S404,移动终端判断当前注册的移动网络是否是4G网络。 如果是4G网络,则执行步骤S405;如果不是4G网络(例如,是2G/3G网络),则执行步骤S411。In step S404, the mobile terminal determines whether the currently registered mobile network is a 4G network. If it is a 4G network, step S405 is performed; if it is not a 4G network (for example, a 2G/3G network), step S411 is performed.
在步骤S405,:移动终端判断apn1与apn2是否相同。如果注册时的APN和PPP拨号时获取的APN相同(即,apn1=apn2),则执行步骤S406;如果注册时的APN和PPP拨号时获取的APN不同,(即,apn1≠apn2),则执行步骤S413。In step S405, the mobile terminal determines whether apn1 and apn2 are the same. If the APN at the time of registration is the same as the APN obtained when the PPP is dialed (ie, apn1=apn2), step S406 is performed; if the APN at the time of registration is different from the APN obtained when the PPP is dialed (ie, apn1≠apn2), execution is performed. Step S413.
在步骤S406,移动终端判断auth_info1跟auth_info2是否相同。如果注册时的用户鉴权信息和PPP拨号时获取的用户鉴权信息不同(即,auth_info1≠auth_info2),则执行步骤S407;如果注册时的用户鉴权信息和PPP拨号时获取的用户鉴权信息相同(即,auth_info1=auth_info2),则执行步骤S410。In step S406, the mobile terminal determines whether auth_info1 is the same as auth_info2. If the user authentication information at the time of registration is different from the user authentication information obtained when the PPP is dialed (ie, auth_info1≠auth_info2), step S407 is performed; if the user authentication information at the time of registration and the user authentication information obtained when the PPP is dialed The same (ie, auth_info1 = auth_info2), step S410 is performed.
在上述步骤S405和S406中,分别判断了apn1与apn2是否相同,以及auth_info1与auth_info2是否相同,其目的是为了判断是否出现了这样的情况:移动终端在附着过程中建立PDN连接(即,第一PDN连接pdn1)所使用的APN(apn1)就是PPP拨号时要用的APN(apn2)(即,apn1=apn2),并且附着过程中所用的用户鉴权信息(auth_info1)不同于PPP拨号时要用的用户鉴权信息(auth_info2)。若出现了这种情况,则采用附着时所建立的PDN连接(即,第一PDN连接pdn1)来上网可能会出现问题。在此情况下,根据本发明的实施例,移动终端释放当前的PDN连接,并使用PPP拨号时使用的APN和用户鉴权信息(auth_info2)重新建立PDN(即,第二PDN连接pdn2)。应当认识到,步骤S405和步骤S406没有特定的先后顺序要求。In the above steps S405 and S406, it is determined whether apn1 and apn2 are the same, and whether auth_info1 and auth_info2 are the same, the purpose of which is to determine whether a situation occurs in which the mobile terminal establishes a PDN connection in the attaching process (ie, the first The APN (apn1) used by the PDN connection pdn1) is the APN (apn2) to be used when dialing PPP (ie, apn1=apn2), and the user authentication information (auth_info1) used in the attach procedure is different from that used when dialing PPP. User authentication information (auth_info2). If this happens, there may be a problem with the PDN connection established at the time of attachment (ie, the first PDN connection pdn1). In this case, according to an embodiment of the present invention, the mobile terminal releases the current PDN connection and re-establishes the PDN (ie, the second PDN connection pdn2) using the APN and user authentication information (auth_info2) used in PPP dialing. It should be appreciated that steps S405 and S406 do not have a specific sequence of requirements.
在步骤S407,移动终端发起释放附着请求,即,移动终端向移动网络发起释放附着请求,以释放当前的第一PDN连接pdn1。In step S407, the mobile terminal initiates a release attach request, that is, the mobile terminal initiates a release attach request to the mobile network to release the current first PDN connection pdn1.
在步骤S408,移动终端使用apn2和auth_info2向移动网络重新发起附着过程,以重新建立PDN连接pdn2。At step S408, the mobile terminal re-initiates the attach procedure to the mobile network using apn2 and auth_info2 to re-establish the PDN connection pdn2.
在步骤S409,移动终端使用pdn2的IP地址配置信息构造IPCP响应(IPCP Ack)。移动终端将pdn2的IP地址、DNS地址填入IPCP Ack中的对应字段,然后执行步骤S415。In step S409, the mobile terminal constructs an IPCP response (IPCP Ack) using the IP address configuration information of pdn2. The mobile terminal fills the IP address and DNS address of the pdn2 into the corresponding field in the IPCP Ack, and then performs step S415.
在步骤S410,移动终端使用pdn1的IP地址配置信息构造IPCP  Ack。移动终端将pdn1的IP地址、DNS地址填入IPCP Ack中的对应字段,然后执行步骤S415。In step S410, the mobile terminal constructs an IPCP Ack using the IP address configuration information of pdn1. The mobile terminal fills the IP address and DNS address of the pdn1 into the corresponding field in the IPCP Ack, and then performs step S415.
在步骤S411,移动终端使用apn2和auth_info2激活PDP上下文pdp1。In step S411, the mobile terminal activates the PDP context pdp1 using apn2 and auth_info2.
在步骤S412,移动终端使用pdp1的IP地址配置信息构造IPCP Ack。移动终端将pdp1的IP地址、DNS地址填入IPCP Ack中的对应字段,然后执行步骤S415。In step S412, the mobile terminal constructs an IPCP Ack using the IP address configuration information of pdp1. The mobile terminal fills the IP address and DNS address of the pdp1 into the corresponding field in the IPCP Ack, and then performs step S415.
在步骤S413,移动终端使用apn2和auth_info2新建PDN连接pdn3。In step S413, the mobile terminal newly establishes the PDN connection pdn3 using apn2 and auth_info2.
在步骤S414,移动终端使用pdn3的IP地址配置信息构造IPCP Ack。移动终端将pdn3的IP地址、DNS地址填入IPCP Ack中的对应字段。At step S414, the mobile terminal constructs an IPCP Ack using the IP address configuration information of pdn3. The mobile terminal fills the IP address and DNS address of the pdn3 into the corresponding field in the IPCP Ack.
在步骤S415,移动终端将构造的IPCP Ack响应发给PC。At step S415, the mobile terminal sends the constructed IPCP Ack response to the PC.
在步骤S416,PPP拨号完成。At step S416, the PPP dialing is completed.
PC从收到的IPCP Ack中解析得到IP地址、DNS地址,以完成配置,PPP拨号完成。The PC parses the IP address and DNS address from the received IPCP Ack to complete the configuration, and the PPP dialing is completed.
图5为根据本发明实施例的PPP拨号过程中终端设备、移动终端以及移动网络之间交互过程的示意图。FIG. 5 is a schematic diagram of an interaction process between a terminal device, a mobile terminal, and a mobile network in a PPP dialing process according to an embodiment of the present invention.
如图5所示,根据本发明实施例的PPP拨号的交互过程可以包括步骤S501至S508。As shown in FIG. 5, the PPP dialing interaction process according to an embodiment of the present invention may include steps S501 to S508.
在步骤S501,移动终端开机注册。In step S501, the mobile terminal starts up registration.
移动终端开机后,使用内置的已有用户鉴权信息和APN信息,向移动网络发起附着请求,以与移动终端建立PDN连接。PDN连接建立后,移动网络为移动终端分配了相关资源以及IP地址、DNS地址等信息(即,IP地址配置信息)ip_info1,并向移动终端返回接受附着响应。此时所用的APN和用户鉴权信息分别为apn1和auth_info1。After the mobile terminal is powered on, the built-in existing user authentication information and the APN information are used to initiate an attach request to the mobile network to establish a PDN connection with the mobile terminal. After the PDN connection is established, the mobile network allocates related resources, IP address, DNS address and other information (ie, IP address configuration information) ip_info1 to the mobile terminal, and returns an accept attachment response to the mobile terminal. The APN and user authentication information used at this time are apn1 and auth_info1, respectively.
在步骤S502,拨号开始。At step S502, dialing starts.
移动终端收到PC下发的命令ATD*99#或者ATD*99***N#,根据拨号字符串,解析得到PPP拨号指定的CID,并读取拨号要用的APN, 可以记为apn2,然后移动终端返回连接响应。The mobile terminal receives the command ATD*99# or ATD*99***N# sent by the PC, and according to the dial string, parses the CID specified by the PPP dialing, and reads the APN used for dialing, which can be recorded as apn2. The mobile terminal then returns a connection response.
在步骤S503,PPP链路配置。In step S503, the PPP link is configured.
PC跟移动终端之间通过PPP链路配置请求和PPP链路配置确认信令交互,完成PPP链路配置。The PPP link configuration request and the PPP link configuration confirmation signaling interaction between the PC and the mobile terminal complete the PPP link configuration.
在步骤S504,PPP鉴权。At step S504, the PPP is authenticated.
PC将拨号时用户输入的或者事先配置的用户鉴权参数通过PPP鉴权请求发给移动终端,移动终端接收后返回PPP鉴权确认响应。这个用户鉴权参数就是拨号要用的用户鉴权信息,即,第二用户鉴权信息,可以记为auth_info2。The PC sends the user authentication parameter input by the user or configured in advance to the mobile terminal through the PPP authentication request, and the mobile terminal returns a PPP authentication confirmation response after receiving. The user authentication parameter is the user authentication information to be dialed, that is, the second user authentication information can be recorded as auth_info2.
在步骤S505,请求地址。At step S505, an address is requested.
PC向移动终端发起PPP拨号IP控制协议请求,请求IP地址配置,移动终端判断是否满足以下条件:开机注册时所用的APN与PC通过PPP拨号字符串指定的APN相同,且注册时用的用户鉴权参数与步骤S504中获取的用户鉴权参数不同,即,apn1=apn2且auth_info1≠auth_info2。The PC initiates a PPP dialing IP control protocol request to the mobile terminal, requests the IP address configuration, and the mobile terminal determines whether the following conditions are met: the APN used for powering on the registration is the same as the APN specified by the PC through the PPP dialing string, and the user profile used for registration The weight parameter is different from the user authentication parameter acquired in step S504, that is, apn1=apn2 and auth_info1≠auth_info2.
在步骤S506,释放附着。At step S506, the attachment is released.
如果满足步骤S505中的条件,则意味着,移动终端与移动网络建立PDN连接时,尽管使用了PPP拨号的APN,但由于所用的用户鉴权信息与PPP拨号要用的用户鉴权信息不同,采用此时的PDN连接进行上网可能会出现问题。因此,移动终端向移动网络发起释放附着请求。移动网络收到释放附着请求后,释放当前与移动终端建立的PDN连接,并向移动终端返回接受释放附着响应。If the condition in step S505 is satisfied, it means that when the mobile terminal establishes a PDN connection with the mobile network, although the PPN dialed APN is used, since the user authentication information used is different from the user authentication information used for PPP dialing, Using the PDN connection at this time to access the Internet may cause problems. Therefore, the mobile terminal initiates a release attach request to the mobile network. After receiving the release attachment request, the mobile network releases the PDN connection currently established with the mobile terminal, and returns a acceptance release attachment response to the mobile terminal.
在S507,重新附着。At S507, reattach.
移动终端使用PC在PPP拨号时下发的用户鉴权参数和APN(即,auth_info2和anp2)向网络发起附着请求,然后与移动网络重新建立PDN连接。移动网络为移动终端分配IP地址配置信息(ip_info2),并向移动网络发送接受附着响应。The mobile terminal initiates an attach request to the network using the user authentication parameters and APNs (ie, auth_info2 and anp2) delivered by the PC during PPP dialing, and then re-establishes a PDN connection with the mobile network. The mobile network assigns IP address configuration information (ip_info2) to the mobile terminal and sends an accept attachment response to the mobile network.
在S508,地址响应。At S508, the address is responsive.
移动终端将通过重新附着所获得的IP地址、DNS地址等IP地址配置信息,通过PPP IP控制协议确定响应传递给PC,随后PC完成 地址配置,PPP拨号完成。The mobile terminal will re-attach the IP address configuration information such as the obtained IP address and DNS address, and determine the response to the PC through the PPP IP control protocol. Then the PC completes the address configuration and the PPP dialing is completed.
图6为根据本发明实施例的处理鉴权信息的移动终端组成结构示意图。FIG. 6 is a schematic structural diagram of a mobile terminal processing authentication information according to an embodiment of the present invention.
如图6所示,根据本发明实施例的处理鉴权信息的移动终端可以包括判断模块601、确定模块602和连接模块603。As shown in FIG. 6, the mobile terminal processing the authentication information according to the embodiment of the present invention may include a determining module 601, a determining module 602, and a connecting module 603.
判断模块601设置为当进行PPP拨号时,分别对PPP拨号时获取的第二APN和第二用户鉴权信息与该移动终端在注册移动网络时所用的第一APN和第一用户鉴权信息进行比较。The determining module 601 is configured to perform, when performing PPP dialing, respectively performing the second APN and the second user authentication information acquired during the PPP dialing with the first APN and the first user authentication information used by the mobile terminal when registering the mobile network. Comparison.
所述确定模块602设置为当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,向移动网络发起释放第一PDN连接的请求。The determining module 602 is configured to initiate release of the first PDN to the mobile network when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different. The request to connect.
所述连接模块603设置为当移动网络释放所述第一PDN连接之后,使用所述第二APN和第二用户鉴权信息与移动网络建立第二PDN连接。The connection module 603 is configured to establish a second PDN connection with the mobile network using the second APN and the second user authentication information after the mobile network releases the first PDN connection.
根据本发明实施例的移动终端还可以包括通信模块604和获取模块605。The mobile terminal according to an embodiment of the present invention may further include a communication module 604 and an acquisition module 605.
所述通信模块604设置为接收终端设备发起的PPP拨号请求,并与所述终端设备进行信息交互。The communication module 604 is configured to receive a PPP dialing request initiated by the terminal device, and perform information interaction with the terminal device.
所述获取模块605设置为根据与所述终端设备进行信息交互过程中接收的信息,获取所述终端设备传递的第二APN和第二用户鉴权信息。The obtaining module 605 is configured to acquire the second APN and the second user authentication information delivered by the terminal device according to the information received during the information interaction with the terminal device.
根据本发明实施例,所述获取模块605还设置为从移动网络获取所述第二PDN连接的IP地址配置信息,并且所述通信模块604,还设置为根据所述第二PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且通过所述IPCP响应将所述第二PDN连接的IP地址配置信息发送给终端设备。According to an embodiment of the present invention, the obtaining module 605 is further configured to acquire IP address configuration information of the second PDN connection from the mobile network, and the communication module 604 is further configured to be based on the IP address of the second PDN connection. The configuration information constructs an IPCP protocol IPCP response of the PPP dialing, and sends the IP address configuration information of the second PDN connection to the terminal device by using the IPCP response.
根据本发明实施例,所述确定模块602还设置为当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息相同时,保持与移动网络建立的所述第一PDN连接,所述获取模块605还设置为从移动网络获取所述第一PDN连接的IP地址配 置信息,并且所述通信模块604还设置根据所述第一PDN连接的IP地址配置信息构造PPP拨号的IPCP响应,通过所述IPCP响应将所述第一PDN连接的IP地址配置信息发送给终端设备。According to an embodiment of the present invention, the determining module 602 is further configured to: when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are the same, The first PDN connection established with the mobile network, the obtaining module 605 is further configured to acquire IP address configuration information of the first PDN connection from the mobile network, and the communication module 604 is further configured according to the first PDN The IP address configuration information of the connection constructs an IPCP response of the PPP dialing, and the IP address configuration information of the first PDN connection is sent to the terminal device by using the IPCP response.
根据本发明实施例,当所述确定模块602确定所述第一APN和所述第二APN不同时,所述连接模块603还设置为使用所述第二APN和第二用户鉴权信息,与移动网络建立第三PDN连接,所述获取模块605还设置为从移动网络获取所述第三PDN连接的IP地址配置信息,并且所述通信模块604还设置为根据所述第三PDN连接的IP地址配置信息构造PPP拨号的IPCP响应,通过所述IPCP响应将所述第三PDN连接的IP地址配置信息发送给终端设备。According to the embodiment of the present invention, when the determining module 602 determines that the first APN and the second APN are different, the connection module 603 is further configured to use the second APN and the second user authentication information, and The mobile network establishes a third PDN connection, the obtaining module 605 is further configured to acquire IP address configuration information of the third PDN connection from the mobile network, and the communication module 604 is further configured to be configured according to the IP of the third PDN connection The address configuration information constructs an IPCP response of the PPP dialing, and sends the IP address configuration information of the third PDN connection to the terminal device by using the IPCP response.
具体地,移动终端开机时,会自动注册移动网络。连接模块603使用内部存储的现有APN和用户鉴权参数,完成附着过程中PDN连接的建立。此时,建立的PDN连接可以称为第一PDN连接,并可以记为pdn1,所用的用户鉴权参数即为用户鉴权信息,APN和用户鉴权信息可以分别记为apn1和auth_info1。Specifically, when the mobile terminal is powered on, the mobile network is automatically registered. The connection module 603 uses the existing APN and user authentication parameters stored internally to complete the establishment of the PDN connection in the attach process. At this time, the established PDN connection may be referred to as a first PDN connection, and may be recorded as pdn1. The user authentication parameter used is user authentication information, and the APN and user authentication information may be recorded as apn1 and auth_info1, respectively.
PPP拨号开始时,移动终端的通信模块604收到PC下发的ATD命令,获取模块605根据其中的拨号字符串,解析出CID,并根据CID读取移动终端内部存储的对应APN,可以记为apn2,这是PPP拨号时要用的APN。之后,通信模块604收到PC下发的PPP鉴权请求,其中携带用户鉴权信息,获取模块605取得PPP拨号用的用户鉴权信息,其中包含了用户名、密码和鉴权方式等信息,可以记为auth_info2,这是进行PPP拨号时所要用的用户鉴权信息。When the PPP dialing starts, the communication module 604 of the mobile terminal receives the ATD command sent by the PC, and the obtaining module 605 parses the CID according to the dialing string, and reads the corresponding APN stored in the mobile terminal according to the CID, which can be recorded as Apn2, this is the APN to be used when dialing PPP. Then, the communication module 604 receives the PPP authentication request sent by the PC, where the user authentication information is carried, and the obtaining module 605 obtains the user authentication information for the PPP dialing, including the user name, the password, and the authentication mode. It can be recorded as auth_info2, which is the user authentication information to be used when dialing PPP.
判断模块601分别对PPP拨号时获取的第二APN和第二用户鉴权信息与注册移动网络时所用的第一APN和第一用户鉴权信息是否相同进行判断。当确定模块602确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,向移动网络发起释放第一PDN连接的请求。当移动网路释放第一PDN连接之后,连接模块603用第二APN和第二用户鉴权信息建立第二PDN连接。获取模块605从移动网络获取所述第二PDN连接的IP地址配置信息,并且通信模块604将第二PDN连接的IP地址配置信息发送 给终端设备。The determining module 601 determines whether the second APN and the second user authentication information acquired during the PPP dialing are the same as the first APN and the first user authentication information used when registering the mobile network. When the determining module 602 determines that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, a request to release the first PDN connection is initiated to the mobile network. After the mobile network releases the first PDN connection, the connection module 603 establishes a second PDN connection with the second APN and the second user authentication information. The obtaining module 605 acquires the IP address configuration information of the second PDN connection from the mobile network, and the communication module 604 transmits the IP address configuration information of the second PDN connection to the terminal device.
当确定模块602确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息相同时,保持原来建立的第一PDN连接。获取模块605从移动网络获取所述第一PDN连接的IP地址配置信息,并且通信模块605将第一PDN连接的IP地址配置信息发送给终端设备。When the determining module 602 determines that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are the same, the originally established first PDN connection is maintained. The obtaining module 605 acquires the IP address configuration information of the first PDN connection from the mobile network, and the communication module 605 sends the IP address configuration information of the first PDN connection to the terminal device.
当确定模块602确定所述第一APN和所述第二APN不同时,连接模块603使用所述第二APN和第二用户鉴权信息与移动网络新建第三PDN连接。获取模块605从移动网络获取所述第三PDN连接的IP地址配置信息,并且通信模块604将第三PDN连接的IP地址配置信息发送给终端设备。When the determining module 602 determines that the first APN is different from the second APN, the connection module 603 uses the second APN and the second user authentication information to establish a third PDN connection with the mobile network. The obtaining module 605 acquires the IP address configuration information of the third PDN connection from the mobile network, and the communication module 604 transmits the IP address configuration information of the third PDN connection to the terminal device.
图7为根据本发明实施例的处理鉴权信息的系统的组成结构示意图。FIG. 7 is a schematic diagram showing the structure of a system for processing authentication information according to an embodiment of the present invention.
如图7所示,根据本发明实施例的处理鉴权信息的系统可以包括终端设备701、移动终端702和移动网络703。As shown in FIG. 7, a system for processing authentication information according to an embodiment of the present invention may include a terminal device 701, a mobile terminal 702, and a mobile network 703.
终端设备701设置为向移动终端702发起PPP拨号请求,将进行PPP拨号时的第二APN和第二用户鉴权信息发送给移动终端,并且向移动终端702请求IP地址配置信息。The terminal device 701 is configured to initiate a PPP dialing request to the mobile terminal 702, transmit the second APN and the second user authentication information when performing PPP dialing to the mobile terminal, and request the mobile terminal 702 for IP address configuration information.
移动终端设置为当进行PPP拨号时,分别对PPP拨号时获取的第二APN和第二用户鉴权信息与注册网络时所用的第一APN和第一用户鉴权信息进行比较,当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,向移动网络703发起释放第一PDN连接的请求,并且当移动网络释放所述第一PDN连接之后,使用所述第二APN和第二用户鉴权信息与移动网络建立第二PDN连接。The mobile terminal is configured to compare the second APN and the second user authentication information acquired during PPP dialing with the first APN and the first user authentication information used when registering the network, when the PPP dialing is performed, when determining that the When the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, a request to release the first PDN connection is initiated to the mobile network 703, and when the mobile network releases the location After the first PDN connection, the second PDN connection is established with the mobile network using the second APN and the second user authentication information.
移动网络703接收移动终端702发起的释放第一PDN连接请求,并根据所述请求,释放与移动终端建立的第一PDN连接,并且使用第二APN和第二用户鉴权信息与移动终端702建立第二PDN连接。The mobile network 703 receives the release of the first PDN connection request initiated by the mobile terminal 702, and releases the first PDN connection established with the mobile terminal according to the request, and establishes with the mobile terminal 702 using the second APN and the second user authentication information. The second PDN connection.
根据本发明实施例,移动终端702还设置为从移动网络703获取所述第二PDN连接的IP地址配置信息,根据所述第二PDN连接的 IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且通过所述IPCP响应将所述第二PDN连接的IP地址配置信息发送给终端设备701。According to an embodiment of the present invention, the mobile terminal 702 is further configured to acquire IP address configuration information of the second PDN connection from the mobile network 703, and construct an IPCP protocol IPCP response of the PPP dialing according to the IP address configuration information of the second PDN connection. And transmitting, by the IPCP response, the IP address configuration information of the second PDN connection to the terminal device 701.
所述移动网络703将所述第二PDN连接的IP地址配置信息发送给移动终端702。The mobile network 703 transmits the IP address configuration information of the second PDN connection to the mobile terminal 702.
根据本发明实施例,移动终端702开机后,使用内置的已有的第一APN和第一用户鉴权信息向移动网络703发起附着请求,与移动网络703建立第一PDN连接。终端设备701向移动终端702发起PPP拨号请求,在与移动终端702进行信息交互过程中,将第二APN和第二用户鉴权信息发送给移动终端702。此外,移动设备701还向移动终端702请求IP地址。移动终端702收到终端设备701发送的IP地址请求之后,获取终端设备701发送的第二APN和第二用户鉴权信息,分别对所述第一APN和第一用户鉴权信息与第二APN和第二用户鉴权信息进行比较。当所述第一APN与第二APN相同且第一用户鉴权信息与第二用户鉴权信息不同时,移动终端702向移动网络703发送释放第一PDN连接的请求。所述移动网络703接受释放第一PDN连接的请求,并且释放与移动终端702的第一PDN连接。然后,所述移动终端702使用第二APN和第二用户鉴权信息与移动网络703建立第二PDN连接。第二PDN连接建立之后,移动终端702向移动网络703请求IP地址,移动网络703将所述第二PDN的IP地址配置发送给移动终端702,移动终端702再将所述IP地址配置通过IP地址响应信息发送给终端设备701。终端设备701获得IP地址、DNS地址等信息,完成地址配置,以完成PPP拨号。According to the embodiment of the present invention, after the mobile terminal 702 is powered on, the mobile terminal 702 initiates an attach request to the mobile network 703 using the built-in existing first APN and the first user authentication information, and establishes a first PDN connection with the mobile network 703. The terminal device 701 initiates a PPP dialing request to the mobile terminal 702, and transmits the second APN and the second user authentication information to the mobile terminal 702 during the information interaction with the mobile terminal 702. In addition, the mobile device 701 also requests an IP address from the mobile terminal 702. After receiving the IP address request sent by the terminal device 701, the mobile terminal 702 acquires the second APN and the second user authentication information sent by the terminal device 701, and respectively the first APN and the first user authentication information and the second APN. Compare with the second user authentication information. When the first APN is the same as the second APN and the first user authentication information is different from the second user authentication information, the mobile terminal 702 sends a request to release the first PDN connection to the mobile network 703. The mobile network 703 accepts the request to release the first PDN connection and releases the first PDN connection with the mobile terminal 702. The mobile terminal 702 then establishes a second PDN connection with the mobile network 703 using the second APN and the second user authentication information. After the second PDN connection is established, the mobile terminal 702 requests an IP address from the mobile network 703, and the mobile network 703 transmits the IP address configuration of the second PDN to the mobile terminal 702, and the mobile terminal 702 configures the IP address again through the IP address. The response information is sent to the terminal device 701. The terminal device 701 obtains information such as an IP address and a DNS address, and completes address configuration to complete PPP dialing.
图8为根据本发明实施例的移动终端的组成结构示意图。FIG. 8 is a schematic structural diagram of a structure of a mobile terminal according to an embodiment of the present invention.
如图8所示,根据本发明实施例的移动终端可以包括通信接口801、存储介质802和处理器803。As shown in FIG. 8, a mobile terminal according to an embodiment of the present invention may include a communication interface 801, a storage medium 802, and a processor 803.
通信接口801设置为与其他设备进行通信。通信接口801可以包括串行接口和并行接口,其包括(但不限于)RS-232、RS-485、RS-422等。 Communication interface 801 is configured to communicate with other devices. Communication interface 801 can include a serial interface and a parallel interface including, but not limited to, RS-232, RS-485, RS-422, and the like.
存储介质802设置为存储有计算机程序。存储介质801可以包 括随机存储介质和只读存储介质,其包括(但不限于)紧凑式闪存(Compact Flash,CF)卡、安全数字记忆(Secure Digital Memory,SD)卡,智能媒体(Smart Media,SM)卡、记忆棒等具有存储数据功能的应用实体。 Storage medium 802 is configured to store a computer program. The storage medium 801 may include a random storage medium and a read-only storage medium including, but not limited to, a compact flash (CF) card, a Secure Digital Memory (SD) card, and a smart media (Smart Media, SM) Cards, memory sticks, etc. have application entities that store data functions.
处理器803分别与通信接口801及存储介质802相连,并且设置为通过运行所述计算机程序至少可执行步骤:当进行PPP拨号时,分别对PPP拨号时获取的第二APN和第二用户鉴权信息与注册移动网络时所用的第一APN和第一用户鉴权信息进行比较;当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,向移动网络发起释放当前的第一PDN连接的请求;并且当移动网络释放所述第一PDN连接之后,使用所述第二APN和第二用户鉴权信息与移动网络建立第二PDN连接。The processor 803 is respectively connected to the communication interface 801 and the storage medium 802, and is configured to perform at least the executable step by running the computer program: when performing PPP dialing, respectively authenticating the second APN and the second user acquired during PPP dialing The information is compared with the first APN and the first user authentication information used when registering the mobile network; when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user When the authentication information is different, a request to release the current first PDN connection is initiated to the mobile network; and after the mobile network releases the first PDN connection, the second APN and the second user authentication information are used to establish with the mobile network The second PDN connection.
根据本发明实施例,通过运行所述计算机程序,处理器803还可以执行:接收终端设备发起的PPP拨号请求,并与所述终端设备进行信息交互;根据与所述终端设备进行信息交互过程中接收的信息,获取所述终端设备传递的第二APN和第二用户鉴权信息;在使用所述第二APN和第二用户鉴权信息与移动网络建立第二PDN连接之后,从移动网络获取所述第二PDN连接的IP地址配置信息;根据所述第二PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且通过所述IPCP响应将所述第二PDN连接的IP地址配置信息发送给终端设备。According to the embodiment of the present invention, the processor 803 may further perform: receiving a PPP dialing request initiated by the terminal device, and performing information interaction with the terminal device; and performing information interaction with the terminal device. Obtaining, acquiring, by the terminal device, the second APN and the second user authentication information; after establishing the second PDN connection with the mobile network by using the second APN and the second user authentication information, acquiring the second PDN connection from the mobile network IP address configuration information of the second PDN connection; constructing an IP control protocol IPCP response of the PPP dialing according to the IP address configuration information of the second PDN connection, and responding to the IP address of the second PDN connection by using the IPCP response The configuration information is sent to the terminal device.
根据本发明实施例,通过运行所述计算机程序,处理器803还可以执行:在确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息相同时,保持与移动网络建立的所述第一PDN连接;从移动网络获取所述第一PDN连接的IP地址配置信息;根据所述第一PDN连接的IP地址配置信息构造PPP拨号的IPCP响应,并且通过所述IPCP响应将所述第一PDN连接的IP地址配置信息发送给终端设备。According to an embodiment of the present invention, by running the computer program, the processor 803 may further perform: determining that the first APN and the second APN are the same and the first user authentication information and the second user profile When the rights information is the same, the first PDN connection established with the mobile network is maintained; the IP address configuration information of the first PDN connection is obtained from the mobile network; and the PPP dialing is constructed according to the IP address configuration information of the first PDN connection. The IPCP responds, and transmits the IP address configuration information of the first PDN connection to the terminal device by using the IPCP response.
根据本发明实施例,通过运行所述计算机程序,处理器803还可以执行:当确定所述第一APN和所述第二APN不同时,使用所述第 二APN和第二用户鉴权信息与移动网络建立第三PDN连接;从移动网络获取所述第三PDN连接的IP地址配置信息;根据所述第三PDN连接的IP地址配置信息构造PPP拨号的IPCP响应,并且通过所述IPCP响应将所述第三PDN连接的IP地址配置信息发送给终端设备。According to an embodiment of the present invention, by running the computer program, the processor 803 may further perform: when determining that the first APN and the second APN are different, using the second APN and the second user authentication information The mobile network establishes a third PDN connection; acquires IP address configuration information of the third PDN connection from the mobile network; constructs an IPCP response of the PPP dialing according to the IP address configuration information of the third PDN connection, and responds by using the IPCP The IP address configuration information of the third PDN connection is sent to the terminal device.
需要说明的是,所述通信接口、存储介质和处理器均具有很多应用实体,以上仅进行举例说明,并不限定本发明的保护范围。It should be noted that the communication interface, the storage medium, and the processor all have many application entities, and the above description is only for illustrative purposes, and does not limit the scope of the present invention.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器运行时执行:当进行PPP拨号时,分别对PPP拨号时获取的第二APN和第二用户鉴权信息与注册移动网络时所用的第一APN和第一用户鉴权信息进行比较;当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,向移动网络发起释放当前第一PDN连接的请求;以及当移动网络释放所述第一PDN连接之后,使用所述第二APN和第二用户鉴权信息与移动网络建立第二PDN连接。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program, and when the computer program is executed by the processor, when the PPP dialing is performed, the second APN obtained when dialing PPP respectively And comparing the first user authentication information with the first APN and the first user authentication information used when registering the mobile network; and determining that the first APN and the second APN are the same and the first user authentication information And requesting to release the current first PDN connection to the mobile network when the second user authentication information is different; and using the second APN and the second user authentication after the mobile network releases the first PDN connection The information establishes a second PDN connection with the mobile network.
根据本发明实施例,所述计算机程序被处理器运行时还可以执行:在分别对PPP拨号时获取的第二APN和第二用户鉴权信息与注册移动网络时所用的第一APN和第一用户鉴权信息进行比较之前,接收终端设备发起的PPP拨号请求,并与所述终端设备进行信息交互;以及根据与所述终端设备进行信息交互过程中接收的信息,获取所述终端设备传递的第二APN和第二用户鉴权信息。According to an embodiment of the present invention, when the computer program is executed by the processor, the second APN and the second user authentication information acquired when dialing PPP respectively and the first APN and the first used when registering the mobile network may be performed. Before the user authentication information is compared, the PPP dialing request initiated by the terminal device is received, and the information is exchanged with the terminal device; and the information received by the terminal device is obtained according to the information received during the information interaction with the terminal device. The second APN and the second user authentication information.
根据本发明实施例,所述计算机程序被处理器运行时还可以执行:在使用所述第二APN和第二用户鉴权信息与移动网络建立第二PDN连接之后,从移动网络获取所述第二PDN连接的IP地址配置信息;以及根据所述第二PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并通过所述IPCP响应将所述第二PDN连接的IP地址配置信息发送给终端设备。According to an embodiment of the present invention, when the computer program is executed by the processor, the computer program may be further configured to: acquire the second PDN connection from the mobile network after establishing the second PDN connection with the mobile network by using the second APN and the second user authentication information IP address configuration information of the second PDN connection; and constructing an IP control protocol IPCP response of the PPP dialing according to the IP address configuration information of the second PDN connection, and configuring the IP address configuration information of the second PDN connection by using the IPCP response Send to the terminal device.
根据本发明实施例,所述计算机程序被处理器运行时还可以执行:当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息相同时,保持与移动网络建立的所述第一PDN连接;从移动网络获取所述第一PDN连接的IP地址配置信息;According to an embodiment of the present invention, when the computer program is executed by the processor, the method may further be performed: when determining that the first APN and the second APN are the same and the first user authentication information and the second user authentication When the information is the same, the first PDN connection established with the mobile network is maintained; and the IP address configuration information of the first PDN connection is obtained from the mobile network;
以及根据所述第一PDN连接的IP地址配置信息构造PPP拨号的IPCP响应,并通过所述IPCP响应将所述第一PDN连接的IP地址配置信息发送给终端设备。And configuring an IPCP response of the PPP dialing according to the IP address configuration information of the first PDN connection, and sending the IP address configuration information of the first PDN connection to the terminal device by using the IPCP response.
根据本发明实施例,所述计算机程序被处理器运行时还可以执行:当确定所述第一APN和所述第二APN不同时,使用所述第二APN和第二用户鉴权信息与移动网络建立第三PDN连接;从移动网络获取所述第三PDN连接的IP地址配置信息;以及根据所述第三PDN连接的IP地址配置信息构造PPP拨号的IPCP响应,并通过所述IPCP响应将所述第三PDN连接的IP地址配置信息发送给终端设备。According to an embodiment of the present invention, when the computer program is executed by the processor, the method further comprises: when determining that the first APN and the second APN are different, using the second APN and the second user authentication information and moving Establishing a third PDN connection by the network; acquiring IP address configuration information of the third PDN connection from the mobile network; and constructing an IPCP response of the PPP dialing according to the IP address configuration information of the third PDN connection, and responding by using the IPCP The IP address configuration information of the third PDN connection is sent to the terminal device.
图6中所示的判断模块601、确定模块602和连接模块603和通信模块604均可由位于移动终端中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。The determining module 601, the determining module 602, and the connecting module 603 and the communication module 604 shown in FIG. 6 may each be a Central Processing Unit (CPU), a Micro Processor Unit (MPU) located in the mobile terminal, Digital signal processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
根据本发明实施例所提供的鉴权信息处理的方法、移动终端和系统,在进行PPP拨号时,如果判断在PPP拨号时获取的第二APN和注册移动网络时的第一APN相同,但是第二用户鉴权信息和第一用户鉴权信息不同时,移动终端会请求释放第一PDN连接,并使用正确的用户鉴权信息重新建立PDN连接,即,移动终端使用第二APN和第二用户鉴权信息与移动网络建立第二PDN连接。从而,移动终端使用正确的用户名、密码、鉴权方式等用户鉴权信息建立PDN连接,即使是在对用户鉴权参数检查比较严格的情况下,也可以保证用户正常上网,提高了PPP拨号的准确性和成功率。The method, the mobile terminal, and the system for authenticating information processing provided by the embodiment of the present invention, when performing PPP dialing, if it is determined that the second APN obtained when dialing PPP is the same as the first APN when registering the mobile network, but When the two user authentication information and the first user authentication information are different, the mobile terminal requests to release the first PDN connection, and re-establishes the PDN connection by using the correct user authentication information, that is, the mobile terminal uses the second APN and the second user. The authentication information establishes a second PDN connection with the mobile network. Therefore, the mobile terminal establishes a PDN connection by using user authentication information such as a correct user name, password, and authentication mode. Even when the user authentication parameter check is strict, the user can ensure normal Internet access and improve PPP dialing. Accuracy and success rate.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims (14)

  1. 一种鉴权信息的处理方法,包括:A method for processing authentication information, comprising:
    当进行点对点协议PPP拨号时,移动终端分别对PPP拨号时获取的第二接入点名称APN和第二用户鉴权信息与该移动终端在注册移动网络时所用的第一APN和第一用户鉴权信息进行比较;The second access point name APN and the second user authentication information obtained by the mobile terminal when dialing the PPP, and the first APN and the first user profile used by the mobile terminal when registering the mobile network, respectively. The right information is compared;
    当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,该移动终端向移动网络发起释放第一分组数据网PDN连接的请求;以及When it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, the mobile terminal initiates release of the first packet data network PDN connection to the mobile network. Request; and
    当移动网络释放所述第一PDN连接之后,该移动终端使用所述第二APN和所述第二用户鉴权信息与移动网络建立第二PDN连接。After the mobile network releases the first PDN connection, the mobile terminal establishes a second PDN connection with the mobile network using the second APN and the second user authentication information.
  2. 根据权利要求1所述的方法,其中,在移动终端分别对PPP拨号时获取的第二APN和第二用户鉴权信息与该移动终端在注册移动网络时所用的第一APN和第一用户鉴权信息进行比较的步骤之前,所述方法还包括:The method according to claim 1, wherein the second APN and the second user authentication information acquired when the mobile terminal respectively dials the PPP and the first APN and the first user profile used by the mobile terminal when registering the mobile network Before the step of comparing the rights information, the method further includes:
    移动终端接收终端设备发起的PPP拨号请求,并与所述终端设备进行信息交互;以及Receiving, by the mobile terminal, a PPP dialing request initiated by the terminal device, and performing information interaction with the terminal device;
    移动终端根据与所述终端设备进行信息交互过程中接收的信息,获取所述终端设备传递的第二APN和第二用户鉴权信息。The mobile terminal acquires the second APN and the second user authentication information delivered by the terminal device according to the information received during the information exchange with the terminal device.
  3. 根据权利要求1所述的方法,其中,在移动终端使用所述第二APN和第二用户鉴权信息与移动网络建立第二PDN连接的步骤之后,所述方法还包括:The method of claim 1, wherein after the step of the mobile terminal establishing a second PDN connection with the mobile network using the second APN and the second user authentication information, the method further comprises:
    移动终端从移动网络获取所述第二PDN连接的网际互联协议IP地址配置信息;以及Obtaining, by the mobile terminal, the Internet Protocol IP address configuration information of the second PDN connection from the mobile network;
    所述移动终端根据所述第二PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且所述移动终端通过所述IPCP响应将所述第二PDN连接的IP地址配置信息发送给所述终端设备。The mobile terminal constructs an IP control protocol IPCP response of the PPP dialing according to the IP address configuration information of the second PDN connection, and the mobile terminal sends the IP address configuration information of the second PDN connection to the IPCP response to the mobile terminal The terminal device.
  4. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    当确定所述第一APN和所述第二APN相同,且所述第一用户鉴权信息和所述第二用户鉴权信息相同时,移动终端保持与移动网络建立的所述第一PDN连接;When it is determined that the first APN and the second APN are the same, and the first user authentication information and the second user authentication information are the same, the mobile terminal maintains the first PDN connection established with the mobile network ;
    所述移动终端从移动网络获取所述第一PDN连接的网际互联协议IP地址配置信息;以及Obtaining, by the mobile terminal, the Internet Protocol IP address configuration information of the first PDN connection from the mobile network;
    所述移动终端根据所述第一PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且所述移动终端通过所述IPCP响应将所述第一PDN连接的IP地址配置信息发送给所述终端设备。The mobile terminal constructs an IP control protocol IPCP response of the PPP dialing according to the IP address configuration information of the first PDN connection, and the mobile terminal sends the IP address configuration information of the first PDN connection to the IPCP response to the mobile terminal The terminal device.
  5. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    当确定所述第一APN和所述第二APN不同时,所述移动终端使用所述第二APN和所述第二用户鉴权信息,与移动网络建立第三PDN连接;When it is determined that the first APN is different from the second APN, the mobile terminal establishes a third PDN connection with the mobile network by using the second APN and the second user authentication information;
    所述移动终端从移动网络获取所述第三PDN连接的网际互联协议IP地址配置信息;以及Obtaining, by the mobile terminal, the Internet Protocol IP address configuration information of the third PDN connection from the mobile network;
    所述移动终端根据所述第三PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且所述移动终端通过所述IPCP响应将所述第三PDN连接的IP地址配置信息发送给所述终端设备。The mobile terminal constructs an IP control protocol IPCP response of the PPP dialing according to the IP address configuration information of the third PDN connection, and the mobile terminal sends the IP address configuration information of the third PDN connection to the IPCP response by the mobile terminal The terminal device.
  6. 一种处理鉴权信息的移动终端,包括判断模块、确定模块和连接模块,其中,A mobile terminal for processing authentication information, comprising a determining module, a determining module and a connecting module, wherein
    所述判断模块设置为当进行点对点协议PPP拨号时,分别对PPP拨号时获取的第二接入点名称APN和第二用户鉴权信息与该移动终端在注册移动网络时所用的第一APN和第一用户鉴权信息进行比较;The determining module is configured to: when performing point-to-point protocol PPP dialing, respectively, the second access point name APN and the second user authentication information acquired during PPP dialing and the first APN used by the mobile terminal when registering the mobile network The first user authentication information is compared;
    所述确定模块设置为当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,向移动网络发起释放第一分组数据网PDN连接的请求;并且The determining module is configured to initiate release of the first packet data to the mobile network when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different a request for a network PDN connection; and
    所述连接模块设置为当移动网络释放所述第一PDN连接之后,使用所述第二APN和所述第二用户鉴权信息与移动网络建立第二PDN 连接。The connection module is configured to establish a second PDN connection with the mobile network using the second APN and the second user authentication information after the mobile network releases the first PDN connection.
  7. 根据权利要求6所述的移动终端,还包括通信模块和获取模块,其中,The mobile terminal of claim 6, further comprising a communication module and an acquisition module, wherein
    所述通信模块设置为接收终端设备发起的PPP拨号请求,并与所述终端设备进行信息交互;并且The communication module is configured to receive a PPP dialing request initiated by the terminal device, and perform information interaction with the terminal device;
    所述获取模块设置为根据与所述终端设备进行信息交互过程中接收的信息,获取所述终端设备传递的第二APN和第二用户鉴权信息。The acquiring module is configured to acquire the second APN and the second user authentication information delivered by the terminal device according to the information received during the information interaction with the terminal device.
  8. 根据权利要求7所述的移动终端,其中,所述获取模块还设置为从移动网络获取所述第二PDN连接的网际互联协议IP地址配置信息;并且The mobile terminal of claim 7, wherein the obtaining module is further configured to acquire internet protocol IP address configuration information of the second PDN connection from the mobile network;
    所述通信模块还设置为根据所述第二PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且通过所述IPCP响应将所述第二PDN连接的IP地址配置信息发送给所述终端设备。The communication module is further configured to construct an IP control protocol IPCP response of the PPP dialing according to the IP address configuration information of the second PDN connection, and send, by using the IPCP response, the IP address configuration information of the second PDN connection to the Said terminal equipment.
  9. 根据权利要求7所述的移动终端,其中,所述确定模块还设置为当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息相同时,保持与移动网络建立的所述第一PDN连接;The mobile terminal of claim 7, wherein the determining module is further configured to: when determining that the first APN and the second APN are the same and the first user authentication information and the second user authentication When the information is the same, the first PDN connection established with the mobile network is maintained;
    所述获取模块还设置为从移动网络获取所述第一PDN连接的网际互联协议IP地址配置信息;并且The obtaining module is further configured to acquire, from the mobile network, the Internet Protocol IP address configuration information of the first PDN connection; and
    所述通信模块还设置为根据所述第一PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且通过所述IPCP响应将所述第一PDN连接的IP地址配置信息发送给所述终端设备。The communication module is further configured to construct an IP control protocol IPCP response of the PPP dialing according to the IP address configuration information of the first PDN connection, and send, by using the IPCP response, the IP address configuration information of the first PDN connection to the Said terminal equipment.
  10. 根据权利要求7所述的移动终端,其中,当所述确定模块确定所述第一APN和所述第二APN不同时,所述连接模块还设置为使用所述第二APN和所述第二用户鉴权信息,与移动网络建立第三PDN连接;The mobile terminal according to claim 7, wherein when the determining module determines that the first APN and the second APN are different, the connection module is further configured to use the second APN and the second User authentication information, establishing a third PDN connection with the mobile network;
    所述获取模块还设置为从移动网络获取所述第三PDN连接的网际互联协议IP地址配置信息;并且The obtaining module is further configured to acquire, from the mobile network, the Internet Protocol IP address configuration information of the third PDN connection; and
    所述通信模块还设置为根据所述第三PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且通过所述IPCP响应将所述第三PDN连接的IP地址配置信息发送给所述终端设备。The communication module is further configured to construct an IP control protocol IPCP response of the PPP dialing according to the IP address configuration information of the third PDN connection, and send, by using the IPCP response, the IP address configuration information of the third PDN connection to the Said terminal equipment.
  11. 一种处理鉴权信息的系统,包括终端设备、移动终端和移动网络,其中,A system for processing authentication information, including a terminal device, a mobile terminal, and a mobile network, where
    所述终端设备设置为向移动终端发起点对点协议PPP拨号请求,将进行PPP拨号时的第二接入点名称APN和第二用户鉴权信息发送给移动终端,并且向移动终端请求网际互联协议IP地址配置信息;The terminal device is configured to initiate a point-to-point protocol PPP dialing request to the mobile terminal, send the second access point name APN and the second user authentication information when performing PPP dialing to the mobile terminal, and request the internet terminal protocol IP from the mobile terminal. Address configuration information;
    所述移动终端设置为当进行PPP拨号时,分别对PPP拨号时获取的第二APN和第二用户鉴权信息与该移动终端在注册移动网络时所用的第一APN和第一用户鉴权信息进行比较,当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,该移动终端向移动网络发起释放第一分组数据网PDN连接的请求,并且当移动网络释放所述第一PDN连接之后,该移动终端使用所述第二APN和所述第二用户鉴权信息与移动网络建立第二PDN连接;并且The mobile terminal is configured to: when performing PPP dialing, respectively, the second APN and the second user authentication information acquired during PPP dialing and the first APN and the first user authentication information used by the mobile terminal when registering the mobile network Comparing, when it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, the mobile terminal initiates release of the first packet data to the mobile network. a request for a network PDN connection, and after the mobile network releases the first PDN connection, the mobile terminal establishes a second PDN connection with the mobile network using the second APN and the second user authentication information;
    所述移动网络接收移动终端发起的释放第一PDN连接的请求,并根据所述请求释放与移动终端建立的第一PDN连接,并且使用所述第二APN和所述第二用户鉴权信息与移动终端建立第二PDN连接。Receiving, by the mobile network, a request initiated by the mobile terminal to release the first PDN connection, and releasing a first PDN connection established with the mobile terminal according to the request, and using the second APN and the second user authentication information The mobile terminal establishes a second PDN connection.
  12. 根据权利要求10所述的系统,其中,所述移动终端还设置为从移动网络获取所述第二PDN连接的IP地址配置信息,根据所述第二PDN连接的IP地址配置信息构造PPP拨号的IP控制协议IPCP响应,并且通过所述IPCP响应将所述第二PDN连接的IP地址配置信息发送给所述终端设备;并且The system according to claim 10, wherein said mobile terminal is further configured to acquire IP address configuration information of said second PDN connection from a mobile network, and construct PPP dialing according to IP address configuration information of said second PDN connection The IP control protocol IPCP responds, and transmits the IP address configuration information of the second PDN connection to the terminal device by the IPCP response;
    所述移动网络将所述第二PDN连接的IP地址配置信息发送给所述移动终端。The mobile network sends the IP address configuration information of the second PDN connection to the mobile terminal.
  13. 一种移动终端,包括:A mobile terminal includes:
    通信接口,设置为与其他设备进行通信;Communication interface, set to communicate with other devices;
    存储介质,设置为存储有计算机程序;a storage medium, configured to store a computer program;
    处理器,其分别与所述通信接口及所述存储介质相连,并且设置为通过运行所述计算机程序至少执行如下步骤:a processor coupled to the communication interface and the storage medium, respectively, and configured to perform at least the following steps by running the computer program:
    当进行点对点协议PPP拨号时,分别对PPP拨号时获取的第二接入点名称APN和第二用户鉴权信息与该移动终端在注册移动网络时所用的第一APN和第一用户鉴权信息进行比较;The second access point name APN and the second user authentication information acquired when the PPP is dialed, and the first APN and the first user authentication information used by the mobile terminal when registering the mobile network, when the PPP dialing is performed by the point-to-point protocol. Compare;
    当确定所述第一APN和所述第二APN相同且所述第一用户鉴权信息和所述第二用户鉴权信息不同时,向移动网络发起释放第一分组数据网PDN连接的请求;以及When it is determined that the first APN and the second APN are the same and the first user authentication information and the second user authentication information are different, requesting to release the first packet data network PDN connection to the mobile network is initiated; as well as
    当移动网络释放所述第一PDN连接之后,使用所述第二APN和所述第二用户鉴权信息与移动网络建立第二PDN连接。After the mobile network releases the first PDN connection, the second PDN connection is established with the mobile network using the second APN and the second user authentication information.
  14. 一种计算机存储介质,其存储有计算机程序,所述计算机程序被处理器运行时执行根据权利要求1至5任一项所述的方法。A computer storage medium storing a computer program that, when executed by a processor, performs the method of any one of claims 1 to 5.
PCT/CN2018/079448 2017-04-24 2018-03-19 Method for processing authentication information, terminal, and system WO2018196503A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710272744.2 2017-04-24
CN201710272744.2A CN108738018B (en) 2017-04-24 2017-04-24 Method, terminal and system for processing authentication information

Publications (1)

Publication Number Publication Date
WO2018196503A1 true WO2018196503A1 (en) 2018-11-01

Family

ID=63917976

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/079448 WO2018196503A1 (en) 2017-04-24 2018-03-19 Method for processing authentication information, terminal, and system

Country Status (2)

Country Link
CN (1) CN108738018B (en)
WO (1) WO2018196503A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640651A (en) * 2020-11-30 2022-06-17 中国电信股份有限公司 Communication method, communication system, LNS device, user terminal device, and storage medium
CN116489650A (en) * 2023-06-25 2023-07-25 成都川美新技术股份有限公司 Method and system for obtaining terminal identity information by bypassing normal mechanism of certain network

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933770B (en) * 2019-11-27 2021-09-28 惠州Tcl移动通信有限公司 Connection request sending method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061700A (en) * 2004-11-19 2007-10-24 精工电子有限公司 Communication connection supporting method and system, and program of communication connection supporting method
CN101600224A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 Wireless data card is supported the implementation method and the wireless data card of a plurality of PDP Contexts
CN102026152A (en) * 2010-11-25 2011-04-20 中兴通讯股份有限公司 Mobile terminal as well as system and method for realizing access point name setting
WO2015032013A1 (en) * 2013-09-06 2015-03-12 Intel IP Corporation Network connection or disconnection for mobile devices

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8605662B2 (en) * 2007-07-20 2013-12-10 Cisco Technology, Inc. Intelligent real access point name (APN) selection using virtual APNS
US8838111B2 (en) * 2010-09-09 2014-09-16 Panasonic Intellectual Property Corporation Of America Communication system, communication method, mobile terminal, and base station device
CN103024876B (en) * 2011-09-27 2016-02-03 华为技术有限公司 Connection control method, gateway and system
CN105791235B (en) * 2014-12-23 2020-01-21 华为技术有限公司 Configuration information downloading method and equipment
CN106559783B (en) * 2015-09-29 2020-04-14 华为技术有限公司 Authentication method, device and system for WIFI network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061700A (en) * 2004-11-19 2007-10-24 精工电子有限公司 Communication connection supporting method and system, and program of communication connection supporting method
CN101600224A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 Wireless data card is supported the implementation method and the wireless data card of a plurality of PDP Contexts
CN102026152A (en) * 2010-11-25 2011-04-20 中兴通讯股份有限公司 Mobile terminal as well as system and method for realizing access point name setting
WO2015032013A1 (en) * 2013-09-06 2015-03-12 Intel IP Corporation Network connection or disconnection for mobile devices

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VODAFONE: "NB-IoT inter-RAT mobility", SA WG2 MEETING #116BIS S2-165227, 2 September 2016 (2016-09-02), XP051169260 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640651A (en) * 2020-11-30 2022-06-17 中国电信股份有限公司 Communication method, communication system, LNS device, user terminal device, and storage medium
CN116489650A (en) * 2023-06-25 2023-07-25 成都川美新技术股份有限公司 Method and system for obtaining terminal identity information by bypassing normal mechanism of certain network
CN116489650B (en) * 2023-06-25 2023-10-13 成都川美新技术股份有限公司 Method and system for obtaining terminal identity information by bypassing normal mechanism of certain network

Also Published As

Publication number Publication date
CN108738018B (en) 2022-08-19
CN108738018A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN103826323A (en) Wireless network connection method, terminal and mobile terminal
WO2015131831A1 (en) Communication method and device
WO2019011203A1 (en) Device access method, device and system
WO2017201756A1 (en) Method, related device, and system for downloading profile
BR112013006256B1 (en) APPARATUS, METHOD AND COMPUTER READIBLE MEDIUM NON-TRANSITORY
WO2018196503A1 (en) Method for processing authentication information, terminal, and system
CN108605277B (en) Method and device for establishing wireless local area network connection
WO2015018327A1 (en) Method and apparatus for interconnection between terminal device and gateway device
WO2018196587A1 (en) User authentication method and apparatus in converged network
WO2016179966A1 (en) Method for realizing network access, terminal and computer storage medium
EP3651040A1 (en) Apparatus and method for remotely managing devices, and program therefor
WO2019076308A1 (en) Method, apparatus and device for determining state of terminal device
WO2018196463A1 (en) Method and apparatus for network access, storage medium, and processor
JP2013255219A (en) Method and apparatus for accessing internet
WO2022052798A1 (en) Qos control method and device, and processor-readable storage medium
WO2018040621A1 (en) Hotspot sharing method, terminal, system and computer storage medium
WO2015139401A1 (en) Establishment method and system for wireless network, and wireless routing device
TWI539775B (en) Communication system and method
WO2017185339A1 (en) Wireless connection method, apparatus and system
WO2017132954A1 (en) Data transmission method, apparatus, and device
WO2017152419A1 (en) Network attachment method and apparatus
JP4856700B2 (en) Establishing a wireless universal serial bus (WUSB) connection via a trusted medium
US20190200226A1 (en) Method of authenticating access to a wireless communication network and corresponding apparatus
WO2016078267A1 (en) Terminal realization method and device, and terminal and storage medium
WO2016008250A1 (en) Method, device, system and computer storage medium for realizing dial-up internet access

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18792302

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18792302

Country of ref document: EP

Kind code of ref document: A1