WO2016015206A1 - 一种因特网协议ip的激活方法和终端设备 - Google Patents

一种因特网协议ip的激活方法和终端设备 Download PDF

Info

Publication number
WO2016015206A1
WO2016015206A1 PCT/CN2014/083161 CN2014083161W WO2016015206A1 WO 2016015206 A1 WO2016015206 A1 WO 2016015206A1 CN 2014083161 W CN2014083161 W CN 2014083161W WO 2016015206 A1 WO2016015206 A1 WO 2016015206A1
Authority
WO
WIPO (PCT)
Prior art keywords
type
apn
activation request
pdp
pdp activation
Prior art date
Application number
PCT/CN2014/083161
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to PCT/CN2014/083161 priority Critical patent/WO2016015206A1/zh
Publication of WO2016015206A1 publication Critical patent/WO2016015206A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication

Definitions

  • the present invention relates to the field of wireless communication technologies, and in particular, to an Internet Protocol (IP) activation method and a terminal device.
  • IP Internet Protocol
  • IP Internet Protocol Version 4
  • IPV4 addresses use 32-bit binary encoding, which is 4 bytes. Since IPV4 addresses can only use more than 4 billion IP addresses, with the increasing number of terminal devices connected to the Internet, IPV4 addresses are far from meeting the increasing demand of Internet users worldwide.
  • Internet Protocol 6 Internet Protocol Version6, IPV6
  • the length of the IPV6 address is four times the length of the IPV4 address, and the IPV6 address uses 128-bit binary encoding, which is 16 bytes.
  • IPV6 Internet Protocol version 6
  • IPV6 Internet Protocol version 6
  • IPV6 Internet Protocol version 6
  • IPV6 Internet Protocol version 6
  • PDP Packet Data Protocol
  • IPV4 has evolved very maturely and not all networks currently support IPV6, the transition from IPV4 to IPV6 may take a long time.
  • the current common method is to configure the protocol type of ⁇ to IPV4V6, that is, support both IPV4 and IPV6. In this way, even if the network does not support IPV6, the terminal can establish a connection with the network using the PDP connection of IPV4.
  • the terminal For a user who only supports IPV4, the terminal uses the protocol type IPV4V6 to initiate the PDP activation.
  • the PPV of the IPV4 type can be successfully activated, and the reason value #50 is returned, indicating that only IPV4 is supported, specifically including two.
  • SIM Subscriber Identity Module
  • the terminal For users who only support IPV6, the terminal uses the APN with IPV4V6 dual stack type to initiate PDP activation.
  • IPV6 type PDP can be successfully activated, and the reason value #51 is returned, indicating that the terminal only supports IPV6, specifically including two cases: First, the SIM card registered by the user only has IPV6 enabled, and second, the network only supports IPV6;
  • the APN with the APN protocol type of IPV4V6 is used to initiate PDP activation, which can successfully complete the activation of IPV4 and IPV6.
  • the network will return the IPV4 address and the IPV6 address.
  • the embodiment of the present invention provides an IP activation method and a terminal device, which are used to solve the problem that the network does not recognize the IPV4V6 protocol type in the prior art, and the PDP activation initiated by the terminal using the IPV4V6 dual-stack type APN is directly rejected by the network. As a result, the APN using the IPV4V6 dual stack type cannot successfully establish a PDP connection.
  • a method for activating an Internet Protocol IP comprising:
  • the terminal modifies the protocol type of the APN, where the protocol type of the APN carried in the first PDP activation request is the Internet protocol version IPV4V6 dual stack. Types of;
  • the terminal initiates a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type.
  • the method further includes: determining, by the terminal, the first PDP The reason why the activation request was rejected;
  • Modifying, by the terminal, the protocol type of the APN including: modifying, by the terminal, the protocol type of the APN when determining that the reason that the first PDP activation request is rejected is a specified reason;
  • the specified reason includes at least one of the following reasons:
  • the carried APN is unknown or does not carry APN; the PDP address or PDP type is unknown; the user signing fails; the activation is rejected by the general packet radio system gateway supporting node GGSN, the serving gateway S-GW or the data packet network gateway PDN GW; the activation is rejected , and did not explain the reason.
  • the modifying, by the terminal, the protocol type of the APN includes:
  • the terminal sets the protocol type of the APN to an IPV4 type; or
  • the terminal sets the protocol type of the APN to an IPV6 type.
  • the method further includes: The terminal sets the protocol type of the APN to the IPV6 type, and the terminal initiates a third PDP activation request to the network server to activate the data service, where the protocol type of the APN carried in the third PDP activation request For the IPV6 type;
  • the method further includes: the terminal setting the protocol type of the APN to an IPV4 type, and the terminal initiating the network server And a third PDP activation request to activate the data service, where the protocol type of the APN carried in the third PDP activation request is an IPV4 type.
  • the method further includes:
  • the terminal determines that the IPV4 type PDP connection is activated; or If the terminal determines that the first PDP activation request is rejected because only IPV6 is supported, the terminal determines that an IPV6 type PDP connection has been activated.
  • a terminal device includes:
  • a first processing module configured to modify a protocol type of the APN after the first packet data protocol PDP activation request initiated by the network server is rejected, where the protocol type of the APN carried in the first PDP activation request is an Internet protocol Version IPV4V6 dual stack type;
  • the second processing module is configured to initiate a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type.
  • the first processing module is specifically configured to:
  • the specified reason includes at least one of the following reasons:
  • the carried APN is unknown or does not carry APN; the PDP address or PDP type is unknown; the user signing fails; the activation is rejected by the general packet radio system gateway supporting node GGSN, the serving gateway S-GW or the data packet network gateway PDN GW; the activation is rejected , and did not explain the reason.
  • the first processing module modifies the protocol type of the APN, including:
  • the protocol type of the APN is set to the IPV6 type.
  • the second processing module is further Used for:
  • the second processing module is further configured to:
  • the protocol type of the APN is set to the IPV4 type, and the third PDP activation request is initiated to the network server to activate the data service, where the protocol type of the APN carried in the third PDP activation request is of the IPV4 type.
  • the first processing module is further configured to:
  • a terminal device includes:
  • a processor configured to modify a protocol type of the APN after the first packet data protocol PDP activation request initiated by the transceiver to the network server is denied, where the protocol type of the APN carried in the first PDP activation request is an Internet protocol Version IPV4V6 dual stack type;
  • the transceiver is configured to initiate a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type.
  • the processor is specifically configured to:
  • the specified reason includes at least one of the following reasons:
  • the carried APN is unknown or does not carry APN; the PDP address or PDP type is unknown; the user signing fails; the activation is rejected by the general packet radio system gateway supporting node GGSN, the serving gateway S-GW or the data packet network gateway PDN GW; the activation is rejected , and did not explain the reason.
  • the processor modifies the protocol type of the APN, including:
  • the protocol type of the APN is set to the IPV6 type.
  • the processor is further used to :
  • the processor is further configured to:
  • the type is IPV4 type.
  • the processor is further configured to:
  • the terminal device modifies the protocol type of the APN, where the APN carried in the first PDP activation request
  • the protocol type is IPV4V6 dual-stack type; and the terminal device initiates a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type. Since the terminal modifies the protocol type of the APN, In order to enable the terminal to establish data services with a network that does not recognize the IPV4V6 dual stack type.
  • FIG. 1 is a flowchart of an IP activation method according to an embodiment of the present invention
  • Embodiment 1 of the present invention is a flow chart of Embodiment 1 of the present invention.
  • FIG. 3 is a schematic diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of another terminal device according to an embodiment of the present invention. detailed description
  • the terminal after the terminal fails to activate the PDP initiated by the APN of the IPV4V6 dual-stack type, the terminal sets the protocol type of the APN to the IPV4 type or the IPV6 type, and initiates the PDP activation process to the network again. In order to enable the terminal to establish a data service link with a network that does not recognize the IPV4V6 dual stack type.
  • the words “first”, “second”, “third” and the like are used to distinguish the multiple PDP activation requests initiated by the terminal, but the first PDP activation request, the second PDP The format of the activation request and the third PDP activation request are the same.
  • a method for activating an Internet Protocol IP includes:
  • the terminal modifies the protocol type of the APN, where the protocol type of the APN carried in the first PDP activation request is an IPV4V6 dual stack type.
  • the terminal initiates a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type.
  • the terminal modifies the protocol type of the APN, where the APN carried in the first PDP activation request
  • the protocol type is IPV4V6 dual-stack type; and the terminal initiates a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type.
  • the terminal modifies the protocol type of the APN so that the terminal can establish data services with the network that cannot identify the IPV4V6 dual stack type.
  • the protocol type of the APN is generally set to the IPV4V6 dual stack type by default. Because the terminal itself cannot know the user permission type, when the APN carrying the IPV4V6 dual stack type initiates the first PDP activation request, if the network server cannot identify the IPV4V6 dual stack type, the first PDP activation request is rejected. Therefore, the terminal and the network cannot establish data services.
  • the terminal modifies the protocol type of the APN (for example, setting the protocol type of the APN to the IPV4 type or the IPV6 type), and initiating the modified APN to the network server.
  • the second PDP activation request to activate the data service enables the terminal to establish a data service with a network that does not recognize the IPV4V6 dual stack type.
  • the method further includes: determining, by the terminal, the reason that the first PDP activation request is rejected.
  • the terminal modifies the protocol type of the APN, including: the terminal modifies the protocol type of the APN when determining that the reason that the first PDP activation request is rejected is the specified reason.
  • the specified reasons include but are not limited to at least one of the following reasons:
  • the APN carried is unknown or does not carry APN (Unknown or missing APN), that is, the cause value
  • the PDP address is unknown or the PDP type is unknown (Unknown PDP address or PDP type), that is, the cause value #28;
  • the activation is rejected by the GGSN, Serving GW or PDN GW, ie, the value of the cause is # Gateway Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation Activation 30; Activation is rejected, and the reason is not resolved (Activated rejected, unspecified), that is, the cause value
  • the terminal may obtain the reason that the first PDP activation request is rejected from the reject message returned by the network server, and if the reason for the carrier is the specified reason, the terminal considers that the current activation Failed, modify the protocol type of APN to re-attempt to activate data services.
  • the terminal modifies the protocol type of the APN, and includes the following two implementation manners: Method 1.
  • the terminal sets the protocol type of the APN to the IPV4 type.
  • the terminal sets the protocol type of the APN to the IPV4 type, and the terminal initiates a second PDP activation request to the network server to attempt to activate the data service, where the second PDP activation request carries the modified APN (ie, the APN).
  • the protocol type is IPV4 type); if the APN protocol type is IPV4 type second PDP activation request is accepted (accept), the terminal can establish data service with the network server.
  • the method further includes:
  • the terminal sets the protocol type of the APN to the IPV6 type, and the terminal initiates a third PDP activation request to the network server to activate the data service.
  • the protocol type of the APN carried in the third PDP activation request is IPV6.
  • the terminal may establish a data service with the network server; if the third PDP activation request is rejected, the terminal does not perform any attempt processing.
  • the terminal sets the protocol type of the APN to the IPV6 type.
  • the terminal sets the protocol type of the APN to the IPV6 type, and the terminal initiates a second PDP activation request to the network server to attempt to activate the data service, where the second PDP activation request carries the modified APN (ie, the APN).
  • the protocol type is IPV6 type); if the APN protocol type is IPV6 type second PDP activation request is accepted (accept), the terminal can establish data service with the network server.
  • the method further includes: The terminal sets the protocol type of the APN to the IPV4 type, and the terminal initiates a third PDP activation request to the network server to activate the data service.
  • the protocol type of the APN carried in the third PDP activation request is IPV4.
  • the terminal may establish a data service with the network server; if the third PDP activation request is rejected, the terminal does not perform any attempt processing.
  • the embodiment of the present invention may modify the protocol type of the APN in any of the above manners to activate the data service. Since the current network generally supports an IPV4 type protocol, preferably, the protocol type of the APN is modified in the above manner to activate the data service.
  • the method further includes:
  • the terminal determines that the first PDP activation request is rejected because only IPV4 is supported (ie, cause value #50), the terminal determines that the IPV4 type PDP connection is activated; or
  • the terminal determines that the first PDP activation request is rejected because only IPV6 is supported (ie, cause value #51), the terminal determines that the PPV connection of the IPV6 type is activated.
  • the terminal may obtain the reason why the first PDP activation request is rejected from the reject message returned by the network server. If the reason value is #50 (that is, only IPV4 is supported), the terminal considers the IPV4 type PDP. The connection has been activated, and it is determined that the activation is successful. If the reason value is #51 (that is, only IPV6 is supported), the terminal considers that the IPV6 type PDP connection has been activated, and it is determined that the activation is successful.
  • Embodiment 1 In a network supporting IPV6, the terminal generally initiates a PDP activation request by using an APN with a protocol type of IPV4V6 dual stack type.
  • the specific process is shown in FIG. 2, and includes the following steps: 1: The terminal initiates a PDP activation request by using an APN of the IPV4V6 dual-stack type; if the PDP activation request is accepted, the terminal ends the PDP activation process and establishes a data service. If the PDP activation request is rejected, go to step 2.
  • the terminal detects whether the IP type of the APN is the IPV4V6 dual stack type. 3: If it is IPV4V6 dual stack type, the terminal will detect whether the error type is cause value #50 (ie only supports IPV4) or cause value #51 (ie only supports IPV6).
  • the terminal determines that the PDP is successfully activated, and ends the PDP activation process to establish a data service.
  • step 4 If no, the PDP activation process is abnormal, the terminal performs step 4;
  • the terminal changes the protocol type in the APN to the IPV4 type, and then uses this APN to re-initiate the PDP activation request.
  • step 5 If the PDP activation request is accepted, the terminal ends the PDP activation process and establishes a data service; if the PDP activation request is rejected, step 5 is performed.
  • the terminal then changes the protocol type in the APN to the IPV6 type, and then attempts to re-initiate the PDP activation request using the APN;
  • the terminal ends the PDP activation process to establish a data service; if the PDP activation request is rejected, the terminal determines that the activation fails.
  • Embodiment 2 In this embodiment, the network of the A operator only supports IPV4.
  • the user's authority is IP V4.
  • the terminal used by the user is IP V6.
  • the protocol type of the terminal in the current APN is IPV4V6 dual stack type.
  • the specific cause value is the cause value #28, that is, Indicates "The protocol type indicating that the PDP address is unknown or the PDP type is unknown APN is not recognized.”
  • the terminal After receiving the cause value returned by the network side, the terminal sets the protocol type in the current APN to the IPV4 type, and attempts to initiate a PDP activation process to the network again. At this time, since the network supports IPV4, the re-initiated The PDP is successfully activated to establish a data service.
  • an embodiment of the present invention provides a terminal device.
  • the terminal device includes:
  • the first processing module 31 is configured to modify the protocol type of the APN after the first PDP activation request initiated by the network server is rejected, where the association of the APN carried in the first PDP activation request
  • the type of negotiation is IPV4V6 dual stack type
  • the second processing module 32 is configured to initiate a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type.
  • the first processing module modifies the protocol type of the APN, where the protocol type of the APN carried in the first PDP activation request is IPV4V6 dual stack.
  • the second processing module initiates a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type. Since the first processing module modifies the protocol type of the APN, the associated terminal device can establish data services with the network that cannot recognize the IPV4V6 dual stack type.
  • the first processing module 31 is specifically configured to:
  • the specified reason includes at least one of the following reasons:
  • the carried APN is unknown or does not carry APN, that is, the cause value #27;
  • the PDP address or PDP type is unknown, that is, the cause value #28;
  • the activation is rejected by the GGSN, S-GW or PDN GW, ie the cause value #30;
  • the first processing module 31 may obtain the reason why the first PDP activation request is rejected from the reject message returned by the network server. If the reason for the carrying is the specified reason, the first processing module 31 considers the present The secondary activation fails, modifying the protocol type of the APN to re-attempt to activate the data service.
  • the first processing module 31 modifies the protocol type of the APN, and includes the following two implementation modes:
  • Method 1 Set the protocol type of APN to IPV4 type.
  • the first processing module 31 sets the protocol type of the APN to the IPV4 type, and Initiating a second PDP activation request to the network server to attempt to activate the data service, where the second PDP activation request carries the modified APN (ie, the protocol type of the APN is IPV4 type); if the protocol type of the APN is the second type of the IPV4 type After the PDP activation request is accepted (accept), the first processing module 31 determines that the associated terminal device can establish a data service with the network server.
  • the second processing module 32 is further configured to:
  • the protocol type of the APN is set to the IPV6 type, and the third PDP activation request is initiated to the network server to activate the data service.
  • the protocol type of the APN carried in the third PDP activation request is IPV6.
  • the second processing module 32 determines that the associated terminal device can establish a data service with the network server; if the third PDP activation request is rejected, the second processing module 32 does not Do any attempt processing.
  • Method 2 Set the protocol type of APN to IPV6 type.
  • the first processing module 31 sets the protocol type of the APN to the IPV6 type, and initiates a second PDP activation request to the network server to attempt to activate the data service, where the second PDP activation request carries the modified APN (ie, The protocol type of the APN is of the IPV6 type); if the second PDP activation request of the APN is of the IPV6 type, the first processing module 31 determines that the associated terminal device can establish a data service with the network server.
  • the second processing module 32 is further configured to:
  • the protocol type of the APN is set to the IPV4 type, and the third PDP activation request is initiated to the network server to activate the data service.
  • the protocol type of the APN carried in the third PDP activation request is IPV4.
  • the second processing module 32 determines that the associated terminal device can establish a data service with the network server; if the third PDP activation request is rejected, the second processing module 32 does not perform Any attempt to deal with it.
  • the embodiment of the present invention may modify the protocol type of the APN in any of the above manners to activate the data.
  • the protocol type of the APN is modified in the above manner 1 to activate the data service.
  • the first processing module 31 may obtain, from the reject message returned by the network server, the reason why the first PDP activation request is rejected. If the reason value carried is #50 (ie, only IPV4 is supported), the IPV4 is considered. The type of PDP connection has been activated, and it is determined that the activation is successful. If the reason value is #51 (that is, only IPV6 is supported), the first processing module 31 considers that the IPV6 type PDP connection has been activated, and determines that the activation is successful. .
  • the embodiment of the present invention further provides a terminal device.
  • the terminal device includes:
  • the processor 42 is configured to modify the protocol type of the APN after the first PDP activation request initiated by the transceiver 41 to the network server is denied, where the protocol type of the APN carried in the first PDP activation request is the IPV4V6 dual stack type. ;
  • the transceiver 41 is configured to initiate a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type.
  • the transceiver 41 and the processor 42 are connected by a bus.
  • the processor modifies the protocol type of the APN, where the protocol type of the APN carried in the first PDP activation request is IPV4V6 dual stack. And the transceiver initiates a second PDP activation request to the network server to activate the data service, where the second PDP activation request carries the modified protocol type. Since the processor modifies the protocol type of the APN, the associated terminal device can establish data services with the network that cannot recognize the IPV4V6 dual stack type.
  • the processor 42 is specifically configured to:
  • the specified reason includes at least one of the following reasons:
  • the carried APN is unknown or does not carry APN, that is, the cause value #27;
  • the PDP address or PDP type is unknown, that is, the cause value #28;
  • the activation is rejected by the GGSN, S-GW or PDN GW, ie the cause value #30;
  • the processor 42 may obtain the reason that the first PDP activation request is rejected from the reject message returned by the network server. If the reason for the carrier is the specified reason, the processor 42 considers that the activation fails. Modify the protocol type of the APN to retry the activation of the data service.
  • the processor 42 modifies the protocol type of the APN, and includes the following two implementation manners: Method 1. Set the protocol type of the APN to the IPV4 type.
  • the processor 42 sets the protocol type of the APN to the IPV4 type, and causes the transceiver 41 to initiate a second PDP activation request to the network server to attempt to activate the data service, where the second PDP activation request carries the modified APN.
  • the protocol type of the APN is IPV4 type
  • the processor 42 determines that the associated terminal device can establish a data service with the network server.
  • the processor 42 is further configured to:
  • the protocol type of the APN is set to the IPV6 type, and the transceiver 41 sends a third PDP activation request to the network server to activate the data service.
  • the protocol type of the APN carried in the third PDP activation request is IPV6.
  • the processor 42 determines that the associated terminal device can establish a data service with the network server; if the third PDP activation request is rejected, the location The processor 42 does not perform any attempt processing.
  • Method 2 Set the protocol type of APN to IPV6 type.
  • the processor 42 sets the protocol type of the APN to the IPV6 type, and causes the transceiver 41 to initiate a second PDP activation request to the network server to attempt to activate the data service, where the second PDP activation request carries the modified APN.
  • the protocol type of the APN is IPV6 type
  • the processor 42 determines that the associated terminal device can establish a data service with the network server.
  • the processor 42 is further configured to:
  • the protocol type of the APN is set to the IPV4 type, and the transceiver 41 is caused to send a third PDP activation request to the network server to activate the data service.
  • the protocol type of the APN carried in the third PDP activation request is of the IPV4 type.
  • the processor 42 determines that the associated terminal device can establish a data service with the network server; if the third PDP activation request is rejected, the processor 42 does not perform any attempt processing.
  • the embodiment of the present invention may modify the protocol type of the APN in any of the above manners to activate the data service. Since the current network generally supports an IPV4 type protocol, preferably, the protocol type of the APN is modified in the above manner to activate the data service.
  • the processor 42 may obtain, from the reject message returned by the network server, the reason why the first PDP activation request is rejected. If the reason value carried is #50 (ie, only IPV4 is supported), the IPV4 is considered to have been Activate, confirm that the activation is successful; if the reason value carried is #51 (ie only support With IPV6), the processor 42 considers that IPV6 has been activated, and determines that the activation is successful.
  • the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • the invention can be embodied in the form of one or more computer program products embodied on a computer-usable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

本发明公开了一种IP的激活方法和终端设备,用于解决现有技术中由于网络无法识别IPV4V6的协议类型,使得终端使用IPV4V6双栈类型的APN发起的PDP激活会被网络直接拒绝,从而导致使用IPV4V6双栈类型的APN无法成功建立PDP连接的问题。方法包括:终端向网络服务器发起的第一PDP激活请求被拒绝后,修改APN的协议类型,该第一PDP激活请求中携带的APN的协议类型为IPV4V6双栈类型;该终端向网络服务器发起第二PDP激活请求,以激活数据业务,该第二PDP激活请求中携带修改后的协议类型。由于终端修改了APN的协议类型,以使该终端能够与无法识别IPV4V6双栈类型的网络建立数据业务。

Description

一种因特网协议 IP的激活方法和终端设备
技术领域
本发明涉及无线通信技术领域, 特别涉及一种因特网协议 (Internet Protocol, IP ) 的激活方法和终端设备。 背景技术
目前 , 我们使用的互联网协议( Internet Protocol , IP )地址大多数是互联 网协议版本 4 ( Internet Protocol Version4, IPV4 ), IPV4 地址使用 32 位二进 制编码, 即 4个字节。 由于 IPV4 地址最多只能使用 40 多亿个 IP地址, 随 着接入互联网的终端设备的数量越来越多, IPV4 地址已远远不能满足日益增 加的全球互联网用户的需求, 互联网协议 6 ( Internet Protocol Version6 , IPV6 ) 技术应运而生, 并得到了较为广泛的应用。 IPV6 地址的长度是 IPV4 地址长 度的 4倍, IPV6 地址使用 128 位二进制编码, 即 16 个字节。
随着互联网协议版本 6 ( IP Version 6, IPV6; Internet Protocol , IP ) 的使 用,各种终端中也已开始支持 IPV6了。对于手机等终端来说,如果要访问 IPV6 的网址, 必须先建立支持 IPV6 的分组数据协议连接 ( Packet Data Protocol , PDP ) , 所以在发起 PDP激活的时候,接入点名称( Access Point Name , ΑΡΝ ) 的协议类型就会配置为 IPV6。
然而, 由于 IPV4已发展的非常成熟, 并且目前不是所有的网络都能支持 IPV6, 因此, 实现从 IPV4 向 IPV6 的过渡可能会需要一段很长的时间。 为了 兼容 IPV4, 目前常用的方式是, 将 ΑΡΝ的协议类型配置为 IPV4V6的方式, 即同时支持 IPV4和 IPV6。这样,即使网络不支持 IPV6,终端也可以使用 IPV4 的 PDP连接与网络建立连接。
对于权限为仅支持 IPV4的用户,其所使用的终端使用协议类型为 IPV4V6 的 ΑΡΝ去发起 PDP激活时, 可以成功激活 IPV4类型的 PDP , 并返回原因值 #50, 表示仅支持 IPV4, 具体包括两种情况: 一是用户所注册的用户身份识别 ( Subscriber Identity Module, SIM )卡仅开通了 IPV4,二是网络仅支持 IPV4; 对于权限为仅支持 IPV6的用户,其所使用的终端使用协议类型为 IPV4V6 双栈类型的 APN去发起 PDP激活时, 可以成功激活 IPV6类型的 PDP , 并返 回原因值 #51 , 表示该终端仅支持 IPV6, 具体包括两种情况: 一是用户所注册 的 SIM卡仅开通了 IPV6 , 二是网络仅支持 IPV6;
对于权限为同时支持 IPV4和 IPV6双栈的终端, 使用 APN协议类型为 IPV4V6的 APN去发起 PDP激活,可以成功完成 IPV4和 IPV6的激活,此时, 网络会返回 IPV4的地址和 IPV6的地址。
但是实际网络中, 由于运营商的网络各不相同, 会存在各种问题, 例如, 有的网络无法识别 IPV4V6的协议类型,此时,若权限为同时支持 IPV4和 IPV6 双栈类型的终端, 使用 APN协议类型为 IPV4V6双栈类型的 APN发起 PDP 激活,该网络会直接拒绝该 PDP激活,从而导致使用 IPV4V6双栈类型的 APN 无法成功建立 PDP连接。 发明内容
本发明实施例提供了一种 IP的激活方法和终端设备, 用于解决现有技术 中由于网络无法识别 IPV4V6的协议类型,使得终端使用 IPV4V6双栈类型的 APN发起的 PDP激活会被网络直接拒绝, 从而导致使用 IPV4V6双栈类型的 APN无法成功建立 PDP连接的问题。
第一方面, 一种互联网协议 IP的激活方法, 该方法包括:
终端向网络服务器发起的第一分组数据协议 PDP激活请求被拒绝后, 所 述终端修改 APN的协议类型, 其中, 所述第一 PDP激活请求中携带的 APN 的协议类型为互联网协议版本 IPV4V6双栈类型;
所述终端向所述网络服务器发起第二 PDP激活请求, 以激活数据业务, 其中 , 所述第二 PDP激活请求中携带修改后的协议类型。
结合第一方面, 在第一种可能的实现方式中, 在所述终端向所述网络服 务器发送的第一 PDP激活请求被拒绝后,还包括:所述终端确定所述第一 PDP 激活请求被拒绝的原因;
所述终端修改所述 APN的协议类型,包括:所述终端在确定所述第一 PDP 激活请求被拒绝的原因为指定原因时, 修改所述 APN的协议类型;
其中, 所述指定原因包括以下原因的至少一个:
所携带的 APN未知或未携带 APN; PDP地址或 PDP类型未知; 用户签 权失败; 激活被通用分组无线系统网关支持节点 GGSN、 服务网关 S-GW或 数据分组网网关 PDN GW拒绝; 激活被拒绝, 且未说明原因。
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述终端修改所述 APN的协议类型, 包括:
所述终端将所述 APN的协议类型设置为 IPV4类型; 或者
所述终端将所述 APN的协议类型设置为 IPV6类型。
结合第一方面的第二种可能的实现方式, 在第三种可能的实现方式中, 若所述 APN的协议类型为 IPV4类型的第二 PDP激活请求被拒绝后, 该方法 还包括: 所述终端将所述 APN的协议类型设置为 IPV6类型, 以及所述终端 向所述网络服务器发起第三 PDP激活请求, 以激活数据业务, 其中, 所述第 三 PDP激活请求中携带的 APN的协议类型为 IPV6类型;
若所述 APN的协议类型为 IPV6类型的第二 PDP激活请求被拒绝后, 该 方法还包括: 所述终端将所述 APN的协议类型设置为 IPV4类型, 以及所述 终端向所述网络服务器发起第三 PDP激活请求, 以激活数据业务, 其中, 所 述第三 PDP激活请求中携带的 APN的协议类型为 IPV4类型。
结合第一方面的第一种可能的实现方式、 第一方面的第二种可能的实现 方式、 或者结合第一方面的第三种可能的实现方式, 在第四种可能的实现方 式中,
在所述终端向所述网络服务器发送的第一 PDP激活请求被拒绝后, 还包 括:
若所述终端确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV4, 则所述终端确定已激活 IPV4类型的 PDP连接; 或者 若所述终端确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV6, 则所述终端确定已激活 IPV6类型的 PDP连接。
第二方面, 一种终端设备, 该终端设备包括:
第一处理模块, 用于在向网络服务器发起的第一分组数据协议 PDP激活 请求被拒绝后, 修改 APN的协议类型, 其中, 所述第一 PDP激活请求中携带 的 APN的协议类型为互联网协议版本 IPV4V6双栈类型;
第二处理模块, 用于向所述网络服务器发起第二 PDP激活请求, 以激活 数据业务, 其中, 所述第二 PDP激活请求中携带修改后的协议类型。
结合第二方面, 在第一种可能的实现方式中, 所述第一处理模块在向所 述网络服务器发送的第一 PDP激活请求被拒绝后, 具体用于:
确定所述第一 PDP激活请求被拒绝的原因; 以及在确定所述第一 PDP激 活请求被拒绝的原因为指定原因时, 修改所述 APN的协议类型;
其中, 所述指定原因包括以下原因的至少一个:
所携带的 APN未知或未携带 APN; PDP地址或 PDP类型未知; 用户签 权失败; 激活被通用分组无线系统网关支持节点 GGSN、 服务网关 S-GW或 数据分组网网关 PDN GW拒绝; 激活被拒绝, 且未说明原因。
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述第一处理模块修改所述 APN的协议类型, 包括:
将所述 APN的协议类型设置为 IPV4类型; 或者
将所述 APN的协议类型设置为 IPV6类型。
结合第二方面的第二种可能的实现方式, 在第三种可能的实现方式中, 若所述 APN的协议类型为 IPV4类型的第二 PDP激活请求被拒绝后, 所述第 二处理模块还用于:
将所述 APN的协议类型设置为 IPV6类型, 以及向所述网络服务器发起 第三 PDP激活请求, 以激活数据业务, 其中, 所述第三 PDP激活请求中携带 的 APN的协议类型为 IPV6类型;
若所述 APN的协议类型为 IPV6类型的第二 PDP激活请求被拒绝后, 所 述第二处理模块还用于:
将所述 APN的协议类型设置为 IPV4类型, 以及向所述网络服务器发起 第三 PDP激活请求, 以激活数据业务, 其中, 所述第三 PDP激活请求中携带 的 APN的协议类型为 IPV4类型。
结合第二方面的第一种可能的实现方式、 第二方面的第二种可能的实现 方式、 或者第二方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述第一处理模块在向所述网络服务器发送的第一 PDP激活请求被拒绝后, 还用于:
若确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV4 ,则确定已 激活 IPV4类型的 PDP连接; 或者
若确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV6 ,则确定已 激活 IPV6类型的 PDP连接。
第三方面, 一种终端设备, 该终端设备包括:
处理器, 用于在收发机向网络服务器发起的第一分组数据协议 PDP激活 请求被拒绝后, 修改 APN的协议类型, 其中, 所述第一 PDP激活请求中携带 的 APN的协议类型为互联网协议版本 IPV4V6双栈类型;
收发机, 用于向所述网络服务器发起第二 PDP激活请求, 以激活数据业 务, 其中, 所述第二 PDP激活请求中携带修改后的协议类型。
结合第三方面, 在第一种可能的实现方式中, 所述收发机在向所述网络 服务器发送的第一 PDP激活请求被拒绝后, 所述处理器具体用于:
确定所述第一 PDP激活请求被拒绝的原因; 以及在确定所述第一 PDP激 活请求被拒绝的原因为指定原因时, 修改所述 APN的协议类型;
其中, 所述指定原因包括以下原因的至少一个:
所携带的 APN未知或未携带 APN; PDP地址或 PDP类型未知; 用户签 权失败; 激活被通用分组无线系统网关支持节点 GGSN、 服务网关 S-GW或 数据分组网网关 PDN GW拒绝; 激活被拒绝, 且未说明原因。
结合第三方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述处理器修改所述 APN的协议类型, 包括:
将所述 APN的协议类型设置为 IPV4类型; 或者
将所述 APN的协议类型设置为 IPV6类型。
结合第三方面的第二种可能的实现方式, 在第三种可能的实现方式中, 若所述 APN的协议类型为 IPV4类型的第二 PDP激活请求被拒绝后, 所述处 理器还用于:
将所述 APN的协议类型设置为 IPV6类型, 以及使所述收发机向所述网 络服务器发起第三 PDP激活请求, 以激活数据业务, 其中, 所述第三 PDP激 活请求中携带的 APN的协议类型为 IPV6类型;
若所述 APN的协议类型为 IPV6类型的第二 PDP激活请求被拒绝后, 所 述处理器还用于:
将所述 APN的协议类型设置为 IPV4类型, 以及使所述收发机向所述网 络服务器发起第三 PDP激活请求, 以激活数据业务, 其中, 所述第三 PDP激 活请求中携带的 APN的协议类型为 IPV4类型。
结合第三方面的第一种可能的实现方式、 第三方面的第二种可能的实现 方式、 或者第三方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述收发机在向所述网络服务器发送的第一 PDP激活请求被拒绝后, 所述处 理器还用于:
若确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV4 ,则确定已 激活 IPV4类型的 PDP连接; 或者
若确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV6 ,则确定已 激活 IPV6类型的 PDP连接。
本发明实施例提供的方法和终端设备中, 在终端设备向网络服务器发起 的第一 PDP激活请求被拒绝后, 该终端设备修改 APN的协议类型, 其中, 该 第一 PDP激活请求中携带的 APN的协议类型为 IPV4V6双栈类型; 以及该终 端设备向网络服务器发起第二 PDP激活请求, 以激活数据业务, 其中, 该第 二 PDP激活请求中携带修改后的协议类型。由于终端修改了 APN的协议类型, 以使该终端能够与无法识别 IPV4V6双栈类型的网络建立数据业务。 附图说明
图 1为本发明实施例提供的一种 IP的激活方法的流程图;
图 2为本发明提供的实施例一的流程图;
图 3为本发明实施例提供的一种终端设备的示意图;
图 4为本发明实施例提供的另一种终端设备的示意图。 具体实施方式
本发明实施例中, 在终端使用协议类型为 IPV4V6双栈类型的 APN发起 的 PDP激活失败后, 该终端将该 APN的协议类型置为 IPV4类型或 IPV6类 型, 并重新向网络发起 PDP激活过程, 以使该终端能够与无法识别 IPV4V6 双栈类型的网络建立数据业务链接。
为了说明本发明的技术方案, 使用了 "第一"、 "第二", "第三" 等字样, 对终端所发起的多次 PDP激活请求进行区分, 但第一 PDP激活请求, 第二 PDP激活请求以及第三 PDP激活请求的格式是相同的。
下面结合说明书附图对本发明实施例作进一步详细描述。 应当理解, 此 处所描述的实施例仅用于说明和解释本发明, 并不用于限定本发明。
如图 1所示, 本发明实施例提供的一种互联网协议 IP的激活方法, 该方 法包括:
511、 在终端向网络服务器发起的第一 PDP激活请求被拒绝(reject )后, 该终端修改 APN的协议类型, 其中, 该第一 PDP激活请求中携带的 APN的 协议类型为 IPV4V6双栈类型;
512、终端向网络服务器发起第二 PDP激活请求,以激活数据业务,其中, 该第二 PDP激活请求中携带修改后的协议类型。
本发明实施例中, 在终端向网络服务器发起的第一 PDP激活请求被拒绝 后,该终端修改 APN的协议类型,其中,该第一 PDP激活请求中携带的 APN 的协议类型为 IPV4V6双栈类型; 以及终端向网络服务器发起第二 PDP激活 请求, 以激活数据业务, 其中, 该第二 PDP激活请求中携带修改后的协议类 型。 由于终端修改了 APN的协议类型, 以使该终端能够与无法识别 IPV4V6 双栈类型的网络建立数据业务。
对于大部分终端来说, 一般不清楚自身的用户权限类型 (包括仅支持 IPV4、 仅支持 IPV6、 和 IPV4V6双栈)。 对于支持 IP V6的终端来说, 为了能 够兼容 IPV4类型, 其 APN的协议类型一般默认设置为 IPV4V6双栈类型。 由于终端自身无法获知其用户权限类型, 因此, 在携带 IPV4V6 双栈类型的 APN发起第一 PDP激活请求时, 若网络服务器无法识别 IPV4V6双栈类型, 则会导致该第一 PDP激活请求被拒绝,从而使终端与网络无法建立数据业务。 而本发明实施例中,在第一 PDP激活请求被拒绝后,终端修改 APN的协议类 型 (如将 APN的协议类型设置为 IPV4类型或 IPV6类型), 并向网络服务器 发起携带有修改后的 APN的第二 PDP激活请求, 以激活数据业务,使得该终 端能够与无法识别 IPV4V6双栈类型的网络之间能够建立数据业务。
在实施中, S11 中, 在终端向网络服务器发送的第一 PDP激活请求被拒 绝后, 还包括: 终端确定该第一 PDP激活请求被拒绝的原因。
相应的, S11中,终端修改 APN的协议类型, 包括: 终端在确定第一 PDP 激活请求被拒绝的原因为指定原因时, 修改 APN的协议类型。
其中, 指定原因包括但不限于以下原因中的至少一个:
所携带的 APN未知或未携带 APN ( Unknown or missing APN ), 即原因值
#27;
PDP地址未知或 PDP类型未知( Unknown PDP address or PDP type ), 即 原因值 #28;
用户签权失败( User authentication failed ), 即原因值 #29;
激活被通用分组无线系统网关支持节点 ( Gateway GPRS Support Node , GGSN; General Packet Radio System; GPRS )、 服务网关或数据分组网网关拒 绝( Activation rejected by GGSN, Serving GW or PDN GW ), 即原因值 #30; 激活被拒绝, 且未说明原因 ( Activation rejected, unspecified ), 即原因值
#31。
在实施中, S11中, 终端可以从网络月良务器返回的拒绝(reject ) 消息中, 获取第一 PDP激活请求被拒绝的原因, 若携带的原因为上述指定原因时, 终 端认为本次激活失败, 修改 APN的协议类型, 以重新尝试激活数据业务。
较佳地, S11中, 终端修改 APN的协议类型, 包括以下两种实现方式: 方式 1、 终端将 APN的协议类型设置为 IPV4类型。
该方式下, 终端将 APN的协议类型设置为 IPV4类型, 以及该终端向网 络服务器发起第二 PDP激活请求, 以尝试激活数据业务, 该第二 PDP激活请 求中携带修改后的 APN (即 APN的协议类型为 IPV4类型); 若 APN的协议 类型为 IPV4类型的第二 PDP激活请求被接受后 (accept ), 则该终端可以与 网络服务器建立数据业务。
进一步,若 APN的协议类型为 IPV4类型的第二 PDP激活请求被拒绝后, 该方法还包括:
该终端将 APN的协议类型设置为 IPV6类型, 以及该终端向网络服务器 发起第三 PDP激活请求, 以激活数据业务, 该第三 PDP激活请求中携带的 APN的协议类型为 IPV6类型。
具体的, 若该第三 PDP激活请求被接受, 则该终端可以与网络服务器建 立数据业务; 若该第三 PDP激活请求被拒绝, 则该终端不进行任何尝试处理。
方式 2、 终端将 APN的协议类型设置为 IPV6类型。
该方式下, 终端将 APN的协议类型设置为 IPV6类型, 以及该终端向网 络服务器发起第二 PDP激活请求, 以尝试激活数据业务, 该第二 PDP激活请 求中携带修改后的 APN (即 APN的协议类型为 IPV6类型); 若 APN的协议 类型为 IPV6类型的第二 PDP激活请求被接受后 (accept ), 则该终端可以与 网络服务器建立数据业务。
进一步, 若该 APN的协议类型为 IPV6类型的第二 PDP激活请求被拒绝 后, 该方法还包括: 该终端将 APN的协议类型设置为 IPV4类型, 以及该终端向网络服务器 发起第三 PDP激活请求, 以激活数据业务, 该第三 PDP激活请求中携带的 APN的协议类型为 IPV4类型。
具体的, 若该第三 PDP激活请求被接受, 则该终端可以与网络服务器建 立数据业务; 若该第三 PDP激活请求被拒绝, 则该终端不进行任何尝试处理。
本发明实施例可以釆用上述任一方式修改 APN的协议类型, 以激活数据 业务。 由于目前网络一般都支持 IPV4类型的协议, 较佳地, 釆用上述方式 1 修改 APN的协议类型, 以激活数据业务。
基于上述任一实施例, S11 中, 在终端向网络服务器发送的第一 PDP激 活请求被拒绝后, 还包括:
若终端确定出第一 PDP激活请求被拒绝的原因为仅支持 IPV4 (即原因值 #50 ), 则所述终端确定已激活 IPV4类型的 PDP连接; 或者
若终端确定出第一 PDP激活请求被拒绝的原因为仅支持 IPV6 (即原因值 #51 ), 则所述终端确定已激活 IPV6类型的 PDP连接。
具体的, 终端可以从网络服务器返回的拒绝 (reject ) 消息中, 获取第一 PDP激活请求被拒绝的原因, 若携带的原因值为 #50 (即仅支持 IPV4 ), 则终 端认为 IPV4类型的 PDP连接已被激活, 确定本次激活成功; 若携带的原因 值为 #51 (即仅支持 IPV6 ), 则终端认为 IPV6类型的 PDP连接已被激活, 也 确定本次激活成功。
下面结合两个具体实施例, 对本发明实施例提供的一种互联网协议 IP的 激活方法进行详细说明。
实施例一、 在支持 IPV6的网络下, 终端一般会釆用协议类型为 IPV4V6 双栈类型的 APN发起 PDP激活请求。具体过程参见图 2所示,包括以下步骤: 1: 终端釆用协议类型为 IPV4V6双栈类型的 APN发起 PDP激活请求; 若该 PDP激活请求被接受,则该终端结束 PDP激活流程,建立数据业务; 若该 PDP激活请求被拒绝, 则执行步骤 2。
2: 终端检测 APN的 IP类型是否为 IPV4V6双栈类型。 3: 如果是 IPV4V6 双栈类型, 则终端再检测错误类型是否是原因值 #50 (即仅支持 IPV4 )或者原因值 #51 (即仅支持 IPV6 )。
若是, 说明网络仅支持一种 IP类型, 并已激活该 IP类型, 则终端确定本 次 PDP激活成功, 并结束 PDP激活流程, 建立数据业务;
若否, 说明 PDP激活过程出现异常, 则终端执行步骤 4;
4: 终端将 APN中的协议类型改为 IPV4类型, 再使用此 APN重新发起 PDP激活请求的尝试;
若该 PDP激活请求被接受,则该终端结束 PDP激活流程,建立数据业务; 若该 PDP激活请求被拒绝, 则执行步骤 5。
5: 终端再将 APN中的协议类型改为 IPV6类型, 再使用此 APN重新发 起 PDP激活请求的尝试;
若该 PDP激活请求被接受,则该终端结束 PDP激活流程,建立数据业务; 若该 PDP激活请求被拒绝, 则该终端确定激活失败。
实施例二、 本实施例中, 4叚设 A运营商的网络仅支持 IPV4。 用户的权限 为 IP V4 , 该用户使用的终端为支持 IP V6 , 该终端当前的 APN中的协议类型 为 IPV4V6双栈类型。
当该终端尝试发起 PDP激活时, 由于网络自身原因, 不能识别 IPV4V6 双栈类型, 所以此次网络拒绝了终端发起的 PDP激活, 并向终端返回失败原 因, 具体原因值为原因值 #28, 即表示 "表示 PDP地址未知或 PDP类型未知 APN的协议类型不识别 "。
终端在接收到网络侧返回的原因值后, 将当前的 APN中的协议类型置为 IPV4类型,并尝试重新向网络发起 PDP激活过程,此时,由于网络支持 IPV4, 因此, 本次重新发起的 PDP激活成功, 从而建立数据业务。
基于同一发明构思, 本发明实施例提供了一种终端设备, 如图 3 所示, 该终端设备包括:
第一处理模块 31 , 用于在向网络服务器发起的第一 PDP激活请求被拒绝 后, 修改 APN的协议类型, 其中, 该第一 PDP激活请求中携带的 APN的协 议类型为 IPV4V6双栈类型;
第二处理模块 32, 用于向网络服务器发起第二 PDP激活请求, 以激活数 据业务, 其中, 该第二 PDP激活请求中携带修改后的协议类型。
本发明实施例中, 在向网络服务器发起的第一 PDP激活请求被拒绝后, 第一处理模块修改 APN的协议类型, 其中, 该第一 PDP激活请求中携带的 APN的协议类型为 IPV4V6双栈类型; 以及第二处理模块向网络服务器发起 第二 PDP激活请求, 以激活数据业务, 其中, 该第二 PDP激活请求中携带修 改后的协议类型。 由于第一处理模块修改了 APN的协议类型, 以使所属的终 端设备能够与无法识别 IPV4V6双栈类型的网络建立数据业务。
在实施中,第一处理模块 31在向网络服务器发送的第一 PDP激活请求被 拒绝后, 具体用于:
确定第一 PDP激活请求被拒绝的原因; 以及在确定该第一 PDP激活请求 被拒绝的原因为指定原因时, 修改 APN的协议类型;
其中, 指定原因包括以下原因的至少一个:
所携带的 APN未知或未携带 APN, 即原因值 #27;
PDP地址或 PDP类型未知, 即原因值 #28;
用户签权失败, 即原因值 #29;
激活被 GGSN、 S-GW或 PDN GW拒绝, 即原因值 #30;
激活被拒绝, 且未说明原因, 即原因值 #31。
在实施中, 第一处理模块 31可以从网络服务器返回的拒绝(reject )消息 中,获取第一 PDP激活请求被拒绝的原因,若携带的原因为上述指定原因时, 第一处理模块 31认为本次激活失败, 修改 APN的协议类型, 以重新尝试激 活数据业务。
较佳地, 第一处理模块 31修改 APN的协议类型, 包括以下两种实现方 式:
方式 1、 将 APN的协议类型设置为 IPV4类型。
该方式下, 第一处理模块 31将 APN的协议类型设置为 IPV4类型, 以及 向网络服务器发起第二 PDP激活请求, 以尝试激活数据业务, 该第二 PDP激 活请求中携带修改后的 APN (即 APN的协议类型为 IPV4类型); 若 APN的 协议类型为 IPV4类型的第二 PDP激活请求被接受后 (accept ), 则第一处理 模块 31确定所属的终端设备可以与网络服务器建立数据业务。
进一步,若 APN的协议类型为 IPV4类型的第二 PDP激活请求被拒绝后, 第二处理模块 32还用于:
将 APN的协议类型设置为 IPV6类型, 以及向网络服务器发起第三 PDP 激活请求, 以激活数据业务, 该第三 PDP激活请求中携带的 APN的协议类型 为 IPV6类型。
具体的,若该第三 PDP激活请求被接受, 则第二处理模块 32确定所属的 终端设备可以与网络服务器建立数据业务; 若该第三 PDP激活请求被拒绝, 则该第二处理模块 32不进行任何尝试处理。
方式 2、 将 APN的协议类型设置为 IPV6类型。
该方式下, 第一处理模块 31将 APN的协议类型设置为 IPV6类型, 以及 向网络服务器发起第二 PDP激活请求, 以尝试激活数据业务, 该第二 PDP激 活请求中携带修改后的 APN (即 APN的协议类型为 IPV6类型); 若 APN的 协议类型为 IPV6类型的第二 PDP激活请求被接受后 (accept ), 则第一处理 模块 31确定所属的终端设备可以与网络服务器建立数据业务。
进一步, 若该 APN的协议类型为 IPV6类型的第二 PDP激活请求被拒绝 后, 第二处理模块 32还用于:
将 APN的协议类型设置为 IPV4类型, 以及向网络服务器发起第三 PDP 激活请求, 以激活数据业务, 该第三 PDP激活请求中携带的 APN的协议类型 为 IPV4类型。
具体的,若该第三 PDP激活请求被接受, 则第二处理模块 32确定所属的 终端设备可以与网络服务器建立数据业务; 若该第三 PDP激活请求被拒绝, 则第二处理模块 32不进行任何尝试处理。
本发明实施例可以釆用上述任一方式修改 APN的协议类型, 以激活数据 业务。 由于目前网络一般都支持 IPV4类型的协议, 较佳地, 釆用上述方式 1 修改 APN的协议类型, 以激活数据业务。
基于上述任一实施例, 第一处理模块 31 向网络服务器发送的第一 PDP 激活请求被拒绝后, 还用于:
若确定出第一 PDP激活请求被拒绝的原因为仅支持 IPV4(即原因值 #50 ), 则确定已激活 IPV4类型的 PDP连接; 或者
若确定出第一 PDP激活请求被拒绝的原因为仅支持 IPV6(即原因值 #51 ), 则确定已激活 IPV6类型的 PDP连接。
具体的,第一处理模块 31可以从网络服务器返回的拒绝(reject )消息中, 获取第一 PDP 激活请求被拒绝的原因, 若携带的原因值为 #50 (即仅支持 IPV4 ), 则认为 IPV4类型的 PDP连接已被激活, 确定本次激活成功; 若携带 的原因值为 #51 (即仅支持 IPV6 ), 则第一处理模块 31认为 IPV6类型的 PDP 连接已被激活, 确定本次激活成功。
基于同一发明构思, 本发明实施例还提供了一种终端设备, 如图 4所示, 该终端设备包括:
处理器 42, 用于在收发机 41向网络服务器发起的第一 PDP激活请求被 拒绝后, 修改 APN的协议类型, 其中, 该第一 PDP激活请求中携带的 APN 的协议类型为 IPV4V6双栈类型;
收发机 41 ,用于向网络服务器发起第二 PDP激活请求,以激活数据业务, 其中, 该第二 PDP激活请求中携带修改后的协议类型。
其中, 收发机 41与处理器 42之间通过总线连接。
本发明实施例中, 在收发机向网络服务器发起的第一 PDP激活请求被拒 绝后, 处理器修改 APN的协议类型, 其中, 该第一 PDP激活请求中携带的 APN的协议类型为 IPV4V6双栈类型;以及收发机向网络服务器发起第二 PDP 激活请求, 以激活数据业务, 其中, 该第二 PDP激活请求中携带修改后的协 议类型。 由于处理器修改了 APN的协议类型, 以使所属的终端设备能够与无 法识别 IPV4V6双栈类型的网络建立数据业务。 在实施中,收发机 41在向网络服务器发送的第一 PDP激活请求被拒绝后, 处理器 42具体用于:
确定第一 PDP激活请求被拒绝的原因; 以及在确定该第一 PDP激活请求 被拒绝的原因为指定原因时, 修改 APN的协议类型;
其中, 指定原因包括以下原因的至少一个:
所携带的 APN未知或未携带 APN, 即原因值 #27;
PDP地址或 PDP类型未知, 即原因值 #28;
用户签权失败, 即原因值 #29;
激活被 GGSN、 S-GW或 PDN GW拒绝, 即原因值 #30;
激活被拒绝, 且未说明原因, 即原因值 #31。
在实施中, 处理器 42可以从网络服务器返回的拒绝(reject )消息中, 获 取第一 PDP激活请求被拒绝的原因, 若携带的原因为上述指定原因时, 处理 器 42认为本次激活失败, 修改 APN的协议类型, 以重新尝试激活数据业务。
较佳地, 处理器 42修改 APN的协议类型, 包括以下两种实现方式: 方式 1、 将 APN的协议类型设置为 IPV4类型。
该方式下, 处理器 42将 APN的协议类型设置为 IPV4类型, 以及使收发 机 41 向网络服务器发起第二 PDP激活请求, 以尝试激活数据业务, 该第二 PDP激活请求中携带修改后的 APN (即 APN的协议类型为 IPV4类型); 若 APN的协议类型为 IPV4类型的第二 PDP激活请求被接受后 ( accept ), 则处 理器 42确定所属的终端设备可以与网络服务器建立数据业务。
进一步,若 APN的协议类型为 IPV4类型的第二 PDP激活请求被拒绝后, 处理器 42还用于:
将 APN的协议类型设置为 IPV6类型, 以及使收发机 41向网络服务器发 起第三 PDP激活请求,以激活数据业务,该第三 PDP激活请求中携带的 APN 的协议类型为 IPV6类型。
具体的,若该第三 PDP激活请求被接受, 则处理器 42确定所属的终端设 备可以与网络服务器建立数据业务; 若该第三 PDP激活请求被拒绝, 则该处 理器 42不进行任何尝试处理。
方式 2、 将 APN的协议类型设置为 IPV6类型。
该方式下, 处理器 42将 APN的协议类型设置为 IPV6类型, 以及使收发 机 41 向网络服务器发起第二 PDP激活请求, 以尝试激活数据业务, 该第二 PDP激活请求中携带修改后的 APN (即 APN的协议类型为 IPV6类型); 若 APN的协议类型为 IPV6类型的第二 PDP激活请求被接受后 ( accept ), 则处 理器 42确定所属的终端设备可以与网络服务器建立数据业务。
进一步, 若该 APN的协议类型为 IPV6类型的第二 PDP激活请求被拒绝 后, 处理器 42还用于:
将 APN的协议类型设置为 IPV4类型, 以及使收发机 41向网络服务器发 起第三 PDP激活请求,以激活数据业务,该第三 PDP激活请求中携带的 APN 的协议类型为 IPV4类型。
具体的,若该第三 PDP激活请求被接受, 则处理器 42确定所属的终端设 备可以与网络服务器建立数据业务; 若该第三 PDP激活请求被拒绝, 则处理 器 42不进行任何尝试处理。
本发明实施例可以釆用上述任一方式修改 APN的协议类型, 以激活数据 业务。 由于目前网络一般都支持 IPV4类型的协议, 较佳地, 釆用上述方式 1 修改 APN的协议类型, 以激活数据业务。
基于上述任一实施例,处理器 41向网络服务器发送的第一 PDP激活请求 被拒绝后, 还用于:
若确定出第一 PDP激活请求被拒绝的原因为仅支持 IPV4(即原因值 #50 ), 则确定已激活 IPV4类型的 PDP连接; 或者
若确定出第一 PDP激活请求被拒绝的原因为仅支持 IPV6(即原因值 #51 ), 则确定已激活 IPV6类型的 PDP连接。
具体的, 处理器 42可以从网络服务器返回的拒绝(reject )消息中, 获取 第一 PDP激活请求被拒绝的原因, 若携带的原因值为 #50 (即仅支持 IPV4 ), 则认为 IPV4 已被激活, 确定本次激活成功; 若携带的原因值为 #51 (即仅支 持 IPV6 ), 则处理器 42认为 IPV6已被激活, 确定本次激活成功。 本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或 计算机程序产品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个 其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器、 CD-ROM、 光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序产 品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图 和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中的流程 和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得通 过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流 程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设 备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存储器 中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个流程或 多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的 处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图 一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的步 骤。
尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知了 基本创造性概念, 则可对这些实施例作出另外的变更和修改。 所以, 所附权 利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。 发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权 利 要 求
1、 一种互联网协议 IP的激活方法, 其特征在于, 该方法包括: 终端向网络服务器发起的第一分组数据协议 PDP激活请求被拒绝后, 所 述终端修改 APN的协议类型, 其中, 所述第一 PDP激活请求中携带的 APN 的协议类型为互联网协议版本 IPV4V6双栈类型;
所述终端向所述网络服务器发起第二 PDP激活请求, 以激活数据业务, 其中 , 所述第二 PDP激活请求中携带修改后的协议类型。
2、 如权利要求 1所述的方法, 其特征在于, 在所述终端向所述网络服务 器发送的第一 PDP激活请求被拒绝后, 还包括: 所述终端确定所述第一 PDP 激活请求被拒绝的原因;
所述终端根据所述修改所述 APN的协议类型, 包括: 所述终端在确定所 述第一 PDP激活请求被拒绝的原因为指定原因时,修改所述 APN的协议类型; 其中, 所述指定原因包括以下原因的至少一个:
所携带的 APN未知或未携带 APN; PDP地址或 PDP类型未知; 用户签 权失败; 激活被通用分组无线系统网关支持节点 GGSN、 服务网关 S-GW或 数据分组网网关 PDN GW拒绝; 激活被拒绝, 且未说明原因。
3、 如权利要求 2所述的方法, 其特征在于, 所述终端修改所述 APN的 协议类型, 包括:
所述终端将所述 APN的协议类型设置为 IPV4类型; 或者
所述终端将所述 APN的协议类型设置为 IPV6类型。
4、 如权利要求 3所述的方法, 其特征在于, 若所述 APN的协议类型为 IPV4 类型的第二 PDP激活请求被拒绝后, 该方法还包括: 所述终端将所述 APN的协议类型设置为 IPV6类型,以及所述终端向所述网络服务器发起第三 PDP激活请求,以激活数据业务,其中,所述第三 PDP激活请求中携带的 APN 的协议类型为 IPV6类型;
若所述 APN的协议类型为 IPV6类型的第二 PDP激活请求被拒绝后, 该 方法还包括: 所述终端将所述 APN的协议类型设置为 IPV4类型, 以及所述 终端向所述网络服务器发起第三 PDP激活请求, 以激活数据业务, 其中, 所 述第三 PDP激活请求中携带的 APN的协议类型为 IPV4类型。
5、 如权利要求 1~4任一项所述的方法, 其特征在于, 在所述终端向所述 网络服务器发送的第一 PDP激活请求被拒绝后, 还包括:
若所述终端确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV4, 则所述终端确定已激活 IPV4类型的 PDP连接; 或者
若所述终端确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV6, 则所述终端确定已激活 IPV6类型的 PDP连接。
6、 一种终端设备, 其特征在于, 该终端设备包括:
第一处理模块, 用于在向网络服务器发起的第一分组数据协议 PDP激活 请求被拒绝后, 修改 APN的协议类型, 其中, 所述第一 PDP激活请求中携带 的 APN的协议类型为互联网协议版本 IPV4V6双栈类型;
第二处理模块, 用于向所述网络服务器发起第二 PDP激活请求, 以激活 数据业务, 其中, 所述第二 PDP激活请求中携带修改后的协议类型。
7、 如权利要求 6所述的终端设备, 其特征在于, 所述第一处理模块在向 所述网络服务器发送的第一 PDP激活请求被拒绝后, 具体用于:
确定所述第一 PDP激活请求被拒绝的原因; 以及在确定所述第一 PDP激 活请求被拒绝的原因为指定原因时, 修改所述 APN的协议类型;
其中, 所述指定原因包括以下原因的至少一个:
所携带的 APN未知或未携带 APN; PDP地址或 PDP类型未知; 用户签 权失败; 激活被通用分组无线系统网关支持节点 GGSN、 服务网关 S-GW或 数据分组网网关 PDN GW拒绝; 激活被拒绝, 且未说明原因。
8、 如权利要求 7所述的终端设备, 其特征在于, 所述第一处理模块修改 所述 APN的协议类型, 包括:
将所述 APN的协议类型设置为 IPV4类型; 或者
将所述 APN的协议类型设置为 IPV6类型。
9、 如权利要求 8所述的终端设备, 其特征在于, 若所述 APN的协议类 型为 IPV4类型的第二 PDP激活请求被拒绝后, 所述第二处理模块还用于: 将所述 APN的协议类型设置为 IPV6类型, 以及向所述网络服务器发起 第三 PDP激活请求, 以激活数据业务, 其中, 所述第三 PDP激活请求中携带 的 APN的协议类型为 IPV6类型;
若所述 APN的协议类型为 IPV6类型的第二 PDP激活请求被拒绝后, 所 述第二处理模块还用于:
将所述 APN的协议类型设置为 IPV4类型, 以及向所述网络服务器发起 第三 PDP激活请求, 以激活数据业务, 其中, 所述第三 PDP激活请求中携带 的 APN的协议类型为 IPV4类型。
10、 如权利要求 6~9任一项所述的终端设备, 其特征在于, 所述第一处 理模块在向所述网络服务器发送的第一 PDP激活请求被拒绝后, 还用于: 若确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV4 ,则确定已 激活 IPV4类型的 PDP连接; 或者
若确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV6 ,则确定已 激活 IPV6类型的 PDP连接。
11、 一种终端设备, 其特征在于, 该终端设备包括:
处理器, 用于在收发机向网络服务器发起的第一分组数据协议 PDP激活 请求被拒绝后, 修改 APN的协议类型, 其中, 所述第一 PDP激活请求中携带 的 APN的协议类型为互联网协议版本 IPV4V6双栈类型;
收发机, 用于向所述网络服务器发起第二 PDP激活请求, 以激活数据业 务, 其中, 所述第二 PDP激活请求中携带修改后的协议类型。
12、 如权利要求 11所述的终端设备, 其特征在于, 所述收发机在向所述 网络服务器发送的第一 PDP激活请求被拒绝后, 所述处理器具体用于:
确定所述第一 PDP激活请求被拒绝的原因; 以及在确定所述第一 PDP激 活请求被拒绝的原因为指定原因时, 修改所述 APN的协议类型;
其中, 所述指定原因包括以下原因的至少一个: 所携带的 APN未知或未携带 APN; PDP地址或 PDP类型未知; 用户签 权失败; 激活被通用分组无线系统网关支持节点 GGSN、 服务网关 S-GW或 数据分组网网关 PDN GW拒绝; 激活被拒绝, 且未说明原因。
13、 如权利要求 12所述的终端设备, 其特征在于, 所述处理器修改所述 APN的协议类型, 包括:
将所述 APN的协议类型设置为 IPV4类型; 或者
将所述 APN的协议类型设置为 IPV6类型。
14、 如权利要求 13所述的终端设备, 其特征在于, 若所述 APN的协议 类型为 IP V4类型的第二 PDP激活请求被拒绝后, 所述处理器还用于:
将所述 APN的协议类型设置为 IPV6类型, 以及使所述收发机向所述网 络服务器发起第三 PDP激活请求, 以激活数据业务, 其中, 所述第三 PDP激 活请求中携带的 APN的协议类型为 IPV6类型;
若所述 APN的协议类型为 IPV6类型的第二 PDP激活请求被拒绝后, 所 述处理器还用于:
将所述 APN的协议类型设置为 IPV4类型, 以及使所述收发机向所述网 络服务器发起第三 PDP激活请求, 以激活数据业务, 其中, 所述第三 PDP激 活请求中携带的 APN的协议类型为 IPV4类型。
15、 如权利要求 12~14任一项所述的终端设备, 其特征在于, 所述收发 机在向所述网络服务器发送的第一 PDP激活请求被拒绝后, 所述处理器还用 于:
若确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV4 ,则确定已 激活 IPV4类型的 PDP连接; 或者
若确定出所述第一 PDP激活请求被拒绝的原因为仅支持 IPV6 ,则确定已 激活 IPV6类型的 PDP连接。
PCT/CN2014/083161 2014-07-28 2014-07-28 一种因特网协议ip的激活方法和终端设备 WO2016015206A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/083161 WO2016015206A1 (zh) 2014-07-28 2014-07-28 一种因特网协议ip的激活方法和终端设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/083161 WO2016015206A1 (zh) 2014-07-28 2014-07-28 一种因特网协议ip的激活方法和终端设备

Publications (1)

Publication Number Publication Date
WO2016015206A1 true WO2016015206A1 (zh) 2016-02-04

Family

ID=55216575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/083161 WO2016015206A1 (zh) 2014-07-28 2014-07-28 一种因特网协议ip的激活方法和终端设备

Country Status (1)

Country Link
WO (1) WO2016015206A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102421201A (zh) * 2011-11-22 2012-04-18 中兴通讯股份有限公司 一种快速建立双栈无线连接的方法及无线终端设备
CN102724714A (zh) * 2012-05-18 2012-10-10 中兴通讯股份有限公司 一种自动修正ip类型的方法及装置
WO2013166404A1 (en) * 2012-05-04 2013-11-07 Alcatel Lucent Power aware point-of-presence design and auto-configuration
CN103888554A (zh) * 2014-03-24 2014-06-25 广州杰赛科技股份有限公司 IPv4与IPv6互通的域名解析方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102421201A (zh) * 2011-11-22 2012-04-18 中兴通讯股份有限公司 一种快速建立双栈无线连接的方法及无线终端设备
WO2013166404A1 (en) * 2012-05-04 2013-11-07 Alcatel Lucent Power aware point-of-presence design and auto-configuration
CN102724714A (zh) * 2012-05-18 2012-10-10 中兴通讯股份有限公司 一种自动修正ip类型的方法及装置
CN103888554A (zh) * 2014-03-24 2014-06-25 广州杰赛科技股份有限公司 IPv4与IPv6互通的域名解析方法和系统

Similar Documents

Publication Publication Date Title
CN110800331B (zh) 网络验证方法、相关设备及系统
US9729501B2 (en) System and data card for stateless automatic configuration of IPv6 address and method for implementing the same
CN112997454B (zh) 经由移动通信网络连接到家庭局域网
JP5922785B2 (ja) データセキュリティチャネル処理方法およびデバイス
EP2950499B1 (en) 802.1x access session keepalive method, device, and system
TW200400728A (en) Provisioning a mobile device in a wireless communication system
JP5485300B2 (ja) アクセス網からユーザ機器へのセッション固有情報の通信
WO2008121576A2 (en) Methods and system for terminal authentication using a terminal hardware indentifier
WO2016179966A1 (zh) 一种实现网络接入的方法、终端及计算机存储介质
CN108616805B (zh) 一种紧急号码的配置、获取方法及装置
WO2015100615A1 (zh) 处理业务报文的方法、装置和网关设备
CN102215486B (zh) 接入网络的方法及系统、网络认证方法及设备、终端
GB2573262A (en) Mobile identification method based on SIM card and device-related parameters
WO2014101755A1 (zh) 业务数据分流方法及系统
TW201442538A (zh) 通訊方法與通訊系統
CN106131177B (zh) 一种报文处理方法及装置
WO2013189398A2 (zh) 应用数据推送方法、装置及系统
CN106341374B (zh) 一种限制非许可用户设备接入家庭网关的方法和装置
WO2016015206A1 (zh) 一种因特网协议ip的激活方法和终端设备
WO2007050610A2 (en) Methods and apparatus for use in a packet data network
WO2011157142A2 (zh) 报文发送方法和装置
US11758372B2 (en) Charging policy obtaining method and apparatus
WO2017132906A1 (zh) 获取、发送用户设备标识的方法及设备
WO2018095021A1 (zh) 注册状态的确定方法、装置及系统、cse
US20220150219A1 (en) Information processing apparatus, non-transitory computer readable medium, and communication 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: 14898643

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

Country of ref document: EP

Kind code of ref document: A1