WO2015043520A1 - Method and terminal for activating pdn - Google Patents

Method and terminal for activating pdn Download PDF

Info

Publication number
WO2015043520A1
WO2015043520A1 PCT/CN2014/087673 CN2014087673W WO2015043520A1 WO 2015043520 A1 WO2015043520 A1 WO 2015043520A1 CN 2014087673 W CN2014087673 W CN 2014087673W WO 2015043520 A1 WO2015043520 A1 WO 2015043520A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
pdn
terminal
apn
activate
Prior art date
Application number
PCT/CN2014/087673
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 WO2015043520A1 publication Critical patent/WO2015043520A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and a terminal for activating a Packet Data Network (PDN).
  • PDN Packet Data Network
  • LTE Long Term Evolution
  • CS circuit switch
  • EPS Evolved Packet System
  • An Access Point Name is a connection parameter that must be configured when a terminal accesses a network. It determines which access method the terminal accesses to the network.
  • An APN corresponds to a Packet Data Network (PDN), and different APNs are required to access different PDNs.
  • PDN Packet Data Network
  • the terminal After the terminal completes registration in the network, if it needs to use data services, it also activates the corresponding PDN.
  • the Multimedia Messaging Service MMS or MMS
  • MMS Multimedia Messaging Service
  • the terminal cannot activate the PDN, the data service cannot be established and the network cannot be accessed. For example, referring to FIG. 1, if the terminal uses the APN of the 3G network to attempt to activate the PDN in the LTE network, the activation of the PDN may fail, resulting in failure to access the network normally.
  • the embodiment of the present invention provides a method and a terminal for activating a PDN, so that in a multi-network environment, an available APN can be activated and a PDN establishes a data service, so that the user can access the network normally.
  • the defect that the APN does not correspond to the network and cannot access the network in the prior art is overcome.
  • a method for a terminal to activate a PDN including:
  • the terminal sends a request message for activating the PDN to the second network, where the request message includes the APN, and the second network is Any of the available networks outside the network;
  • the terminal receives the response message sent by the second network, determining to activate the PDN successfully, camping on the second network, where the response message includes a return value for indicating that the PDN is activated successfully.
  • the method before the terminal selects to send, to the second network, a request message for activating the PDN, the method further includes:
  • the terminal searches for available networks other than the first network.
  • the terminal is determined to be activated in the first network according to an error return value in the authentication message
  • the reason for the failure of the PDN includes:
  • the terminal determines in the first network The reason for the failure to activate the PDN is an APN error.
  • the second network is The highest level network of available networks outside the first network.
  • the method further includes:
  • the terminal determines that the activation of the PDN in the second network fails and the reason for the failure is an APN error, the terminal sends the activation to any network other than the first network and the second network.
  • PDN request message
  • the terminal fails to activate the PDN after the available network fails, it restores to search for all available networks.
  • a terminal for activating a PDN including:
  • a receiving unit configured to receive an authentication message sent by the first network, where the authentication message includes an error return value for indicating a reason for activating the PDN failure;
  • a determining unit configured to determine, according to the error return value in the authentication message, a reason for failing to activate the PDN in the first network
  • a sending unit configured to send, after the determining unit determines that the reason for the failure of the PDN activation is an APN error, send a request message for activating the PDN to the second network, where the request message includes the APN, where
  • the second network is any one of available networks other than the first network;
  • the receiving unit is further configured to receive a response message sent by the second network, where the response message includes a return value for indicating success of activating the PDN;
  • the determining unit is further configured to determine, according to the response message sent by the second network that is received by the receiving unit, that the activation of the PDN is successful;
  • a searching unit configured to reside in the second network after the determining unit determines that the PDN is successfully activated.
  • the searching unit is further configured to: before the sending unit sends a request message for activating the PDN to the second network, searching for An available network outside the first network.
  • the determining unit is specifically configured to:
  • the error return value in the authentication message is: the service is not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or the unavailable APN (MISSING_UNKNOWN_APN); or the user authentication failure (USER_AUTHENTICATION), determining to activate the location in the first network
  • the reason for the failure of the PDN is the APN error.
  • the second network is The highest level of the network in the network outside the first network.
  • the sending The unit is further configured to: in the determining unit, determine that the terminal fails to activate the PDN in the second network, and the reason for the failure is an APN error, except for the first network and the second network. Sending a request message for activating the PDN in any one of the available networks;
  • the searching unit is further configured to: after the determining unit determines that the terminal fails to activate the PDN after all available networks fail, revert to searching for all available networks.
  • An embodiment of the present invention provides a method and a terminal for activating a PDN. After determining that the reason for the failure of the terminal to activate the PDN in the first network is an APN error, the original APN is used to activate the PDN in the second network.
  • an available APN can activate the PDN to establish a data service, so that the user can access the network normally.
  • the PDN cannot be activated, and the network cannot be accessed.
  • FIG. 1 is a schematic diagram of a method for activating a PDN in the prior art
  • FIG. 2 is a schematic diagram of a method for activating a PDN according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another method for activating a PDN according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of another method for activating a PDN according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of an apparatus for activating a PDN terminal according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of another apparatus for activating a PDN terminal according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for a terminal to activate a PDN.
  • the method may include:
  • Step 201 The terminal receives an authentication message sent by the first network, where the authentication message includes an error return value for indicating a failure to activate the PDN.
  • the authentication message may be a message specified by the communication protocol.
  • the Activate PDP context reject message specified in the 3GPP TS 24.008 protocol is generally sent by the network in the form of signaling.
  • Step 202 The terminal determines, according to the error return value in the authentication message, a reason for failing to activate the PDN in the first network.
  • Step 203 If the reason for the failure to activate the PDN is an APN error, the terminal sends a request message for activating the PDN to the second network, where the request message includes an APN, and the second network is an available network other than the first network. Any of them;
  • the service is not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED), which means that the data service corresponding to the APN is not scheduled on the network side;
  • the user authentication failure means that the user authentication is unsuccessful when the APN activates the PDN.
  • the terminal determines that the reason for the failure to activate the PDN in the first network is an APN error.
  • the second network is the highest level network in the network other than the first network.
  • the priority of the available network may be determined by the terminal according to the network parameters, for example, the data rate of different networks may be used to determine the priority level, or may be determined by other parameters of the network, and the present invention does not perform this. Specifically limited.
  • Step 204 If the terminal receives the response message sent by the second network, determine that the PDN is successfully activated, and resides in the second network, where the response message includes a return value for indicating that the PDN is activated successfully.
  • the return value indicating that the activation of the PDN is successful may be Accept.
  • the method may further include: the terminal searching for an available network other than the first network.
  • the method may further include:
  • the terminal determines that the activation of the PDN in the second network fails and the reason for the failure is an APN error, the terminal sends a request to activate the PDN to any one of the available networks except the first network and the second network. Message
  • the terminal fails to activate the PDN after all available networks fail, it reverts to searching for all available networks.
  • the method in this embodiment of the present invention can be applied to a scenario where two or more available networks exist.
  • the search resumes searching for all available networks (ie, searching for the first network and the second network);
  • the network, the second network, the third network, and the fourth network may select to activate the PDN to the second network after the terminal fails to activate the PDN in the first network, and if the terminal fails to activate the PDN in the second network, the terminal may select the third The network activates the PDN. Similarly, after the third network fails to activate the PDN, the terminal may choose to activate the PDN to the fourth network. If the terminal activates the PDN in the first network, the second network, the third network, and the fourth network, the terminal fails. After that, it is restored to search all available networks (ie, search for the first network and the second network, the third network, the fourth network).
  • An embodiment of the present invention provides a method for activating a PDN. After determining that the reason for the terminal to activate the PDN in the first network is an APN error, the original APN is used to activate the PDN in the second network. In a multi-network environment, an available APN can activate the PDN to establish a data service, so that the user can access the Internet normally.
  • the invention overcomes the defect that the PDN cannot be activated when the APN and the PDN do not correspond to the prior art, and thus cannot connect to the network.
  • the scenario 1 is used as an example to describe the method for activating the PDN.
  • the scenario is that the LTE network is deployed by the operator. Therefore, the APN1 of the LTE network is newly provided for the LTE network, and the user activates the PDN in the LTE network.
  • the A operator maintains the 3G network at the same time, and has the APN2 of the corresponding 3G network.
  • User B is the original customer of the A operator, and newly purchased a mobile phone supporting the LTE network.
  • the mobile phone supporting the LTE network receives the 3G network for providing.
  • the APN2 and the mobile phone use the APN2 of the 3G network to access the network, and the activation of the PDN fails, and the data service cannot be used.
  • User C is also the original customer of the A operator.
  • a new mobile phone supporting the LTE network is purchased. If the mobile phone supporting the LTE network receives the APN2 of the 3G network provided by the user, the mobile phone uses the APN2 of the 3G network to access the network. Only the 3G network can access the network normally, but when he walks into a multi-network environment (LTE network, 3G network coexistence), he suddenly cannot access the network.
  • LTE network, 3G network coexistence LTE network, 3G network coexistence
  • the embodiment of the present invention is to solve the problem that the terminal cannot access the network by using the present invention in the scenario 1, as shown in FIG. 3, which may specifically include:
  • Step 301 The mobile phone searches for all available networks
  • the available networks searched by the mobile phone at this time are an LTE network and a 3G network.
  • Step 302 The mobile phone receives the APN2 provided by the user, and activates the PDN in the LTE network by using the APN2.
  • the mobile phone can first select the network with the highest priority according to the priority of the network.
  • the priority of the available network can be determined by the mobile phone according to the network parameters.
  • the data rate of different networks can be used to determine the priority level. It can also be determined by other parameters of the network.
  • only the priority of the network is set according to the data rate, and the first-level network is an LTE network, and the second-level network is a 3G network.
  • the terminal first activates the PDN to the first-level network LTE network, and the terminal activates the APN used by the PDN to the LTE network to provide the user with the APN2.
  • Step 303 The mobile phone receives an authentication message sent by the LTE network, where the authentication message includes an error return value used to indicate a cause of failure of activating the PDN.
  • APN2 is the APN of the 3G network and does not correspond to the PDN of the LTE network currently registered by the mobile phone, the PDN cannot be activated on the LTE network, and the LTE network sends an authentication message including the error return value to the mobile phone, and the mobile phone returns a value according to the error in the authentication message.
  • the reason for determining the failure to activate the PDN is an APN error.
  • Step 304 The mobile phone determines, according to the error return value in the authentication message, a reason for failing to activate the PDN in the LTE network.
  • the mobile phone determines the reason for the failure to activate the PDN in the LTE network. Wrong for APN.
  • Step 305 The mobile phone searches for a network other than the LTE network.
  • the available network searched by the mobile phone has only a 3G network
  • Step 306 The mobile phone uses APN2 to activate the PDN in the 3G network.
  • Step 307 The mobile phone receives a response message sent by the 3G network.
  • the response message includes a return value indicating that the activation of the PDN is successful, such as ACCEPT. Because APN2 and the PDN of the 3G network correspond to each other, APN2 can activate the PDN of the 3G network, and the 3G network sends a response message to the mobile phone;
  • the mobile phone receives the response message sent by the 3G network, and determines that the activation of the PDN is successful.
  • Step 308 The mobile phone resides on the current 3G network.
  • the mobile phone resides on the current 3G network, and does not switch to the LTE network, and can access the network normally.
  • An embodiment of the present invention provides a method for activating a PDN. After determining that the reason for the failure of the mobile phone to activate the PDN in the LTE network is an APN error, the original APN is used to activate the PDN in the 3G network.
  • the APN that implements the 3G network can activate the PDN in the LTE network and the 3G network coexistence environment, so that the mobile phone can access the network normally.
  • scenario 2 is used as an example to describe a method for activating a PDN.
  • the scenario is that the D operator has deployed an LTE network, so that an APN1 of the LTE network is newly provided for the LTE network, and the user activates the PDN in the LTE network.
  • the D operator maintains both the 3G network and the second generation mobile communication (2G) network, and has the APN2 of the corresponding 3G network PDN and the APN3 of the 2G network PDN.
  • User E is the original customer of the D operator.
  • a new mobile phone supporting the LTE network is purchased. If the mobile phone supporting the LTE network receives the APN3 of the 2G network provided by the user, the mobile phone uses the APN3 of the 2G network to access the network.
  • the PDN cannot be activated and the network cannot be accessed.
  • User F is also the original customer of D operator. Newly bought a mobile phone supporting LTE network. If the mobile phone supporting LTE network receives APN3 of 2G network provided by user, the mobile phone uses APN3 of 2G network to access the network. In the 2G network environment, the mobile phone can access the network normally, but when he goes to a multi-network environment (LTE network, 3G network, 2G network coexistence), he suddenly cannot access the network.
  • LTE network 3G network, 2G network coexistence
  • This embodiment describes the problem that the terminal cannot access the network by using the present invention in the scenario 2, and the method includes:
  • Step 401 Searching for all available networks in the mobile search environment
  • the network searched at this time has an LTE network, a 3G network, and a 2G network.
  • Step 402 The mobile phone receives the APN3 provided by the user, and activates the PDN in the LTE network by using the APN3.
  • the mobile phone can first select the network with the highest priority according to the priority of the network.
  • the priority of the available network can be determined by the mobile phone according to the network parameters.
  • the data rate of different networks can be used to determine the priority level. It can also be determined by other parameters of the network.
  • only the priority of the network is set according to the data rate, and the first-level network is an LTE network, the second-level network is a 3G network, and the third-level network is a 2G network. .
  • the terminal first activates the PDN to the first-level network LTE network, and the terminal activates the APN used by the PDN for the user to the LTE network.
  • Step 403 The mobile phone receives an authentication message sent by the LTE network, where the authentication message includes an error return value used to indicate a cause of failure of activating the PDN.
  • APN3 is the APN of the 2G network and does not correspond to the PDN of the LTE network currently registered by the mobile phone, the PDN cannot be activated on the LTE network, and the LTE network sends an authentication message including the error return value to the mobile phone, and the mobile phone returns a value according to the error in the authentication message.
  • the reason for determining the failure to activate the PDN is an APN error.
  • Step 404 The mobile phone determines, according to the error return value in the authentication message, a reason for failing to activate the PDN in the LTE network.
  • the mobile phone determines the reason for the failure to activate the PDN in the LTE network. Wrong for APN.
  • Step 405 The mobile phone searches for a network other than the LTE network.
  • the network searched at this time has a 3G network and a 2G network;
  • Step 406 The mobile phone uses APN3 to activate the PDN in the 3G network.
  • the mobile phone selects to activate the PDN to the network with the highest priority except the LTE network, that is, the mobile phone uses the APN3 to activate the PDN in the 3G network.
  • Step 407 The mobile phone receives an authentication message sent by the 3G network, where the authentication message includes an error return value used to indicate a reason for activating the PDN failure.
  • APN3 is the APN of the 2G network
  • the PDN of the 3G network currently registered with the mobile phone is not Correspondingly, the PDN cannot be activated on the 3G network.
  • the 3G network sends an authentication message including the error return value to the mobile phone.
  • the mobile phone determines that the reason for the failure to activate the PDN is the APN error according to the error return value in the authentication message.
  • Step 408 The mobile phone determines, according to the error return value in the authentication message, the reason for the failure to activate the PDN in the 3G network.
  • the mobile phone determines the reason for the failure to activate the PDN in the 3G network. Wrong for APN.
  • Step 409 The mobile phone searches for a network other than the LTE network and the 3G network.
  • the network searched at this time is only a 2G network
  • Step 410 The terminal uses APN3 to activate the PDN in the 2G network.
  • Step 411 The mobile phone receives a response message sent by the 2G network.
  • the response message includes a return value indicating that the activation of the PDN is successful, such as ACCEPT. Because APN3 and the PDN of the 2G network correspond to each other, APN3 can activate the PDN of the 2G network, and the 2G network sends a response message to the mobile phone;
  • the mobile phone receives the response message sent by the 2G network, and determines that the activation of the PDN is successful.
  • Step 412 The mobile phone resides on the current 2G network.
  • the mobile phone resides on the current 2G network, and does not switch to the LTE network or the 3G network, and can access the network normally.
  • the mobile phone fails to activate the PDN on all available networks. The phone resumes searching for all available networks.
  • the embodiment is only described by taking the existence of three available networks as an example. When there are more than three available networks, the implementation manner is the same as or similar to the embodiment.
  • An embodiment of the present invention provides a method for activating a PDN. After determining that the terminal mobile phone fails to activate the PDN in the LTE network and the 3G network due to an APN error, the original APN is used to activate the PDN in the 2G network. Implement APN with 2G network in LTE network, 3G network and 2G network The PDN is activated in the network coexistence environment to enable users to access the network normally.
  • the terminal 50 for activating a PDN provided by the embodiment of the present invention is used to implement the method shown in FIG. 2.
  • the terminal 50 includes:
  • the receiving unit 501 is configured to receive an authentication message sent by the first network, where the authentication message includes a cause error return value for indicating that the PDN is activated to be failed;
  • a determining unit 502 configured to determine, according to an error return value in the authentication message, a reason for failing to activate the PDN in the first network
  • the determining unit 502 may be specifically configured to: if the error return value in the authentication message is: service not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or unavailable APN (MISSING_UNKNOWN_APN); or user authentication failure (USER_AUTHENTICATION), determine The reason for the failure to activate the PDN in the first network is the APN error;
  • the sending unit 503 is configured to send, after the determining unit 502, that the reason for the failure of the PDN activation is an APN error, send a request message for activating the PDN to the second network, where the request message includes an APN, and the second network Any of the available networks outside the network;
  • the second network is a network of the highest level among the available networks except the first network;
  • the priority of the available network may be determined by the terminal according to the network parameters, for example, the data rate of different networks may be used to determine the priority level, or may be determined by other parameters of the network, and the present invention does not perform this. Specifically limited.
  • the receiving unit 501 is further configured to: receive a response message sent by the second network, where the response message includes a return value used to indicate that the PDN is activated successfully;
  • the determining unit 502 is further configured to determine, according to the response message sent by the second network received by the receiving unit 501, that the activation of the PDN is successful;
  • the searching unit 504 is configured to reside in the second network after the determining unit 502 determines that the PDN is successfully activated.
  • searching unit 504 is further configured to search for an available network other than the first network before the sending unit 503 sends a request message for activating the PDN to the second network;
  • the sending unit 503 is further configured to: if the determining unit 502 determines that the terminal is in the first The activation of the PDN in the second network fails and the reason for the failure is an APN error, and a request message for activating the PDN is sent to any one of the available networks except the first network and the second network;
  • the searching unit 504 is further configured to, after the determining unit 502 determines that the terminal fails to search for all available networks after all available network activation PDNs fail.
  • the terminal 50 of the embodiment of the present invention may be applied to a scenario where there are two or more available networks.
  • the terminal 50 When there are only two available networks, that is, the first network and the second network, when the terminal 50 is After both the first network and the second network fail to activate the PDN, the terminal 50 resumes searching for all available networks (ie, searching for the first network and the second network);
  • the terminal 50 may select the first The second network activates the PDN. If the terminal 50 fails to activate the PDN after the second network fails, the terminal 50 may choose to activate the PDN to the third network. Similarly, after the third network fails to activate the PDN, the terminal 50 may choose to activate the PDN to the fourth network. After the terminal 50 fails to activate the PDN in the first network, the second network, the third network, and the fourth network, the terminal 50 resumes searching for all available networks (ie, searching for the first network and the second network, the third network, and the Four networks).
  • the embodiment of the present invention provides a terminal 50 for activating a PDN. After determining that the reason for the terminal 50 to activate the PDN in the first network is an APN error, the original APN is used to activate the PDN in the second network. In a multi-network environment, an available APN can activate the PDN to establish a data service, so that the user can access the network normally. The defect that the APN cannot access the network when the APN does not correspond to the PDN is overcome.
  • the embodiment of the present invention provides another terminal 50 for activating an APN.
  • the method may include:
  • Memory 602 can include read only memory and random access memory and provides instructions and data to processor 601. A portion of memory 602 may also include non-volatile line random access memory (NVRAM).
  • NVRAM non-volatile line random access memory
  • Transmitter 603 and receiver 604 may generally be the transmit and receive antennas of the terminal.
  • the receiver 604 is configured to receive an authentication message sent by the first network, where the authentication message includes a cause error return value for indicating that the APN is activated to fail;
  • the processor 601 is configured to determine, according to an error return value in the authentication message, a reason for failing to activate the APN in the first network;
  • the transmitter 603 is configured to: when the processor 601 determines that the reason for the failure to activate the APN is an APN error, send a request message for activating the APN to the second network, where the request message includes the APN, and the second network is available in addition to the first network. Any of them;
  • the receiver 604 is further configured to receive a response message sent by the second network, where the response message includes a return value used to indicate that the PDN is activated successfully.
  • the processor 601 is further configured to determine, according to the response message sent by the second network that is received by the receiver 604, that the activation of the PDN is successful;
  • the processor 601 is further configured to: after determining that the PDN is successfully activated, camping on the second network, where the response message includes a return value indicating that the activation of the PDN is successful.
  • the processor 601 is further configured to search for an available network other than the first network
  • the second network is the highest level network in the network other than the first network.
  • the priority of the available network may be determined by the terminal according to the network parameters, for example, the data rate of different networks may be used to determine the priority level, or may be determined by other parameters of the network, and the present invention does not perform this. Specifically limited.
  • the transmitter 603 sends an activation to any one of the available networks except the first network and the second network. PDN request message;
  • the processor 601 determines that the terminal has failed to activate the PDN on all available networks, the processor 601 reverts to searching for all available networks.
  • the terminal 50 of the embodiment of the present invention may be applied to a scenario where there are two or more available networks.
  • the first network and the second network when the terminal 50 is After both the first network and the second network fail to activate the PDN, the search resumes searching for all available networks (ie, searching for the first network and the second network);
  • the terminal 50 may select the first The second network activates the PDN, if the terminal 50 activates the PDN in the second network. After the failure, the PDN may be activated to the third network. Similarly, after the third network fails to activate the PDN, the terminal 50 may select to activate the PDN to the fourth network, if the terminal 50 is in the first network, the second network, and the third. After the activation of the PDN in the network and the fourth network fails, the search is resumed to search for all available networks (ie, searching for the first network and the second network, the third network, and the fourth network).
  • the processor 601 may determine, according to the error return value received by the receiver 604, whether the reason for the terminal failure to activate the PDN in the first network is an APN error, for example, if the error returned by the receiver 604 is:
  • the processor 601 can then determine that the reason for the terminal to fail to activate the PDN in the first network is an APN error.
  • the embodiment of the present invention provides a terminal 50 for activating a PDN. After determining that the reason for the terminal 50 to activate the PDN in the first network is an APN error, the original APN is used to activate the PDN in the second network. In a multi-network environment, an available APN can activate the PDN to establish a data service, so that the user can access the network normally. The defect that the APN cannot access the network when the APN does not correspond to the PDN is overcome.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

Provided are a method and terminal for activating a PDN, which relate to the field of communications, and realize that the PDN can be activated just by an available APN and then establishes a data service in a multi-network environment, so that a user accesses a network normally. The defect in the prior art that when an APN does not correspond to a PDN, the PDN cannot be activated so there no way to access a network. The method adopted in the embodiments of the present invention comprises: a terminal receiving an authentication message sent by a first network; according to an error return value in the authentication message, the terminal determining a reason for failing to activate the PDN in the first network; if the reason for failing to activate the PDN is an access point name (APN) error, then the terminal sending a request message to activate the PDN to a second network; and if receiving a response message sent by the second network, the terminal determining that the PDN is successfully activated, and residing in the second network, wherein the response message comprises a return value used for indicating that the PDN is successfully activated.

Description

一种激活PDN的方法及终端Method and terminal for activating PDN
本申请要求于2013年9月30日提交中国专利局、申请号为201310463750.8、发明名称为“一种激活PDN的方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201310463750.8, entitled "A Method and Terminal for Activating PDN" on September 30, 2013, the entire contents of which is incorporated herein by reference. in.
技术领域Technical field
本发明涉及通信领域,尤其涉及一种激活分组数据网(Packet Data Network,简称PDN)的方法及终端。The present invention relates to the field of communications, and in particular, to a method and a terminal for activating a Packet Data Network (PDN).
背景技术Background technique
移动通信发展至今,经历了三代,为了满足用户不断增强的移动宽带和高数据率的需求,第三代合作伙伴项目(The3rd Generation Partnership Project,简称3GPP)开始了通用移动通信系统(Universal Mobile Telecommunications System,简称UMTS)技术的长期演进(Long Term Evolution,简称LTE)项目。LTE系统取消了电路交换域(circuit switch,简称CS),采用了全因特网协议的扁平化网络架构,为了确保演进的分组系统(Evolved Packet System,简称EPS)充分发挥自身的技术优势,LTE引入多种承载及处理机制。Mobile communication has been developed for three generations. In order to meet the increasing mobile broadband and high data rate requirements of users, The3rd Generation Partnership Project (3GPP) has started the Universal Mobile Telecommunications System (Universal Mobile Telecommunications System). , referred to as UMTS) Long Term Evolution (LTE) project. The LTE system cancels the circuit switch (CS) and adopts the flat network architecture of the entire Internet protocol. In order to ensure that the Evolved Packet System (EPS) fully utilizes its own technical advantages, LTE is introduced. Carrying and processing mechanisms.
接入点名称(Access Point Name,简称APN)是通过终端访问网络时必须配置的一个连接参数,它决定了终端通过哪种接入方式来访问网络。一个APN对应一个分组数据网(Packet Data Network,简称PDN),访问不同的PDN就需要不同的APN。An Access Point Name (APN) is a connection parameter that must be configured when a terminal accesses a network. It determines which access method the terminal accesses to the network. An APN corresponds to a Packet Data Network (PDN), and different APNs are required to access different PDNs.
终端在网络中完成注册后,如果需要使用数据业务,还要激活相应的PDN。比如:收发多媒体信息服务(Multimedia Messaging Service,简称MMS或彩信),需要使用支持MMS类型的APN来激活相应的PDN;浏览网页则需要使用支持缺省(default)类型APN来激活相应的PDN。After the terminal completes registration in the network, if it needs to use data services, it also activates the corresponding PDN. For example, the Multimedia Messaging Service (MMS or MMS) needs to use the APN that supports the MMS type to activate the corresponding PDN. To browse the Web, you need to use the default APN to activate the corresponding PDN.
随着通信技术的发展,越来越多的运营商同时支持多代网络,比如,有的运营商在支持第三代移动通信技术(The3rd-generation,简称3G)网络的同时开始支持LTE网络。在这个过程中,每一代网络之间的兼容性成为一个复杂的问题,其中一个问题点就是网络对于APN的兼容性。每个网 络本身都有自己独立的APN,一般的,一个网络的APN在其他网络下是无法激活PDN而建立数据业务的。在多网络环境下,终端一般会自动搜索所有可用网络,并自动注册其中一个网络(一般为优先级最高的网络),之后在激活PDN后就会建立数据业务,但是,若APN与终端自动选的网络不对应,终端无法激活PDN,则不能建立数据业务,导致无法访问网络。例如,参见图1,若终端使用3G网络的APN在LTE网络下尝试激活PDN,就会导致激活PDN失败,从而导致不能正常访问网络。With the development of communication technologies, more and more operators support multiple generations of networks at the same time. For example, some operators support the LTE network while supporting the third generation mobile communication technology (The3rd-generation, 3G for short). In this process, compatibility between each generation of networks becomes a complex problem, one of which is the compatibility of the network with APN. Each network The network itself has its own independent APN. Generally, a network APN cannot activate the PDN to establish data services under other networks. In a multi-network environment, the terminal will automatically search for all available networks and automatically register one of the networks (usually the network with the highest priority). After the PDN is activated, the data service will be established. However, if the APN and the terminal are automatically selected. The network does not correspond. If the terminal cannot activate the PDN, the data service cannot be established and the network cannot be accessed. For example, referring to FIG. 1, if the terminal uses the APN of the 3G network to attempt to activate the PDN in the LTE network, the activation of the PDN may fail, resulting in failure to access the network normally.
发明内容Summary of the invention
本发明实施例提供一种激活PDN的方法及终端,实现在多网络环境下,一个可用的APN即可激活而PDN建立数据业务,使用户正常访问网络。克服了现有技术中APN与网络不对应而无法访问网络的缺陷。The embodiment of the present invention provides a method and a terminal for activating a PDN, so that in a multi-network environment, an available APN can be activated and a PDN establishes a data service, so that the user can access the network normally. The defect that the APN does not correspond to the network and cannot access the network in the prior art is overcome.
为达到上述目的,本发明实施例采用的技术方案是,In order to achieve the above objective, the technical solution adopted by the embodiment of the present invention is
第一方面,提供一种终端激活PDN的方法,包括:In a first aspect, a method for a terminal to activate a PDN is provided, including:
终端接收第一网络发送的认证消息,所述认证消息包括用于指示激活所述PDN失败原因的错误返回值;Receiving, by the terminal, an authentication message sent by the first network, where the authentication message includes an error return value for indicating a reason for activating the PDN failure;
所述终端根据所述认证消息中的错误返回值确定在第一网络中激活所述PDN失败的原因;Determining, by the terminal, a reason for failing to activate the PDN in the first network according to an error return value in the authentication message;
若激活所述PDN失败的原因为APN错误,则所述终端向第二网络发送激活所述PDN的请求消息,其中,所述请求消息包含所述APN,所述第二网络为除所述第一网络之外的可用网络的任意一种;If the reason for the failure to activate the PDN is an APN error, the terminal sends a request message for activating the PDN to the second network, where the request message includes the APN, and the second network is Any of the available networks outside the network;
若所述终端接收到所述第二网络发送的响应消息,则确定激活所述PDN成功,驻留在第二网络,其中,所述响应消息包括用于指示激活所述PDN成功的返回值。And if the terminal receives the response message sent by the second network, determining to activate the PDN successfully, camping on the second network, where the response message includes a return value for indicating that the PDN is activated successfully.
结合第一方面,在第一方面的第一种可能的实现方式中,在所述终端选择向第二网络发送激活所述PDN的请求消息之前,所述方法还包括,With reference to the first aspect, in a first possible implementation manner of the first aspect, before the terminal selects to send, to the second network, a request message for activating the PDN, the method further includes:
所述终端搜索除所述第一网络之外的可用网络。The terminal searches for available networks other than the first network.
结合第一方面或第一方面第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述终端根据所述认证消息中的错误返回值确定在第一网络中激活所述PDN失败的原因,具体包括: With reference to the first aspect, or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the terminal is determined to be activated in the first network according to an error return value in the authentication message The reason for the failure of the PDN includes:
若所述认证消息中的所述错误返回值为:服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED);或不可用的APN(MISSING_UNKNOWN_APN);或用户鉴权失败(USER_AUTHENTICATION),则所述终端确定在所述第一网络中激活所述PDN失败的原因为APN错误。If the error return value in the authentication message is: service not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or unavailable APN (MISSING_UNKNOWN_APN); or user authentication failure (USER_AUTHENTICATION), the terminal determines in the first network The reason for the failure to activate the PDN is an APN error.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述第二网络为除所述第一网络之外的可用网络的最高一级的网络。In conjunction with the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in a third possible implementation of the first aspect, the second network is The highest level network of available networks outside the first network.
结合第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述方法还包括:In conjunction with the first possible implementation of the first aspect or the second possible implementation of the first aspect or the third possible implementation of the first aspect, in a fourth possible implementation of the first aspect The method further includes:
若所述终端确定在所述第二网络中激活所述PDN失败且失败的原因为APN错误,所述终端向除所述第一网络和所述第二网络之外的任意网络发送激活所述PDN的请求消息;If the terminal determines that the activation of the PDN in the second network fails and the reason for the failure is an APN error, the terminal sends the activation to any network other than the first network and the second network. PDN request message;
若所述终端在可用网络激活所述PDN都失败后,恢复为搜索所有可用网络。If the terminal fails to activate the PDN after the available network fails, it restores to search for all available networks.
第二方面,提供一种激活PDN的终端,包括:In a second aspect, a terminal for activating a PDN is provided, including:
接收单元,用于接收第一网络发送的认证消息,所述认证消息包括用于指示激活所述PDN失败原因的错误返回值;a receiving unit, configured to receive an authentication message sent by the first network, where the authentication message includes an error return value for indicating a reason for activating the PDN failure;
确定单元,用于根据所述认证消息中的错误返回值确定在第一网络中激活所述PDN失败的原因;a determining unit, configured to determine, according to the error return value in the authentication message, a reason for failing to activate the PDN in the first network;
发送单元,用于在所述确定单元确定激活所述PDN失败的原因为APN错误后,向第二网络发送激活所述PDN的请求消息,其中,所述请求消息包含所述APN,所述第二网络为除所述第一网络之外的可用网络的任意一种;a sending unit, configured to send, after the determining unit determines that the reason for the failure of the PDN activation is an APN error, send a request message for activating the PDN to the second network, where the request message includes the APN, where The second network is any one of available networks other than the first network;
所述接收单元还用于,接收所述第二网络发送的响应消息,其中,所述响应消息包括用于指示激活所述PDN成功的返回值;The receiving unit is further configured to receive a response message sent by the second network, where the response message includes a return value for indicating success of activating the PDN;
所述确定单元还用于,根据所述接收单元接收的所述第二网络发送的响应消息确定激活所述PDN成功; The determining unit is further configured to determine, according to the response message sent by the second network that is received by the receiving unit, that the activation of the PDN is successful;
搜索单元,用于在所述确定单元确定激活所述PDN成功后,驻留在第二网络。And a searching unit, configured to reside in the second network after the determining unit determines that the PDN is successfully activated.
结合第二方面,在第二方面的第一种可能的实现方式中,所述搜索单元还用于,在所述发送单元向所述第二网络发送激活所述PDN的请求消息之前,搜索除所述第一网络之外的可用网络。With reference to the second aspect, in a first possible implementation manner of the second aspect, the searching unit is further configured to: before the sending unit sends a request message for activating the PDN to the second network, searching for An available network outside the first network.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述确定单元具体用于:With reference to the second aspect or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the determining unit is specifically configured to:
若所述认证消息中的所述错误返回值为:服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED);或不可用的APN(MISSING_UNKNOWN_APN);或用户鉴权失败(USER_AUTHENTICATION),则确定在所述第一网络中激活所述PDN失败的原因为APN错误。If the error return value in the authentication message is: the service is not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or the unavailable APN (MISSING_UNKNOWN_APN); or the user authentication failure (USER_AUTHENTICATION), determining to activate the location in the first network The reason for the failure of the PDN is the APN error.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,所述第二网络为除所述第一网络之外的网络中的最高一级的网络。With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the second network is The highest level of the network in the network outside the first network.
结合第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式或第三种可能的实现方式,在第二方面的第四种可能的实现方式中,所述发送单元还用于,在所述确定单元确定所述终端在所述第二网络中激活所述PDN失败且失败的原因为APN错误,向除所述第一网络和所述第二网络之外的可用网络中的任意一个网络发送激活所述PDN的请求消息;In conjunction with the first possible implementation of the second aspect or the second possible implementation or the third possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the sending The unit is further configured to: in the determining unit, determine that the terminal fails to activate the PDN in the second network, and the reason for the failure is an APN error, except for the first network and the second network. Sending a request message for activating the PDN in any one of the available networks;
所述搜索单元还用于,在所述确定单元确定所述终端在所有可用网络激活所述PDN都失败后,恢复为搜索所有可用网络。The searching unit is further configured to: after the determining unit determines that the terminal fails to activate the PDN after all available networks fail, revert to searching for all available networks.
本发明的实施例提供一种激活PDN的方法及终端,在确定终端在第一网络中激活PDN失败的原因为APN错误后,用原APN在第二网络中激活PDN。实现在多网络环境下,一个可用的APN即可激活PDN而建立数据业务,使用户正常访问网络。克服了现有技术中APN与PDN不对应时,无法激活所述PDN,进而无法访问网络的缺陷。An embodiment of the present invention provides a method and a terminal for activating a PDN. After determining that the reason for the failure of the terminal to activate the PDN in the first network is an APN error, the original APN is used to activate the PDN in the second network. In a multi-network environment, an available APN can activate the PDN to establish a data service, so that the user can access the network normally. When the APN does not correspond to the PDN in the prior art, the PDN cannot be activated, and the network cannot be accessed.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below, obviously, The drawings in the following description are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图1为现有技术中一种激活PDN的方法示意图;1 is a schematic diagram of a method for activating a PDN in the prior art;
图2为本发明实施例提供的一种激活PDN的方法示意图;2 is a schematic diagram of a method for activating a PDN according to an embodiment of the present invention;
图3为本发明实施例提供的另一种激活PDN的方法示意图;FIG. 3 is a schematic diagram of another method for activating a PDN according to an embodiment of the present disclosure;
图4为本发明实施例提供的再一种激活PDN的方法示意图;4 is a schematic diagram of another method for activating a PDN according to an embodiment of the present invention;
图5为本发明实施例提供的一种激活PDN的终端的装置结构图;FIG. 5 is a structural diagram of an apparatus for activating a PDN terminal according to an embodiment of the present invention;
图6为本发明实施例提供的另一种激活PDN的终端的装置结构图。FIG. 6 is a structural diagram of another apparatus for activating a PDN terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一Embodiment 1
本发明的实施例提供一种终端激活PDN的方法,参见图2,该方法可以包括:An embodiment of the present invention provides a method for a terminal to activate a PDN. Referring to FIG. 2, the method may include:
步骤201、终端接收第一网络发送的认证消息,认证消息包括用于指示激活PDN失败原因错误返回值;Step 201: The terminal receives an authentication message sent by the first network, where the authentication message includes an error return value for indicating a failure to activate the PDN.
其中,认证消息可以为通信协议规定的消息,例如,3GPP TS24.008协议中规定的Activate PDP context reject消息,一般由网络采用信令形式发送。The authentication message may be a message specified by the communication protocol. For example, the Activate PDP context reject message specified in the 3GPP TS 24.008 protocol is generally sent by the network in the form of signaling.
步骤202、终端根据认证消息中的错误返回值确定在第一网络中激活所述PDN失败的原因;Step 202: The terminal determines, according to the error return value in the authentication message, a reason for failing to activate the PDN in the first network.
步骤203、若激活所述PDN失败的原因为APN错误,则终端向第二网络发送激活所述PDN的请求消息,其中,请求消息包含APN,第二网络为除第一网络之外的可用网络的任意一种; Step 203: If the reason for the failure to activate the PDN is an APN error, the terminal sends a request message for activating the PDN to the second network, where the request message includes an APN, and the second network is an available network other than the first network. Any of them;
示例性的,若认证消息中的错误返回值为:Exemplarily, if the error return value in the authentication message is:
服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED),是指该APN对应的数据业务服务未在网络侧进行预定;The service is not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED), which means that the data service corresponding to the APN is not scheduled on the network side;
或不可用的APN(MISSING_UNKNOWN_APN),是指该APN不能激活PDN;Or APN (MISSING_UNKNOWN_APN), which means that the APN cannot activate the PDN;
或用户鉴权失败(USER_AUTHENTICATION)是指该APN激活PDN时用户鉴权不成功;The user authentication failure (USER_AUTHENTICATION) means that the user authentication is unsuccessful when the APN activates the PDN.
则终端确定在第一网络中激活PDN失败的原因为APN错误。Then, the terminal determines that the reason for the failure to activate the PDN in the first network is an APN error.
优选的,第二网络为除第一网络之外的网络中的最高一级的网络。Preferably, the second network is the highest level network in the network other than the first network.
需要说明的是,可用网络的优先级的高低可以由终端根据网络参数确定,比如可以通过不同网络的数据速率来确定优先级的高低,也可以通过网络的其他参数确定,本发明对此不进行具体限定。It should be noted that the priority of the available network may be determined by the terminal according to the network parameters, for example, the data rate of different networks may be used to determine the priority level, or may be determined by other parameters of the network, and the present invention does not perform this. Specifically limited.
步骤204、若终端接收到第二网络发送的响应消息,则确定激活所述PDN成功,驻留在第二网络,其中,所述响应消息包括用于指示激活PDN成功的返回值。Step 204: If the terminal receives the response message sent by the second network, determine that the PDN is successfully activated, and resides in the second network, where the response message includes a return value for indicating that the PDN is activated successfully.
其中,指示激活PDN成功的返回值可以为接受(Accept)。Wherein, the return value indicating that the activation of the PDN is successful may be Accept.
进一步的,在终端选择向第二网络发送激活所述PDN的请求消息之前,所述方法还可以包括,终端搜索除第一网络之外的可用网络。Further, before the terminal selects to send a request message for activating the PDN to the second network, the method may further include: the terminal searching for an available network other than the first network.
进一步的,所述方法还可以包括:Further, the method may further include:
若终端确定在第二网络中激活所述PDN失败且失败的原因为APN错误,终端向除第一网络和所述第二网络之外的可用网络中的任意一个网络发送激活所述PDN的请求消息;If the terminal determines that the activation of the PDN in the second network fails and the reason for the failure is an APN error, the terminal sends a request to activate the PDN to any one of the available networks except the first network and the second network. Message
若终端在所有可用网络激活所述PDN都失败后,恢复为搜索所有可用网络。If the terminal fails to activate the PDN after all available networks fail, it reverts to searching for all available networks.
需要说明的是,本发明实施例的方法可以应用于存在两种或两种以上可用网络的场景,当只存在两个可用网络时,即第一网络和第二网络时,当终端在第一网络和第二网络激活PDN都失败后,恢复为搜索所有可用网络(即搜索第一网络和第二网络);It should be noted that the method in this embodiment of the present invention can be applied to a scenario where two or more available networks exist. When there are only two available networks, that is, the first network and the second network, when the terminal is in the first After the network and the second network fail to activate the PDN, the search resumes searching for all available networks (ie, searching for the first network and the second network);
当存在两个以上可用网络时,假设存在4个可用网络,分别为第一网 络、第二网络、第三网络、第四网络,当终端在第一网络激活PDN失败后,可以选择向第二网络激活PDN,若终端在第二网络激活PDN失败后,可以选择向第三网络激活PDN,类似的,终端在第三网络激活PDN失败后,可以选择向第四网络激活PDN,若当终端在第一网络、第二网络、第三网络、第四网络中激活PDN都失败后,恢复为搜索所有可用网络(即搜索第一网络和第二网络、第三网络、第四网络)。When there are more than two available networks, it is assumed that there are 4 available networks, respectively the first network. The network, the second network, the third network, and the fourth network may select to activate the PDN to the second network after the terminal fails to activate the PDN in the first network, and if the terminal fails to activate the PDN in the second network, the terminal may select the third The network activates the PDN. Similarly, after the third network fails to activate the PDN, the terminal may choose to activate the PDN to the fourth network. If the terminal activates the PDN in the first network, the second network, the third network, and the fourth network, the terminal fails. After that, it is restored to search all available networks (ie, search for the first network and the second network, the third network, the fourth network).
本发明的实施例提供一种激活PDN的方法,在确定终端在第一网络中激活所述PDN失败的原因为APN错误后,用原APN在第二网络中激活所述PDN。实现在多网络环境下,一个可用的APN即可激活PDN而建立数据业务,使用户正常上网。克服了现有技术中APN与PDN不对应时无法激活PDN,进而无法连接网络的缺陷。An embodiment of the present invention provides a method for activating a PDN. After determining that the reason for the terminal to activate the PDN in the first network is an APN error, the original APN is used to activate the PDN in the second network. In a multi-network environment, an available APN can activate the PDN to establish a data service, so that the user can access the Internet normally. The invention overcomes the defect that the PDN cannot be activated when the APN and the PDN do not correspond to the prior art, and thus cannot connect to the network.
下面通过两个具体实施例对图2所示方法实施例进行详细描述。The method embodiment shown in FIG. 2 will be described in detail below through two specific embodiments.
实施例二Embodiment 2
本实施例以场景1为例对激活PDN的方法进行说明,该场景为运营商布局了LTE网络,于是针对LTE网络新提供了一个LTE网络的APN1,用于用户激活LTE网络下的PDN。A运营商同时维护着3G网络,并有相应的3G网络的APN2。用户B是A运营商的原有客户,新买了一台支持LTE网络的手机,在多网络环境(LTE网络、3G网络共存)中,支持LTE网络的手机若接收到用于提供的3G网络的APN2,手机则采用3G网络的APN2去访问网络,激活PDN失败,不能使用数据业务。In this embodiment, the scenario 1 is used as an example to describe the method for activating the PDN. The scenario is that the LTE network is deployed by the operator. Therefore, the APN1 of the LTE network is newly provided for the LTE network, and the user activates the PDN in the LTE network. The A operator maintains the 3G network at the same time, and has the APN2 of the corresponding 3G network. User B is the original customer of the A operator, and newly purchased a mobile phone supporting the LTE network. In a multi-network environment (LTE network, 3G network coexistence), the mobile phone supporting the LTE network receives the 3G network for providing. The APN2 and the mobile phone use the APN2 of the 3G network to access the network, and the activation of the PDN fails, and the data service cannot be used.
用户C也是A运营商的原有客户,新买了一台支持LTE网络的手机,支持LTE网络的手机若接收到用户提供的3G网络的APN2,手机则采用3G网络的APN2去访问网络,在仅有3G网络下可以正常访问网络,但是当他走到了一个多网络环境(LTE网络、3G网络共存)中,突然就不能访问网络了。User C is also the original customer of the A operator. A new mobile phone supporting the LTE network is purchased. If the mobile phone supporting the LTE network receives the APN2 of the 3G network provided by the user, the mobile phone uses the APN2 of the 3G network to access the network. Only the 3G network can access the network normally, but when he walks into a multi-network environment (LTE network, 3G network coexistence), he suddenly cannot access the network.
本实施例说明在场景1下,采用本发明解决终端不能访问网络的问题,参见图3,具体可以包括:The embodiment of the present invention is to solve the problem that the terminal cannot access the network by using the present invention in the scenario 1, as shown in FIG. 3, which may specifically include:
步骤301、手机搜索所有可用网络;Step 301: The mobile phone searches for all available networks;
因为手机处于LTE网络、3G网络共存的环境下,所以,手机此时搜索到的可用网络有LTE网络和3G网络。 Because the mobile phone is in an environment where the LTE network and the 3G network coexist, the available networks searched by the mobile phone at this time are an LTE network and a 3G network.
步骤302、手机接收到用户提供的APN2,使用APN2在LTE网络中激活PDN;Step 302: The mobile phone receives the APN2 provided by the user, and activates the PDN in the LTE network by using the APN2.
其中,手机可以根据网络的优先级,首先选择访问优先级最高的网络,例如,可用网络的优先级的高低可以由手机根据网络参数确定,比如可以通过不同网络的数据速率来确定优先级的高低,也可以通过网络的其他参数确定,本实施例中仅以根据数据速率来设置网络的优先级,则第一级网络为LTE网络,第二级网络为3G网络。The mobile phone can first select the network with the highest priority according to the priority of the network. For example, the priority of the available network can be determined by the mobile phone according to the network parameters. For example, the data rate of different networks can be used to determine the priority level. It can also be determined by other parameters of the network. In this embodiment, only the priority of the network is set according to the data rate, and the first-level network is an LTE network, and the second-level network is a 3G network.
终端首先向第一级网络LTE网络激活PDN,而终端向LTE网络激活PDN使用的APN为用户提供的APN2。The terminal first activates the PDN to the first-level network LTE network, and the terminal activates the APN used by the PDN to the LTE network to provide the user with the APN2.
步骤303、手机接收LTE网络发送的认证消息,该认证消息包括用于指示激活PDN失败原因的错误返回值;Step 303: The mobile phone receives an authentication message sent by the LTE network, where the authentication message includes an error return value used to indicate a cause of failure of activating the PDN.
因为APN2为3G网络的APN,与手机当前注册的LTE网络的PDN不对应,故不能在LTE网络激活PDN,LTE网络向手机发送包括错误返回值的认证消息,手机根据认证消息中的错误返回值确定激活PDN失败的原因为APN错误。Because APN2 is the APN of the 3G network and does not correspond to the PDN of the LTE network currently registered by the mobile phone, the PDN cannot be activated on the LTE network, and the LTE network sends an authentication message including the error return value to the mobile phone, and the mobile phone returns a value according to the error in the authentication message. The reason for determining the failure to activate the PDN is an APN error.
步骤304、手机根据认证消息中的错误返回值确定在LTE网络中激活PDN失败的原因;Step 304: The mobile phone determines, according to the error return value in the authentication message, a reason for failing to activate the PDN in the LTE network.
例如,若该认证消息中的错误返回值为:服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED);或不可用的APN(MISSING_UNKNOWN_APN);或用户鉴权失败(USER_AUTHENTICATION),则手机确定在LTE网络中激活PDN失败的原因为APN错误。For example, if the error return value in the authentication message is: service not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or unavailable APN (MISSING_UNKNOWN_APN); or user authentication failure (USER_AUTHENTICATION), the mobile phone determines the reason for the failure to activate the PDN in the LTE network. Wrong for APN.
步骤305、手机搜索除LTE网络之外的网络;Step 305: The mobile phone searches for a network other than the LTE network.
例如,此时手机搜索到的可用网络只有3G网络;For example, at this time, the available network searched by the mobile phone has only a 3G network;
步骤306、手机采用APN2在3G网络中激活PDN;Step 306: The mobile phone uses APN2 to activate the PDN in the 3G network.
步骤307、手机接收到3G网络发送的响应消息;Step 307: The mobile phone receives a response message sent by the 3G network.
其中,该响应消息包括用于指示激活PDN成功的返回值,例如ACCEPT。因为APN2与3G网络的PDN相互对应,故APN2可以激活3G网络的PDN,3G网络向手机发送响应消息; The response message includes a return value indicating that the activation of the PDN is successful, such as ACCEPT. Because APN2 and the PDN of the 3G network correspond to each other, APN2 can activate the PDN of the 3G network, and the 3G network sends a response message to the mobile phone;
其中,手机接收到3G网络发送的响应消息,则确定激活PDN成功。The mobile phone receives the response message sent by the 3G network, and determines that the activation of the PDN is successful.
步骤308、手机驻留在当前的3G网络。Step 308: The mobile phone resides on the current 3G network.
此时手机驻留在当前的3G网络,不会切换到LTE网络,可以正常访问网络。At this time, the mobile phone resides on the current 3G network, and does not switch to the LTE network, and can access the network normally.
本发明的实施例提供一种激活PDN的方法,在确定手机在LTE网络中激活PDN失败的原因为APN错误后,用原APN在3G网络中激活PDN。实现用3G网络的APN在LTE网络和3G网络共存环境中能够激活PDN,使手机正常访问网络。An embodiment of the present invention provides a method for activating a PDN. After determining that the reason for the failure of the mobile phone to activate the PDN in the LTE network is an APN error, the original APN is used to activate the PDN in the 3G network. The APN that implements the 3G network can activate the PDN in the LTE network and the 3G network coexistence environment, so that the mobile phone can access the network normally.
实施例三Embodiment 3
本实施例以场景2为例对激活PDN的方法进行说明,该场景为D运营商布局了LTE网络,于是针对LTE网络新提供了一个LTE网络的APN1,用于用户激活LTE网络下的PDN。D运营商同时维护着3G网络和第二代移动通信(second generation,简称2G)网络,并有相应的3G网络PDN的APN2和2G网络PDN的APN3。用户E是D运营商的原有客户,新买了一台支持LTE网络的手机,若支持LTE网络的手机接收到用户提供的2G网络的APN3,手机则采用2G网络的APN3去访问网络,则不能激活PDN,从而不能访问网络。In this embodiment, scenario 2 is used as an example to describe a method for activating a PDN. The scenario is that the D operator has deployed an LTE network, so that an APN1 of the LTE network is newly provided for the LTE network, and the user activates the PDN in the LTE network. The D operator maintains both the 3G network and the second generation mobile communication (2G) network, and has the APN2 of the corresponding 3G network PDN and the APN3 of the 2G network PDN. User E is the original customer of the D operator. A new mobile phone supporting the LTE network is purchased. If the mobile phone supporting the LTE network receives the APN3 of the 2G network provided by the user, the mobile phone uses the APN3 of the 2G network to access the network. The PDN cannot be activated and the network cannot be accessed.
用户F也是D运营商的原有客户,新买了一台支持LTE网络的手机,若支持LTE网络的手机接收到用户提供的2G网络的APN3,手机则采用2G网络的APN3去访问网络,在仅有2G网络环境下手机可以正常访问网络,但当他到了多网络环境(LTE网络、3G网络、2G网络共存)下,突然就不能访问网络了。User F is also the original customer of D operator. Newly bought a mobile phone supporting LTE network. If the mobile phone supporting LTE network receives APN3 of 2G network provided by user, the mobile phone uses APN3 of 2G network to access the network. In the 2G network environment, the mobile phone can access the network normally, but when he goes to a multi-network environment (LTE network, 3G network, 2G network coexistence), he suddenly cannot access the network.
本实施例描述在场景2下,采用本发明可以解决终端不能访问网络的问题,参见图4,具体包括:This embodiment describes the problem that the terminal cannot access the network by using the present invention in the scenario 2, and the method includes:
步骤401、手机搜索环境中所有可用网络;Step 401: Searching for all available networks in the mobile search environment;
因为手机处于LTE网络、3G网络、2G网络共存的环境下,所以,此时搜索到的网络有LTE网络、3G网络和2G网络。Because the mobile phone is in an environment where the LTE network, the 3G network, and the 2G network coexist, the network searched at this time has an LTE network, a 3G network, and a 2G network.
步骤402、手机接收到用户提供的APN3,采用APN3在LTE网络中激活PDN; Step 402: The mobile phone receives the APN3 provided by the user, and activates the PDN in the LTE network by using the APN3.
其中,手机可以根据网络的优先级,首先选择访问优先级最高的网络,例如,可用网络的优先级的高低可以由手机根据网络参数确定,比如可以通过不同网络的数据速率来确定优先级的高低,也可以通过网络的其他参数确定,本实施例中仅以根据数据速率来设置网络的优先级,则第一级网络为LTE网络,第二级网络为3G网络,第三级网络为2G网络.The mobile phone can first select the network with the highest priority according to the priority of the network. For example, the priority of the available network can be determined by the mobile phone according to the network parameters. For example, the data rate of different networks can be used to determine the priority level. It can also be determined by other parameters of the network. In this embodiment, only the priority of the network is set according to the data rate, and the first-level network is an LTE network, the second-level network is a 3G network, and the third-level network is a 2G network. .
终端首先向第一级网络LTE网络激活PDN,而终端向LTE网络激活PDN使用的APN为用户提供的APN3。The terminal first activates the PDN to the first-level network LTE network, and the terminal activates the APN used by the PDN for the user to the LTE network.
步骤403、手机接收LTE网络发送的认证消息,该认证消息包括用于指示激活PDN失败原因的错误返回值;Step 403: The mobile phone receives an authentication message sent by the LTE network, where the authentication message includes an error return value used to indicate a cause of failure of activating the PDN.
因为APN3为2G网络的APN,与手机当前注册的LTE网络的PDN不对应,故不能在LTE网络激活PDN,LTE网络向手机发送包括错误返回值的认证消息,手机根据认证消息中的错误返回值确定激活PDN失败的原因为APN错误。Because APN3 is the APN of the 2G network and does not correspond to the PDN of the LTE network currently registered by the mobile phone, the PDN cannot be activated on the LTE network, and the LTE network sends an authentication message including the error return value to the mobile phone, and the mobile phone returns a value according to the error in the authentication message. The reason for determining the failure to activate the PDN is an APN error.
步骤404、手机根据认证消息中的错误返回值确定在LTE网络中激活PDN失败的原因;Step 404: The mobile phone determines, according to the error return value in the authentication message, a reason for failing to activate the PDN in the LTE network.
例如,若该认证消息中的错误返回值为:服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED);或不可用的APN(MISSING_UNKNOWN_APN);或用户鉴权失败(USER_AUTHENTICATION),则手机确定在LTE网络中激活PDN失败的原因为APN错误。For example, if the error return value in the authentication message is: service not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or unavailable APN (MISSING_UNKNOWN_APN); or user authentication failure (USER_AUTHENTICATION), the mobile phone determines the reason for the failure to activate the PDN in the LTE network. Wrong for APN.
步骤405、手机搜索除LTE网络之外的网络;Step 405: The mobile phone searches for a network other than the LTE network.
例如,此时搜索到的网络有3G网络和2G网络;For example, the network searched at this time has a 3G network and a 2G network;
步骤406、手机采用APN3在3G网络中激活PDN;Step 406: The mobile phone uses APN3 to activate the PDN in the 3G network.
作为一种优选的方式,手机在LTE网络中激活PDN失败后,选择向除LTE网络之外的优先级最高的网络激活PDN,即手机采用APN3在3G网络中激活PDN。As a preferred manner, after the mobile phone fails to activate the PDN in the LTE network, the mobile phone selects to activate the PDN to the network with the highest priority except the LTE network, that is, the mobile phone uses the APN3 to activate the PDN in the 3G network.
步骤407、手机接收3G网络发送的认证消息,该认证消息包括用于指示激活PDN失败原因的错误返回值;Step 407: The mobile phone receives an authentication message sent by the 3G network, where the authentication message includes an error return value used to indicate a reason for activating the PDN failure.
因为APN3为2G网络的APN,与手机当前注册的3G网络的PDN不 对应,故不能在3G网络激活PDN,3G网络向手机发送包括错误返回值的认证消息,手机根据认证消息中的错误返回值确定激活PDN失败的原因为APN错误。Because APN3 is the APN of the 2G network, the PDN of the 3G network currently registered with the mobile phone is not Correspondingly, the PDN cannot be activated on the 3G network. The 3G network sends an authentication message including the error return value to the mobile phone. The mobile phone determines that the reason for the failure to activate the PDN is the APN error according to the error return value in the authentication message.
步骤408、手机根据认证消息中的错误返回值确定在3G网络中激活PDN失败的原因;Step 408: The mobile phone determines, according to the error return value in the authentication message, the reason for the failure to activate the PDN in the 3G network.
例如,若该认证消息中的错误返回值为:服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED);或不可用的APN(MISSING_UNKNOWN_APN);或用户鉴权失败(USER_AUTHENTICATION),则手机确定在3G网络中激活PDN失败的原因为APN错误。For example, if the error return value in the authentication message is: service not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or unavailable APN (MISSING_UNKNOWN_APN); or user authentication failure (USER_AUTHENTICATION), the mobile phone determines the reason for the failure to activate the PDN in the 3G network. Wrong for APN.
步骤409、手机搜索除LTE网络和3G网络之外的网络;Step 409: The mobile phone searches for a network other than the LTE network and the 3G network.
例如,此时搜索到的网络为只有2G网络;For example, the network searched at this time is only a 2G network;
步骤410、终端采用APN3在2G网络中激活PDN;Step 410: The terminal uses APN3 to activate the PDN in the 2G network.
步骤411、手机接收到2G网络发送的响应消息;Step 411: The mobile phone receives a response message sent by the 2G network.
其中,该响应消息包括用于指示激活PDN成功的返回值,例如ACCEPT。因为APN3与2G网络的PDN相互对应,故APN3可以激活2G网络的PDN,2G网络向手机发送响应消息;The response message includes a return value indicating that the activation of the PDN is successful, such as ACCEPT. Because APN3 and the PDN of the 2G network correspond to each other, APN3 can activate the PDN of the 2G network, and the 2G network sends a response message to the mobile phone;
其中,手机接收到2G网络发送的响应消息,则确定激活PDN成功。The mobile phone receives the response message sent by the 2G network, and determines that the activation of the PDN is successful.
步骤412、手机驻留在当前的2G网络;Step 412: The mobile phone resides on the current 2G network.
此时手机驻留在当前的2G网络,不会切换到LTE网络或3G网络,可以正常访问网络。At this time, the mobile phone resides on the current 2G network, and does not switch to the LTE network or the 3G network, and can access the network normally.
需要说明的是,若在上述场景2中,手机接收到的用户提供的APN与多网络环境中的2G网络、3G网络、LTE网络的PDN均不对应,则手机在所有可用网络激活PDN都会失败,手机则恢复搜索所有可用网络。It should be noted that, in the above scenario 2, if the APN provided by the mobile phone does not correspond to the 2G network, the 3G network, or the PDN of the LTE network in the multi-network environment, the mobile phone fails to activate the PDN on all available networks. The phone resumes searching for all available networks.
当然,本实施例只是以存在3种可用网络为例进行的说明,当存在3中以上可用网络时,实现方式与本实施例相同或类似。Certainly, the embodiment is only described by taking the existence of three available networks as an example. When there are more than three available networks, the implementation manner is the same as or similar to the embodiment.
本发明的实施例提供一种激活PDN的方法,在确定终端手机在LTE网络和3G网络中激活PDN失败的原因为APN错误后,用原APN在2G网络中激活PDN。实现用2G网络的APN在LTE网络、3G网络和2G网 络共存环境中激活PDN,使用户正常访问网络。An embodiment of the present invention provides a method for activating a PDN. After determining that the terminal mobile phone fails to activate the PDN in the LTE network and the 3G network due to an APN error, the original APN is used to activate the PDN in the 2G network. Implement APN with 2G network in LTE network, 3G network and 2G network The PDN is activated in the network coexistence environment to enable users to access the network normally.
实施例四Embodiment 4
本发明实施例提供的一种激活PDN的终端50,用于实现图2所述方法,参见图5,该终端50包括:The terminal 50 for activating a PDN provided by the embodiment of the present invention is used to implement the method shown in FIG. 2. Referring to FIG. 5, the terminal 50 includes:
接收单元501,用于接收第一网络发送的认证消息,认证消息包括用于指示激活PDN失败的原因错误返回值;The receiving unit 501 is configured to receive an authentication message sent by the first network, where the authentication message includes a cause error return value for indicating that the PDN is activated to be failed;
确定单元502,用于根据认证消息中的错误返回值确定在第一网络中激活PDN失败的原因;a determining unit 502, configured to determine, according to an error return value in the authentication message, a reason for failing to activate the PDN in the first network;
例如,所述确定单元502具体可以用于,若认证消息中的错误返回值为:服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED);或不可用的APN(MISSING_UNKNOWN_APN);或用户鉴权失败(USER_AUTHENTICATION),则确定在第一网络中激活PDN失败的原因为APN错误;For example, the determining unit 502 may be specifically configured to: if the error return value in the authentication message is: service not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or unavailable APN (MISSING_UNKNOWN_APN); or user authentication failure (USER_AUTHENTICATION), determine The reason for the failure to activate the PDN in the first network is the APN error;
发送单元503,用于在所述确定单元502确定激活所述PDN失败的原因为APN错误后,向第二网络发送激活所述PDN的请求消息,其中,请求消息包含APN,第二网络除第一网络之外的可用网络的任意一种;The sending unit 503 is configured to send, after the determining unit 502, that the reason for the failure of the PDN activation is an APN error, send a request message for activating the PDN to the second network, where the request message includes an APN, and the second network Any of the available networks outside the network;
优选的,第二网络为除第一网络之外的可用网络中的最高一级的网络;Preferably, the second network is a network of the highest level among the available networks except the first network;
需要说明的是,可用网络的优先级的高低可以由终端根据网络参数确定,比如可以通过不同网络的数据速率来确定优先级的高低,也可以通过网络的其他参数确定,本发明对此不进行具体限定。It should be noted that the priority of the available network may be determined by the terminal according to the network parameters, for example, the data rate of different networks may be used to determine the priority level, or may be determined by other parameters of the network, and the present invention does not perform this. Specifically limited.
进一步的,接收单元501还可以用于,接收所述第二网络发送的响应消息,其中,所述响应消息包括用于指示激活所述PDN成功的返回值;Further, the receiving unit 501 is further configured to: receive a response message sent by the second network, where the response message includes a return value used to indicate that the PDN is activated successfully;
进一步的,确定单元502还可以用于,根据接收单元501接收的第二网络发送的响应消息确定激活所述PDN成功;Further, the determining unit 502 is further configured to determine, according to the response message sent by the second network received by the receiving unit 501, that the activation of the PDN is successful;
搜索单元504,用于在确定单元502确定激活所述PDN成功后,驻留在第二网络。The searching unit 504 is configured to reside in the second network after the determining unit 502 determines that the PDN is successfully activated.
进一步的,搜索单元504还可以用于,在发送单元503向第二网络发送激活PDN的请求消息之前,搜索除第一网络之外的可用网络;Further, the searching unit 504 is further configured to search for an available network other than the first network before the sending unit 503 sends a request message for activating the PDN to the second network;
进一步的,发送单元503还可以用于,若确定单元502确定终端在第 二网络中激活PDN失败且失败的原因为APN错误,向除第一网络和第二网络之外的可用网络中的任意一个网络发送激活PDN的请求消息;Further, the sending unit 503 is further configured to: if the determining unit 502 determines that the terminal is in the first The activation of the PDN in the second network fails and the reason for the failure is an APN error, and a request message for activating the PDN is sent to any one of the available networks except the first network and the second network;
进一步的,搜索单元504还可以用于,在确定单元502确定终端在所有可用网络激活PDN都失败后,恢复为搜索所有可用网络。Further, the searching unit 504 is further configured to, after the determining unit 502 determines that the terminal fails to search for all available networks after all available network activation PDNs fail.
需要说明的是,本发明实施例的终端50可以应用于存在两种或两种以上可用网络的场景,当只存在两个可用网络时,即第一网络和第二网络时,当终端50在第一网络和第二网络激活PDN都失败后,终端50恢复为搜索所有可用网络(即搜索第一网络和第二网络);It should be noted that the terminal 50 of the embodiment of the present invention may be applied to a scenario where there are two or more available networks. When there are only two available networks, that is, the first network and the second network, when the terminal 50 is After both the first network and the second network fail to activate the PDN, the terminal 50 resumes searching for all available networks (ie, searching for the first network and the second network);
当存在两个以上可用网络时,假设存在4个可用网络,分别为第一网络、第二网络、第三网络、第四网络,当终端50在第一网络激活PDN失败后,可以选择向第二网络激活PDN,若终端50在第二网络激活PDN失败后,可以选择向第三网络激活PDN,类似的,终端50在第三网络激活PDN失败后,可以选择向第四网络激活PDN,若当终端50在第一网络、第二网络、第三网络、第四网络中激活PDN都失败后,终端50恢复为搜索所有可用网络(即搜索第一网络和第二网络、第三网络、第四网络)。When there are two or more available networks, it is assumed that there are four available networks, namely, the first network, the second network, the third network, and the fourth network. When the terminal 50 fails to activate the PDN in the first network, the terminal 50 may select the first The second network activates the PDN. If the terminal 50 fails to activate the PDN after the second network fails, the terminal 50 may choose to activate the PDN to the third network. Similarly, after the third network fails to activate the PDN, the terminal 50 may choose to activate the PDN to the fourth network. After the terminal 50 fails to activate the PDN in the first network, the second network, the third network, and the fourth network, the terminal 50 resumes searching for all available networks (ie, searching for the first network and the second network, the third network, and the Four networks).
本发明的实施例提供一种激活PDN的终端50,在确定终端50在第一网络中激活PDN失败的原因为APN错误后,用原APN在第二网络中激活PDN。实现在多网络环境下,一个可用的APN即可激活PDN而建立数据业务,使用户正常访问网络。克服了现有技术中APN与PDN不对应时无法访问网络的缺陷。The embodiment of the present invention provides a terminal 50 for activating a PDN. After determining that the reason for the terminal 50 to activate the PDN in the first network is an APN error, the original APN is used to activate the PDN in the second network. In a multi-network environment, an available APN can activate the PDN to establish a data service, so that the user can access the network normally. The defect that the APN cannot access the network when the APN does not correspond to the PDN is overcome.
实施例五Embodiment 5
本发明实施例提供另一种激活APN的终端50,参见图6,可以包括:The embodiment of the present invention provides another terminal 50 for activating an APN. Referring to FIG. 6, the method may include:
处理器601,存储器602,发射器603,接收器604。Processor 601, memory 602, transmitter 603, receiver 604.
存储器602可以包括只读存储器和随机存取存储器,并向处理器601提供指令和数据。存储器602的一部分还可以包括非易失行随机存取存储器(NVRAM)。Memory 602 can include read only memory and random access memory and provides instructions and data to processor 601. A portion of memory 602 may also include non-volatile line random access memory (NVRAM).
发射器603和接收器604一般可以是终端的收发天线。Transmitter 603 and receiver 604 may generally be the transmit and receive antennas of the terminal.
接收器604用于接收第一网络发送的认证消息,认证消息包括用于指示激活APN失败的原因错误返回值; The receiver 604 is configured to receive an authentication message sent by the first network, where the authentication message includes a cause error return value for indicating that the APN is activated to fail;
处理器601用于根据认证消息中的错误返回值确定在第一网络中激活APN失败的原因;The processor 601 is configured to determine, according to an error return value in the authentication message, a reason for failing to activate the APN in the first network;
发射器603用于在处理器601确定激活APN失败的原因为APN错误,则向第二网络发送激活APN的请求消息,其中,请求消息包含APN,第二网络除第一网络之外的可用网络的任意一种;The transmitter 603 is configured to: when the processor 601 determines that the reason for the failure to activate the APN is an APN error, send a request message for activating the APN to the second network, where the request message includes the APN, and the second network is available in addition to the first network. Any of them;
接收器604还可以用于,接收第二网络发送的响应消息,其中,响应消息包括用于指示激活所述PDN成功的返回值;The receiver 604 is further configured to receive a response message sent by the second network, where the response message includes a return value used to indicate that the PDN is activated successfully.
处理器601还用于,根据接收器604接收的所述第二网络发送的响应消息确定激活所述PDN成功;The processor 601 is further configured to determine, according to the response message sent by the second network that is received by the receiver 604, that the activation of the PDN is successful;
处理器601还用于,在确定激活所述PDN成功后,驻留在第二网络,其中,所述响应消息包括用于指示激活PDN成功的返回值。The processor 601 is further configured to: after determining that the PDN is successfully activated, camping on the second network, where the response message includes a return value indicating that the activation of the PDN is successful.
进一步的,further,
处理器601还可以,用于搜索除所述第一网络之外的可用网络;The processor 601 is further configured to search for an available network other than the first network;
优选的,第二网络为除第一网络之外的网络中的最高一级的网络。Preferably, the second network is the highest level network in the network other than the first network.
需要说明的是,可用网络的优先级的高低可以由终端根据网络参数确定,比如可以通过不同网络的数据速率来确定优先级的高低,也可以通过网络的其他参数确定,本发明对此不进行具体限定。It should be noted that the priority of the available network may be determined by the terminal according to the network parameters, for example, the data rate of different networks may be used to determine the priority level, or may be determined by other parameters of the network, and the present invention does not perform this. Specifically limited.
若处理器601确定终端在第二网络中激活PDN失败且失败的原因为APN错误,发射器603向除所述第一网络和所述第二网络之外的可用网络中的任意一个网络发送激活PDN的请求消息;If the processor 601 determines that the terminal fails to activate the PDN in the second network and the reason for the failure is an APN error, the transmitter 603 sends an activation to any one of the available networks except the first network and the second network. PDN request message;
若处理器601确定终端在所有可用网络激活PDN都失败后,处理器601恢复为搜索所有可用网络。If the processor 601 determines that the terminal has failed to activate the PDN on all available networks, the processor 601 reverts to searching for all available networks.
需要说明的是,本发明实施例的终端50可以应用于存在两种或两种以上可用网络的场景,当只存在两个可用网络时,即第一网络和第二网络时,当终端50在第一网络和第二网络激活PDN都失败后,恢复为搜索所有可用网络(即搜索第一网络和第二网络);It should be noted that the terminal 50 of the embodiment of the present invention may be applied to a scenario where there are two or more available networks. When there are only two available networks, that is, the first network and the second network, when the terminal 50 is After both the first network and the second network fail to activate the PDN, the search resumes searching for all available networks (ie, searching for the first network and the second network);
当存在两个以上可用网络时,假设存在4个可用网络,分别为第一网络、第二网络、第三网络、第四网络,当终端50在第一网络激活PDN失败后,可以选择向第二网络激活PDN,若终端50在第二网络激活PDN失 败后,可以选择向第三网络激活PDN,类似的,终端50在第三网络激活PDN失败后,可以选择向第四网络激活PDN,若当终端50在第一网络、第二网络、第三网络、第四网络中激活PDN都失败后,恢复为搜索所有可用网络(即搜索第一网络和第二网络、第三网络、第四网络)。When there are two or more available networks, it is assumed that there are four available networks, namely, the first network, the second network, the third network, and the fourth network. When the terminal 50 fails to activate the PDN in the first network, the terminal 50 may select the first The second network activates the PDN, if the terminal 50 activates the PDN in the second network. After the failure, the PDN may be activated to the third network. Similarly, after the third network fails to activate the PDN, the terminal 50 may select to activate the PDN to the fourth network, if the terminal 50 is in the first network, the second network, and the third. After the activation of the PDN in the network and the fourth network fails, the search is resumed to search for all available networks (ie, searching for the first network and the second network, the third network, and the fourth network).
可选的,处理器601可以根据接收器604接收的错误返回值判断终端在第一网络中激活PDN失败的原因是否为APN错误,例如,若接收器604接收的错误返回值为:Optionally, the processor 601 may determine, according to the error return value received by the receiver 604, whether the reason for the terminal failure to activate the PDN in the first network is an APN error, for example, if the error returned by the receiver 604 is:
服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED)或Service not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED) or
不可用的APN(MISSING_UNKNOWN_APN)或Unavailable APN (MISSING_UNKNOWN_APN) or
用户鉴权失败(USER_AUTHENTICATION)时,When user authentication fails (USER_AUTHENTICATION),
处理器601则可以确定终端在第一网络中激活PDN失败的原因为APN错误。The processor 601 can then determine that the reason for the terminal to fail to activate the PDN in the first network is an APN error.
本发明的实施例提供一种激活PDN的终端50,在确定终端50在第一网络中激活PDN失败的原因为APN错误后,用原APN在第二网络中激活PDN。实现在多网络环境下,一个可用的APN即可激活PDN而建立数据业务,使用户正常访问网络。克服了现有技术中APN与PDN不对应时无法访问网络的缺陷。The embodiment of the present invention provides a terminal 50 for activating a PDN. After determining that the reason for the terminal 50 to activate the PDN in the first network is an APN error, the original APN is used to activate the PDN in the second network. In a multi-network environment, an available APN can activate the PDN to establish a data service, so that the user can access the network normally. The defect that the APN cannot access the network when the APN does not correspond to the PDN is overcome.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (10)

  1. 一种终端激活分组数据网PDN的方法,其特征在于,包括:A method for activating a packet data network PDN by a terminal, comprising:
    终端接收第一网络发送的认证消息,所述认证消息包括用于指示激活所述PDN失败原因的错误返回值;Receiving, by the terminal, an authentication message sent by the first network, where the authentication message includes an error return value for indicating a reason for activating the PDN failure;
    所述终端根据所述认证消息中的错误返回值确定在第一网络中激活所述PDN失败的原因;Determining, by the terminal, a reason for failing to activate the PDN in the first network according to an error return value in the authentication message;
    若激活所述PDN失败的原因为接入点名称APN错误,则所述终端向第二网络发送激活所述PDN的请求消息,其中,所述请求消息包含所述APN,所述第二网络为除所述第一网络之外的可用网络的任意一种;If the reason for the failure to activate the PDN is that the access point name APN is incorrect, the terminal sends a request message for activating the PDN to the second network, where the request message includes the APN, and the second network is Any of the available networks other than the first network;
    若所述终端接收到所述第二网络发送的响应消息,则确定激活所述PDN成功,驻留在所述第二网络,其中,所述响应消息包括用于指示激活所述PDN成功的返回值。If the terminal receives the response message sent by the second network, determining to activate the PDN successfully, camping on the second network, where the response message includes a return for indicating that the PDN is successfully activated. value.
  2. 根据权利要求1所述的终端激活PDN的方法,其特征在于,在所述终端向第二网络发送激活所述PDN的请求消息之前,所述方法还包括,The method for activating a PDN by a terminal according to claim 1, wherein before the terminal sends a request message for activating the PDN to the second network, the method further includes:
    所述终端搜索除所述第一网络之外的可用网络。The terminal searches for available networks other than the first network.
  3. 根据权利要求1或2所述的终端激活PDN的方法,其特征在于,所述终端根据所述认证消息中的错误返回值确定在第一网络中激活所述PDN失败的原因,具体包括:The method for activating a PDN by a terminal according to claim 1 or 2, wherein the terminal determines, according to an error return value in the authentication message, a reason for the failure to activate the PDN in the first network, specifically:
    若所述认证消息中的错误返回值为:服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED);或不可用的APN(MISSING_UNKNOWN_APN);或用户鉴权失败(USER_AUTHENTICATION),则所述终端确定在所述第一网络中激活所述PDN失败的原因为APN错误。If the error return value in the authentication message is: service not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or unavailable APN (MISSING_UNKNOWN_APN); or user authentication failure (USER_AUTHENTICATION), the terminal determines to activate in the first network The reason for the PDN failure is an APN error.
  4. 根据权利要求1-3任一项所述的终端激活PDN的方法,其特征在于,所述第二网络为除所述第一网络之外的可用网络中的最高一级的网络。The method for activating a PDN by a terminal according to any one of claims 1 to 3, wherein the second network is a network of a highest level among available networks other than the first network.
  5. 根据权利要求2-4任一项所述的终端激活PDN的方法,其特征在于,所述方法还包括:The method for activating a PDN by a terminal according to any one of claims 2 to 4, wherein the method further comprises:
    若所述终端确定在所述第二网络中激活所述PDN失败且失败的原因为APN错误,则所述终端向除所述第一网络和所述第二网络之外的可用网络中的任意一个网络发送激活所述PDN的请求消息;If the terminal determines that the activation of the PDN in the second network fails and the reason for the failure is an APN error, the terminal sends any of the available networks except the first network and the second network. A network sends a request message to activate the PDN;
    若所述终端在所有可用网络激活所述PDN都失败,恢复为搜索所有可 用网络。If the terminal fails to activate the PDN on all available networks, the search is restored to all Use the network.
  6. 一种激活PDN的终端,其特征在于,包括:A terminal for activating a PDN, comprising:
    接收单元,用于接收第一网络发送的认证消息,所述认证消息包括用于指示激活所述PDN失败原因的错误返回值;a receiving unit, configured to receive an authentication message sent by the first network, where the authentication message includes an error return value for indicating a reason for activating the PDN failure;
    确定单元,用于根据所述认证消息中的所述错误返回值确定在第一网络中激活所述PDN失败的原因;a determining unit, configured to determine, according to the error return value in the authentication message, a reason for failing to activate the PDN in the first network;
    发送单元,用于在所述确定单元确定激活所述PDN失败的原因为接入点名称APN错误后,向第二网络发送激活所述PDN的请求消息,其中,所述请求消息包含所述APN,所述第二网络为除所述第一网络之外的可用网络的任意一种;a sending unit, configured to send, after the determining unit determines that the reason for the failure to activate the PDN is an access point name APN error, send a request message for activating the PDN to the second network, where the request message includes the APN The second network is any one of available networks other than the first network;
    所述接收单元还用于,接收所述第二网络发送的响应消息,其中,所述响应消息包括用于指示激活所述PDN成功的返回值;The receiving unit is further configured to receive a response message sent by the second network, where the response message includes a return value for indicating success of activating the PDN;
    所述确定单元还用于,根据所述接收单元接收的所述第二网络发送的响应消息确定激活所述PDN成功;The determining unit is further configured to determine, according to the response message sent by the second network that is received by the receiving unit, that the activation of the PDN is successful;
    搜索单元,用于在所述确定单元确定激活所述PDN成功后,驻留在所述第二网络。And a searching unit, configured to reside in the second network after the determining unit determines that the PDN is successfully activated.
  7. 根据权利要求6所述的激活PDN的终端,其特征在于,The terminal for activating a PDN according to claim 6, wherein
    所述搜索单元还用于,在所述发送单元向所述第二网络发送激活所述PDN的请求消息之前,搜索除所述第一网络之外的可用网络。The searching unit is further configured to search for an available network other than the first network before the sending unit sends a request message for activating the PDN to the second network.
  8. 根据权利要求6或7所述的激活PDN的终端,其特征在于,所述确定单元具体用于:The terminal for activating a PDN according to claim 6 or 7, wherein the determining unit is specifically configured to:
    若所述认证消息中的所述错误返回值为:服务未预定(SERVICE_OPTION_NOT_SUBSCRIBED);或不可用的APN(MISSING_UNKNOWN_APN);或用户鉴权失败(USER_AUTHENTICATION),则确定在所述第一网络中激活所述PDN失败的原因为APN错误。If the error return value in the authentication message is: the service is not scheduled (SERVICE_OPTION_NOT_SUBSCRIBED); or the unavailable APN (MISSING_UNKNOWN_APN); or the user authentication failure (USER_AUTHENTICATION), determining to activate the location in the first network The reason for the failure of the PDN is the APN error.
  9. 根据权利要求6-8任一项所述的激活PDN的终端,其特征在于,所述第二网络为除所述第一网络之外的可用网络中的最高一级的网络。The terminal for activating a PDN according to any one of claims 6-8, wherein the second network is a network of a highest level among available networks other than the first network.
  10. 根据权利要求7-9任一项所述的激活PDN的终端,其特征在于,A terminal for activating a PDN according to any one of claims 7-9, characterized in that
    所述发送单元还用于,在所述确定单元确定所述终端在所述第二网络中激活所述PDN失败且失败的原因为APN错误,向除所述第一网络和所述第二网络之外的可用网络中的任意一个网络发送激活所述PDN的请求消息; The sending unit is further configured to: after the determining unit determines that the terminal fails to activate the PDN in the second network, and the reason for the failure is an APN error, to the first network and the second network Sending a request message for activating the PDN to any one of the available networks other than the available networks;
    所述搜索单元还用于,在所述确定单元确定所述终端在所有可用网络激活所述PDN都失败后,恢复为搜索所有可用网络。 The searching unit is further configured to: after the determining unit determines that the terminal fails to activate the PDN after all available networks fail, revert to searching for all available networks.
PCT/CN2014/087673 2013-09-30 2014-09-28 Method and terminal for activating pdn WO2015043520A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310463750.8 2013-09-30
CN201310463750.8A CN103533528A (en) 2013-09-30 2013-09-30 Method and terminal for activating PDN (packet data network)

Publications (1)

Publication Number Publication Date
WO2015043520A1 true WO2015043520A1 (en) 2015-04-02

Family

ID=49935123

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087673 WO2015043520A1 (en) 2013-09-30 2014-09-28 Method and terminal for activating pdn

Country Status (2)

Country Link
CN (1) CN103533528A (en)
WO (1) WO2015043520A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11241387B2 (en) 2015-08-18 2022-02-08 Mayo Foundation For Medical Education And Research Carrier-binding agent compositions and methods of making and using the same

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533528A (en) * 2013-09-30 2014-01-22 华为终端有限公司 Method and terminal for activating PDN (packet data network)
CN104883716A (en) * 2014-02-27 2015-09-02 宇龙计算机通信科技(深圳)有限公司 Network processing apparatus and network switching method
CN105376094B (en) * 2015-11-24 2018-05-29 广东欧珀移动通信有限公司 Processing method, modem and the mobile terminal of network communicating function exception
CN105682117B (en) * 2015-12-30 2019-05-10 深圳市万普拉斯科技有限公司 Data service Activiation method and mobile terminal
CN107046705B (en) * 2016-02-05 2021-04-30 合勤科技股份有限公司 Method, system and network device for automatically obtaining access point name
CN106507434B (en) * 2016-10-24 2020-02-14 深圳市万普拉斯科技有限公司 Data processing method and device
CN113287335B (en) * 2019-01-15 2023-03-10 中兴通讯股份有限公司 Method and apparatus for preventing user tracking, storage medium, and electronic apparatus
CN113079500B (en) * 2019-12-18 2023-05-09 东莞宇龙通信科技有限公司 Terminal activation method and device, storage medium and electronic equipment
CN114268929B (en) * 2021-12-21 2023-08-11 展讯通信(天津)有限公司 Service activation method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080175178A1 (en) * 2007-01-18 2008-07-24 Bouygues Telecom Method for connecting a user of a mobile telephone network to a data transmission service
US20110080870A1 (en) * 2009-05-11 2011-04-07 Zte (Usa) Inc. Internetworking techniques for wireless networks
CN102763441A (en) * 2010-02-12 2012-10-31 Nec欧洲有限公司 Method and mobile terminal device for supporting multiple simultaneous PDN connections to the same APN
US8467782B1 (en) * 2007-05-07 2013-06-18 Marvell International, Ltd. System and method for multiple packet data network connectivity
CN103533528A (en) * 2013-09-30 2014-01-22 华为终端有限公司 Method and terminal for activating PDN (packet data network)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959250B (en) * 2010-11-04 2013-11-13 广州瀚信通信科技股份有限公司 Guidable terminal access method and network device for mobile communication system
CN102026152A (en) * 2010-11-25 2011-04-20 中兴通讯股份有限公司 Mobile terminal as well as system and method for realizing access point name setting
US20120289151A1 (en) * 2011-05-09 2012-11-15 Chih-Hsiang Wu Method of Handling Attach Procedure and Related Communication Device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080175178A1 (en) * 2007-01-18 2008-07-24 Bouygues Telecom Method for connecting a user of a mobile telephone network to a data transmission service
US8467782B1 (en) * 2007-05-07 2013-06-18 Marvell International, Ltd. System and method for multiple packet data network connectivity
US20110080870A1 (en) * 2009-05-11 2011-04-07 Zte (Usa) Inc. Internetworking techniques for wireless networks
CN102763441A (en) * 2010-02-12 2012-10-31 Nec欧洲有限公司 Method and mobile terminal device for supporting multiple simultaneous PDN connections to the same APN
CN103533528A (en) * 2013-09-30 2014-01-22 华为终端有限公司 Method and terminal for activating PDN (packet data network)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11241387B2 (en) 2015-08-18 2022-02-08 Mayo Foundation For Medical Education And Research Carrier-binding agent compositions and methods of making and using the same

Also Published As

Publication number Publication date
CN103533528A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
WO2015043520A1 (en) Method and terminal for activating pdn
US10848569B2 (en) Session processing method and related device
US10736026B2 (en) Voice service in evolved packet system
JP5805894B2 (en) Method and apparatus for subscription management in dual SIM single standby device
US8238267B2 (en) Voice service in evolved packet system
US8199731B2 (en) Method and apparatus for facilitating switched packet data services on multiple networks
KR102162808B1 (en) Wireless communication method and apparatus
US20100029248A1 (en) Method, apparatus and system for managing user access to network
US20120014381A1 (en) Voice service in evolved packet system
US9167415B2 (en) Cloud-based connectivity information discovery
US11812318B2 (en) Preserving emergency call during failure to transfer
US20140376360A1 (en) Method and apparatus for supporting a communication service
WO2016197809A2 (en) Access point switching method and device
KR20160104058A (en) Service processing method and device
WO2013181805A1 (en) Method for returning to long term evolution network, mobile switching centre and system
WO2016101791A1 (en) Fault processing method, device and system
WO2010078783A1 (en) Method, device and system for processing circuit switching domain service
WO2022033521A1 (en) Session update method, terminal, and network-side device
JP2023520378A (en) Method and apparatus for PDU session establishment
EP4197225A1 (en) Preserving emergency call during failure to transfer subsequent to registration with the target network
US9955386B2 (en) Switchover service for network selection fallback
WO2014166441A1 (en) Long term evolution terminal, communication method, and computer storage medium
WO2023185800A1 (en) Method and apparatus for processing smf set mismatch
CN114982311B (en) Data closing method, device, equipment and storage medium
WO2013063776A1 (en) Service processing method, device and system

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: 14848475

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: 14848475

Country of ref document: EP

Kind code of ref document: A1