WO2011157141A2 - Internet protocol version 6 address allocation method and apparatus - Google Patents

Internet protocol version 6 address allocation method and apparatus Download PDF

Info

Publication number
WO2011157141A2
WO2011157141A2 PCT/CN2011/075040 CN2011075040W WO2011157141A2 WO 2011157141 A2 WO2011157141 A2 WO 2011157141A2 CN 2011075040 W CN2011075040 W CN 2011075040W WO 2011157141 A2 WO2011157141 A2 WO 2011157141A2
Authority
WO
WIPO (PCT)
Prior art keywords
ipv6
identifier
address
network domain
ipv6 prefix
Prior art date
Application number
PCT/CN2011/075040
Other languages
French (fr)
Chinese (zh)
Other versions
WO2011157141A3 (en
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 CN201180000838.5A priority Critical patent/CN102918817B/en
Priority to PCT/CN2011/075040 priority patent/WO2011157141A2/en
Publication of WO2011157141A2 publication Critical patent/WO2011157141A2/en
Publication of WO2011157141A3 publication Critical patent/WO2011157141A3/en

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/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and device for IPv6 address allocation. Background technique
  • EPC Evolved Packet Core, Evolved packet core
  • the EPC now adopts an all-IP (Internet Protocol) (Internet Protocol) flat architecture. Therefore, when the UE (User Equipment) needs to establish a PDN (Packet Data Network) connection, it is necessary to obtain an available first. IP address, and use the IP address to communicate with the external network. Therefore, address assignment is a necessary step for the UE to create a PDN connection.
  • IPv4 Internet Protocol Protocol 4
  • IPv6 IPv6 address has been distributed in 3GPP (The 3rd Generation Partnership Project). The system is becoming more and more important.
  • the PDN-GW Packet Data Network Gateway
  • the prefix may be managed by the PDN-GW or may be obtained by the PDN-GW.
  • the UE generates a global IPv6 address with the interface identifier generated by the UE according to the allocated IPv6 prefix, and is used for the following. data transmission.
  • the embodiments of the present invention provide a method and a device for allocating IPv6 addresses, which can allocate the same IPv6 prefix to different UEs in the same network domain, and increase the available space of the IPv6 address.
  • a method for IPv6 address allocation including:
  • IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved; when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, sending the UE to the UE The IPv6 prefix corresponding to the identifier of the network domain;
  • the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the IPv6 prefix is allocated to the UE, and the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix are saved.
  • a method for allocating an IPv6 address comprising:
  • the address allocation request message includes an identifier of the network domain where the user equipment UE is located, and the identifier of the network domain where the UE is located is used to obtain an IPv6 prefix;
  • a device for IPv6 address allocation including:
  • a receiving unit configured to receive a request message for an address that is sent by the user equipment, where the request message includes an identifier of a network domain where the UE is located;
  • a determining unit configured to determine whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved
  • a first sending unit configured to: when storing an IPv6 prefix corresponding to an identifier of a network domain where the UE is located, send an IPv6 prefix corresponding to an identifier of a network domain where the UE is located to the UE;
  • An execution unit configured to allocate an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the UE, when an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is not saved. The relationship between the identifier of the network domain in which it resides and the IPv6 prefix.
  • a device for allocating an IPv6 address including: a sending unit, configured to send an address allocation request message to the device that processes the address allocation, where the request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain an IPv6 prefix ;
  • an execution unit configured to receive, by the device that processes the address allocation, the IPv6 prefix obtained according to an identifier of a network domain where the UE is located, and generate a global IPv6 address according to the IPv6 prefix.
  • a method and a device for allocating an IPv6 address allocate an IPv6 prefix corresponding to an identifier of a network domain in which the UE is located according to an identifier of a network domain in which the UE is located.
  • the IPv6 prefix may be an IPv6 prefix corresponding to the identifier of the network domain where the UE is located, or may be an IPv6 prefix directly allocated by the device that processes the address allocation, and save the UE.
  • the relationship between the identifier of the network domain in which it resides and the IPv6 prefix Compared with the prior art, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, and the technical problem of the actual use is not satisfied.
  • the solution provided by the embodiment of the present invention may allocate the same IPv6 prefix to different UEs in the same network domain, and add IPv6. The free space of the address.
  • FIG. 1 is a flowchart of a method for IPv6 address allocation according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of another IPv6 address allocation method according to Embodiment 1 of the present invention
  • 1 is a block diagram of an apparatus for IPv6 address allocation according to FIG. 1
  • FIG. 4 is a block diagram of another apparatus for IPv6 address allocation according to Embodiment 1 of the present invention
  • FIG. 5 is an IPv6 address allocation according to Embodiment 2 of the present invention
  • FIG. 6 is a flowchart of a UE side of a method for IPv6 address allocation according to Embodiment 2 of the present invention
  • FIG. 8 is a flowchart of a method for IPv6 address allocation according to Embodiment 2 of the present invention
  • FIG. 8 is a block diagram of an apparatus for IPv6 address allocation according to Embodiment 2 of the present invention
  • FIG. 10 is a block diagram of a packet data gateway side of a method for IPv6 address allocation according to Embodiment 3 of the present invention.
  • FIG. 11 is a flow chart of a UE side of a method for IPv6 address allocation according to Embodiment 3 of the present invention.
  • FIG. 12 is a flowchart of a method for IPv6 address allocation according to Embodiment 3 of the present invention
  • FIG. 13 is a block diagram of an apparatus for IPv6 address allocation according to Embodiment 3 of the present invention
  • a block diagram of another IPv6 address assigned device A block diagram of another IPv6 address assigned device.
  • An embodiment of the present invention provides a method for allocating an IPv6 address. As shown in FIG. 1 , the method includes: Step 101: Receive a request message for allocating an address for a user equipment UE, where the request message includes a network domain where the UE is located. Identifier
  • Step 102 Determine whether an I ⁇ V 6 prefix corresponding to an identifier of a network domain where the UE is located is saved.
  • Step 103 When an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, send an IPv6 prefix corresponding to the identifier of the network domain where the UE is located to the UE.
  • Step 104 When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, assign an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the location where the UE is located. The relationship between the identifier of the network domain and the IPv6 prefix.
  • the execution body of each step may be a device for processing address allocation, and may specifically be a grouping.
  • the data gateway, the packet data gateway may be a PDN-GW, and may also be an S-GW in a PMIP scenario.
  • the embodiment of the invention further provides a method for IPv6 address allocation. As shown in FIG. 2, the method includes:
  • Step 201 Send a request message of an address allocation to a device that is configured to process an address, where the request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain an IPv6 prefix.
  • Step 202 Receive the IPv6 prefix that is obtained by the device that processes the address allocation according to the identifier of the network domain where the UE is located, and generate a global IPv6 address according to the IPv6 prefix.
  • the execution body of each step described above may be a UE.
  • An IPv6 address allocation method is provided by the embodiment of the present invention.
  • the device that processes the address allocation receives the identifier of the network domain where the UE is sent by the UE, and allocates an IPv6 prefix to the UE, if the processing is performed. If the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored, the IPv6 prefix is directly sent to the UE; if not, the identifier corresponding to the network domain where the UE is located is not saved.
  • the IPv6 prefix is used to allocate an IPv6 prefix to the UE, and the relationship between the identifier of the network domain where the UE is located and the IPv6 prefix is saved, and the UE generates a global IPv6 address according to the received IPv6 prefix.
  • the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, and the technical problem of the actual use is not satisfied.
  • the solution provided by the embodiment of the present invention may allocate the same IPv6 prefix to different UEs in the same network domain, and add IPv6. The free space of the address.
  • the embodiment of the present invention provides an IPv6 address allocation device, where the device may be a packet data gateway, and the packet data gateway may be a PDN-GW, and may also be a PMIP scenario.
  • the S-GW includes: a receiving unit 301, a determining unit 302, a first sending unit 303, and an executing unit 304.
  • the receiving unit 301 is configured to receive a request message for allocating an address for the user equipment UE, where the request message includes an identifier of a network domain where the UE is located;
  • the determining unit 302 is configured to determine whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved; a first sending unit 303, configured to: when an IPv6 prefix corresponding to an identifier of a network domain where the UE is located, is used, send, to the UE, an IPv6 prefix corresponding to an identifier of a network domain where the UE is located;
  • the performing unit 304 is configured to: when an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, allocate an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the The relationship between the identifier of the network domain in which the UE is located and the IPv6 prefix.
  • the embodiment of the present invention further provides a device for allocating an IPv6 address, and the device may be a UE.
  • the device includes: a sending unit 401 and an executing unit 402.
  • the sending unit 401 is configured to send, by the device that processes the address, a request message for the address allocation, where the request message includes an identifier of the network domain where the user equipment UE is located, and the identifier of the network domain where the UE is located is used to obtain the IPv6 Prefix
  • the executing unit 402 is configured to receive, by the device that processes the address allocation, the IPv6 prefix obtained according to the identifier of the network domain where the UE is located, and generate a global IPv6 address according to the IPv6 prefix.
  • An apparatus for allocating an IPv6 address receives, by a receiving unit, an identifier of a network domain where the UE is sent by the UE, and then the determining unit determines whether an identifier of the network domain where the UE is located is saved.
  • the first sending unit sends the IPv6 prefix to the UE; if the network domain where the UE is located is not saved
  • the IPv6 prefix corresponding to the identifier the execution unit allocates an IPv6 prefix to the UE, and saves the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix, and then the execution unit of the UE device receives the The IPv6 prefix generates a global IPv6 address.
  • the solution provided by the embodiment of the present invention may allocate the same IPv6 prefix to different UEs in the same network domain, and add IPv6. The free space of the address.
  • the embodiment of the present invention provides a method for allocating an IPv6 address, where the method is performed by a device that processes an address, and may be a packet data gateway, where the packet data gateway may be PDN-GW (Packet Data Network Gateway) can also be S-GW (Serving Ga teway Service Gateway) in the PMIP (Proxy Mob i le IP, Proxy Mobile IP) scenario, as shown in Figure 5.
  • PDN-GW Packet Data Network Gateway
  • S-GW Serving Ga teway Service Gateway
  • PMIP Proxy Mob i le IP, Proxy Mobile IP
  • Step 501 Receive a request message for allocating an address for the user equipment UE, where the request message includes an identifier of a network domain where the UE is located.
  • the MN after receiving the attach request message sent by the UE, the MN sends a create session request message to the PDN-GW, where the attach request message includes an identifier of the network domain where the UE is located.
  • the MME After receiving, by the PDN-GW, the MME sends a create session request message through the S-GW.
  • the MN is a mobility management network element, and is responsible for control plane functions such as user and session management, including selection of the S-GW and the PDN-GW, tracking area list management, and movement of the UE in an idle state. Management and other functions.
  • the S-GW is mainly responsible for functions such as data transmission, forwarding, and route switching of the UE user plane.
  • the PDN-GW is responsible for user address allocation, policy control, and enforcement of charging rules and lawful interception related functions.
  • the identifier of the network domain may be used to mark a group of UEs having the same characteristics, and the same characteristics may be in the same geographical location, or access to the same application, or belong to the same management entity management, or a combination of the above characteristics.
  • the identifier of the network domain includes an APN (Aces s Po int Name), a group identifier, a user group identifier, or the APN, the group identifier, and the user group.
  • APN Acces s Po int Name
  • the PDN-GW After the PDN-GW receives the request message for allocating an address for the UE, the PDN-GW sends a response message to the UE by using the MME, and includes any one of the steps 502 or 503:
  • Step 502 Send, by using the MME, an interface identifier that generates a link local address to the UE.
  • the PDN-GW sends an interface identifier that generates a link local address to the UE by using the solid E.
  • the link local address is an available address on the link within the local area network where the UE is located.
  • Step 503 Send, by using the MN, an interface identifier and a global interface identifier for generating a link local address, where the global interface identifier is used for IPv6 corresponding to an identifier of a network domain where the UE is located.
  • the prefix generates an IPv6 address.
  • the PDN-GW sends, by using the solid E, an interface identifier and a global interface identifier that generate a link local address, where the link local address is a link in a local area network where the UE is located. An available address, the link local address is used to complete communication of the local network, and the global interface identifier is used to generate an IPv6 address with an IPv6 prefix corresponding to the identifier of the network domain where the UE is located.
  • Step 504 Determine whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved.
  • the PDN-GW determines whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored, if the UE1 that is the same as the network domain where the UE is located, before the UE, to the PDN- If the GW requests the global IPv6 address, the corresponding relationship between the identifier of the network domain where the UE1 is located and the IPv6 prefix in the global IPv6 address is maintained on the PDN-GW, so that the UE requests When the global IPv6 address is used, the IPv6 prefix allocated by the PDN-GW is the same as that of the UE 1, so that different UEs in the same network domain may have the same I Pv 6 prefix and increase the IPv6 address. Free space and increase the utilization of IPv6 addresses.
  • Step 505 When an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved, send, to the UE, the IPv6 prefix corresponding to an identifier of a network domain that the UE is configured to be;
  • the PDN-GW sends an RA message to the UE by using the MN, and the RA message includes the IPv6 prefix used by the UE to generate a global IPv6 address.
  • the PDN-GW periodically sends the RA message to the UE through the MN E or sends the RA message to the UE through the solid E after receiving the RS request.
  • the UE2 when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored on the PDN-GW, if the UE2 that is the same as the network domain where the UE is located, the UE2 requests to allocate the global IPv6.
  • Step 506 When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, assign an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the location where the UE is located.
  • the relationship between the identifier of the network domain and the IPv6 prefix Specifically, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved on the PDN-GW, the PDN-GW allocates an IPv6 according to the identifier of the network domain where the UE is located.
  • the IPv6 prefix is carried in the RA message, and the identifier is sent to the UE by using the E, and the identifier of the network domain where the UE is located and the location allocated to the UE are saved on the PDN-GW.
  • the IPv6 address allocation method provided by the embodiment of the present invention when the UE having the same network domain as the UE is requested to request the global IPv6 address again, the PDN-GW allocates the IPv6 with the UE to the UE.
  • the schemes provided by the embodiments of the present invention may be the same as the technical solutions to the problem of the IPv6 address allocation in the prior art when the IPv6 address allocation is limited, and the IPv6 address allocation is limited. Different UEs in the network domain allocate the same IPv6 prefix, increase the available space of the IPv6 address, and satisfy the technical problem of actual use.
  • the embodiment of the present invention further provides a method for allocating an IPv6 address, where the execution subject of the method is a UE, as shown in FIG. 6, the method includes:
  • Step 601 Send an address allocation request message to the device that is configured to process the address, where the address allocation request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain an IPv6 prefix.
  • the device for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario.
  • the UE sends an address allocation request message to the PDN-GW through the mobility management network element ,E. Specifically, the UE sends an attach request message to the MME, and then the MME sends the packet to the packet data gateway. a session request message, where the attach request message includes an identifier of a network domain where the user equipment UE is located, and the create session request message includes an identifier of a network domain where the UE is located.
  • the create session request message sent by the solid E to the packet data gateway is sent by the S-GW to the PDN-GW.
  • the identifier of the network domain may be used to mark a group of UEs having the same characteristics, which may be in the same geographical location, or access the same application, or belong to the same management.
  • the identifier of the network domain includes an access point name APN, a group identifier, a user group identifier, or a combination of the APN, the group identifier, and the user group identifier.
  • the PDN-GW After the address allocation request message sent by the MME to the device that is configured to process the address, the PDN-GW sends a response message to the UE by using the MME, including any one of step 602 or step 603.
  • Step 602 Receive an interface identifier of the local address of the link that is sent by the PDN-GW by using the solid E, where the link local address is used to complete communication of the local network.
  • the MN after receiving the attach response message sent by the PDN-GW, the MN sends a create session response message to the UE, where the UE receives the create session response message sent by the MME, and the attaching
  • the response message includes an interface identifier for generating a link local address
  • the create session response message includes an interface identifier for generating a link local address
  • the MME receives the attach response message sent by the PDN-GW through the S -GW received.
  • Step 603 Receive an interface identifier and a global interface identifier of a link local address generated by the PDN-GW by using the solid E, where the global interface identifier is used for an identifier of a network domain where the UE is located.
  • the corresponding IPv6 prefix generates an IPv6 address.
  • the MN after receiving the attach response message sent by the PDN-GW, the MN sends a create session response message to the UE, where the UE receives the create session response message sent by the MME, and the attaching
  • the response message includes an interface identifier for generating a link local address and a global interface identifier
  • the creating the session response message includes an interface identifier for generating a link local address and a global interface identifier
  • the MME receives the PDN-
  • the attach response message sent by the GW is received by the S-GW.
  • Step 604 Generate a link local address according to the interface identifier of the link local address.
  • the UE generates a link local address according to the interface identifier of the link local address, where the link local address is an available address on a link in the local area network where the UE is located, and can be used to complete the local network.
  • the communication for example, sends a route request RS message and receives a route advertisement RA message.
  • the router may be the PDN-GW. If the UE does not receive the RA message sent by the PDN-GW within a certain time, the UE may actively send the RS to the PDN-GW. A message to obtain the RA message.
  • Step 605 Receive, by using the solid E, the IPv6 prefix that is sent by the PDN-GW according to an identifier of a network domain where the UE is located, and generate a global IPv6 address according to the IPv6 prefix. Specifically, the Receiving, by the UE, the RA message sent by the PDN-GW, where the RA message includes an IPv6 prefix used by the UE to generate a global address. A global IPv6 address is then generated based on the IPv6 prefix and a unique interface identifier identifying the UE.
  • the unique interface identifier that identifies the UE is an interface identifier generated according to a MAC (Media Access Control Layer) address; or the unique interface identifier that identifies the UE is a received global identifier. Interface identifier.
  • the UE needs to perform an address repetition check to ensure that the generated global IPv6 address is unique within the network domain where the UE is located.
  • the global IPv6 address refers to a unique address that can be used in the global public domain.
  • Step 606 the UE will generate the global IPv6 address to the PDN-GW 0 E by the Li
  • the UE sends the generated global IPv6 address to the MN, and then the MME sends the global IPv6 address to the PDN-GW through the S-GW to perform communication.
  • the IPv6 address allocation method is provided by the embodiment of the present invention.
  • the UE receives the IPv6 prefix sent by the PDN-GW, and the PDN-GW may allocate the same IPv6 prefix to different UEs in the same network domain, and then the UE is configured according to the UE.
  • the IPv6 prefix generates a global IPv6 address with a unique interface identifier that identifies the UE.
  • the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not satisfied with the technical problem of the actual use.
  • the solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain.
  • the same IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.
  • An embodiment of the present invention provides a method for IPv6 address allocation.
  • the method includes: Step 701: A user equipment UE sends an identifier of a network domain to which a device is allocated by using a mobility management network element E to a device that processes an address.
  • the identifier of the network domain where the UE is located is used to obtain an IPv6 prefix;
  • the device that processes the address allocation is a packet data gateway, where the packet data gateway is specifically
  • the PDN-GW can also be an S-GW in the PMIP scenario.
  • the following describes the packet data gateway as a PDN-GW as an example.
  • the UE sends an attach request message to the MME, and then the MME sends a create session request message to the packet data gateway, where the attach request message includes a network domain where the user equipment UE is located.
  • the identifier, the create session request message includes an identifier of a network domain in which the UE is located.
  • the create session request message sent by the MN to the packet data gateway is sent to the PDN-GW through the serving gateway S-GW.
  • the identifier of the network domain may be used to mark a group of UEs having the same characteristics, and the same characteristics may be in the same geographical location, or access to the same application, or belong to the same management entity management, or a combination of the above characteristics.
  • the identifier of the network domain includes an APN (Aces s Po int Name), a group identifier, a user group identifier, or the APN, the group identifier, and the user group.
  • APN Acces s Po int Name
  • Step 702 The PDN-GW receives, by using the MN, an identifier of a network domain where the UE is sent by the UE, where
  • the MN after receiving the attach request message sent by the UE, the MN sends a create session request message to the PDN-GW, where the attach request message includes an identifier of a network domain where the UE is located. And receiving, by the PDN-GW, the MME sends a create session request message by using the S-GW.
  • the PDN-GW After the PDN-GW receives the identifier of the network domain where the UE is sent by the UE, the PDN-GW includes any one of the steps 703 or 704:
  • Step 703 The PDN-GW sends, by using the MN, an interface identifier that generates a link local address to the UE, where the link local address is used to complete communication of the local network.
  • the PDN-GW sends an attach response message to the MME through the S-GW, and then the MME sends a Create Session Response message to the UE, where the attach response message includes generating a link local address.
  • the interface identifier includes: an interface identifier that generates a link local address, where the link local address specifically refers to an available address on a link in the local area network where the UE is located, The link local address is used to complete communication on the local network.
  • Step 704 The PDN-GW sends, by using the MN E, an interface identifier and a global interface identifier for generating a link local address to the UE, where the global interface identifier is used for the network domain where the UE is located.
  • the IPv6 prefix corresponding to the identifier generates an IPv6 address.
  • the PDN-GW sends an attach response message to the MME through the S-GW, and then the MME sends a create session response message to the UE, where the attach response message includes generating a link.
  • An interface identifier of the local address and a global interface identifier the create session response message including an interface identifier and a global interface identifier for generating a link local address.
  • the global interface identifier is an identifier for generating a global IPv6 address by the UE, and the link local address specifically refers to an available address on a link in a local area network where the UE is located.
  • Step 705 The UE generates a link local address according to the interface identifier of the received link local address.
  • the UE generates a link local address according to the received interface identifier of the link local address, where the link local address is an available address on a link in the local area network where the UE is located, and may be used
  • the communication of the local network is completed, for example, sending a route request RS message and receiving a route advertisement RA message.
  • the router may be the PDN-GW. If the UE does not receive the RA message sent by the PDN-GW within a certain period of time, the UE may actively send the RS message to the PDN-GW to obtain the RA message.
  • Step 706 The PDN-GW determines whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved.
  • the PDN-GW determines whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored, if the UE1 that is the same as the network domain where the UE is located, before the UE, to the PDN- If the GW requests the global IPv6 address, the corresponding relationship between the identifier of the network domain where the UE1 is located and the IPv6 prefix in the global IPv6 address is maintained on the PDN-GW, so that the UE requests When the global IPv6 address is used, the IPv6 prefix allocated by the PDN-GW is the same as that of the UE 1, so that different UEs in the same network domain may have the same I Pv 6 prefix and increase the IPv6 address. Free space and increase the utilization of IPv6 addresses.
  • Step 707 When an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, The IPv6 prefix should be;
  • the PDN-GW sends an RA message to the UE by using the MN, the RA message includes an IPv6 prefix corresponding to an identifier of a network domain where the UE is located, and the IPv6 prefix is used by the The UE generates a global IPv6 address.
  • the PDN-GW periodically sends the RA message to the UE through the MME or sends the RA message to the UE through the MME after receiving the RS request.
  • the UE2 when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored on the PDN-GW, if the UE2 that is the same as the network domain where the UE is located, the UE2 requests to allocate the global IPv6.
  • Step 708 When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the PDN-GW allocates an IPv6 prefix to the UE, and sends the IPv6 prefix to the UE, and saves And the relationship between the identifier of the network domain where the UE is located and the IPv6 prefix; specifically, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved on the PDN-GW, The PDN-GW allocates an IPv6 prefix according to the identifier of the network domain in which the UE is located, and the IPv6 prefix is carried in the RA message and sent to the UE by the MME, and is saved on the PDN-GW. a correspondence between an identifier of a network domain in which the UE is located and the IPv6 prefix allocated to the UE.
  • a method for allocating an IPv6 address according to an embodiment of the present invention when a UE having the same network domain as the UE is requested to request a global IPv6 address again, the PDN-GW allocates an IPv6 with the UE to the UE.
  • the schemes provided by the embodiments of the present invention may be the same as the technical solutions to the problem of the IPv6 address allocation in the prior art when the IPv6 address allocation is limited, and the IPv6 address allocation is limited. Different UEs in the network domain allocate the same IPv6 prefix, increase the available space of the IPv6 address, and satisfy the technical problem of actual use.
  • Step 709 The UE receives the sixth generation Internet Protocol IPv6 prefix sent by the PDN-GW by using the solid E, and generates a global IPv6 address according to the IPv6 prefix.
  • the identifier generates a global IPv6 address.
  • the unique interface identifier that identifies the UE is an interface identifier generated according to a MAC (Media Acces s Control) address; or the unique interface identifier that identifies the UE is received The global interface identifier.
  • the UE needs to perform an address repetition check to ensure that the generated global IPv6 address is unique within the network domain where the UE is located.
  • the global IPv6 address refers to a unique address that can be used in the global public domain.
  • Step 710 the UE will generate the global IPv6 address to the PDN-GW 0 E by the Li
  • the UE sends the generated global IPv6 address to the MN, and then the MME sends the global IPv6 address to the PDN-GW through the S-GW to perform communication.
  • the PDN-GW directly allocates an IPv6 prefix to the UE according to the identifier of the network domain where the UE is located, and then combines with the interface identifier generated by the UE itself. Become a global IPv6 address.
  • the IPv6 prefix is carried in the RA message by the PDN-GW to be sent to the UE by using the solid E.
  • the IPv6 prefix may be managed by the PDN-GW or may be externally obtained by the PDN-GW.
  • the IPv6 prefix included in the RA message is unique. Since the IPv6 prefix assigned to the UE is unique each time, and the resources of the IPv6 prefix are limited, the IPv6 address allocation is tight.
  • a method for allocating an IPv6 address according to an embodiment of the present invention by using an identifier of a network domain where the UE is located and the IPv6 prefix corresponding to the PDN-GW in the device group allocated by the processing address
  • a relationship may be assigned to different UEs in the same network domain with the same IPv6 prefix, and then a global IPv6 address is generated according to the IPv6 prefix.
  • the IPv6 address allocation when the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not satisfied with the technical problem of the actual use.
  • the solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain.
  • An embodiment of the present invention provides an IPv6 address allocation device, where the device may be a UE. As shown in FIG. 8, the device includes: a sending unit 401, an executing unit 402, a first receiving unit 403, and a second receiving unit 404, and receiving Module 405, generating module 406.
  • the sending unit 401 is configured to send, by the device that processes the address, a request message for the address allocation, where the request message includes an identifier of the network domain where the user equipment UE is located, and the identifier of the network domain where the UE is located is used to obtain the IPv6 Prefix
  • the device for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario.
  • the sending unit 401 is specifically configured to: send an attach request message to the mobile management network element E, and then send the create session request message to the packet data gateway, where the attach request message includes the user equipment UE An identifier of the network domain in which the session request message includes an identifier of the network domain in which the UE is located, and the session creation request message sent by the MME to the packet data gateway is through the serving gateway S-GW. Sent to the PDN-GW.
  • a first receiving unit 403 configured to receive an interface identifier of the link local address generated by the PDN-GW sent by the MN, where the link local address is used to complete communication of the local network; or, the second receiving The unit 404 is configured to receive an interface identifier and a global interface identifier of the link local address generated by the PDN-GW by using the MME, where the global interface identifier is used to identify with a network domain where the UE is located.
  • the IPv6 prefix corresponding to the character generates an IPv6 address;
  • the session response message is sent by the solid E, and the session response message specifically refers to an available address on the link in the local area network where the UE is located, including an interface for generating a link local address.
  • the identifier or the interface identifier and the global interface identifier that generate the link local address and are sent by the MME after receiving the attach response message sent by the PDN-GW, where the attach response message includes generating a link.
  • the interface identifier of the local address or the interface identifier and the global interface identifier that generate the link local address specifically, after the MME receives the attach response message sent by the PDN-GW through the S-GW Sending a session creation response message to the UE.
  • the UE then generates a link local address according to the interface identifier of the link local address, and the link local address can be used to complete communication of the local network. If the UE is within a certain time If the RA message sent by the PDN-GW is not received, the UE may actively send the RS message to the PDN-GW to obtain the RA message.
  • the executing unit 402 is configured to receive a sixth-generation Internet Protocol I Pv6 prefix sent by the PDN-GW, and generate a global IPv6 address according to the IPv6 prefix.
  • the global IPv6 address refers to a unique address that can be used in the global public domain.
  • the receiving module 405 in the executing unit 402 receives an RA message sent by the PDN-GW through the MN, the RA message includes an IPv6 prefix used by the UE to generate a global address; and then the performing The generating module 406 in the unit 402 generates a global IPv6 address according to the IPv6 prefix and a unique interface identifier that identifies the UE, where the unique interface identifier that identifies the UE is an interface identifier generated according to the MAC address. Or; the unique interface identifier that identifies the UE is the received global interface identifier.
  • the interface identifier generated by the UE itself is an interface identifier generated according to a MAC (Media Acces s Control) address.
  • the IPv6 prefix may be an IPv6 prefix that is stored on the PDN-GW and that corresponds to an identifier of a network domain where the UE is located, or may be an IPv6 prefix allocated by the PDN-GW to the UE. And storing the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix, so that when the UE with the same network domain as the UE requests the global IPV 6 address, the PDN-GW will It is assigned the same IPv6 prefix as the IPv6 prefix of the UE.
  • the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not sufficient for the technical problem of the actual use.
  • the solution provided by the embodiment of the present invention can enable different UEs in the same network domain to have different UEs in the same network domain.
  • the same IPv6 prefix increases the available space of the IPv6 address and improves the utilization of the IPv6 address.
  • the UE needs to perform an address re-check to ensure that the generated global IPv6 address is unique within the network domain where the UE is located.
  • the embodiment of the present invention further provides an apparatus for allocating an IPv6 address, where the device may be a packet data gateway, where the packet data gateway may be a PDN-GW, or may be an S-GW in a PMIP scenario.
  • the device includes: a receiving unit 301, a determining unit 302, a first sending unit 303, an executing unit 304, a second sending unit 305, and a third sending unit 306.
  • the receiving unit 301 is configured to receive a request message for allocating an address for the user equipment UE, where the request message includes an identifier of a network domain where the UE is located;
  • the receiving unit 301 is specifically configured to: receive a LSP to send a session request message, where the session request message includes an identifier of a network domain where the UE is located, and the create session request message is received by the MN And sending, by the UE, an attach request message, where the attach request message includes an identifier of a network domain where the UE is located.
  • the second sending unit 305 sends an interface identifier for generating a link local address to the UE by using the MME,
  • the link local address is used to complete communication of the local network, specifically, sending an attach response message to the MME, and then sending the session response message to the UE, where the attach response message includes Generating an interface identifier of the link local address, where the create session response message includes an interface identifier for generating a link local address; the link local address specifically refers to an available link on the link in the local area network where the UE is located the address of.
  • the third sending unit 306 sends, by using the MME, an interface identifier that generates a link local address to the UE.
  • an interface identifier that generates a link local address to the UE.
  • the global interface identifier is used to generate an IPv6 address with an IPv6 prefix corresponding to the identifier of the network domain where the UE is located;
  • the method is configured to send an attach response message to the MME, and then the MME sends a create session response message to the UE, where the attach response message includes an interface identifier and a global interface identifier for generating a link local address.
  • the creating a session response message includes an interface identifier and a global interface identifier for generating a link local address, where the link local address specifically refers to an available address on a link in the local area network where the UE is located.
  • the global interface identifier is used by the UE to generate a global IPv6 address.
  • the determining unit 302 is configured to determine whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved.
  • the PDN-GW determines whether the UE is located with the UE.
  • the first sending unit 303 is configured to: when storing an IPv6 prefix corresponding to the identifier of the network domain where the UE is located, send an IPv6 prefix corresponding to the identifier of the network domain where the UE is located to the UE;
  • the MME And sending, by the MME, an RA message to the UE, where the RA message includes an IPv6 prefix used by the UE to generate a global IPv6 address.
  • the global IPv6 address refers to a unique address that can be used in the global public domain.
  • the performing unit 304 is configured to: when an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, allocate an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the The relationship between the identifier of the network domain in which the UE is located and the IPv6 prefix.
  • the UE After the UE generates the global IPv6 address according to the received IPv6 prefix, the UE receives the global IPv6 address sent by the UE to perform communication.
  • An apparatus for allocating an IPv6 address the determining, by the determining unit, whether the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, the first sending unit and the network domain where the UE is located.
  • the IPv6 prefix corresponding to the identifier is sent to the UE or the execution unit sends an IPv6 prefix allocated to the UE to the UE, and saves the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix.
  • the same IPv6 prefix when requesting the global IPv6 address from the same UE as the network domain in which the UE is located.
  • the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not sufficient for the technical problem of the actual use.
  • the solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain.
  • the same IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.
  • An embodiment of the present invention provides a method for allocating an IPv6 address, where the method is performed by an apparatus for processing an address, and may be a packet data gateway, where the packet data gateway may be a PDN-GW, and in a PMIP scenario. It can be an S-GW, as shown in FIG. 10, the method includes:
  • Step 1001 The device that processes the address allocation negotiates with the dynamic host configuration protocol DHCPv6 server. Whether to support the ability of the DHCPv6 server to allocate a global IPv6 address;
  • the device for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario.
  • the DHCPv6 server supports the capability of the DHCPv6 server to allocate a global IPv6 address, perform the following process. If the DHCPv6 server does not support the capability of the DHCPv6 server to allocate a global IPv6 address, perform according to the prior art. .
  • Step 1002 Receive a request message for allocating an address for the user equipment UE, where the request message includes an identifier of a network domain where the UE is located;
  • the MN after receiving the attach request message sent by the UE, the MN sends a create session request message to the PDN-GW, where the attach request message includes an identifier of the network domain where the UE is located.
  • the MME After receiving, by the PDN-GW, the MME sends a create session request message through the S-GW.
  • the identifier of the network domain may be used to mark a group of UEs having the same characteristics, and the same characteristics may be in the same geographical location, or access to the same application, or belong to the same management entity management, or a combination of the above characteristics.
  • the identifier of the network domain includes an APN (Aces s Po int Name), a group identifier, a user group identifier, or the APN, the group identifier, and the user group.
  • APN Acces s Po int Name
  • the step 1 001 may be pre-negotiated and configured on the PDN-GW before the method of the IPv6 address allocation is performed, or may be the UE in the step 1 002 to the PDN- When the GW sends a packet containing the identifier of the network domain where the UE is located, it is carried in the packet and then sent to the PDN-GW to trigger.
  • Step 1003 Send, by using the MME, an interface identifier that generates a link local address to the UE, and whether the DHCPv6 server has an identifier that supports the capability of allocating the global IPv6 address.
  • the PDN-GW passes the Transmitting the interface identifier of the link local address to the UE and whether the DHCPv6 server has an identifier supporting the capability of allocating the global IPv6 address, and whether the DHCPv6 server has the capability of supporting the allocation of the global IPv6 address.
  • the identifier may be represented by DHCP-FLAG, and if the DHCPv6 server has the capability to support allocation of the global IPv6 address, the PDN-GW sends the DHCP-FLAG identifier to the UE, If the DHCPv6 server does not have the capability to support the allocation of the global IPv6 address, the PDN-GW does not send the DHCP-FLAG identifier to the UE, to inform the UE whether the DHCPv6 can be sent to the DHCPv6.
  • the server requests the global IPv6 address.
  • Step 1004 Determine whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved.
  • the PDN-GW After receiving the DHCP Reques t message, the PDN-GW checks the identifier of the network domain to which the DHCP Reques t message belongs, that is, the identifier of the network domain where the UE is located, and then determines whether the information is saved.
  • Step 1005 When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, the PDN-GW sends the IPv6 prefix to the dynamic host configuration protocol DHCPv6 server, and the DHCPv6 server Transmitting, by the UE, a global IPv6 address carrying the IPv6 prefix; specifically, when storing an IPv6 prefix corresponding to an identifier of a network domain where the UE is located, the PDN-GW uses the IPv6 prefix and the DHCP Reques The t message is forwarded to the DHCPv6 server, and after receiving the DHCP Rep ly message sent by the DHCPv6 server, the message is forwarded to the UE.
  • the DHCP Reply message includes a global IPv6 address carrying the IPv6 prefix.
  • Step 1006 When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the PDN-GW parses the DHCP Reply message sent by the DHCPv6 server to obtain an IPv6 prefix, and carries the IPv6 prefix. The global IPv6 address is sent to the UE, and the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix are saved;
  • the DHCP Reply message includes a carrier.
  • the PDN-GW parses the global IPv6 address in the DHCP Reply message, and obtains the IPv6 prefix corresponding to the identifier of the network domain where the UE is located, and in the The PDN-GW saves the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix, and then the PDN-GW forwards the global IPv6 address carrying the IPv6 prefix to the UE.
  • the global IPv6 address is used, the same IPv6 prefix is assigned.
  • the IPv6 address allocation is performed in the prior art, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight.
  • the solution provided by the embodiment of the present invention may be the same for different UEs in the same network domain.
  • the IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.
  • the embodiment of the present invention further provides a method for allocating an IPv6 address, where the method is performed by the UE, as shown in FIG.
  • Step 1101 Send an address allocation request message to the device that is configured to process the address, where the address allocation request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain an IPv6 prefix.
  • the device for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario.
  • the UE sends an address allocation request message to the PDN-GW through the mobility management network element ,E. Specifically, the UE sends an attach request message to the MME, and then the MME sends the message to the packet data gateway.
  • a session request message is created, where the attach request message includes an identifier of a network domain where the user equipment UE is located, and the create session request message includes an identifier of a network domain where the UE is located.
  • the create session request message sent by the packet to the packet data gateway is sent to the PDN-GW through the serving gateway S-GW.
  • the identifier of the network domain may be used to mark a group of UEs having the same characteristics, which may be in the same geographical location, or access to the same application or belong to the same management entity management, or a combination of the above characteristics.
  • the identifier of the network domain includes an access point name APN, a group identifier, a user group identifier, or a combination of the APN, the group identifier, and the user group identifier.
  • Step 1102 Receive, by the PDN-GW, a link local address generated by the MME.
  • the MME After receiving the attach response message sent by the PDN-GW, the MME sends a create session response message to the UE, where the create session response message includes an interface identifier for generating a link local address and the DHCPv6 Whether the server has an identifier for assigning the global IPv6 address capability, the attach response message includes an interface identifier for generating a link local address, and an identifier of whether the DHCPv6 server has the capability of allocating the global IPv6 address, The E-E receives the Echo Reply message sent by the PDN-GW, and is received by the S-GW.
  • the link local address specifically refers to an available address on the link in the local area network where the UE is located.
  • Step 1103 Generate a link local address according to the interface identifier of the link local address.
  • the UE generates a link local address according to the interface identifier of the link local address, where the link local address is where the UE is located.
  • An available address on the link within the local area network that can be used to complete local network communication and is used to initiate DHCP Reques requests.
  • Step 1104 The UE receives a DHCP Reply message sent by the DHCPv6 server, where the DHCP Reply message includes a global IPv6 address carrying the IPv6 prefix.
  • the UE receives, by using the MME and the PDN-GW, a DHCP Reply message sent by the DHCPv6 server, where the DHCP Reply message includes a global IPv6 address of the UE that carries the IPv6 prefix.
  • An IPv6 address allocation method is provided by the embodiment of the present invention.
  • the UE is assigned the same IPv6 prefix.
  • the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not satisfied with the technical problem of the actual use.
  • the solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain.
  • the same IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.
  • the embodiment of the invention provides a method for IPv6 address allocation. As shown in FIG. 12, the method includes:
  • Step 1201 Processing the address allocation device and the dynamic host configuration protocol DHCPv6 server protocol Whether the quotient supports the ability of the DHCPv6 server to allocate a global IPv6 address;
  • the device that processes the address allocation is a packet data gateway, where the packet data gateway is specifically
  • PDN-GW can also be S-GW in the PMIP scenario.
  • the DHCPv6 server supports the capability of the DHCPv6 server to allocate a global IPv6 address, perform the following process. If the DHCPv6 server does not support the capability of the DHCPv6 server to allocate a global IPv6 address, perform according to the prior art. .
  • Step 1202 The user equipment UE sends the identifier of the network domain where the UE is located to the device that processes the address through the mobility management network element E, and the identifier of the network domain where the UE is located is used to obtain an IPv6 prefix.
  • the identifier of the network domain may be used to mark a group of UEs having the same characteristics, and the same characteristics may be UEs in the same geographical location, or access to the same application, or belong to the same management entity management, or A combination of features.
  • the identifier of the specific network domain may include an APN (Aces s Po int Name), a group identifier, a user group identifier, or the APN, the group identifier, and the user.
  • APN Acces s Po int Name
  • step 1201 may be pre-negotiated and configured on the PDN-GW before the method for performing the IPv6 address allocation, or may be sent by the UE to the PDN-GW in step 1202.
  • the packet containing the identifier of the network domain where the UE is located is carried in the packet and then sent to the PDN-GW for triggering.
  • Step 1203 The PDN-GW receives, by using the MN E, an identifier of a network domain where the UE is sent by the UE, and sends an interface identifier that generates a link local address to the UE and the DHCPv6 server. Whether there is an identifier for assigning the global IPv6 address capability;
  • Whether the DHCPv6 server has an identifier capable of supporting the allocation of the global IPv6 address may be represented by a DHCP-FLAG, and if the DHCPv6 server has the capability of supporting the allocation of the global IPv6 address, the PDN-GW to the UE Sending the DHCP-FLAG identifier, if the DHCPv6 server does not have the capability to support the allocation of the global IPv6 address, the PDN-GW does not send the DHCP-FLAG identifier to the UE, to notify Whether the UE can request the global IPv6 address from the DHCPv6 server.
  • Step 1204 The UE receives an interface identifier of a link local address generated by the PDN-GW through the MN, and an identifier of whether the DHCPv6 server has the capability of allocating the global IPv6 address.
  • Step 1205 The UE generates a link local address according to an interface identifier that generates a link local address.
  • the UE generates a link local address according to the interface identifier that generates the link local address, and the link local address can be used to complete communication of the local network, and is used to initiate a DHCP Reques request.
  • Step 1206 The UE sends a DHCP Reques t message to the DHCPv6 server, where the DHCP Reques t message requests the UE to allocate the global IPv6 address to the DHCPv6 server.
  • DHCP Reques t message sent by the UE to the DHCPv6 server by using the MME and the PDN-GW, where the DHCP Reques t message is sent by the UE to the DHCPv6 server in the form of a packet.
  • Step 1207 The PDN-GW determines whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved.
  • the PDN-GW After receiving the DHCP Reques t message, the PDN-GW checks the identifier of the network domain to which the DHCP Reques t message belongs, that is, the identifier of the network domain where the UE is located, and then determines whether the information is saved.
  • Step 1208 When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, the PDN-GW sends the IPv6 prefix to the dynamic host configuration protocol DHCPv6 server, and the DHCPv6 server provides the The UE sends a global IPv6 address carrying the IPv6 prefix. Specifically, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored, the PDN-GW is determined according to the identifier of the network domain where the UE is located.
  • the DHCP Rep ly message includes a global IPv6 address carrying the IPv6 prefix.
  • Step 1209 When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the DHCP Reply message sent by the DHCPv6 server is parsed to obtain an IPv6 prefix, and the global IPv6 address carrying the IPv6 prefix is sent to the And the UE saves a relationship between an identifier of a network domain where the UE is located and the IPv6 prefix;
  • the DHCP Reply message includes carrying the IPv6 a global IPv6 address of the prefix
  • the PDN-GW parses the global IPv6 address in the DHCP Reply message, and obtains the IPv6 prefix corresponding to the identifier of the network domain where the UE is located, and in the PDN-GW Preserving the relationship between the identifier of the network domain where the UE is located and the IPv6 prefix, and then the PDN-GW forwards the DHCP Reply message to the UE, and the global IPv6 address of the IPv6 prefix is to be carried. Sent to the UE.
  • Step 1210 The UE receives, by using the solid E, a global IPv6 address that is sent by the PDN-GW and includes an IPv6 prefix.
  • the UE receives, by using the MME and the PDN-GW, a DHCP Reply message sent by the DHCPv6 server, where the DHCP Reply message includes a global IPv6 address of the UE that carries the IPv6 prefix.
  • the PDN-GW allocates an IPv6 prefix to the UE according to the identifier of the network domain where the UE is located, and then combines with the interface identifier generated by the UE to form a global IPv6 address.
  • the IPv6 prefix is carried in the RA message by the PDN-GW to be sent by the Pseudo E to the UE, and the IPv6 prefix may be managed by the PDN-GW or may be externally obtained by the PDN-GW.
  • the IPv6 prefix included in the RA message is unique. Since the IPv6 prefix assigned to the UE is unique each time, and the resources of the IPv6 prefix are limited, the IPv6 address allocation is tight.
  • the DHCPv6 server sends a global IPv6 address carrying the IPv6 prefix to the UE, and saves, on the PDN-GW, an identifier and a network domain where the UE is located.
  • the relationship corresponding to the IPv6 prefix may be assigned to the same IPv6 prefix when different UEs in the same network domain request the global IPv6 address.
  • the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which does not satisfy the technical problem of the actual use.
  • the solution provided by the embodiment of the present invention can allocate the same IPv6 prefix to different UEs in the same network domain, and increase Free space for IPv6 addresses and increased utilization of IPv6 addresses.
  • the embodiment of the present invention provides a device for allocating an IPv6 address, and the device may be a UE. As shown in FIG. 13, the device includes: a sending unit 401, a third receiving unit 407, and a receiving module 408.
  • the sending unit 401 is configured to send, to the device that processes the address, an address allocation request message, where the address allocation request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain IPv6 prefix;
  • the device group for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario.
  • the sending unit 401 is specifically configured to: send an attach request message to the mobile management network element E, and then send the create session request message to the PDN-GW by using the S-GW, and the attach request message And including an identifier of a network domain where the user equipment UE is located, where the creation session request message includes an identifier of a network domain where the UE is located.
  • a third receiving unit 407 configured to receive, by the PDN-GW, an interface identifier for generating a link local address sent by the MN and whether the DHCPv6 server has an identifier for assigning the global IPv6 address capability;
  • the method includes an interface identifier for generating a link local address, and an identifier of whether the DHCPv6 server has the capability of allocating the global IPv6 address, where the attach response message includes an interface identifier for generating a link local address and the DHCPv6 server Whether there is an identifier for assigning the global IPv6 address capability; whether the DHCPv6 server has the ability to support allocation of the global IPv6 address is jointly negotiated by the PDN-GW and the DHCPv6 server.
  • a link local address is then generated according to the interface identifier that generates the link local address, and the link local address can be used to complete communication of the local network.
  • the link local address specifically refers to an available address on a link in a local area network where the UE is located.
  • the receiving module 408 is configured to receive a DHCP Reply message sent by the DHCPv6 server, where the DHCP Reply message includes a global IPv6 address of the UE that carries the IPv6 prefix, where the global IPv6 address is used in the global public domain. , the only address.
  • the IPv6 prefix may be an IPv6 prefix that is stored on the PDN-GW and that corresponds to an identifier of a network domain where the UE is located, or may be a DHCP Reply message sent from the DHCPv6 server to the UE. Parsing the IPv6 prefix, and storing the identifier of the network domain where the UE is located, and the relationship corresponding to the IPv6 prefix, so that when the UE with the same network domain as the UE requests the global IPv6 address, Different UEs of the same network domain have the same IPv6 prefix, increase the available space of the IPv6 address, and improve the utilization of the IPv6 address.
  • the embodiment of the present invention further provides an apparatus for allocating an IPv6 address
  • the device may be a packet data gateway, where the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario.
  • the device includes: a receiving unit 301, a determining unit 302, a sending module 307, an executing module 308, a negotiating unit 309, and a fourth transmitting unit 310.
  • the negotiating unit 309 is configured to negotiate with the DHCPv6 server whether the DHCPv6 server supports the ability to allocate a global IPv6 address.
  • the receiving unit 301 is configured to receive a request message for allocating an address for the user equipment UE, where the address allocation request message includes an identifier of a network domain where the UE is located;
  • the receiving unit 301 is specifically configured to: receive, by the MME, a create session request message, where the create session request message includes an identifier of a network domain where the UE is located, and the create session request message sent by the MME is After receiving the attach request message sent by the UE, the attach request includes the identifier of the network domain where the UE is located.
  • a fourth sending unit 310 configured to: if the DHCPv6 server supports the capability of the DHCPv6 server to allocate a single IPv6 address, send, by using the MN to the UE, an interface identifier that generates a link local address and whether the DHCPv6 server is An identifier having the ability to allocate the global IPv6 address;
  • the determining unit 302 determines whether the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved.
  • the PDN-GW checks whether the network where the UE is located is saved.
  • the identifier of the domain corresponds to the IPV 6 prefix.
  • the sending module 307 sends the IPv6 prefix to the dynamic host configuration protocol DHCPv6 server, and the DHCPv6 server sends the bearer to the UE.
  • the global IPv6 address of the IPv6 prefix is saved.
  • the execution module 308 parses the DHCP Rep ly message sent by the DHCPv6 server to obtain an IPv6 prefix, and sends the global IPv6 address carrying the IPv6 prefix. And the relationship between the identifier of the network domain where the UE is located and the IPv6 prefix is saved.
  • the PDN-GW parses the global IP address of the DHCP Rep1 y message to obtain an identifier of the network domain where the UE is located. Corresponding the IPv6 prefix, and storing, on the PDN-GW, an identifier of a network domain where the UE is located and a relationship corresponding to the IPv6 prefix, and then the PDN-GW forwards the DHCP Reply message to the PDN-GW.
  • the UE, the DHCP Reply message includes a global IPv6 address carrying the IPv6 prefix.
  • An apparatus for allocating an IPv6 address by using a viewing unit to check whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved, the first sending unit includes a global IPv6 of the IPv6 prefix.
  • the address is sent to the UE, or the execution unit allocates an IPv6 prefix to the UE, and saves the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix, so that the network where the UE is located can be given.
  • the same IPv6 prefix is allocated.
  • the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not satisfied with the technical problem of the actual use.
  • the solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain.
  • the same IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.

Landscapes

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

Abstract

The present invention discloses an Internet Protocol version 6 (IPv6) address allocation method and apparatus, relates to the technical field of communications, and can allocate the same IPv6 prefix for the different User Equipments (UEs) in the same network domain, to increase the available space of IPv6 addresses. The embodiment of the present invention includes: transmitting an address allocation request message to an address allocation processing device by a UE, wherein the request message includes an identifier of the network domain where the UE is located, then receiving an IPv6 prefix transmitted from the address allocation processing device, and generating a global IPv6 address according to the IPv6 prefix. The solutions provided by the embodiments of the present invention are suitable for address allocation.

Description

IPv6地址分配的方法及设备 技术领域  Method and device for IPv6 address allocation
本发明涉及通信技术领域, 尤其涉及 IPv6地址分配的方法及设备。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a method and device for IPv6 address allocation. Background technique
随着移动宽带时代的到来, 用户需要随时随地的使用宽带接入服务, 于 是出现了 EPS ( Evo lved Packet Sys tem, 演进的分组系统), 其中所述 EPS的 核心部分为 EPC ( Evolved Packet Core, 演进分组核心)。 现在所述 EPC采用 全 IP( Internet Protoco l ,互联网协议)扁平架构,所以当 UE( User Equi pment , 用户设备)需要建立 PDN ( Packet Data Network, 分组数据网)连接的时候, 首先需要获取一个可用的 IP地址, 并使用所述 IP地址来和外部网络通信。 因此地址分配是 UE 创建 PDN 连接的一个必要步骤。 随着 IPv4 ( Internet Protocol Ver s ion 4 , 第四代互联网十办议) 向 IPv6的寅进, IPv6地址的分酉己 在 3GPP ( The 3rd Generat ion Par tnership Project , 第三代合作伙伴计戈 ) 系统中变得越来越重要。  With the advent of the mobile broadband era, users need to use broadband access services anytime and anywhere, so EPS (Evo lved Packet System) has emerged. The core part of the EPS is EPC (Evolved Packet Core, Evolved packet core). The EPC now adopts an all-IP (Internet Protocol) (Internet Protocol) flat architecture. Therefore, when the UE (User Equipment) needs to establish a PDN (Packet Data Network) connection, it is necessary to obtain an available first. IP address, and use the IP address to communicate with the external network. Therefore, address assignment is a necessary step for the UE to create a PDN connection. With the advancement of IPv4 (Internet Protocol Protocol 4) to IPv6, the IPv6 address has been distributed in 3GPP (The 3rd Generation Partnership Project). The system is becoming more and more important.
现有技术中对 3GPP网络中的 IPv6进行地址分配时, PDN-GW( Packet Data Network Gateway, 分组数据网关)根据所述 UE发送的地址类型需求, 给所 述 UE分配一个 IPv6前缀, 所述 IPv6前缀可以是由 PDN-GW管理, 也可以由 PDN-GW从外部获取, 所述 UE根据分配的所述 IPv6前缀, 与所述 UE自己生成 的接口标识符生成一个全局 IPv6地址, 用于后面的数据传输。  When the address allocation is performed on the IPv6 in the 3GPP network in the prior art, the PDN-GW (Packet Data Network Gateway) allocates an IPv6 prefix to the UE according to the address type requirement sent by the UE, and the IPv6 prefix. The prefix may be managed by the PDN-GW or may be obtained by the PDN-GW. The UE generates a global IPv6 address with the interface identifier generated by the UE according to the allocated IPv6 prefix, and is used for the following. data transmission.
然而, 现有技术中在进行 IPv6 地址分配时, IPv6 前缀资源有限, 导致 IPv6地址分配紧张, 不满足现实使用的技术问题。 发明内容  However, in the prior art, when IPv6 address allocation is performed, the IPv6 prefix resource is limited, resulting in a tight IPv6 address allocation, which does not satisfy the technical problem of actual use. Summary of the invention
本发明的实施例提供一种 IPv6地址分配的方法及设备, 可以为相同网络 域中的不同 UE 分配相同的 IPv6前缀, 增加 IPv6地址的可用空间。  The embodiments of the present invention provide a method and a device for allocating IPv6 addresses, which can allocate the same IPv6 prefix to different UEs in the same network domain, and increase the available space of the IPv6 address.
为达到上述目的, 本发明的实施例采用如下技术方案: 一种 IPv6地址分配的方法, 包括: In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions: A method for IPv6 address allocation, including:
接收用户设备 UE发送的地址分配请求消息, 所述地址分配请求消息中包 括所述 UE所在的网络域的标识符;  Receiving an address allocation request message sent by the user equipment UE, where the address allocation request message includes an identifier of a network domain where the UE is located;
判断是否保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀; 当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 向所述 UE发送与所述 UE所在的网络域的标识符对应的所述 IPv6前缀;  Determining whether the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved; when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, sending the UE to the UE The IPv6 prefix corresponding to the identifier of the network domain;
当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 为所 述 UE分配一个 IPv6前缀,并保存所述 UE所在的网络域的标识符和所述 IPv6 前缀对应的关系。  When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the IPv6 prefix is allocated to the UE, and the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix are saved.
一种 IPv6地址分配的方法, 其特征在于, 包括:  A method for allocating an IPv6 address, comprising:
向处理地址分配的设备发送地址分配请求消息, 所述地址分配请求消息 中包括用户设备 UE所在的网络域的标识符, 所述 UE所在的网络域的标识符 用于获取 IPv6前缀;  Sending an address allocation request message to the device that is configured to process the address, where the address allocation request message includes an identifier of the network domain where the user equipment UE is located, and the identifier of the network domain where the UE is located is used to obtain an IPv6 prefix;
接收所述处理地址分配的设备发送的根据所述 UE所在的网络域的标识符 获取的 IPv6前缀, 并根据所述 IPv6前缀生成全局 IPv6地址。  Receiving, by the device that processes the address allocation, an IPv6 prefix obtained according to an identifier of a network domain where the UE is located, and generating a global IPv6 address according to the IPv6 prefix.
一种 IPv6地址分配的设备, 包括:  A device for IPv6 address allocation, including:
接收单元, 用于接收为用户设备 UE发送的地址分配的请求消息, 所述请 求消息中包括所述 UE所在的网络域的标识符;  a receiving unit, configured to receive a request message for an address that is sent by the user equipment, where the request message includes an identifier of a network domain where the UE is located;
判断单元, 用于判断是否保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀;  a determining unit, configured to determine whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved;
第一发送单元, 用于当保存有与所述 UE 所在的网络域的标识符对应的 IPv6前缀时,向所述 UE发送与所述 UE所在的网络域的标识符对应的 IPv6前 缀;  a first sending unit, configured to: when storing an IPv6 prefix corresponding to an identifier of a network domain where the UE is located, send an IPv6 prefix corresponding to an identifier of a network domain where the UE is located to the UE;
执行单元,用于当没有保存与所述 UE所在的网络域的标识符对应的 IPv6 前缀时, 为所述 UE分配一个 IPv6前缀, 将所述 IPv6前缀发送给所述 UE, 并 保存所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系。  An execution unit, configured to allocate an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the UE, when an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is not saved. The relationship between the identifier of the network domain in which it resides and the IPv6 prefix.
一种 IPv6地址分配的设备, 包括: 发送单元, 用于向处理地址分配的设备发送地址分配的请求消息, 所述 请求消息中包括用户设备 UE所在的网络域的标识符, 所述 UE所在的网络域 的标识符用于获取 IPv6前缀; A device for allocating an IPv6 address, including: a sending unit, configured to send an address allocation request message to the device that processes the address allocation, where the request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain an IPv6 prefix ;
执行单元, 用于接收所述处理地址分配的设备发送的根据所述 UE所在的 网络域的标识符获取的所述 IPv6前缀, 并根据所述 IPv6前缀生成全局 IPv6 地址。  And an execution unit, configured to receive, by the device that processes the address allocation, the IPv6 prefix obtained according to an identifier of a network domain where the UE is located, and generate a global IPv6 address according to the IPv6 prefix.
本发明实施例提供的一种 IPv6地址分配的方法及设备, 通过根据 UE所 在的网络域的标识符为所述 UE分配一个与所述 UE所在的网络域的标识符对 应的 IPv6前缀。 所述 IPv6前缀可以是处理地址分配的设备上保存的, 与所 述 UE所在的网络域的标识符对应的 IPv6前缀, 也可以是处理地址分配的设 备直接分配的 IPv6前缀, 并保存所述 UE所在的网络域的标识符和所述 IPv6 前缀对应的关系。 与现有技术中 IPv6前缀资源有限, 导致 IPv6地址分配紧 张, 不满足现实使用的技术问题相比, 本发明实施例提供的方案可以为相同 网络域中的不同 UE 分配相同的 IPv6前缀, 增加 IPv6地址的可用空间。 附图说明  A method and a device for allocating an IPv6 address according to an embodiment of the present invention allocate an IPv6 prefix corresponding to an identifier of a network domain in which the UE is located according to an identifier of a network domain in which the UE is located. The IPv6 prefix may be an IPv6 prefix corresponding to the identifier of the network domain where the UE is located, or may be an IPv6 prefix directly allocated by the device that processes the address allocation, and save the UE. The relationship between the identifier of the network domain in which it resides and the IPv6 prefix. Compared with the prior art, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, and the technical problem of the actual use is not satisfied. The solution provided by the embodiment of the present invention may allocate the same IPv6 prefix to different UEs in the same network domain, and add IPv6. The free space of the address. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例 1提供的一种 IPv6地址分配的方法的流程图; 图 2为本发明实施例 1提供的另一种 IPv6地址分配的方法的流程图; 图 3为本发明实施例 1提供的一种 IPv6地址分配的设备的框图; 图 4为本发明实施例 1提供的另一种 IPv6地址分配的设备的框图; 图 5为本发明实施例 2提供的一种 IPv6地址分配的方法的分组数据网关 侧的流程图;  1 is a flowchart of a method for IPv6 address allocation according to Embodiment 1 of the present invention; FIG. 2 is a flowchart of another IPv6 address allocation method according to Embodiment 1 of the present invention; 1 is a block diagram of an apparatus for IPv6 address allocation according to FIG. 1; FIG. 4 is a block diagram of another apparatus for IPv6 address allocation according to Embodiment 1 of the present invention; FIG. 5 is an IPv6 address allocation according to Embodiment 2 of the present invention; Flowchart of the packet data gateway side of the method;
图 6为本发明实施例 2提供的一种 IPv6地址分配的方法的 UE侧的的流 程图; 图 Ί为本发明实施例 2提供的一种 IPv6地址分配的方法的流程图; 图 8为本发明实施例 2提供的一种 IPv6地址分配的设备的框图; 图 9为本发明实施例 2提供的另一种 IPv6地址分配的设备的框图; 图 10为本发明实施例 3提供的一种 IPv6地址分配的方法的分组数据网 关侧的流程图; FIG. 6 is a flowchart of a UE side of a method for IPv6 address allocation according to Embodiment 2 of the present invention; FIG. 8 is a flowchart of a method for IPv6 address allocation according to Embodiment 2 of the present invention; FIG. 8 is a block diagram of an apparatus for IPv6 address allocation according to Embodiment 2 of the present invention; FIG. 10 is a block diagram of a packet data gateway side of a method for IPv6 address allocation according to Embodiment 3 of the present invention;
图 11为本发明实施例 3提供的一种 IPv6地址分配的方法的 UE侧的的流 程图;  FIG. 11 is a flow chart of a UE side of a method for IPv6 address allocation according to Embodiment 3 of the present invention;
图 12为本发明实施例 3提供的一种 IPv6地址分配的方法的流程图; 图 13为本发明实施例 3提供的一种 IPv6地址分配的设备的框图; 图 14为本发明实施例 3提供的另一种 IPv6地址分配的设备的框图。 具体实施方式  FIG. 12 is a flowchart of a method for IPv6 address allocation according to Embodiment 3 of the present invention; FIG. 13 is a block diagram of an apparatus for IPv6 address allocation according to Embodiment 3 of the present invention; A block diagram of another IPv6 address assigned device. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例 1  Example 1
本发明实施例提供一种 IPv6地址分配的方法,如图 1所示,该方法包括: 步骤 101 , 接收为用户设备 UE分配地址的请求消息, 所述请求消息中包 括所述 UE所在的网络域的标识符;  An embodiment of the present invention provides a method for allocating an IPv6 address. As shown in FIG. 1 , the method includes: Step 101: Receive a request message for allocating an address for a user equipment UE, where the request message includes a network domain where the UE is located. Identifier
步骤 102 , 判断是否保存有与所述 UE所在的网络域的标识符对应的 I Ρ V 6 前缀;  Step 102: Determine whether an I Ρ V 6 prefix corresponding to an identifier of a network domain where the UE is located is saved.
步骤 103 ,当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 向所述 UE发送与所述 UE所在的网络域的标识符对应的 IPv6前缀;  Step 103: When an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, send an IPv6 prefix corresponding to the identifier of the network domain where the UE is located to the UE.
步骤 104 ,当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀 时, 为所述 UE分配一个 IPv6前缀, 将所述 IPv6前缀发送给所述 UE, 并保存 所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系。  Step 104: When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, assign an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the location where the UE is located. The relationship between the identifier of the network domain and the IPv6 prefix.
上述各步骤的执行主体可以是处理地址分配的设备, 具体地可以为分组 数据网关, 所述分组数据网关可以为 PDN-GW, 在 PMIP场景下也可以为 S-GW。 本发明实施例还提供一种 IPv6地址分配的方法, 如图 2所示, 该方法包 括: The execution body of each step may be a device for processing address allocation, and may specifically be a grouping. The data gateway, the packet data gateway may be a PDN-GW, and may also be an S-GW in a PMIP scenario. The embodiment of the invention further provides a method for IPv6 address allocation. As shown in FIG. 2, the method includes:
步骤 201 , 向处理地址分配的设备发送地址分配的请求消息, 所述请求消 息中包括用户设备 UE所在的网络域的标识符, 所述 UE所在的网络域的标识 符用于获取 IPv6前缀;  Step 201: Send a request message of an address allocation to a device that is configured to process an address, where the request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain an IPv6 prefix.
步骤 202 , 接收所述处理地址分配的设备发送的根据所述 UE所在的网络 域的标识符获取的所述 IPv6前缀,并根据所述 IPv6前缀生成全局 IPv6地址。  Step 202: Receive the IPv6 prefix that is obtained by the device that processes the address allocation according to the identifier of the network domain where the UE is located, and generate a global IPv6 address according to the IPv6 prefix.
上述各步骤的执行主体可以是 UE。  The execution body of each step described above may be a UE.
本发明实施例提供的一种 IPv6地址分配的方法, 处理地址分配的设备接 收到 UE发送的所述 UE所在的网络域的标识符,为所述所述 UE分配一个 IPv6 前缀, 如果所述处理地址分配的设备上保存有与所述 UE所在的网络域的标识 符对应的 IPv6前缀, 则直接向所述 UE发送所述 IPv6前缀; 如果没有保存与 所述 UE所在的网络域的标识符对应的 IPv6前缀,则为所述 UE分配一个 IPv6 前缀, 并保存所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系, 所述 UE根据接收到的 IPv6前缀生成全局 IPv6地址。 与现有技术中 IPv6前 缀资源有限, 导致 IPv6地址分配紧张, 不满足现实使用的技术问题相比, 本 发明实施例提供的方案可以为相同网络域中的不同 UE分配相同的 IPv6前缀, 增加 IPv6地址的可用空间。  An IPv6 address allocation method is provided by the embodiment of the present invention. The device that processes the address allocation receives the identifier of the network domain where the UE is sent by the UE, and allocates an IPv6 prefix to the UE, if the processing is performed. If the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored, the IPv6 prefix is directly sent to the UE; if not, the identifier corresponding to the network domain where the UE is located is not saved. The IPv6 prefix is used to allocate an IPv6 prefix to the UE, and the relationship between the identifier of the network domain where the UE is located and the IPv6 prefix is saved, and the UE generates a global IPv6 address according to the received IPv6 prefix. Compared with the prior art, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, and the technical problem of the actual use is not satisfied. The solution provided by the embodiment of the present invention may allocate the same IPv6 prefix to different UEs in the same network domain, and add IPv6. The free space of the address.
为了实现上述一种 IPv6 地址分配的方法, 本发明实施例提供一种 IPv6 地址分配的设备, 该设备可以为分组数据网关, 所述分组数据网关可以为 PDN-GW, 在 PMIP场景下也可以为 S-GW如图 3所示, 该设备包括: 接收单元 301 , 判断单元 302 , 第一发送单元 303 , 执行单元 304。  In order to implement the foregoing method for IPv6 address allocation, the embodiment of the present invention provides an IPv6 address allocation device, where the device may be a packet data gateway, and the packet data gateway may be a PDN-GW, and may also be a PMIP scenario. As shown in FIG. 3, the S-GW includes: a receiving unit 301, a determining unit 302, a first sending unit 303, and an executing unit 304.
接收单元 301 , 用于接收为用户设备 UE分配地址的请求消息, 所述请求 消息中包括所述 UE所在的网络域的标识符;  The receiving unit 301 is configured to receive a request message for allocating an address for the user equipment UE, where the request message includes an identifier of a network domain where the UE is located;
判断单元 302 , 用于判断是否保存有与所述 UE所在的网络域的标识符对 应的 IPv6前缀; 第一发送单元 303 , 用于当保存有与所述 UE所在的网络域的标识符对应 的 IPv6前缀时,向所述 UE发送与所述 UE所在的网络域的标识符对应的 IPv6 前缀; The determining unit 302 is configured to determine whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved; a first sending unit 303, configured to: when an IPv6 prefix corresponding to an identifier of a network domain where the UE is located, is used, send, to the UE, an IPv6 prefix corresponding to an identifier of a network domain where the UE is located;
执行单元 304 , 用于当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 为所述 UE分配一个 IPv6前缀, 将所述 IPv6前缀发送给所述 UE, 并保存所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系。  The performing unit 304 is configured to: when an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, allocate an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the The relationship between the identifier of the network domain in which the UE is located and the IPv6 prefix.
本发明实施例还提供一种 IPv6地址分配的设备, 该设备可以为 UE, 如图 4所示, 该设备包括: 发送单元 401 , 执行单元 402。  The embodiment of the present invention further provides a device for allocating an IPv6 address, and the device may be a UE. As shown in FIG. 4, the device includes: a sending unit 401 and an executing unit 402.
发送单元 401 , 用于向处理地址分配的设备发送地址分配的请求消息, 所 述请求消息中包括用户设备 UE所在的网络域的标识符, 所述 UE所在的网络 域的标识符用于获取 IPv6前缀;  The sending unit 401 is configured to send, by the device that processes the address, a request message for the address allocation, where the request message includes an identifier of the network domain where the user equipment UE is located, and the identifier of the network domain where the UE is located is used to obtain the IPv6 Prefix
执行单元 402 , 用于接收所述处理地址分配的设备发送的根据所述 UE所 在的网络域的标识符获取的所述 IPv6前缀, 并根据所述 IPv6前缀生成全局 IPv6地址。  The executing unit 402 is configured to receive, by the device that processes the address allocation, the IPv6 prefix obtained according to the identifier of the network domain where the UE is located, and generate a global IPv6 address according to the IPv6 prefix.
本发明实施例提供的一种 IPv6 地址分配的设备, 通过接收单元接收 UE 发送的所述 UE所在的网络域的标识符, 然后判断单元判断是否保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀, 如果保存有与所述 UE所在的网 络域的标识符对应的 IPv6前缀, 则第一发送单元向所述 UE发送所述 IPv6前 缀; 如果没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀, 则执 行单元为所述 UE分配一个 IPv6前缀, 并保存所述 UE所在的网络域的标识符 和所述 IPv6前缀对应的关系, 然后 UE设备的执行单元根据接收到的 IPv6前 缀生成全局 IPv6地址。 与现有技术中 IPv6前缀资源有限, 导致 IPv6地址分 配紧张, 不满足现实使用的技术问题相比, 本发明实施例提供的方案可以为 相同网络域中的不同 UE 分配相同的 IPv6前缀, 增加 IPv6地址的可用空间。  An apparatus for allocating an IPv6 address according to an embodiment of the present invention receives, by a receiving unit, an identifier of a network domain where the UE is sent by the UE, and then the determining unit determines whether an identifier of the network domain where the UE is located is saved. Corresponding IPv6 prefix, if the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, the first sending unit sends the IPv6 prefix to the UE; if the network domain where the UE is located is not saved The IPv6 prefix corresponding to the identifier, the execution unit allocates an IPv6 prefix to the UE, and saves the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix, and then the execution unit of the UE device receives the The IPv6 prefix generates a global IPv6 address. Compared with the prior art, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, and the technical problem of the actual use is not satisfied. The solution provided by the embodiment of the present invention may allocate the same IPv6 prefix to different UEs in the same network domain, and add IPv6. The free space of the address.
实施例 2  Example 2
本发明实施例提供一种 IPv6地址分配的方法, 所述方法的执行主体为处 理地址分配的设备, 具体地可以为分组数据网关, 所述分组数据网关可以为 PDN-GW( Packet Da ta Network Ga teway,分组数据网关),在 PMIP (Proxy Mob i le IP , 代理移动 IP)场景下也可以为 S-GW ( Serv ing Ga teway服务网关), 如图 5所示, 该方法包括: The embodiment of the present invention provides a method for allocating an IPv6 address, where the method is performed by a device that processes an address, and may be a packet data gateway, where the packet data gateway may be PDN-GW (Packet Data Network Gateway) can also be S-GW (Serving Ga teway Service Gateway) in the PMIP (Proxy Mob i le IP, Proxy Mobile IP) scenario, as shown in Figure 5. Show that the method includes:
步骤 501 , 接收为用户设备 UE分配地址的请求消息, 所述请求消息中包 括所述 UE所在的网络域的标识符;  Step 501: Receive a request message for allocating an address for the user equipment UE, where the request message includes an identifier of a network domain where the UE is located.
具体地,丽 E接收到所述 UE发送的附着请求报文之后, 向所述 PDN-GW发 送创建会话请求报文,所述附着请求报文包括所述 UE所在的网络域的标识符, 所述 PDN-GW接收所述 MME发送创建会话请求 文是通过所述 S-GW接收的。  Specifically, after receiving the attach request message sent by the UE, the MN sends a create session request message to the PDN-GW, where the attach request message includes an identifier of the network domain where the UE is located. The receiving, by the PDN-GW, the MME sends a create session request message through the S-GW.
所述丽 E是移动管理网元, 负责用户及会话管理等控制平面功能, 包括 对所述 S-GW和所述 PDN-GW的选择, 跟踪区列表管理以及所述 UE在空闲状态 下的移动管理等功能。 所述 S-GW主要负责所述 UE用户平面的数据传输、 转 发以及路由切换等功能。 所述 PDN-GW负责用户地址分配、 策略控制和计费规 则的执行以及合法监听相关功能。  The MN is a mobility management network element, and is responsible for control plane functions such as user and session management, including selection of the S-GW and the PDN-GW, tracking area list management, and movement of the UE in an idle state. Management and other functions. The S-GW is mainly responsible for functions such as data transmission, forwarding, and route switching of the UE user plane. The PDN-GW is responsible for user address allocation, policy control, and enforcement of charging rules and lawful interception related functions.
所述网络域的标识符可以用来标记一组具有相同特性的 UE , 这些相同特 性可以是处于相同的地理位置, 或者是访问相同应用, 或者属于相同的管理 实体管理, 或者是上述特性的组合。 具体的所述网络域的标识符包括 APN ( Acces s Po int Name , 接入点名称)、 群组标识符、 用户组标识符, 或者所 述 APN、 所述群组标识符和所述用户组标识符的组合。  The identifier of the network domain may be used to mark a group of UEs having the same characteristics, and the same characteristics may be in the same geographical location, or access to the same application, or belong to the same management entity management, or a combination of the above characteristics. . Specifically, the identifier of the network domain includes an APN (Aces s Po int Name), a group identifier, a user group identifier, or the APN, the group identifier, and the user group. A combination of identifiers.
当所述 PDN-GW接收为 UE分配地址的请求消息后, 所述 PDN-GW通过所述 MME向所述 UE发送回应消息, 包括步骤 502或步骤 503任一种方案:  After the PDN-GW receives the request message for allocating an address for the UE, the PDN-GW sends a response message to the UE by using the MME, and includes any one of the steps 502 or 503:
步骤 502 ,通过所述 MME向所述 UE发送生成链路局部地址的接口标识符; 具体地, 所述 PDN-GW通过所述固 E向所述 UE发送生成链路局部地址的 接口标识符, 所述链路局部地址是所述 UE所在的局域网内的链路上的一个可 用的地址。  Step 502: Send, by using the MME, an interface identifier that generates a link local address to the UE. Specifically, the PDN-GW sends an interface identifier that generates a link local address to the UE by using the solid E. The link local address is an available address on the link within the local area network where the UE is located.
步骤 503 , 通过所述丽 E向所述 UE发送生成链路局部地址的接口标识符 和全局接口标识符, 所述全局接口标识符用于与所述 UE所在的网络域的标识 符对应的 IPv6前缀生成 IPv6地址; 具体地, 所述 PDN-GW通过所述固 E向所述 UE发送生成链路局部地址的 接口标识符和全局接口标识符, 所述链路局部地址是所述 UE所在的局域网内 的链路上的一个可用的地址, 所述链路局部地址用于完成本地网络的通讯, 所述全局接口标识符用于与所述 UE所在的网络域的标识符对应的 IPv6前缀 生成 IPv6地址。 Step 503: Send, by using the MN, an interface identifier and a global interface identifier for generating a link local address, where the global interface identifier is used for IPv6 corresponding to an identifier of a network domain where the UE is located. The prefix generates an IPv6 address. Specifically, the PDN-GW sends, by using the solid E, an interface identifier and a global interface identifier that generate a link local address, where the link local address is a link in a local area network where the UE is located. An available address, the link local address is used to complete communication of the local network, and the global interface identifier is used to generate an IPv6 address with an IPv6 prefix corresponding to the identifier of the network domain where the UE is located.
步骤 504 , 判断是否保存有与所述 UE所在的网络域的标识符对应的 IPv6 前缀;  Step 504: Determine whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved.
具体地, 所述 PDN-GW判断是否保存有与所述 UE所在的网络域的标识符 对应的 IPv6前缀, 如果与所述 UE所在的网络域相同的 UE1在所述 UE之前向 所述 PDN-GW请求过全局 IPv6地址, 则在所述 PDN-GW上会保持所述 UE1所在 的网络域的标识符和所述全局 IPv6地址中的所述 IPv6前缀的对应的关系, 以使所述 UE请求全局 IPv6地址时, 所述 PDN-GW向其分配的所述 IPv6前缀 与所述 UE 1的相同,这样,可以使相同网络域的不同的 UE具有相同的所述 I Pv 6 前缀, 增加 IPv6地址的可用空间并且提高 IPv6地址的利用率。  Specifically, the PDN-GW determines whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored, if the UE1 that is the same as the network domain where the UE is located, before the UE, to the PDN- If the GW requests the global IPv6 address, the corresponding relationship between the identifier of the network domain where the UE1 is located and the IPv6 prefix in the global IPv6 address is maintained on the PDN-GW, so that the UE requests When the global IPv6 address is used, the IPv6 prefix allocated by the PDN-GW is the same as that of the UE 1, so that different UEs in the same network domain may have the same I Pv 6 prefix and increase the IPv6 address. Free space and increase the utilization of IPv6 addresses.
步骤 505 ,当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 向所述 UE发送与所述 UE所咋的网络域的标识符对应的所述 IPv6前缀;  Step 505: When an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved, send, to the UE, the IPv6 prefix corresponding to an identifier of a network domain that the UE is configured to be;
具体地, 所述 PDN-GW通过所述丽 E向所述 UE发送 RA消息, 所述 RA消 息包括用于所述 UE生成全局 IPv6地址的所述 IPv6前缀。 所述 PDN-GW定时 地通过所述丽 E发送所述 RA消息给所述 UE或者在收到所述 RS请求后通过所 述固 E发送所述 RA消息给所述 UE。  Specifically, the PDN-GW sends an RA message to the UE by using the MN, and the RA message includes the IPv6 prefix used by the UE to generate a global IPv6 address. The PDN-GW periodically sends the RA message to the UE through the MN E or sends the RA message to the UE through the solid E after receiving the RS request.
需要说明的是, 当所述 PDN-GW上保存有与所述 UE所在的网络域的标识 符对应的 IPv6前缀时, 如果有与所述 UE所在的网络域相同的 UE2请求分配 所述全局 IPv6地址, 这时所述 PDN-GW会定时地通过所述 MME发送所述 RA消 息给所述 UE2 ,因此可以在一定程度上减少所述 RA消息在网络中的传播数量。  It should be noted that, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored on the PDN-GW, if the UE2 that is the same as the network domain where the UE is located, the UE2 requests to allocate the global IPv6. An address, at which time the PDN-GW periodically sends the RA message to the UE2 through the MME, so the number of propagation of the RA message in the network may be reduced to some extent.
步骤 506 ,当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀 时, 为所述 UE分配一个 IPv6前缀, 将所述 IPv6前缀发送给所述 UE, 并保存 所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系; 具体地, 当所述 PDN- GW上没有保存与所述 UE所在的网络域的标识符对 应的 IPv6前缀时, 所述 PDN- GW根据所述 UE所在的网络域的标识符为其分配 一个 IPv6前缀, 将所述 IPv6前缀携带在 RA消息中通过所述画 E发送给所述 UE, 而在所述 PDN- GW上保存所述 UE所在的网络域的标识符和分配给所述 UE 的所述 IPv6前缀的对应关系。 Step 506: When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, assign an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the location where the UE is located. The relationship between the identifier of the network domain and the IPv6 prefix; Specifically, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved on the PDN-GW, the PDN-GW allocates an IPv6 according to the identifier of the network domain where the UE is located. a prefix, the IPv6 prefix is carried in the RA message, and the identifier is sent to the UE by using the E, and the identifier of the network domain where the UE is located and the location allocated to the UE are saved on the PDN-GW. The correspondence between the IPv6 prefixes.
本发明实施例提供的一种 IPv6地址分配的方法, 通过当有与所述 UE所 在的网络域相同的 UE再次请求全局 IPv6地址时, 所述 PDN- GW会向其分配与 所述 UE的 IPv6前缀相同的 IPv6前缀, 与现有技术中在进行 IPv6地址分配 时, IPv6前缀资源有限, 导致 IPv6地址分配紧张, 不满足现实使用的技术问 题相比, 本发明实施例提供的方案, 可以为相同网络域的不同的 UE分配相同 的所述 IPv6前缀, 增加 IPv6地址的可用空间, 满足现实使用的技术问题。  The IPv6 address allocation method provided by the embodiment of the present invention, when the UE having the same network domain as the UE is requested to request the global IPv6 address again, the PDN-GW allocates the IPv6 with the UE to the UE. The schemes provided by the embodiments of the present invention may be the same as the technical solutions to the problem of the IPv6 address allocation in the prior art when the IPv6 address allocation is limited, and the IPv6 address allocation is limited. Different UEs in the network domain allocate the same IPv6 prefix, increase the available space of the IPv6 address, and satisfy the technical problem of actual use.
本发明实施例还提供一种 IPv6地址分配的方法, 所述方法的执行主体为 UE , 如图 6所示, 该方法包括:  The embodiment of the present invention further provides a method for allocating an IPv6 address, where the execution subject of the method is a UE, as shown in FIG. 6, the method includes:
步驟 601 , 向处理地址分配的设备发送地址分配请求消息, 所述地址分配 请求消息中包括用户设备 UE所在的网絡域的标识符 , 所述 UE所在的网络域 的标识符用于获取 IPv6前缀;  Step 601: Send an address allocation request message to the device that is configured to process the address, where the address allocation request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain an IPv6 prefix.
所述处理地址分配的设备为分组数据网关, 所述分组数据网关具体为 PDN-GW, 在 PMIP场景下也可以为 S- GW, 下面以所述分组数据网关是 PDN-GW 为例进行描述。  The device for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario. The following describes the packet data gateway as a PDN-GW as an example.
所述 UE通过移动管理网元匪 E向所述 PDN- GW发送地址分配请求消息, 具体地, 所述 UE向所述 MME发送附着请求报文, 然后所述 MME向所述分组数 据网关发送创建会话请求报文, 所述附着请求报文包括用户设备 UE所在的网 络域的标识符, 所述创建会话请求报文包括所述 UE所在的网络域的标识符。 所述固 E向所述分组数据网关发送的创建会话请求报文是通过所述 S-GW发送 给所述 PDN- GW的。  The UE sends an address allocation request message to the PDN-GW through the mobility management network element ,E. Specifically, the UE sends an attach request message to the MME, and then the MME sends the packet to the packet data gateway. a session request message, where the attach request message includes an identifier of a network domain where the user equipment UE is located, and the create session request message includes an identifier of a network domain where the UE is located. The create session request message sent by the solid E to the packet data gateway is sent by the S-GW to the PDN-GW.
所述网络域的标识符可以用来标记一组具有相同特性的 UE , 这些相同特 性可以是处于相同的地理位置, 或者是访问相同应用, 或者属于相同的管理  The identifier of the network domain may be used to mark a group of UEs having the same characteristics, which may be in the same geographical location, or access the same application, or belong to the same management.
更正页 (细则第 91条) 实体管理,或者是上述特性的组合。所述网络域的标识符包括接入点名称 APN、 群组标识符、 用户组标识符, 或者所述 APN、 所述群组标识符和所述用户组标 识符的组合。 Correction page (Article 91) Entity management, or a combination of the above features. The identifier of the network domain includes an access point name APN, a group identifier, a user group identifier, or a combination of the APN, the group identifier, and the user group identifier.
在步骤 601通过所述 MME向处理地址分配的设备发送的地址分配请求消 息后, 所述 PDN-GW通过所述丽 E向所述 UE发送回应消息, 包括步骤 602或 步骤 603中的任一种方案:  After the address allocation request message sent by the MME to the device that is configured to process the address, the PDN-GW sends a response message to the UE by using the MME, including any one of step 602 or step 603. Program:
步骤 602 , 接收所述 PDN-GW通过所述固 E发送的生成链路局部地址的接 口标识符, 所述链路局部地址用来完成本地网络的通讯;  Step 602: Receive an interface identifier of the local address of the link that is sent by the PDN-GW by using the solid E, where the link local address is used to complete communication of the local network.
具体地, 所述丽 E接收所述 PDN-GW发送的附着回应报文之后, 向所述 UE 发送创建会话响应报文, 所述 UE接收所述 MME发送的创建会话响应报文, 所 述附着回应报文包括生成链路局部地址的接口标识符, 所述创建会话响应报 文包括生成链路局部地址的接口标识符, 所述 MME接收所述 PDN-GW发送的附 着回应报文是通过 S-GW接收的。  Specifically, after receiving the attach response message sent by the PDN-GW, the MN sends a create session response message to the UE, where the UE receives the create session response message sent by the MME, and the attaching The response message includes an interface identifier for generating a link local address, the create session response message includes an interface identifier for generating a link local address, and the MME receives the attach response message sent by the PDN-GW through the S -GW received.
步骤 603 , 接收所述 PDN-GW通过所述固 E发送的生成链路局部地址的接 口标识符和全局接口标识符, 所述全局接口标识符用于与所述 UE所在的网络 域的标识符对应的 IPv6前缀生成 IPv6地址;  Step 603: Receive an interface identifier and a global interface identifier of a link local address generated by the PDN-GW by using the solid E, where the global interface identifier is used for an identifier of a network domain where the UE is located. The corresponding IPv6 prefix generates an IPv6 address.
具体地, 所述丽 E接收所述 PDN-GW发送的附着回应报文之后, 向所述 UE 发送创建会话响应报文, 所述 UE接收所述 MME发送的创建会话响应报文, 所 述附着回应报文包括生成链路局部地址的接口标识符和全局接口标识符, 所 述创建会话响应报文包括生成链路局部地址的接口标识符和全局接口标识 符, 所述 MME接收所述 PDN-GW发送的附着回应报文是通过 S-GW接收的。  Specifically, after receiving the attach response message sent by the PDN-GW, the MN sends a create session response message to the UE, where the UE receives the create session response message sent by the MME, and the attaching The response message includes an interface identifier for generating a link local address and a global interface identifier, and the creating the session response message includes an interface identifier for generating a link local address and a global interface identifier, and the MME receives the PDN- The attach response message sent by the GW is received by the S-GW.
步骤 604 , 根据链路局部地址的接口标识符生成链路局部地址;  Step 604: Generate a link local address according to the interface identifier of the link local address.
所述 UE根据所述链路局部地址的接口标识符生成链路局部地址, 所述链 路局部地址是所述 UE所在的局域网内的链路上的一个可用的地址, 可以用来 完成本地网络的通讯, 例如, 发送路由请求 RS消息和接收路由公告 RA消息。 所述路由器可以为所述 PDN-GW。如果所述 UE在一定的时间内没有接收到所述 PDN-GW发送的所述 RA消息, 则所述 UE可以主动向所述 PDN-GW发送所述 RS 消息以获取所述 RA消息。 The UE generates a link local address according to the interface identifier of the link local address, where the link local address is an available address on a link in the local area network where the UE is located, and can be used to complete the local network. The communication, for example, sends a route request RS message and receives a route advertisement RA message. The router may be the PDN-GW. If the UE does not receive the RA message sent by the PDN-GW within a certain time, the UE may actively send the RS to the PDN-GW. A message to obtain the RA message.
步骤 605 ,通过所述固 E接收所述 PDN-GW发送的根据所述 UE所在的网络 域的标识符获取的所述 IPv6前缀,并根据所述 IPv6前缀生成全局 IPv6地址; 具体地, 所述 UE通过所述固 E接收所述 PDN-GW发送的 RA消息, 所述 RA 消息包括用于所述 UE生成全局地址的 IPv6前缀。 然后根据所述 IPv6前缀与 标识所述 UE的唯一接口标识符生成一个全局 IPv6地址。 所述标识所述 UE的 唯一接口标识符为根据 MAC (Media Acces s Control , 介质访问控制层)地址 生成的接口标识符; 或者, 所述标识所述 UE的唯一接口标识符为接收到的全 局接口标识符。 这里, 所述 UE在确认生成的所述全局 IPv6地址之前, 需要 进行地址重复检查, 以保证生成的所述全局 IPv6地址在所述 UE所在的网络 域内是唯一的。 所述全局 IPv6地址指在全球公共领域内可以使用的、 唯一的 地址。  Step 605: Receive, by using the solid E, the IPv6 prefix that is sent by the PDN-GW according to an identifier of a network domain where the UE is located, and generate a global IPv6 address according to the IPv6 prefix. Specifically, the Receiving, by the UE, the RA message sent by the PDN-GW, where the RA message includes an IPv6 prefix used by the UE to generate a global address. A global IPv6 address is then generated based on the IPv6 prefix and a unique interface identifier identifying the UE. The unique interface identifier that identifies the UE is an interface identifier generated according to a MAC (Media Access Control Layer) address; or the unique interface identifier that identifies the UE is a received global identifier. Interface identifier. Here, before the acknowledgment of the generated global IPv6 address, the UE needs to perform an address repetition check to ensure that the generated global IPv6 address is unique within the network domain where the UE is located. The global IPv6 address refers to a unique address that can be used in the global public domain.
步骤 606 ,所述 UE将生成的所述全局 IPv6地址通过所述丽 E发送给所述 PDN-GW0 Step 606, the UE will generate the global IPv6 address to the PDN-GW 0 E by the Li
具体地, 所述 UE将生成的所述全局 IPv6地址发送给所述丽 E, 然后所述 MME将所述全局 IPv6地址通过所述 S-GW发送给所述 PDN-GW, 以进行通信。  Specifically, the UE sends the generated global IPv6 address to the MN, and then the MME sends the global IPv6 address to the PDN-GW through the S-GW to perform communication.
本发明实施例提供的一种 IPv6地址分配的方法, 通过 UE接收 PDN-GW发 送的 IPv6前缀,所述 PDN-GW可以为相同网络域中的不同 UE分配相同的 IPv6 前缀, 然后所述 UE根据所述 IPv6前缀与标识所述 UE的唯一接口标识符生成 全局 IPv6地址。 与现有技术中在进行 IPv6地址分配时, IPv6前缀资源有限, 导致 IPv6地址分配紧张, 不满足现实使用的技术问题相比, 本发明实施例提 供的方案可以为相同网络域中的不同 UE分配相同的 IPv6前缀, 增加 IPv6地 址的可用空间并且提高 IPv6地址的利用率。  The IPv6 address allocation method is provided by the embodiment of the present invention. The UE receives the IPv6 prefix sent by the PDN-GW, and the PDN-GW may allocate the same IPv6 prefix to different UEs in the same network domain, and then the UE is configured according to the UE. The IPv6 prefix generates a global IPv6 address with a unique interface identifier that identifies the UE. Compared with the prior art, when the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not satisfied with the technical problem of the actual use. The solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain. The same IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.
本发明实施例提供一种 IPv6地址分配的方法,如图 7所示,该方法包括: 步骤 701 , 用户设备 UE通过移动管理网元丽 E向处理地址分配的设备发 送其所在的网络域的标识符, 所述 UE 所在的网络域的标识符用于获取 IPv6 前缀; 所述处理地址分配的设备为分组数据网关, 所述分组数据网关具体为An embodiment of the present invention provides a method for IPv6 address allocation. As shown in FIG. 7, the method includes: Step 701: A user equipment UE sends an identifier of a network domain to which a device is allocated by using a mobility management network element E to a device that processes an address. The identifier of the network domain where the UE is located is used to obtain an IPv6 prefix; The device that processes the address allocation is a packet data gateway, where the packet data gateway is specifically
PDN-GW, 在 PMIP场景下也可以为 S-GW, 下面以所述分组数据网关是 PDN-GW 为例进行描述。具体地,所述 UE向所述丽 E发送附着请求报文,然后所述丽 E 向所述分组数据网关发送创建会话请求报文, 所述附着请求报文包括用户设 备 UE所在的网络域的标识符, 所述创建会话请求报文包括所述 UE所在的网 络域的标识符。 所述丽 E 向所述分组数据网关发送的创建会话请求报文是通 过服务网关 S-GW发送给所述 PDN-GW的。 The PDN-GW can also be an S-GW in the PMIP scenario. The following describes the packet data gateway as a PDN-GW as an example. Specifically, the UE sends an attach request message to the MME, and then the MME sends a create session request message to the packet data gateway, where the attach request message includes a network domain where the user equipment UE is located. The identifier, the create session request message includes an identifier of a network domain in which the UE is located. The create session request message sent by the MN to the packet data gateway is sent to the PDN-GW through the serving gateway S-GW.
所述网络域的标识符可以用来标记一组具有相同特性的 UE , 这些相同特 性可以是处于相同的地理位置, 或者是访问相同应用, 或者属于相同的管理 实体管理, 或者是上述特性的组合。 具体的所述网络域的标识符包括 APN ( Acces s Po int Name , 接入点名称)、 群组标识符、 用户组标识符, 或者所 述 APN、 所述群组标识符和所述用户组标识符的组合。  The identifier of the network domain may be used to mark a group of UEs having the same characteristics, and the same characteristics may be in the same geographical location, or access to the same application, or belong to the same management entity management, or a combination of the above characteristics. . Specifically, the identifier of the network domain includes an APN (Aces s Po int Name), a group identifier, a user group identifier, or the APN, the group identifier, and the user group. A combination of identifiers.
步骤 702 , 所述 PDN-GW通过所述丽 E接收所述 UE发送的所述 UE所在的 网络域的标识符;  Step 702: The PDN-GW receives, by using the MN, an identifier of a network domain where the UE is sent by the UE, where
具体地,所述丽 E接收到所述 UE发送的附着请求报文之后,向所述 PDN-GW 发送创建会话请求报文, 所述附着请求报文包括所述 UE所在的网络域的标识 符, 所述 PDN-GW接收所述 MME发送创建会话请求 文是通过所述 S-GW接收 的。  Specifically, after receiving the attach request message sent by the UE, the MN sends a create session request message to the PDN-GW, where the attach request message includes an identifier of a network domain where the UE is located. And receiving, by the PDN-GW, the MME sends a create session request message by using the S-GW.
所述 PDN-GW通过所述丽 E接收所述 UE发送的所述 UE所在的网络域的标 识符后, 包括步骤 703或步骤 704中任一个方案:  After the PDN-GW receives the identifier of the network domain where the UE is sent by the UE, the PDN-GW includes any one of the steps 703 or 704:
步骤 703 ,所述 PDN-GW通过所述丽 E向所述 UE发送生成链路局部地址的 接口标识符, 所述链路局部地址用于完成本地网络的通讯;  Step 703: The PDN-GW sends, by using the MN, an interface identifier that generates a link local address to the UE, where the link local address is used to complete communication of the local network.
所述 PDN-GW通过所述 S-GW向所述丽 E发送附着回应报文,然后所述丽 E 向所述 UE发送创建会话响应报文, 所述附着回应报文包括生成链路局部地址 的接口标识符, 所述创建会话响应报文包括生成链路局部地址的接口标识符, 所述链路局部地址具体指所述 UE 所在的局域网内的链路上的一个可用的地 址, 所述链路局部地址用于完成本地网络的通讯。 步骤 704 ,所述 PDN-GW通过所述丽 E向所述 UE发送生成链路局部地址的 接口标识符和全局接口标识符, 所述全局接口标识符用于与所述 UE所在的网 络域的标识符对应的 IPv6前缀生成 IPv6地址; The PDN-GW sends an attach response message to the MME through the S-GW, and then the MME sends a Create Session Response message to the UE, where the attach response message includes generating a link local address. The interface identifier includes: an interface identifier that generates a link local address, where the link local address specifically refers to an available address on a link in the local area network where the UE is located, The link local address is used to complete communication on the local network. Step 704: The PDN-GW sends, by using the MN E, an interface identifier and a global interface identifier for generating a link local address to the UE, where the global interface identifier is used for the network domain where the UE is located. The IPv6 prefix corresponding to the identifier generates an IPv6 address.
具体地, 所述 PDN-GW通过所述 S-GW向所述丽 E发送附着回应报文, 然 后所述 MME向所述 UE发送创建会话响应报文, 所述附着回应报文包括生成链 路局部地址的接口标识符和全局接口标识符, 所述创建会话响应报文包括生 成链路局部地址的接口标识符和全局接口标识符。 所述全局接口标识符为用 于所述 UE生成全局 IPv6地址的标识符, 所述链路局部地址具体指所述 UE所 在的局域网内的链路上的一个可用的地址。  Specifically, the PDN-GW sends an attach response message to the MME through the S-GW, and then the MME sends a create session response message to the UE, where the attach response message includes generating a link. An interface identifier of the local address and a global interface identifier, the create session response message including an interface identifier and a global interface identifier for generating a link local address. The global interface identifier is an identifier for generating a global IPv6 address by the UE, and the link local address specifically refers to an available address on a link in a local area network where the UE is located.
步骤 705 , 所述 UE根据接收到的链路局部地址的接口标识符生成链路局 部地址;  Step 705: The UE generates a link local address according to the interface identifier of the received link local address.
所述 UE 根据接收到的所述链路局部地址的接口标识符生成链路局部地 址,所述链路局部地址是所述 UE所在的局域网内的链路上的一个可用的地址, 可以用来完成本地网络的通讯, 例如, 发送路由请求 RS消息和接收路由公告 RA消息。 所述路由器可以为所述 PDN-GW。 如果所述 UE在一定的时间内没有 接收到所述 PDN-GW发送的所述 RA消息, 则所述 UE可以主动向所述 PDN-GW 发送所述 RS消息以获取所述 RA消息。  The UE generates a link local address according to the received interface identifier of the link local address, where the link local address is an available address on a link in the local area network where the UE is located, and may be used The communication of the local network is completed, for example, sending a route request RS message and receiving a route advertisement RA message. The router may be the PDN-GW. If the UE does not receive the RA message sent by the PDN-GW within a certain period of time, the UE may actively send the RS message to the PDN-GW to obtain the RA message.
步骤 706,所述 PDN-GW判断是否保存有与所述 UE所在的网络域的标识符 对应的 IPv6前缀;  Step 706: The PDN-GW determines whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved.
具体地, 所述 PDN-GW判断是否保存有与所述 UE所在的网络域的标识符 对应的 IPv6前缀, 如果与所述 UE所在的网络域相同的 UE1在所述 UE之前向 所述 PDN-GW请求过全局 IPv6地址, 则在所述 PDN-GW上会保持所述 UE1所在 的网络域的标识符和所述全局 IPv6地址中的所述 IPv6前缀的对应的关系, 以使所述 UE请求全局 IPv6地址时, 所述 PDN-GW向其分配的所述 IPv6前缀 与所述 UE 1的相同,这样,可以使相同网络域的不同的 UE具有相同的所述 I Pv 6 前缀, 增加 IPv6地址的可用空间并且提高 IPv6地址的利用率。  Specifically, the PDN-GW determines whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored, if the UE1 that is the same as the network domain where the UE is located, before the UE, to the PDN- If the GW requests the global IPv6 address, the corresponding relationship between the identifier of the network domain where the UE1 is located and the IPv6 prefix in the global IPv6 address is maintained on the PDN-GW, so that the UE requests When the global IPv6 address is used, the IPv6 prefix allocated by the PDN-GW is the same as that of the UE 1, so that different UEs in the same network domain may have the same I Pv 6 prefix and increase the IPv6 address. Free space and increase the utilization of IPv6 addresses.
步骤 707 ,当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 应的 IPv6前缀; Step 707: When an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, The IPv6 prefix should be;
具体地, 所述 PDN-GW通过所述丽 E向所述 UE发送 RA消息, 所述 RA消 息包括与所述 UE所在的网络域的标识符对应的 IPv6前缀, 所述 IPv6前缀用 于所述 UE生成全局 IPv6地址。所述 PDN-GW定时地通过所述 MME发送所述 RA 消息给所述 UE或者在收到所述 RS请求后通过所述丽 E发送所述 RA消息给所 述 UE。  Specifically, the PDN-GW sends an RA message to the UE by using the MN, the RA message includes an IPv6 prefix corresponding to an identifier of a network domain where the UE is located, and the IPv6 prefix is used by the The UE generates a global IPv6 address. The PDN-GW periodically sends the RA message to the UE through the MME or sends the RA message to the UE through the MME after receiving the RS request.
需要说明的是, 当所述 PDN-GW上保存有与所述 UE所在的网络域的标识 符对应的 IPv6前缀时, 如果有与所述 UE所在的网络域相同的 UE2请求分配 所述全局 IPv6地址, 这时所述 PDN-GW会定时地通过所述 MME发送所述 RA消 息给所述 UE2 ,因此可以在一定程度上减少所述 RA消息在网络中的传播数量。  It should be noted that, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored on the PDN-GW, if the UE2 that is the same as the network domain where the UE is located, the UE2 requests to allocate the global IPv6. An address, at which time the PDN-GW periodically sends the RA message to the UE2 through the MME, so the number of propagation of the RA message in the network may be reduced to some extent.
步骤 708 ,当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀 时, 所述 PDN-GW为所述 UE分配一个 IPv6前缀, 将所述 IPv6前缀发送给所 述 UE, 并保存所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系; 具体地, 当所述 PDN-GW上没有保存与所述 UE所在的网络域的标识符对 应的 IPv6前缀时, 所述 PDN-GW根据所述 UE所在的网络域的标识符为其分配 一个 IPv6前缀, 将所述 IPv6前缀携带在 RA消息中通过所述 MME发送给所述 UE, 而在所述 PDN-GW上保存所述 UE所在的网络域的标识符和分配给所述 UE 的所述 IPv6前缀的对应关系。  Step 708: When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the PDN-GW allocates an IPv6 prefix to the UE, and sends the IPv6 prefix to the UE, and saves And the relationship between the identifier of the network domain where the UE is located and the IPv6 prefix; specifically, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved on the PDN-GW, The PDN-GW allocates an IPv6 prefix according to the identifier of the network domain in which the UE is located, and the IPv6 prefix is carried in the RA message and sent to the UE by the MME, and is saved on the PDN-GW. a correspondence between an identifier of a network domain in which the UE is located and the IPv6 prefix allocated to the UE.
本发明实施例提供的一种 IPv6地址分配的方法, 通过当有与所述 UE所 在的网络域相同的 UE再次请求全局 IPv6地址时, 所述 PDN-GW会向其分配与 所述 UE的 IPv6前缀相同的 IPv6前缀, 与现有技术中在进行 IPv6地址分配 时, IPv6前缀资源有限, 导致 IPv6地址分配紧张, 不满足现实使用的技术问 题相比, 本发明实施例提供的方案, 可以为相同网络域的不同的 UE分配相同 的所述 IPv6前缀, 增加 IPv6地址的可用空间, 满足现实使用的技术问题。  A method for allocating an IPv6 address according to an embodiment of the present invention, when a UE having the same network domain as the UE is requested to request a global IPv6 address again, the PDN-GW allocates an IPv6 with the UE to the UE. The schemes provided by the embodiments of the present invention may be the same as the technical solutions to the problem of the IPv6 address allocation in the prior art when the IPv6 address allocation is limited, and the IPv6 address allocation is limited. Different UEs in the network domain allocate the same IPv6 prefix, increase the available space of the IPv6 address, and satisfy the technical problem of actual use.
步骤 709 ,所述 UE通过所述固 E接收所述 PDN-GW发送的第六代互联网协 议 IPv6前缀, 并根据所述 IPv6前缀生成全局 IPv6地址; 所述 UE通过所述丽 E接收所述 PDN-GW发送的 RA消息, 所述 RA消息包 括用于所述 UE生成全局地址的 IPv6前缀, 然后根据所述 IPv6前缀与标识所 述 UE的唯一接口标识符生成一个全局 IPv6地址。 所述标识所述 UE的唯一接 口标识符为才艮据 MAC (Media Acces s Control , 介质访问控制层)地址生成的 接口标识符; 或者, 所述标识所述 UE的唯一接口标识符为接收到的全局接口 标识符。 这里, 所述 UE在确认生成的所述全局 IPv6地址之前, 需要进行地 址重复检查, 以保证生成的所述全局 IPv6地址在所述 UE所在的网络域内是 唯一的。 所述全局 IPv6地址指在全球公共领域内可以使用的、 唯一的地址。 Step 709: The UE receives the sixth generation Internet Protocol IPv6 prefix sent by the PDN-GW by using the solid E, and generates a global IPv6 address according to the IPv6 prefix. Receiving, by the UE, the RA message sent by the PDN-GW, where the RA message includes an IPv6 prefix used by the UE to generate a global address, and then, according to the IPv6 prefix, a unique interface that identifies the UE. The identifier generates a global IPv6 address. The unique interface identifier that identifies the UE is an interface identifier generated according to a MAC (Media Acces s Control) address; or the unique interface identifier that identifies the UE is received The global interface identifier. Here, before the acknowledgment of the generated global IPv6 address, the UE needs to perform an address repetition check to ensure that the generated global IPv6 address is unique within the network domain where the UE is located. The global IPv6 address refers to a unique address that can be used in the global public domain.
步骤 710,所述 UE将生成的所述全局 IPv6地址通过所述丽 E发送给所述 PDN-GW0 Step 710, the UE will generate the global IPv6 address to the PDN-GW 0 E by the Li
具体地, 所述 UE将生成的所述全局 IPv6地址发送给所述丽 E, 然后所述 MME将所述全局 IPv6地址通过所述 S-GW发送给所述 PDN-GW, 以进行通信。  Specifically, the UE sends the generated global IPv6 address to the MN, and then the MME sends the global IPv6 address to the PDN-GW through the S-GW to perform communication.
需要说明的是, 在现有技术中, 所述 PDN-GW直接根据所述 UE所在的网 络域的标识符, 给所述 UE分配一个 IPv6前缀, 然后与所述 UE自己生成的接 口标识符组合成一个全局 IPv6地址。 所述 IPv6前缀携带在所述 RA消息中由 所述 PDN-GW通过所述固 E发送给所述 UE,所述 IPv6前缀可以是由 PDN-GW管 理, 也可以由 PDN-GW从外部获取, 所述 RA消息中包括的所述 IPv6前缀是唯 一的。 由于每次为所述 UE分配的所述 IPv6前缀是唯一的, 而 IPv6前缀的资 源有限, 导致 IPv6地址分配紧张。  It should be noted that, in the prior art, the PDN-GW directly allocates an IPv6 prefix to the UE according to the identifier of the network domain where the UE is located, and then combines with the interface identifier generated by the UE itself. Become a global IPv6 address. The IPv6 prefix is carried in the RA message by the PDN-GW to be sent to the UE by using the solid E. The IPv6 prefix may be managed by the PDN-GW or may be externally obtained by the PDN-GW. The IPv6 prefix included in the RA message is unique. Since the IPv6 prefix assigned to the UE is unique each time, and the resources of the IPv6 prefix are limited, the IPv6 address allocation is tight.
本发明实施例提供的一种 IPv6地址分配的方法, 通过在所述处理地址分 配的设备组中的所述 PDN-GW上保存所述 UE 所在的网络域的标识符和所述 IPv6前缀对应的关系,可以为相同网络域中的不同 UE分配相同的 IPv6前缀, 然后根据所述 IPv6前缀生成全局 IPv6地址。 与现有技术中在进行 IPv6地址 分配时, IPv6前缀资源有限, 导致 IPv6地址分配紧张, 不满足现实使用的技 术问题相比, 本发明实施例提供的方案可以为相同网络域中的不同 UE分配相 同的 IPv6前缀, 增加 IPv6地址的可用空间并且提高 IPv6地址的利用率, 而 且在一定程度上可以减少 RA消息在网络中的传播数量。 本发明实施例提供一种 IPv6地址分配的设备, 该设备可以为 UE, 如图 8 所示, 该设备包括: 发送单元 401 , 执行单元 402 , 第一接收单元 403 , 第二 接收单元 404 , 接收模块 405 , 生成模块 406。 A method for allocating an IPv6 address according to an embodiment of the present invention, by using an identifier of a network domain where the UE is located and the IPv6 prefix corresponding to the PDN-GW in the device group allocated by the processing address A relationship may be assigned to different UEs in the same network domain with the same IPv6 prefix, and then a global IPv6 address is generated according to the IPv6 prefix. Compared with the prior art, when the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not satisfied with the technical problem of the actual use. The solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain. The same IPv6 prefix increases the available space of the IPv6 address and improves the utilization of the IPv6 address, and can reduce the number of RA messages spread in the network to some extent. An embodiment of the present invention provides an IPv6 address allocation device, where the device may be a UE. As shown in FIG. 8, the device includes: a sending unit 401, an executing unit 402, a first receiving unit 403, and a second receiving unit 404, and receiving Module 405, generating module 406.
发送单元 401 , 用于向处理地址分配的设备发送地址分配的请求消息, 所 述请求消息中包括用户设备 UE所在的网络域的标识符, 所述 UE所在的网络 域的标识符用于获取 IPv6前缀;  The sending unit 401 is configured to send, by the device that processes the address, a request message for the address allocation, where the request message includes an identifier of the network domain where the user equipment UE is located, and the identifier of the network domain where the UE is located is used to obtain the IPv6 Prefix
所述处理地址分配的设备为分组数据网关, 所述分组数据网关具体为 PDN-GW, 在 PMIP场景下也可以为 S-GW。 所述发送单元 401具体用于: 向移动 管理网元丽 E发送附着请求报文, 然后所述丽 E向所述分组数据网关发送创 建会话请求报文,所述附着请求报文包括用户设备 UE所在的网络域的标识符, 所述创建会话请求报文包括所述 UE所在的网络域的标识符, 所述 MME向所述 分组数据网关发送的创建会话请求报文是通过服务网关 S-GW发送给所述 PDN-GW的。  The device for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario. The sending unit 401 is specifically configured to: send an attach request message to the mobile management network element E, and then send the create session request message to the packet data gateway, where the attach request message includes the user equipment UE An identifier of the network domain in which the session request message includes an identifier of the network domain in which the UE is located, and the session creation request message sent by the MME to the packet data gateway is through the serving gateway S-GW. Sent to the PDN-GW.
第一接收单元 403 , 用于接收所述 PDN-GW通过所述丽 E发送的生成链路 局部地址的接口标识符, 所述链路局部地址用于完成本地网络的通讯; 或者, 第二接收单元 404 , 用于接收所述 PDN-GW通过所述 MME发送的生成链路 局部地址的接口标识符和全局接口标识符, 所述全局接口标识符用于与所述 UE所在的网络域的标识符对应的 IPv6前缀生成 IPv6地址;  a first receiving unit 403, configured to receive an interface identifier of the link local address generated by the PDN-GW sent by the MN, where the link local address is used to complete communication of the local network; or, the second receiving The unit 404 is configured to receive an interface identifier and a global interface identifier of the link local address generated by the PDN-GW by using the MME, where the global interface identifier is used to identify with a network domain where the UE is located. The IPv6 prefix corresponding to the character generates an IPv6 address;
具体地, 接收所述固 E发送的创建会话响应报文, 所述创建会话响应报 文具体指所述 UE所在的局域网内的链路上的一个可用的地址, 包括生成链路 局部地址的接口标识符或者包括生成链路局部地址的接口标识符和全局接口 标识符, 并由所述 MME接收到所述 PDN-GW发送的附着回应报文之后发送, 所 述附着回应报文包括生成链路局部地址的接口标识符或者包括生成链路局部 地址的接口标识符和全局接口标识符,具体地,由所述 MME接收到所述 PDN-GW 通过所述 S-GW发送的附着回应报文之后, 向所述 UE发送创建会话响应报文。  Specifically, the session response message is sent by the solid E, and the session response message specifically refers to an available address on the link in the local area network where the UE is located, including an interface for generating a link local address. The identifier or the interface identifier and the global interface identifier that generate the link local address, and are sent by the MME after receiving the attach response message sent by the PDN-GW, where the attach response message includes generating a link. The interface identifier of the local address or the interface identifier and the global interface identifier that generate the link local address, specifically, after the MME receives the attach response message sent by the PDN-GW through the S-GW Sending a session creation response message to the UE.
然后所述 UE根据所述链路局部地址的接口标识符生成链路局部地址, 所 述链路局部地址可以用来完成本地网络的通讯。 如果所述 UE在一定的时间内 没有接收到所述 PDN-GW发送的所述 RA消息,则所述 UE可以主动向所述 PDN-GW 发送所述 RS消息以获取所述 RA消息。 The UE then generates a link local address according to the interface identifier of the link local address, and the link local address can be used to complete communication of the local network. If the UE is within a certain time If the RA message sent by the PDN-GW is not received, the UE may actively send the RS message to the PDN-GW to obtain the RA message.
执行单元 402 ,用于接收所述 PDN-GW发送的第六代互联网协议 I Pv6前缀, 并根据所述 IPv6前缀生成全局 IPv6地址。  The executing unit 402 is configured to receive a sixth-generation Internet Protocol I Pv6 prefix sent by the PDN-GW, and generate a global IPv6 address according to the IPv6 prefix.
所述全局 IPv6地址指在全球公共领域内可以使用的、 唯一的地址。  The global IPv6 address refers to a unique address that can be used in the global public domain.
具体地, 所述执行单元 402中的接收模块 405接收所述 PDN-GW通过所述 丽 E发送的 RA消息,所述 RA消息包括用于所述 UE生成全局地址的 IPv6前缀; 然后所述执行单元 402中的生成模块 406根据所述 IPv6前缀与与标识所述 UE 的一个唯一的接口标识符生成一个全局 IPv6地址, 所述标识所述 UE的唯一 接口标识符为根据 MAC地址生成的接口标识符; 或者, 所述标识所述 UE的唯 一接口标识符为接收到的全局接口标识符。  Specifically, the receiving module 405 in the executing unit 402 receives an RA message sent by the PDN-GW through the MN, the RA message includes an IPv6 prefix used by the UE to generate a global address; and then the performing The generating module 406 in the unit 402 generates a global IPv6 address according to the IPv6 prefix and a unique interface identifier that identifies the UE, where the unique interface identifier that identifies the UE is an interface identifier generated according to the MAC address. Or; the unique interface identifier that identifies the UE is the received global interface identifier.
所述 UE 自己生成的接口标识符是根据 MAC (Media Acces s Control , 介 质访问控制层)地址生成的接口标识符。  The interface identifier generated by the UE itself is an interface identifier generated according to a MAC (Media Acces s Control) address.
这里, 所述 IPv6前缀可以是所述 PDN-GW上保存的与所述 UE所在的网络 域的标识符对应的 IPv6前缀,也可以是所述 PDN-GW为所述 UE分配的一个 IPv6 前缀, 并保存所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系, 这样, 当有与所述 UE所在的网络域相同的 UE再请求全局 I P V 6地址时, 所述 PDN-GW会向其分配与所述 UE的 IPv6前缀相同的 IPv6前缀。与现有技术中在 进行 IPv6地址分配时, IPv6前缀资源有限, 导致 IPv6地址分配紧张, 不满 足现实使用的技术问题相比, 本发明实施例提供的方案可以使相同网络域的 不同的 UE具有相同的所述 IPv6前缀,增加 IPv6地址的可用空间并且提高 IPv6 地址的利用率。  Here, the IPv6 prefix may be an IPv6 prefix that is stored on the PDN-GW and that corresponds to an identifier of a network domain where the UE is located, or may be an IPv6 prefix allocated by the PDN-GW to the UE. And storing the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix, so that when the UE with the same network domain as the UE requests the global IPV 6 address, the PDN-GW will It is assigned the same IPv6 prefix as the IPv6 prefix of the UE. In the prior art, when the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not sufficient for the technical problem of the actual use. The solution provided by the embodiment of the present invention can enable different UEs in the same network domain to have different UEs in the same network domain. The same IPv6 prefix increases the available space of the IPv6 address and improves the utilization of the IPv6 address.
这里, 所述 UE在确认生成的所述全局 IPv6地址之前, 需要进行地址重 复检查, 以保证生成的所述全局 IPv6地址在所述 UE所在的网络域内是唯一 的。  Here, before the acknowledgment of the generated global IPv6 address, the UE needs to perform an address re-check to ensure that the generated global IPv6 address is unique within the network domain where the UE is located.
本发明实施例还提供一种 IPv6地址分配的设备, 该设备具体可以为分组 数据网关, 所述分组数据网关可以为 PDN-GW, 在 PMIP场景下也可以为 S-GW, 如图 9所示, 该设备包括: 接收单元 301 , 判断单元 302 , 第一发送单元 303 , 执行单元 304 , 第二发送单元 305 , 第三发送单元 306。 The embodiment of the present invention further provides an apparatus for allocating an IPv6 address, where the device may be a packet data gateway, where the packet data gateway may be a PDN-GW, or may be an S-GW in a PMIP scenario. As shown in FIG. 9, the device includes: a receiving unit 301, a determining unit 302, a first sending unit 303, an executing unit 304, a second sending unit 305, and a third sending unit 306.
接收单元 301 , 用于接收为用户设备 UE分配地址的请求消息, 所述请求 消息中包括所述 UE所在的网络域的标识符;  The receiving unit 301 is configured to receive a request message for allocating an address for the user equipment UE, where the request message includes an identifier of a network domain where the UE is located;
所述接收单元 301具体用于: 接收丽 E发送创建会话请求报文, 所述创 建会话请求报文包括 UE所在的网络域的标识符, 所述创建会话请求报文由所 述丽 E接收到所述 UE发送的附着请求报文之后发送, 所述附着请求报文包括 所述 UE所在的网络域的标识符。  The receiving unit 301 is specifically configured to: receive a LSP to send a session request message, where the session request message includes an identifier of a network domain where the UE is located, and the create session request message is received by the MN And sending, by the UE, an attach request message, where the attach request message includes an identifier of a network domain where the UE is located.
在所述接收单元 301接收到所述 UE发送的所述 UE所在的网络域的标识 符后, 第二发送单元 305 , 通过所述 MME向所述 UE发送生成链路局部地址的 接口标识符, 所述链路局部地址用于完成本地网络的通讯, 具体地, 向所述 MME发送附着回应报文, 然后所述丽 E向所述 UE发送创建会话响应报文, 所 述附着回应报文包括生成链路局部地址的接口标识符, 所述创建会话响应报 文包括生成链路局部地址的接口标识符; 所述链路局部地址具体指所述 UE所 在的局域网内的链路上的一个可用的地址。  After the receiving unit 301 receives the identifier of the network domain where the UE is sent by the UE, the second sending unit 305 sends an interface identifier for generating a link local address to the UE by using the MME, The link local address is used to complete communication of the local network, specifically, sending an attach response message to the MME, and then sending the session response message to the UE, where the attach response message includes Generating an interface identifier of the link local address, where the create session response message includes an interface identifier for generating a link local address; the link local address specifically refers to an available link on the link in the local area network where the UE is located the address of.
或者, 在所述接收单元 301接收到所述 UE发送的所述 UE所在的网络域 的标识符后, 第三发送单元 306 , 通过所述 MME向所述 UE发送生成链路局部 地址的接口标识符和全局接口标识符, 所述全局接口标识符用于与所述 UE所 在的网络域的标识符对应的 IPv6前缀生成 IPv6地址;  Or, after the receiving unit 301 receives the identifier of the network domain where the UE is sent by the UE, the third sending unit 306 sends, by using the MME, an interface identifier that generates a link local address to the UE. And a global interface identifier, the global interface identifier is used to generate an IPv6 address with an IPv6 prefix corresponding to the identifier of the network domain where the UE is located;
具体地, 用于向所述 MME发送附着回应 文, 然后所述 MME向所述 UE发 送创建会话响应报文, 所述附着回应报文包括生成链路局部地址的接口标识 符和全局接口标识符, 所述创建会话响应报文包括生成链路局部地址的接口 标识符和全局接口标识符; 所述链路局部地址具体指所述 UE所在的局域网内 的链路上的一个可用的地址,所述全局接口标识符用于所述 UE生成全局 IPv6 地址。  Specifically, the method is configured to send an attach response message to the MME, and then the MME sends a create session response message to the UE, where the attach response message includes an interface identifier and a global interface identifier for generating a link local address. The creating a session response message includes an interface identifier and a global interface identifier for generating a link local address, where the link local address specifically refers to an available address on a link in the local area network where the UE is located. The global interface identifier is used by the UE to generate a global IPv6 address.
判断单元 302 , 用于判断是否保存有与所述 UE所在的网络域的标识符对 应的 IPv6前缀; 这里, 具体为所述 PDN-GW判断是否保存有与所述 UE所在的 网络域的标识符对应的 IPv6前缀。 The determining unit 302 is configured to determine whether an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved. Here, specifically, the PDN-GW determines whether the UE is located with the UE. The IPv6 prefix corresponding to the identifier of the network domain.
第一发送单元 303 , 用于当保存有与所述 UE所在的网络域的标识符对应 的 IPv6前缀时,向所述 UE发送与所述 UE所在的网络域的标识符对应的 IPv6 前缀;  The first sending unit 303 is configured to: when storing an IPv6 prefix corresponding to the identifier of the network domain where the UE is located, send an IPv6 prefix corresponding to the identifier of the network domain where the UE is located to the UE;
通过所述 MME向所述 UE发送 RA消息, 所述 RA消息包括用于所述 UE生 成全局 IPv6地址的 IPv6前缀。 所述全局 IPv6地址指在全球公共领域内可以 使用的、 唯一的地址。  And sending, by the MME, an RA message to the UE, where the RA message includes an IPv6 prefix used by the UE to generate a global IPv6 address. The global IPv6 address refers to a unique address that can be used in the global public domain.
执行单元 304 , 用于当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 为所述 UE分配一个 IPv6前缀, 将所述 IPv6前缀发送给所述 UE, 并保存所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系。  The performing unit 304 is configured to: when an IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, allocate an IPv6 prefix to the UE, send the IPv6 prefix to the UE, and save the The relationship between the identifier of the network domain in which the UE is located and the IPv6 prefix.
当所述 UE根据接收到的所述 IPv6前缀生成所述全局 IPv6地址后, 接收 所述 UE发送的所述全局 IPv6地址, 以进行通信。  After the UE generates the global IPv6 address according to the received IPv6 prefix, the UE receives the global IPv6 address sent by the UE to perform communication.
本发明实施例提供的一种 IPv6地址分配的设备, 通过判断单元判断是否 保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀, 第一发送单元将 与所述 UE所在的网络域的标识符对应的 IPv6前缀发送给 UE或者执行单元将 为所述 UE分配的一个 IPv6前缀发送给所述 UE,并保存所述 UE所在的网络域 的标识符和所述 IPv6前缀对应的关系, 以便可以给与所述 UE所在的网络域 相同的 UE请求全局 IPv6地址时分配相同的 IPv6前缀。 与现有技术中在进行 IPv6地址分配时, IPv6前缀资源有限, 导致 IPv6地址分配紧张, 不满足现 实使用的技术问题相比, 本发明实施例提供的方案可以为相同网络域中的不 同 UE 分配相同的 IPv6前缀, 增加 IPv6地址的可用空间并且提高 IPv6地址 的利用率。  An apparatus for allocating an IPv6 address according to the embodiment of the present invention, the determining, by the determining unit, whether the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, the first sending unit and the network domain where the UE is located The IPv6 prefix corresponding to the identifier is sent to the UE or the execution unit sends an IPv6 prefix allocated to the UE to the UE, and saves the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix. In order to allocate the same IPv6 prefix when requesting the global IPv6 address from the same UE as the network domain in which the UE is located. In the prior art, when the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not sufficient for the technical problem of the actual use. The solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain. The same IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.
实施例 3  Example 3
本发明实施例提供一种 IPv6地址分配的方法, 所述方法的执行主体为处 理地址分配的设备, 具体地可以为分组数据网关, 所述分组数据网关可以为 PDN-GW, 在 PMIP场景下也可以为 S-GW, 如图 10所示, 该方法包括:  An embodiment of the present invention provides a method for allocating an IPv6 address, where the method is performed by an apparatus for processing an address, and may be a packet data gateway, where the packet data gateway may be a PDN-GW, and in a PMIP scenario. It can be an S-GW, as shown in FIG. 10, the method includes:
步骤 1001 ,处理地址分配的设备与动态主机配置协议 DHCPv6服务器协商 是否支持所述 DHCPv6服务器分配全局 IPv6地址的能力; Step 1001: The device that processes the address allocation negotiates with the dynamic host configuration protocol DHCPv6 server. Whether to support the ability of the DHCPv6 server to allocate a global IPv6 address;
所述处理地址分配的设备为分组数据网关, 所述分组数据网关具体为 PDN-GW, 在 PMIP场景下也可以为 S-GW。  The device for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario.
具体地, 如果所述 DHCPv6服务器支持所述 DHCPv6服务器分配全局 IPv6 地址的能力, 则执行下面的流程, 如果所述 DHCPv6服务器不支持所述 DHCPv6 服务器分配全局 IPv6地址的能力, 则按照现有技术执行。  Specifically, if the DHCPv6 server supports the capability of the DHCPv6 server to allocate a global IPv6 address, perform the following process. If the DHCPv6 server does not support the capability of the DHCPv6 server to allocate a global IPv6 address, perform according to the prior art. .
步骤 1002 ,接收为用户设备 UE分配地址的请求消息, 所述请求消息中包 括所述 UE所在的网络域的标识符;  Step 1002: Receive a request message for allocating an address for the user equipment UE, where the request message includes an identifier of a network domain where the UE is located;
具体地,丽 E接收到所述 UE发送的附着请求报文之后, 向所述 PDN-GW发 送创建会话请求报文,所述附着请求报文包括所述 UE所在的网络域的标识符, 所述 PDN-GW接收所述 MME发送创建会话请求 文是通过所述 S-GW接收的。  Specifically, after receiving the attach request message sent by the UE, the MN sends a create session request message to the PDN-GW, where the attach request message includes an identifier of the network domain where the UE is located. The receiving, by the PDN-GW, the MME sends a create session request message through the S-GW.
所述网络域的标识符可以用来标记一组具有相同特性的 UE , 这些相同特 性可以是处于相同的地理位置, 或者是访问相同应用, 或者属于相同的管理 实体管理, 或者是上述特性的组合。 具体的所述网络域的标识符包括 APN ( Acces s Po int Name , 接入点名称)、 群组标识符、 用户组标识符, 或者所 述 APN、 所述群组标识符和所述用户组标识符的组合。  The identifier of the network domain may be used to mark a group of UEs having the same characteristics, and the same characteristics may be in the same geographical location, or access to the same application, or belong to the same management entity management, or a combination of the above characteristics. . Specifically, the identifier of the network domain includes an APN (Aces s Po int Name), a group identifier, a user group identifier, or the APN, the group identifier, and the user group. A combination of identifiers.
需要说明的是, 步骤 1 001可以是在所述 IPv6地址分配的方法执行之前, 预先协商并配置在所述 PDN-GW上的, 也可以是在步骤 1 002中所述 UE向所述 PDN-GW发送包含所述 UE所在的网络域的标识符的报文时 ,在所述报文中携带, 然后发送给所述 PDN-GW来触发。  It should be noted that the step 1 001 may be pre-negotiated and configured on the PDN-GW before the method of the IPv6 address allocation is performed, or may be the UE in the step 1 002 to the PDN- When the GW sends a packet containing the identifier of the network domain where the UE is located, it is carried in the packet and then sent to the PDN-GW to trigger.
步骤 1003 ,通过所述 MME向所述 UE发送生成链路局部地址的接口标识符 和所述 DHCPv6服务器是否具有支持分配所述全局 IPv6地址能力的标识符; 具体地, 所述 PDN-GW通过所述丽 E向所述 UE发送生成链路局部地址的 接口标识符和所述 DHCPv6服务器是否具有支持分配所述全局 IPv6地址能力 的标识符, 所述 DHCPv6服务器是否具有支持分配所述全局 IPv6地址能力的 标识符可以用 DHCP-FLAG表示, 如果所述 DHCPv6服务器具有支持分配所述全 局 IPv6地址的能力, 则所述 PDN-GW向所述 UE发送所述 DHCP-FLAG标识符, 如果所述 DHCPv6服务器不具有支持分配所述全局 IPv6地址的能力, 则所述 PDN-GW不向所述 UE发送所述 DHCP-FLAG标识符, 以用来告知所述 UE是否可 以向所述 DHCPv6服务器请求所述全局 IPv6地址。 Step 1003: Send, by using the MME, an interface identifier that generates a link local address to the UE, and whether the DHCPv6 server has an identifier that supports the capability of allocating the global IPv6 address. Specifically, the PDN-GW passes the Transmitting the interface identifier of the link local address to the UE and whether the DHCPv6 server has an identifier supporting the capability of allocating the global IPv6 address, and whether the DHCPv6 server has the capability of supporting the allocation of the global IPv6 address. The identifier may be represented by DHCP-FLAG, and if the DHCPv6 server has the capability to support allocation of the global IPv6 address, the PDN-GW sends the DHCP-FLAG identifier to the UE, If the DHCPv6 server does not have the capability to support the allocation of the global IPv6 address, the PDN-GW does not send the DHCP-FLAG identifier to the UE, to inform the UE whether the DHCPv6 can be sent to the DHCPv6. The server requests the global IPv6 address.
步骤 1004 ,判断是否保存有与所述 UE所在的网络域的标识符对应的 IPv6 前缀;  Step 1004: Determine whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved.
当所述 PDN-GW接收到所述 DHCP Reques t消息后,查看所述 DHCP Reques t 消息所属的网络域的标识符, 即所述 UE所在的网络域的标识符, 然后判断是 否保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀。  After receiving the DHCP Reques t message, the PDN-GW checks the identifier of the network domain to which the DHCP Reques t message belongs, that is, the identifier of the network domain where the UE is located, and then determines whether the information is saved. The IPv6 prefix corresponding to the identifier of the network domain where the UE is located.
步骤 1005 , 当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀 时, 所述 PDN-GW将所述 IPv6前缀发送给动态主机配置协议 DHCPv6服务器, 并由所述 DHCPv6服务器向所述 UE发送携带所述 IPv6前缀的全局 IPv6地址; 具体地, 当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀, 所述 PDN-GW将所述 IPv6前缀和所述 DHCP Reques t消息转发给所述 DHCPv6 服务器, 接收到所述 DHCPv6服务器发送的 DHCP Rep ly消息后, 转发给所述 UE。 所述 DHCP Reply消息包括携带所述 IPv6前缀的全局 IPv6地址。  Step 1005: When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, the PDN-GW sends the IPv6 prefix to the dynamic host configuration protocol DHCPv6 server, and the DHCPv6 server Transmitting, by the UE, a global IPv6 address carrying the IPv6 prefix; specifically, when storing an IPv6 prefix corresponding to an identifier of a network domain where the UE is located, the PDN-GW uses the IPv6 prefix and the DHCP Reques The t message is forwarded to the DHCPv6 server, and after receiving the DHCP Rep ly message sent by the DHCPv6 server, the message is forwarded to the UE. The DHCP Reply message includes a global IPv6 address carrying the IPv6 prefix.
步骤 1006 , 当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前 缀时, 所述 PDN-GW解析所述 DHCPv6服务器发送的 DHCP Reply消息获得一个 IPv6前缀, 将携带所述 IPv6前缀的全局 IPv6地址发送给所述 UE, 并保存所 述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系;  Step 1006: When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the PDN-GW parses the DHCP Reply message sent by the DHCPv6 server to obtain an IPv6 prefix, and carries the IPv6 prefix. The global IPv6 address is sent to the UE, and the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix are saved;
具体地, 当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀 时, 所述 PDN-GW接收到所述 DHCPv6服务器发送的 DHCP Reply消息后, 所述 DHCP Rep ly消息包括携带所述 IPv6前缀的全局 IPv6地址, 所述 PDN-GW解析 所述 DHCP Reply消息中的所述全局 IPv6地址, 获取与所述 UE所在的网络域 的标识符相应的所述 IPv6前缀, 并在所述 PDN-GW上保存所述 UE所在的网络 域的标识符和所述 IPv6前缀对应的关系 ,然后所述 PDN-GW再将携带所述 IPv6 前缀的全局 IPv6地址转发给所述 UE。  Specifically, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, after the PDN-GW receives the DHCP Reply message sent by the DHCPv6 server, the DHCP Reply message includes a carrier. Describe the global IPv6 address of the IPv6 prefix, the PDN-GW parses the global IPv6 address in the DHCP Reply message, and obtains the IPv6 prefix corresponding to the identifier of the network domain where the UE is located, and in the The PDN-GW saves the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix, and then the PDN-GW forwards the global IPv6 address carrying the IPv6 prefix to the UE.
本发明实施例提供的一种 IPv6地址分配的方法, 通过 DHCPv6服务器向 UE发送携带所述 IPv6前缀的全局 IPv6地址, 在所述 P請- GW上保存所述 UE 所在的网络域的标识符和所述 IPv6前缀对应的关系, 可以在相同网络域中的 不同 UE请求所述全局 IPv6地址时, 分配相同的 IPv6前缀。 与现 技术中在 进行 IPv6地址分配时, IPv6前缀资源有限, 导致 IPv6地址分配紧张, 不满 足现实使用的技术问题相比, 本发明实施例提供的方案可以为相同网络域中 的不同 UE 分配相同的 IPv6前綴, 增加 IPv6地址的可用空间并且提高 IPv6 地址的利用率。 A method for allocating an IPv6 address provided by an embodiment of the present invention, through a DHCPv6 server Transmitting, by the UE, a global IPv6 address that carries the IPv6 prefix, and storing, on the P-GW, a relationship between an identifier of the network domain where the UE is located and the IPv6 prefix, and may be requested by different UEs in the same network domain. When the global IPv6 address is used, the same IPv6 prefix is assigned. When the IPv6 address allocation is performed in the prior art, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight. The solution provided by the embodiment of the present invention may be the same for different UEs in the same network domain. The IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.
本发明实施例还提供一种 IPv6地址分配的方法, 所述方法的执行主体为 UE, 如图 11所示, 该方法包括:  The embodiment of the present invention further provides a method for allocating an IPv6 address, where the method is performed by the UE, as shown in FIG.
步骤 1101 , 向处理地址分配的设备发送地址分配请求消息, 所述地址分 配请求消息中包括用户设备 UE所在的网络域的标识符, 所述 UE所在的网络 域的标识符用于获取 IPv6前缀;  Step 1101: Send an address allocation request message to the device that is configured to process the address, where the address allocation request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain an IPv6 prefix.
所述处理地址分配的设备为分组数据网关, 所述分组数据网关具体为 PDN-GW, 在 PMIP场景下也可以为 S- GW, 下面以所述分组数据网关是 PDN- GW 为例进行描述。  The device for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario. The following describes the packet data gateway as a PDN-GW as an example.
所述 UE通过移动管理网元匪 E向所述 PDN- GW发送地址分配请求消息, 具体地, 所述 UE向所述 MME发送附着请求 4艮文, 然后所述 MME向所述分组数 据网关发送创建会话请求报文, 所述附着请求报文包括用户设备 UE所在的网 络域的标识符, 所述创建会话请求报文包括所述 UE所在的网絡域的标识符。 所述匪 E向所述分组数据网关发送的创建会话请求报文是通过服务网关 S-GW 发送给所述 PDN-GW的。  The UE sends an address allocation request message to the PDN-GW through the mobility management network element ,E. Specifically, the UE sends an attach request message to the MME, and then the MME sends the message to the packet data gateway. A session request message is created, where the attach request message includes an identifier of a network domain where the user equipment UE is located, and the create session request message includes an identifier of a network domain where the UE is located. The create session request message sent by the packet to the packet data gateway is sent to the PDN-GW through the serving gateway S-GW.
所述网络域的标识符可以用来标记一组具有相同特性的 UE , 这些相同特 性可以是处于相同的地理位置, 或者是访问相同应用 或者属于相同的管理 实体管理,或者是上述特性的组合。所述网络域的标识符包括接入点名称 APN、 群组标识符、 用户组标识符, 或者所述 APN、 所述群组标识符和所述用户组标 识符的组合。  The identifier of the network domain may be used to mark a group of UEs having the same characteristics, which may be in the same geographical location, or access to the same application or belong to the same management entity management, or a combination of the above characteristics. The identifier of the network domain includes an access point name APN, a group identifier, a user group identifier, or a combination of the APN, the group identifier, and the user group identifier.
步骤 1102 ,接收所述 PDN- GW通过所述 MME发送的生成链路局部地址的接  Step 1102: Receive, by the PDN-GW, a link local address generated by the MME.
- 22 - 更正页 (细则第 91条) 口标识符和所述 DHCPv6服务器是否具有分配所述全局 IPv6地址能力的标识 付; - 22 - Correction page (Article 91) a port identifier and whether the DHCPv6 server has an identifier for assigning the global IPv6 address capability;
所述 MME接收到所述 PDN-GW发送的附着回应报文之后, 向所述 UE发送 创建会话响应报文, 所述创建会话响应报文包括生成链路局部地址的接口标 识符和所述 DHCPv6服务器是否具有分配所述全局 IPv6地址能力的标识符, 所述附着回应报文包括生成链路局部地址的接口标识符和所述 DHCPv6服务器 是否具有分配所述全局 IPv6地址能力的标识符, 所述丽 E接收所述 PDN-GW 发送的附着回应报文是通过 S-GW接收的, 所述链路局部地址具体指所述 UE 所在的局域网内的链路上的一个可用的地址。  After receiving the attach response message sent by the PDN-GW, the MME sends a create session response message to the UE, where the create session response message includes an interface identifier for generating a link local address and the DHCPv6 Whether the server has an identifier for assigning the global IPv6 address capability, the attach response message includes an interface identifier for generating a link local address, and an identifier of whether the DHCPv6 server has the capability of allocating the global IPv6 address, The E-E receives the Echo Reply message sent by the PDN-GW, and is received by the S-GW. The link local address specifically refers to an available address on the link in the local area network where the UE is located.
步骤 1103 , 根据链路局部地址的接口标识符生成链路局部地址; 所述 UE根据所述链路局部地址的接口标识符生成链路局部地址, 所述链 路局部地址是所述 UE所在的局域网内的链路上的一个可用的地址, 可以用来 完成本地网络的通讯, 用来发起 DHCP Reques t请求。  Step 1103: Generate a link local address according to the interface identifier of the link local address. The UE generates a link local address according to the interface identifier of the link local address, where the link local address is where the UE is located. An available address on the link within the local area network that can be used to complete local network communication and is used to initiate DHCP Reques requests.
步骤 1104 , 所述 UE接收所述 DHCPv6服务器发送的 DHCP Reply消息, 所 述 DHCP Reply消息包括携带所述 IPv6前缀的全局 IPv6地址。  Step 1104: The UE receives a DHCP Reply message sent by the DHCPv6 server, where the DHCP Reply message includes a global IPv6 address carrying the IPv6 prefix.
具体地, 所述 UE通过所述 MME和所述 PDN-GW接收所述 DHCPv6服务器发 送的 DHCP Reply消息, 所述 DHCP Reply消息包括所述 UE的携带所述 IPv6 前缀的全局 IPv6地址。  Specifically, the UE receives, by using the MME and the PDN-GW, a DHCP Reply message sent by the DHCPv6 server, where the DHCP Reply message includes a global IPv6 address of the UE that carries the IPv6 prefix.
本发明实施例提供的一种 IPv6地址分配的方法, 通过在相同网络域中的 不同 UE 请求所述全局 IPv6地址时, 为所述 UE分配相同的 IPv6前缀。 与现 有技术中在进行 IPv6地址分配时, IPv6前缀资源有限, 导致 IPv6地址分配 紧张, 不满足现实使用的技术问题相比, 本发明实施例提供的方案可以为相 同网络域中的不同 UE分配相同的 IPv6前缀, 增加 IPv6地址的可用空间并且 提高 IPv6地址的利用率。  An IPv6 address allocation method is provided by the embodiment of the present invention. When the global IPv6 address is requested by different UEs in the same network domain, the UE is assigned the same IPv6 prefix. Compared with the prior art, when the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not satisfied with the technical problem of the actual use. The solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain. The same IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.
本发明实施例提供一种 IPv6地址分配的方法, 如图 12所示, 该方法包 括:  The embodiment of the invention provides a method for IPv6 address allocation. As shown in FIG. 12, the method includes:
步骤 1201 , 处理地址分配的设备与动态主机配置协议 DHCPv6服务器协 商是否支持所述 DHCPv6服务器分配全局 IPv6地址的能力; Step 1201: Processing the address allocation device and the dynamic host configuration protocol DHCPv6 server protocol Whether the quotient supports the ability of the DHCPv6 server to allocate a global IPv6 address;
所述处理地址分配的设备为分组数据网关, 所述分组数据网关具体为 The device that processes the address allocation is a packet data gateway, where the packet data gateway is specifically
PDN-GW, 在 PMIP场景下也可以为 S-GW。 PDN-GW can also be S-GW in the PMIP scenario.
具体地, 如果所述 DHCPv6服务器支持所述 DHCPv6服务器分配全局 IPv6 地址的能力, 则执行下面的流程, 如果所述 DHCPv6服务器不支持所述 DHCPv6 服务器分配全局 IPv6地址的能力, 则按照现有技术执行。  Specifically, if the DHCPv6 server supports the capability of the DHCPv6 server to allocate a global IPv6 address, perform the following process. If the DHCPv6 server does not support the capability of the DHCPv6 server to allocate a global IPv6 address, perform according to the prior art. .
步骤 1202 , 用户设备 UE通过移动管理网元丽 E向处理地址分配的设备 发送其所在的网络域的标识符,所述 UE所在的网络域的标识符用于获取 IPv6 前缀;  Step 1202: The user equipment UE sends the identifier of the network domain where the UE is located to the device that processes the address through the mobility management network element E, and the identifier of the network domain where the UE is located is used to obtain an IPv6 prefix.
所述网络域的标识符可以用来标记一组具有相同特性的 UE , 这些相同特 性可以是处于相同的地理位置的 UE , 或者是访问相同的应用, 或者属于相同 的管理实体管理, 或者是上述特性的组合。 具体的所述网络域的标识符可包 括 APN ( Acces s Po int Name , 接入点名称)、 群组标识符、 用户组标识符, 或 者所述 APN、 所述群组标识符和所述用户组标识符的组合。  The identifier of the network domain may be used to mark a group of UEs having the same characteristics, and the same characteristics may be UEs in the same geographical location, or access to the same application, or belong to the same management entity management, or A combination of features. The identifier of the specific network domain may include an APN (Aces s Po int Name), a group identifier, a user group identifier, or the APN, the group identifier, and the user. A combination of group identifiers.
需要说明的是, 步骤 1201可以是在所述 IPv6地址分配的方法执行之前, 预先协商并配置在所述 PDN-GW上的, 也可以是在步骤 1202中所述 UE向所述 PDN-GW发送包含所述 UE所在的网络域的标识符的报文时 ,在所述报文中携带, 然后发送给所述 PDN-GW来触发。  It should be noted that the step 1201 may be pre-negotiated and configured on the PDN-GW before the method for performing the IPv6 address allocation, or may be sent by the UE to the PDN-GW in step 1202. The packet containing the identifier of the network domain where the UE is located is carried in the packet and then sent to the PDN-GW for triggering.
步骤 1203 ,所述 PDN-GW通过所述丽 E接收所述 UE发送的所述 UE所在的 网络域的标识符, 并向所述 UE 发送生成链路局部地址的接口标识符和所述 DHCPv6服务器是否具有分配所述全局 IPv6地址能力的标识符;  Step 1203: The PDN-GW receives, by using the MN E, an identifier of a network domain where the UE is sent by the UE, and sends an interface identifier that generates a link local address to the UE and the DHCPv6 server. Whether there is an identifier for assigning the global IPv6 address capability;
所述 DHCPv6服务器是否具有支持分配所述全局 IPv6地址能力的标识符 可以用 DHCP-FLAG表示, 如果所述 DHCPv6服务器具有支持分配所述全局 IPv6 地址的能力, 则所述 PDN-GW向所述 UE发送所述 DHCP-FLAG标识符, 如果所述 DHCPv6服务器不具有支持分配所述全局 IPv6地址的能力, 则所述 PDN-GW不 向所述 UE发送所述 DHCP-FLAG标识符, 以用来告知所述 UE是否可以向所述 DHCPv6服务器请求所述全局 IPv6地址。 步骤 1204 , 所述 UE接收所述 PDN-GW通过所述丽 E发送的生成链路局部 地址的接口标识符和所述 DHCPv6服务器是否具有分配所述全局 IPv6地址能 力的标识符; Whether the DHCPv6 server has an identifier capable of supporting the allocation of the global IPv6 address may be represented by a DHCP-FLAG, and if the DHCPv6 server has the capability of supporting the allocation of the global IPv6 address, the PDN-GW to the UE Sending the DHCP-FLAG identifier, if the DHCPv6 server does not have the capability to support the allocation of the global IPv6 address, the PDN-GW does not send the DHCP-FLAG identifier to the UE, to notify Whether the UE can request the global IPv6 address from the DHCPv6 server. Step 1204: The UE receives an interface identifier of a link local address generated by the PDN-GW through the MN, and an identifier of whether the DHCPv6 server has the capability of allocating the global IPv6 address.
步骤 1205 ,所述 UE根据生成链路局部地址的接口标识符生成链路局部地 址;  Step 1205: The UE generates a link local address according to an interface identifier that generates a link local address.
所述 UE根据所述生成链路局部地址的接口标识符生成链路局部地址, 所 述链路局部地址可以用来完成本地网络的通讯,用来发起 DHCP Reques t请求。  The UE generates a link local address according to the interface identifier that generates the link local address, and the link local address can be used to complete communication of the local network, and is used to initiate a DHCP Reques request.
步骤 1206 , 所述 UE向所述 DHCPv6服务器发送 DHCP Reques t消息, 所述 DHCP Reques t消息为所述 UE向所述 DHCPv6服务器请求分配所述全局 IPv6地 址;  Step 1206: The UE sends a DHCP Reques t message to the DHCPv6 server, where the DHCP Reques t message requests the UE to allocate the global IPv6 address to the DHCPv6 server.
所述 UE通过所述丽 E和所述 PDN-GW向所述 DHCPv6服务器发送的所述 DHCP Reques t消息, 所述 DHCP Reques t消息是所述 UE以报文的形式发送给 所述 DHCPv6服务器的。  And the DHCP Reques t message sent by the UE to the DHCPv6 server by using the MME and the PDN-GW, where the DHCP Reques t message is sent by the UE to the DHCPv6 server in the form of a packet. .
步骤 1207 , 所述 PDN-GW判断是否保存有与所述 UE所在的网络域的标识 符对应的 IPv6前缀;  Step 1207: The PDN-GW determines whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved.
当所述 PDN-GW接收到所述 DHCP Reques t消息后,查看所述 DHCP Reques t 消息所属的网络域的标识符, 即所述 UE所在的网络域的标识符, 然后判断是 否保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀。  After receiving the DHCP Reques t message, the PDN-GW checks the identifier of the network domain to which the DHCP Reques t message belongs, that is, the identifier of the network domain where the UE is located, and then determines whether the information is saved. The IPv6 prefix corresponding to the identifier of the network domain where the UE is located.
步骤 1208 , 当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀 时, 所述 PDN-GW将所述 IPv6前缀发送给动态主机配置协议 DHCPv6服务器, 并由所述 DHCPv6服务器向所述 UE发送携带所述 IPv6前缀的全局 IPv6地址; 具体地, 当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀, 所述 PDN-GW根据所述 UE所在的网络域的标识符, 查询出与所述 UE所在的网 络域的标识符对应的 IPv6前缀, 然后将所述 IPv6前缀和所述 DHCP Reques t 消息转发给所述 DHCPv6服务器,接收到所述 DHCPv6服务器发送的 DHCP Rep ly 消息后, 转发给所述 UE。 所述 DHCP Rep ly消息包括携带所述 IPv6前缀的全 局 IPv6地址。 步骤 1209 , 当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前 缀时, 解析所述 DHCPv6服务器发送的 DHCP Reply消息获得一个 IPv6前缀, 将携带所述 IPv6前缀的全局 IPv6地址发送给所述 UE,并保存所述 UE所在的 网络域的标识符和所述 IPv6前缀对应的关系; Step 1208: When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, the PDN-GW sends the IPv6 prefix to the dynamic host configuration protocol DHCPv6 server, and the DHCPv6 server provides the The UE sends a global IPv6 address carrying the IPv6 prefix. Specifically, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored, the PDN-GW is determined according to the identifier of the network domain where the UE is located. And querying an IPv6 prefix corresponding to the identifier of the network domain where the UE is located, and then forwarding the IPv6 prefix and the DHCP Reques t message to the DHCPv6 server, and receiving the DHCP Rep sent by the DHCPv6 server After the ly message, it is forwarded to the UE. The DHCP Rep ly message includes a global IPv6 address carrying the IPv6 prefix. Step 1209: When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the DHCP Reply message sent by the DHCPv6 server is parsed to obtain an IPv6 prefix, and the global IPv6 address carrying the IPv6 prefix is sent to the And the UE saves a relationship between an identifier of a network domain where the UE is located and the IPv6 prefix;
具体地, 当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀, 所述 PDN-GW接收到所述 DHCPv6服务器发送的 DHCP Reply消息后, 所述 DHCP Reply消息包括携带所述 IPv6前缀的全局 IPv6地址, 所述 PDN-GW解析所述 DHCP Reply消息中的所述全局 IPv6地址, 获取所述 UE所在的网络域的标识 符相应的所述 IPv6前缀, 并在所述 PDN-GW上保存所述 UE所在的网络域的标 识符和所述 IPv6前缀对应的关系, 然后所述 PDN-GW再将所述 DHCP Reply消 息转发给所述 UE, 即将携带所述 IPv6前缀的全局 IPv6地址发送给所述 UE。  Specifically, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, after the PDN-GW receives the DHCP Reply message sent by the DHCPv6 server, the DHCP Reply message includes carrying the IPv6 a global IPv6 address of the prefix, the PDN-GW parses the global IPv6 address in the DHCP Reply message, and obtains the IPv6 prefix corresponding to the identifier of the network domain where the UE is located, and in the PDN-GW Preserving the relationship between the identifier of the network domain where the UE is located and the IPv6 prefix, and then the PDN-GW forwards the DHCP Reply message to the UE, and the global IPv6 address of the IPv6 prefix is to be carried. Sent to the UE.
步骤 1210,所述 UE通过所述固 E接收所述 PDN-GW发送的包括 IPv6前缀 的全局 IPv6地址。  Step 1210: The UE receives, by using the solid E, a global IPv6 address that is sent by the PDN-GW and includes an IPv6 prefix.
具体地, 所述 UE通过所述 MME和所述 PDN-GW接收所述 DHCPv6服务器发 送的 DHCP Reply消息, 所述 DHCP Reply消息包括所述 UE的携带所述 IPv6 前缀的全局 IPv6地址。  Specifically, the UE receives, by using the MME and the PDN-GW, a DHCP Reply message sent by the DHCPv6 server, where the DHCP Reply message includes a global IPv6 address of the UE that carries the IPv6 prefix.
需要说明的是, 所述 PDN-GW直接根据所述 UE所在的网络域的标识符, 给所述 UE分配一个 IPv6前缀, 然后与所述 UE自己生成的接口标识符组合成 一个全局 IPv6地址。 所述 IPv6前缀携带在所述 RA消息中由所述 PDN-GW通 过所述丽 E发送给所述 UE , 所述 IPv6前缀可以是由 PDN-GW管理, 也可以由 PDN-GW从外部获取, 所述 RA消息中包括的所述 IPv6前缀是唯一的。 由于每 次为所述 UE分配的所述 IPv6前缀是唯一的, 而 IPv6前缀的资源有限, 导致 IPv6地址分配紧张。  It should be noted that the PDN-GW allocates an IPv6 prefix to the UE according to the identifier of the network domain where the UE is located, and then combines with the interface identifier generated by the UE to form a global IPv6 address. The IPv6 prefix is carried in the RA message by the PDN-GW to be sent by the Pseudo E to the UE, and the IPv6 prefix may be managed by the PDN-GW or may be externally obtained by the PDN-GW. The IPv6 prefix included in the RA message is unique. Since the IPv6 prefix assigned to the UE is unique each time, and the resources of the IPv6 prefix are limited, the IPv6 address allocation is tight.
本发明实施例提供的一种 IPv6地址分配的方法, 通过 DHCPv6服务器向 UE发送携带所述 IPv6前缀的全局 IPv6地址, 在所述 PDN-GW上保存所述 UE 所在的网络域的标识符和所述 IPv6前缀对应的关系, 可以在相同网络域中的 不同 UE请求所述全局 IPv6地址时, 分配相同的 IPv6前缀。 与现有技术中在 进行 IPv6地址分配时, IPv6前缀资源有限, 导致 IPv6地址分配紧张, 不满 足现实使用的技术问题相比, 本发明实施例提供的方案可以为相同网络域中 的不同 UE 分配相同的 IPv6前缀, 增加 IPv6地址的可用空间并且提高 IPv6 地址的利用率。 A method for allocating an IPv6 address according to an embodiment of the present invention, the DHCPv6 server sends a global IPv6 address carrying the IPv6 prefix to the UE, and saves, on the PDN-GW, an identifier and a network domain where the UE is located. The relationship corresponding to the IPv6 prefix may be assigned to the same IPv6 prefix when different UEs in the same network domain request the global IPv6 address. In the prior art When the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which does not satisfy the technical problem of the actual use. The solution provided by the embodiment of the present invention can allocate the same IPv6 prefix to different UEs in the same network domain, and increase Free space for IPv6 addresses and increased utilization of IPv6 addresses.
本发明实施例提供一种 IPv6 地址分配的设备, 该设备可以为 UE , 如图 13所示, 该设备包括: 发送单元 401 , 第三接收单元 407 , 接收模块 408。  The embodiment of the present invention provides a device for allocating an IPv6 address, and the device may be a UE. As shown in FIG. 13, the device includes: a sending unit 401, a third receiving unit 407, and a receiving module 408.
发送单元 401 , 用于向处理地址分配的设备发送地址分配请求消息, 所述 地址分配请求消息中包括用户设备 UE所在的网络域的标识符, 所述 UE所在 的网络域的标识符用于获取 IPv6前缀;  The sending unit 401 is configured to send, to the device that processes the address, an address allocation request message, where the address allocation request message includes an identifier of a network domain where the user equipment UE is located, and an identifier of the network domain where the UE is located is used to obtain IPv6 prefix;
所述处理地址分配的设备组为分组数据网关, 所述分组数据网关具体为 PDN-GW, 在 PMIP场景下也可以为 S-GW。 所述发送单元 401具体用于: 向移动 管理网元丽 E发送附着请求报文, 然后所述丽 E通过 S-GW向所述 PDN-GW发 送创建会话请求报文, 所述附着请求报文包括用户设备 UE所在的网络域的标 识符, 所述创建会话请求报文包括所述 UE所在的网络域的标识符。  The device group for processing the address allocation is a packet data gateway, and the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario. The sending unit 401 is specifically configured to: send an attach request message to the mobile management network element E, and then send the create session request message to the PDN-GW by using the S-GW, and the attach request message And including an identifier of a network domain where the user equipment UE is located, where the creation session request message includes an identifier of a network domain where the UE is located.
第三接收单元 407 , 用于接收所述 PDN-GW通过所述丽 E发送的生成链路 局部地址的接口标识符和所述 DHCPv6服务器是否具有分配所述全局 IPv6地 址能力的标识符;  a third receiving unit 407, configured to receive, by the PDN-GW, an interface identifier for generating a link local address sent by the MN and whether the DHCPv6 server has an identifier for assigning the global IPv6 address capability;
接收所述 MME发送的创建会话响应报文, 所述 MME发送的创建会话响应 报文是由所述 MME接收到所述 PDN-GW发送的附着回应报文之后发送的, 所述 创建会话响应报文包括生成链路局部地址的接口标识符和所述 DHCPv6服务器 是否具有分配所述全局 IPv6地址能力的标识符, 所述附着回应报文包括生成 链路局部地址的接口标识符和所述 DHCPv6服务器是否具有分配所述全局 IPv6 地址能力的标识符; 所述 DHCPv6服务器是否具有支持分配所述全局 IPv6地 址的能力由所述 PDN-GW和所述 DHCPv6服务器共同协商的。  Receiving a create session response message sent by the MME, where the create session response message sent by the MME is sent by the MME after receiving the attach response message sent by the PDN-GW, where the session response report is sent. The method includes an interface identifier for generating a link local address, and an identifier of whether the DHCPv6 server has the capability of allocating the global IPv6 address, where the attach response message includes an interface identifier for generating a link local address and the DHCPv6 server Whether there is an identifier for assigning the global IPv6 address capability; whether the DHCPv6 server has the ability to support allocation of the global IPv6 address is jointly negotiated by the PDN-GW and the DHCPv6 server.
然后根据所述生成链路局部地址的接口标识符生成链路局部地址, 所述 链路局部地址可以用来完成本地网络的通讯。 所述链路局部地址具体指所述 UE所在的局域网内的链路上的一个可用的地址。 接收模块 408 , 用于接收所述 DHCPv6服务器发送的 DHCP Reply消息, 所 述 DHCP Reply消息包括所述 UE的携带所述 IPv6前缀的全局 IPv6地址, 所 述全局 IPv6地址指在全球公共领域内可以使用的、 唯一的地址。 A link local address is then generated according to the interface identifier that generates the link local address, and the link local address can be used to complete communication of the local network. The link local address specifically refers to an available address on a link in a local area network where the UE is located. The receiving module 408 is configured to receive a DHCP Reply message sent by the DHCPv6 server, where the DHCP Reply message includes a global IPv6 address of the UE that carries the IPv6 prefix, where the global IPv6 address is used in the global public domain. , the only address.
这里, 所述 IPv6前缀可以是所述 PDN-GW上保存的与所述 UE所在的网络 域的标识符对应的 IPv6前缀, 也可以是从所述 DHCPv6服务器发送给所述 UE 的 DHCP Reply消息中解析出来的 IPv6前缀, 并保存所述 UE所在的网络域的 标识符和所述 IPv6前缀对应的关系, 这样, 当有与所述 UE所在的网络域相 同的 UE再请求全局 IPv6地址时, 可以使相同网络域的不同的 UE具有相同的 所述 IPv6前缀, 增加 IPv6地址的可用空间并且提高 IPv6地址的利用率。  Here, the IPv6 prefix may be an IPv6 prefix that is stored on the PDN-GW and that corresponds to an identifier of a network domain where the UE is located, or may be a DHCP Reply message sent from the DHCPv6 server to the UE. Parsing the IPv6 prefix, and storing the identifier of the network domain where the UE is located, and the relationship corresponding to the IPv6 prefix, so that when the UE with the same network domain as the UE requests the global IPv6 address, Different UEs of the same network domain have the same IPv6 prefix, increase the available space of the IPv6 address, and improve the utilization of the IPv6 address.
本发明实施例还提供一种 IPv6地址分配的设备, 该设备可以为分组数据 网关, 所述分组数据网关具体为 PDN-GW, 在 PMIP场景下也可以为 S-GW。 如 图 14所示, 该设备包括: 接收单元 301 , 判断单元 302 , 发送模块 307 , 执行 模块 308 , 协商单元 309 , 第四发送单元 310。  The embodiment of the present invention further provides an apparatus for allocating an IPv6 address, and the device may be a packet data gateway, where the packet data gateway is specifically a PDN-GW, and may also be an S-GW in a PMIP scenario. As shown in FIG. 14, the device includes: a receiving unit 301, a determining unit 302, a sending module 307, an executing module 308, a negotiating unit 309, and a fourth transmitting unit 310.
协商单元 309 ,用于与 DHCPv6服务器协商是否具有支持所述 DHCPv6服务 器分配全局 IPv6地址的能力;  The negotiating unit 309 is configured to negotiate with the DHCPv6 server whether the DHCPv6 server supports the ability to allocate a global IPv6 address.
接收单元 301 , 用于接收为用户设备 UE分配地址的请求消息, 所述地址 分配请求消息中包括所述 UE所在的网络域的标识符;  The receiving unit 301 is configured to receive a request message for allocating an address for the user equipment UE, where the address allocation request message includes an identifier of a network domain where the UE is located;
所述接收单元 301具体用于: 接收所述 MME发送创建会话请求报文, 所 述创建会话请求^¾文包括 UE所在的网络域的标识符, 所述 MME发送的创建会 话请求报文是由所述丽 E接收到所述 UE发送的附着请求报文之后发送的, 所 述附着请求 "¾文包括所述 UE所在的网络域的标识符。  The receiving unit 301 is specifically configured to: receive, by the MME, a create session request message, where the create session request message includes an identifier of a network domain where the UE is located, and the create session request message sent by the MME is After receiving the attach request message sent by the UE, the attach request includes the identifier of the network domain where the UE is located.
第四发送单元 310,用于如果所述 DHCPv6服务器支持所述 DHCPv6服务器 分配单个 IPv6地址的能力, 通过所述丽 E向所述 UE发送生成链路局部地址 的接口标识符和所述 DHCPv6服务器是否具有分配所述全局 IPv6地址能力的 标识符;  a fourth sending unit 310, configured to: if the DHCPv6 server supports the capability of the DHCPv6 server to allocate a single IPv6 address, send, by using the MN to the UE, an interface identifier that generates a link local address and whether the DHCPv6 server is An identifier having the ability to allocate the global IPv6 address;
然后判断单元 302判断是否保存有与所述 UE所在的网络域的标识符对应 的 IPv6前缀; 这里, 具体为所述 PDN-GW查看是否保存有与所述 UE所在的网 络域的标识符对应的 I P V 6前缀。 Then, the determining unit 302 determines whether the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved. Here, specifically, the PDN-GW checks whether the network where the UE is located is saved. The identifier of the domain corresponds to the IPV 6 prefix.
当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 发送模 块 307将所述 IPv6前缀发送给动态主机配置协议 DHCPv6服务器, 并由所述 DHCPv6服务器向所述 UE发送携带所述 IPv6前缀的全局 IPv6地址。  When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, the sending module 307 sends the IPv6 prefix to the dynamic host configuration protocol DHCPv6 server, and the DHCPv6 server sends the bearer to the UE. The global IPv6 address of the IPv6 prefix.
当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 执行 模块 308解析所述 DHCPv6服务器发送的 DHCP Rep ly消息获得一个 IPv6前缀, 将携带所述 IPv6前缀的全局 IPv6地址发送给所述 UE,并保存所述 UE所在的 网络域的标识符和所述 IPv6前缀对应的关系。  When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the execution module 308 parses the DHCP Rep ly message sent by the DHCPv6 server to obtain an IPv6 prefix, and sends the global IPv6 address carrying the IPv6 prefix. And the relationship between the identifier of the network domain where the UE is located and the IPv6 prefix is saved.
具体地, 所述 PDN-GW接收到所述 DHCPv6服务器发送的 DHCP Reply消息 后, 解析所述 DHCP Rep 1 y消息中的所述全局 I Pv6地址, 获取与所述 UE所在 的网络域的标识符相应的所述 IPv6前缀, 并在所述 PDN-GW上保存所述 UE所 在的网络域的标识符和所述 IPv6前缀对应的关系, 然后所述 PDN-GW再将所 述 DHCP Reply消息转发给所述 UE, 所述 DHCP Reply消息包括携带所述 IPv6 前缀的全局 IPv6地址。  Specifically, after receiving the DHCP Reply message sent by the DHCPv6 server, the PDN-GW parses the global IP address of the DHCP Rep1 y message to obtain an identifier of the network domain where the UE is located. Corresponding the IPv6 prefix, and storing, on the PDN-GW, an identifier of a network domain where the UE is located and a relationship corresponding to the IPv6 prefix, and then the PDN-GW forwards the DHCP Reply message to the PDN-GW. The UE, the DHCP Reply message includes a global IPv6 address carrying the IPv6 prefix.
本发明实施例提供的一种 IPv6地址分配的设备, 通过查看单元查看是否 保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀, 第一发送单元将 包括所述 IPv6前缀的全局 IPv6地址发送给 UE, 或者, 执行单元将为所述 UE 分配一个 IPv6前缀, 并保存所述 UE所在的网络域的标识符和所述 IPv6前缀 对应的关系, 以便可以给与所述 UE所在的网络域相同的 UE请求全局 IPv6地 址时分配相同的 IPv6前缀。 与现有技术中在进行 IPv6地址分配时, IPv6前 缀资源有限, 导致 IPv6地址分配紧张, 不满足现实使用的技术问题相比, 本 发明实施例提供的方案可以为相同网络域中的不同 UE分配相同的 IPv6前缀, 增加 IPv6地址的可用空间并且提高 IPv6地址的利用率。  An apparatus for allocating an IPv6 address according to an embodiment of the present invention, by using a viewing unit to check whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved, the first sending unit includes a global IPv6 of the IPv6 prefix. The address is sent to the UE, or the execution unit allocates an IPv6 prefix to the UE, and saves the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix, so that the network where the UE is located can be given. When the UE with the same domain requests the global IPv6 address, the same IPv6 prefix is allocated. Compared with the prior art, when the IPv6 address allocation is performed, the IPv6 prefix resource is limited, and the IPv6 address allocation is tight, which is not satisfied with the technical problem of the actual use. The solution provided by the embodiment of the present invention may be allocated to different UEs in the same network domain. The same IPv6 prefix increases the available space of the IPv6 address and increases the utilization of the IPv6 address.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利 要求 书 Claim
1、 一种第六代互联网协议 IPv6地址分配的方法, 其特征在于, 包括: 接收为用户设备 UE分配地址的请求消息, 所述请求消息中包括所述 UE所 在的网络域的标识符; A sixth-generation Internet Protocol IPv6 address allocation method, comprising: receiving a request message for allocating an address for a user equipment UE, where the request message includes an identifier of a network domain in which the UE is located;
判断是否保存有与所述 UE所在的网络域的标识符对应的第六代互联网协议 IPv6前缀;  Determining whether a sixth generation Internet Protocol IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored;
当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 向所述 UE 发送与所述 UE所在的网络域的标识符对应的 IPv6前缀;  When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is saved, the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is sent to the UE;
当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 为所述 UE分配一个 IPv6前缀, 将所述 IPv6前缀发送给所述 UE , 并保存所述 UE所在 的网络域的标识符和所述 IPv6前缀对应的关系。  When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the IPv6 prefix is allocated to the UE, the IPv6 prefix is sent to the UE, and the network domain where the UE is located is saved. The relationship between the identifier and the IPv6 prefix.
2、 根据权利要求 1所述的一种 IPv6地址分配的方法, 其特征在于, 所述 网络域的标识符包括接入点名称 APN, 群组标识符, 用户组标识符, 或者所述 APN、 所述群组标识符和所述用户组标识符的组合。  2. The method for allocating an IPv6 address according to claim 1, wherein the identifier of the network domain comprises an access point name APN, a group identifier, a user group identifier, or the APN, A combination of the group identifier and the user group identifier.
3、 根据权利要求 2所述的一种 IPv6地址分配的方法, 其特征在于, 在所 述接收为用户设备 UE分配地址的请求消息之后还包括: 述链路局部地址用于完成本地网络的通讯; 或者, 局接口标识符, 所述全局接口标识符用于与所述 UE所在的网络域的标识符对应 的 IPv6前缀生成 IPv6地址。  The method for allocating an IPv6 address according to claim 2, further comprising: after the request message for receiving an address for the user equipment UE, the link local address is used to complete communication of the local network Or a local interface identifier, where the global interface identifier is used to generate an IPv6 address with an IPv6 prefix corresponding to the identifier of the network domain where the UE is located.
4、 根据权利要求 1或 2所述的一种 IPv6地址分配的方法, 其特征在于, 当保存有与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 所述当保存有 与所述 UE所在的网络域的标识符对应的 I Pv6前缀时 ,向所述 UE发送与所述 UE 所在的网络域的标识符对应的 IPv6前缀包括:  The method for allocating an IPv6 address according to claim 1 or 2, wherein when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is stored, the When the I Pv6 prefix corresponding to the identifier of the network domain where the UE is located, the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is sent to the UE, including:
将所述 IPv6前缀发送给动态主机配置协议 DHCPv6服务器,并由所述 DHCPv6 服务器向所述 UE发送携带所述 IPv6前缀的全局 IPv6地址; 当没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 所述当 没有保存与所述 UE所在的网络域的标识符对应的 IPv6前缀时, 为所述 UE分配 一个 IPv6前缀, 将所述 IPv6前缀发送给所述 UE, 并保存所述 UE所在的网络域 的标识符和所述 IPv6前缀对应的关系包括: Sending the IPv6 prefix to the dynamic host configuration protocol DHCPv6 server, and sending, by the DHCPv6 server, the global IPv6 address carrying the IPv6 prefix to the UE; When the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the UE is assigned an IPv6 prefix. And sending the IPv6 prefix to the UE, and saving the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix include:
解析所述 DHCPv6服务器发送的 DHCP Rep ly消息获得一个 IPv6前缀, 将携 带所述 IPv6前缀的全局 IPv6地址发送给所述 UE,并保存所述 UE所在的网络域 的标识符和所述 IPv6前缀对应的关系。  Parsing the DHCP Rep ly message sent by the DHCPv6 server to obtain an IPv6 prefix, and transmitting the global IPv6 address carrying the IPv6 prefix to the UE, and saving the identifier of the network domain where the UE is located and the IPv6 prefix Relationship.
5、 根据权利要求 4所述的一种 IPv6地址分配的方法, 其特征在于, 在所 述向所述 UE发送携带所述 IPv6前缀的全局 IPv6地址之前还包括:  The method for allocating an IPv6 address according to claim 4, wherein before the sending the global IPv6 address carrying the IPv6 prefix to the UE, the method further includes:
与所述 DHCPv6服务器协商所述 DHCPv6服务器是否支持分配全局 IPv6地址 的能力;  Negotiating with the DHCPv6 server whether the DHCPv6 server supports the ability to allocate a global IPv6 address;
如果所述 DHCPv6服务器支持所述 DHCPv6服务器分配单个 IPv6地址的能力 时,通过所述 MME向所述 UE发送生成链路局部地址的接口标识符和所述 DHCPv6 服务器是否具有分配所述全局 IPv6地址能力的标识符。  If the DHCPv6 server supports the capability of the DHCPv6 server to allocate a single IPv6 address, the MME sends an interface identifier for generating a link local address to the UE and whether the DHCPv6 server has the capability of allocating the global IPv6 address. Identifier.
6、 一种第六代互联网协议 IPv6地址分配的方法, 其特征在于, 包括: 向处理地址分配的设备发送分配地址的请求消息, 所述请求消息中包括用 户设备 UE所在的网络域的标识符,所述 UE所在的网络域的标识符用于获取 IPv6 前缀;  A sixth-generation Internet Protocol IPv6 address allocation method, comprising: sending, to a device that processes an address, a request message for allocating an address, where the request message includes an identifier of a network domain where the user equipment UE is located The identifier of the network domain where the UE is located is used to obtain an IPv6 prefix;
接收所述处理地址分配的设备发送的根据所述 UE所在的网络域的标识符获 取的所述 IPv6前缀, 并根据所述 IPv6前缀生成全局 IPv6地址。  Receiving, by the device that processes the address allocation, the IPv6 prefix obtained according to the identifier of the network domain where the UE is located, and generating a global IPv6 address according to the IPv6 prefix.
7、 根据权利要求 6所述的一种 IPv6地址分配的方法, 其特征在于, 所述 根据所述 IPv6前缀生成全局 IPv6地址包括:  The IPv6 address allocation method according to claim 6, wherein the generating the global IPv6 address according to the IPv6 prefix comprises:
根据所述 IPv6前缀与标识所述 UE的唯一接口标识符生成一个全局 IPv6地 址。  A global IPv6 address is generated based on the IPv6 prefix and a unique interface identifier identifying the UE.
8、 根据权利要求 7所述的一种 IPv6地址分配的方法, 其特征在于, 所述 标识所述 UE的唯一接口标识符为根据 MAC地址生成的接口标识符; 或者,  The method for allocating an IPv6 address according to claim 7, wherein the unique interface identifier that identifies the UE is an interface identifier generated according to the MAC address; or
所述标识所述 UE的唯一接口标识符为接收到的全局接口标识符。 The unique interface identifier identifying the UE is the received global interface identifier.
9、 根据权利要求 6-8 中的任一项所述的一种 IPv6地址分配的方法, 其特 征在于,所述网络域的标识符包括接入点名称 APN、群组标识符、用户组标识符, 或者所述 APN、 所述群组标识符和所述用户组标识符的组合。 The method for allocating IPv6 addresses according to any one of claims 6-8, wherein the identifier of the network domain comprises an access point name APN, a group identifier, and a user group identifier. Or a combination of the APN, the group identifier, and the user group identifier.
10、 根据权利要求 9所述的一种 IPv6地址分配的方法, 其特征在于, 在所 述接收所述处理地址分配的设备发送的根据所述 UE所在的网络域的标识符获取 的所述 IPv6前缀之前, 该方法还包括:  The IPv6 address allocation method according to claim 9, wherein the IPv6 obtained by the device that receives the processing address allocation is obtained according to an identifier of a network domain where the UE is located. Before the prefix, the method also includes:
接收所述处理地址分配的设备通过移动管理网元丽 E发送的生成链路局部 地址的接口标识符, 所述链路局部地址用来完成本地网络的通讯; 或者,  And receiving, by the device that processes the address allocation, an interface identifier that is sent by the mobile management network element E to generate a link local address, where the link local address is used to complete communication of the local network; or
接收所述处理地址分配的设备通过移动管理网元丽 E发送的生成链路局部 地址的接口标识符和全局接口标识符, 所述全局接口标识符用于与所述 UE所在 的网络域的标识符对应的 IPv6前缀生成 IPv6地址。  An interface identifier and a global interface identifier for generating a link local address sent by the device of the processing address allocation by the mobile management network element E, the global interface identifier being used for identifier of a network domain where the UE is located The IPv6 prefix corresponding to the character generates an IPv6 address.
11、 根据权利要求 6或 9所述的一种 IPv6地址分配的方法, 其特征在于, 所述接收所述处理地址分配的设备发送的根据所述 UE所在的网络域的标识符获 取的所述 IPv6前缀, 并根据所述 IPv6前缀生成全局 IPv6地址包括:  The method for allocating an IPv6 address according to claim 6 or 9, wherein the receiving, by the device receiving the processing address allocation, the identifier obtained according to an identifier of a network domain where the UE is located An IPv6 prefix, and generating a global IPv6 address according to the IPv6 prefix, includes:
接收所述 DHCPv6服务器发送的 DHCP Rep ly消息, 所述 DHCP Rep ly消息包 括携带所述 IPv6前缀的全局 IPv6地址。  Receiving a DHCP Rep ly message sent by the DHCPv6 server, where the DHCP Reply message includes a global IPv6 address carrying the IPv6 prefix.
12、 一种第六代互联网协议 IPv6地址分配的设备, 其特征在于, 包括: 接收单元, 用于接收为用户设备 UE分配地址的请求消息, 所述请求消息中 包括所述 UE所在的网络域的标识符;  A device for allocating a sixth-generation Internet Protocol IPv6 address, comprising: a receiving unit, configured to receive a request message for allocating an address for a user equipment UE, where the request message includes a network domain where the UE is located Identifier
判断单元, 用于判断是否保存有与所述 UE 所在的网络域的标识符对应的 IPv6前缀;  a determining unit, configured to determine whether an IPv6 prefix corresponding to an identifier of a network domain where the UE is located is saved;
第一发送单元,用于当保存有与所述 UE所在的网络域的标识符对应的 IPv6 前缀时, 向所述 UE发送与所述 UE所在的网络域的标识符对应的 IPv6前缀; 执行单元, 用于当没有保存与所述 UE 所在的网络域的标识符对应的 IPv6 前缀时, 为所述 UE分配一个 IPv6前缀, 将所述 IPv6前缀发送给所述 UE, 并保 存所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系。  a first sending unit, configured to: when storing an IPv6 prefix corresponding to an identifier of a network domain where the UE is located, send an IPv6 prefix corresponding to an identifier of a network domain where the UE is located to the UE; And when the IPv6 prefix corresponding to the identifier of the network domain where the UE is located is not saved, the IPv6 prefix is allocated to the UE, the IPv6 prefix is sent to the UE, and the UE is saved. The relationship between the identifier of the network domain and the IPv6 prefix.
13、 根据权利要求 12所述的一种 IPv6地址分配的设备, 其特征在于, 所 述设备还包括: 址的接口标识符, 所述链路局部地址用于完成本地网络的通讯; 或者, 址的接口标识符和全局接口标识符, 所述全局接口标识符用于与所述 UE所在的 网络域的标识符对应的 IPv6前缀生成 IPv6地址。 13. An apparatus for IPv6 address allocation according to claim 12, wherein: The device further includes: an interface identifier of the address, where the link local address is used to complete communication of the local network; or an interface identifier of the address and a global interface identifier, where the global interface identifier is used for the UE The IPv6 prefix corresponding to the identifier of the network domain where the network is located generates an IPv6 address.
14、 根据权利要求 12所述的一种 IPv6地址分配的设备, 其特征在于, 所 述第一发送单元包括:  The device for allocating an IPv6 address according to claim 12, wherein the first sending unit comprises:
发送模块, 用于将所述 IPv6前缀发送给动态主机配置协议 DHCPv6服务器, 并由所述 DHCPv6服务器向所述 UE发送携带所述 IPv6前缀的全局 IPv6地址。  And a sending module, configured to send the IPv6 prefix to the dynamic host configuration protocol DHCPv6 server, and send, by the DHCPv6 server, the global IPv6 address that carries the IPv6 prefix to the UE.
15、 根据权利要求 14所述的一种 IPv6地址分配的设备, 其特征在于, 所 述执行单元包括: 执行模块, 用于解析所述 DHCPv6服务器发送的 DHCP Rep ly 消息获得一个 IPv6前缀,将携带所述 IPv6前缀的全局 IPv6地址发送给所述 UE , 并保存所述 UE所在的网络域的标识符和所述 IPv6前缀对应的关系。  The apparatus for allocating an IPv6 address according to claim 14, wherein the execution unit comprises: an execution module, configured to parse a DHCP Rep ly message sent by the DHCPv6 server to obtain an IPv6 prefix, which is to be carried The global IPv6 address of the IPv6 prefix is sent to the UE, and the identifier of the network domain where the UE is located and the relationship corresponding to the IPv6 prefix are saved.
16、 根据权利要求 12所述的一种 IPv6地址分配的设备, 其特征在于, 所 述设备还包括:  The device of the IPv6 address allocation according to claim 12, wherein the device further comprises:
协商单元, 用于与所述 DHCPv6服务器协商所述 DHCPv6服务器是否具有支 持分配全局 IPv6地址的能力;  a negotiating unit, configured to negotiate with the DHCPv6 server whether the DHCPv6 server has the capability of supporting allocation of a global IPv6 address;
第四发送单元, 用于如果所述 DHCPv6服务器支持所述 DHCPv6服务器分配 单个 IPv6地址的能力, 通过所述丽 E向所述 UE发送生成链路局部地址的接口 标识符和所述 DHCPv6服务器是否具有支持分配所述全局 IPv6地址能力的标识 付。  a fourth sending unit, configured to: if the DHCPv6 server supports the capability of the DHCPv6 server to allocate a single IPv6 address, send, by using the MN, an interface identifier that generates a link local address and whether the DHCPv6 server has Support for assigning the identity of the global IPv6 address capability.
17、 一种第六代互联网协议 IPv6地址分配的设备, 其特征在于, 包括: 发送单元, 用于向处理地址分配的设备发送分配地址的请求消息, 所述请 求消息中包括用户设备 UE所在的网络域的标识符, 所述 UE所在的网络域的标 识符用于获取 IPv6前缀;  A device for allocating a sixth-generation Internet Protocol IPv6 address, comprising: a sending unit, configured to send, to a device that processes an address, a request message for allocating an address, where the request message includes a user equipment UE An identifier of the network domain, where the identifier of the network domain where the UE is located is used to obtain an IPv6 prefix;
执行单元, 用于接收所述处理地址分配的设备发送的根据所述 UE所在的网 络域的标识符获取的所述 IPv6前缀,并根据所述 IPv6前缀生成全局 IPv6地址。An execution unit, configured to receive, by the device that processes the address allocation, according to the network where the UE is located The IPv6 prefix obtained by the identifier of the domain, and generating a global IPv6 address according to the IPv6 prefix.
18、 根据权利要求 17所述的一种 IPv6地址分配的设备, 其特征在于, 所 述执行单元包括: 生成模块, 用于根据所述 IPv6前缀与标识所述 UE的一个唯 一的接口标识符生成一个全局 IPv6地址。 The apparatus for allocating an IPv6 address according to claim 17, wherein the execution unit comprises: a generating module, configured to generate, according to the IPv6 prefix, a unique interface identifier that identifies the UE A global IPv6 address.
19、 根据权利要求 18所述的一种 IPv6地址分配的设备, 其特征在于, 该 设备还包括:  The device for allocating an IPv6 address according to claim 18, wherein the device further comprises:
第一接收单元, 用于接收所述处理地址分配的设备通过移动管理网元 MME 发送的生成链路局部地址的接口标识符, 所述链路局部地址用来完成本地网络 的通讯; 或者,  a first receiving unit, configured to receive, by the device that processes the address allocation, an interface identifier that generates a link local address sent by the mobility management network element MME, where the link local address is used to complete communication of the local network; or
第二接收单元, 用于接收所述处理地址分配的设备通过移动管理网元 MME 发送的生成链路局部地址的接口标识符和全局接口标识符, 所述全局接口标识 符用于与所述 UE所在的网络域的标识符对应的 IPv6前缀生成 IPv6地址。  a second receiving unit, configured to receive, by the device that processes the address allocation, an interface identifier that generates a link local address and a global interface identifier that is sent by the mobility management network element MME, where the global interface identifier is used by the UE The IPv6 prefix corresponding to the identifier of the network domain where the network is located generates an IPv6 address.
20、 根据权利要求 17所述的一种 IPv6地址分配的设备, 其特征在于, 所 述执行单元包括:  The apparatus for allocating an IPv6 address according to claim 17, wherein the execution unit comprises:
接收模块, 用于接收动态主机配置协议 DHCPv6 服务器发送的 DHCP Reply 消息, 所述 DHCP Reply消息包括携带所述 IPv6前缀的全局 IPv6地址。  The receiving module is configured to receive a DHCP Reply message sent by the DHCPv6 server of the dynamic host configuration protocol, where the DHCP Reply message includes a global IPv6 address carrying the IPv6 prefix.
PCT/CN2011/075040 2011-05-31 2011-05-31 Internet protocol version 6 address allocation method and apparatus WO2011157141A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180000838.5A CN102918817B (en) 2011-05-31 2011-05-31 The method of IPv6 address assignment and equipment
PCT/CN2011/075040 WO2011157141A2 (en) 2011-05-31 2011-05-31 Internet protocol version 6 address allocation method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/075040 WO2011157141A2 (en) 2011-05-31 2011-05-31 Internet protocol version 6 address allocation method and apparatus

Publications (2)

Publication Number Publication Date
WO2011157141A2 true WO2011157141A2 (en) 2011-12-22
WO2011157141A3 WO2011157141A3 (en) 2012-05-03

Family

ID=45348622

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/075040 WO2011157141A2 (en) 2011-05-31 2011-05-31 Internet protocol version 6 address allocation method and apparatus

Country Status (2)

Country Link
CN (1) CN102918817B (en)
WO (1) WO2011157141A2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632400B (en) * 2017-08-31 2021-07-23 新华三技术有限公司 IPv6 address allocation method and Leaf node equipment
CN107707685B (en) * 2017-09-25 2019-11-22 清华大学 A kind of wireless router access control method
US10673695B2 (en) * 2018-03-06 2020-06-02 Kaloom Inc. Computing device and method for performing a fabric deployment in a data center
WO2020108541A1 (en) * 2018-11-30 2020-06-04 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for protocol prefix management
CN110300194A (en) * 2019-07-09 2019-10-01 凌云天博光电科技股份有限公司 A kind of IP address conversion method and device of the network equipment
CN110730132B (en) * 2019-09-27 2021-06-15 迈普通信技术股份有限公司 Default gateway selection method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859420A (en) * 2006-03-06 2006-11-08 华为技术有限公司 Device and method for obtaining IPV6 prefix
CN101753635A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method and system of collocating IPV6 (internet protocol version 6) addresses
CN101984636A (en) * 2010-10-25 2011-03-09 华为技术有限公司 Prefix distribution method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050041671A1 (en) * 2003-07-28 2005-02-24 Naoya Ikeda Network system and an interworking apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859420A (en) * 2006-03-06 2006-11-08 华为技术有限公司 Device and method for obtaining IPV6 prefix
CN101753635A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method and system of collocating IPV6 (internet protocol version 6) addresses
CN101984636A (en) * 2010-10-25 2011-03-09 华为技术有限公司 Prefix distribution method, device and system

Also Published As

Publication number Publication date
CN102918817B (en) 2016-06-08
CN102918817A (en) 2013-02-06
WO2011157141A3 (en) 2012-05-03

Similar Documents

Publication Publication Date Title
US9729501B2 (en) System and data card for stateless automatic configuration of IPv6 address and method for implementing the same
US10516647B2 (en) Method for establishing data connection on mobile network, mobile network, and policy control entity
WO2011144134A1 (en) Method, apparatus and system for pushing information
CN102984295B (en) A kind of mobile terminal and address distribution method thereof
US20120082110A1 (en) Method and terminal for transmitting service data
WO2009012709A1 (en) Method and device for requesting and distributing address of connection point
US9473595B2 (en) Policy control method and device
WO2014047919A1 (en) Address allocation method, device and system
WO2011157141A2 (en) Internet protocol version 6 address allocation method and apparatus
US9794115B2 (en) Method, device and system for an application layer traffic optimization server
WO2007051426A1 (en) Method and system for assigning sfid in worldwide interoperability for microwave access
KR20120003314A (en) Apparatus to generate group service flow in a radio communication system and method thereof
RU2010105060A (en) METHOD FOR REDUCING MANAGEMENT SIGNALS IN SERVICE TRANSFER SITUATIONS
KR20120015734A (en) Method and apparatus for providing service for user equipment in mobile communication system
KR100909014B1 (en) Dynamic IP Address Allocation Method for Mobile Terminal in Mobile Communication System
JP2017005747A (en) Method and apparatus for facilitating prefix allocation and advertisement or delegation
JP2015507876A (en) Method, apparatus and system for accessing core network by non-3GPP
JP2022541525A (en) SERVICE CONTINUITY IMPLEMENTATION METHOD, RELATED DEVICE, AND SYSTEM
WO2022007657A1 (en) Method and apparatus for sending domain name system request
WO2012097663A1 (en) Method and system for pmipv6 protocol to support ipv6 prefix distribution
CN106953849B (en) Data message matching method and device based on IPv6 address
WO2010012189A1 (en) Method and system for transmitting the gtp message
MX2011003090A (en) A proxy based approach for ip address assignment to decrease latency.
KR20080012729A (en) Mobile terminal and method for assigning ip address in wireless network
WO2014169590A1 (en) Data service communication method, device, and system

Legal Events

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

Ref document number: 201180000838.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: 11795107

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11795107

Country of ref document: EP

Kind code of ref document: A2