WO2015085521A1 - 互联网协议地址分配方法和装置 - Google Patents

互联网协议地址分配方法和装置 Download PDF

Info

Publication number
WO2015085521A1
WO2015085521A1 PCT/CN2013/089118 CN2013089118W WO2015085521A1 WO 2015085521 A1 WO2015085521 A1 WO 2015085521A1 CN 2013089118 W CN2013089118 W CN 2013089118W WO 2015085521 A1 WO2015085521 A1 WO 2015085521A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
pdn connection
connection activation
dns
ipv4
Prior art date
Application number
PCT/CN2013/089118
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 CN201380073119.5A priority Critical patent/CN105075213B/zh
Priority to PCT/CN2013/089118 priority patent/WO2015085521A1/zh
Publication of WO2015085521A1 publication Critical patent/WO2015085521A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/251Translation of Internet protocol [IP] addresses between different IP versions

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to an Internet protocol address allocation method and apparatus. Background technique
  • IPv6 Internet Protocol Version 6,
  • IPv4 IPv4 network address translation
  • NAT64 Address Translation IPv6-to-IPv4
  • IPv6 and IPv4 address translation domain name servers Domain Name Server IPv6-to-IPv4, DNS64
  • IPv6 user equipment User Equipment, UE for short
  • IPv4v6 UEs UEs that can use both IPv4 and IPv6
  • IPv4 service servers IPv4 service servers.
  • the specific process for the IPv4v6 UE to access the IPv4 service server is: the IPv4v6 UE sends an activation request to the Gateway GPRS Support Node (GGSN), and the GGSN returns the IPv4 IPv6 UE IPv4 to the IPv4v6 UE by the activation response.
  • the IPv4v6 UE requests the IP address of the service server from the DNS64 through the domain name, and the DNS64 returns the IPv4 address and the IPv6 address of the service server to the IPv4v6 UE, and then the IPv4v6 UE adopts the default priority.
  • the IPv6 address of the service server transmits data packets with the service server.
  • the service server is an IPv4 service server (a service server that can only use the IPv4 protocol)
  • the IPv6 data packet sent by the IPv4v6 UE needs to be translated by the NAT64 to obtain the IPv4 data packet to be transmitted to the IPv4 service server, and the NAT64 is added. Network load.
  • An embodiment of the present invention provides an Internet Protocol address allocation method and apparatus, which are used to prevent data packets transmitted between an IPv4v6 UE and an IPv4 service server from being converted by NAT64, thereby reducing network load of the NAT64 and improving data. Transmission efficiency.
  • a UE including:
  • a sending unit configured to send a first packet data network PDN connection activation request message to the serving gateway, where the first PDN connection activation request message includes packet data protocol PDP type indication information, where the PDP type indication information is used to indicate the PDP Type is IPv4v6;
  • a receiving unit configured to receive a first PDN connection activation response message sent by the serving gateway, where the first PDN connection activation response message includes an IP address of the UE and an IP address of a first domain name resolution server DNS, where The IPv4 address of the Internet Protocol version 4 IPv4 service server is stored in a DNS but the Internet Protocol version 6 IPv6 address of the IPv4 service server is not stored, and the IPv6 address of the IPv4 service server is a 4 to 6 address.
  • the sending unit is specifically configured to send, to the serving gateway, a first PDN connection activation request message that includes a delay allocation identifier and the PDP type indication information, where the delay is The allocation identifier is used to indicate that the serving gateway delays allocation of an IPv4 address of the UE;
  • the receiving unit is specifically configured to receive a first PDN connection activation response message that is sent by the serving gateway and includes an IPv6 address of the UE and an IP address of the first DNS.
  • the receiving unit is specifically configured to receive, by the serving gateway, an IPv4 address that includes the UE, an IP address of the first DNS, and a first return code.
  • the first PDN connection activation response message is used to indicate that the UE activates two PDN connections under the same APN, and the IP versions of the two PDN connections are different.
  • the sending unit is configured to send a first PDN connection activation request message to the management network element, so that The management network element sends a second PDN connection activation request message to the serving gateway according to the first PDN connection activation request, where the second PDN connection activation request message is used by the management network element to modify the PDP type indication information.
  • the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, where the IPv4v6 indication information is used to indicate that the PDP type is IPv4 and the IPv4v6 indication information and the first identification information are added in the first PDN connection activation request message.
  • An identifier information is used to identify that the UE activates the two PDN connections under the same APN;
  • the receiving unit is configured to receive, by the management network element, a first PDN connection activation response message that includes an IPv4 address of the UE, an IP address of the first DNS, and a first return code, where the first PDN is sent by the management network element.
  • a connection activation response message sent by the management network element according to the service gateway The second PDN connection activation response message is sent, the second PDN connection activation response message includes an IPv4 address of the UE and an IP address of the first DNS, and the first PDN connection activation response message is the management network.
  • the element adds the first return code obtained in the second PDN connection activation response message.
  • the method further includes:
  • a determining unit configured to determine, according to the first return code and the IPv4 address of the UE, the PDP type indication information in the third PDN connection activation request message to be PDP type indication information indicating that the PDP type is IPv6;
  • the sending unit is further configured to send a third PDN connection activation request message to the serving gateway, where the third PDN connection activation request message includes the PDP type indication information used to indicate that the PDP type is IPv6.
  • the receiving unit is further configured to receive a third PDN connection activation response message sent by the serving gateway, where the third PDN connection activation response message includes an IPv6 address of the UE and an IP address of the first DNS.
  • the receiving unit is specifically configured to receive, by the serving gateway, an IPv6 address that includes the UE, an IP address of the first DNS, and a first return code.
  • the first PDN connection activation response message is used to indicate that the UE activates two PDN connections under the same APN, and the IP versions of the two PDN connections are different.
  • the sending unit is specifically configured to send a first PDN connection activation request message to the management network element, so that The management network element sends a second PDN connection activation request message to the serving gateway according to the first PDN connection activation request, where the second PDN connection activation request message is used by the management network element to modify the PDP type indication information.
  • the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, where the IPv4v6 indication information is used to indicate that the PDP type is IPv6 and the IPv4v6 indication information and the first identifier information are added in the first PDN connection activation request message.
  • An identifier information is used to identify that the UE activates the two PDN connections under the same APN;
  • the receiving unit is configured to receive, by the management network element, a first PDN connection activation response message that includes an IPv6 address of the UE, an IP address of the first DNS, and a first return code, where the first PDN is sent by the management network element.
  • a connection activation response message sent by the management network element according to the service gateway The second PDN connection activation response message is sent, the second PDN connection activation response message includes an IPv6 address of the UE and an IP address of the first DNS, and the first PDN connection activation response message is the management network.
  • the element adds the first return code obtained in the second PDN connection activation response message.
  • the method further includes:
  • a determining unit configured to determine PDP type indication information in the third PDN connection activation request message as PDP type indication information indicating that the PDP type is IPv4, according to the first return code and the IPv6 address of the UE;
  • the sending unit is further configured to send a third PDN connection activation request message to the serving gateway, where the third PDN connection activation request message includes the PDP type indication information used to indicate that the PDP type is IPv4.
  • the receiving unit is further configured to receive a third PDN connection activation response message sent by the serving gateway, where the third PDN connection activation response message includes an IPv4 address of the UE and an IP address of the first DNS.
  • the first PDN connection activation response message includes an IP address of the UE, The IP address of the first DNS and/or the IP address of the second DNS.
  • the first PDN connection activation response message includes an IP address of the UE and a second The IP address of the DNS.
  • an embodiment of the present invention provides a service gateway, including:
  • a receiving unit configured to receive a first packet data network PDN connection activation request message sent by the user equipment UE, where the first PDN connection activation request message includes packet data protocol PDP type indication information, where the PDP type indication information is used to indicate The PDP type is IPv4v6 ;
  • a determining unit configured to determine, according to the PDP type indication information, an IP address of the UE and an IP address of a first domain name resolution server DNS;
  • a sending unit configured to send a first PDN connection activation response message to the UE, where the first PDN connection activation response message includes an IP address of the UE and an IP address of the first DNS, where the first IPv4 with Internet Protocol version 4 IPv4 service server stored in DNS The address does not store the Internet Protocol version 6 IPv6 address of the IPv4 service server, and the IPv6 address of the IPv4 service server is a 4 to 6 address.
  • the receiving unit is configured to receive, by the UE, a first PDN connection activation request message that includes a delay allocation identifier and the PDP type indication information, where the delay is The allocation identifier is used to indicate that the serving gateway delays allocation of an IPv4 address of the UE;
  • the determining unit is configured to determine an IPv6 address of the UE and an IP address of the first DNS according to the delay allocation identifier and the PDP type being IPv4v6;
  • the sending unit is specifically configured to send, to the UE, a first PDN connection activation response message that includes an IPv6 address of the UE and an IP address of the first DNS.
  • the determining unit is specifically configured to determine, according to the PDP type indication information and the first configuration information, an IPv4 address of the UE and an IP address of the first DNS. ;
  • the sending unit is specifically configured to send, to the UE, a first PDN connection activation response message that includes an IPv4 address of the UE, an IP address of the first DNS, and a first return code;
  • the first configuration information is used to indicate that the serving gateway allocates an IP version address to a PDN connection and activates two PDN connections under the same APN, where the first return code is used to indicate that the UE is in the same Two PDN connections are activated under one APN, and the IP versions of the two PDN connections are different.
  • the receiving unit is configured to receive a second PDN connection activation request message sent by the management network element,
  • the second PDN connection activation request message is sent by the management network element according to the first PDN connection activation request message sent by the UE, where the second PDN connection activation request message is that the management network element indicates the PDP type
  • the information is modified to be used to indicate that the PDP type is IPv4, and the IPv4v6 indication information and the first identifier information are added in the first PDN connection activation request message, where the IPv4v6 indication information is used to indicate that the UE supports IPv4v6.
  • the first identifier information is used to identify that the UE activates the two types of PDN connections under the same APN;
  • the determining unit is specifically configured to determine the first configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the first identifier information, and according to the modified PDP type, the IPv4 and the Determining the first configuration information, determining an IPv4 address and location of the UE The IP address of the first DNS;
  • the sending unit is configured to send, to the management network element, a second PDN connection activation response message that includes an IPv4 address of the UE and an IP address of the first DNS, so that the management network element is configured according to the Transmitting, by the second PDN connection activation response message, the first PDN connection activation response message to the UE, where the first PDN connection activation response message is that the management network element adds the first return code to the second PDN
  • the connection is obtained in the activation response message.
  • the receiving unit is further configured to receive the UE a third PDN connection activation request message that is sent according to the first return code and the IPv4 address of the UE, where the third PDN connection activation request message includes PDP type indication information indicating that the PDP type is IPv6.
  • the determining unit is further configured to determine that the UE has activated the PDN connection of the IPv4, and determine the IPv6 address of the UE according to the PDP type indication information and the first configuration information in the third PDN connection activation request message.
  • the sending unit is further configured to send a third PDN connection activation response message to the UE, where the third PDN connection activation response message includes an IPv6 address of the UE and an IP address of the first DNS.
  • the determining unit is specifically configured to determine, according to the PDP type indication information and the first configuration information, an IPv6 address of the UE and an IP address of the first DNS. ;
  • the sending unit is specifically configured to send, to the UE, a first PDN connection activation response message that includes an IPv6 address of the UE, an IP address of the first DNS, and a first return code;
  • the first configuration information is used to indicate that the serving gateway allocates an IP version address to a PDN connection and activates two PDN connections under the same APN, where the first return code is used to indicate that the UE is in the same Two PDN connections are activated under one APN, and the IP versions of the two PDN connections are different.
  • the receiving unit is configured to receive a second PDN connection activation request message that is sent by the management network element,
  • the second PDN connection activation request message is sent by the management network element according to the first PDN connection activation request message sent by the UE, where the second PDN connection activation request message is The management network element, the PDP type indication information is modified to be used to indicate that the PDP type is IPv6, and the IPv4v6 indication information and the first identification information are added in the first PDN connection activation request message, where
  • the first identifier information is used to identify that the UE activates the two PDN connections under the same APN;
  • the determining unit is configured to determine, according to the modified PDP type indication information, the IPv4v6 indication information, and the first identifier information, the first configuration information, and according to the modified PDP type, IPv6 and the Determining, by the first configuration information, an IPv6 address of the UE and an IP address of the first DNS;
  • the sending unit is configured to send, to the management network element, a second PDN connection activation response message that includes an IPv6 address of the UE and an IP address of the first DNS, so that the management network element is configured according to the Transmitting, by the second PDN connection activation response message, the first PDN connection activation response message to the UE, where the first PDN connection activation response message is that the management network element adds the second return code to the second PDN
  • the connection is obtained in the activation response message.
  • the method further includes:
  • the receiving unit is further configured to receive a third PDN connection activation request message sent by the UE according to the first return code and an IPv6 address of the UE, where the third PDN connection activation request message includes a PDP type Indicates the PDP type indication information for IPv4;
  • the determining unit is further configured to determine that the UE has activated the IPv6 PDN connection, and determine the IPv4 address of the UE according to the PDP type indication information and the first configuration information in the third PDN connection activation request message.
  • the sending unit is further configured to send a third PDN connection activation response message to the UE, where the third PDN connection activation response message includes an IPv4 address of the UE and an IP address of the first DNS.
  • the first PDN connection activation response message includes an IP address of the UE, The IP address of the first DNS and/or the IP address of the second DNS.
  • the PDP type indication information is used to indicate that the PDP type is IPv6
  • the first PDN connection activation response message includes an IP address of the UE and a Two DNS IP addresses.
  • the embodiment of the present invention further provides a UE, including:
  • a sending unit configured to send a first packet data network PDN connection activation request message to the serving gateway, where the first PDN connection activation request message includes packet data protocol PDP type indication information, where the PDP type indication information is used to indicate that the PDP type is IPv4v6;
  • a receiving unit configured to receive a first PDN connection activation response message sent by the serving gateway, where the first PDN connection activation response message includes an IPv4 address of the UE, an IP address of a first DNS, and/or a second DNS
  • the IPv4 address of the IPv4 service server is stored in the first DNS, but the IPv4 address of the IPv4 service server is not stored, and the IPv4 address of the IPv4 service server and the IPv4 service server are stored in the first DNS.
  • IPv6 address, the IPv6 address of the IPv4 service server is a 4 to 6 address.
  • the receiving unit is specifically configured to receive, by the serving gateway, an IPv4 address, a second return code, an IP address of the first DNS, and And a first PDN connection activation response message of the IP address of the second DNS, where the second return code is used to indicate that the UE activates an IP version of the PDN connection under the same access point name APN.
  • the sending unit is specifically configured to send a first PDN connection activation request message to the management network element, so that The management network element sends a second PDN connection activation request message to the serving gateway according to the first PDN connection activation request; the second PDN connection activation request message is that the management network element modifies the PDP type indication information
  • the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, where the IPv4v6 indication information is used to indicate that the PDP type is IPv4 and the IPv4v6 indication information and the first identification information are added in the first PDN connection activation request message.
  • the second identifier information is used to identify that the UE activates an IP version of the PDN connection under the same APN;
  • the receiving unit is specifically configured to receive, by the management network element, a first PDN connection that includes an IPv4 address, a second return code, an IP address of the first DNS, and/or an IP address of a second DNS of the UE.
  • Activating a response message where the first PDN connection activation response message is sent by the management network element according to the second PDN connection activation response message sent by the serving gateway, where the second PDN connection activation response message includes the UE
  • the IPv4 address, the IP address of the first DNS, and/or the IP address of the second DNS, the first PDN connection activation response message is that the management network element adds the second return code to the second PDN
  • the connection is activated by the response message.
  • the embodiment of the present invention further provides a service gateway, including:
  • a receiving unit configured to receive a first packet data network PDN connection activation request message sent by the user equipment UE, where the first PDN connection activation request message includes packet data protocol PDP type indication information, where the PDP type indication information is used to indicate a PDP
  • the type is IPv4v6 ;
  • a determining unit configured to determine, according to the PDP type indication information, an IPv4 address of the UE, an IP address of a first DNS, and/or an IP address of a second DNS;
  • a sending unit configured to send a first PDN connection activation response message to the UE, where the first PDN connection activation response message includes an IPv4 address of the UE, an IP address of a first DNS, and/or an IP address of a second DNS And storing, in the first DNS, an IPv4 address of the IPv4 service server but not an IPv6 address of the IPv4 service server, where the first DNS stores an IPv4 address of the IPv4 service server and an IPv6 address of the IPv4 service server.
  • the IPv6 address of the IPv4 service server is a 4 to 6 address.
  • the determining unit is specifically configured to determine, according to the PDP type indication information and the second configuration information, an IPv4 address of the UE, an IP address of the first DNS, and/or Or the IP address of the second DNS;
  • the sending unit is specifically configured to send, to the UE, a first PDN connection activation response message including an IPv4 address, a second return code, an IP address of the first DNS, and/or an IP address of a second DNS of the UE. ;
  • the second configuration information is used to indicate that the serving gateway allocates an IP version address to a PDN connection and activates an IP version of the PDN connection under the same access point name APN, where the second return code is used. Instructing the UE to activate an IP version of the PDN connection under the same APN.
  • the receiving unit is configured to receive a second PDN connection activation request message that is sent by the management network element,
  • the second PDN connection activation request message is sent by the management network element according to the first PDN connection activation request message sent by the UE, where the second PDN connection activation request message is that the management network element sends the PDP
  • the type indication information is modified to be used to indicate that the PDP type is IPv4, and the IPv4v6 indication information and the second identification information are added in the first PDN connection activation request message, where the IPv4v6 indication information is used to indicate the UE.
  • Supporting IPv4v6, the second identifier information is used to identify that the UE activates an IP version of the PDN under the same APN. connection;
  • the determining unit is specifically configured to determine the second configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the second identifier information, and according to the modified PDP type, IPv4 and the Determining, by the second configuration information, an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of a second DNS;
  • the sending unit is specifically configured to send, to the management network element, a second PDN connection activation response message that includes an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of a second DNS, so that The management network element sends the first PDN connection activation response message to the UE according to the second PDN connection activation response message, where the first PDN connection activation response message is that the management network element will be the second A return code is added in the first PDN connection activation response message.
  • an embodiment of the present invention provides an IP address allocation method, including:
  • the user equipment UE sends a first packet data network PDN connection activation request message to the serving gateway, where the first PDN connection activation request message includes packet data protocol PDP type indication information, and the PDP type indication information is used to indicate that the PDP type is IPv4v6;
  • the UE Receiving, by the UE, a first PDN connection activation response message sent by the serving gateway, where the first PDN connection activation response message includes an IP address of the UE and an IP address of a first domain name resolution server DNS, the first DNS
  • the IPv4 address of the Internet Protocol version 4 IPv4 service server is stored but the Internet Protocol version 6 IPv6 address of the IPv4 service server is not stored, and the IPv6 address of the IPv4 service server is 4 to 6 addresses.
  • the user equipment UE sends a first packet data network PDN connection activation request message to the serving gateway, including:
  • a first PDN connection activation request message including a delay allocation identifier and the PDP type indication information, to the serving gateway, where the delay allocation identifier is used to indicate that the serving gateway delays allocation of an IPv4 address of the UE;
  • Receiving, by the UE, the first PDN connection activation response message sent by the serving gateway, the UE includes: receiving, by the UE, a first PDN connection activation response message that is sent by the serving gateway, including the IPv6 address of the UE and the IP address of the first DNS .
  • the receiving, by the UE, the first PDN connection activation response message sent by the serving gateway includes: Receiving, by the UE, a first PDN connection activation response message that is sent by the serving gateway, including an IPv4 address of the UE, an IP address of the first DNS, and a first return code, where the first return code is used to indicate
  • the UE activates two PDN connections under the same access point name APN, and the IP versions of the two PDN connections are different.
  • the user equipment UE sends a first packet data network PDN connection activation request message to the serving gateway, including:
  • the PDN connection activation request message is configured by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv4, and the IPv4v6 indication information and the first identification information are added in the first PDN connection activation request message.
  • the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the first identifier information is used to identify that the UE activates the two types of PDN connections under the same APN;
  • the IP address of the DNS and the first PDN connection activation response message of the first return code including:
  • the method further includes:
  • the PDP type indication information in the third PDN connection activation request message is PDP type indication information indicating that the PDP type is IPv6, according to the first return code and the IPv4 address of the UE;
  • the UE sends a third PDN connection activation request message to the serving gateway, where the third PDN connection activation request message includes the PDP type indication information indicating that the PDP type is IPv6.
  • the UE receives a third PDN connection activation response message sent by the serving gateway, where the third PDN connection activation response message includes an IPv6 address of the UE and an IP address of the first DNS.
  • the receiving, by the UE, the first PDN connection activation response message sent by the serving gateway includes:
  • a first PDN connection activation response message that is sent by the serving gateway, including an IPv6 address of the UE, an IP address of the first DNS, and a first return code, where the first return code is used to indicate
  • the UE activates two PDN connections under the same APN, and the IP versions of the two PDN connections are different.
  • the user equipment UE sends the first packet data network PDN connection activation request message to the serving gateway, including:
  • the PDN connection activation request message is configured by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv6, and the IPv4v6 indication information and the first identification information are added in the first PDN connection activation request message.
  • the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the first identifier information is used to identify that the UE activates the two types of PDN connections under the same APN;
  • the IP address of the DNS and the first PDN connection activation response message of the first return code including:
  • the UE Receiving, by the UE, the first PDN connection activation response message that is sent by the management network element, including the IPv6 address of the UE, the IP address of the first DNS, and the first return code, the first PDN connection activation response message And transmitting, by the management network element, according to the second PDN connection activation response message sent by the serving gateway, where the second PDN connection activation response message includes an IPv6 address of the UE and an IP address of the first DNS, where The first PDN connection activation response message is obtained by the management network element adding the first return code to the second PDN connection activation response message.
  • the method further includes:
  • the PDP type indication information in the connection activation request message is PDP type indication information used to indicate that the PDP type is IPv4.
  • the UE sends a third PDN connection activation request message to the serving gateway, where the third PDN connection activation request message includes the PDP type indication information used to indicate that the PDP type is IPv4.
  • the UE receives a third PDN connection activation response message sent by the serving gateway, where the third PDN connection activation response message includes an IPv4 address of the UE and an IP address of the first DNS.
  • the first PDN connection activation response message includes an IP address of the UE, The IP address of the first DNS and/or the IP address of the second DNS.
  • the first PDN connection activation response message includes an IP address of the UE and a second The IP address of the DNS.
  • the embodiment of the present invention further provides an IP address allocation method, including:
  • the serving gateway receives the first packet data network PDN connection activation request message sent by the user equipment UE, where the first PDN connection activation request message includes packet data protocol PDP type indication information, and the PDP type indication information is used to indicate the PDP type.
  • the first PDN connection activation request message includes packet data protocol PDP type indication information, and the PDP type indication information is used to indicate the PDP type.
  • the serving gateway sends a first PDN connection activation response message to the UE, where the first PDN connection activation response message includes an IP address of the UE and an IP address of the first DNS; wherein the first DNS
  • the IPv4 address of the Internet Protocol version 4 IPv4 service server is stored but the Internet Protocol version 6 IPv6 address of the IPv4 service server is not stored, and the IPv6 address of the IPv4 service server is 4 to 6 addresses.
  • the serving gateway receives the first packet data network PDN connection activation request message sent by the user equipment UE, including:
  • a first PDN connection activation request message that is sent by the UE, including a delay allocation identifier and the PDP type indication information, where the delay allocation identifier is used to indicate that the serving gateway delays allocation of an IPv4 address of the UE ; Determining, by the serving gateway, the IP address of the UE and the IP address of the DNS of the first domain name resolution server according to the PDP type indication information, including:
  • the serving gateway sends the first PDN connection activation response message to the UE, where Response message.
  • the serving gateway determines, according to the PDP type indication information, an IP address of the UE and an IP address of a DNS of the first domain name resolution server, including:
  • the serving gateway sends the first PDN connection activation response message to the UE, where: the serving gateway sends, to the UE, an IPv4 address including the UE, an IP address of the first DNS, and a first return code. a first PDN connection activation response message;
  • the first configuration information is used to indicate that the serving gateway allocates an IP version address to a PDN connection and activates two PDN connections under the same access point name APN, where the first return code is used to indicate the location.
  • the UE activates two PDN connections under the same APN, and the IP versions of the two PDN connections are different.
  • the serving, the service gateway, the first packet data network PDN connection activation request message sent by the user equipment UE includes:
  • the serving gateway receives a second PDN connection activation request message sent by the management network element, where the second PDN connection activation request message is sent by the management network element according to the first PDN connection activation request message sent by the UE.
  • the second PDN connection activation request message is configured by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv4 and add IPv4v6 indication information and first identification information to the first PDN connection. Obtained in the activation request message, the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the first identifier information is used to identify that the UE activates the two types of PDN connections under the same APN;
  • the method further includes:
  • the serving gateway Determining, by the serving gateway, the first configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the first identifier information;
  • Determining, by the serving gateway, the IPv4 address of the UE and the IP address of the first DNS according to the PDP type indication information and the first configuration information including:
  • the method further includes:
  • the serving gateway receives a third PDN connection activation request message that is sent by the UE according to the first return code and the IPv4 address of the UE, where the third PDN connection activation request message is used to indicate that the PDP type is IPv6.
  • PDP type indication information
  • the UE sends a third PDN connection activation response message, where the third PDN connection activation response message includes an IPv6 address of the UE and an IP address of the first DNS.
  • the serving gateway determines, according to the PDP type indication information, the IP address of the UE and the IP address of the DNS of the first domain name resolution server, including:
  • the serving gateway sends the first PDN connection activation response message to the UE, where: the serving gateway sends, to the UE, an IPv6 address including the UE, the first DNS The first PDN connection activation response message of the IP address and the first return code;
  • the first configuration information is used to indicate that the serving gateway allocates an IP version address to a PDN connection and activates two PDN connections under the same APN, where the first return code is used to indicate that the UE is in the same The two PDN connections are activated under one APN.
  • the serving, the service gateway, the first packet data network PDN connection activation request message sent by the user equipment UE includes:
  • the serving gateway receives a second PDN connection activation request message sent by the management network element, where the second PDN connection activation request message is sent by the management network element according to the first PDN connection activation request message sent by the UE.
  • the second PDN connection activation request message is configured by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv6 and add IPv4v6 indication information and first identification information to the first PDN connection.
  • the serving gateway determines, according to the PDP type indication information and the first configuration information, Before the IPv6 address of the UE and the IP address of the first DNS, the method further includes:
  • the serving gateway Determining, by the serving gateway, the first configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the first identifier information;
  • Determining, by the serving gateway, the IPv6 address of the UE and the IP address of the first DNS according to the PDP type indication information and the first configuration information including:
  • the serving gateway Receiving, by the serving gateway, the UE according to the first return code and an IPv6 address of the UE Sending a third PDN connection activation request message, where the third PDN connection activation request message includes PDP type indication information indicating that the PDP type is IPv4;
  • the UE sends a third PDN connection activation response message, where the third PDN connection activation response message includes an IPv4 address of the UE and an IP address of the first DNS.
  • the first PDN connection activation response message includes an IP address of the UE, The IP address of the first DNS and/or the IP address of the second DNS.
  • the first PDN connection activation response message includes an IP address of the UE and a Two DNS IP addresses.
  • the seventh aspect of the present invention further provides an IP address allocation method, including:
  • the user equipment UE sends a first packet data network PDN connection activation request message to the serving gateway, where the first PDN connection activation request message includes packet data protocol PDP type indication information, and the PDP type indication information is used to indicate that the PDP type is IPv4v6;
  • the IPv6 address of the IPv4 service server is a 4 to 6 address.
  • the receiving, by the UE, the first PDN connection activation response message sent by the serving gateway includes:
  • a first PDN connection activation response message that is sent by the serving gateway, including an IPv4 address of the UE, a second return code, an IP address of the first DNS, and/or an IP address of the second DNS
  • the second return code is used to indicate that the UE activates an IP version of the PDN connection under the same access point name APN.
  • the user equipment UE sends a first packet data network PDN connection activation request message to the serving gateway, including:
  • the PDN connection activation request message is configured by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv4, and the IPv4v6 indication information and the first identification information are added in the first PDN connection activation request message.
  • the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the second identifier information is used to identify that the UE activates an IP version of a PDN connection under the same APN;
  • a first PDN connection activation response message that is sent by the serving gateway, including an IPv4 address of the UE, a first return code, an IP address of the first DNS, and/or an IP address of a second DNS, including :
  • a first PDN connection activation response message that is sent by the management network element, including an IPv4 address of the UE, a second return code, an IP address of the first DNS, and/or an IP address of a second DNS
  • the first PDN connection activation response message is sent by the management network element according to the second PDN connection activation response message sent by the serving gateway, where the second PDN connection activation response message includes the IPv4 address and the location of the UE. Determining the IP address of the first DNS and/or the IP address of the second DNS, the first PDN connection activation response message is that the management network element adds the second return code to the second PDN connection activation response message acquired.
  • the eighth aspect, the embodiment of the present invention further provides an IP address allocation method, including:
  • the serving gateway receives the first packet data network PDN connection activation request message sent by the user equipment UE, where the first PDN connection activation request message includes packet data protocol PDP type indication information, and the PDP type indication information is used to indicate that the PDP type is IPv4v6. ;
  • the serving gateway sends a first PDN connection activation response message to the UE, where the first PDN connection activation response message includes an IPv4 address of the UE, an IP address of a first DNS, and/or an IP address of a second DNS,
  • the IPv4 address of the IPv4 service server is stored in the first DNS, but the IPv4 address of the IPv4 service server is not stored, and the IPv4 address of the IPv4 service server and the IPv6 address of the IPv4 service server are stored in the first DNS.
  • the IPv4 service The server's IPv6 address is a 4 to 6 address.
  • the serving gateway determines, according to the PDP type indication information, an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of the second DNS, Includes:
  • IPv4 address of the UE the IP address of the first DNS, and/or the IP address of the second DNS;
  • the serving gateway sends the first PDN connection activation response message to the UE, where: the serving gateway sends, to the UE, an IPv4 address including the UE, a second return code, an IP address of the first DNS, and / or a first PDN connection activation response message of the IP address of the second DNS;
  • the second configuration information is used to indicate that the serving gateway allocates an IP version address to a PDN connection and activates an IP version of the PDN connection under the same access point name APN, where the second return code is used. Instructing the UE to activate an IP version of the PDN connection under the same APN.
  • the serving gateway by the user equipment, the first packet data network PDN connection activation request message sent by the user equipment UE, includes:
  • the serving gateway receives the second PDN connection activation request message sent by the management network element, where the second PDN connection activation request message is sent by the management network element according to the first PDN connection activation request message sent by the UE.
  • the second PDN connection activation request message is configured by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv4, and add IPv4v6 indication information and second identifier information to the first Obtained in the PDN connection activation request message, the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the second identifier information is used to identify that the UE activates an IP version of the PDN connection under the same APN;
  • the method further includes:
  • Determining, by the serving gateway, the PDP type indication information and the second configuration information The IPv4 address of the UE, the IP address of the first DNS, and/or the IP address of the second DNS, including: the serving gateway determining, according to the modified PDP type, IPv4 and the second configuration information, An IPv4 address, an IP address of the first DNS, and/or an IP address of a second DNS;
  • the serving gateway And sending, by the serving gateway, the first PDN connection activation response message that includes the IPv4 address of the UE, the second return code, the IP address of the first DNS, and/or the IP address of the second DNS to the UE, including:
  • a second PDN connection activation response message including an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of a second DNS to the management network element, to enable the management Sending, by the network element, the first PDN connection activation response message to the UE according to the second PDN connection activation response message, where the first PDN connection activation response message is that the management network element adds the second return code Obtained in the first PDN connection activation response message.
  • the first PDN connection activation request message is sent to the serving gateway by the sending unit of the UE, where the first PDN connection activation request message includes a PDP type indication for indicating that the PDP type is IPv4v6. Information, and then the receiving unit receives a first PDN connection activation response message sent by the serving gateway including the IP address of the UE and the IP address of the first DNS.
  • the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the data packet transmitted between the UE and the IPv4 service server does not need to pass through.
  • NAT64 conversion reduces the network load of NAT64 and improves data transmission efficiency.
  • Embodiment 1 is a schematic structural diagram of Embodiment 1 of a UE according to the present invention.
  • Embodiment 2 is a schematic structural diagram of Embodiment 2 of a UE according to the present invention.
  • Embodiment 1 of a service gateway according to the present invention is a schematic structural diagram of Embodiment 1 of a service gateway according to the present invention.
  • FIG. 4 is a schematic structural diagram of Embodiment 3 of a UE according to the present invention
  • FIG. 5 is a schematic structural diagram of Embodiment 2 of a service gateway according to the present invention
  • Embodiment 1 of an IP address allocation method according to the present invention
  • Embodiment 7 is a flowchart of Embodiment 2 of an IP address allocation method according to the present invention.
  • Embodiment 8 is a flowchart of Embodiment 3 of an IP address allocation method according to the present invention.
  • Embodiment 4 of an IP address allocation method according to the present invention.
  • Embodiment 5 is a flowchart of Embodiment 5 of an IP address allocation method according to the present invention.
  • FIG. 11 is a flowchart of Embodiment 6 of an IP address allocation method according to the present invention.
  • Embodiment 8 of an IP address allocation method according to the present invention.
  • Embodiment 10 is a flowchart of Embodiment 10 of an IP address allocation method according to the present invention.
  • FIG. 18 is a flowchart of Embodiment 13 of an IP address allocation method according to the present invention. detailed description
  • the technical solution of the present invention can be applied to various wireless communication systems, for example, a general packet radio service (English: General Packet Radio Service, GPRS for short) system, a 4G core network (Evolved Packet Core, EPC) system, Code Division Multiple Access (English: Code Division Multiple Access, CDMA) system.
  • the service gateway in the embodiments of the present invention may be a GGSN, a Packet Data Network Gateway (PGW), a Packet Data Serving Node (PDSN), or the like.
  • the management network element in the embodiments of the present invention may be a Serving GPRS Support Node (SGSN), a Mobility Management Gateway (MME), and a Packet Control Function (Packet Control Function).
  • SGSN Serving GPRS Support Node
  • MME Mobility Management Gateway
  • Packet Control Function Packet Control Function
  • FIG. 1 is a schematic structural diagram of Embodiment 1 of a UE according to the present invention.
  • the UE in this embodiment may include: a sending unit 11 and a receiving unit 12.
  • the sending unit 11 is configured to send a first packet data network (Packet Date Network, PDN) connection activation request message to the serving gateway, where the first PDN connection activation request message includes a packet data protocol (Packet Date Protocol, referred to as: PDP) Type indication information, the PDP type indication information is used to indicate that the PDP type is IPv4v6 ; the receiving unit 12 is configured to receive a first PDN connection activation response message sent by the serving gateway, where the first PDN connection is activated.
  • PDN Packet Date Network
  • PDP Packet Date Protocol
  • the response message includes an IP address of the UE and an IP address of the first DNS, where the first DNS stores an IPv4 address of the IPv4 service server but does not store an IPv6 address of the IPv4 service server, and the IPv6 of the IPv4 service server The address is 4 to 6 address.
  • the sending unit 11 may send a first PDN connection activation request message to the serving gateway to activate the first PDN connection, and request an IP address from the serving gateway, where the first PDN connection activation request message includes PDP type indication information,
  • the PDP type indication information is used to indicate the PDP type.
  • the UE in this embodiment is an IPv4v6 UE, that is, a UE that supports IPv4 and IPv6. Therefore, the PDP type indication information is used to indicate that the PDP type is IPv4v6.
  • the serving gateway After receiving the first PDN connection activation request message sent by the UE, the serving gateway parses the PDP type in the first PDP connection activation request message, that is, determines the PDP type as IPv4v6 according to the PDP type indication information in the first PDP connection activation request message. .
  • the first DNS and the second DNS may be deployed in the communication network in this embodiment.
  • the first DNS stores the IPv4 address of the IPv4 service server but does not store the IPv6 address of the IPv4 service server, and the IPv4 service server
  • the IPv6 address is a 4 to 6 address.
  • the IPv6 address of the IPv6 service server may be stored in the first DNS, and the IPv4 address and the IPv6 address of the IPv4 v6 service server may also be stored.
  • the second DNS stores an IPv4 address of the IPv4 service server and an IPv6 address of the IPv4 service server.
  • the first DNS is a traditional DNS in the prior art
  • the second DNS is a DNS64 in the prior art.
  • the difference between the first DNS and the second DNS is that the first DNS cannot be based on the IPv4 address of the IPv4 service server. Generate an IPv6 address of the IPv4 service server.
  • the serving gateway is configured as the IPv4v6 according to the PDP type.
  • the DNS assigned by the serving gateway to the UE is the first DNS, so the serving gateway can determine the IP of the first DNS.
  • the serving gateway allocates the IP of the UE to the UE. address.
  • the IP address of the UE may be the IPv4 address of the UE and/or the IPv6 address of the UE.
  • the IP address of the first DNS may be an IPv4 address of the first DNS and/or an IPv6 address of the first DNS.
  • the serving gateway sends a first PDP connection activation response message to the UE, where the first PDP connection activation response message includes an IP address of the UE and an IP address of the first DNS.
  • the receiving unit 12 can receive the first PDN connection activation response message sent by the serving gateway.
  • the sending, by the sending unit 11, the first PDN connection activation request message to the serving gateway may be: the sending unit sends a first PDN connection activation request message to the management network element, and the management gateway sends the first PDN connection activation to the serving gateway. Request message.
  • the receiving unit 12 receives the first PDN connection activation response message sent by the serving gateway, where the management gateway receives the first PDN connection activation response message sent by the serving gateway, and the receiving unit 12 receives the first PDN connection activation response message sent by the management gateway. .
  • the serving gateway sends the IP address of the second DNS to the UE, and the IPv4v6 UE requests the IP address of the IPv4 service server from the second DNS, and the second DNS will use the IPv4 address of the IPv4 service server and the IPv4 service server.
  • the IPv6 address is sent to the UE, and the UE sends the IPv6 data packet to the IPv4 service server according to the IPv6 address of the UE and the IPv6 address of the IPv4 service server. Since the IPv4 service server only supports IPv4, the UE sends the IPv4 service server to the IPv4 service server.
  • the IPv6 data packet is translated from the NAT64 to the IPv4 data packet and then sent to the IPv4 service server.
  • IPv4 data packet returned by the IPv4 service server to the UE is also translated into the IPv6 data packet by the NAT64 and then sent to the UE. Therefore, the data packet transmitted between the UE and the IPv4 service server needs to be converted by NAT64 to increase the network load of the NAT64.
  • the receiving unit 12 of the UE receives the IP address of the first DNS sent by the serving gateway, but does not obtain the IP address of the second DNS, so the UE requests IPv4 from the first DNS. If the IP address of the service server is obtained, the IPv4 address of the IPv4 service server is obtained, and then the UE sends an IPv4 data packet to the IPv4 service server according to the IPv4 address of the UE and the IPv4 address of the IPv4 service server, so the NAT64 conversion is not required. Thereby reducing the network load of NAT64.
  • the first PDN connection activation request message is sent to the serving gateway by the sending unit, where the first PDN connection activation request message includes PDP type indication information indicating that the PDP type is IPv4v6, and then the receiving unit receives the information sent by the serving gateway.
  • the data packets transmitted between the UE and the IPv4 service server do not need to be translated by NAT64, thereby reducing NAT64.
  • the network load also improves the efficiency of data transmission.
  • the sending unit 11 is specifically configured to send, to the serving gateway, a first PDN connection activation request message that includes a delay allocation identifier and the PDP type indication information, where the delay allocation identifier is used to indicate that the serving gateway delays allocation
  • the receiving unit 12 is configured to receive a first PDN connection activation response message that is sent by the serving gateway and includes an IPv6 address of the UE and an IP address of the first DNS.
  • the receiving unit 12 is specifically configured to receive, by the serving gateway, a first PDN connection activation response message that includes an IPv4 address of the UE, an IP address of the first DNS, and a first return code, where the A return code is used to indicate that the UE activates two PDN connections under the same Access Point Name (APN), and the IP versions of the two PDN connections are different.
  • the sending unit 11 is specifically configured to send a first PDN connection activation request message to the management network element, so that the management network element sends a second PDN connection activation request to the serving gateway according to the first PDN connection activation request.
  • the second PDN connection activation request message is configured by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv4 and add the IPv4v6 indication information and the first identification information to the first PDN.
  • the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the first identifier information is used to identify that the UE activates the two types of PDN connections, that is, the identifier, in the same APN.
  • the serving gateway allows the UE to activate the two PDN connections under the same APN.
  • the receiving unit 12 is specifically configured to receive the IPv4 address, the IP address of the first DNS, and the first return code that are sent by the management network element, including the UE.
  • the first PDN connection activation response message is sent by the management network element according to the serving gateway
  • the PDN connection activation response message is sent
  • the second PDN connection activation response message includes an IPv4 address of the UE and an IP address of the first DNS
  • the first PDN connection activation response message is that the management network element
  • the first return code is added in the second PDN connection activation response message.
  • the receiving unit 12 is specifically configured to receive, by the serving gateway, a first PDN connection activation response message that includes an IPv6 address of the UE, an IP address of the first DNS, and a first return code, where the A return code is used to indicate that the UE activates two PDN connections under the same APN, and the IP versions of the two PDN connections are different.
  • the sending unit 11 is specifically configured to The management network element sends a first PDN connection activation request message, so that the management network element sends a second PDN connection activation request message to the serving gateway according to the first PDN connection activation request, and the second PDN connection activation request
  • the message is that the management network element modifies the PDP type indication information to be used to indicate that the PDP type is IPv6, and the IPv4v6 indication information and the first identification information are added in the first PDN connection activation request message.
  • the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the first identifier information is used to identify that the UE activates the two types of PDN connections under the same APN.
  • the receiving unit 12 is specifically configured to receive the management network element to send.
  • a first PDN connection activation response message including an IPv6 address of the UE, an IP address of the first DNS, and a first return code
  • the first PDN connection activation response message is the management network element according to the service
  • the second PDN connection activation response message sent by the gateway where the second PDN connection activation response message includes an IPv6 address of the UE and an IP address of the first DNS
  • the first PDN Activation response message to the connection management element of the first return code is added in the second PDN connection activation response message obtained.
  • the UE in this embodiment may further include: a determining unit 13 based on the device structure shown in FIG. And determining, according to the first return code and the IPv4 address of the UE, the PDP type indication information in the third PDN connection activation request message is PDP type indication information used to indicate that the PDP type is IPv6; Sending a third PDN connection activation request message to the serving gateway, where the third PDN connection activation request message includes the PDP type indication information indicating that the PDP type is IPv6; the receiving unit 12 is further configured to receive the service. And a third PDN connection activation response message sent by the gateway, where the third PDN connection activation response message includes an IPv6 address of the UE and an IP address of the first DNS.
  • the determining unit 13 is configured to determine, according to the first return code and the IPv6 address of the UE, that the PDP type indication information in the third PDN connection activation request message is a PDP type indication used to indicate that the PDP type is IPv4.
  • the sending unit 11 is further configured to send a third PDN connection activation request message to the serving gateway, where the third PDN connection activation request message includes the PDP type indication information for indicating that the PDP type is IPv4, and the receiving unit 12 And a third PDN connection activation response message sent by the serving gateway, where the third PDN connection activation response message includes an IPv4 address of the UE and an IP address of the first DNS.
  • the UE does not obtain the second DNS because the UE obtains the IP address of the first DNS.
  • the IP address of the IPv4 service server obtained by the UE is the IPv4 address.
  • the data packets transmitted between the UE and the IPv4 service server do not need to be translated by NAT64, thereby reducing the network load of the NAT64 and improving the data transmission. effectiveness.
  • the first PDN connection activation response message includes an IP address of the UE, an IP address of the first DNS, and/or The IP address of the second DNS.
  • the first PDN connection activation response message includes an IP address of the UE and an IP address of the second DNS.
  • the above sending unit 11 can be a transmitter or a transceiver, and the above receiving unit
  • the above determining unit 13 may be embedded in or independent of the processor of the UE in hardware, or may be stored in the memory of the UE in software, so that the processor invokes the operations corresponding to the above units.
  • the processor can be a central processing unit (CPU), a microprocessor, a single chip microcomputer, or the like.
  • FIG. 3 is a schematic structural diagram of Embodiment 1 of a service gateway according to the present invention.
  • the serving gateway in this embodiment may include: a receiving unit 21, a determining unit 22, and a sending unit 23.
  • the receiving unit 21 is configured to receive a first PDN connection activation request message sent by the UE, where the first PDN connection activation request message includes PDP type indication information, where the PDP type indication information is used to indicate that the PDP type is IPv4v6 ;
  • the determining unit 22 is configured to determine an IP address of the UE and an IP address of the first DNS according to the PDP type indication information, where the sending unit 23 is configured to send a first PDN connection activation response message to the UE, where the first The PDN connection activation response message includes an IP address of the UE and an IP address of the first DNS, where the first DNS stores an IPv4 address of the IPv4 service server but does not store an IPv6 address of the IPv4 service server.
  • the first PDN connection activation request message sent by the UE is received by the receiving unit 21, where the first PDN connection activation request message includes PDP type indication information indicating that the PDP type is IPv4v6, and the determining unit 22 indicates according to the PDP type.
  • the information, determining the IP address of the UE and the IP address of the first DNS the sending unit 23 sends a first PDN connection activation response message including the IP address of the UE and the IP address of the first DNS to the UE, so that the UE acquires the first DNS of The IP address is not obtained by the IP address of the second DNS. Therefore, the IP address of the IPv4 service server acquired by the UE is an IPv4 address.
  • the data packets transmitted between the UE and the IPv4 service server do not need to be translated by NAT64, thereby reducing NAT64.
  • the network load also improves the efficiency of data transmission.
  • the receiving unit 21 is specifically configured to receive, by the UE, a first PDN connection activation request message that includes a delay allocation identifier and the PDP type indication information, where the delay allocation identifier is used to indicate that the serving gateway delays allocation
  • the determining unit 22 is configured to determine an IPv6 address of the UE and an IP address of the first DNS according to the delay allocation identifier and the PDP type is IPv4v6, where the sending unit 23 is specifically configured to: Transmitting, to the UE, a first PDN connection activation response message including an IPv6 address of the UE and an IP address of the first DNS.
  • the determining unit 22 is specifically configured to determine, according to the PDP type indication information and the first configuration information, an IPv4 address of the UE and an IP address of the first DNS, where the sending unit 23 is specifically configured to send to the UE Sending a first PDN connection activation response message including an IPv4 address of the UE, an IP address of the first DNS, and a first return code, where the first configuration information is used to indicate that the serving gateway sends a PDN connection Assigning an IP version address and activating two PDN connections under the same APN, the first return code is used to indicate that the UE activates two PDN connections under the same APN, and the IP versions of the two PDN connections are different. .
  • the receiving unit 21 is specifically configured to receive a second PDN connection activation request message sent by the management network element, where the second PDN connection activation request message is a first PDN connection activation request sent by the management network element according to the UE
  • the second PDN connection activation request message is sent by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv4, and the IPv4v6 indication information and the first identification information are added to the Obtained in the first PDN connection activation request message, the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the first identifier information is used to identify that the UE activates the two types of PDN connections under the same APN.
  • the determining unit 22 is specifically configured to determine the first configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the first identifier information, and according to the modified PDP type, the IPv4 and the The first configuration information is used to determine an IPv4 address of the UE and an IP address of the first DNS.
  • the sending unit 23 is specifically configured to send, to the management network element, an IPv4 address including the UE.
  • a second PDN connection activation response message with the IP address of the first DNS so that the management network element sends the first PDN connection activation response message to the UE according to the second PDN connection activation response message, Place The first PDN connection activation response message is obtained by the management network element adding the first return code in the second PDN connection activation response message.
  • the determining unit 22 is specifically configured to determine, according to the PDP type indication information and the first configuration information, an IPv6 address of the UE and an IP address of the first DNS, where the sending unit 23 is specifically configured to send to the UE Sending a first PDN connection activation response message including an IPv6 address of the UE, an IP address of the first DNS, and a first return code, where the first configuration information is used to indicate that the serving gateway sends a PDN connection Assigning an IP version address and activating two PDN connections under the same APN, the first return code is used to indicate that the UE activates two PDN connections under the same APN, and the IP versions of the two PDN connections are different. .
  • the receiving unit 21 is specifically configured to receive a second PDN connection activation request message sent by the management network element, where the second PDN connection activation request message is a first PDN connection activation request sent by the management network element according to the UE
  • the second PDN connection activation request message is sent by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv6, and the IPv4v6 indication information and the first identification information are added to the Obtained in the first PDN connection activation request message, the first identifier information is used to identify that the UE activates the two PDN connections under the same APN; the determining unit 22 is specifically configured to use the modified PDP type.
  • the sending unit 23 is specifically configured to send, to the management network element, a second PDN connection activation that includes an IPv6 address of the UE and an IP address of the first DNS a message, so that the management network element sends the first PDN connection activation response message to the UE according to the second PDN connection activation response message, where the first PDN connection activation response message is Said A second return code is added in the second PDN connection activation response message.
  • the receiving unit 21 is further configured to receive, according to the first return code, the UE
  • the sending unit 23 is further configured to: Sending a third PDN connection activation response message to the UE, where the third PDN connection activation response message includes an IPv4 address of the UE and an IP address of the first DNS.
  • the UE obtains the IP address of the first DNS and does not obtain the IP address of the second DNS, so the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the UE and the UE
  • the data packets transmitted between the IPv4 service servers do not need to be converted by NAT64, thus reducing the number of packets.
  • the network load of NAT64 also improves the efficiency of data transmission.
  • the first PDN connection activation response message includes an IP address of the UE, and the first DNS
  • IP address and / or IP address of the second DNS are examples of IP addresses and / or IP address of the second DNS.
  • the first PDN connection activation response message includes an IP address of the UE and an IP address of the second DNS.
  • the above receiving unit 21 may be a receiver or a transceiver, and the above sending unit
  • the above determining unit 22 may be embedded in or independent of the processor of the service gateway in hardware, or may be stored in the memory of the service gateway in software, so that the processor calls to perform operations corresponding to the above units.
  • the processor can be a CPU, a microprocessor, a microcontroller, or the like.
  • the UE in this embodiment may include: a sending unit 31 and a receiving unit 32, where the sending unit 31 is configured to send a first PDN connection to the serving gateway.
  • the activation request message, the first PDN connection activation request message includes PDP type indication information, the PDP type indication information is used to indicate that the PDP type is IPv4v6, and the receiving unit 32 is configured to receive the first PDN connection activation response message sent by the serving gateway.
  • the first PDN The connection activation response message includes an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of the second DNS.
  • the receiving unit 32 is specifically configured to receive, by the serving gateway, an IPv4 address including the UE, a second return code, an IP address of the first DNS, and/or an IP address of the second DNS.
  • the first PDN connection activation response message is used to indicate that the UE activates an IP version of the PDN connection under the same APN.
  • the sending unit 31 is specifically configured to send a first PDN connection activation request message to the management network element, so that the management network element sends a second PDN connection activation to the serving gateway according to the first PDN connection activation request.
  • a request message the second PDN connection activation request message is configured by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv4, and add the IPv4v6 indication information and the first identification information to the first Obtained in the PDN connection activation request message, the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the second identifier information is used to identify that the UE activates an IP version of the PDN connection under the same APN;
  • the unit 32 is specifically configured to receive, by the management network element, a first PDN connection activation response that includes an IPv4 address of the UE, a second return code, an IP address of the first DNS, and/or an IP address of a second DNS.
  • the first PDN connection activation response message is sent by the management network element according to the second PDN connection activation response message sent by the serving gateway, where
  • the second PDN connection activation response message includes an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of a second DNS, where the first PDN connection activation response message is that the management network element
  • the second return code is added in the second PDN connection activation response message.
  • the first PDN connection activation request message is sent by the sending unit to the serving gateway, and the receiving unit receives the IPv4 address of the UE sent by the serving gateway, the IP address of the first DNS, and/or the IP address of the second DNS; Only the IPv4 address of the UE is obtained, and the IPv4 data packet is transmitted between the UE and the IPv4 service server, and the NAT64 conversion is not required, thereby reducing the network load of the NAT64 and improving the data transmission efficiency.
  • the above sending unit 31 may be a transmitter or a transceiver
  • the receiving unit 32 may be a receiver or a transceiver
  • the sending unit 31 and the receiving unit 32 may be integrated to form a transceiver unit, corresponding to hardware implementation.
  • the processor can invoke the operations corresponding to each of the above units.
  • the processor can be a CPU, a microprocessor, a microcontroller, or the like.
  • FIG. 5 is a schematic structural diagram of Embodiment 2 of a service gateway according to the present invention.
  • the serving gateway may include: a receiving unit 41, a determining unit 42 and a sending unit 43, where the receiving unit 41 is configured to receive a first packet data network PDN connection activation request message sent by the user equipment UE, the first PDN connection activation request The message includes a packet data protocol PDP type indication information, the PDP type indication information is used to indicate that the PDP type is IPv4v6 , and the determining unit 42 is configured to determine, according to the PDP type indication information, an IPv4 address of the UE, and an IP of the first DNS.
  • the address and/or the IP address of the second DNS; the sending unit 43 is configured to send a first PDN connection activation response message to the UE, where the first PDN connection activation response message includes an IPv4 address of the UE, and a first DNS An IP address and/or an IP address of the second DNS, wherein the first DNS stores an IPv4 address of the IPv4 service server but does not store an IPv6 address of the IPv4 service server, where the first DNS stores an IPv4 service server.
  • the IPv4 address and the IPv6 address of the IPv4 service server, and the IPv6 address of the IPv4 service server is a 4 to 6 address.
  • the determining unit 42 is specifically configured to determine, according to the PDP type indication information and the second configuration information, an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of the second DNS.
  • the first PDN connection activation response message that includes the IPv4 address, the second return code, the IP address of the first DNS, and/or the IP address of the second DNS of the UE is sent to the UE;
  • the second configuration information is used to indicate that the serving gateway allocates an IP version address to a PDN connection and activates an IP version of the PDN connection under the same access point name APN, where the second return code is used to indicate The UE activates an IP version of the PDN connection under the same APN.
  • the receiving unit 41 is specifically configured to receive a second PDN connection activation request message sent by the management network element, where the second PDN connection activation request message is sent by the management network element according to the first PDN sent by the UE.
  • the second PDN connection activation request message is sent by the management network element to modify the PDP type indication information to indicate that the PDP type is IPv4 and the IPv4v6 indication information and the second identification information are sent by the connection activation request message.
  • the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the second identifier information is used to identify that the UE activates an IP under the same APN.
  • the determining unit 42 is specifically configured to determine the second configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the second identifier information, and according to the modified PDP type Determining, by the IPv4 and the second configuration information, an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of a second DNS;
  • the sending unit 43 is specifically configured to perform the management The network element sends a second PDN connection activation response message including an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of the second DNS, so that the management network element is according to the second PDN And transmitting, by the connection activation response message, the first PDN connection activation response message, where the first PDN connection activation response message is that the management network element adds the second return code to the first PDN connection activation Obtained in the response message.
  • the IP address of the IPv4 service server acquired by the UE is the IPv4 address
  • the data transmitted between the UE and the IPv4 service server is obtained because the IP address of the first DNS is not obtained by the UE.
  • the packet does not need to be translated by NAT64, which reduces the network load of NAT64 and improves the data transmission efficiency.
  • the above receiving unit 41 may be a receiver or a transceiver, and the above sending unit
  • the above determining unit 42 may be embedded in or independent of the processor of the service gateway in hardware, or may be stored in the memory of the service gateway in software, so that the processor invokes the operations corresponding to the above units.
  • the processor can be a CPU, a microprocessor, a microcontroller, or the like.
  • FIG. 6 is a flowchart of Embodiment 1 of an IP address allocation method according to the present invention. As shown in FIG. 6, the method in this embodiment may include:
  • the UE sends a first PDN connection activation request message to the serving gateway.
  • the UE receives a first PDN connection activation response message sent by the serving gateway.
  • the UE may send a first PDN connection activation request message to the serving gateway to activate the first PDN connection, and request an IP address from the serving gateway, where the first PDN connection activation request message includes PDP type indication information.
  • the PDP type indication information is used to indicate the PDP type.
  • the UE in this embodiment is an IPv4v6 UE, that is, a UE that supports IPv4 and IPv6. Therefore, the PDP type indication information is used to indicate that the PDP type is IPv4v6.
  • the serving gateway After receiving the first PDN connection activation request message sent by the UE, the serving gateway parses the PDP type in the first PDP connection activation request message, that is, determines the PDP type as IPv4v6 according to the PDP type indication information in the first PDP connection activation request message. .
  • the first DNS and the second DNS may be deployed in the communication network in this embodiment.
  • the first DNS stores the IPv4 address of the IPv4 service server but does not store the IPv6 address of the IPv4 service server, and the IPv4 service server IPv6 address is 4 to 6 address, optionally, first
  • the DNS can also store the IPv6 address of the IPv6 service server, or the IPv4 address and IPv6 address of the IPv4v6 service server.
  • the second DNS stores an IPv4 address of the IPv4 service server and an IPv6 address of the IPv4 service server.
  • the first DNS is a traditional DNS in the prior art
  • the second DNS is a DNS64 in the prior art.
  • the difference between the first DNS and the second DNS is that the first DNS cannot be based on the IPv4 address of the IPv4 service server. Generate an IPv6 address of the IPv4 service server.
  • the serving gateway is configured as the IPv4v6 according to the PDP type.
  • the DNS assigned by the serving gateway to the UE is the first DNS, so the serving gateway can determine the IP of the first DNS.
  • the serving gateway allocates the IP address of the UE to the UE.
  • the IP address of the UE may be the IPv4 address of the UE and/or the IPv6 address of the UE.
  • the IP address of the first DNS may be the IPv4 address of the first DNS and/or the IPv6 address of the first DNS.
  • the service gateway sends a first PDP connection activation response message to the UE, and the first PDP connection activation response message includes an IP address of the UE and an IP address of the first DNS.
  • the UE may receive a first PDN connection activation response message sent by the serving gateway.
  • the process of the UE sending the first PDN connection activation request message to the serving gateway may be: the UE sends a first PDN connection activation request message to the management network element, and the management gateway sends a first PDN connection activation request message to the service gateway.
  • the process of the UE receiving the first PDN connection activation response message sent by the serving gateway may be: the management gateway receives the first PDN connection activation response message sent by the serving gateway, and the UE receives the first PDN connection activation response message sent by the management gateway.
  • the serving gateway sends the IP address of the second DNS to the UE, and the IPv4v6 UE requests the IP address of the IPv4 service server from the second DNS, and the second DNS will use the IPv4 address of the IPv4 service server and the IPv4 service server.
  • the IPv6 address is sent to the UE, and the UE sends the IPv6 data packet to the IPv4 service server according to the IPv6 address of the UE and the IPv6 address of the IPv4 service server. Since the IPv4 service server only supports IPv4, the UE sends the IPv4 service server to the IPv4 service server.
  • the IPv6 data packet is translated from the NAT64 to the IPv4 data packet and then sent to the IPv4 service server.
  • IPv4 data packet returned by the IPv4 service server to the UE is also translated into the IPv6 data packet by the NAT64 and then sent to the UE. Therefore, the data packet transmitted between the UE and the IPv4 service server needs to be converted by NAT64 to increase the network load of the NAT64.
  • the UE when the UE is an IPv4v6 UE, the UE receives the IP address of the first DNS sent by the serving gateway, but does not obtain the IP address of the second DNS, so the UE goes to the first DNS.
  • the IPv4 address of the IPv4 service server is requested, the IPv4 address of the IPv4 service server is obtained, and then the UE sends an IPv4 data packet to the IPv4 service server according to the IPv4 address of the UE and the IPv4 address of the IPv4 service server, so the NAT64 is not required. Conversion, which reduces the network load of NAT64.
  • the IP address allocation method provided by the first embodiment of the present invention sends the first to the serving gateway by the UE.
  • the first PDN connection activation request message includes PDP type indication information indicating that the PDP type is IPv4v6, and then receiving a first PDN connection sent by the serving gateway including the IP address of the UE and the IP address of the first DNS Activate the response message.
  • the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the data packet transmitted between the UE and the IPv4 service server does not need to pass through.
  • NAT64 conversion reduces the network load of NAT64 and improves data transmission efficiency.
  • FIG. 7 is a flowchart of Embodiment 2 of an IP address allocation method according to the present invention. As shown in FIG. 7, the method in this embodiment may include:
  • the serving gateway receives the first PDN connection activation request message sent by the UE.
  • the serving gateway determines the IP address of the UE and the IP address of the first DNS according to the PDP type indication information.
  • S203 The serving gateway sends a first PDN connection activation response message to the UE.
  • the serving gateway may receive the first PDN connection activation request message sent by the UE, where the first PDN connection activation request includes PDP type indication information, where the UE in this embodiment is
  • the serving gateway may parse the PDP type in the first PDP connection activation request message, that is, determine the PDP type as IPv4v6 according to the PDP type indication information in the first PDP connection activation request message.
  • the first DNS and the second DNS may be deployed in the communication network in this embodiment.
  • the first DNS stores the IPv4 address of the IPv4 service server but does not store the IPv6 address of the IPv4 service server, and the IPv4 service server
  • the IPv6 address is a 4 to 6 address.
  • the IPv6 address of the IPv6 service server may be stored in the first DNS, and the IPv4 address and the IPv6 address of the IPv4 v6 service server may also be stored.
  • the second DNS stores an IPv4 address of the IPv4 service server and an IPv6 address of the IPv4 service server.
  • the first DNS is a traditional DNS in the prior art
  • the second DNS is a DNS64 in the prior art
  • the first DNS and the first DNS The difference between the two DNSs is that the first DNS cannot generate an IPv6 address of the IPv4 service server according to the IPv4 address of the IPv4 service server.
  • the serving gateway determines that the UE is a UE that supports both IPv4 and IPv6 according to the PDP type. If the first DNS and the second DNS are deployed at the same time, the serving gateway determines that the DNS allocated to the UE is The first DNS, so that the serving gateway determines the IP address of the first DNS, and the serving gateway allocates the IP address of the UE to the UE.
  • the IP address of the UE may be the IPv4 address of the UE and/or the IPv6 address of the UE.
  • the IP address of the first DNS may be an IPv4 address of the first DNS and/or an IPv6 address of the first DNS.
  • the serving gateway sends a first PDP connection activation response message to the UE, where the first PDP connection activation response message includes the determined IP address of the UE and an IP address of the first DNS.
  • the UE may receive the first PDN connection activation response message sent by the serving gateway.
  • the process that the serving gateway receives the first PDN connection activation request message sent by the UE may be: the UE sends a first PDN connection activation request message to the management network element, and the serving gateway receives the first PDN connection activation request message sent by the UE.
  • the process of the serving gateway sending the first PDN connection activation response message to the UE may be: the serving gateway sends a first PDN connection activation response message to the management gateway, and the management network element sends a first PDN connection activation response message to the UE.
  • the serving gateway sends the IP address of the second DNS to the UE, and the IPv4v6 UE requests the IP address of the IPv4 service server from the second DNS, and the second DNS will use the IPv4 address of the IPv4 service server and the IPv4 service server.
  • the IPv6 address is sent to the UE, and the UE sends the IPv6 data packet to the IPv4 service server according to the IPv6 address of the UE and the IPv6 address of the IPv4 service server. Since the IPv4 service server only supports IPv4, the UE sends the IPv4 service server to the IPv4 service server.
  • the IPv6 data packet is translated from the NAT64 to the IPv4 data packet and then sent to the IPv4 service server.
  • IPv4 data packet returned by the IPv4 service server to the UE is also translated into the IPv6 data packet by the NAT64 and then sent to the UE. Therefore, the data packet transmitted between the UE and the IPv4 service server needs to be converted by NAT64 to increase the network load of the NAT64.
  • the serving gateway when the UE is an IPv4v6 UE, the serving gateway sends the IP address of the first DNS to the UE, and the UE does not obtain the IP address of the second DNS, so the UE requests the IPv4 service server from the first DNS. Obtain an IPv4 address to the IPv4 service server, and then the UE sends an IPv4 data packet to the IPv4 service server according to the IPv4 address of the UE and the IPv4 address of the IPv4 service server, so the NAT64 conversion is not required, thereby reducing Up NAT64 network load.
  • the IP address allocation method provided by the second embodiment of the present invention receives the first PDN connection activation request message sent by the UE by using the serving gateway, where the first PDN connection activation request message includes PDP type indication information indicating that the PDP type is ip v 4v6. And then, according to the PDP type indication information, determining an IP address of the UE and an IP address of the first DNS, and sending, to the UE, a first PDN connection activation response message including an IP address of the UE and an IP address of the first DNS, so that the UE acquires The IP address of the first DNS is not obtained by the IP address of the second DNS.
  • the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the data packet transmitted between the UE and the IPv4 service server does not need to be translated by NAT64. Thereby reducing the network load of NAT64 and improving the data transmission efficiency.
  • the PDP type indication information in the first PDN connection activation request message sent by the UE to the serving gateway is used to indicate that the PDP type is IPv4, and the serving gateway is based on the PDP type. Determining that the UE is an IPv4 UE for the IPv4, and the serving gateway determines that the UE allocates the IPv4 address of the UE according to the UE as the IPv4 UE, and the serving gateway determines that the DNS allocated to the UE is the first DNS and/or the second DNS according to the UE being the IPv4 UE.
  • the IP address of the first DNS and/or the IP address of the second DNS may be determined, and then the serving gateway sends the UE to the first PDN connection activation response message, which may include the IP address of the UE, the IP address of the first DNS, and/or The IP address of the second DNS, specifically, the first PDN connection activation response message may include an IPv4 address of the UE, an IPv4 address of the first DNS, and/or an IPv4 address of the second DNS.
  • the UE Regardless of whether the UE obtains the IP address of the first DNS or the IP address of the second DNS, the UE only supports IPv4, so the UE sends the IPv4 data packet to the IPv4 service server without NAT64 conversion.
  • the PDP type indication information in the first PDN connection activation request message sent by the UE to the serving gateway is used to indicate that the PDP type is IPv6, and the serving gateway is based on the PDP type. Determining that the UE is an IPv6 UE for the IPv6, the serving gateway determines that the UE allocates the IPv6 address of the UE according to the UE as the IPv6 UE, and the serving gateway determines that the DNS allocated to the UE is the second DNS according to the UE being the IPv6 UE, and then determines the second DNS.
  • the IP address of the UE may be included in the first PDN connection activation response message, and the first PDN connection activation response message may include the IPv6 address of the UE. And the IPv6 address of the second DNS. Since the UE only supports IPv6, if the UE is assigned the IP address of the first DNS, the UE obtains the IPv4 service server from the first DNS. The IPv4 address cannot obtain the IPv6 address of the IPv4 service server, so the UE cannot access the IPv4 service server. Therefore, the serving gateway allocates the IP address of the second DNS to the UE, and the IPv6 UE can access the IPv4 service server.
  • FIG. 8 is a flowchart of Embodiment 3 of an IP address allocation method according to the present invention. As shown in FIG. 8, the method in this embodiment may include:
  • the UE sends a first PDN connection activation request message including a delay allocation identifier and PDP type indication information to the serving gateway.
  • the serving gateway receives the first PDN connection activation request message that is sent by the UE, including the delay allocation identifier and the PDP type indication information.
  • the UE is an IPv4v6 UE
  • the UE may send a first PDN connection activation request message including a delay allocation identifier and PDP type indication information to the serving gateway, where the PDP type indication information is used to indicate that the PDP type is IPv4v6, and the delay allocation is performed.
  • the identifier is used to instruct the serving gateway to delay allocation of the IPv4 address of the UE.
  • the serving gateway determines the IPv6 address of the UE and the IP address of the first DNS according to the delay allocation identifier and the PDP type is IPv4v6.
  • the serving gateway sends a first PDN connection activation response message including an IPv6 address of the UE and an IP address of the first DNS to the UE.
  • the serving gateway may determine that the UE is an IPv4v6 UE according to the PDP type in the first PDN connection activation request message, and the serving gateway is the IPv4v6 according to the UE.
  • the UE and the delay allocation flag determine that the DNS allocated to the UE is the first DNS, and then determine the IP address of the first DNS, and the serving gateway may further determine the UE as the UE according to the delay allocation identifier in the first PDN connection activation request message.
  • the IPv6 address of the UE is allocated, and the IPv4 address of the UE may be allocated to the UE for a period of time.
  • the process of the service gateway delaying the allocation of the IPv4 address of the UE to the UE is similar to the prior art, and details are not described herein.
  • the serving gateway can then send a first PDN connection activation response message including the IPv6 address of the UE and the IP address of the first DNS to the UE.
  • the UE receives a first PDN connection activation response message that is sent by the serving gateway, including an IPv6 address of the UE and an IP address of the first DNS.
  • the UE may receive a first PDN connection activation response message that is sent by the serving gateway, including the IPv6 address of the UE and the IP address of the first DNS, and the UE may obtain the IP of the first DNS. If the IP address of the second DNS is not obtained, the UE may obtain the IPv4 address of the IPv4 service server from the first DNS, and may not obtain the IPv6 of the IPv4 service server. Therefore, after the serving gateway allocates an IPv4 address to the UE, the UE may send an IPv4 data packet to the IPv4 service server, without performing NAT64 conversion.
  • the IP address allocation method provided by the third embodiment of the present invention sends a first PDN connection activation request message including a delay allocation identifier and PDP type indication information to the serving gateway by the UE; the serving gateway determines the UE according to the delay allocation identifier and the PDP type is IPv4v6.
  • the IPv6 address and the IP address of the first DNS and then send a first PDN connection activation response message including the IPv6 address of the UE and the IP address of the first DNS to the UE, so that the UE acquires the IP address of the first DNS but does not acquire The IP address of the second DNS is obtained.
  • the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the data packet transmitted between the UE and the IPv4 service server does not need to be translated by NAT64, thereby reducing the network load of the NAT64. Improve data transfer efficiency.
  • FIG. 9 is a flowchart of Embodiment 4 of an IP address allocation method according to the present invention. As shown in FIG. 9, the method in this embodiment may include:
  • the UE sends a first PDN connection activation request message to the serving gateway.
  • the serving gateway receives the first PDN connection activation request message sent by the UE.
  • the UE is an IPv4v6 UE
  • the PDP type indication information in the first PDN connection activation request message is used to indicate that the PDP type is IPv4v6.
  • the serving gateway determines, according to the PDP type indication information and the first configuration information, the IPv4 address of the UE and the IP address of the first DNS.
  • the serving gateway sends a first PDN connection activation response message including an IPv4 address of the UE, an IP address of the first DNS, and a first return code to the UE.
  • the serving gateway is configured to indicate that the PDP type is IPv4v6 according to the PDP type indication information, and determine that the UE is an IPv4v6 UE.
  • the service gateway may determine the first configuration information according to the indication of the management gateway, or may first store the first configuration information in the service gateway, where the first configuration information is used to instruct the service gateway to assign an IP version address to a PDN connection and the same An access point name (Access Point Name, APN for short) activates two PDN connections (that is, an IPv4 PDN connection and an IPv6 PDN connection).
  • the serving gateway may determine, according to the PDP type indication information, the IPv4v6 and the first configuration information, and allocate an IP version address to the UE under the PDN connection.
  • the serving gateway determines to allocate the IPv4 address of the UE to the UE.
  • the service gateway The UE may be allocated an IPv4 address of the UE according to the preset information, where the preset information is used to indicate that the serving gateway allocates the IPv4 address of the UE to the UE according to the PDP type of IPv4v6, or the serving gateway may allocate the UE to the UE according to the indication of the management network element. IPv4 address.
  • the serving gateway may also determine that the DNS assigned to the UE is the first DNS according to the PDP type for IPv4v6, and then determine the IP address of the first DNS.
  • the first PDN connection activation response message including an IPv4 address of the UE, an IP address of the first DNS, and a first return code, where the first return code is used Instructing the UE to activate the two types of PDN connections under the same APN, and the IP versions of the two types of PDN connections are different to indicate that the PDP type indication information is used by the UE to indicate that the PDP type is IPv6. Not IPv4v6.
  • the first return code is New PDP type due to single address bearer only.
  • the UE receives a first PDN connection activation response message that is sent by the serving gateway, including an IPv4 address of the UE, an IP address of the first DNS, and a first return code.
  • the UE may receive the first PDN connection activation response message that is sent by the serving gateway, including the IPv4 address of the UE, the IP address of the first DNS, and the first return code, and the UE may obtain the IP address of the first DNS, but not Obtaining the IP address of the second DNS, the UE may obtain the IPv4 address of the IPv4 service server from the first DNS, and may not obtain the IPv6 of the IPv4 service server. Therefore, the UE can send IPv4 data packets to the IPv4 service server without NAT64 conversion.
  • the IP address allocation method provided by the fourth embodiment of the present invention sends a first PDN connection activation request message including PDP type indication information indicating that the PDP type is IPv4v6 to the serving gateway by the UE; the serving gateway is IPv4v6 and the first according to the PDP type. Determining the IPv4 address of the UE and the IP address of the first DNS, and then sending a first PDN connection activation response message including the IPv4 address of the UE, the IP address of the first DNS, and the first return code to the UE, so that the UE obtains The IP address of the first DNS is not obtained, and the IP address of the second DNS is not obtained.
  • the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the data packet transmitted between the UE and the IPv4 service server does not need to be converted by NAT64. , thereby reducing the network load of NAT64, and also improving the data transmission efficiency.
  • FIG. 10 is a flowchart of Embodiment 5 of an IP address allocation method according to the present invention. As shown in FIG. 10, the method in this embodiment may include:
  • the UE sends a first PDN connection activation request message to the management network element.
  • the UE is an IPv4v6 UE, and the UE sends a PDN connection activation request message to the serving network element, and needs to be forwarded by the management network element. Therefore, the UE sends a first PDN connection activation request message to the management network element, where the PDP type indication information in the first PDN connection activation request message is used to indicate that the PDP type is IPv4v6.
  • the management network element receives the first PDN connection activation request message sent by the UE.
  • the management network element modifies the PDP type indication information in the first PDN connection activation request message to be used to indicate that the PDP type is IPv4, and adds the IPv4v6 indication information and the first identifier information to the first PDN connection activation request message.
  • the second PDN connection activation request message modifies the PDP type indication information in the first PDN connection activation request message to be used to indicate that the PDP type is IPv4, and adds the IPv4v6 indication information and the first identifier information to the first PDN connection activation request message.
  • the second PDN connection activation request message modifies the PDP type indication information in the first PDN connection activation request message to be used to indicate that the PDP type is IPv4, and adds the IPv4v6 indication information and the first identifier information to the first PDN connection activation request message.
  • S504 The management network element sends a second PDN connection activation request message to the serving network element.
  • the management network element may receive the first PDN connection activation request message sent by the UE, and the management network element may modify the PDP type indication information in the first PDN connection activation request message according to the user subscription data of the UE, where the user The subscription data may be used to allocate the IPv4 address of the UE or the IPv6 address of the UE to the UE under one PDN connection.
  • the management network element may modify the PDP type indication information in the first PDN connection activation request message according to the user subscription data.
  • the first identifier information may be added to the first PDN connection activation request message to obtain a second PDN connection activation request message, where the IPv4v6 indication information is used to indicate that the UE supports IPv4v6, and the first identifier information is used to identify that the UE is in the Two PDN connections are activated under the same APN, and the IP versions of the two PDN connections are different. Is UE identifies the service gateway allows activation of two kinds PDN connection at the same APN.
  • the management network element sends the second PDN connection activation request message to the serving gateway after obtaining the second PDN connection activation request message.
  • the serving gateway receives a second PDN connection activation request message sent by the management network element.
  • the second PDN connection activation request message is sent by the management network element according to the first PDN connection activation request message sent by the UE, and the second PDN connection activation request message is used by the management network element to modify the PDP type indication information to indicate the PDP type. It is obtained by adding IPv4v6 indication information and first identification information to the first PDN connection activation request message for IPv4.
  • the service gateway determines the first configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the first identifier information.
  • the serving gateway after receiving the second PDN connection activation request message, obtains the PDP type indication information in the second PDN connection activation request message, that is, the modified PDP type indication information (for example, IPv4) and the IPv4v6 indication information.
  • the first identification information it may be determined that the UE itself supports IPv4v6, but the UE supports only one IP version, gp IPv4, and the UE activates two PDN connections under the same APN, and the two PDNs are connected.
  • the IP version is different, so that the service gateway can determine the first configuration information.
  • the first configuration information is used to indicate that the serving gateway allocates one IP version address to one PDN connection and activates two PDN connections under the same APN.
  • the serving gateway determines the IPv4 address of the UE and the IP address of the first DNS according to the modified PDP type being IPv4 and the first configuration information.
  • the serving gateway may allocate the IPv4 address of the UE to the UE according to the modified PDP type and the first configuration information, because the serving gateway learns that the UE is an IPv4v6 UE, and Under another PDN connection, the UE may be assigned an IPv6 address of the UE. Therefore, if the serving gateway allocates the IPv4 address of the UE to the UE, the DNS assigned to the UE is determined to be the first DNS, and then the IP address of the first DNS may be determined. .
  • the serving gateway sends a second PDN connection activation response message including the IPv4 address of the UE and the IP address of the first DNS to the management network element.
  • the serving gateway after determining the IPv4 address of the UE and the IP address of the first DNS, the serving gateway returns the IPv4 address of the UE and the IP address of the first DNS to the UE, and the information transmitted between the serving gateway and the UE passes.
  • the forwarding of the management network element is performed. Therefore, the serving gateway sends a second PDN connection activation response message including the IPv4 address of the UE and the IP address of the first DNS to the management network element.
  • the management network element receives a second PDN connection activation response message sent by the serving gateway.
  • the management network element adds the first return code to the second PDN connection activation response message, and obtains a first PDN connection activation response message.
  • the management network element sends a first PDN connection activation response message to the UE.
  • the management network element receives the second PDN connection activation response message sent by the serving gateway, and the management network element modifies the PDP type indication information in the first PDN connection activation request message sent by the UE, so the management network
  • the UE adds the first return code to the second PDN connection activation response message, obtains the first PDN connection activation response message, and activates the first PDN connection.
  • the first return code is New PDP type due to single address bearer only. S512.
  • the UE receives a first PDN connection activation response message that is sent by the management network element, including an IPv4 address of the UE, an IP address of the first DNS, and a first return code.
  • the first PDN connection activation response message is sent by the management network element according to the second PDN connection activation response message sent by the serving gateway, where the second PDN connection activation response message includes the IPv4 address of the UE and the IP address of the first DNS,
  • the PDN Connection Activation Response message is obtained by the management network element adding the first return code to the second PDN connection activation response message.
  • the UE may receive the first PDN connection activation response message that is sent by the serving gateway, including the IPv4 address of the UE and the IP address of the first DNS, by the management network element, and the UE may acquire the IP address of the first DNS, but does not acquire The IP address of the second DNS, the UE may obtain the IPv4 address of the IPv4 service server from the first DNS, and may not obtain the IPv6 of the IPv4 service server. Therefore, the UE can send IPv4 data packets to the IPv4 service server without NAT64 conversion.
  • the UE sends a first PDN connection activation request message to the management network element, and the management network element modifies the PDP type indication information in the first PDN connection activation request message to indicate the PDP.
  • the type is IPv4, and the IPv4v6 indication information and the first identification information are added to the first PDN connection activation request message, the second PDN connection activation request message is obtained, and the second PDN connection activation request message is sent to the serving network element;
  • the service gateway is configured according to Determining the PDP type indication information, the IPv4v6 indication information, and the first identification information, determining the first configuration information, determining the IPv4 address of the UE and the IP address of the first DNS according to the modified PDP type being IPv4 and the first configuration information, And transmitting, to the management network element, a second PDN connection activation response message including the IPv4 address of the UE and the IP address of the first DNS; the management network element adds the first return code to the second PDN connection activation response message, to obtain the first PDN connection.
  • IPv4 address including the UE, an IP address of the first DNS, and the first to the UE
  • the IP address of the IPv4 service server acquired by the UE is an IPv4 address
  • the UE and the IPv4 Data packets transmitted between service servers do not need to be translated by NAT64, which reduces the network load of NAT64 and improves data transmission efficiency.
  • FIG. 11 is a flowchart of Embodiment 6 of an IP address allocation method according to the present invention. As shown in FIG. 11, the method in this embodiment may further include the method in the embodiment of FIG. 9 or FIG. : S601.
  • the UE determines, according to the first return code and the IPv4 address of the UE, the PDP type indication information in the third PDN connection activation request message to be PDP type indication information indicating that the PDP type is IPv6.
  • the UE sends a third PDN connection activation request message to the serving gateway.
  • the UE may use the first return code and the serving gateway in the first PDN connection activation response message as the UE.
  • the assigned IPv4 address of the UE may determine that the PDP type indication information in the next PDN activation request message (ie, the third PDN connection activation request message) sent to the serving gateway is used to indicate that the PDP type is IPv6, instead of indicating The PDP type is IPv4v6.
  • the UE may then send a third PDN connection activation request message to the serving gateway, the third PDN connection activation request message including PDP type indication information indicating that the PDP type is IPv6.
  • the serving gateway receives a third PDN connection activation request message sent by the UE according to the first return code and the IPv4 address of the UE.
  • the serving gateway determines that the UE has activated the PDN connection of the IPv4.
  • the serving gateway receives the third PDN connection activation request message sent by the UE, and may determine PDP type indication information indicating that the PDP type is IPv6 in the third PDN connection activation request message. The serving gateway then determines whether the UE has activated the PDN of the IPv4. If the serving gateway determines that the UE has activated the PDN connection of the IPv4, then S605 is performed. If the serving gateway determines that the UE does not activate the PDN connection of the IPv4, it may determine that the UE is an IPv6 UE, and then the serving gateway allocates the IPv6 address of the UE and the IP address of the second DNS to the UE.
  • the serving gateway determines the IPv6 address of the UE and the IP address of the first DNS according to the PDP type indication information and the first configuration information in the third PDN connection activation request message.
  • the serving gateway determines that the UE has activated the IPv4 PDN connection, and assigns an IP version address to the PDN connection according to the PDP class, and activates two PDN connections under the same APN.
  • the IP version of the PDN connection is different, and it is determined that the UE allocates the IPv6 address of the UE. Since the UE has activated the IPv4 PDN connection, it can be determined that the UE is an IPv4v6 UE, and the serving gateway can determine that the DNS allocated to the UE is the first DNS, and then can determine the IP address of the first DNS.
  • the serving gateway sends a third PDN connection activation response message to the UE.
  • the serving gateway allocates the IPv6 address of the UE and the IP address of the first DNS to the UE, the serving gateway sends a third PDN connection activation response message to the UE, where the third PDN connection activation response message includes the IPv6 address of the UE and the first The IP address of the DNS.
  • the UE receives a third PDN connection activation response message sent by the serving gateway.
  • the UE may receive an IPv6 address including the UE and the first sent by the serving gateway.
  • the third PDN connection activation response message of the IP address of the DNS the UE can obtain the IP address of the first DNS, and the IP address of the second DNS is not obtained, and the UE can obtain the IPv4 address of the IPv4 service server from the first DNS, and obtain the IPv6 to the IPv4 service server. Therefore, the UE can send IPv4 data packets to the IPv4 service server without NAT64 conversion.
  • the PDN connection activation response message may be forwarded by the management network element, but the management network element does not make any changes to the third PDN connection activation request message and the third PDN connection activation response message.
  • the method for allocating an IP address according to the sixth embodiment of the present invention. Further, the determining, by the UE, the PDP type indication information in the third PDN connection activation request message is used to indicate that the PDP type is IPv6, according to the first return code and the IPv4 address of the UE.
  • PDP type indication information sending a third PDN connection activation request message to the serving gateway; the serving gateway determines that the UE has activated the PDN connection of the IPv4, and then according to the PDP type indication information and the first configuration information in the third PDN connection activation request message, Determining the IPv6 address of the UE and the IP address of the first DNS, and sending a third PDN connection activation response message including the IPv6 address of the UE and the IP address of the first DNS to the UE, so that the UE acquires the IP address of the first DNS.
  • the IP address of the second DNS is obtained.
  • the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the data packet transmitted between the UE and the IPv4 service server does not need to be translated by NAT64, thereby reducing the network load of the NAT64. It also improves data transmission efficiency.
  • FIG. 12 is a flowchart of Embodiment 7 of an IP address allocation method according to the present invention. As shown in FIG. 12, the method in this embodiment may include:
  • S701 The UE sends a first PDN connection activation request message to the serving gateway.
  • the first PDN connection activation request message includes PDP type indication information, and the PDP type indication information is used to indicate that the PDP type is IPv4v6.
  • the serving gateway receives the first PDN connection activation request message sent by the UE.
  • the serving gateway determines, according to the PDP type indication information and the first configuration information, the IPv6 of the UE. Address and IP address of the first DNS.
  • the first configuration information is used to indicate that the serving gateway allocates an IP version address to a PDN connection and activates two PDN connections (that is, an IPv4 PDN connection and an IPv6 PDN connection) under the same APN.
  • the serving gateway sends a first PDN connection activation response message including an IPv6 address of the UE, an IP address of the first DNS, and a first return code to the UE.
  • the UE receives a first PDN connection activation response message that is sent by the serving gateway, including an IPv6 address of the UE, an IP address of the first DNS, and a first return code.
  • the specific implementation process of S701-S705 is similar to the specific implementation process of S401-S405 in Embodiment 4 of the method of the present invention.
  • the specific implementation process of S701-S705 is similar to the specific implementation process of S401-S405 in Embodiment 4 of the method of the present invention.
  • the IP address allocation method provided by the seventh embodiment of the present invention by sending a first PDN connection activation response message including an IPv6 address of the UE and an IP address of the first DNS to the UE, so that the UE acquires the IP address of the first DNS.
  • the IP address of the second DNS is obtained. Therefore, the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the data packet transmitted between the UE and the IPv4 service server does not need to be translated by NAT64, thereby reducing the network load of the NAT64. It also improves data transmission efficiency.
  • FIG. 13 is a flowchart of Embodiment 8 of the method for allocating an IP address according to the present invention. As shown in FIG. 13, the method in this embodiment may include:
  • the UE sends a first PDN connection activation request message to the management network element.
  • the management network element receives the first PDN connection activation request message sent by the UE.
  • the management network element modifies the PDP type indication information in the first PDN connection activation request message to be used to indicate that the PDP type is IPv6, and adds the IPv4v6 indication information and the first identifier information to the first PDN connection activation request message, to obtain The second PDN connection activation request message.
  • the management network element sends a second PDN connection activation request message to the serving network element.
  • the serving gateway receives a second PDN connection activation request message sent by the management network element.
  • the second PDN connection activation request message is sent by the management network element according to the first PDN connection activation request message sent by the UE, and the second PDN connection activation request message is used by the management network element to modify the PDP type indication information to indicate the PDP type. It is obtained by adding IPv4v6 indication information and first identification information to the first PDN connection activation request message for IPv6.
  • the service gateway determines the first configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the first identifier information.
  • the service gateway determines the IPv6 address of the UE and the IP address of the first DNS according to the modified PDP type being IPv6 and the first configuration information.
  • the serving gateway sends a second PDN connection activation response message including the IPv6 address of the UE and the IP address of the first DNS to the management network element.
  • the management network element receives a second PDN connection activation response message sent by the serving gateway.
  • the management network element adds the first return code to the second PDN connection activation response message, and obtains a first PDN connection activation response message.
  • the management network element sends a first PDN connection activation response message to the UE.
  • the UE receives a first PDN connection activation response message that is sent by the management network element, including an IPv6 address of the UE, an IP address of the first DNS, and a first return code.
  • the first PDN connection activation response message is sent by the management network element according to the second PDN connection activation response message sent by the serving gateway, where the second PDN connection activation response message includes the IPv6 address of the UE and the IP address of the first DNS,
  • the PDN Connection Activation Response message is obtained by the management network element adding the first return code to the second PDN connection activation response message.
  • the specific implementation process of the S801-S812 is similar to the specific implementation process of the S501-S512 in the fifth embodiment of the present invention.
  • the specific implementation process of the S801-S812 is similar to the specific implementation process of the S501-S512 in the fifth embodiment of the present invention.
  • the IP address allocation method provided in Embodiment 8 of the present invention by sending a first PDN connection activation response message including an IPv6 address of the UE and an IP address of the first DNS to the UE, so that the UE acquires the IP address of the first DNS.
  • the IP address of the second DNS is obtained. Therefore, the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the data packet transmitted between the UE and the IPv4 service server does not need to be translated by NAT64, thereby reducing the network load of the NAT64. It also improves data transmission efficiency.
  • FIG. 14 is a flowchart of Embodiment 9 of an IP address allocation method according to the present invention. As shown in FIG. 14, the method in this embodiment may further include the method in the embodiment of FIG. 12 or FIG. :
  • the UE determines, according to the first return code and the IPv6 address of the UE, that the PDP type indication information in the third PDN connection activation request message is a PDP type indicator used to indicate that the PDP type is IPv4. No information.
  • S902 The UE sends a third PDN connection activation request message to the serving gateway.
  • the serving gateway receives a third PDN connection activation request message sent by the UE according to the first return code and the IPv6 address of the UE.
  • the serving gateway determines that the UE has activated the PDN connection of the IPv6.
  • the serving gateway receives the third PDN connection activation request message sent by the UE, and may determine PDP type indication information indicating that the PDP type is IPv4 in the third PDN connection activation request message. Then, the serving gateway determines whether the UE has activated the PDN of the IPv6. If the serving gateway determines that the UE has activated the PDN connection of the IPv6, then S905 is performed. If the serving gateway determines that the UE does not activate the IPv6 PDN connection, it may determine that the UE is an IPv4 UE, and then the serving gateway divides the UE into an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of the second DNS.
  • the service gateway determines the IPv4 address of the UE and the IP address of the first DNS according to the PDP type indication information and the first configuration information in the third PDN connection activation request message.
  • the serving gateway sends a third PDN connection activation response message to the UE.
  • the UE receives a third PDN connection activation response message sent by the serving gateway.
  • the IP address allocation method provided by the ninth embodiment of the present invention further, the third PDN connection activation response message including the IPv4 address of the UE and the IP address of the first DNS is sent to the UE, so that the UE acquires the IP of the first DNS.
  • the address does not obtain the IP address of the second DNS. Therefore, the IP address of the IPv4 service server acquired by the UE is an IPv4 address, and the data packets transmitted between the UE and the IPv4 service server do not need to be translated by NAT64, thereby reducing NAT64. Network load also improves data transmission efficiency.
  • FIG. 15 is a flowchart of Embodiment 10 of the method for allocating an IP address according to the present invention. As shown in FIG. 15, the method in this embodiment may include:
  • the UE sends a first PDN connection activation request message to the serving gateway.
  • the UE receives a first PDN connection activation response message sent by the serving gateway.
  • the UE may send a first PDN connection activation request message to the serving gateway, where the first PDN connection activation request message includes PDP type indication information, and the PDP type indication
  • the information is used to indicate the PDP type.
  • the UE in this embodiment is an IPv4v6 UE. Therefore, the PDP type indication information is used to indicate that the PDP type is IPv4v6.
  • the serving gateway After receiving the first PDN connection activation request message sent by the UE, the serving gateway parses the PDP type in the first PDP connection activation request message, that is, determines the PDP type as IPv4v6 according to the PDP type indication information in the first PDP connection activation request message. .
  • the serving gateway may determine that the UE is an IPv4v6 UE according to the PDP type, and the serving gateway may change the IPv4v6 UE to the IPv4 only UE, that is, the serving gateway allocates the IPv4 address of the UE to the UE, and allocates the IPv4 address of the UE according to only the UE.
  • the PDN connection activation response message sends the UE's IPv4 address, the IP address of the first DNS, and/or the IP address of the second DNS to the UE, so that the UE can receive the first PDN connection activation response message sent by the serving gateway, because the UE only obtains The IPv4 address of the UE, so the UE only sends IPv4 service data packets with the IPv4 service server, and does not need to be translated by NAT64.
  • the IP address allocation method provided by Embodiment 10 of the present invention receives the IPv4 address of the UE, the IP address of the first DNS, and/or the IP address of the second DNS sent by the serving gateway by sending a first PDN connection activation request message to the serving gateway. Since the UE only obtains the IPv4 address of the UE, the IPv4 data packet is transmitted between the UE and the IPv4 service server, and the NAT64 conversion is not required, thereby reducing the network load of the NAT64 and improving the data transmission efficiency.
  • FIG. 16 is a flowchart of Embodiment 11 of the method for allocating an IP address according to the present invention. As shown in FIG. 16, the method in this embodiment may include:
  • the serving gateway receives a first PDN connection activation request message sent by the UE.
  • the serving gateway determines, according to the PDP type indication information, an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of the second DNS.
  • S1103 The serving gateway sends a first PDN connection activation response message to the UE.
  • the serving gateway may receive the first PDN connection activation request message sent by the UE, where the first PDN connection activation request message includes PDP type indication information, and the PDP type indication information is used to indicate the PDP type, in this embodiment.
  • the UE is an IPv4v6 UE, so the PDP type indication information is used to indicate that the PDP type is IPv4v6.
  • the serving gateway may parse the PDP type in the first PDP connection activation request message, that is, according to the PDP in the first PDP connection activation request message.
  • the type indication information determines that the PDP type is IPv4v6.
  • the serving gateway may determine that the UE is an IPv4v6 UE according to the PDP type, and the serving gateway may change the IPv4v6 UE to the IPv4 only UE, that is, the serving gateway allocates the IPv4 address of the UE to the UE, and allocates the IPv4 address of the UE according to only the UE.
  • the PDN connection activation response message sends the UE's IPv4 address, the IP address of the first DNS, and/or the IP address of the second DNS to the UE, so that the UE can receive the first PDN connection activation response message sent by the serving gateway, because the UE only obtains The IPv4 address of the UE, so the UE only sends IPv4 service data packets with the IPv4 service server, and does not need to be translated by NAT64.
  • the IP address allocation method provided by the embodiment of the present invention the first PDN connection activation request message sent by the UE is received by the serving gateway, and the IPv4 address of the UE, the IP address of the first DNS, and/or the first DNS address are determined according to the PDP type indication information.
  • the IP address of the second DNS, the first PDN connection activation response message including the IPv4 address of the UE, the IP address of the first DNS, and/or the IP address of the second DNS is sent to the UE; since the UE only acquires the IPv4 address of the UE, the UE
  • the transmission of IPv4 data packets between the IPv4 service server and the IPv4 service server does not require NAT64 conversion, thereby reducing the network load of the NAT64 and improving the data transmission efficiency.
  • FIG. 17 is a flowchart of Embodiment 12 of the method for allocating an IP address according to the present invention. As shown in FIG. 17, the method in this embodiment may include:
  • S1201 The UE sends a first PDN connection activation request message to the serving gateway.
  • the serving gateway receives the first PDN connection activation request message sent by the UE.
  • the UE is an IPv4v6 UE
  • the PDP type indication information in the first PDN connection activation request message is used to indicate that the PDP type is IPv4v6.
  • the serving gateway determines, according to the PDP type indication information and the second configuration information, an IPv4 address of the UE, an IP address of the first DNS, and/or an IP address of the second DNS.
  • the serving gateway sends, to the UE, a first PDN connection activation response message including an IPv4 address of the UE, a second return code, an IP address of the first DNS, and/or an IP address of the second DNS.
  • the serving gateway is configured to indicate that the PDP type is IPv4v6 according to the PDP type indication information, and determine that the UE is an IPv4v6 UE.
  • the service gateway may determine the second configuration information according to the indication of the management gateway, or may pre-store the second configuration information in the service gateway, where the second configuration information is It is used to instruct the service gateway to assign an IP version address to a PDN connection and activate an IP version of the PDN connection (that is, an IPv4 PDN connection or an IPv6 PDN connection) under the same APN.
  • the serving gateway may determine, according to the PDP type indication information, the IPv4v6 and the second configuration information, to allocate an IP version address to the UE under the PDN connection.
  • the serving gateway determines that the UE allocates the IPv4 address of the UE.
  • the serving gateway may allocate the IPv4 address of the UE to the UE according to the preset information, where the preset information is used to indicate that the serving gateway allocates the IPv4 address of the UE to the UE according to the PDP type of IPv4v6, or the serving gateway may be based on the management network element.
  • the indication allocates the UE's IPv4 address to the UE.
  • the serving gateway may also change to an IPv4 UE according to the IPv4v6 UE, determine that the DNS allocated to the UE is the first DNS and/or the second DNS, and then determine the IP address of the first DNS and/or the IP address of the second DNS.
  • the PDP type indication information should be used to indicate that the PDP type is IPv4 instead of IPv4v6.
  • the first return stone horse is New PDP type due to network preference.
  • the UE receives a first PDN connection activation response message that is sent by the serving gateway, including an IPv4 address of the UE, a second return code, an IP address of the first DNS, and/or an IP address of the second DNS.
  • the UE may receive a first PDN connection activation response message that is sent by the serving gateway, including the IPv4 address of the UE, the second return code, the IP address of the first DNS, and/or the IP address of the second DNS. If the UE needs to activate another PDN connection, the UE may determine the PDP type indication in the next PDN activation request message sent to the serving gateway according to the second return code in the first PDN connection activation response message and the IPv4 address of the UE. The information is used to indicate that the PDP type is IPv4, and is not used to indicate that the PDP type is IPv4v6.
  • the serving gateway determines that the UE is an IPv4 UE according to the PDP type, and allocates the IPv4 address of the UE, the IP address of the first DNS, and/or the UE. Or the IP address of the second DNS. Therefore, the UE only obtains the IPv4 address of the UE, but does not obtain the IPv6 address of the UE.
  • the UE can only send IPv4 data packets to the IPv4 service server without NAT64 conversion.
  • the UE sends a first PDN connection activation request message including PDP type indication information indicating that the PDP type is IPv4v6 to the serving gateway; the serving gateway according to the PDP type indication information and the Second configuration information, determining the IPv4 of the UE The address, the IP address of the first DNS, and/or the IP address of the second DNS, and then transmitting a first PDN connection activation response including the IPv4 address of the UE, the IP address of the first DNS, and/or the IP address of the second DNS to the UE Message.
  • the IPv4 data packet is transmitted between the UE and the IPv4 service server, and the NAT64 conversion is not required, thereby reducing the network load of the NAT64 and improving the data transmission efficiency.
  • the UE sends a first PDN connection activation request message to the serving gateway, where the PDP type indication information in the first PDN connection activation request message is used to indicate that the PDP type is IPv4v6, and the serving gateway according to the PDP type indication information and the second configuration information Determining the IPv6 address of the UE and the IP address of the second DNS, the serving gateway sends a first PDN connection activation response message including the IPv6 address of the UE, the second return code, and the IP address of the second DNS to the UE.
  • the UE may determine the PDP type indication in the next PDN activation request message sent to the serving gateway according to the second return code in the first PDN connection activation response message and the IPv6 address of the UE.
  • the information is used to indicate that the PDP type is IPv6, and is not used to indicate that the PDP type is IPv4v6.
  • the serving gateway determines that the UE is an IPv6 UE according to the PDP type, and thus allocates the IPv6 address of the UE and the IP address of the second DNS to the UE. Therefore, the UE can only obtain the IPv6 address of the UE, and the UE can only send IPv6 data packets to the IPv4 service server.
  • FIG. 18 is a flowchart of Embodiment 13 of the method for allocating an IP address according to the present invention. As shown in FIG. 18, the method in this embodiment may include:
  • the UE sends a first PDN connection activation request message to the management network element.
  • the UE is an IPv4v6 UE, and the UE sends a PDN connection activation request message to the serving network element to be forwarded by the management network element. Therefore, the UE sends a first PDN connection activation request message to the management network element, and the PDP type indication information in the first PDN connection activation request message is used to indicate that the PDP type is IPv4v6.
  • the management network element receives the first PDN connection activation request message sent by the UE.
  • the management network element modifies the PDP type indication information in the first PDN connection activation request message to be used to indicate that the PDP type is IPv4, and adds the IPv4v6 indication information and the second identifier information to the first PDN connection activation request message.
  • the second PDN connection activation request message modifies the PDP type indication information in the first PDN connection activation request message to be used to indicate that the PDP type is IPv4, and adds the IPv4v6 indication information and the second identifier information to the first PDN connection activation request message.
  • the second PDN connection activation request message The management network element modifies the PDP type indication information in the first PDN connection activation request message to be used to indicate that the PDP type is IPv4, and adds the IPv4v6 indication information and the second identifier information to the first PDN connection activation request message.
  • S1304 The management network element sends a second PDN connection activation request message to the serving network element.
  • the management network element may receive the first PDN connection activation request message sent by the UE, where the management network element may be in the first PDN connection activation request message according to the user subscription data of the UE.
  • the PDP type indication information is modified, and the user subscription data is allowed to allocate the IPv4 address of the UE or the IPv6 address of the UE to the UE under all the PDN connections.
  • the management network element may modify the PDP type indication information in the first PDN connection activation request message according to the user subscription data to indicate that the PDP type is IPv4, and then modify the first PDN connection activation request message.
  • the PDP type indication information is added to the first PDN connection activation request message, that is, the IPv4v6 indication information is added to the first PDN connection activation request message, and the second identification information may be added to the first PDN connection activation request message to obtain the first
  • the second PDN connection activation request message the IPv4v6 indication information is used to indicate that the UE supports the IPv4v6, and the second identification information is used to identify that the UE activates an IP version of the PDN connection under the same APN.
  • the management network element sends the second PDN connection activation request message to the serving gateway after acquiring the second PDN connection activation request message.
  • the serving gateway receives a second PDN connection activation request message sent by the management network element.
  • the second PDN connection activation request message is sent by the management network element according to the first PDN connection activation request message sent by the UE, and the second PDN connection activation request message is used by the management network element to modify the PDP type indication information to indicate the PDP type. It is obtained by adding IPv4v6 indication information and second identification information to the first PDN connection activation request message for IPv4.
  • the service gateway determines the second configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the second identifier information.
  • the serving gateway after receiving the second PDN connection activation request message, obtains the PDP type indication information in the second PDN connection activation request message, that is, the modified PDP type indication information (IPv4 in this embodiment).
  • the IPv4v6 indication information and the second identification information may be determined that the UE itself supports IPv4v6, but the UE supports only one IP version, that is, IPv4, and the UE activates an IP version of the PDN connection under the same APN.
  • the service gateway can determine the second configuration information, and the second configuration information is used to instruct the service gateway to assign an IP version address to a PDN connection and activate a PDN connection of an IP version under the same APN.
  • the serving gateway determines, according to the modified PDP type, the IPv4 address and the second configuration information, the IPv4 address of the UE, the IP address of the first DNS, and/or the IP address of the second DNS.
  • the serving gateway may allocate the IPv4 address of the UE to the UE according to the modified PDP type and the second configuration information, because the serving gateway learns that the UE is an IPv4v6 UE, and The UE is still allocated to the UE under another PDN connection.
  • the IPv6 address so if the serving gateway allocates the IPv4 address of the UE to the UE, it is determined that the DNS allocated to the UE is the first DNS and/or the second DNS, and then the IP address of the first DNS and/or the second DNS may be determined. IP address.
  • the serving gateway sends a second PDN connection activation response message including the IPv4 address of the UE, the IP address of the first DNS, and/or the IP address of the second DNS to the management network element.
  • the serving gateway after determining the IPv4 address of the UE, the IP address of the first DNS, and/or the IP address of the second DNS, the serving gateway returns the IPv4 address of the UE, the IP address of the first DNS, and/or to the UE. Or the IP address of the second DNS, the information transmitted between the serving gateway and the UE is forwarded by the management network element, so the serving gateway sends the IPv4 address including the UE, the IP address of the first DNS, and/or the second to the management network element.
  • the second PDN connection activation response message of the IP address of the DNS is forwarded.
  • the management network element receives a second PDN connection activation response message sent by the serving gateway.
  • the management network element adds a second return code to the second PDN connection activation response message, and obtains a first PDN connection activation response message.
  • the management network element sends a first PDN connection activation response message to the UE.
  • the management network element receives the second PDN connection activation response message sent by the serving gateway, and the management network element modifies the PDP type indication information in the first PDN connection activation request message sent by the UE, so the management network
  • the UE adds the second return code to the second PDN connection activation response message, obtains the first PDN connection activation response message, and activates the first PDN connection.
  • a response message is sent to the UE.
  • the second return code is New PDP type due to network preference.
  • the UE receives the first PDN connection activation response message that is sent by the management network element, including the IPv4 address of the UE, the second return code, the IP address of the first DNS, and/or the IP address of the second DNS.
  • the first PDN connection activation response message is sent by the management network element according to the second PDN connection activation response message sent by the serving gateway, where the second PDN connection activation response message includes the IPv4 address of the UE, the IP address of the first DNS, and/or The IP address of the second DNS, the first PDN connection activation response message is obtained by the management network element adding the second return code to the second PDN connection activation response message.
  • the first PDN connection activation request message is sent by the UE to the management network element; the management network element modifies the PDP type indication information in the first PDN connection activation request message to be used for indication
  • the PDP type is IPv4, and the IPv4v6 indication information and the second identification information are added to the first PDN connection activation request message, and the second PDN connection activation is obtained.
  • the second PDN connection activation request message is sent to the serving network element.
  • the serving gateway determines the second configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the second identification information, according to the modified PDP type.
  • the management network element adds the second return code to the second PDN connection activation response message, obtains the first PDN connection activation response message, and then transmits the IPv4 including the UE to the UE.
  • the IPv4 is transmitted between the UE and the IPv4 service server. Data packets do not need to be translated by NAT64, which reduces the network load of NAT64 and improves data transmission efficiency.
  • the UE sends a first PDN connection activation request message to the management network element, where the PDP type indication information in the first PDN connection activation request message is used to indicate that the PDP type is IPv4v6 ; the management network element sends the first PDN connection activation request message.
  • the PDP type indication information is modified to be used to indicate that the PDP type is IPv6, and the IPv4v6 indication information and the second identification information are added to the first PDN connection activation request message, and the second PDN connection activation request message is obtained, and sent to the serving network element.
  • the serving gateway determines the first configuration information according to the modified PDP type indication information, the IPv4v6 indication information, and the first identification information; and determines the UE according to the modified PDP type being IPv4 and the first configuration information.
  • the IPv4 address, the IP address of the first DNS, and/or the IP address of the second DNS; sending a second PDN connection activation response message including the IPv6 address of the UE and the IP address of the first DNS to the management network element, and the management network element will The second return code is added to the second PDN connection activation response message, and obtains a first PDN connection activation response message, and sends a first PDN connection activation response message to the UE.
  • the serving gateway may perform external authentication authorization (Authentication).
  • Authentication Authorization Accounting, referred to as AAA
  • AAA Dynamic Host Configuration Protocol
  • DHCP Dynamic Host Configuration Protocol
  • 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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供一种互联网协议地址分配方法和装置,其中,该装置包括:发送单元和接收单元,发送单元用于向服务网关发送第一PDN连接激活请求消息,第一PDN连接激活请求消息包括PDP类型指示信息,PDP类型指示信息用于指示PDP类型为IPv4v6;接收单元用于接收服务网关发送的第一PDN连接激活响应消息,第一PDN连接激活响应消息包括UE的IP地址和第一DNS的IP地址,第一DNS中存储有IPv4业务服务器的IPv4地址但不存储IPv4业务服务器的IPv6地址,IPv4业务服务器的IPv6地址为4 to 6 地址。实现UE与IPv4业务服务器之间传输的数据报文不需要经过NAT64 的转换,从而减少了NAT64的网络负荷,还提高了数据传输效率。

Description

互联网协议地址分配方法和装置
技术领域
本发明实施例涉及通信技术领域, 尤其涉及一种互联网协议地址分配方 法和装置。 背景技术
随着互联网协议版本 6 (Internet Protocol Version 6, 简称: IPv6) 的技术 演进, 通信网络中出现 IPv4网络与 IPv6网络并存的现象, 通信网络运营商 在网络中部署 IPv6 与 IPv4 的网络地址转换 (Network Address Translation IPv6-to-IPv4, 简称: NAT64) , 以及 IPv6 与 IPv4 的地址转换域名服务器 (Domain Name Server IPv6-to-IPv4 ,简称: DNS64),使得 IPv6用户设备(User Equipment, 简称: UE) (只能采用 IPv6协议的 UE) 和 IPv4v6 UE (既能采 用 IPv4协议也能采用 IPv6协议的 UE) 能够访问 IPv4业务服务器。
现有技术中, IPv4v6 UE能够访问 IPv4业务服务器的具体过程为: IPv4v6 UE向网关 GPRS支撑节点 (Gateway GPRS Support Node, 简称: GGSN)发 送激活请求, GGSN通过激活响应向 IPv4v6 UE返回 IPv4v6 UE的 IPv4地址 和 IPv6地址, 以及 DNS64的 IPv4地址和 IPv6地址, IPv4v6 UE通过域名向 该 DNS64请求业务服务器的 IP地址, DNS64向 IPv4v6 UE返回该业务服务 器的 IPv4地址和 IPv6地址, 然后 IPv4v6 UE会默认优先采用业务服务器的 IPv6地址与该业务服务器进行数据报文传输。
然而, 若该业务服务器为 IPv4业务服务器 (只能采用 IPv4协议的业务 服务器) , 那么 IPv4v6 UE发送的 IPv6数据报文需要通过 NAT64的转换获 得 IPv4数据报文才能传输给 IPv4业务服务器, 增加了 NAT64的网络负荷。 发明内容
本发明实施例提供一种互联网协议地址分配方法和装置, 用于使得 IPv4v6 UE与 IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转 换, 从而减少了 NAT64的网络负荷, 还提高了数据传输效率。 第一方面, 本发明实施例提供一种 UE, 包括:
发送单元,用于向服务网关发送第一分组数据网络 PDN连接激活请求消 息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信息, 所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4v6;
接收单元, 用于接收所述服务网关发送的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址和第一域名解析服 务器 DNS的 IP地址,所述第一 DNS中存储有互联网协议版本 4 IPv4业务服 务器的 IPv4地址但不存储所述 IPv4业务服务器的互联网协议版本 6 IPv6地 址, 所述 IPv4业务服务器的 IPv6地址为 4 to 6地址。
在第一方面的第一种可能的实现方式中, 所述发送单元具体用于向所述 服务网关发送包括延迟分配标识和所述 PDP类型指示信息的第一 PDN连接 激活请求消息, 所述延迟分配标识用于指示所述服务网关延迟分配所述 UE 的 IPv4地址;
所述接收单元具体用于接收服务网关发送的包括所述 UE的 IPv6地址和 所述第一 DNS的 IP地址的第一 PDN连接激活响应消息。
在第一方面的第二种可能的实现方式中, 所述接收单元具体用于接收所 述服务网关发送的包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和第 一返回码的第一 PDN连接激活响应消息, 所述第一返回码用于指示所述 UE 在同一个 APN下激活两种 PDN连接, 所述两种 PDN连接的 IP版本不同。
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的实 现方式中,所述发送单元具体用于向管理网元发送第一 PDN连接激活请求消 息, 以使所述管理网元根据所述第一 PDN连接激活请求向所述服务网关发送 第二 PDN连接激活请求消息, 所述第二 PDN连接激活请求消息为所述管理 网元将所述 PDP类型指示信息修改为用于指示 PDP类型为 IPv4并将 IPv4v6 指示信息和第一标识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第一标识信息用于 标识所述 UE在同一个 APN下激活所述两种 PDN连接;
所述接收单元具体用于接收所述管理网元发送的包括所述 UE的 IPv4地 址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所述管理网元根据所述服务网关发送的 第二 PDN连接激活响应消息发送的, 所述第二 PDN连接激活响应消息包括 所述 UE的 IPv4地址和所述第一 DNS的 IP地址,所述第一 PDN连接激活响 应消息为所述管理网元将所述第一返回码添加在所述第二 PDN连接激活响 应消息获得的。
结合第一方面的第二种可能的实现方式或第一方面的第三种可能的实现 方式, 在第一方面的第四种可能的实现方式中, 还包括:
确定单元, 用于根据所述第一返回码和所述 UE的 IPv4地址, 确定第三 PDN连接激活请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv6 的 PDP类型指示信息;
所述发送单元还用于向所述服务网关发送第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于指示 PDP类型为 IPv6的 PDP 类型指示信息;
所述接收单元还用于接收所述服务网关发送的第三 PDN连接激活响应 消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv6地址和所述第 一 DNS的 IP地址。
在第一方面的第五种可能的实现方式中, 所述接收单元具体用于接收所 述服务网关发送的包括所述 UE的 IPv6地址、 所述第一 DNS的 IP地址和第 一返回码的第一 PDN连接激活响应消息, 所述第一返回码用于指示所述 UE 在同一个 APN下激活两种 PDN连接, 所述两种 PDN连接的 IP版本不同。
结合第一方面的第五种可能的实现方式, 在第一方面的第六种可能的实 现方式中,所述发送单元具体用于向管理网元发送第一 PDN连接激活请求消 息, 以使所述管理网元根据所述第一 PDN连接激活请求向所述服务网关发送 第二 PDN连接激活请求消息, 所述第二 PDN连接激活请求消息为所述管理 网元将所述 PDP类型指示信息修改为用于指示 PDP类型为 IPv6并将 IPv4v6 指示信息和第一标识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第一标识信息用于 标识所述 UE在同一个 APN下激活所述两种 PDN连接;
所述接收单元具体用于接收所述管理网元发送的包括所述 UE的 IPv6地 址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所述管理网元根据所述服务网关发送的 第二 PDN连接激活响应消息发送的, 所述第二 PDN连接激活响应消息包括 所述 UE的 IPv6地址和所述第一 DNS的 IP地址,所述第一 PDN连接激活响 应消息为所述管理网元将所述第一返回码添加在所述第二 PDN连接激活响 应消息获得的。
结合第一方面的第五种可能的实现方式或第一方面的第六种可能的实现 方式, 在第一方面的第七种可能的实现方式中, 还包括:
确定单元, 用于根据所述第一返回码和所述 UE的 IPv6地址, 确定第三 PDN连接激活请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv4 的 PDP类型指示信息;
所述发送单元还用于向所述服务网关发送第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于指示 PDP类型为 IPv4的 PDP 类型指示信息;
所述接收单元还用于接收所述服务网关发送的第三 PDN连接激活响应 消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv4地址和所述第 一 DNS的 IP地址。
在第一方面的第八种可能的实现方式中, 若所述 PDP类型指示信息用于 指示所述 PDP类型为 IPv4;则所述第一 PDN连接激活响应消息包括所述 UE 的 IP地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
第一方面的第九种可能的实现方式中, 若所述 PDP类型指示信息用于指 示所述 PDP类型为 IPv6; 则所述第一 PDN连接激活响应消息包括所述 UE 的 IP地址和第二 DNS的 IP地址。
第二方面, 本发明实施例提供一种服务网关, 包括:
接收单元, 用于接收用户设备 UE发送的第一分组数据网络 PDN连接激 活请求消息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型 指示信息, 所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4v6;
确定单元, 用于根据所述 PDP类型指示信息, 确定所述 UE的 IP地址和 第一域名解析服务器 DNS的 IP地址;
发送单元, 用于向所述 UE发送第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址和所述第一 DNS的 IP地址; 其中,所述第一 DNS中存储有互联网协议版本 4 IPv4业务服务器的 IPv4 地址但不存储所述 IPv4业务服务器的互联网协议版本 6 IPv6地址,所述 IPv4 业务服务器的 IPv6地址为 4 to 6地址。
在第二方面的第一种可能的实现方式中, 所述接收单元具体用于接收所 述 UE发送的包括延迟分配标识和所述 PDP类型指示信息的第一 PDN连接激 活请求消息, 所述延迟分配标识用于指示所述服务网关延迟分配所述 UE 的 IPv4地址;
所述确定单元具体用于根据所述延迟分配标识和所述 PDP 类型为 IPv4v6, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述发送单元具体用于向所述 UE发送包括所述 UE的 IPv6地址和所述 第一 DNS的 IP地址的第一 PDN连接激活响应消息。
在第二方面的第二种可能的实现方式中, 所述确定单元具体用于根据所 述 PDP类型指示信息和第一配置信息,确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址;
所述发送单元具体用于向所述 UE发送包括所述 UE的 IPv4地址、 所述 第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息;
其中,所述第一配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个 APN下激活两种 PDN连接, 所述第一返回码用于 指示所述 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN连接的 IP 版本不同。
结合第二方面的第二种可能的实现方式, 在第二方面的第三种可能的实 现方式中,所述接收单元具体用于接收管理网元发送的第二 PDN连接激活请 求消息; 所述第二 PDN连接激活请求消息为所述管理网元根据所述 UE发送 的第一 PDN连接激活请求消息发送的, 所述第二 PDN连接激活请求消息为 所述管理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv4 并将 IPv4v6指示信息和第一标识信息添加在所述第一 PDN连接激活请求消 息中获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第一 标识信息用于标识所述 UE在同一个 APN下激活所述两种 PDN连接;
所述确定单元具体用于根据所述修改后的 PDP 类型指示信息、 所述 IPv4v6指示信息和第一标识信息, 确定所述第一配置信息, 并根据所述修改 后的 PDP类型为 IPv4和所述第一配置信息, 确定所述 UE的 IPv4地址和所 述第一 DNS的 IP地址;
所述发送单元具体用于向所述管理网元发送包括所述 UE的 IPv4地址和 所述第一 DNS的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元 根据所述第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激 活响应消息,所述第一 PDN连接激活响应消息为所述管理网元将所述第一返 回码添加在所述第二 PDN连接激活响应消息中获得的。
结合第二方面的第二种可能的实现方式或第二方面的第三种可能的实现 方式, 在第二方面的第四种可能的实现方式中, 所述接收单元还用于接收所 述 UE根据所述第一返回码和所述 UE的 IPv4地址发送的第三 PDN连接激活 请求消息, 所述第三 PDN连接激活请求消息包括用于指示 PDP类型为 IPv6 的 PDP类型指示信息;
所述确定单元, 还用于确定所述 UE已激活 IPv4的 PDN连接, 并根据 所述第三 PDN连接激活请求消息中的 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述发送单元还用于向所述 UE发送第三 PDN连接激活响应消息, 所述 第三 PDN连接激活响应消息包括所述 UE的 IPv6地址和所述第一 DNS的 IP 地址。
在第二方面的第五种可能的实现方式中, 所述确定单元具体用于根据所 述 PDP类型指示信息和第一配置信息,确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述发送单元具体用于向所述 UE发送包括所述 UE的 IPv6地址、 所述 第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息;
其中,所述第一配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个 APN下激活两种 PDN连接, 所述第一返回码用于 指示所述 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN连接的 IP 版本不同。
结合第二方面的第五种可能的实现方式, 在第二方面的第六种可能的实 现方式中,所述接收单元具体用于接收管理网元发送的第二 PDN连接激活请 求消息; 所述第二 PDN连接激活请求消息为所述管理网元根据所述 UE发送 的第一 PDN连接激活请求消息发送的, 所述第二 PDN连接激活请求消息为 所述管理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv6 并将 IPv4v6指示信息和第一标识信息添加在所述第一 PDN连接激活请求消 息中获得的, 所述第一标识信息用于标识所述 UE在同一个 APN下激活所述 两种 PDN连接;
所述确定单元具体用于根据所述修改的 PDP类型指示信息、所述 IPv4v6 指示信息和第一标识信息, 确定所述第一配置信息, 以及根据所述修改后的 PDP类型为 IPv6和所述第一配置信息,确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述发送单元具体用于向所述管理网元发送包括所述 UE的 IPv6地址和 所述第一 DNS的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元 根据所述第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激 活响应消息,所述第一 PDN连接激活响应消息为所述管理网元将所述第二返 回码添加在所述第二 PDN连接激活响应消息中获得的。
结合第二方面的第五种可能的实现方式或第二方面的第六种可能的实现 方式, 在第二方面的第七种可能的实现方式中, 还包括:
所述接收单元还用于接收所述 UE根据所述第一返回码和所述 UE的 IPv6 地址发送的第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息 包括用于指示 PDP类型为 IPv4的 PDP类型指示信息;
所述确定单元, 还用于确定所述 UE已激活 IPv6的 PDN连接, 以及根 据所述第三 PDN连接激活请求消息中的 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址;
所述发送单元还用于向所述 UE发送第三 PDN连接激活响应消息, 所述 第三 PDN连接激活响应消息包括所述 UE的 IPv4地址和所述第一 DNS的 IP 地址。
在第二方面的第八种可能的实现方式中, 若所述 PDP类型指示信息用于 指示所述 PDP类型为 IPv4;则所述第一 PDN连接激活响应消息包括所述 UE 的 IP地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
在第二方面的第九种可能的实现方式中, 若所述 PDP类型指示信息用于 指示所述 PDP类型为 IPv6;则所述第一 PDN连接激活响应消息包括所述 UE 的 IP地址和第二 DNS的 IP地址。 第三方面, 本发明实施例还提供一种 UE, 包括:
发送单元,用于向服务网关发送第一分组数据网络 PDN连接激活请求消 息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6;
接收单元, 用于接收所述服务网关发送的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IPv4地址、第一 DNS的 IP 地址和 /或第二 DNS的 IP地址, 所述第一 DNS中存储有 IPv4业务服务器的 IPv4地址但不存储所述 IPv4业务服务器的 IPv6地址,所述第一 DNS中存储 有 IPv4业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址,所述 IPv4 业务服务器的 IPv6地址为 4 to 6地址。
在第三方面的第一种可能的实现方式中, 所述接收单元具体用于接收所 述服务网关发送的包括所述 UE的 IPv4地址、 第二返回码、 所述第一 DNS 的 IP地址和 /或所述第二 DNS的 IP地址的第一 PDN连接激活响应消息, 所 述第二返回码用于指示所述 UE在同一个接入点名称 APN下激活一种 IP版 本的 PDN连接。
结合第三方面的第一种可能的实现方式, 在第三方面的第二种可能的实 现方式中,所述发送单元具体用于向管理网元发送第一 PDN连接激活请求消 息, 以使所述管理网元根据所述第一 PDN连接激活请求向所述服务网关发送 第二 PDN连接激活请求消息; 所述第二 PDN连接激活请求消息为所述管理 网元将所述 PDP类型指示信息修改为用于指示 PDP类型为 IPv4并将 IPv4v6 指示信息和第一标识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第二标识信息用于 标识所述 UE在同一个 APN下激活一种 IP版本的 PDN连接;
所述接收单元具体用于接收所述管理网元发送的包括所述 UE的 IPv4地 址、 第二返回码、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所述管理网元 根据所述服务网关发送的第二 PDN连接激活响应消息发送的,所述第二 PDN 连接激活响应消息包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 / 或第二 DNS的 IP地址, 所述第一 PDN连接激活响应消息为所述管理网元将 所述第二返回码添加在所述第二 PDN连接激活响应消息获得的。 第四方面, 本发明实施例还提供一种服务网关, 包括:
接收单元, 用于接收用户设备 UE发送的第一分组数据网络 PDN连接激 活请求消息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型 指示信息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6;
确定单元,用于根据所述 PDP类型指示信息,确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址;
发送单元, 用于向所述 UE发送第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IPv4地址、 第一 DNS的 IP地址和 / 或第二 DNS的 IP地址, 所述第一 DNS中存储有 IPv4业务服务器的 IPv4地 址但不存储所述 IPv4业务服务器的 IPv6地址,所述第一 DNS中存储有 IPv4 业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址,所述 IPv4业务 服务器的 IPv6地址为 4 to 6地址。
在第四方面的第一种可能的实现方式中, 所述确定单元具体用于根据所 述 PDP类型指示信息和第二配置信息,确定所述 UE的 IPv4地址、第一 DNS 的 IP地址和 /或第二 DNS的 IP地址;
所述发送单元具体用于向所述 UE发送包括所述 UE的 IPv4地址、 第二 返回码、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接 激活响应消息;
其中,所述第二配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个接入点名称 APN下激活一种 IP版本的 PDN连接, 所述第二返回码用于指示所述 UE在同一个 APN下激活一种 IP版本的 PDN 连接。
结合第四方面的第一种可能的实现方式, 在第四方面的第二种可能的实 现方式中,所述接收单元具体用于接收管理网元发送的第二 PDN连接激活请 求消息; 所述第二 PDN连接激活请求消息为所述管理网元根据接收到所述 UE发送的第一 PDN连接激活请求消息发送的,所述第二 PDN连接激活请求 消息为所述管理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型 为 IPv4并将 IPv4v6指示信息和第二标识信息添加在所述第一 PDN连接激活 请求消息中获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所 述第二标识信息用于标识所述 UE在同一个 APN下激活一种 IP版本的 PDN 连接;
所述确定单元具体用于根据所述修改的 PDP类型指示信息、所述 IPv4v6 指示信息和第二标识信息, 确定所述第二配置信息, 以及根据所述修改后的 PDP类型为 IPv4和所述第二配置信息,确定所述 UE的 IPv4地址、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址;
所述发送单元具体用于向所述管理网元发送包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第二 PDN连接激活响应 消息, 以使所述管理网元根据所述第二 PDN连接激活响应消息向所述 UE发 送所述第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所 述管理网元将所述第二返回码添加在所述第一 PDN连接激活响应消息中获 得的。
第五方面, 本发明实施例提供一种 IP地址分配方法, 包括:
用户设备 UE 向服务网关发送第一分组数据网络 PDN连接激活请求消 息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信息, 所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4v6;
所述 UE接收所述服务网关发送的第一 PDN连接激活响应消息, 所述第 一 PDN连接激活响应消息包括所述 UE的 IP地址和第一域名解析服务器 DNS 的 IP地址,所述第一 DNS中存储有互联网协议版本 4 IPv4业务服务器的 IPv4 地址但不存储所述 IPv4业务服务器的互联网协议版本 6 IPv6地址,所述 IPv4 业务服务器的 IPv6地址为 4 to 6地址。
在第五方面的第一种可能的实现方式中, 所述用户设备 UE 向服务网关 发送第一分组数据网络 PDN连接激活请求消息, 包括:
所述 UE向所述服务网关发送包括延迟分配标识和所述 PDP类型指示信 息的第一 PDN连接激活请求消息,所述延迟分配标识用于指示所述服务网关 延迟分配所述 UE的 IPv4地址;
所述 UE接收服务网关发送的第一 PDN连接激活响应消息, 包括: 所述 UE接收服务网关发送的包括所述 UE的 IPv6地址和所述第一 DNS 的 IP地址的第一 PDN连接激活响应消息。
在第五方面的第二种可能的实现方式中, 所述 UE接收所述服务网关发 送的第一 PDN连接激活响应消息, 包括: 所述 UE接收所述服务网关发送的包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一返回 码用于指示所述 UE在同一个接入点名称 APN下激活两种 PDN连接, 所述 两种 PDN连接的 IP版本不同。
结合第五方面的第二种可能的实现方式, 在第五方面的第三种可能的实 现方式中, 所述用户设备 UE向服务网关发送第一分组数据网络 PDN连接激 活请求消息, 包括:
所述 UE向管理网元发送第一 PDN连接激活请求消息, 以使所述管理网 元根据所述第一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活 请求消息, 所述第二 PDN连接激活请求消息为所述管理网元将所述 PDP类 型指示信息修改为用于指示 PDP类型为 IPv4并将 IPv4v6指示信息和第一标 识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示 信息用于指示所述 UE支持 IPv4v6, 所述第一标识信息用于标识所述 UE在 同一个 APN下激活所述两种 PDN连接;
所述 UE接收所述服务网关发送的包括所述 UE的 IPv4地址、 所述第一
DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 包括:
所述 UE接收所述管理网元发送的包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一 PDN 连接激活响应消息为所述管理网元根据所述服务网关发送的第二 PDN连接 激活响应消息发送的,所述第二 PDN连接激活响应消息包括所述 UE的 IPv4 地址和所述第一 DNS的 IP地址, 所述第一 PDN连接激活响应消息为所述管 理网元将所述第一返回码添加在所述第二 PDN连接激活响应消息获得的。
结合第五方面的第二种可能的实现方式或第五方面的第三种可能的实现 方式, 在第五方面的第四种可能的实现方式中, 还包括:
所述 UE根据所述第一返回码和所述 UE的 IPv4地址,确定第三 PDN连 接激活请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv6的 PDP 类型指示信息;
所述 UE 向所述服务网关发送第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于指示 PDP类型为 IPv6的 PDP类型指示 信息; 所述 UE接收所述服务网关发送的第三 PDN连接激活响应消息, 所述第 三 PDN连接激活响应消息包括所述 UE的 IPv6地址和所述第一 DNS的 IP地 址。
在第五方面的第五种可能的实现方式中, 所述 UE接收所述服务网关发 送的第一 PDN连接激活响应消息, 包括:
所述 UE接收所述服务网关发送的包括所述 UE的 IPv6地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一返回 码用于指示所述 UE在同一个 APN下激活两种 PDN连接, 所述两种 PDN连 接的 IP版本不同。
结合第五方面的第五种可能的实现方式, 在第五方面的第六种可能的实 现方式中, 所述用户设备 UE向服务网关发送第一分组数据网络 PDN连接激 活请求消息, 包括:
所述 UE向管理网元发送第一 PDN连接激活请求消息, 以使所述管理网 元根据所述第一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活 请求消息, 所述第二 PDN连接激活请求消息为所述管理网元将所述 PDP类 型指示信息修改为用于指示 PDP类型为 IPv6并将 IPv4v6指示信息和第一标 识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示 信息用于指示所述 UE支持 IPv4v6, 所述第一标识信息用于标识所述 UE在 同一个 APN下激活所述两种 PDN连接;
所述 UE接收所述服务网关发送的包括所述 UE的 IPv6地址、 所述第一
DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 包括:
所述 UE接收所述管理网元发送的包括所述 UE的 IPv6地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一 PDN 连接激活响应消息为所述管理网元根据所述服务网关发送的第二 PDN连接 激活响应消息发送的,所述第二 PDN连接激活响应消息包括所述 UE的 IPv6 地址和所述第一 DNS的 IP地址, 所述第一 PDN连接激活响应消息为所述管 理网元将所述第一返回码添加在所述第二 PDN连接激活响应消息获得的。
结合第五方面的第五种可能的实现方式或第五方面的第六种可能的实现 方式, 在第五方面的第七种可能的实现方式中, 还包括:
所述 UE根据所述第一返回码和所述 UE的 IPv6地址,确定第三 PDN连 接激活请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv4的 PDP 类型指示信息;
所述 UE 向所述服务网关发送第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于指示 PDP类型为 IPv4的 PDP类型指示 信息;
所述 UE接收所述服务网关发送的第三 PDN连接激活响应消息, 所述第 三 PDN连接激活响应消息包括所述 UE的 IPv4地址和所述第一 DNS的 IP地 址。
在第五方面的第八种可能的实现方式中, 若所述 PDP类型指示信息用于 指示所述 PDP类型为 IPv4;则所述第一 PDN连接激活响应消息包括所述 UE 的 IP地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
第五方面的第九种可能的实现方式中, 若所述 PDP类型指示信息用于指 示所述 PDP类型为 IPv6; 则所述第一 PDN连接激活响应消息包括所述 UE 的 IP地址和第二 DNS的 IP地址。
第六方面, 本发明实施例还提供一种 IP地址分配方法, 包括:
服务网关接收用户设备 UE发送的第一分组数据网络 PDN连接激活请求 消息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信 息, 所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4v6;
所述服务网关根据所述 PDP类型指示信息,确定所述 UE的 IP地址和第 一域名解析服务器 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址和所述第一 DNS的 IP地址; 其中,所述第一 DNS中存储有互联网协议版本 4 IPv4业务服务器的 IPv4 地址但不存储所述 IPv4业务服务器的互联网协议版本 6 IPv6地址,所述 IPv4 业务服务器的 IPv6地址为 4 to 6地址。
在第六方面的第一种可能的实现方式中,所述服务网关接收用户设备 UE 发送的第一分组数据网络 PDN连接激活请求消息, 包括:
所述服务网关接收所述 UE发送的包括延迟分配标识和所述 PDP类型指 示信息的第一 PDN连接激活请求消息,所述延迟分配标识用于指示所述服务 网关延迟分配所述 UE的 IPv4地址; 所述服务网关根据所述 PDP类型指示信息,确定所述 UE的 IP地址和第 一域名解析服务器 DNS的 IP地址, 包括:
所述服务网关根据所述延迟分配标识和所述 PDP类型为 IPv4v6,确定所 述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述 UE发送包括所述 UE的 IPv6地址和所述第一 DNS 的 IP地址的第一 PDN连接激活响应消息。
在第六方面的第二种可能的实现方式中, 所述服务网关根据所述 PDP类 型指示信息,确定所述 UE的 IP地址和第一域名解析服务器 DNS的 IP地址, 包括:
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述 UE发送包括所述 UE的 IPv4地址、 所述第一 DNS 的 IP地址和第一返回码的第一 PDN连接激活响应消息;
其中,所述第一配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个接入点名称 APN下激活两种 PDN连接, 所述第一 返回码用于指示所述 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN 连接的 IP版本不同。
结合第六方面的第二种可能的实现方式, 在第六方面的第三种可能的实 现方式中, 所述服务网关接收用户设备 UE发送的第一分组数据网络 PDN连 接激活请求消息, 包括:
所述服务网关接收管理网元发送的第二 PDN连接激活请求消息;所述第 二 PDN连接激活请求消息为所述管理网元根据所述 UE发送的第一 PDN连 接激活请求消息发送的,所述第二 PDN连接激活请求消息为所述管理网元将 所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv4并将 IPv4v6指 示信息和第一标识信息添加在所述第一 PDN连接激活请求消息中获得的,所 述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第一标识信息用于标 识所述 UE在同一个 APN下激活所述两种 PDN连接;
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址之前, 还包括:
所述服务网关根据所述修改后的 PDP类型指示信息、 所述 IPv4v6指示 信息和第一标识信息, 确定所述第一配置信息;
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址, 包括:
所述服务网关根据所述修改后的 PDP类型为 IPv4和所述第一配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述管理网元发送包括所述 UE的 IPv4地址和所述第一 DNS的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元根据所述 第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激活响应消 息,所述第一 PDN连接激活响应消息为所述管理网元将所述第一返回码添加 在所述第二 PDN连接激活响应消息中获得的。
结合第六方面的第二种可能的实现方式或第六方面的第三种可能的实现 方式, 在第六方面的第四种可能的实现方式中, 还包括:
所述服务网关接收所述 UE根据所述第一返回码和所述 UE的 IPv4地址 发送的第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括 用于指示 PDP类型为 IPv6的 PDP类型指示信息;
所述服务网关确定所述 UE已激活 IPv4的 PDN连接;
所述服务网关根据所述第三 PDN连接激活请求消息中的 PDP类型指示 信息和第一配置信息,确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址; 所述服务网关向所述 UE发送第三 PDN连接激活响应消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv6地址和所述第一 DNS的 IP地址。
在第六方面的第五种可能的实现方式中, 所述服务网关根据所述 PDP类 型指示信息,确定所述 UE的 IP地址和第一域名解析服务器 DNS的 IP地址, 包括:
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述 UE发送包括所述 UE的 IPv6地址、 所述第一 DNS 的 IP地址和第一返回码的第一 PDN连接激活响应消息;
其中,所述第一配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个 APN下激活两种 PDN连接, 所述第一返回码用于 指示所述 UE在同一个 APN下激活所述两种 PDN连接。
结合第六方面的第五种可能的实现方式, 在第六方面的第六种可能的实 现方式中, 所述服务网关接收用户设备 UE发送的第一分组数据网络 PDN连 接激活请求消息, 包括:
所述服务网关接收管理网元发送的第二 PDN连接激活请求消息;所述第 二 PDN连接激活请求消息为所述管理网元根据所述 UE发送的第一 PDN连 接激活请求消息发送的,所述第二 PDN连接激活请求消息为所述管理网元将 所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv6并将 IPv4v6指 示信息和第一标识信息添加在所述第一 PDN连接激活请求消息中获得的,所 述第一标识信息用于标识所述 UE在同一个 APN下激活所述两种 PDN连接; 所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址之前, 还包括:
所述服务网关根据所述修改的 PDP类型指示信息、 所述 IPv4v6指示信 息和第一标识信息, 确定所述第一配置信息;
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址, 包括:
所述服务网关根据所述修改后的 PDP类型为 IPv6和所述第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述管理网元发送包括所述 UE的 IPv6地址和所述第一 DNS的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元根据所述 第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激活响应消 息,所述第一 PDN连接激活响应消息为所述管理网元将所述第二返回码添加 在所述第二 PDN连接激活响应消息中获得的。
结合第六方面的第五种可能的实现方式或第六方面的第六种可能的实现 方式, 在第六方面的第七种可能的实现方式中, 还包括:
所述服务网关接收所述 UE根据所述第一返回码和所述 UE的 IPv6地址 发送的第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括 用于指示 PDP类型为 IPv4的 PDP类型指示信息;
所述服务网关确定所述 UE已激活 IPv6的 PDN连接;
所述服务网关根据所述第三 PDN连接激活请求消息中的 PDP类型指示 信息和第一配置信息,确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址; 所述服务网关向所述 UE发送第三 PDN连接激活响应消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv4地址和所述第一 DNS的 IP地址。
在第六方面的第八种可能的实现方式中, 若所述 PDP类型指示信息用于 指示所述 PDP类型为 IPv4;则所述第一 PDN连接激活响应消息包括所述 UE 的 IP地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
在第六方面的第九种可能的实现方式中, 若所述 PDP类型指示信息用于 指示所述 PDP类型为 IPv6;则所述第一 PDN连接激活响应消息包括所述 UE 的 IP地址和第二 DNS的 IP地址。
第七方面, 本发明实施例还提供一种 IP地址分配方法, 包括:
用户设备 UE 向服务网关发送第一分组数据网络 PDN连接激活请求消 息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6;
所述 UE接收所述服务网关发送的第一 PDN连接激活响应消息, 所述第 一 PDN连接激活响应消息包括所述 UE的 IPv4地址、第一 DNS的 IP地址和 /或第二 DNS的 IP地址,所述第一 DNS中存储有 IPv4业务服务器的 IPv4地 址但不存储所述 IPv4业务服务器的 IPv6地址,所述第一 DNS中存储有 IPv4 业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址,所述 IPv4业务 服务器的 IPv6地址为 4 to 6地址。
在第七方面的第一种可能的实现方式中, 所述 UE接收所述服务网关发 送的第一 PDN连接激活响应消息, 包括:
所述 UE接收所述服务网关发送的包括所述 UE的 IPv4地址、 第二返回 码、所述第一 DNS的 IP地址和 /或所述第二 DNS的 IP地址的第一 PDN连接 激活响应消息, 所述第二返回码用于指示所述 UE在同一个接入点名称 APN 下激活一种 IP版本的 PDN连接。
结合第七方面的第一种可能的实现方式, 在第七方面的第二种可能的实 现方式中, 所述用户设备 UE向服务网关发送第一分组数据网络 PDN连接激 活请求消息, 包括:
所述 UE向管理网元发送第一 PDN连接激活请求消息, 以使所述管理网 元根据所述第一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活 请求消息; 所述第二 PDN连接激活请求消息为所述管理网元将所述 PDP类 型指示信息修改为用于指示 PDP类型为 IPv4并将 IPv4v6指示信息和第一标 识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示 信息用于指示所述 UE支持 IPv4v6, 所述第二标识信息用于标识所述 UE在 同一个 APN下激活一种 IP版本的 PDN连接;
所述 UE接收所述服务网关发送的包括所述 UE的 IPv4地址、 第一返回 码、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活 响应消息, 包括:
所述 UE接收所述管理网元发送的包括所述 UE的 IPv4地址、 第二返回 码、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活 响应消息,所述第一 PDN连接激活响应消息为所述管理网元根据所述服务网 关发送的第二 PDN连接激活响应消息发送的, 所述第二 PDN连接激活响应 消息包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址,所述第一 PDN连接激活响应消息为所述管理网元将所述第二返回码 添加在所述第二 PDN连接激活响应消息获得的。
第八方面, 本发明实施例还提供一种 IP地址分配方法, 包括:
服务网关接收用户设备 UE发送的第一分组数据网络 PDN连接激活请求 消息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信 息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6;
所述服务网关根据所述 PDP类型指示信息, 确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IPv4地址、 第一 DNS的 IP地址和 / 或第二 DNS的 IP地址, 所述第一 DNS中存储有 IPv4业务服务器的 IPv4地 址但不存储所述 IPv4业务服务器的 IPv6地址,所述第一 DNS中存储有 IPv4 业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址,所述 IPv4业务 服务器的 IPv6地址为 4 to 6地址。
在第八方面的第一种可能的实现方式中, 所述服务网关根据所述 PDP类 型指示信息,确定所述 UE的 IPv4地址、第一 DNS的 IP地址和 /或第二 DNS 的 IP地址, 包括:
所述服务网关根据所述 PDP类型指示信息和第二配置信息, 确定所述
UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述 UE发送包括所述 UE的 IPv4地址、 第二返回码、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活响应 消息;
其中,所述第二配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个接入点名称 APN下激活一种 IP版本的 PDN连接, 所述第二返回码用于指示所述 UE在同一个 APN下激活一种 IP版本的 PDN 连接。
结合第八方面的第一种可能的实现方式, 在第八方面的第二种可能的实 现方式中, 所述服务网关接收用户设备 UE发送的第一分组数据网络 PDN连 接激活请求消息, 包括:
所述服务网关接收管理网元发送的第二 PDN连接激活请求消息;所述第 二 PDN连接激活请求消息为所述管理网元根据接收到所述 UE发送的第一 PDN连接激活请求消息发送的, 所述第二 PDN连接激活请求消息为所述管 理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv4并将 IPv4v6指示信息和第二标识信息添加在所述第一 PDN连接激活请求消息中 获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第二标识 信息用于标识所述 UE在同一个 APN下激活一种 IP版本的 PDN连接;
所述服务网关根据所述 PDP类型指示信息和第二配置信息, 确定所述
UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址之前, 还包 括:
所述服务网关根据所述修改的 PDP类型指示信息、 所述 IPv4v6指示信 息和第二标识信息, 确定所述第二配置信息;
所述服务网关根据所述 PDP类型指示信息和第二配置信息, 确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址, 包括: 所述服务网关根据所述修改后的 PDP类型为 IPv4和所述第二配置信息, 确定所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地 址;
所述服务网关向所述 UE发送包括所述 UE的 IPv4地址、 第二返回码、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活响应 消息, 包括:
所述服务网关向所述管理网元发送包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第二 PDN连接激活响应消息, 以 使所述管理网元根据所述第二 PDN连接激活响应消息向所述 UE发送所述第 一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所述管理网 元将所述第二返回码添加在所述第一 PDN连接激活响应消息中获得的。
本发明实施例提供的互联网协议地址分配方法和装置, 通过 UE 的发送 单元向服务网关发送第一 PDN连接激活请求消息, 第一 PDN连接激活请求 消息包括用于指示 PDP类型为 IPv4v6的 PDP类型指示信息, 然后接收单元 接收服务网关发送的包括 UE的 IP地址和第一 DNS的 IP地址的第一 PDN连 接激活响应消息。 由于 UE获取到第一 DNS的 IP地址而未获取到第二 DNS 的 IP地址, 所以 UE获取的 IPv4业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转换,从而减少了 NAT64的网络负荷, 还提高了数据传输效率。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明 UE实施例一的结构示意图;
图 2为本发明 UE实施例二的结构示意图;
图 3为本发明服务网关实施例一的结构示意图;
图 4为本发明 UE实施例三的结构示意图; 图 5为本发明服务网关实施例二的结构示意图;
图 6为本发明 IP地址分配方法实施例一的流程图;
图 7为本发明 IP地址分配方法实施例二的流程图;
图 8为本发明 IP地址分配方法实施例三的流程图;
图 9为本发明 IP地址分配方法实施例四的流程图;
图 10为本发明 IP地址分配方法实施例五的流程图;
图 11为本发明 IP地址分配方法实施例六的流程图;
图 12为本发明 IP地址分配方法实施例七的流程图;
图 13为本发明 IP地址分配方法实施例八的流程图;
图 14为本发明 IP地址分配方法实施例九的流程图;
图 15为本发明 IP地址分配方法实施例十的流程图;
图 16为本发明 IP地址分配方法实施例十一的流程图;
图 17为本发明 IP地址分配方法实施例十二的流程图;
图 18为本发明 IP地址分配方法实施例十三的流程图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。
本发明的技术方案, 可以应用于各种无线通信系统, 例如: 通用分组无 线业务 (英文: General Packet Radio Service, 简称: GPRS) 系统、 4G的核 心网(Evolved Packet Core,简称: EPC)系统、码分多址(英文: Code Division Multiple Access, 简称: CDMA)系统等。 本发明各实施例中的服务网关, 可 以是 GGSN、分组数据网络网关(Packet Data Network Gateway ,简称: PGW)、 分组数据服务节点 (Packet Data Serving Node , 简称: PDSN)等。 本发明各 实施例中的管理网元, 可以是服务 GPRS支撑节点 (Serving GPRS Support Node, 简称: SGSN) 、 移动性管理网元( Mobility Management Gateway, 简 称: MME) 、 分组控制功能 (Packet Control Function, 简称: PCF) 实体等。 图 1为本发明 UE实施例一的结构示意图, 如图 1所示, 本实施例的 UE 可以包括: 发送单元 11和接收单元 12。 其中, 发送单元 11用于向服务网关 发送第一分组数据网络(Packet Date Network, 简称: PDN)连接激活请求消 息,所述第一 PDN连接激活请求消息包括分组数据协议(Packet Date Protocol, 简称: PDP) 类型 (Type) 指示信息, 所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4v6; 接收单元 12用于接收服务网关发送的第一 PDN连接激 活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址和第 一 DNS的 IP地址, 所述第一 DNS中存储有 IPv4业务服务器的 IPv4地址但 不存储所述 IPv4业务服务器的 IPv6地址,所述 IPv4业务服务器的 IPv6地址 为 4 to 6地址。
具体地,发送单元 11可以向服务网关发送第一 PDN连接激活请求消息, 以激活第一 PDN连接, 同时向服务网关请求 IP地址, 其中, 第一 PDN连接 激活请求消息中包括 PDP类型指示信息, PDP类型指示信息用于指示 PDP 类型, 本实施例中的 UE为 IPv4v6 UE, 也即是支持 IPv4和 IPv6的 UE, 所 以 PDP类型指示信息用于指示 PDP类型为 IPv4v6。服务网关接收到 UE发送 的第一 PDN连接激活请求消息后,解析第一 PDP连接激活请求消息中的 PDP 类型,也即根据第一 PDP连接激活请求消息中的 PDP类型指示信息确定 PDP 类型为 IPv4v6。
本实施例中的通信网络中可以同时部署有第一 DNS和第二 DNS, 其中, 第一 DNS中存储有 IPv4业务服务器的 IPv4地址但不存储所述 IPv4业务服务 器的 IPv6地址, IPv4业务服务器的 IPv6地址为 4 to 6地址, 可选地, 第一 DNS中还可以存储有 IPv6业务服务器的 IPv6地址, 也可以存储有 IPv4v6业 务服务器的 IPv4地址和 IPv6地址。 第二 DNS中存储有 IPv4业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址。 可以理解的是, 第一 DNS为 现有技术中传统的 DNS, 第二 DNS为现有技术中的 DNS64, 第一 DNS与第 二 DNS的区别在于, 第一 DNS不能根据 IPv4业务服务器的 IPv4地址生成 IPv4业务服务器的 IPv6地址。
本实施例中, 服务网关根据 PDP类型为 IPv4v6, 在同时部署第一 DNS 和第二 DNS的情况下, 服务网关为该 UE分配的 DNS为第一 DNS, 从而服 务网关可以确定第一 DNS的 IP地址, 另外服务网关为 UE分配该 UE的 IP 地址。 UE的 IP地址可以为 UE的 IPv4地址和 /或 UE的 IPv6地址。第一 DNS 的 IP地址可以为第一 DNS的 IPv4地址和 /或第一 DNS的 IPv6地址。服务网 关向 UE发送第一 PDP连接激活响应消息,该第一 PDP连接激活响应消息包 括该 UE的 IP地址和第一 DNS的 IP地址。相应地,接收单元 12可以接收服 务网关发送的第一 PDN连接激活响应消息。
需要说明的是, 发送单元 11向服务网关发送第一 PDN连接激活请求消 息的过程可以为: 发送单元向管理网元发送第一 PDN连接激活请求消息, 管 理网关向服务网关发送第一 PDN连接激活请求消息。 接收单元 12接收服务 网关发送的第一 PDN连接激活响应消息的过程可以为:管理网关接收服务网 关发送的第一 PDN连接激活响应消息, 接收单元 12接收管理网关发送的第 一 PDN连接激活响应消息。
现有技术中, 服务网关会将第二 DNS的 IP地址发送给 UE, IPv4v6 UE 会向第二 DNS请求 IPv4业务服务器的 IP地址, 第二 DNS会将 IPv4业务服 务器的 IPv4地址和 IPv4业务服务器的 IPv6地址发送给该 UE,而该 UE会优 先根据 UE的 IPv6地址和 IPv4业务服务器的 IPv6地址向 IPv4业务服务器发 送 IPv6数据报文, 由于 IPv4业务服务器只支持 IPv4, 所以 UE发送给 IPv4 业务服务器的 IPv6数据报文要由 NAT64转换为 IPv4数据报文后再发送给 IPv4业务服务器, 而 IPv4业务服务器返回给该 UE的 IPv4数据报文也要由 NAT64转换为 IPv6数据报文后再发送给该 UE, 因此, UE与 IPv4业务服务 器之间传输的数据报文需要经过 NAT64的转换增加了 NAT64的网络负荷。
而本发明实施例中, 当 UE为 IPv4v6 UE时, UE的接收单元 12接收服 务网关发送的第一 DNS的 IP地址, 而未获取到第二 DNS的 IP地址, 所以 UE向第一 DNS请求 IPv4业务服务器的 IP地址时, 获取到 IPv4业务服务器 的 IPv4地址, 然后 UE根据 UE的 IPv4地址和 IPv4业务服务器的 IPv4地址 向 IPv4业务服务器发送的是 IPv4数据报文,所以不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷。
本实施例中, 通过发送单元向服务网关发送第一 PDN连接激活请求消 息,第一 PDN连接激活请求消息包括用于指示 PDP类型为 IPv4v6的 PDP类 型指示信息, 然后接收单元接收服务网关发送的包括 UE的 IP地址和第一 DNS的 IP地址的第一 PDN连接激活响应消息。由于 UE获取到第一 DNS的 IP地址而未获取到第二 DNS的 IP地址, 所以 UE获取的 IPv4业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了数据传输效率。
可选地,发送单元 11具体用于向所述服务网关发送包括延迟分配标识和 所述 PDP类型指示信息的第一 PDN连接激活请求消息, 所述延迟分配标识 用于指示所述服务网关延迟分配所述 UE的 IPv4地址; 接收单元 12具体用 于接收服务网关发送的包括所述 UE的 IPv6地址和所述第一 DNS的 IP地址 的第一 PDN连接激活响应消息。
可选地, 接收单元 12具体用于接收所述服务网关发送的包括所述 UE的 IPv4地址、所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应 消息, 所述第一返回码用于指示所述 UE在同一个接入点名称 (Access Point Name, 简称: APN) 下激活两种 PDN连接, 所述两种 PDN连接的 IP版本 不同。 进一步地, 发送单元 11具体用于向管理网元发送第一 PDN连接激活 请求消息, 以使所述管理网元根据所述第一 PDN连接激活请求向所述服务网 关发送第二 PDN连接激活请求消息, 所述第二 PDN连接激活请求消息为所 述管理网元将所述 PDP类型指示信息修改为用于指示 PDP类型为 IPv4并将 IPv4v6指示信息和第一标识信息添加在所述第一 PDN连接激活请求消息中 获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第一标识 信息用于标识所述 UE在同一个 APN下激活所述两种 PDN连接, 也就是标 识服务网关允许 UE在同一个 APN下激活两种 PDN连接; 接收单元 12具体 用于接收所述管理网元发送的包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一 PDN连接激 活响应消息为所述管理网元根据所述服务网关发送的第二 PDN连接激活响 应消息发送的, 所述第二 PDN连接激活响应消息包括所述 UE的 IPv4地址 和所述第一 DNS的 IP地址,所述第一 PDN连接激活响应消息为所述管理网 元将所述第一返回码添加在所述第二 PDN连接激活响应消息获得的。
可选地, 接收单元 12具体用于接收所述服务网关发送的包括所述 UE的 IPv6地址、所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应 消息, 所述第一返回码用于指示所述 UE在同一个 APN下激活两种 PDN连 接, 所述两种 PDN连接的 IP版本不同。 进一步地, 发送单元 11具体用于向 管理网元发送第一 PDN连接激活请求消息, 以使所述管理网元根据所述第一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活请求消息, 所述 第二 PDN连接激活请求消息为所述管理网元将所述 PDP类型指示信息修改 为用于指示 PDP类型为 IPv6并将 IPv4v6指示信息和第一标识信息添加在所 述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示信息用于指示所 述 UE支持 IPv4v6, 所述第一标识信息用于标识所述 UE在同一个 APN下激 活所述两种 PDN连接; 接收单元 12具体用于接收所述管理网元发送的包括 所述 UE的 IPv6地址、所述第一 DNS的 IP地址和第一返回码的第一 PDN连 接激活响应消息,所述第一 PDN连接激活响应消息为所述管理网元根据所述 服务网关发送的第二 PDN连接激活响应消息发送的, 所述第二 PDN连接激 活响应消息包括所述 UE的 IPv6地址和所述第一 DNS的 IP地址, 所述第一 PDN 连接激活响应消息为所述管理网元将所述第一返回码添加在所述第二 PDN连接激活响应消息获得的。
图 2为本发明 UE实施例二的结构示意图, 如图 2所示, 本实施例的 UE 在图 1所示装置结构的基础上, 进一步地, 还可以包括: 确定单元 13, 该确 定单元 13用于根据所述第一返回码和所述 UE的 IPv4地址, 确定第三 PDN 连接激活请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv6 的 PDP类型指示信息; 发送单元 11还用于向所述服务网关发送第三 PDN连接 激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于指示 PDP类 型为 IPv6的 PDP类型指示信息; 接收单元 12还用于接收所述服务网关发送 的第三 PDN连接激活响应消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv6地址和所述第一 DNS的 IP地址。
可选地, 确定单元 13用于根据所述第一返回码和所述 UE的 IPv6地址, 确定第三 PDN连接激活请求消息中的 PDP类型指示信息为用于指示 PDP类 型为 IPv4的 PDP类型指示信息; 发送单元 11还用于向所述服务网关发送第 三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于 指示 PDP类型为 IPv4的 PDP类型指示信息;接收单元 12还用于接收所述服 务网关发送的第三 PDN连接激活响应消息, 所述第三 PDN连接激活响应消 息包括所述 UE的 IPv4地址和所述第一 DNS的 IP地址。
本实施例中, 由于 UE获取到第一 DNS的 IP地址而未获取到第二 DNS 的 IP地址, 所以 UE获取的 IPv4业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转换,从而减少了 NAT64的网络负荷, 还提高了数据传输效率。
可选地, 若所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4; 则 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
可选地, 若所述 PDP类型指示信息用于指示所述 PDP类型为 IPv6; 则 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址和第二 DNS的 IP地 址。
在硬件实现上, 以上发送单元 11可以为发射机或收发机, 以上接收单元
12可以为接收机或收发机, 且该发送单元 11和接收单元 12可以集成在一起 构成收发单元, 对应于硬件实现为收发机。 以上确定单元 13可以以硬件形式 内嵌于或独立于 UE的处理器中, 也可以以软件形式存储于 UE的存储器中, 以便于处理器调用执行以上各个单元对应的操作。 该处理器可以为中央处理 器 (Central Processing Unit, 简称: CPU) 、 微处理器、 单片机等。
图 3为本发明服务网关实施例一的结构示意图, 如图 3所示, 本实施例 的服务网关可以包括: 接收单元 21、 确定单元 22和发送单元 23。 其中, 接 收单元 21用于接收 UE发送的第一 PDN连接激活请求消息, 所述第一 PDN 连接激活请求消息包括 PDP类型指示信息,所述 PDP类型指示信息用于指示 所述 PDP类型为 IPv4v6; 确定单元 22用于根据所述 PDP类型指示信息, 确 定所述 UE的 IP地址和第一 DNS的 IP地址;发送单元 23用于向所述 UE发 送第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址和所述第一 DNS的 IP地址;其中,所述第一 DNS中存储有 IPv4 业务服务器的 IPv4地址但不存储所述 IPv4业务服务器的 IPv6地址,所述 IPv4 业务服务器的 IPv6地址为 4 to 6地址。
本实施例中, 通过接收单元 21接收 UE发送的第一 PDN连接激活请求 消息, 第一 PDN连接激活请求消息包括用于指示 PDP类型为 IPv4v6的 PDP 类型指示信息, 确定单元 22根据该 PDP类型指示信息, 确定 UE的 IP地址 和第一 DNS的 IP地址, 发送单元 23向 UE发送包括 UE的 IP地址和第一 DNS的 IP地址的第一 PDN连接激活响应消息, 以使 UE获取到第一 DNS的 IP地址而未获取到第二 DNS的 IP地址, 所以 UE获取的 IPv4业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了数据传输效率。
可选地, 接收单元 21具体用于接收所述 UE发送的包括延迟分配标识和 所述 PDP类型指示信息的第一 PDN连接激活请求消息, 所述延迟分配标识 用于指示所述服务网关延迟分配所述 UE的 IPv4地址; 确定单元 22具体用 于根据所述延迟分配标识和所述 PDP类型为 IPv4v6, 确定所述 UE的 IPv6 地址和所述第一 DNS的 IP地址; 发送单元 23具体用于向所述 UE发送包括 所述 UE的 IPv6地址和所述第一 DNS的 IP地址的第一 PDN连接激活响应消 息。
可选地, 确定单元 22具体用于根据所述 PDP类型指示信息和第一配置 信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址; 发送单元 23 具体用于向所述 UE发送包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地 址和第一返回码的第一 PDN连接激活响应消息; 其中, 所述第一配置信息用 于指示所述服务网关给一个 PDN连接分配一种 IP版本地址并且同一个 APN 下激活两种 PDN连接, 所述第一返回码用于指示所述 UE在同一个 APN下 激活两种 PDN连接, 所述两种 PDN连接的 IP版本不同。 进一步地, 接收单 元 21具体用于接收管理网元发送的第二 PDN连接激活请求消息; 所述第二 PDN连接激活请求消息为所述管理网元根据所述 UE发送的第一 PDN连接激 活请求消息发送的,所述第二 PDN连接激活请求消息为所述管理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv4并将 IPv4v6指示信 息和第一标识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第一标识信息用于标识 所述 UE在同一个 APN下激活所述两种 PDN连接; 确定单元 22具体用于根 据所述修改后的 PDP类型指示信息、 所述 IPv4v6指示信息和第一标识信息, 确定所述第一配置信息, 并根据所述修改后的 PDP类型为 IPv4和所述第一 配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址; 发送单元 23具体用于向所述管理网元发送包括所述 UE的 IPv4地址和所述第一 DNS 的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元根据所述第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激活响应消息,所 述第一 PDN连接激活响应消息为所述管理网元将所述第一返回码添加在所 述第二 PDN连接激活响应消息中获得的。
进一步地, 接收单元 21还用于接收所述 UE根据所述第一返回码和所述 UE的 IPv4地址发送的第三 PDN连接激活请求消息, 所述第三 PDN连接激 活请求消息包括用于指示 PDP类型为 IPv6的 PDP类型指示信息; 确定单元 22还用于确定所述 UE已激活 IPv4的 PDN连接,并根据所述第三 PDN连接 激活请求消息中的 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv6 地址和所述第一 DNS的 IP地址;发送单元 23还用于向所述 UE发送第三 PDN 连接激活响应消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv6 地址和所述第一 DNS的 IP地址。
可选地, 确定单元 22具体用于根据所述 PDP类型指示信息和第一配置 信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址; 发送单元 23 具体用于向所述 UE发送包括所述 UE的 IPv6地址、 所述第一 DNS的 IP地 址和第一返回码的第一 PDN连接激活响应消息; 其中, 所述第一配置信息用 于指示所述服务网关给一个 PDN连接分配一种 IP版本地址并且同一个 APN 下激活两种 PDN连接, 所述第一返回码用于指示所述 UE在同一个 APN下 激活两种 PDN连接, 所述两种 PDN连接的 IP版本不同。 进一步地, 接收单 元 21具体用于接收管理网元发送的第二 PDN连接激活请求消息; 所述第二 PDN连接激活请求消息为所述管理网元根据所述 UE发送的第一 PDN连接激 活请求消息发送的,所述第二 PDN连接激活请求消息为所述管理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv6并将 IPv4v6指示信 息和第一标识信息添加在所述第一 PDN连接激活请求消息中获得的,所述第 一标识信息用于标识所述 UE在同一个 APN下激活所述两种 PDN连接; 确 定单元 22具体用于根据所述修改的 PDP类型指示信息、 所述 IPv4v6指示信 息和第一标识信息, 确定所述第一配置信息, 以及根据所述修改后的 PDP类 型为 IPv6和所述第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS 的 IP地址; 发送单元 23具体用于向所述管理网元发送包括所述 UE的 IPv6 地址和所述第一 DNS的 IP地址的第二 PDN连接激活响应消息, 以使所述管 理网元根据所述第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN 连接激活响应消息,所述第一 PDN连接激活响应消息为所述管理网元将所述 第二返回码添加在所述第二 PDN连接激活响应消息中获得的。
进一步地, 接收单元 21还用于接收所述 UE根据所述第一返回码和所述
UE的 IPv6地址发送的第三 PDN连接激活请求消息, 所述第三 PDN连接激 活请求消息包括用于指示 PDP类型为 IPv4的 PDP类型指示信息; 确定单元 22还用于确定所述 UE已激活 IPv6的 PDN连接, 以及根据所述第三 PDN连 接激活请求消息中的 PDP类型指示信息和第一配置信息,确定所述 UE的 IPv4 地址和所述第一 DNS的 IP地址;发送单元 23还用于向所述 UE发送第三 PDN 连接激活响应消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv4 地址和所述第一 DNS的 IP地址。
本实施例中, 由于 UE获取到第一 DNS的 IP地址而未获取到第二 DNS 的 IP地址, 所以 UE获取的 IPv4业务服务器的 IP地址为 IPv4地址, UE与
IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转换,从而减少了
NAT64的网络负荷, 还提高了数据传输效率。
可选地, 若所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4; 则 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址、 所述第一 DNS的
IP地址和 /或第二 DNS的 IP地址。
可选地, 若所述 PDP类型指示信息用于指示所述 PDP类型为 IPv6; 则 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址和第二 DNS的 IP地 址。
在硬件实现上, 以上接收单元 21可以为接收机或收发机, 以上发送单元
23可以为发射机或收发机, 且该接收单元 21和发送单元 23可以集成在一起 构成收发单元, 对应于硬件实现为收发机。 以上确定单元 22可以以硬件形式 内嵌于或独立于服务网关的处理器中, 也可以以软件形式存储于服务网关的 存储器中, 以便于处理器调用执行以上各个单元对应的操作。 该处理器可以 为 CPU、 微处理器、 单片机等。
图 4为本发明 UE实施例三的结构示意图, 如图 4所示, 本实施例的 UE 可以包括: 发送单元 31和接收单元 32, 其中, 发送单元 31用于向服务网关 发送第一 PDN连接激活请求消息,所述第一 PDN连接激活请求消息包括 PDP 类型指示信息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6; 接收 单元 32用于接收服务网关发送的第一 PDN连接激活响应消息,所述第一 PDN 连接激活响应消息包括所述 UE的 IPv4地址、第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
可选地, 接收单元 32具体用于接收所述服务网关发送的包括所述 UE的 IPv4地址、 第二返回码、 所述第一 DNS的 IP地址和 /或所述第二 DNS的 IP 地址的第一 PDN连接激活响应消息, 所述第二返回码用于指示所述 UE在同 一个 APN下激活一种 IP版本的 PDN连接。
可选地, 发送单元 31具体用于向管理网元发送第一 PDN连接激活请求 消息, 以使所述管理网元根据所述第一 PDN连接激活请求向所述服务网关发 送第二 PDN连接激活请求消息; 所述第二 PDN连接激活请求消息为所述管 理网元将所述 PDP 类型指示信息修改为用于指示 PDP 类型为 IPv4 并将 IPv4v6指示信息和第一标识信息添加在所述第一 PDN连接激活请求消息中 获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第二标识 信息用于标识所述 UE在同一个 APN下激活一种 IP版本的 PDN连接; 接收 单元 32具体用于接收所述管理网元发送的包括所述 UE的 IPv4地址、 第二 返回码、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接 激活响应消息,所述第一 PDN连接激活响应消息为所述管理网元根据所述服 务网关发送的第二 PDN连接激活响应消息发送的, 所述第二 PDN连接激活 响应消息包括所述 UE的 IPv4地址、所述第一 DNS的 IP地址和 /或第二 DNS 的 IP地址, 所述第一 PDN连接激活响应消息为所述管理网元将所述第二返 回码添加在所述第二 PDN连接激活响应消息获得的。
本实施例中, 通过发送单元向服务网关发送第一 PDN连接激活请求消 息, 接收单元接收服务网关发送的 UE的 IPv4地址、 第一 DNS的 IP地址和 / 或第二 DNS的 IP地址; 由于 UE只获取到 UE的 IPv4地址, UE与 IPv4业 务服务器之间传输 IPv4数据报文, 不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了数据传输效率。
在硬件实现上, 以上发送单元 31可以为发射机或收发机, 以上接收单元 32可以为接收机或收发机, 且该发送单元 31和接收单元 32可以集成在一起 构成收发单元, 对应于硬件实现为收发机。 处理器可以调用执行以上各个单 元对应的操作。 该处理器可以为 CPU、 微处理器、 单片机等。
图 5为本发明服务网关实施例二的结构示意图, 如图 5所示, 本实施例 的服务网关可以包括: 接收单元 41、 确定单元 42和发送单元 43, 其中, 接 收单元 41用于接收用户设备 UE发送的第一分组数据网络 PDN连接激活请 求消息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示 信息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6; 确定单元 42用 于根据所述 PDP类型指示信息, 确定所述 UE的 IPv4地址、 第一 DNS的 IP 地址和 /或第二 DNS的 IP地址; 发送单元 43用于向所述 UE发送第一 PDN 连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IPv4 地址、第一 DNS的 IP地址和 /或第二 DNS的 IP地址, 所述第一 DNS中存储 有 IPv4业务服务器的 IPv4地址但不存储所述 IPv4业务服务器的 IPv6地址, 所述第一 DNS中存储有 IPv4业务服务器的 IPv4地址和所述 IPv4业务服务器 的 IPv6地址, 所述 IPv4业务服务器的 IPv6地址为 4 to 6地址。
可选地, 确定单元 42具体用于根据所述 PDP类型指示信息和第二配置 信息, 确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP 地址; 发送单元 43具体用于向所述 UE发送包括所述 UE的 IPv4地址、第二 返回码、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接 激活响应消息; 其中, 所述第二配置信息用于指示所述服务网关给一个 PDN 连接分配一种 IP版本地址并且同一个接入点名称 APN下激活一种 IP版本的 PDN连接, 所述第二返回码用于指示所述 UE在同一个 APN下激活一种 IP 版本的 PDN连接。
可选地, 接收单元 41具体用于接收管理网元发送的第二 PDN连接激活 请求消息;所述第二 PDN连接激活请求消息为所述管理网元根据接收到所述 UE发送的第一 PDN连接激活请求消息发送的,所述第二 PDN连接激活请求 消息为所述管理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型 为 IPv4并将 IPv4v6指示信息和第二标识信息添加在所述第一 PDN连接激活 请求消息中获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所 述第二标识信息用于标识所述 UE在同一个 APN下激活一种 IP版本的 PDN 连接;确定单元 42具体用于根据所述修改的 PDP类型指示信息、所述 IPv4v6 指示信息和第二标识信息, 确定所述第二配置信息, 以及根据所述修改后的 PDP类型为 IPv4和所述第二配置信息,确定所述 UE的 IPv4地址、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址; 发送单元 43具体用于向所述管理 网元发送包括所述 UE的 IPv4地址、所述第一 DNS的 IP地址和 /或第二 DNS 的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元根据所述第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激活响应消息,所 述第一 PDN连接激活响应消息为所述管理网元将所述第二返回码添加在所 述第一 PDN连接激活响应消息中获得的。
本实施例中, 由于 UE获取到第一 DNS的 IP地址而未获取到第二 DNS 的 IP地址, 所以 UE获取的 IPv4业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转换,从而减少了 NAT64的网络负荷, 还提高了数据传输效率。
在硬件实现上, 以上接收单元 41可以为接收机或收发机, 以上发送单元
43可以为发射机或收发机, 且该接收单元 41和发送单元 43可以集成在一起 构成收发单元, 对应于硬件实现为收发机。 以上确定单元 42可以以硬件形式 内嵌于或独立于服务网关的处理器中, 也可以以软件形式存储于服务网关的 存储器中, 以便于处理器调用执行以上各个单元对应的操作。 该处理器可以 为 CPU、 微处理器、 单片机等。
图 6为本发明 IP地址分配方法实施例一的流程图, 如图 6所示, 本实施 例的方法可以包括:
5101、 UE向服务网关发送第一 PDN连接激活请求消息。
5102、 UE接收服务网关发送的第一 PDN连接激活响应消息。
本实施例中, UE可以向服务网关发送第一 PDN连接激活请求消息, 以 激活第一 PDN连接, 同时向服务网关请求 IP地址, 其中, 第一 PDN连接激 活请求消息中包括 PDP类型指示信息, PDP类型指示信息用于指示 PDP类 型, 本实施例中的 UE为 IPv4v6 UE, 也即是支持 IPv4和 IPv6的 UE, 所以 PDP类型指示信息用于指示 PDP类型为 IPv4v6。服务网关接收到 UE发送的 第一 PDN连接激活请求消息后, 解析第一 PDP连接激活请求消息中的 PDP 类型,也即根据第一 PDP连接激活请求消息中的 PDP类型指示信息确定 PDP 类型为 IPv4v6。
本实施例中的通信网络中可以同时部署有第一 DNS和第二 DNS, 其中, 第一 DNS中存储有 IPv4业务服务器的 IPv4地址但不存储所述 IPv4业务服务 器的 IPv6地址, IPv4业务服务器的 IPv6地址为 4 to 6地址, 可选地, 第一 DNS中还可以存储有 IPv6业务服务器的 IPv6地址, 也可以存储有 IPv4v6业 务服务器的 IPv4地址和 IPv6地址。 第二 DNS中存储有 IPv4业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址。 可以理解的是, 第一 DNS为 现有技术中传统的 DNS, 第二 DNS为现有技术中的 DNS64, 第一 DNS与第 二 DNS的区别在于, 第一 DNS不能根据 IPv4业务服务器的 IPv4地址生成 IPv4业务服务器的 IPv6地址。
本实施例中, 服务网关根据 PDP类型为 IPv4v6, 在同时部署第一 DNS 和第二 DNS的情况下, 服务网关为该 UE分配的 DNS为第一 DNS, 从而服 务网关可以确定第一 DNS的 IP地址, 另外服务网关为 UE分配该 UE的 IP 地址。 UE的 IP地址可以为 UE的 IPv4地址和 /或 UE的 IPv6地址。第一 DNS 的 IP地址可以为第一 DNS的 IPv4地址和 /或第一 DNS的 IPv6地址。服务网 关向 UE发送第一 PDP连接激活响应消息,该第一 PDP连接激活响应消息包 括该 UE的 IP地址和第一 DNS的 IP地址。相应地, UE可以接收服务网关发 送的第一 PDN连接激活响应消息。
需要说明的是, UE向服务网关发送第一 PDN连接激活请求消息的过程 可以为: UE向管理网元发送第一 PDN连接激活请求消息, 管理网关向服务 网关发送第一 PDN连接激活请求消息。 UE接收服务网关发送的第一 PDN连 接激活响应消息的过程可以为:管理网关接收服务网关发送的第一 PDN连接 激活响应消息, UE接收管理网关发送的第一 PDN连接激活响应消息。
现有技术中, 服务网关会将第二 DNS的 IP地址发送给 UE, IPv4v6 UE 会向第二 DNS请求 IPv4业务服务器的 IP地址, 第二 DNS会将 IPv4业务服 务器的 IPv4地址和 IPv4业务服务器的 IPv6地址发送给该 UE,而该 UE会优 先根据 UE的 IPv6地址和 IPv4业务服务器的 IPv6地址向 IPv4业务服务器发 送 IPv6数据报文, 由于 IPv4业务服务器只支持 IPv4, 所以 UE发送给 IPv4 业务服务器的 IPv6数据报文要由 NAT64转换为 IPv4数据报文后再发送给 IPv4业务服务器, 而 IPv4业务服务器返回给该 UE的 IPv4数据报文也要由 NAT64转换为 IPv6数据报文后再发送给该 UE, 因此, UE与 IPv4业务服务 器之间传输的数据报文需要经过 NAT64的转换增加了 NAT64的网络负荷。
而本发明实施例中, 当 UE为 IPv4v6 UE时, UE接收服务网关发送的第 一 DNS的 IP地址, 而未获取到第二 DNS的 IP地址, 所以 UE向第一 DNS 请求 IPv4业务服务器的 IP地址时, 获取到 IPv4业务服务器的 IPv4地址, 然 后 UE根据 UE的 IPv4地址和 IPv4业务服务器的 IPv4地址向 IPv4业务服务 器发送的是 IPv4数据报文, 所以不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷。
本发明实施例一提供的 IP地址分配方法, 通过 UE向服务网关发送第一
PDN连接激活请求消息, 第一 PDN连接激活请求消息包括用于指示 PDP类 型为 IPv4v6的 PDP类型指示信息, 然后接收服务网关发送的包括 UE的 IP 地址和第一 DNS的 IP地址的第一 PDN连接激活响应消息。 由于 UE获取到 第一 DNS的 IP地址而未获取到第二 DNS的 IP地址, 所以 UE获取的 IPv4 业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据 报文不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了 数据传输效率。
图 7为本发明 IP地址分配方法实施例二的流程图, 如图 7所示, 本实施 例的方法可以包括:
S201、 服务网关接收 UE发送的第一 PDN连接激活请求消息。
5202、服务网关根据 PDP类型指示信息,确定 UE的 IP地址和第一 DNS 的 IP地址。
5203、 服务网关向 UE发送第一 PDN连接激活响应消息。
本实施例中,服务网关可以接收 UE发送的第一 PDN连接激活请求消息, 该第一 PDN连接激活请求包括 PDP类型指示信息, 本实施例中的 UE为
IPv4v6 UE, 所以 PDP类型指示信息用于指示 PDP类型为 IPv4v6。 服务网关 可以解析第一 PDP连接激活请求消息中的 PDP类型, 也即根据第一 PDP连 接激活请求消息中的 PDP类型指示信息确定 PDP类型为 IPv4v6。
本实施例中的通信网络中可以同时部署有第一 DNS和第二 DNS, 其中, 第一 DNS中存储有 IPv4业务服务器的 IPv4地址但不存储所述 IPv4业务服务 器的 IPv6地址, IPv4业务服务器的 IPv6地址为 4 to 6地址, 可选地, 第一 DNS中还可以存储有 IPv6业务服务器的 IPv6地址, 也可以存储有 IPv4v6业 务服务器的 IPv4地址和 IPv6地址。 第二 DNS中存储有 IPv4业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址。 可以理解的是, 第一 DNS为 现有技术中传统的 DNS, 第二 DNS为现有技术中的 DNS64, 第一 DNS与第 二 DNS的区别在于, 第一 DNS不能根据 IPv4业务服务器的 IPv4地址生成 IPv4业务服务器的 IPv6地址。
本实施例中, 服务网关根据 PDP类型为 IPv4v6, 可以确定该 UE为同时 支持 IPv4和 IPv6的 UE, 在同时部署第一 DNS和第二 DNS的情况下, 服务 网关确定为该 UE分配的 DNS为第一 DNS, 从而服务网关确定第一 DNS的 IP地址,另外服务网关为 UE分配该 UE的 IP地址。 UE的 IP地址可以为 UE 的 IPv4地址和 /或 UE的 IPv6地址。 第一 DNS的 IP地址可以为第一 DNS的 IPv4地址和 /或第一 DNS的 IPv6地址。服务网关向 UE发送第一 PDP连接激 活响应消息,该第一 PDP连接激活响应消息包括确定的该 UE的 IP地址和第 一 DNS的 IP地址。 相应地, UE可以接收服务网关发送的第一 PDN连接激 活响应消息。
需要说明的是, 服务网关接收 UE发送的第一 PDN连接激活请求消息的 过程可以为: UE向管理网元发送第一 PDN连接激活请求消息, 服务网关接 收 UE发送的第一 PDN连接激活请求消息。服务网关向 UE接收发送第一 PDN 连接激活响应消息的过程可以为:服务网关向管理网关发送第一 PDN连接激 活响应消息, 管理网元向 UE发送第一 PDN连接激活响应消息。
现有技术中, 服务网关会将第二 DNS的 IP地址发送给 UE, IPv4v6 UE 会向第二 DNS请求 IPv4业务服务器的 IP地址, 第二 DNS会将 IPv4业务服 务器的 IPv4地址和 IPv4业务服务器的 IPv6地址发送给该 UE,而该 UE会优 先根据 UE的 IPv6地址和 IPv4业务服务器的 IPv6地址向 IPv4业务服务器发 送 IPv6数据报文, 由于 IPv4业务服务器只支持 IPv4, 所以 UE发送给 IPv4 业务服务器的 IPv6数据报文要由 NAT64转换为 IPv4数据报文后再发送给 IPv4业务服务器, 而 IPv4业务服务器返回给该 UE的 IPv4数据报文也要由 NAT64转换为 IPv6数据报文后再发送给该 UE, 因此, UE与 IPv4业务服务 器之间传输的数据报文需要经过 NAT64的转换增加了 NAT64的网络负荷。
而本发明实施例中, 当 UE为 IPv4v6 UE时,服务网关向 UE发送的第一 DNS的 IP地址,而使 UE未获取到第二 DNS的 IP地址,所以 UE向第一 DNS 请求 IPv4业务服务器的 IP地址时, 获取到 IPv4业务服务器的 IPv4地址, 然 后 UE根据 UE的 IPv4地址和 IPv4业务服务器的 IPv4地址向 IPv4业务服务 器发送的是 IPv4数据报文, 所以不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷。
本发明实施例二提供的 IP地址分配方法, 通过服务网关接收 UE发送的 第一 PDN连接激活请求消息,第一 PDN连接激活请求消息包括用于指示 PDP 类型为 ipv4v6的 PDP类型指示信息, 然后根据该 PDP类型指示信息, 确定 UE的 IP地址和第一 DNS的 IP地址, 向 UE发送包括 UE的 IP地址和第一 DNS的 IP地址的第一 PDN连接激活响应消息, 以使 UE获取到第一 DNS的 IP地址而未获取到第二 DNS的 IP地址, 所以 UE获取的 IPv4业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了数据传输效率。
可选地, 若 UE为 IPv4 UE, 也即 UE只支持 IPv4, 那么 UE发送给服务 网关的第一 PDN连接激活请求消息中的 PDP类型指示信息用于指示 PDP类 型为 IPv4, 服务网关根据 PDP类型为 IPv4确定 UE为 IPv4 UE, 服务网关根 据 UE为 IPv4 UE,确定为 UE分配 UE的 IPv4地址,服务网关根据 UE为 IPv4 UE,确定为 UE分配的 DNS为第一 DNS和 /或第二 DNS,然后可以确定第一 DNS的 IP地址和 /或第二 DNS的 IP地址, 那么服务网关给 UE发送给第一 PDN连接激活响应消息中可以包括 UE的 IP地址、 第一 DNS的 IP地址和 / 或第二 DNS的 IP地址, 具体地, 第一 PDN连接激活响应消息中可以包括 UE的 IPv4地址、 第一 DNS的 IPv4地址和 /或第二 DNS的 IPv4地址。 不论 UE获取到的是第一 DNS的 IP地址还是第二 DNS的 IP地址, 由于 UE只支 持 IPv4,所以 UE发送给 IPv4业务服务器是 IPv4数据报文,不需要经过 NAT64 的转换。
可选地, 若 UE为 IPv6 UE, 也即 UE只支持 IPv6, 那么 UE发送给服务 网关的第一 PDN连接激活请求消息中的 PDP类型指示信息用于指示 PDP类 型为 IPv6, 服务网关根据 PDP类型为 IPv6确定 UE为 IPv6 UE, 服务网关根 据 UE为 IPv6 UE,确定为 UE分配 UE的 IPv6地址,服务网关根据 UE为 IPv6 UE, 确定为 UE分配的 DNS为第二 DNS, 然后可以确定第二 DNS的 IP地 址, 那么服务网关给 UE发送给第一 PDN连接激活响应消息中可以包括 UE 的 IP地址和第二 DNS的 IP地址, 具体地, 第一 PDN连接激活响应消息中 可以包括 UE的 IPv6地址和第二 DNS的 IPv6地址。 由于 UE只支持 IPv6, 若给 UE分配第一 DNS的 IP地址, UE从第一 DNS中获取 IPv4业务服务器 的 IPv4地址, 不能获取 IPv4业务服务器的 IPv6地址, 所以该 UE不能访问 IPv4业务服务器。 所以服务网关给 UE分配第二 DNS的 IP地址, 可以实现 IPv6 UE访问 IPv4业务服务器。
图 8为本发明 IP地址分配方法实施例三的流程图, 如图 8所示, 本实施 例的方法可以包括:
5301、 UE向服务网关发送包括延迟分配标识和 PDP类型指示信息的第 一 PDN连接激活请求消息。
5302、 服务网关接收 UE发送的包括延迟分配标识和 PDP类型指示信息 的第一 PDN连接激活请求消息。
本实施例中, UE为 IPv4v6 UE, 该 UE可以向服务网关发送包括延迟分 配标识和 PDP类型指示信息的第一 PDN连接激活请求消息, 该 PDP类型指 示信息用于指示 PDP类型为 IPv4v6,延迟分配标识用于指示服务网关延迟分 配 UE的 IPv4地址。
5303、 服务网关根据延迟分配标识和 PDP类型为 IPv4v6, 确定所述 UE 的 IPv6地址和所述第一 DNS的 IP地址。
5304、 服务网关向 UE发送包括 UE的 IPv6地址和第一 DNS的 IP地址 的第一 PDN连接激活响应消息。
本实施例中, 服务网关接收到 UE发送的上述第一 PDN连接激活请求消 息后, 可以根据第一 PDN连接激活请求消息中的 PDP类型为 IPv4v6确定该 UE为 IPv4v6 UE, 服务网关根据 UE为 IPv4v6 UE和延迟分配标记, 确定为 该 UE分配的 DNS为第一 DNS, 然后可以确定第一 DNS的 IP地址, 服务网 关还可以根据第一 PDN连接激活请求消息中的延迟分配标识, 确定为该 UE 分配 UE的 IPv6地址, UE的 IPv4地址可以延迟一段时间再分配给该 UE, 服务网关延迟给 UE分配 UE的 IPv4地址的过程与现有技术类似, 此处不再 赘述。 然后服务网关可以向 UE发送包括 UE的 IPv6地址和第一 DNS的 IP 地址的第一 PDN连接激活响应消息。
5305、 UE接收服务网关发送的包括 UE的 IPv6地址和第一 DNS的 IP 地址的第一 PDN连接激活响应消息。
本实施例中, UE可以接收服务网关发送的包括 UE的 IPv6地址和第一 DNS的 IP地址的第一 PDN连接激活响应消息, UE可以获取第一 DNS的 IP 地址, 而未获取第二 DNS的 IP地址, UE可以向第一 DNS获取 IPv4业务服 务器的 IPv4地址, 而获取不到 IPv4业务服务器的 IPv6。 所以当服务网关给 UE分配 IPv4地址之后, UE可以向 IPv4业务服务器发送 IPv4数据报文, 不 需要经过 NAT64的转换。
本发明实施例三提供的 IP地址分配方法, 通过 UE向服务网关发送包括 延迟分配标识和 PDP类型指示信息的第一 PDN连接激活请求消息; 服务网 关根据延迟分配标识和 PDP类型为 IPv4v6,确定 UE的 IPv6地址和第一 DNS 的 IP地址, 然后向 UE发送包括 UE的 IPv6地址和第一 DNS的 IP地址的第 一 PDN连接激活响应消息, 以使 UE获取到第一 DNS的 IP地址而未获取到 第二 DNS的 IP地址, 所以 UE获取的 IPv4业务服务器的 IP地址为 IPv4地 址, UE与 IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了数据传输效率。
图 9为本发明 IP地址分配方法实施例四的流程图, 如图 9所示, 本实施 例的方法可以包括:
S401、 UE向服务网关发送第一 PDN连接激活请求消息。
5402、 服务网关接收 UE发送的第一 PDN连接激活请求消息。
本实施例中, UE为 IPv4v6 UE, 第一 PDN连接激活请求消息中的 PDP 类型指示信息用于指示 PDP类型为 IPv4v6。
5403、服务网关根据 PDP类型指示信息和第一配置信息,确定 UE的 IPv4 地址和第一 DNS的 IP地址。
5404、 服务网关向 UE发送包括 UE的 IPv4地址、 第一 DNS的 IP地址 和第一返回码的第一 PDN连接激活响应消息。
本实施例中, 服务网关根据 PDP类型指示信息用于指示 PDP类型为 IPv4v6, 确定 UE为 IPv4v6 UE。服务网关可以根据管理网关的指示确定第一 配置信息, 也可以在服务网关中预先存储有第一配置信息, 该第一配置信息 用于指示服务网关给一个 PDN连接分配一种 IP版本地址并且同一个接入点 名称 (Access Point Name, 简称: APN)下激活两种 PDN连接 (也就是 IPv4 PDN连接和 IPv6 PDN连接)。服务网关可以根据 PDP类型指示信息为 IPv4v6 和第一配置信息, 确定在该 PDN连接下为 UE分配一种 IP版本地址, 本实 施例中, 服务网关确定为 UE分配 UE的 IPv4地址。 本实施例中, 服务网关 可以根据预设信息为 UE分配 UE的 IPv4地址, 预设信息用于指示服务网关 根据 PDP类型为 IPv4v6为 UE分配 UE的 IPv4地址, 或者, 服务网关可以 根据管理网元的指示为 UE分配 UE的 IPv4地址。 服务网关还可以根据 PDP 类型为 IPv4v6确定为 UE分配的 DNS为第一 DNS, 然后可以确定第一 DNS 的 IP地址。 在确定 UE的 IPv4地址和第一 DNS的 IP地址之后, 向 UE发送 包括 UE的 IPv4地址、第一 DNS的 IP地址和第一返回码的第一 PDN连接激 活响应消息, 第一返回码用于指示 UE在同一个 APN下激活两种 PDN连接, 所述两种 PDN连接的 IP版本不同, 以指示 UE下次发 PDN连接激活请求消 息时, PDP类型指示信息应该用于指示 PDP类型为 IPv6而不是 IPv4v6。 可 选地, 第一返回码为 New PDP type due to single address bearer only。
S405、 UE接收服务网关发送的包括 UE的 IPv4地址、 第一 DNS的 IP 地址和第一返回码的第一 PDN连接激活响应消息。
本实施例中, UE可以接收服务网关发送的包括 UE的 IPv4地址、 第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, UE可以获取 第一 DNS的 IP地址, 而未获取第二 DNS的 IP地址, UE可以向第一 DNS 获取 IPv4业务服务器的 IPv4地址, 而获取不到 IPv4业务服务器的 IPv6。 所 以 UE可以向 IPv4业务服务器发送 IPv4数据报文, 不需要经过 NAT64的转 换。
本发明实施例四提供的 IP地址分配方法, 通过 UE向服务网关发送包括 用于指示 PDP类型为 IPv4v6的 PDP类型指示信息的第一 PDN连接激活请求 消息; 服务网关根据 PDP类型为 IPv4v6和第一配置信息, 确定 UE的 IPv4 地址和第一 DNS的 IP地址,然后向 UE发送包括 UE的 IPv4地址、第一 DNS 的 IP地址和第一返回码的第一 PDN连接激活响应消息, 以使 UE获取到第 一 DNS的 IP地址而未获取到第二 DNS的 IP地址, 所以 UE获取的 IPv4业 务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据报 文不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了数 据传输效率。
图 10为本发明 IP地址分配方法实施例五的流程图, 如图 10所示, 本实 施例的方法可以包括:
S501、 UE向管理网元发送第一 PDN连接激活请求消息。 本实施例中, UE为 IPv4v6 UE, UE向服务网元发 PDN连接激活请求消 息需要通过管理网元转发。所以 UE向管理网元发送第一 PDN连接激活请求 消息, 第一 PDN连接激活请求消息中的 PDP类型指示信息用于指示 PDP类 型为 IPv4v6。
S502、 管理网元接收 UE发送的第一 PDN连接激活请求消息。
5503、 管理网元将第一 PDN连接激活请求消息中的 PDP类型指示信息 修改为用于指示 PDP类型为 IPv4, 并将 IPv4v6指示信息和第一标识信息添 加在第一 PDN连接激活请求消息, 获得第二 PDN连接激活请求消息。
5504、 管理网元向服务网元发送第二 PDN连接激活请求消息。
本实施例中,管理网元可以接收 UE发送的第一 PDN连接激活请求消息, 管理网元可以根据 UE的用户签约数据对第一 PDN连接激活请求消息中的 PDP类型指示信息进行修改, 该用户签约数据允许在一个 PDN连接下为 UE 分配 UE的 IPv4地址或 UE的 IPv6地址, 本实施例中, 管理网元可以根据用 户签约数据将第一 PDN连接激活请求消息中的 PDP类型指示信息修改为用 于指示 PDP类型为 IPv4, 然后将第一 PDN连接激活请求消息中的修改前的 PDP类型指示信息添加第一 PDN连接激活请求消息中, 也就是将 IPv4v6指 示信息添加第一 PDN连接激活请求消息,还可以将第一标识信息添加在第一 PDN连接激活请求消息中, 获得第二 PDN连接激活请求消息, IPv4v6指示 信息用于指示该 UE支持 IPv4v6, 第一标识信息用于标识所述 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN连接的 IP版本不同,也就是标识 服务网关允许 UE在同一个 APN下激活两种 PDN连接。 管理网元在获取第 二 PDN连接激活请求消息之后向服务网关发送该第二 PDN连接激活请求消 息。
5505、 服务网关接收管理网元发送的第二 PDN连接激活请求消息。
其中,第二 PDN连接激活请求消息为管理网元根据 UE发送的第一 PDN 连接激活请求消息发送的, 第二 PDN连接激活请求消息为管理网元将 PDP 类型指示信息修改为用于指示 PDP类型为 IPv4并将 IPv4v6指示信息和第一 标识信息添加在第一 PDN连接激活请求消息中获得的。
5506、服务网关根据修改后的 PDP类型指示信息、 IPv4v6指示信息和第 一标识信息, 确定第一配置信息。 本实施例中, 服务网关接收到第二 PDN连接激活请求消息后, 获取到第 二 PDN连接激活请求消息中的 PDP类型指示信息, 即修改后的 PDP类型指 示信息 (例如 IPv4) 、 IPv4v6指示信息和第一标识信息, 可以确定 UE本身 支持 IPv4v6, 但是在该 PDN连接下 UE只支持一种 IP版本, gp IPv4, 并且 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN连接的 IP版本不同, 从而服务网关可以确定第一配置信息, 第一配置信息用于指示服务网关给一 个 PDN连接分配一种 IP版本地址并且同一个称 APN下激活两种 PDN连接。
S507、 服务网关根据修改后的 PDP类型为 IPv4和第一配置信息, 确定 UE的 IPv4地址和第一 DNS的 IP地址。
本实施例中, 服务网关确定第一配置信息之后, 服务网关可以根据修改 后的 PDP类型为 IPv4 和第一配置信息, 为 UE分配 UE的 IPv4地址, 由于 服务网关获知 UE为 IPv4v6 UE, 并且在另一 PDN连接下有可能会给 UE分 配 UE的 IPv6地址, 所以服务网关给 UE分配 UE的 IPv4地址的情况下, 确 定给 UE分配的 DNS为第一 DNS, 然后可以确定第一 DNS的 IP地址。
S508、 服务网关向管理网元发送包括 UE的 IPv4地址和第一 DNS的 IP 地址的第二 PDN连接激活响应消息。
本实施例中, 服务网关在确定 UE的 IPv4地址和第一 DNS的 IP地址之 后, 服务网关向 UE返回该 UE的 IPv4地址和第一 DNS的 IP地址, 服务网 关与 UE之间传输的信息经过管理网元的转发, 所以, 服务网关向管理网元 发送包括 UE的 IPv4地址和第一 DNS的 IP地址的第二 PDN连接激活响应消 息。
5509、 管理网元接收服务网关发送的第二 PDN连接激活响应消息。
5510、管理网元将第一返回码添加在第二 PDN连接激活响应消息, 获得 第一 PDN连接激活响应消息。
S511、 管理网元向 UE发送第一 PDN连接激活响应消息。
本实施例中, 管理网元接收服务网关发送的第二 PDN连接激活响应消 息,由于管理网元对 UE发送的第一 PDN连接激活请求消息中的 PDP类型指 示信息进行了修改了, 所以管理网元接收到服务网关发送给 UE的第二 PDN 连接激活响应消息后, 将第一返回码添加在第二 PDN连接激活响应消息中, 获得第一 PDN连接激活响应消息, 并将第一 PDN连接激活响应消息发送给 UE。 可选地, 第一返回码为 New PDP type due to single address bearer only。 S512、 UE接收管理网元发送的包括 UE的 IPv4地址、 第一 DNS的 IP 地址和第一返回码的第一 PDN连接激活响应消息。
其中,第一 PDN连接激活响应消息为管理网元根据服务网关发送的第二 PDN连接激活响应消息发送的,第二 PDN连接激活响应消息包括 UE的 IPv4 地址和第一 DNS的 IP地址, 第一 PDN连接激活响应消息为管理网元将第一 返回码添加在第二 PDN连接激活响应消息获得的。
本实施例中, UE可以通过管理网元接收服务网关发送的包括 UE的 IPv4 地址和第一 DNS的 IP地址的第一 PDN连接激活响应消息, UE可以获取第 一 DNS的 IP地址, 而未获取第二 DNS的 IP地址, UE可以向第一 DNS获 取 IPv4业务服务器的 IPv4地址, 而获取不到 IPv4业务服务器的 IPv6。 所以 UE可以向 IPv4业务服务器发送 IPv4数据报文,不需要经过 NAT64的转换。
本发明实施例五提供的 IP地址分配方法, 通过 UE向管理网元发送第一 PDN连接激活请求消息; 管理网元将第一 PDN连接激活请求消息中的 PDP 类型指示信息修改为用于指示 PDP类型为 IPv4, 并将 IPv4v6指示信息和第 一标识信息添加在第一 PDN连接激活请求消息, 获得第二 PDN连接激活请 求消息, 并向服务网元发送第二 PDN连接激活请求消息; 服务网关根据修改 后的 PDP类型指示信息、 IPv4v6指示信息和第一标识信息, 确定第一配置信 息, 根据修改后的 PDP类型为 IPv4和第一配置信息, 确定 UE的 IPv4地址 和第一 DNS的 IP地址,然后向管理网元发送包括 UE的 IPv4地址和第一 DNS 的 IP地址的第二 PDN连接激活响应消息; 管理网元将第一返回码添加在第 二 PDN连接激活响应消息, 获得第一 PDN连接激活响应消息, 然后向 UE 发送包括 UE的 IPv4地址、第一 DNS的 IP地址和第一返回码的第一 PDN连 接激活响应消息, 以使 UE获取到第一 DNS的 IP地址而未获取到第二 DNS 的 IP地址, 所以 UE获取的 IPv4业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据报文不需要经过 NAT64的转换,从而减少了 NAT64的网络负荷, 还提高了数据传输效率。
图 11为本发明 IP地址分配方法实施例六的流程图, 如图 11所示, 本实 施例的方法在图 9或图 10所示方法实施例的基础上, 本实施例的方法还 可以包括: S601、 UE根据第一返回码和 UE的 IPv4地址, 确定第三 PDN连接激活 请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv6的 PDP类型指 不信息。
5602、 UE向服务网关发送第三 PDN连接激活请求消息。
本实施例中, UE在接收到第一 PDN连接激活响应消息之后, 若 UE还 需要再激活一个 PDN连接, 那么 UE可以根据第一 PDN连接激活响应消息 中的第一返回码和服务网关为 UE分配的 UE的 IPv4地址, 可以确定发送给 服务网关的下一个 PDN激活请求消息 (也即第三 PDN连接激活请求消息) 中的 PDP类型指示信息用于指示 PDP类型为 IPv6, 而不是用于指示 PDP类 型为 IPv4v6。然后 UE可以向服务网关发送第三 PDN连接激活请求消息, 该 第三 PDN连接激活请求消息包括用于指示 PDP类型为 IPv6的 PDP类型指示 信息。
5603、 服务网关接收 UE根据第一返回码和 UE的 IPv4地址发送的第三 PDN连接激活请求消息。
S604、 服务网关确定 UE已激活 IPv4的 PDN连接。
本实施例中, 服务网关接收 UE发送的第三 PDN连接激活请求消息, 可 以确定第三 PDN连接激活请求消息中的用于指示 PDP类型为 IPv6的 PDP类 型指示信息。然后服务网关判断该 UE是否已激活 IPv4的 PDN, 若服务网关 确定该 UE已激活 IPv4的 PDN连接, 则执行 S605。 若服务网关确定 UE未 激活 IPv4的 PDN连接, 则可以确定 UE为 IPv6 UE, 那么服务网关给 UE分 UE的 IPv6地址和第二 DNS的 IP地址。
S605、 服务网关根据第三 PDN连接激活请求消息中的 PDP类型指示信 息和第一配置信息, 确定 UE的 IPv6地址和第一 DNS的 IP地址。
本实施例中, 服务网关确定该 UE已激活 IPv4 PDN连接, 并且根据 PDP 类为 IPv6, 以及允许给一个 PDN连接分配一种 IP版本地址并且同一个 APN 下激活两种 PDN连接,所述两种 PDN连接的 IP版本不同,确定 UE分配 UE 的 IPv6地址。由于 UE已激活 IPv4 PDN连接,那么可以确定 UE为 IPv4v6 UE, 服务网关可以确定为 UE分配的 DNS为第一 DNS, 然后可以确定第一 DNS 的 IP地址。
S606、 服务网关向 UE发送第三 PDN连接激活响应消息。 本实施例中, 服务网关给 UE分配 UE的 IPv6地址和第一 DNS的 IP地 址之后, 向 UE发送第三 PDN连接激活响应消息, 该第三 PDN连接激活响 应消息包括 UE的 IPv6地址和第一 DNS的 IP地址。
S607、 UE接收服务网关发送的第三 PDN连接激活响应消息。
本实施例中, UE可以接收服务网关发送的包括 UE的 IPv6地址和第一
DNS的 IP地址的第三 PDN连接激活响应消息, UE可以获取第一 DNS的 IP 地址, 而未获取第二 DNS的 IP地址, UE可以向第一 DNS获取 IPv4业务服 务器的 IPv4地址,而获取不到 IPv4业务服务器的 IPv6。所以 UE可以向 IPv4 业务服务器发送 IPv4数据报文, 不需要经过 NAT64的转换。
可选地, UE与服务网关之间传输的第三 PDN连接激活请求消息和第三
PDN连接激活响应消息, 可以经过管理网元的转发, 但管理网元未对第三 PDN连接激活请求消息和第三 PDN连接激活响应消息做任何改变。
本发明实施例六提供的 IP地址分配方法, 进一步地, 通过 UE根据第一 返回码和 UE的 IPv4地址, 确定第三 PDN连接激活请求消息中的 PDP类型 指示信息为用于指示 PDP类型为 IPv6的 PDP类型指示信息, 向服务网关发 送第三 PDN连接激活请求消息;服务网关确定 UE已激活 IPv4的 PDN连接, 然后根据第三 PDN连接激活请求消息中的 PDP类型指示信息和第一配置信 息,确定 UE的 IPv6地址和第一 DNS的 IP地址,向 UE发送包括 UE的 IPv6 地址和第一 DNS的 IP地址的第三 PDN连接激活响应消息, 以使 UE获取到 第一 DNS的 IP地址而未获取到第二 DNS的 IP地址, 所以 UE获取的 IPv4 业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据 报文不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了 数据传输效率。
图 12为本发明 IP地址分配方法实施例七的流程图, 如图 12所示, 本实 施例的方法可以包括:
5701、 UE向服务网关发送第一 PDN连接激活请求消息。
第一 PDN连接激活请求消息包括 PDP类型指示信息, 该 PDP类型指示 信息用于指示 PDP类型为 IPv4v6。
5702、 服务网关接收 UE发送的第一 PDN连接激活请求消息。
S703、服务网关根据 PDP类型指示信息和第一配置信息,确定 UE的 IPv6 地址和第一 DNS的 IP地址。
其中, 第一配置信息用于指示服务网关给一个 PDN连接分配一种 IP版 本地址并且同一个 APN下激活两种 PDN连接(也就是 IPv4 PDN连接和 IPv6 PDN连接) 。
S704、 服务网关向 UE发送包括 UE的 IPv6地址、 第一 DNS的 IP地址 和第一返回码的第一 PDN连接激活响应消息。
S705、 UE接收服务网关发送的包括 UE的 IPv6地址、 第一 DNS的 IP 地址和第一返回码的第一 PDN连接激活响应消息。
本实施例中, S701-S705的具体实现过程与本发明方法实施例四中的 S401-S405的具体实现过程类似,详细可以参见本发明上述方法实施例中的相 关记载, 此处不再赘述。
本发明实施例七提供的 IP地址分配方法,通过向 UE发送包括 UE的 IPv6 地址和第一 DNS的 IP地址的第一 PDN连接激活响应消息, 以使 UE获取到 第一 DNS的 IP地址而未获取到第二 DNS的 IP地址, 所以 UE获取的 IPv4 业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据 报文不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了 数据传输效率。
图 13为本发明 IP地址分配方法实施例八的流程图, 如图 13所示, 本实 施例的方法可以包括:
S801、 UE向管理网元发送第一 PDN连接激活请求消息。
5802、 管理网元接收 UE发送的第一 PDN连接激活请求消息。
5803、 管理网元将第一 PDN连接激活请求消息中的 PDP类型指示信息 修改为用于指示 PDP类型为 IPv6, 并将 IPv4v6指示信息和第一标识信息添 加在第一 PDN连接激活请求消息, 获得第二 PDN连接激活请求消息。
S804、 管理网元向服务网元发送第二 PDN连接激活请求消息。
S805、 服务网关接收管理网元发送的第二 PDN连接激活请求消息。 其中,第二 PDN连接激活请求消息为管理网元根据 UE发送的第一 PDN 连接激活请求消息发送的, 第二 PDN连接激活请求消息为管理网元将 PDP 类型指示信息修改为用于指示 PDP类型为 IPv6并将 IPv4v6指示信息和第一 标识信息添加在第一 PDN连接激活请求消息中获得的。 5806、服务网关根据修改后的 PDP类型指示信息、 IPv4v6指示信息和第 一标识信息, 确定第一配置信息。
5807、 服务网关根据修改后的 PDP类型为 IPv6和第一配置信息, 确定 UE的 IPv6地址和第一 DNS的 IP地址。
S808、 服务网关向管理网元发送包括 UE的 IPv6地址和第一 DNS的 IP 地址的第二 PDN连接激活响应消息。
5809、 管理网元接收服务网关发送的第二 PDN连接激活响应消息。
5810、管理网元将第一返回码添加在第二 PDN连接激活响应消息, 获得 第一 PDN连接激活响应消息。
S811、 管理网元向 UE发送第一 PDN连接激活响应消息。
S812、 UE接收管理网元发送的包括 UE的 IPv6地址、 第一 DNS的 IP 地址和第一返回码的第一 PDN连接激活响应消息。
其中,第一 PDN连接激活响应消息为管理网元根据服务网关发送的第二 PDN连接激活响应消息发送的,第二 PDN连接激活响应消息包括 UE的 IPv6 地址和第一 DNS的 IP地址, 第一 PDN连接激活响应消息为管理网元将第一 返回码添加在第二 PDN连接激活响应消息获得的。
本实施例中, S801-S812的具体实现过程与本发明方法实施例五中的 S501-S512的具体实现过程类似,详细可以参见本发明上述方法实施例中的相 关记载, 此处不再赘述。
本发明实施例八提供的 IP地址分配方法,通过向 UE发送包括 UE的 IPv6 地址和第一 DNS的 IP地址的第一 PDN连接激活响应消息, 以使 UE获取到 第一 DNS的 IP地址而未获取到第二 DNS的 IP地址, 所以 UE获取的 IPv4 业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间传输的数据 报文不需要经过 NAT64的转换, 从而减少了 NAT64的网络负荷, 还提高了 数据传输效率。
图 14为本发明 IP地址分配方法实施例九的流程图, 如图 14所示, 本实 施例的方法在图 12或图 13所示方法实施例的基础上, 本实施例的方法还 可以包括:
S901、 UE根据第一返回码和 UE的 IPv6地址, 确定第三 PDN连接激活 请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv4的 PDP类型指 不信息。
5902、 UE向服务网关发送第三 PDN连接激活请求消息。
5903、 服务网关接收 UE根据第一返回码和 UE的 IPv6地址发送的第三 PDN连接激活请求消息。
S904、 服务网关确定 UE已激活 IPv6的 PDN连接。
本实施例中, 服务网关接收 UE发送的第三 PDN连接激活请求消息, 可 以确定第三 PDN连接激活请求消息中的用于指示 PDP类型为 IPv4的 PDP类 型指示信息。然后服务网关判断该 UE是否已激活 IPv6的 PDN, 若服务网关 确定该 UE已激活 IPv6的 PDN连接, 则执行 S905。 若服务网关确定 UE未 激活 IPv6的 PDN连接, 则可以确定 UE为 IPv4 UE, 那么服务网关给 UE分 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
5905、 服务网关根据第三 PDN连接激活请求消息中的 PDP类型指示信 息和第一配置信息, 确定 UE的 IPv4地址和第一 DNS的 IP地址。
5906、 服务网关向 UE发送第三 PDN连接激活响应消息。
S907、 UE接收服务网关发送的第三 PDN连接激活响应消息。
本实施例中, S901-S907的具体实现过程与本发明方法实施例四中的
S601-S607的具体实现过程类似,详细可以参见本发明上述方法实施例中的相 关记载, 此处不再赘述。
本发明实施例九提供的 IP地址分配方法, 进一步地, 通过向 UE发送包 括 UE的 IPv4地址和第一 DNS的 IP地址的第三 PDN连接激活响应消息,以 使 UE获取到第一 DNS的 IP地址而未获取到第二 DNS的 IP地址, 所以 UE 获取的 IPv4业务服务器的 IP地址为 IPv4地址, UE与 IPv4业务服务器之间 传输的数据报文不需要经过 NAT64的转换,从而减少了 NAT64的网络负荷, 还提高了数据传输效率。
图 15为本发明 IP地址分配方法实施例十的流程图, 如图 15所示, 本实 施例的方法可以包括:
51001、 UE向服务网关发送第一 PDN连接激活请求消息。
51002、 UE接收服务网关发送的第一 PDN连接激活响应消息。
本实施例中, UE可以向服务网关发送第一 PDN连接激活请求消息, 其 中, 第一 PDN连接激活请求消息中包括 PDP类型指示信息, PDP类型指示 信息用于指示 PDP类型, 本实施例中的 UE为 IPv4v6 UE, 所以 PDP类型指 示信息用于指示 PDP类型为 IPv4v6。 服务网关接收到 UE发送的第一 PDN 连接激活请求消息后,解析第一 PDP连接激活请求消息中的 PDP类型,也即 根据第一 PDP连接激活请求消息中的 PDP类型指示信息确定 PDP类型为 IPv4v6。
服务网关可以根据 PDP类型为 IPv4v6, 确定 UE为 IPv4v6 UE, 服务网 关可以将 IPv4v6 UE变更为只支持 IPv4的 UE,即服务网关为 UE分配 UE的 IPv4地址,根据只为 UE分配 UE的 IPv4地址,确定 UE实际上只支持 IPv4, 那么可以确定为 UE分配的 DNS为第一 DNS和 /或第二 DNS, 然后可以确定 第一 DNS的 IP地址和 /或第二 DNS的 IP地址,再通过第一 PDN连接激活响 应消息向 UE发送 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址, 从而 UE可以接收服务网关发送的第一 PDN连接激活响应消息, 由 于 UE只获取到 UE的 IPv4地址,所以 UE只会与 IPv4业务服务器发送 IPv4 业务数据报文, 不需要经过 NAT64的转换。
本发明实施例十提供的 IP地址分配方法,通过向服务网关发送第一 PDN 连接激活请求消息, 接收服务网关发送的 UE的 IPv4地址、 第一 DNS的 IP 地址和 /或第二 DNS的 IP地址; 由于 UE只获取到 UE的 IPv4地址, UE与 IPv4业务服务器之间传输 IPv4数据报文, 不需要经过 NAT64的转换, 从而 减少了 NAT64的网络负荷, 还提高了数据传输效率。
图 16为本发明 IP地址分配方法实施例十一的流程图, 如图 16所示, 本 实施例的方法可以包括:
51101、 服务网关接收 UE发送的第一 PDN连接激活请求消息。
51102、 服务网关根据 PDP类型指示信息, 确定 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
S1103、 服务网关向 UE发送第一 PDN连接激活响应消息。
本实施例中,服务网关可以接收 UE发送的第一 PDN连接激活请求消息, 其中, 第一 PDN连接激活请求消息中包括 PDP类型指示信息, PDP类型指 示信息用于指示 PDP类型, 本实施例中的 UE为 IPv4v6 UE, 所以 PDP类型 指示信息用于指示 PDP类型为 IPv4v6。 服务网关可以解析第一 PDP连接激 活请求消息中的 PDP类型, 也即根据第一 PDP连接激活请求消息中的 PDP 类型指示信息确定 PDP类型为 IPv4v6。
服务网关可以根据 PDP类型为 IPv4v6, 确定 UE为 IPv4v6 UE, 服务网 关可以将 IPv4v6 UE变更为只支持 IPv4的 UE,即服务网关为 UE分配 UE的 IPv4地址,根据只为 UE分配 UE的 IPv4地址,确定 UE实际上只支持 IPv4, 那么可以确定为 UE分配的 DNS为第一 DNS和 /或第二 DNS, 然后可以确定 第一 DNS的 IP地址和 /或第二 DNS的 IP地址,再通过第一 PDN连接激活响 应消息向 UE发送 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址, 从而 UE可以接收服务网关发送的第一 PDN连接激活响应消息, 由 于 UE只获取到 UE的 IPv4地址,所以 UE只会与 IPv4业务服务器发送 IPv4 业务数据报文, 不需要经过 NAT64的转换。
本发明实施例十一提供的 IP地址分配方法, 通过服务网关接收 UE发送 的第一 PDN连接激活请求消息, 根据 PDP类型指示信息, 确定 UE的 IPv4 地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址, 向 UE发送包括 UE 的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连 接激活响应消息; 由于 UE只获取到 UE的 IPv4地址, UE与 IPv4业务服务 器之间传输 IPv4数据报文, 不需要经过 NAT64的转换, 从而减少了 NAT64 的网络负荷, 还提高了数据传输效率。
图 17为本发明 IP地址分配方法实施例十二的流程图, 如图 17所示, 本 实施例的方法可以包括:
S1201、 UE向服务网关发送第一 PDN连接激活请求消息。
51202、 服务网关接收 UE发送的第一 PDN连接激活请求消息。
本实施例中, UE为 IPv4v6 UE, 第一 PDN连接激活请求消息中的 PDP 类型指示信息用于指示 PDP类型为 IPv4v6。
51203、 服务网关根据 PDP类型指示信息和第二配置信息, 确定 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
51204、 服务网关向 UE发送包括 UE的 IPv4地址、 第二返回码、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活响应消息。
本实施例中, 服务网关根据 PDP类型指示信息用于指示 PDP类型为 IPv4v6, 确定 UE为 IPv4v6 UE。服务网关可以根据管理网关的指示确定第二 配置信息, 也可以在服务网关中预先存储有第二配置信息, 该第二配置信息 用于指示服务网关给一个 PDN连接分配一种 IP版本地址并且同一个 APN下 激活一种 IP版本的 PDN连接 (也就是 IPv4 PDN连接或 IPv6 PDN连接 ) 。 服务网关可以根据 PDP类型指示信息为 IPv4v6和第二配置信息, 确定在该 PDN连接下为 UE分配一种 IP版本地址, 本实施例中, 服务网关确定为 UE 分配 UE的 IPv4地址。 本实施例中, 服务网关可以根据预设信息为 UE分配 UE的 IPv4地址, 预设信息用于指示服务网关根据 PDP类型为 IPv4v6为 UE 分配 UE的 IPv4地址, 或者, 服务网关可以根据管理网元的指示为 UE分配 UE的 IPv4地址。 服务网关还可以根据 IPv4v6 UE变更为 IPv4 UE, 确定为 UE分配的 DNS为第一 DNS和 /或第二 DNS, 然后可以确定第一 DNS的 IP 地址和 /或第二 DNS的 IP地址。 在确定 UE的 IPv4地址和第一 DNS的 IP地 址之后, 向 UE发送包括 UE的 IPv4地址、 第一 DNS的 IP地址和第二返回 码的第一 PDN连接激活响应消息, 第一返回码用于指示 UE在同一个 APN 下激活一种 IP版本的 PDN连接, 以指示 UE下次发 PDN连接激活请求消息 时, PDP类型指示信息应该用于指示 PDP类型为 IPv4而不是 IPv4v6。 可选 地, 第一返回石马为 New PDP type due to network preference。
S1205、 UE接收服务网关发送的包括 UE的 IPv4地址、 第二返回码、 第 一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活响应消息。
本实施例中, UE可以接收服务网关发送的包括 UE的 IPv4地址、 第二 返回码、第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活 响应消息。 UE若需要激活再一个 PDN连接时, UE可以根据第一 PDN连接 激活响应消息中的第二返回码和 UE的 IPv4地址, 可以确定发送给服务网关 的下一个 PDN激活请求消息中的 PDP类型指示信息用于指示 PDP类型为 IPv4, 而不是用于指示 PDP类型为 IPv4v6, 那么服务网关根据 PDP类型为 IPv4确定 UE为 IPv4 UE, 从而为 UE分配 UE的 IPv4地址、 第一 DNS的 IP 地址和 /或第二 DNS的 IP地址。 所以 UE只获取到 UE的 IPv4地址, 而未获 取 UE的 IPv6地址, UE只可以向 IPv4业务服务器发送 IPv4数据报文, 不需 要经过 NAT64的转换。
本发明实施例十二提供的 IP地址分配方法, 通过 UE向服务网关发送包 括用于指示 PDP类型为 IPv4v6的 PDP类型指示信息的第一 PDN连接激活请 求消息; 服务网关根据 PDP类型指示信息和第二配置信息, 确定 UE的 IPv4 地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址, 然后向 UE发送包括 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN 连接激活响应消息。 由于 UE只获取到 UE的 IPv4地址, UE与 IPv4业务服 务器之间传输 IPv4数据报文,不需要经过 NAT64的转换,从而减少了 NAT64 的网络负荷, 还提高了数据传输效率。
可选地, UE向服务网关发送第一 PDN连接激活请求消息,第一 PDN连 接激活请求消息中的 PDP类型指示信息用于指示 PDP类型为 IPv4v6, 服务 网关根据 PDP类型指示信息和第二配置信息, 确定 UE的 IPv6地址和第二 DNS的 IP地址,服务网关向 UE发送包括 UE的 IPv6地址、第二返回码和第 二 DNS的 IP地址的第一 PDN连接激活响应消息。 UE若需要激活再一个 PDN 连接时, UE可以根据第一 PDN连接激活响应消息中的第二返回码和 UE的 IPv6地址, 可以确定发送给服务网关的下一个 PDN激活请求消息中的 PDP 类型指示信息用于指示 PDP类型为 IPv6,而不是用于指示 PDP类型为 IPv4v6, 那么服务网关根据 PDP类型为 IPv6确定 UE为 IPv6 UE,从而为 UE分配 UE 的 IPv6地址和第二 DNS的 IP地址。所以 UE只获取到 UE的 IPv6地址, UE 只可以向 IPv4业务服务器发送 IPv6数据报文。
图 18为本发明 IP地址分配方法实施例十三的流程图, 如图 18所示, 本 实施例的方法可以包括:
51301、 UE向管理网元发送第一 PDN连接激活请求消息。
本实施例中, UE为 IPv4v6 UE, UE向服务网元发 PDN连接激活请求消 息需要通过管理网元转发。所以 UE向管理网元发送第一 PDN连接激活请求 消息, 第一 PDN连接激活请求消息中的 PDP类型指示信息用于指示 PDP类 型为 IPv4v6。
51302、 管理网元接收 UE发送的第一 PDN连接激活请求消息。
S1303、管理网元将第一 PDN连接激活请求消息中的 PDP类型指示信息 修改为用于指示 PDP类型为 IPv4, 并将 IPv4v6指示信息和第二标识信息添 加在第一 PDN连接激活请求消息, 获得第二 PDN连接激活请求消息。
S1304、 管理网元向服务网元发送第二 PDN连接激活请求消息。
本实施例中,管理网元可以接收 UE发送的第一 PDN连接激活请求消息, 管理网元可以根据 UE的用户签约数据对第一 PDN连接激活请求消息中的 PDP类型指示信息进行修改, 该用户签约数据允许在所有的 PDN连接下为 UE分配 UE的 IPv4地址或 UE的 IPv6地址, 本实施例中, 若用户签约数据 允许在所有的 PDN连接下为 UE分配 UE的 IPv4地址,管理网元可以根据用 户签约数据将第一 PDN连接激活请求消息中的 PDP类型指示信息修改为用 于指示 PDP类型为 IPv4, 然后将第一 PDN连接激活请求消息中的修改前的 PDP类型指示信息添加第一 PDN连接激活请求消息中, 也就是将 IPv4v6指 示信息添加第一 PDN连接激活请求消息,还可以将第二标识信息添加在第一 PDN连接激活请求消息中, 获得第二 PDN连接激活请求消息, IPv4v6指示 信息用于指示该 UE支持 IPv4v6, 第二标识信息用于标识所述 UE在同一个 APN下激活一种 IP版本的 PDN连接。管理网元在获取第二 PDN连接激活请 求消息之后向服务网关发送该第二 PDN连接激活请求消息。
51305、 服务网关接收管理网元发送的第二 PDN连接激活请求消息。 其中,第二 PDN连接激活请求消息为管理网元根据 UE发送的第一 PDN 连接激活请求消息发送的, 第二 PDN连接激活请求消息为管理网元将 PDP 类型指示信息修改为用于指示 PDP类型为 IPv4并将 IPv4v6指示信息和第二 标识信息添加在第一 PDN连接激活请求消息中获得的。
51306、 服务网关根据修改后的 PDP类型指示信息、 IPv4v6指示信息和 第二标识信息, 确定第二配置信息。
本实施例中, 服务网关接收到第二 PDN连接激活请求消息后, 获取到第 二 PDN连接激活请求消息中的 PDP类型指示信息, 即修改后的 PDP类型指 示信息 (本实施例中为 IPv4) 、 IPv4v6指示信息和第二标识信息, 可以确定 UE本身支持 IPv4v6,但是在该 PDN连接下 UE只支持一种 IP版本,即 IPv4, 并且 UE在同一个 APN下激活一种 IP版本的 PDN连接, 从而服务网关可以 确定第二配置信息,第二配置信息用于指示服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个称 APN下激活一种 IP版本的 PDN连接。
51307、 服务网关根据修改后的 PDP类型为 IPv4和第二配置信息, 确定 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
本实施例中, 服务网关确定第一配置信息之后, 服务网关可以根据修改 后的 PDP类型为 IPv4 和第二配置信息, 为 UE分配 UE的 IPv4地址, 由于 服务网关获知 UE为 IPv4v6 UE,并且在另一 PDN连接下仍然给 UE分配 UE 的 IPv6地址, 所以服务网关给 UE分配 UE的 IPv4地址的情况下, 确定给 UE分配的 DNS为第一 DNS和 /或第二 DNS, 然后可以确定第一 DNS的 IP 地址和 /或第二 DNS的 IP地址。
51308、 服务网关向管理网元发送包括 UE的 IPv4地址、 第一 DNS的 IP 地址和 /或第二 DNS的 IP地址的第二 PDN连接激活响应消息。
本实施例中, 服务网关在确定 UE的 IPv4地址、 第一 DNS的 IP地址和 / 或第二 DNS的 IP地址之后, 服务网关向 UE返回该 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址,服务网关与 UE之间传输的信息经 过管理网元的转发, 所以, 服务网关向管理网元发送包括 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第二 PDN连接激活响应消息。
51309、 管理网元接收服务网关发送的第二 PDN连接激活响应消息。
51310、 管理网元将第二返回码添加在第二 PDN连接激活响应消息, 获 得第一 PDN连接激活响应消息。
51311、 管理网元向 UE发送第一 PDN连接激活响应消息。
本实施例中, 管理网元接收服务网关发送的第二 PDN连接激活响应消 息,由于管理网元对 UE发送的第一 PDN连接激活请求消息中的 PDP类型指 示信息进行了修改了, 所以管理网元接收到服务网关发送给 UE的第二 PDN 连接激活响应消息后, 将第二返回码添加在第二 PDN连接激活响应消息中, 获得第一 PDN连接激活响应消息, 并将第一 PDN连接激活响应消息发送给 UE。 可选地, 第二返回码为 New PDP type due to network preference。
51312、 UE接收管理网元发送的包括 UE的 IPv4地址、 第二返回码、 第 一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活响应消息。
其中,第一 PDN连接激活响应消息为管理网元根据服务网关发送的第二 PDN连接激活响应消息发送的,第二 PDN连接激活响应消息包括 UE的 IPv4 地址、第一 DNS的 IP地址和 /或第二 DNS的 IP地址, 第一 PDN连接激活响 应消息为管理网元将第二返回码添加在第二 PDN连接激活响应消息获得的。
本发明实施例十三提供的 IP地址分配方法, 通过 UE向管理网元发送第 一 PDN连接激活请求消息;管理网元将第一 PDN连接激活请求消息中的 PDP 类型指示信息修改为用于指示 PDP类型为 IPv4, 并将 IPv4v6指示信息和第 二标识信息添加在第一 PDN连接激活请求消息, 获得第二 PDN连接激活请 求消息, 并向服务网元发送第二 PDN连接激活请求消息; 服务网关根据修改 后的 PDP类型指示信息、 IPv4v6指示信息和第二标识信息, 确定第二配置信 息, 根据修改后的 PDP类型为 IPv4和第二配置信息, 确定 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址,然后向管理网元发送包括 UE 的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第二 PDN连 接激活响应消息; 管理网元将第二返回码添加在第二 PDN连接激活响应消 息,获得第一 PDN连接激活响应消息,然后向 UE发送包括 UE的 IPv4地址、 第二返回码、第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接 激活响应消息, 由于 UE只获取到 UE的 IPv4地址, UE与 IPv4业务服务器 之间传输 IPv4数据报文, 不需要经过 NAT64的转换, 从而减少了 NAT64的 网络负荷, 还提高了数据传输效率。
可选地, UE向管理网元发送第一 PDN连接激活请求消息,第一 PDN连 接激活请求消息中的 PDP类型指示信息用于指示 PDP类型为 IPv4v6; 管理 网元将第一 PDN连接激活请求消息中的 PDP类型指示信息修改为用于指示 PDP类型为 IPv6, 并将 IPv4v6指示信息和第二标识信息添加在第一 PDN连 接激活请求消息, 获得第二 PDN连接激活请求消息, 向服务网元发送第二 PDN连接激活请求消息; 服务网关根据修改后的 PDP类型指示信息、 IPv4v6 指示信息和第一标识信息,确定第一配置信息;根据修改后的 PDP类型为 IPv4 和第一配置信息,确定 UE的 IPv4地址、第一 DNS的 IP地址和 /或第二 DNS 的 IP地址; 向管理网元发送包括 UE的 IPv6地址和第一 DNS的 IP地址的第 二 PDN连接激活响应消息, 管理网元将第二返回码添加在第二 PDN连接激 活响应消息, 获得第一 PDN连接激活响应消息, 向 UE发送第一 PDN连接 激活响应消息。
可选地, 本发明上述各方法实施例中, 若服务网关中未配置有第一 DNS 的 IP地址和第二 DNS的 IP地址, 那么服务网关可以向外部的 (external)认 证授权计费 (Authentication Authorization Accounting, 简称: AAA) 实体或 动态主机配置协议 (Dynamic Host Configuration Protocol, 简称: DHCP)月艮务 器获取第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权 利 要 求 书
1、 一种用户设备 UE, 其特征在于, 包括:
发送单元,用于向服务网关发送第一分组数据网络 PDN连接激活请求消 息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信息, 所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4v6;
接收单元, 用于接收所述服务网关发送的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址和第一域名解析服 务器 DNS的 IP地址,所述第一 DNS中存储有互联网协议版本 4 IPv4业务服 务器的 IPv4地址但不存储所述 IPv4业务服务器的互联网协议版本 6 IPv6地 址, 所述 IPv4业务服务器的 IPv6地址为 4 to 6地址。
2、 根据权利要求 1所述的 UE, 其特征在于, 所述发送单元具体用于向 所述服务网关发送包括延迟分配标识和所述 PDP类型指示信息的第一 PDN 连接激活请求消息, 所述延迟分配标识用于指示所述服务网关延迟分配所述 UE的 IPv4地址;
所述接收单元具体用于接收服务网关发送的包括所述 UE的 IPv6地址和 所述第一 DNS的 IP地址的第一 PDN连接激活响应消息。
3、 根据权利要求 1所述的 UE, 其特征在于, 所述接收单元具体用于接 收所述服务网关发送的包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址 和第一返回码的第一 PDN连接激活响应消息,所述第一返回码用于指示所述 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN连接的 IP版本不同。
4、 根据权利要求 3所述的 UE, 其特征在于, 所述发送单元具体用于向 管理网元发送第一 PDN连接激活请求消息, 以使所述管理网元根据所述第一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活请求消息, 所述 第二 PDN连接激活请求消息为所述管理网元将所述 PDP类型指示信息修改 为用于指示 PDP类型为 IPv4并将 IPv4v6指示信息和第一标识信息添加在所 述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示信息用于指示所 述 UE支持 IPv4v6, 所述第一标识信息用于标识所述 UE在同一个 APN下激 活所述两种 PDN连接;
所述接收单元具体用于接收所述管理网元发送的包括所述 UE的 IPv4地 址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所述管理网元根据所述服务网关发送的 第二 PDN连接激活响应消息发送的, 所述第二 PDN连接激活响应消息包括 所述 UE的 IPv4地址和所述第一 DNS的 IP地址,所述第一 PDN连接激活响 应消息为所述管理网元将所述第一返回码添加在所述第二 PDN连接激活响 应消息获得的。
5、 根据权利要求 3或 4所述的 UE, 其特征在于, 还包括:
确定单元, 用于根据所述第一返回码和所述 UE的 IPv4地址, 确定第三 PDN连接激活请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv6 的 PDP类型指示信息;
所述发送单元还用于向所述服务网关发送第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于指示 PDP类型为 IPv6的 PDP 类型指示信息;
所述接收单元还用于接收所述服务网关发送的第三 PDN连接激活响应 消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv6地址和所述第 一 DNS的 IP地址。
6、 根据权利要求 1所述的 UE, 其特征在于, 所述接收单元具体用于接 收所述服务网关发送的包括所述 UE的 IPv6地址、 所述第一 DNS的 IP地址 和第一返回码的第一 PDN连接激活响应消息,所述第一返回码用于指示所述 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN连接的 IP版本不同。
7、 根据权利要求 6所述的 UE, 其特征在于, 所述发送单元具体用于向 管理网元发送第一 PDN连接激活请求消息, 以使所述管理网元根据所述第一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活请求消息, 所述 第二 PDN连接激活请求消息为所述管理网元将所述 PDP类型指示信息修改 为用于指示 PDP类型为 IPv6并将 IPv4v6指示信息和第一标识信息添加在所 述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示信息用于指示所 述 UE支持 IPv4v6, 所述第一标识信息用于标识所述 UE在同一个 APN下激 活所述两种 PDN连接;
所述接收单元具体用于接收所述管理网元发送的包括所述 UE的 IPv6地 址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所述管理网元根据所述服务网关发送的 第二 PDN连接激活响应消息发送的, 所述第二 PDN连接激活响应消息包括 所述 UE的 IPv6地址和所述第一 DNS的 IP地址,所述第一 PDN连接激活响 应消息为所述管理网元将所述第一返回码添加在所述第二 PDN连接激活响 应消息获得的。
8、 根据权利要求 6或 7所述的 UE, 其特征在于, 还包括:
确定单元, 用于根据所述第一返回码和所述 UE的 IPv6地址, 确定第三 PDN连接激活请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv4 的 PDP类型指示信息;
所述发送单元还用于向所述服务网关发送第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于指示 PDP类型为 IPv4的 PDP 类型指示信息;
所述接收单元还用于接收所述服务网关发送的第三 PDN连接激活响应 消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv4地址和所述第 一 DNS的 IP地址。
9、 根据权利要求 1所述的 UE, 其特征在于, 若所述 PDP类型指示信息 用于指示所述 PDP类型为 IPv4; 则所述第一 PDN连接激活响应消息包括所 述 UE的 IP地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
10、 根据权利要求 1所述的 UE, 其特征在于, 若所述 PDP类型指示信 息用于指示所述 PDP类型为 IPv6; 则所述第一 PDN连接激活响应消息包括 所述 UE的 IP地址和第二 DNS的 IP地址。
11、 一种服务网关, 其特征在于, 包括:
接收单元, 用于接收用户设备 UE发送的第一分组数据网络 PDN连接激 活请求消息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型 指示信息, 所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4v6;
确定单元, 用于根据所述 PDP类型指示信息, 确定所述 UE的 IP地址和 第一域名解析服务器 DNS的 IP地址;
发送单元, 用于向所述 UE发送第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IP地址和所述第一 DNS的 IP地址; 其中,所述第一 DNS中存储有互联网协议版本 4 IPv4业务服务器的 IPv4 地址但不存储所述 IPv4业务服务器的互联网协议版本 6 IPv6地址,所述 IPv4 业务服务器的 IPv6地址为 4 to 6地址。
12、 根据权利要求 11所述的服务网关, 其特征在于, 所述接收单元具体 用于接收所述 UE发送的包括延迟分配标识和所述 PDP类型指示信息的第一 PDN连接激活请求消息, 所述延迟分配标识用于指示所述服务网关延迟分配 所述 UE的 IPv4地址;
所述确定单元具体用于根据所述延迟分配标识和所述 PDP 类型为 IPv4v6, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述发送单元具体用于向所述 UE发送包括所述 UE的 IPv6地址和所述 第一 DNS的 IP地址的第一 PDN连接激活响应消息。
13、 根据权利要求 11所述的服务网关, 其特征在于, 所述确定单元具体 用于根据所述 PDP类型指示信息和第一配置信息,确定所述 UE的 IPv4地址 和所述第一 DNS的 IP地址;
所述发送单元具体用于向所述 UE发送包括所述 UE的 IPv4地址、 所述 第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息;
其中,所述第一配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个 APN下激活两种 PDN连接, 所述第一返回码用于 指示所述 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN连接的 IP 版本不同。
14、 根据权利要求 13所述的服务网关, 其特征在于,
所述接收单元具体用于接收管理网元发送的第二 PDN连接激活请求消 息; 所述第二 PDN连接激活请求消息为所述管理网元根据所述 UE发送的第 一 PDN连接激活请求消息发送的, 所述第二 PDN连接激活请求消息为所述 管理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv4并 将 IPv4v6指示信息和第一标识信息添加在所述第一 PDN连接激活请求消息 中获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第一标 识信息用于标识所述 UE在同一个 APN下激活所述两种 PDN连接;
所述确定单元具体用于根据所述修改后的 PDP 类型指示信息、 所述 IPv4v6指示信息和第一标识信息, 确定所述第一配置信息, 并根据所述修改 后的 PDP类型为 IPv4和所述第一配置信息, 确定所述 UE的 IPv4地址和所 述第一 DNS的 IP地址; 所述发送单元具体用于向所述管理网元发送包括所述 UE的 IPv4地址和 所述第一 DNS的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元 根据所述第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激 活响应消息,所述第一 PDN连接激活响应消息为所述管理网元将所述第一返 回码添加在所述第二 PDN连接激活响应消息中获得的。
15、 根据权利要求 13或 14所述的服务网关, 其特征在于,
所述接收单元还用于接收所述 UE根据所述第一返回码和所述 UE的 IPv4 地址发送的第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息 包括用于指示 PDP类型为 IPv6的 PDP类型指示信息;
所述确定单元, 还用于确定所述 UE已激活 IPv4的 PDN连接, 并根据 所述第三 PDN连接激活请求消息中的 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述发送单元还用于向所述 UE发送第三 PDN连接激活响应消息, 所述 第三 PDN连接激活响应消息包括所述 UE的 IPv6地址和所述第一 DNS的 IP 地址。
16、 根据权利要求 11所述的服务网关, 其特征在于, 所述确定单元具体 用于根据所述 PDP类型指示信息和第一配置信息,确定所述 UE的 IPv6地址 和所述第一 DNS的 IP地址;
所述发送单元具体用于向所述 UE发送包括所述 UE的 IPv6地址、 所述 第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息;
其中,所述第一配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个 APN下激活两种 PDN连接, 所述第一返回码用于 指示所述 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN连接的 IP 版本不同。
17、 根据权利要求 16所述的服务网关, 其特征在于,
所述接收单元具体用于接收管理网元发送的第二 PDN连接激活请求消 息; 所述第二 PDN连接激活请求消息为所述管理网元根据所述 UE发送的第 一 PDN连接激活请求消息发送的, 所述第二 PDN连接激活请求消息为所述 管理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv6并 将 IPv4v6指示信息和第一标识信息添加在所述第一 PDN连接激活请求消息 中获得的, 所述第一标识信息用于标识所述 UE在同一个 APN下激活所述两 种 PDN连接;
所述确定单元具体用于根据所述修改的 PDP类型指示信息、所述 IPv4v6 指示信息和第一标识信息, 确定所述第一配置信息, 以及根据所述修改后的 PDP类型为 IPv6和所述第一配置信息,确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述发送单元具体用于向所述管理网元发送包括所述 UE的 IPv6地址和 所述第一 DNS的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元 根据所述第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激 活响应消息,所述第一 PDN连接激活响应消息为所述管理网元将所述第二返 回码添加在所述第二 PDN连接激活响应消息中获得的。
18、 根据权利要求 16或 17所述的服务网关, 其特征在于, 还包括: 所述接收单元还用于接收所述 UE根据所述第一返回码和所述 UE的 IPv6 地址发送的第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息 包括用于指示 PDP类型为 IPv4的 PDP类型指示信息;
所述确定单元, 还用于确定所述 UE已激活 IPv6的 PDN连接, 以及根 据所述第三 PDN连接激活请求消息中的 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址;
所述发送单元还用于向所述 UE发送第三 PDN连接激活响应消息, 所述 第三 PDN连接激活响应消息包括所述 UE的 IPv4地址和所述第一 DNS的 IP 地址。
19、 根据权利要求 11所述的服务网关, 其特征在于, 若所述 PDP类型 指示信息用于指示所述 PDP类型为 IPv4; 则所述第一 PDN连接激活响应消 息包括所述 UE的 IP地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地 址。
20、 根据权利要求 11所述的服务网关, 其特征在于, 若所述 PDP类型 指示信息用于指示所述 PDP类型为 IPv6; 则所述第一 PDN连接激活响应消 息包括所述 UE的 IP地址和第二 DNS的 IP地址。
21、 用户设备 UE, 其特征在于, 包括:
发送单元,用于向服务网关发送第一分组数据网络 PDN连接激活请求消 息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6;
接收单元, 用于接收所述服务网关发送的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息包括所述 UE的 IPv4地址、第一 DNS的 IP 地址和 /或第二 DNS的 IP地址, 所述第一 DNS中存储有 IPv4业务服务器的 IPv4地址但不存储所述 IPv4业务服务器的 IPv6地址,所述第一 DNS中存储 有 IPv4业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址,所述 IPv4 业务服务器的 IPv6地址为 4 to 6地址。
22、 根据权利要求 21所述的 UE, 其特征在于, 所述接收单元具体用于 接收所述服务网关发送的包括所述 UE的 IPv4地址、 第二返回码、 所述第一
DNS的 IP地址和 /或所述第二 DNS的 IP地址的第一 PDN连接激活响应消息, 所述第二返回码用于指示所述 UE在同一个接入点名称 APN下激活一种 IP 版本的 PDN连接。
23、 根据权利要求 22所述的 UE, 其特征在于, 所述发送单元具体用于 向管理网元发送第一 PDN连接激活请求消息, 以使所述管理网元根据所述第 一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活请求消息; 所 述第二 PDN连接激活请求消息为所述管理网元将所述 PDP类型指示信息修 改为用于指示 PDP类型为 IPv4并将 IPv4v6指示信息和第一标识信息添加在 所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示信息用于指示 所述 UE支持 IPv4v6, 所述第二标识信息用于标识所述 UE在同一个 APN下 激活一种 IP版本的 PDN连接;
所述接收单元具体用于接收所述管理网元发送的包括所述 UE的 IPv4地 址、 第二返回码、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所述管理网元 根据所述服务网关发送的第二 PDN连接激活响应消息发送的,所述第二 PDN 连接激活响应消息包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 / 或第二 DNS的 IP地址, 所述第一 PDN连接激活响应消息为所述管理网元将 所述第二返回码添加在所述第二 PDN连接激活响应消息获得的。
24、 一种服务网关, 其特征在于, 包括:
接收单元, 用于接收用户设备 UE发送的第一分组数据网络 PDN连接激 活请求消息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型 指示信息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6;
确定单元,用于根据所述 PDP类型指示信息,确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址;
发送单元, 用于向所述 UE发送第一 PDN连接激活响应消息, 所述第一
PDN连接激活响应消息包括所述 UE的 IPv4地址、 第一 DNS的 IP地址和 / 或第二 DNS的 IP地址, 所述第一 DNS中存储有 IPv4业务服务器的 IPv4地 址但不存储所述 IPv4业务服务器的 IPv6地址,所述第一 DNS中存储有 IPv4 业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址,所述 IPv4业务 服务器的 IPv6地址为 4 to 6地址。
25、 根据权利要求 24所述的服务网关, 其特征在于, 所述确定单元具体 用于根据所述 PDP类型指示信息和第二配置信息,确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址;
所述发送单元具体用于向所述 UE发送包括所述 UE的 IPv4地址、 第二 返回码、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接 激活响应消息;
其中,所述第二配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个接入点名称 APN下激活一种 IP版本的 PDN连接, 所述第二返回码用于指示所述 UE在同一个 APN下激活一种 IP版本的 PDN 连接。
26、 根据权利要求 25所述的服务网关, 其特征在于,
所述接收单元具体用于接收管理网元发送的第二 PDN连接激活请求消 息; 所述第二 PDN连接激活请求消息为所述管理网元根据接收到所述 UE发 送的第一 PDN连接激活请求消息发送的, 所述第二 PDN连接激活请求消息 为所述管理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv4并将 IPv4v6指示信息和第二标识信息添加在所述第一 PDN连接激活请 求消息中获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述 第二标识信息用于标识所述 UE在同一个 APN下激活一种 IP版本的 PDN连 接;
所述确定单元具体用于根据所述修改的 PDP类型指示信息、所述 IPv4v6 指示信息和第二标识信息, 确定所述第二配置信息, 以及根据所述修改后的
PDP类型为 IPv4和所述第二配置信息,确定所述 UE的 IPv4地址、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址; 所述发送单元具体用于向所述管理网元发送包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第二 PDN连接激活响应 消息, 以使所述管理网元根据所述第二 PDN连接激活响应消息向所述 UE发 送所述第一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所 述管理网元将所述第二返回码添加在所述第一 PDN连接激活响应消息中获 得的。
27、 一种互联网协议 IP地址分配方法, 其特征在于, 包括:
用户设备 UE 向服务网关发送第一分组数据网络 PDN连接激活请求消 息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信息, 所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4v6;
所述 UE接收所述服务网关发送的第一 PDN连接激活响应消息, 所述第 一 PDN连接激活响应消息包括所述 UE的 IP地址和第一域名解析服务器 DNS 的 IP地址,所述第一 DNS中存储有互联网协议版本 4 IPv4业务服务器的 IPv4 地址但不存储所述 IPv4业务服务器的互联网协议版本 6 IPv6地址,所述 IPv4 业务服务器的 IPv6地址为 4 to 6地址。
28、 根据权利要求 27所述的方法, 其特征在于, 所述用户设备 UE向服 务网关发送第一分组数据网络 PDN连接激活请求消息, 包括:
所述 UE向所述服务网关发送包括延迟分配标识和所述 PDP类型指示信 息的第一 PDN连接激活请求消息,所述延迟分配标识用于指示所述服务网关 延迟分配所述 UE的 IPv4地址;
所述 UE接收服务网关发送的第一 PDN连接激活响应消息, 包括: 所述 UE接收服务网关发送的包括所述 UE的 IPv6地址和所述第一 DNS 的 IP地址的第一 PDN连接激活响应消息。
29、 根据权利要求 27所述的方法, 其特征在于, 所述 UE接收所述服务 网关发送的第一 PDN连接激活响应消息, 包括:
所述 UE接收所述服务网关发送的包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一返回 码用于指示所述 UE在同一个接入点名称 APN下激活两种 PDN连接, 所述 两种 PDN连接的 IP版本不同。
30、 根据权利要求 29所述的方法, 其特征在于, 所述用户设备 UE向服 务网关发送第一分组数据网络 PDN连接激活请求消息, 包括:
所述 UE向管理网元发送第一 PDN连接激活请求消息, 以使所述管理网 元根据所述第一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活 请求消息, 所述第二 PDN连接激活请求消息为所述管理网元将所述 PDP类 型指示信息修改为用于指示 PDP类型为 IPv4并将 IPv4v6指示信息和第一标 识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示 信息用于指示所述 UE支持 IPv4v6, 所述第一标识信息用于标识所述 UE在 同一个 APN下激活所述两种 PDN连接;
所述 UE接收所述服务网关发送的包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 包括:
所述 UE接收所述管理网元发送的包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一 PDN 连接激活响应消息为所述管理网元根据所述服务网关发送的第二 PDN连接 激活响应消息发送的,所述第二 PDN连接激活响应消息包括所述 UE的 IPv4 地址和所述第一 DNS的 IP地址, 所述第一 PDN连接激活响应消息为所述管 理网元将所述第一返回码添加在所述第二 PDN连接激活响应消息获得的。
31、 根据权利要求 29或 30所述的方法, 其特征在于, 还包括: 所述 UE根据所述第一返回码和所述 UE的 IPv4地址,确定第三 PDN连 接激活请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv6的 PDP 类型指示信息;
所述 UE 向所述服务网关发送第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于指示 PDP类型为 IPv6的 PDP类型指示 信息;
所述 UE接收所述服务网关发送的第三 PDN连接激活响应消息, 所述第 三 PDN连接激活响应消息包括所述 UE的 IPv6地址和所述第一 DNS的 IP地 址。
32、 根据权利要求 27所述的方法, 其特征在于, 所述 UE接收所述服务 网关发送的第一 PDN连接激活响应消息, 包括:
所述 UE接收所述服务网关发送的包括所述 UE的 IPv6地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一返回 码用于指示所述 UE在同一个 APN下激活两种 PDN连接, 所述两种 PDN连 接的 IP版本不同。
33、 根据权利要求 32所述的方法, 其特征在于, 所述用户设备 UE向服 务网关发送第一分组数据网络 PDN连接激活请求消息, 包括:
所述 UE向管理网元发送第一 PDN连接激活请求消息, 以使所述管理网 元根据所述第一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活 请求消息, 所述第二 PDN连接激活请求消息为所述管理网元将所述 PDP类 型指示信息修改为用于指示 PDP类型为 IPv6并将 IPv4v6指示信息和第一标 识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示 信息用于指示所述 UE支持 IPv4v6, 所述第一标识信息用于标识所述 UE在 同一个 APN下激活所述两种 PDN连接;
所述 UE接收所述服务网关发送的包括所述 UE的 IPv6地址、 所述第一
DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 包括:
所述 UE接收所述管理网元发送的包括所述 UE的 IPv6地址、 所述第一 DNS的 IP地址和第一返回码的第一 PDN连接激活响应消息, 所述第一 PDN 连接激活响应消息为所述管理网元根据所述服务网关发送的第二 PDN连接 激活响应消息发送的,所述第二 PDN连接激活响应消息包括所述 UE的 IPv6 地址和所述第一 DNS的 IP地址, 所述第一 PDN连接激活响应消息为所述管 理网元将所述第一返回码添加在所述第二 PDN连接激活响应消息获得的。
34、 根据权利要求 32或 33所述的方法, 其特征在于, 还包括: 所述 UE根据所述第一返回码和所述 UE的 IPv6地址,确定第三 PDN连 接激活请求消息中的 PDP类型指示信息为用于指示 PDP类型为 IPv4的 PDP 类型指示信息;
所述 UE 向所述服务网关发送第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括所述用于指示 PDP类型为 IPv4的 PDP类型指示 信息;
所述 UE接收所述服务网关发送的第三 PDN连接激活响应消息, 所述第 三 PDN连接激活响应消息包括所述 UE的 IPv4地址和所述第一 DNS的 IP地 址。
35、 根据权利要求 27所述的方法, 其特征在于, 若所述 PDP类型指示 信息用于指示所述 PDP类型为 IPv4; 则所述第一 PDN连接激活响应消息包 括所述 UE的 IP地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
36、 根据权利要求 27所述的方法, 其特征在于, 若所述 PDP类型指示 信息用于指示所述 PDP类型为 IPv6; 则所述第一 PDN连接激活响应消息包 括所述 UE的 IP地址和第二 DNS的 IP地址。
37、 一种互联网协议 IP地址分配方法, 其特征在于, 包括:
服务网关接收用户设备 UE发送的第一分组数据网络 PDN连接激活请求 消息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信 息, 所述 PDP类型指示信息用于指示所述 PDP类型为 IPv4v6;
所述服务网关根据所述 PDP类型指示信息,确定所述 UE的 IP地址和第 一域名解析服务器 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 所述第一
PDN连接激活响应消息包括所述 UE的 IP地址和所述第一 DNS的 IP地址; 其中,所述第一 DNS中存储有互联网协议版本 4 IPv4业务服务器的 IPv4 地址但不存储所述 IPv4业务服务器的互联网协议版本 6 IPv6地址,所述 IPv4 业务服务器的 IPv6地址为 4 to 6地址。
38、 根据权利要求 37所述的方法, 其特征在于, 所述服务网关接收用户 设备 UE发送的第一分组数据网络 PDN连接激活请求消息, 包括:
所述服务网关接收所述 UE发送的包括延迟分配标识和所述 PDP类型指 示信息的第一 PDN连接激活请求消息,所述延迟分配标识用于指示所述服务 网关延迟分配所述 UE的 IPv4地址;
所述服务网关根据所述 PDP类型指示信息,确定所述 UE的 IP地址和第 一域名解析服务器 DNS的 IP地址, 包括:
所述服务网关根据所述延迟分配标识和所述 PDP类型为 IPv4v6,确定所 述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述 UE发送包括所述 UE的 IPv6地址和所述第一 DNS 的 IP地址的第一 PDN连接激活响应消息。
39、 根据权利要求 38所述的方法, 其特征在于, 所述服务网关根据所述 PDP类型指示信息, 确定所述 UE的 IP地址和第一域名解析服务器 DNS的 IP地址, 包括:
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述
UE的 IPv4地址和所述第一 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述 UE发送包括所述 UE的 IPv4地址、 所述第一 DNS 的 IP地址和第一返回码的第一 PDN连接激活响应消息;
其中,所述第一配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个接入点名称 APN下激活两种 PDN连接, 所述第一 返回码用于指示所述 UE在同一个 APN下激活两种 PDN连接,所述两种 PDN 连接的 IP版本不同。
40、 根据权利要求 39所述的方法, 其特征在于, 所述服务网关接收用户 设备 UE发送的第一分组数据网络 PDN连接激活请求消息, 包括:
所述服务网关接收管理网元发送的第二 PDN连接激活请求消息;所述第 二 PDN连接激活请求消息为所述管理网元根据所述 UE发送的第一 PDN连 接激活请求消息发送的,所述第二 PDN连接激活请求消息为所述管理网元将 所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv4并将 IPv4v6指 示信息和第一标识信息添加在所述第一 PDN连接激活请求消息中获得的,所 述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第一标识信息用于标 识所述 UE在同一个 APN下激活所述两种 PDN连接;
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址之前, 还包括:
所述服务网关根据所述修改后的 PDP类型指示信息、 所述 IPv4v6指示 信息和第一标识信息, 确定所述第一配置信息;
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址, 包括:
所述服务网关根据所述修改后的 PDP类型为 IPv4和所述第一配置信息, 确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址; 所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述管理网元发送包括所述 UE的 IPv4地址和所述第一 DNS的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元根据所述 第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激活响应消 息,所述第一 PDN连接激活响应消息为所述管理网元将所述第一返回码添加 在所述第二 PDN连接激活响应消息中获得的。
41、 根据权利要求 39或 40所述的方法, 其特征在于, 还包括: 所述服务网关接收所述 UE根据所述第一返回码和所述 UE的 IPv4地址 发送的第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括 用于指示 PDP类型为 IPv6的 PDP类型指示信息;
所述服务网关确定所述 UE已激活 IPv4的 PDN连接;
所述服务网关根据所述第三 PDN连接激活请求消息中的 PDP类型指示 信息和第一配置信息,确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址; 所述服务网关向所述 UE发送第三 PDN连接激活响应消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv6地址和所述第一 DNS的 IP地址。
42、 根据权利要求 37所述的方法, 其特征在于, 所述服务网关根据所述 PDP类型指示信息, 确定所述 UE的 IP地址和第一域名解析服务器 DNS的 IP地址, 包括:
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述 UE发送包括所述 UE的 IPv6地址、 所述第一 DNS 的 IP地址和第一返回码的第一 PDN连接激活响应消息;
其中,所述第一配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个 APN下激活两种 PDN连接, 所述第一返回码用于 指示所述 UE在同一个 APN下激活所述两种 PDN连接。
43、 根据权利要求 42所述的方法, 其特征在于, 所述服务网关接收用户 设备 UE发送的第一分组数据网络 PDN连接激活请求消息, 包括:
所述服务网关接收管理网元发送的第二 PDN连接激活请求消息;所述第 二 PDN连接激活请求消息为所述管理网元根据所述 UE发送的第一 PDN连 接激活请求消息发送的,所述第二 PDN连接激活请求消息为所述管理网元将 所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv6并将 IPv4v6指 示信息和第一标识信息添加在所述第一 PDN连接激活请求消息中获得的,所 述第一标识信息用于标识所述 UE在同一个 APN下激活所述两种 PDN连接; 所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述
UE的 IPv6地址和所述第一 DNS的 IP地址之前, 还包括:
所述服务网关根据所述修改的 PDP类型指示信息、 所述 IPv4v6指示信 息和第一标识信息, 确定所述第一配置信息;
所述服务网关根据所述 PDP类型指示信息和第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址, 包括:
所述服务网关根据所述修改后的 PDP类型为 IPv6和所述第一配置信息, 确定所述 UE的 IPv6地址和所述第一 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述管理网元发送包括所述 UE的 IPv6地址和所述第一 DNS的 IP地址的第二 PDN连接激活响应消息, 以使所述管理网元根据所述 第二 PDN连接激活响应消息向所述 UE发送所述第一 PDN连接激活响应消 息,所述第一 PDN连接激活响应消息为所述管理网元将所述第二返回码添加 在所述第二 PDN连接激活响应消息中获得的。
44、 根据权利要求 42或 43所述的方法, 其特征在于, 还包括: 所述服务网关接收所述 UE根据所述第一返回码和所述 UE的 IPv6地址 发送的第三 PDN连接激活请求消息, 所述第三 PDN连接激活请求消息包括 用于指示 PDP类型为 IPv4的 PDP类型指示信息;
所述服务网关确定所述 UE已激活 IPv6的 PDN连接;
所述服务网关根据所述第三 PDN连接激活请求消息中的 PDP类型指示 信息和第一配置信息,确定所述 UE的 IPv4地址和所述第一 DNS的 IP地址; 所述服务网关向所述 UE发送第三 PDN连接激活响应消息, 所述第三 PDN连接激活响应消息包括所述 UE的 IPv4地址和所述第一 DNS的 IP地址。
45、 根据权利要求 37所述的方法, 其特征在于, 若所述 PDP类型指示 信息用于指示所述 PDP类型为 IPv4; 则所述第一 PDN连接激活响应消息包 括所述 UE的 IP地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址。
46、 根据权利要求 37所述的方法, 其特征在于, 若所述 PDP类型指示 信息用于指示所述 PDP类型为 IPv6; 则所述第一 PDN连接激活响应消息包 括所述 UE的 IP地址和第二 DNS的 IP地址。
47、 一种互联网协议 IP地址分配方法, 其特征在于, 包括:
用户设备 UE 向服务网关发送第一分组数据网络 PDN连接激活请求消 息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6;
所述 UE接收所述服务网关发送的第一 PDN连接激活响应消息, 所述第 一 PDN连接激活响应消息包括所述 UE的 IPv4地址、第一 DNS的 IP地址和 /或第二 DNS的 IP地址,所述第一 DNS中存储有 IPv4业务服务器的 IPv4地 址但不存储所述 IPv4业务服务器的 IPv6地址,所述第一 DNS中存储有 IPv4 业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址,所述 IPv4业务 服务器的 IPv6地址为 4 to 6地址。
48、 根据权利要求 47所述的方法, 其特征在于, 所述 UE接收所述服务 网关发送的第一 PDN连接激活响应消息, 包括:
所述 UE接收所述服务网关发送的包括所述 UE的 IPv4地址、 第二返回 码、所述第一 DNS的 IP地址和 /或所述第二 DNS的 IP地址的第一 PDN连接 激活响应消息, 所述第二返回码用于指示所述 UE在同一个接入点名称 APN 下激活一种 IP版本的 PDN连接。
49、 根据权利要求 48所述的方法, 其特征在于, 所述用户设备 UE向服 务网关发送第一分组数据网络 PDN连接激活请求消息, 包括:
所述 UE向管理网元发送第一 PDN连接激活请求消息, 以使所述管理网 元根据所述第一 PDN连接激活请求向所述服务网关发送第二 PDN连接激活 请求消息; 所述第二 PDN连接激活请求消息为所述管理网元将所述 PDP类 型指示信息修改为用于指示 PDP类型为 IPv4并将 IPv4v6指示信息和第一标 识信息添加在所述第一 PDN连接激活请求消息中获得的, 所述 IPv4v6指示 信息用于指示所述 UE支持 IPv4v6, 所述第二标识信息用于标识所述 UE在 同一个 APN下激活一种 IP版本的 PDN连接;
所述 UE接收所述服务网关发送的包括所述 UE的 IPv4地址、 第一返回 码、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活 响应消息, 包括:
所述 UE接收所述管理网元发送的包括所述 UE的 IPv4地址、 第二返回 码、所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活 响应消息,所述第一 PDN连接激活响应消息为所述管理网元根据所述服务网 关发送的第二 PDN连接激活响应消息发送的, 所述第二 PDN连接激活响应 消息包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址,所述第一 PDN连接激活响应消息为所述管理网元将所述第二返回码 添加在所述第二 PDN连接激活响应消息获得的。
50、 一种互联网协议 IP地址分配方法, 其特征在于, 包括:
服务网关接收用户设备 UE发送的第一分组数据网络 PDN连接激活请求 消息, 所述第一 PDN连接激活请求消息包括分组数据协议 PDP类型指示信 息, 所述 PDP类型指示信息用于指示 PDP类型为 IPv4v6;
所述服务网关根据所述 PDP类型指示信息, 确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 所述第一
PDN连接激活响应消息包括所述 UE的 IPv4地址、 第一 DNS的 IP地址和 / 或第二 DNS的 IP地址, 所述第一 DNS中存储有 IPv4业务服务器的 IPv4地 址但不存储所述 IPv4业务服务器的 IPv6地址,所述第一 DNS中存储有 IPv4 业务服务器的 IPv4地址和所述 IPv4业务服务器的 IPv6地址,所述 IPv4业务 服务器的 IPv6地址为 4 to 6地址。
51、 根据权利要求 50所述的方法, 其特征在于, 所述服务网关根据所述 PDP类型指示信息, 确定所述 UE的 IPv4地址、第一 DNS的 IP地址和 /或第 二 DNS的 IP地址, 包括:
所述服务网关根据所述 PDP类型指示信息和第二配置信息, 确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址;
所述服务网关向所述 UE发送第一 PDN连接激活响应消息, 包括: 所述服务网关向所述 UE发送包括所述 UE的 IPv4地址、 第二返回码、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活响应 消息;
其中,所述第二配置信息用于指示所述服务网关给一个 PDN连接分配一 种 IP版本地址并且同一个接入点名称 APN下激活一种 IP版本的 PDN连接, 所述第二返回码用于指示所述 UE在同一个 APN下激活一种 IP版本的 PDN 连接。
52、 根据权利要求 51所述的方法, 其特征在于, 所述服务网关接收用户 设备 UE发送的第一分组数据网络 PDN连接激活请求消息, 包括:
所述服务网关接收管理网元发送的第二 PDN连接激活请求消息;所述第 二 PDN连接激活请求消息为所述管理网元根据接收到所述 UE发送的第一 PDN连接激活请求消息发送的, 所述第二 PDN连接激活请求消息为所述管 理网元将所述 PDP类型指示信息修改为用于指示所述 PDP类型为 IPv4并将 IPv4v6指示信息和第二标识信息添加在所述第一 PDN连接激活请求消息中 获得的, 所述 IPv4v6指示信息用于指示所述 UE支持 IPv4v6, 所述第二标识 信息用于标识所述 UE在同一个 APN下激活一种 IP版本的 PDN连接;
所述服务网关根据所述 PDP类型指示信息和第二配置信息, 确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址之前, 还包 括:
所述服务网关根据所述修改的 PDP类型指示信息、 所述 IPv4v6指示信 息和第二标识信息, 确定所述第二配置信息;
所述服务网关根据所述 PDP类型指示信息和第二配置信息, 确定所述 UE的 IPv4地址、 第一 DNS的 IP地址和 /或第二 DNS的 IP地址, 包括: 所述服务网关根据所述修改后的 PDP类型为 IPv4和所述第二配置信息, 确定所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地 址;
所述服务网关向所述 UE发送包括所述 UE的 IPv4地址、 第二返回码、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第一 PDN连接激活响应 消息, 包括:
所述服务网关向所述管理网元发送包括所述 UE的 IPv4地址、 所述第一 DNS的 IP地址和 /或第二 DNS的 IP地址的第二 PDN连接激活响应消息, 以 使所述管理网元根据所述第二 PDN连接激活响应消息向所述 UE发送所述第 一 PDN连接激活响应消息, 所述第一 PDN连接激活响应消息为所述管理网 元将所述第二返回码添加在所述第一 PDN连接激活响应消息中获得的。
PCT/CN2013/089118 2013-12-11 2013-12-11 互联网协议地址分配方法和装置 WO2015085521A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380073119.5A CN105075213B (zh) 2013-12-11 2013-12-11 互联网协议地址分配方法和装置
PCT/CN2013/089118 WO2015085521A1 (zh) 2013-12-11 2013-12-11 互联网协议地址分配方法和装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/089118 WO2015085521A1 (zh) 2013-12-11 2013-12-11 互联网协议地址分配方法和装置

Publications (1)

Publication Number Publication Date
WO2015085521A1 true WO2015085521A1 (zh) 2015-06-18

Family

ID=53370484

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/089118 WO2015085521A1 (zh) 2013-12-11 2013-12-11 互联网协议地址分配方法和装置

Country Status (2)

Country Link
CN (1) CN105075213B (zh)
WO (1) WO2015085521A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2417650A (en) * 2004-07-30 2006-03-01 Orange Personal Comm Serv Ltd Tunnelling IPv6 packets over IPv4 packet radio network wherein an IPv6 address including a tunnel end identifier of the IPv4 bearer is formed
CN101483635A (zh) * 2008-01-10 2009-07-15 华为技术有限公司 一种ip地址选择方法及装置
CN101873582A (zh) * 2009-04-23 2010-10-27 大唐移动通信设备有限公司 一种ip地址分配方法及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100560737B1 (ko) * 2003-02-18 2006-03-13 삼성전자주식회사 듀얼스택을 이용한 아이피브이4 - 아이피브이6 전환 장치및 그 방법
CN101159744A (zh) * 2004-10-05 2008-04-09 华为技术有限公司 版本不同的网间互联协议网络互通的方法
CN1758649B (zh) * 2004-10-05 2010-04-28 华为技术有限公司 版本不同的网间互联协议网络互通的方法
CN101087296B (zh) * 2006-06-08 2011-06-15 上海亿人通信终端有限公司 利用网络处理器实现IPv4/IPv6网络协议转换的方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2417650A (en) * 2004-07-30 2006-03-01 Orange Personal Comm Serv Ltd Tunnelling IPv6 packets over IPv4 packet radio network wherein an IPv6 address including a tunnel end identifier of the IPv4 bearer is formed
CN101483635A (zh) * 2008-01-10 2009-07-15 华为技术有限公司 一种ip地址选择方法及装置
CN101873582A (zh) * 2009-04-23 2010-10-27 大唐移动通信设备有限公司 一种ip地址分配方法及系统

Also Published As

Publication number Publication date
CN105075213A (zh) 2015-11-18
CN105075213B (zh) 2019-04-19

Similar Documents

Publication Publication Date Title
US9392636B2 (en) Methods and apparatuses for setting up a packet data network (PDN) connection
CN101873582B (zh) 一种ip地址分配方法及系统
US9480091B2 (en) Method, network element and UE achieving identifier and location separation and interface identifier allocation
WO2017124308A1 (zh) 一种ip地址分配方法及设备
US20150113168A1 (en) Network Bridging
WO2013159641A1 (zh) 地址分配方法、设备和系统
WO2011144134A1 (zh) 一种信息推送方法、装置和系统
WO2008151544A1 (fr) Procédé, appareil et système pour établir une connexion de support
WO2009012709A1 (fr) Procédé et dispositif pour demander et distribuer l'adresse d'un point de connexion
JP5091320B2 (ja) ポリシ決定機能のアドレス指定方法、ネットワーク構成要素、及びネットワークシステム
WO2007051407A1 (fr) Systeme de communication mobile ameliore et procede d’enregistrement de terminal correspondant
WO2009089780A1 (fr) Procédé d'établissement d'une connexion de données dans un réseau mobile, réseau mobile et entité de contrôle de politique
WO2007028300A1 (en) A method for obtaining the home agent information of the mobile node and a system thereof
WO2014101041A1 (zh) Ipv6地址溯源方法、装置和系统
WO2014086167A1 (zh) 一种移动终端及其地址分配方法和系统
US10303502B2 (en) Creating a virtual machine for an IP device using information requested from a lookup service
EP2472788A1 (en) Method and system for implementing id/locator mapping
WO2011157141A2 (zh) IPv6地址分配的方法及设备
JP2020005287A (ja) サービス制御システム、及びサービス制御方法
WO2011120365A1 (zh) 多穴终端建立连接的方法和系统
KR20090105521A (ko) 모바일 아이피 방식의 무선통신시스템에서 세션 식별자를검색하기 위한 시스템 및 방법
US10873561B2 (en) Method and apparatus for allocating IP parameter
WO2011120276A1 (zh) 一种终端实现连接建立的方法及系统
WO2015085521A1 (zh) 互联网协议地址分配方法和装置
WO2014169590A1 (zh) 一种数据业务通信方法、设备及系统

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380073119.5

Country of ref document: CN

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

Ref document number: 13899147

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

Country of ref document: EP

Kind code of ref document: A1