WO2023143412A1 - Ip address assignment method, device, and readable storage medium - Google Patents

Ip address assignment method, device, and readable storage medium Download PDF

Info

Publication number
WO2023143412A1
WO2023143412A1 PCT/CN2023/073273 CN2023073273W WO2023143412A1 WO 2023143412 A1 WO2023143412 A1 WO 2023143412A1 CN 2023073273 W CN2023073273 W CN 2023073273W WO 2023143412 A1 WO2023143412 A1 WO 2023143412A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
address
request message
network element
request
Prior art date
Application number
PCT/CN2023/073273
Other languages
French (fr)
Chinese (zh)
Inventor
李欢
谢振华
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023143412A1 publication Critical patent/WO2023143412A1/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/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the application belongs to the field of communication technology, and in particular relates to an Internet Protocol (Internet Protocol, IP) address allocation method, device and readable storage medium.
  • Internet Protocol Internet Protocol, IP
  • non-3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) equipment can perform network communication through 3GPP equipment, for example: a mobile phone can set up a wireless fidelity (Wireless Fidelity, WiFi) hotspot for a notebook, so that the notebook can pass through Mobile Internet.
  • a mobile phone can set up a wireless fidelity (Wireless Fidelity, WiFi) hotspot for a notebook, so that the notebook can pass through Mobile Internet.
  • WiFi Wireless Fidelity
  • the notebook is a non-3GPP device, and the communication network cannot know that the notebook is surfing the Internet, and it is also difficult to identify the business flow of the notebook, so that it cannot perform management operations such as policy control and billing. Therefore, in the scenario of personal IoT and fixed-mobile convergence, how to identify the service flow of non-3GPP devices is an urgent problem to be solved.
  • the embodiment of the present application provides an IP address allocation method, device and readable storage medium, which can solve the problem that the network cannot identify the service flow of the non-3GPP device.
  • an IP address assignment method, device, and readable storage medium are provided, the method including:
  • the first terminal sends a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
  • the first terminal sends the second IP address to the second terminal according to the first IP address.
  • a method for assigning an IP address including:
  • the first network element sends the first IP address to the first terminal.
  • an IP address allocation device including:
  • a first sending module configured for the first terminal to send a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
  • a first receiving module configured for the first terminal to receive a first IP address from the first network element, where the first IP address is an IP address assigned to the second terminal;
  • the second sending module is configured for the first terminal to send a second IP address to the second terminal according to the first IP address.
  • an IP address allocation device including:
  • a second receiving module configured for the first network element to receive a first request message from the first terminal, where the first request message is used to request to assign an IP address to the second terminal;
  • a third sending module configured for the first network element to send the first IP address to the first terminal.
  • a terminal in a fifth aspect, includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, the following The steps of the method in one aspect.
  • a terminal including a processor and a communication interface, wherein the communication interface is used for the first terminal to send a first request message to the first network element, and the first request message is used for requesting to be the first network element.
  • Assigning an IP address to the second terminal the first terminal receives a first IP address from the first network element, and the first IP address is an IP address assigned to the second terminal; the first terminal receives the first IP address according to the the first IP address, and send the second IP address to the second terminal.
  • a network-side device in a seventh aspect, includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are executed by the processor When realizing the steps of the method as described in the first aspect.
  • a network side device including a processor and a communication interface, wherein the communication interface is used for a first network element to receive a first request message from a first terminal, and the first request message is used for requesting to assign an IP address to the second terminal; the communication interface is used for the first network element to communicate with the The first terminal sends the first IP address.
  • a readable storage medium is provided, and programs or instructions are stored on the readable storage medium, and when the programs or instructions are executed by a processor, the steps of the method described in the first aspect are realized, or the steps of the method described in the first aspect are realized, or The steps of the method described in the second aspect.
  • a chip in a tenth aspect, includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method as described in the first aspect steps, or realize the steps of the method as described in the second aspect.
  • a computer program product is provided, the computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the steps of the method described in the first aspect, or The steps of the method described in the second aspect are implemented.
  • the first terminal assists the second terminal in requesting the allocation of an IP address.
  • the network can identify the corresponding service flow based on the IP address of the second terminal, and then Take administrative control.
  • Fig. 1a is a schematic structural diagram of a wireless communication system provided by an embodiment of the present application.
  • Figure 1b is a schematic diagram of a personal Internet of Things architecture
  • Figure 1c is a schematic diagram of a fixed-mobile fusion architecture
  • FIG. 2 is one of the schematic flow diagrams of the IP address allocation method provided by the embodiment of the present application.
  • Fig. 3 is the second schematic flow diagram of the IP address allocation method provided by the embodiment of the present application.
  • Fig. 4a is one of the schematic flow charts of the application example provided by the embodiment of the present application.
  • Figure 4b is the second schematic flow diagram of the application example provided by the embodiment of the present application.
  • Fig. 4c is the third schematic flow diagram of the application example provided by the embodiment of the present application.
  • Fig. 4d is the fourth schematic flow diagram of the application example provided by the embodiment of the present application.
  • FIG. 5 is one of the structural schematic diagrams of the IP address allocation device provided by the embodiment of the present application.
  • FIG. 6 is the second structural schematic diagram of the IP address allocation method provided by the embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a terminal provided in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a network side device provided by an embodiment of the present application.
  • first, second and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein and that "first" and “second” distinguish objects. It is usually one category, and the number of objects is not limited. For example, there may be one or more first objects.
  • “and/or” in the description and claims means at least one of the connected objects, and the character “/” generally means that the related objects are an "or” relationship.
  • LTE Long Term Evolution
  • LTE-Advanced LTE-Advanced
  • LTE-A Long Term Evolution-Advanced
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • FDMA Frequency Division Multiple Access
  • OFDMA Orthogonal Frequency Division Multiple Access
  • SC-FDMA Single-carrier Frequency Division Multiple Access
  • system and “network” in the embodiments of the present application are often used interchangeably, and the described technology can be used for the above-mentioned system and radio technology, and can also be used for other systems and radio technologies.
  • NR New Radio
  • the following description describes the New Radio (NR) system for illustrative purposes, and uses NR terminology in most of the following descriptions, but these techniques can also be applied to applications other than NR system applications, such as the 6th generation (6 th Generation, 6G) communication system.
  • 6G 6th Generation
  • Fig. 1a shows a block diagram of a wireless communication system to which the embodiment of the present application is applicable.
  • the system includes a terminal 11 and a network side device 12.
  • the terminal 11 can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer) or a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a palmtop computer, a netbook, a super mobile personal computer (ultra-mobile personal computer, UMPC), mobile Internet device (Mobile Internet Device, MID), augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) equipment, robot, wearable device (Wearable Device) , vehicle equipment (VUE), pedestrian terminal (PUE), smart home (home equipment with wireless communication functions, such as refrigerators, TVs, washing machines or furniture, etc.), game consoles, personal computers (personal computers, PCs), teller machines or self-service Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (s), smart
  • the network side device 12 may include an access network device or a core network device, wherein the access network device 12 may also be called a radio access network device, a radio access network (Radio Access Network, RAN), a radio access network function, or Wireless access network unit.
  • RAN Radio Access Network
  • RAN Radio Access Network
  • Wireless access network unit Wireless access network unit
  • the access network device 12 may include a base station, a wireless local area network (Wireless Local Area Network, WLAN) access point or a WiFi node, etc., and the base station may be called a node B, an evolved node B (eNB), an access point, or a base transceiver station (Base Transceiver Station, BTS), radio base station, radio transceiver, Basic Service Set (BSS), Extended Service Set (Extended Service Set, ESS), Home Node B, Home Evolved Node B, sending and receiving point (Transmitting Receiving Point, TRP) or some other appropriate term in the field, as long as the same technical effect is achieved, the base station is not limited to specific technical terms.
  • a base station may be called a node B, an evolved node B (eNB), an access point, or a base transceiver station (Base Transceiver Station, BTS), radio base station, radio transceiver, Basic Service Set (BSS), Extended Service Set (Extended Service Set, ESS), Home
  • the core network equipment may include but not limited to at least one of the following: core network node, core network function, mobility management entity (Mobility Management Entity, MME), access mobility management function (Access and Mobility Management Function, AMF), session management function (Session Management Function, SMF), User Plane Function (UPF), Policy Control Function (Policy Control Function, PCF), Policy and Charging Rules Function Unit (Policy and Charging Rules Function, PCRF), Edge Application Server Discovery Function (EASDF), Unified Data Management (UDM), Unified Data Repository (UDR), Home Subscriber Server (Home Subscriber Server, HSS), centralized network configuration (Centralized network configuration, CNC), network storage function (Network Repository Function, NRF), network exposure function (Network Exposure Function, NEF), local NEF (Local NEF, or L-NEF), binding Support function (Binding Support Function, B
  • the core network equipment in the NR system is used as an example for introduction, and the specific type of the core network equipment is not limited.
  • the functions of the above-mentioned core network device may be realized by multiple devices, or the functions of multiple core network devices may be realized by one device, which is not limited in this embodiment of the present application.
  • the functions of multiple core network devices are implemented by one device, the interaction among the multiple core network devices in the embodiment of the present application is an internal operation of the device.
  • PIN Personal IoT Network
  • a PIN is a group consisting of at least one PIN element (PIN element, PINE), wherein at least one PIN element is a UE.
  • PIN elements communicate with each other. Two PIN elements can communicate through a direct connection between them, or indirectly through a communication network.
  • a PIN element is a UE or a non-3GPP device.
  • a PIN element may also be a Non-5G-Capable over WLAN (N5CW) device on a wireless local area network.
  • Non-3GPP devices refer to devices that do not use credentials defined by 3GPP, devices that do not support the Non-access stratum (Non-access stratum, NAS) protocol defined by 3GPP, or devices that do not support 3GPP access technologies (such as 3G/4G/5G air interface technology ) and only supports non-3GPP access technologies (such as WiFi, fixed network, Bluetooth and other access technologies).
  • the PIN element when it accesses the communication network through PEGC, it can also execute the process of non-3GPP equipment or N5CW equipment, for example, the NAS of UE is not used to interact with the communication network.
  • PINEs PIN element with gateway capability, PEGC
  • the PIN elements in the PIN can communicate with each other directly or through PEGC.
  • the PIN element in the PIN can communicate with other devices or application servers outside the PIN through the PEGC.
  • PEGC can be a gateway in a smart home scenario, or a mobile phone in a wearable device scenario.
  • the current 3GPP 5G core network supports fixed network access. It includes support for residential gateways (Residential Gateway, RG) to access the 5G core network through fixed networks and 3GPP networks, and also includes the access of 3GPP terminal devices to the 5G core network through residential gateways.
  • RG Real-Fi Protected Access Gateway
  • the mobile phone can set up a WiFi hotspot for other devices, such as enabling a notebook to access the Internet through the mobile phone.
  • the notebook is a non-3GPP device, and the communication network cannot know that the notebook is surfing the Internet, and it is also difficult to identify the business flow of the notebook, so that it cannot perform management operations such as policy control and billing.
  • management operations such as policy control and billing.
  • how to identify the service flow of non-3GPP devices is an urgent problem to be solved.
  • IP address allocation method provided by the embodiment of the present application will be described in detail below through some embodiments and application scenarios with reference to the accompanying drawings.
  • the embodiment of the present application provides a method for assigning an IP address, including:
  • Step 201 the first terminal sends a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
  • Step 202 the first terminal receives a first IP address from the first network element, where the first IP address is an IP address assigned to the second terminal;
  • Step 203 the first terminal sends the second IP address to the second terminal according to the first IP address
  • the first terminal is a personal Internet of Things gateway or a home gateway
  • the second terminal is a device that cannot use the NAS protocol.
  • the second terminal is a non-3GPP device or a personal Internet of Things device.
  • the second terminal is a 3GPP device, and the connection between the second terminal and the first terminal The connection does not support NAS protocol transfers.
  • a non-3GPP technology is used to establish a connection between the first terminal and the second terminal.
  • a connection may be established between the first terminal and the second terminal through WiFi, Bluetooth or passive Internet of Things (Passive IoT) technology.
  • Passive IoT passive Internet of Things
  • the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
  • the first terminal assists the second terminal to request IP address allocation, and in the scenario where non-3GPP devices access the communication network through the personal Internet of Things network or home network, the network can be based on the allocation of IP addresses for non-3GPP devices.
  • the IP address identifies the service flow of non-3GPP equipment, and then performs management and control.
  • the first network element may also be the one or more second terminals
  • the second terminal allocates one or more first IP addresses.
  • the first network element is a mobility management function (Access and Mobility Management Function, AMF) or a session management function (Session Management Function, SMF).
  • AMF Access and Mobility Management Function
  • SMF Session Management Function
  • the first terminal is a personal Internet of Things gateway or a home gateway.
  • the second terminal is a non-3GPP device or a personal Internet of Things device.
  • the connection between the first terminal and the second terminal is established through WiFi, Bluetooth or passive Internet of Things (Passive IoT) technology.
  • Passive IoT passive Internet of Things
  • the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
  • the first request message carries one or more of the following:
  • the first terminal sends the first request message to the first network element, including:
  • the first terminal sends the first request message to the first network element through the NAS connection with the first network element.
  • the first request message carries identification information of the second terminal
  • the method may further include:
  • the first terminal acquires the identification information of the second terminal.
  • the first terminal obtains the identification information of the second terminal, including:
  • the first terminal receives a second request message from the second terminal, where the second request message carries identification information of the second terminal, and the second request message is used to request to assign an IP address to the second terminal.
  • the foregoing second request message may be an IP address configuration request message.
  • the second IP address is the same as the first IP address, or the second IP address has a mapping relationship with the first IP address.
  • the IP address may specifically be an Internet Protocol version 4 (Internet Protocol version 4, IPv4) address or an Internet Protocol version 6 (Internet Protocol version 6, IPv6) address; the above-mentioned second IP address is the same as the first IP address It may refer to: the IPv4 address sent by the first terminal to the second terminal is the same as the IPv4 address allocated by the first network element to the second terminal, or the IPv6 address sent by the first terminal to the second terminal is the same as the IPv6 address sent by the first network element.
  • the IPv6 addresses assigned by the two terminals are the same; the above-mentioned second IP address having a mapping relationship with the first IP address may refer to: the IPv4 address sent by the first terminal to the second terminal is the same as the IPv4 address assigned by the first network element to the second terminal
  • the local area network IPv4 address corresponding to the address, or the IPv6 address sent by the first terminal to the second terminal is a local area network IPv6 address corresponding to the IPv6 address allocated by the first network element to the second terminal.
  • the first address is the IP address of the second address after network address translation. vice versa.
  • the first IP address includes an IPv6 prefix and a local identifier assigned by the first network element, or the first IP address is an IPv6 prefix, and the second IP address includes the first IP address and a local identifier assigned by the first terminal. to identify.
  • the first network may allocate an IPv6 prefix and a local identifier to the second terminal, or the first network may allocate an IPv6 prefix to the second terminal, and then the first terminal allocates an IPv6 prefix to the second terminal.
  • local identification any suitable IPv6 prefix to the second terminal.
  • the IPv6 address of the second terminal is composed of the IPv6 prefix and the local identifier, that is, the second IP address.
  • the first terminal can send the IPv6 address composed of the IPv6 prefix and the local identifier to the second terminal, or send Send the LAN IPv6 address corresponding to the IPv6 address composed of the IPv6 prefix and the local identifier.
  • the first request message includes any of the following:
  • Protocol Data Unit Protocol Data Unit, PDU
  • the identification information of the second terminal includes one or more of the following:
  • IMSI International Mobile Subscriber Identity
  • Generic Public Subscription Identifier Generic Public Subscription Identifier, GPSI
  • the embodiment of the present application provides a method for assigning an IP address, including:
  • Step 301 The first network element receives a first request message from the first terminal, where the first request message is used to request to assign an IP address to the second terminal;
  • Step 302 the first network element sends the first IP address to the first terminal
  • the first terminal is a 3GPP device
  • the second terminal is a non-3GPP device
  • the connection between the first terminal and the second terminal is established through non-3GPP.
  • the non-3GPP device ie, the second terminal
  • the 3GPP device ie, the first terminal
  • the network can identify the service flow of the non-3GPP device based on the IP address assigned to the non-3GPP device, and then perform management and control.
  • the first network element may also be the one or more second terminals
  • the second terminal allocates one or more first IP addresses.
  • the method further includes:
  • the first network element allocates the first IP address to the second terminal.
  • the first terminal is a personal Internet of Things gateway or a home gateway.
  • the second terminal is a non-3GPP device or a personal Internet of Things device.
  • the connection between the first terminal and the second terminal is established through WiFi, Bluetooth or passive Internet of Things (such as Passive IoT).
  • the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
  • the first request message carries one or more of the following:
  • the first network element receives the first request message from the first terminal, including:
  • the first network element receives the first request from the first network element through the NAS connection with the first terminal Ask for news.
  • the first request message carries identification information of the second terminal.
  • the first network element when the first network element is prepared as an AMF, the first network element assigns the first IP address to the second terminal, including:
  • the first network element sends a third request message to the SMF, and the third request message is used to request to allocate an IP address for the second terminal;
  • the first network element receives the first IP address from the SMF.
  • the AMF when the first network element is an AMF, after receiving the first request from the first terminal, the AMF sends a request message to the SMF to request allocation of an IP address for the second terminal.
  • the third request message may be an N11 message.
  • the third request message carries one or more of the following:
  • the first network element is prepared as an SMF.
  • the first network element can be any of the following:
  • the first request message carries the identifier of the target PDU session.
  • the first network element allocates the first IP address to the second terminal, including:
  • the first network element allocates the first IP address to the second terminal according to the subscription data of the first terminal and/or operator configuration.
  • the SMF may assign the first IP address to the second terminal according to the subscription data of the first terminal and/or operator configuration.
  • the method also includes:
  • the first network element sends the first IP address and the policy control rule to the user plane function (User Plane Function, UPF), and the policy control rule is used to indicate that the first IP address is forwarded by the target PDU session, and the first request message carries The ID of the target PDU session.
  • UPF User Plane Function
  • the method also includes:
  • the first network element sends the first IP address to the AMF, that is, the SMF sends the first IP address to the AMF after allocating the first IP address to the second terminal.
  • the method also includes:
  • the first network element triggers an authentication process of the second terminal
  • the first network element allocates the first IP address to the second terminal, including:
  • the first network element allocates the first IP address to the second terminal.
  • the SMF triggers the authentication process of the second terminal, and assigns the first IP address to the second terminal after the authentication is successful.
  • the authentication process may be an extensible authentication protocol (Extensible Authentication Protocol, EAP) process or other authentication protocols. For example, use Challenge Handshake Authentication Protocol-Password Authentication Protocol (CHAP-PAP) for authentication.
  • EAP extensible authentication protocol
  • CHAP-PAP Challenge Handshake Authentication Protocol-Password Authentication Protocol
  • the authentication server that performs authentication for the second terminal may be a unified data management function, an authentication authorization server, or an application server related to the second terminal. This embodiment of the present application does not make any limit.
  • the first request message includes any of the following:
  • the identification information of the second terminal includes one or more of the following:
  • the technical solutions of the embodiments of the present application are described below in conjunction with specific application examples.
  • the embodiment of the present application takes the 5G network as an example, but the solution described in the embodiment of the present application can also be used in other intergenerational communication networks.
  • Step 0. The PEGC obtains the identification information of the PINE.
  • the PEGC initiates an authentication process to obtain the identification information of the PINE.
  • PINE sends its own identification information to PEGC during the authentication process.
  • PINE sends an Internet Key Exchange (IKEv2) message to PEGC, which includes the identification information of PINE.
  • IKEv2 Internet Key Exchange
  • the PINE may use other L2 or L1 protocols to send its own identification information to the PEGC, which is not limited in this embodiment.
  • PEGC and PINE use the EAP authentication process.
  • PEGC sends an EAP-Req/Identity message to PINE.
  • PINE sends an EAP-Res/Identity message to PEGC, which includes its own identity.
  • the identity of the PINE may be sent in the form of a Network Access Identity (NAI).
  • NAI Network Access Identity
  • PINE can indicate that it does not support NAS access to 5GC, or that it wishes to access 5GC without NAS.
  • the field 5gc-nn may be included in the NAI to indicate that it does not support NAS access to 5GC, or it wishes to access 5GC without NAS.
  • 5GC is also called 5G Core Network (5G Core Network).
  • NAI sent by PINE can be:
  • the identification information of the PINE is used to identify the PINE in the PIN or in the 5G system, for example, it can be the MAC address of the PINE, the device identification of the PINE, IMSI, SUPI, user hidden identification (Subscription Concealed Identifier, SUCI), or Generic Public Subscription Identifier (GPSI), etc.
  • Step 1 PINE sends an IP configuration request message to PEGC.
  • the IP configuration request message is a Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol, DHCP) request message.
  • DHCP Dynamic Host Configuration Protocol
  • the IP configuration request message may include the identifier of PINE.
  • step 0 can be considered to be implemented by step 1.
  • Step 1 is optional.
  • Step 2 The PEGC sends a NAS message to the AMF, indicating that it requests an IP address for the PINE.
  • the NAS message includes at least one of the identifier of the PEGC and the identifier of the PINE.
  • the NAS message may also carry a PIN indication, which is used to indicate to request an IP address for a PINE, or to indicate to request an IP address for a non-3GPP device.
  • the N5CW indication or the passive Internet of Things indication may also be carried in the NAS message, indicating that an IP address is requested for the N5CW device or the passive Internet of Things device.
  • the NAS message may also include an indication to request an IP address for a terminal that does not support NAS, indicating to request an IP address for a device that does not support NAS when accessing the 5GC through the PEGC.
  • the NAS message may also include the type of the requested IP address, such as IPv4, IPv6, or IPv4v6.
  • the NAS message may also include session parameters required by PINE, such as Data Network Name (Data Network Name, DNN), Single-Network Slice Selection Assistance Information (S-NSSAI), service ID , Session and Service Continuity mode (Session and Service Continuity mode, SSC mode), etc.
  • session parameters required by PINE such as Data Network Name (Data Network Name, DNN), Single-Network Slice Selection Assistance Information (S-NSSAI), service ID , Session and Service Continuity mode (Session and Service Continuity mode, SSC mode), etc.
  • the PEGC sends a NAS message to the AMF, which includes a PDU session establishment request message.
  • the PDU Session Establishment Request message may indicate that an IP address is requested for the PINE.
  • the PDU session establishment request message includes at least one of the above parameters, such as the identifier of the PEGC, the identifier of the PINE, the PIN indication, the type of the requested IP address, and the session parameters required by the PINE.
  • the PDU session establishment request message may be a PINE session establishment request message or a non-3GPP device session establishment request message.
  • the identity of the PINE itself may also indicate that the PINE needs to be connected to the core network.
  • the PEGC can send the above NAS message through the NAS connection between itself and the AMF.
  • the AMF is an AMF serving PEGC.
  • Step 3 The AMF sends an N11 message to the SMF, indicating that the IP address is requested for the PINE.
  • the N11 message includes at least one of the above parameters, such as the identifier of the PEGC, the identifier of the PINE, the PIN indication, the type of the requested IP address, and the session parameters required by the PINE.
  • the N11 message also includes an indication indicating whether an IP address needs to be allocated to the PEGC. If the PEGC already has an IP address, or if the PEGC does not share the PDU session with the PINE, there is no need to assign an IP address to the PEGC. Otherwise, it may be necessary to assign an IP address to the PEGC.
  • the AMF sends the PDU session establishment request message received in step 2 to the SMF.
  • the AMF selects the SMF according to the capability of the SMF.
  • the AMF selects an SMF that can support the ability to assign IP addresses to PINEs connected to the PEGC.
  • the SMF sends a network element registration request to the NRF, which includes the PIN capability indication information of the SMF, and the PIN capability indication information indicates that the SMF can support IP allocation for the PINE connected to the PEGC address.
  • the AMF can send a query message to the NRF to query the SMF with PIN capability.
  • AMF acquires PIN capable SMF from NRF.
  • the SMF may be the SMF serving the PEGC, or may not be the SMF serving the PEGC.
  • the AMF selects the SMF from the SMFs serving the PEGC according to the session parameters received in step 2.
  • the AMF selects the SMF according to the operator's configuration information.
  • Step 4 The SMF obtains the subscription data of the PEGC from the UDM.
  • the SMF can determine that the PINE device is allowed to access from the PEGC according to the subscription data of the PEGC and the configuration of the operator. For example, if the subscription data of the PEGC stores the identification information of the PINE, it means that the PINE device indicated by the identification of the PINE is allowed to access from the PEGC.
  • this step is optional.
  • Step 5 The SMF sends an N4 session establishment request message to the UPF to allocate session resources for the PINE.
  • the session establishment request message can include the IP address assigned by the SMF to PINE, and the IP address specified by the PCC but.
  • SMF can assign one or more IPv4 addresses, one or more IPv6 addresses, or one IPv6 prefix and multiple local identifiers, or one IPv6 prefix to one or more PINEs.
  • the N4 session establishment request message may also include the IP address assigned by the SMF to the PEGC. If the SMF allocates multiple IP addresses, the SMF needs to ensure that the multiple IP addresses can be served by the same UPF.
  • a PIN indication is also included.
  • the PIN indication is used to indicate that the UPF needs to handle service flows of multiple devices.
  • the FAR in the PCC rule indicates that data packets with multiple IP addresses can be forwarded by this PDU session.
  • the destination IP address of the downlink packet detection template in the FAR includes multiple IP addresses allocated by the SMF.
  • the source IP address of the upstream packet detection template in the FAR includes multiple IP addresses allocated by the SMF.
  • the SMF selects a UPF capable of serving the PINE connected to the PEGC.
  • the UPF reports its own PIN capability to the SMF, and the SMF selects a UPF with the PIN capability according to the acquired UPF capability information.
  • Step 6 The UPF sends an N4 session establishment response message to the SMF to indicate that the N4 session has been established.
  • the N4 session establishment request message and response message in steps 5 and 6 can be replaced with N4 session modification request message and response message. Through the above steps, the N4 session between SMF and UPF has been established or modified.
  • Step 7 The SMF sends a response message to the N11 message to the AMF. Indicates that the IP address of PINE has been allocated successfully, or indicates that network resources have been allocated for PINE.
  • the response message of the N11 message may include the IP address assigned by the SMF to the PINE.
  • the IP address allocated for the PEGC may also be included.
  • at least one of identification information of PINE and identification information of PEGC may also be included.
  • the N11 message includes a PDU session establishment response message.
  • the above parameters are included in the PDU session establishment response message.
  • Step 8 AMF sends NAS message to PEGC.
  • the NAS message indicates that the IP address of the PINE has been allocated successfully, or indicates that the network resource has been allocated for the PINE.
  • the NAS message includes at least one of a PEGC identifier and a PINE identifier.
  • the NAS message includes a PDU session establishment response message.
  • Step 9 The PEGC sends an IP configuration response message to the PINE, which carries the IP address allocated for the PINE.
  • the IP configuration response message is a DHCP message.
  • SMF assigns one or more IPv4 addresses to PINEs connected to PEGC, and PEGC assigns an IPv4 address to each PINE.
  • the IPv4 address may be the same as the IPv4 address assigned by the SMF, or may be a local area network IPv4 address corresponding to the IPv4 address assigned by the SMF.
  • SMF assigns one or more IPv6 addresses to PINEs connected to PEGC, and PEGC assigns an IPv6 address to each PINE.
  • the IPv6 address may be the same as the IPv6 address assigned by the SMF, or may be a local area network IPv6 address corresponding to the IPv6 address assigned by the SMF.
  • SMF assigns an IPv6 prefix and multiple local identifiers to PINEs connected to PEGC, and PEGC assigns an IPv6 address to each PINE.
  • the IPv6 address includes the IPv6 prefix assigned by the SMF and a local identifier, or may also include a local area network IPv6 address corresponding to the IPv6 address composed of the IPv6 prefix assigned by the SMF and a local identifier.
  • SMF assigns an IPv6 prefix to PINEs connected to PEGC
  • PEGC assigns an IPv6 address to each PINE.
  • This IPv6 address includes the local identifier determined by the PEGC.
  • the IPv6 address may include the same IPv6 prefix as the IPv6 prefix assigned by the SMF, or may include a local area network IPv6 prefix corresponding to the IPv6 prefix assigned by the SMF.
  • IP addresses assigned by PEGC to different PINEs may be different or the same.
  • Step 9 is optional.
  • the PEGC stores the IP address allocated to the PINE, or the PEGC stores the relationship between the IP address allocated to the PINE by the SMF and the corresponding IP address allocated to the PINE by the PEGC.
  • the process of PEGC assigning IP addresses to PINE can also Execute in step 1.
  • Step 10 The SMF sends the identification information of the PINE and the corresponding IP address to the PIN server.
  • Step 10 is optional.
  • this example uses the PDU session establishment request and response as an example, and this message can also be replaced with a PDU session modification request and response.
  • the PEGC has not yet established a PDU session, and at this time, the PEGC requests to establish a PDU session to serve the PEGC and the PINE connected to the PEGC. At this time, the PEGC sends a PDU session establishment request message to request IP addresses for the PEGC and the PINE.
  • the PEGC may already have its own PDU session, and the PEGC requests to establish a separate PDU session for the PINE connected to it. At this time, the PEGC sends a PDU session establishment request message to request an IP address for the PINE.
  • the PEGC has established a PDU session, and the PDU session may also serve the PINE, or the PEGC may serve the PDU session with the PINE.
  • the PEGC sends a PDU session modification request message, and sends the identification information of the PDU session.
  • the PEGC indicates that the PDU session modification request is to request an IP address for the PINE.
  • the PEGC requests a PDU session establishment.
  • the PEGC sends a NAS message to the AMF, which includes a PDU session establishment request, and optionally includes a PIN indication.
  • the PIN indication may indicate that the PEGC has PIN capability, ie allows the PINE to connect to the PEGC.
  • the PIN indication can also be represented by the logo of the PEGC. or.
  • the AMF acquires the subscription data of the PEGC, and the subscription data of the PEGC indicates that the PEGC has a PIN capability, or indicates that the PEGC has a PIN gateway capability.
  • the AMF selects an SMF with PIN capability according to the PIN indication or the PIN capability of the PEGC.
  • the AMF stores the PIN indication in the PDU session context.
  • the AMF selects an SMF serving the PDU session according to the PDU session identifier in the NAS message.
  • the PEGC has established a PDU session, and the PDU session may also serve the PINE, or the PEGC may serve the PDU session with the PINE.
  • the PEGC sends a PDU session establishment request message, and sends the identification information of the PDU session. And indicate that the PDU session establishment request is to request an IP address for PINE.
  • AMF according to NAS message
  • the PDU session identifier in the message selects the SMF serving the PDU session.
  • PEGC can obtain the identification information of one or more PINEs.
  • the PINE identification information may include identification information of one or more PINEs.
  • SMF can assign IP addresses to one or more PINEs.
  • PEGC can be replaced by RG
  • PINE can also be replaced by other non-3GPP devices.
  • the PEGC indicates to the PINE connected to the PEGC that an IP address needs to be allocated for the PINE, and the PEGC can create a new PDU session or make a request in an existing PDU session, so that the AMF can choose an SMF with PIN capability, and the SMF can choose to have a PIN Capable UPF, and the SMF allocates one or more IP addresses in this PDU session establishment or modification process, which satisfies the use of PINE connected to the PEGC.
  • PINE sends an IP configuration request message to PEGC.
  • step 1 refer to the description of step 1 in Example 1.
  • the PEGC sends a NAS message to the AMF, including a PDU session establishment request message.
  • the NAS message carries a PIN indication.
  • the PIN indication indicates that this PDU session can be used to serve the PINE connected to this PEGC. Or it means assigning an IP address to the PINE connected to the PEGC.
  • the NAS message includes an indication to request an IP address for the non-3GPP device.
  • the N5CW indication or the passive Internet of Things indication may also be carried in the NAS message, indicating that an IP address is requested for the N5CW device or the passive Internet of Things device.
  • the NAS message may also include an indication to request an IP address for a terminal that does not support NAS, indicating to request an IP address for a device that does not support NAS when accessing the 5GC through the PEGC.
  • the AMF sends an N11 message to the SMF, which includes a PDU session establishment request message.
  • the AMF selects an SMF with PIN capability according to the subscription data of the PEGC. How the AMF selects the SMF with the PIN capability can refer to the description in Step 3 of Example 1.
  • the AMF may also select an SMF with PIN capability according to the PIN instruction received in step 2.
  • the PIN indication is included in the N11 message.
  • the SMF obtains the subscription data of the PEGC from the UDM.
  • step 4 refer to the description of step 4 in Example 1.
  • the SMF sends an N4 Setup Request message to the UPF.
  • the N4 establishment request message includes the IP address assigned by the SMF to the PEGC.
  • the UPF sends an N4 Setup Response message to the SMF.
  • the SMF may assign one or more IP addresses to the PINE connected to the PEGC according to the PIN instruction.
  • the SMF can determine the number and type of allocated IP addresses according to the operator's configuration or the PEGC's contract. If the SMF assigns an IP address to PINE, for step 5-6, reference may be made to the description of step 5-6 in Example 1.
  • the SMF sends a response message of the N11 message to the AMF, which includes a PDU session establishment response message.
  • the response message of the N11 message may include the IP address assigned by the SMF to the PEGC.
  • one or more IP addresses allocated by PINE are also included.
  • the N11 message includes a PDU session establishment response message.
  • the above parameters are included in the PDU session establishment response message.
  • the AMF sends a NAS message to the PEGC, including a PDU session establishment response message.
  • the PEGC sends an IP configuration response message to the PINE, which carries the IP address allocated for the PINE.
  • step 9 refer to the description of step 9 in Example 1.
  • step 1 may occur before step 9, and there is no sequence limitation with other steps.
  • PEGC can indicate that an IP address needs to be assigned to PINE during the process of PDU session establishment request, so that AMF selects SMF with PIN capability, SMF selects UPF with PIN capability, and SMF allocates an IP address in this PDU session establishment process. or multiple IP addresses, satisfying the use of PINE connected to PEGC. It is worth noting that when PEGC uses this process to request an IP address for PINE, PINE may not be connected to PEGC yet.
  • the PINE is associated with or connected to the WLAN of the PEGC.
  • PEGC initiates the authentication process to obtain the identification information of PINE.
  • step 2 refer to the description of step 0 in Example 1.
  • an EAP process may be used for authentication between PINE and 5GC.
  • Step 3 is optional.
  • the PEGC sends a NAS message to the AMF, indicating that it requests an IP address for the PINE.
  • step 4 refer to the description of step 2 in Example 1.
  • the AMF sends an N11 message to the SMF, indicating that the PINE requests an IP address.
  • step 5 refer to the description of step 3 in Example 1.
  • SMF sends the IP address allocated for PINE to PEGC through AMF.
  • step 10 refer to the description of steps 1 and 9 in Example 1.
  • step 3 can also occur after step 5. That is, after receiving the N11 message in step 5, the SMF triggers the authentication procedure for PINE. As an example, the SMF sends an authentication request to the AMF, and the request is PINE authentication.
  • the authentication request message may include the identifier of PINE.
  • the logo of PEGC may also be included.
  • the PEGC obtains the identification information of the PINE through the establishment of an L2 connection with the PINE or an EAP message, and requests to allocate an IP address for the PINE through its own NAS connection.
  • the PINE associates or connects to the WLAN of the PEGC, and obtains an IP address from the WLAN of the PEGC.
  • PINE can request an IP address with a DHCP request or other message. This example is not limited.
  • the PEGC may first authenticate the PINE and then assign an IP address to the PINE.
  • PINE authentication is not limited in this application example.
  • IP Security Association IP Security Association
  • IPSec SA IP Security Association
  • IKE initial messages are exchanged between PINE and PEGC.
  • PINE sends an IKE_AUTH request message to PEGC.
  • the IKE_AUTH request message includes the identification information of the PINE.
  • identification information of PINE refer to the description of Example 1.
  • the PINE sends an IKE_AUTH request message to the PEGC, which does not carry the AUTH parameter, indicating that EAP authentication is required.
  • PEGC sends IKE_AUTH response message to PINE, which includes EAP request message.
  • the PINE sends an IKE_AUTH request message to the PEGC, which includes an EAP response message, including the identification information of the PINE.
  • step 4 refer to the description of step 3 in Example 3.
  • the PEGC sends a NAS message to the AMF, indicating that it requests an IP address for the PINE.
  • step 5 refer to the description of step 2 in Example 1.
  • the AMF sends an N11 message to the SMF, indicating that the PINE requests an IP address.
  • step 6 refer to the description of step 3 in Example 1.
  • SMF sends the IP address allocated for PINE to PEGC through AMF.
  • the PEGC sends an IKEv2 message to PINE, which carries the IP address allocated for PINE.
  • step 4 can also occur after step 6. That is, after receiving the N11 message in step 6, the SMF triggers the authentication procedure for PINE. As an example, the SMF sends an authentication request to the AMF, and the request is PINE authentication.
  • the authentication request message may include the identifier of PINE.
  • the logo of PEGC may also be included.
  • PEGC obtains the identification information of PINE through the IKEv2 message between PEGC and PINE, and requests to allocate an IP address for PINE through its own NAS connection.
  • PINE successfully connected to 5GC. It can also be considered that the session channel of the PINE is established or the network has successfully allocated resources for the PINE.
  • the IP address allocation method provided in the embodiment of the present application may be executed by an IP address allocation device.
  • the method for allocating the IP address performed by the IP address allocating device is taken as an example to describe the IP address allocating device provided in the embodiment of the present application.
  • an IP address allocation device 500 including:
  • the first sending module 501 is configured for the first terminal to send a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
  • a first receiving module 502 configured for the first terminal to receive a first IP address from the first network element, where the first IP address is an IP address assigned to the second terminal;
  • the second sending module 503 is configured for the first terminal to send a second IP address to the second terminal according to the first IP address;
  • the first terminal is a 3GPP device
  • the second terminal is a non-3GPP device
  • the connection between the first terminal and the second terminal is established through a non-3GPP technology.
  • the first request message carries one or more of the following:
  • the first sending module is specifically configured to:
  • the first terminal sends the first request message to the first network element through a non-access stratum NAS connection with the first network element.
  • the first request message carries the identification information of the second terminal, and the apparatus further includes:
  • An acquiring module configured for the first terminal to acquire the identification information of the second terminal.
  • the acquiring module is specifically configured to:
  • the first terminal receives a second request message from the second terminal, the second request message carries identification information of the second terminal, and the second request message is used to request to be the second terminal Assign IP addresses.
  • the second IP address is the same as the first IP address, or the second IP address has a mapping relationship with the first IP address.
  • the first IP address includes an IPv6 prefix and a local identifier
  • the first IP address is an IPv6 prefix
  • the second IP address includes the first IP address and a local identifier assigned by the first terminal.
  • the first network element is a mobility management function AMF or a session management function SMF.
  • the first request message includes any of the following:
  • the identification information of the second terminal includes one or more of the following:
  • the medium access control MAC address of the second terminal
  • the International Mobile Subscriber Identity IMSI of the second terminal is the International Mobile Subscriber Identity IMSI of the second terminal
  • the general public user identity GPSI of the second terminal is the general public user identity GPSI of the second terminal.
  • the first terminal is a personal Internet of Things gateway or a home gateway.
  • the second terminal is a non-3GPP device or a personal Internet of Things device.
  • the connection between the first terminal and the second terminal is established through Wi-Fi, Bluetooth or Passive IoT.
  • the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
  • an IP address allocation device 600 including:
  • the second receiving module 601 is configured for the first network element to receive a first request message from the first terminal, where the first request message is used to request to assign an IP address to the second terminal;
  • the first terminal is a 3GPP device
  • the second terminal is a non-3GPP device
  • the connection between the first terminal and the second terminal is established through non-3GPP.
  • the IP address allocation device 600 further includes:
  • An allocation module configured to allocate a first IP address to the second terminal by the first network element after the first network element receives the first request message from the first terminal;
  • the first request message carries one or more of the following:
  • the second receiving module is specifically configured to:
  • the first network element receives the first request message from the first network element through the NAS connection with the first terminal.
  • the first request message carries identification information of the second terminal.
  • the first network element is prepared as an AMF
  • the allocation module is specifically configured to:
  • the first network element sends a third request message to the SMF, where the third request message is used to request to assign an IP address to the second terminal;
  • the first network element receives the first IP address from the SMF.
  • the third request message carries one or more of the following:
  • the first network element is any one of the following:
  • the SMF serving the target PDU session the first request message carries the identifier of the target PDU session.
  • the allocation module is specifically used for:
  • the first network element allocates the first IP address to the second terminal according to the subscription data of the first terminal and/or operator configuration.
  • the device also includes:
  • the first network element sends the first IP address and a policy control rule to a user plane function UPF, where the policy control rule is used to indicate that the first IP address is forwarded by a target PDU session.
  • the device also includes:
  • a fifth sending module configured for the first network element to send the first IP address to the AMF.
  • the device also includes:
  • an authentication module configured for the first network element to trigger an authentication process of the second terminal
  • the allocation module is specifically used for:
  • the first network element allocates a first IP address to the second terminal.
  • the first request message includes any of the following:
  • the identification information of the second terminal includes one or more of the following:
  • the first terminal is a personal Internet of Things gateway or a home gateway.
  • the second terminal is a personal Internet of Things device.
  • the connection between the first terminal and the second terminal is established through WiFi, Bluetooth or Passive IoT.
  • the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
  • the IP address allocation apparatus in this embodiment of the present application may be an electronic device, such as an electronic device with an operating system, or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device may be a terminal, or other devices other than the terminal.
  • the terminal may include but not limited to the types of terminal 11 listed above, and other devices may be servers, network attached storage Storage (Network Attached Storage, NAS), etc., which are not specifically limited in this embodiment of the present application.
  • NAS Network Attached Storage
  • the IP address allocation device provided by the embodiment of the present application can realize each process realized by the method embodiments in FIG. 2 to FIG. 3 , and achieve the same technical effect. To avoid repetition, details are not repeated here.
  • this embodiment of the present application also provides a communication device 700, including a processor 701 and a memory 702, and the memory 702 stores programs or instructions that can run on the processor 701, for example , when the communication device 700 is a terminal, when the program or instruction is executed by the processor 701, each step of the above IP address allocation method embodiment can be realized, and the same technical effect can be achieved.
  • the communication device 700 is a network-side device, when the program or instruction is executed by the processor 701, each step of the above-mentioned IP address allocation method embodiment can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the embodiment of the present application also provides a terminal, including a processor and a communication interface, the communication interface is used for the first terminal to send a first request message to the first network element, and the first request message is used to request to assign an IP address to the second terminal address; the first terminal receives a first IP address from the first network element, and the first IP address is an IP address assigned by the first network element to the second terminal; the first terminal Sending a second IP address to the second terminal according to the first IP address; wherein, the first terminal is a 3GPP device, the second terminal is a non-3GPP device, and the first terminal and the second terminal are connected to each other. The connection between the two terminals is established through a non-3GPP technology.
  • This terminal embodiment corresponds to the above-mentioned terminal-side method embodiment, and each implementation process and implementation mode of the above-mentioned method embodiment can be applied to this terminal embodiment, and can achieve the same technical effect.
  • FIG. 8 is a schematic diagram of a hardware structure of a terminal implementing an embodiment of the present application.
  • the terminal 800 includes but not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. At least some parts.
  • the terminal 800 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 810 through the power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the terminal structure shown in FIG. 8 does not constitute a limitation on the terminal, and the terminal may include more or fewer components than those shown in the figure, or Or combine certain components, or arrange different components, which will not be repeated here.
  • the input unit 804 may include a graphics processing unit (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 is used in a video capture mode or an image capture mode by an image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072 .
  • the touch panel 8071 is also called a touch screen.
  • the touch panel 8071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the radio frequency unit 801 may transmit the downlink data from the network side device to the processor 810 for processing after receiving the downlink data; in addition, the radio frequency unit 801 may send uplink data to the network side device.
  • the radio frequency unit 801 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the memory 809 can be used to store software programs or instructions as well as various data.
  • the memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 809 may include volatile memory or nonvolatile memory, or, memory 809 may include both volatile and nonvolatile memory.
  • the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electronically programmable Erase Programmable Read-Only Memory
  • Flash Flash
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM, SLDRAM synchronous connection dynamic random access memory
  • the processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .
  • a radio frequency unit 801 configured for the first terminal to send a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
  • a radio frequency unit 801 configured for the first terminal to receive a first IP address from the first network element, where the first IP address is an IP address allocated for the second terminal;
  • a radio frequency unit 801 configured for the first terminal to send a second IP address to the second terminal according to the first IP address
  • the first terminal is a 3GPP device
  • the second terminal is a non-3GPP device
  • the connection between the first terminal and the second terminal is established through a non-3GPP technology.
  • the first request message carries one or more of the following:
  • the radio frequency unit 801 is specifically configured to:
  • the first terminal sends the first request message to the first network element through a non-access stratum NAS connection with the first network element.
  • the first request message carries the identification information of the second terminal
  • the radio frequency unit 801 is used for the first terminal to obtain the identification information of the second terminal interest.
  • the radio frequency unit 801 is specifically configured to:
  • the first terminal receives a second request message from the second terminal, the second request message carries identification information of the second terminal, and the second request message is used to request to be the second terminal Assign IP addresses.
  • the second IP address is the same as the first IP address, or the second IP address has a mapping relationship with the first IP address.
  • the first IP address includes an IPv6 prefix and a local identifier
  • the first IP address is an IPv6 prefix
  • the second IP address includes the first IP address and a local identifier assigned by the first terminal.
  • the first network element is a mobility management function AMF or a session management function SMF.
  • the first request message includes any of the following:
  • the identification information of the second terminal includes one or more of the following:
  • the medium access control MAC address of the second terminal
  • the International Mobile Subscriber Identity IMSI of the second terminal is the International Mobile Subscriber Identity IMSI of the second terminal
  • the general public user identity GPSI of the second terminal is the general public user identity GPSI of the second terminal.
  • the first terminal is a personal Internet of Things gateway or a home gateway.
  • the second terminal is a non-3GPP device or a personal IoT network equipment.
  • the connection between the first terminal and the second terminal is established through Wi-Fi, Bluetooth or Passive IoT.
  • the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
  • the embodiment of the present application also provides a network side device, including a processor and a communication interface, the communication interface is used for the first network element to receive the first request message from the first terminal, and the first request message is used to request the second
  • the terminal assigns an IP address; the processor is used for the first network element to assign the first IP address to the second terminal; the communication interface is used for the first network element to send the first IP address to the first terminal.
  • the network-side device embodiment corresponds to the above-mentioned network-side device method embodiment, and each implementation process and implementation mode of the above-mentioned method embodiment can be applied to this network-side device embodiment, and can achieve the same technical effect.
  • the embodiment of the present application also provides a network side device.
  • the network side device 900 includes: a processor 901 , a network interface 902 and a memory 903 .
  • the network interface 902 is, for example, a common public radio interface (common public radio interface, CPRI).
  • the network-side device 900 in this embodiment of the present invention further includes: instructions or programs stored in the memory 903 and executable on the processor 901, and the processor 901 calls the instructions or programs in the memory 903 to execute the various programs shown in FIG.
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned IP address allocation method embodiment is realized, and can achieve The same technical effects are not repeated here to avoid repetition.
  • the processor is the processor in the terminal described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the The communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned IP address allocation method embodiment, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
  • the chip mentioned in the embodiment of the present application may also be called a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip.
  • the embodiment of the present application further provides a computer program/program product, the computer program/program product is stored in a storage medium, and the computer program/program product is executed by at least one processor to implement the implementation of the above IP address allocation method
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.

Landscapes

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

Abstract

The present application belongs to the technical field of communication and discloses an IP address assignment method, a device, and a readable storage medium. The method comprises: a first terminal sends a first request message to a first network element, the first request message being used for requesting to assign an IP address to a second terminal; the first terminal receives a first IP address from the first network element, the first IP address being an IP address assigned to the second terminal; and the first terminal sends a second IP address to the second terminal according to the first IP address.

Description

IP地址分配方法、设备及可读存储介质IP address allocation method, device and readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请主张在2022年01月27日在中国提交的中国专利申请No.202210102833.3的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202210102833.3 filed in China on January 27, 2022, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种互联网协议(Internet Protocol,IP)地址分配方法、设备及可读存储介质。The application belongs to the field of communication technology, and in particular relates to an Internet Protocol (Internet Protocol, IP) address allocation method, device and readable storage medium.
背景技术Background technique
现有技术中,非第三代合作伙伴计划(3rd Generation Partnership Project,3GPP)设备可以通过3GPP设备进行网络通信,例如:手机可以为笔记本开设无线保真(Wireless Fidelity,WiFi)热点,使得笔记本通过手机上网。但是笔记本是个非3GPP设备,通信网络不能知晓笔记本正在上网,也难以识别笔记本的业务流,从而也无法对其进行策略控制、计费等管理操作。因此,在个人物联网和固移融合的场景中,如何识别非3GPP设备的业务流,是亟待解决的问题。In the prior art, non-3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) equipment can perform network communication through 3GPP equipment, for example: a mobile phone can set up a wireless fidelity (Wireless Fidelity, WiFi) hotspot for a notebook, so that the notebook can pass through Mobile Internet. However, the notebook is a non-3GPP device, and the communication network cannot know that the notebook is surfing the Internet, and it is also difficult to identify the business flow of the notebook, so that it cannot perform management operations such as policy control and billing. Therefore, in the scenario of personal IoT and fixed-mobile convergence, how to identify the service flow of non-3GPP devices is an urgent problem to be solved.
发明内容Contents of the invention
本申请实施例提供一种IP地址分配方法、设备及可读存储介质,能够解决网络无法识别非3GPP设备的业务流的问题。The embodiment of the present application provides an IP address allocation method, device and readable storage medium, which can solve the problem that the network cannot identify the service flow of the non-3GPP device.
第一方面,提供了一种IP地址分配方法、设备及可读存储介质,该方法包括:In a first aspect, an IP address assignment method, device, and readable storage medium are provided, the method including:
第一终端向第一网元发送第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;the first terminal sends a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
所述第一终端接收来自所述第一网元的第一IP地址,所述第一IP地址是为所述第二终端分配的IP地址;receiving, by the first terminal, a first IP address from the first network element, where the first IP address is an IP address assigned to the second terminal;
所述第一终端根据所述第一IP地址,向所述第二终端发送第二IP地址。 The first terminal sends the second IP address to the second terminal according to the first IP address.
第二方面,提供了一种IP地址分配方法,包括:In a second aspect, a method for assigning an IP address is provided, including:
第一网元接收来自第一终端的第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;receiving, by the first network element, a first request message from the first terminal, where the first request message is used to request allocation of an IP address for the second terminal;
所述第一网元向所述第一终端发送所述第一IP地址。The first network element sends the first IP address to the first terminal.
第三方面,提供了一种IP地址分配装置,包括:In a third aspect, an IP address allocation device is provided, including:
第一发送模块,用于第一终端向第一网元发送第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;A first sending module, configured for the first terminal to send a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
第一接收模块,用于所述第一终端接收来自所述第一网元的第一IP地址,所述第一IP地址是为所述第二终端分配的IP地址;A first receiving module, configured for the first terminal to receive a first IP address from the first network element, where the first IP address is an IP address assigned to the second terminal;
第二发送模块,用于所述第一终端根据所述第一IP地址,向所述第二终端发送第二IP地址。The second sending module is configured for the first terminal to send a second IP address to the second terminal according to the first IP address.
第四方面,提供了一种IP地址分配装置,包括:In a fourth aspect, an IP address allocation device is provided, including:
第二接收模块,用于第一网元接收来自第一终端的第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;A second receiving module, configured for the first network element to receive a first request message from the first terminal, where the first request message is used to request to assign an IP address to the second terminal;
第三发送模块,用于所述第一网元向所述第一终端发送所述第一IP地址。A third sending module, configured for the first network element to send the first IP address to the first terminal.
第五方面,提供了一种终端,该终端包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a fifth aspect, a terminal is provided, the terminal includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, the following The steps of the method in one aspect.
第六方面,提供了一种终端,包括处理器及通信接口,其中,所述通信接口用于第一终端向第一网元发送第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;所述第一终端接收来自所述第一网元的第一IP地址,所述第一IP地址是为所述第二终端分配的IP地址;所述第一终端根据所述第一IP地址,向所述第二终端发送第二IP地址。According to a sixth aspect, a terminal is provided, including a processor and a communication interface, wherein the communication interface is used for the first terminal to send a first request message to the first network element, and the first request message is used for requesting to be the first network element. Assigning an IP address to the second terminal; the first terminal receives a first IP address from the first network element, and the first IP address is an IP address assigned to the second terminal; the first terminal receives the first IP address according to the the first IP address, and send the second IP address to the second terminal.
第七方面,提供了一种网络侧设备,该网络侧设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a seventh aspect, a network-side device is provided, the network-side device includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are executed by the processor When realizing the steps of the method as described in the first aspect.
第八方面,提供了一种网络侧设备,包括处理器及通信接口,其中,所述通信接口用于第一网元接收来自第一终端的第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;所述通信接口用于所述第一网元向所 述第一终端发送所述第一IP地址。In an eighth aspect, a network side device is provided, including a processor and a communication interface, wherein the communication interface is used for a first network element to receive a first request message from a first terminal, and the first request message is used for requesting to assign an IP address to the second terminal; the communication interface is used for the first network element to communicate with the The first terminal sends the first IP address.
第九方面,提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤,或者实现如第二方面所述的方法的步骤。In the ninth aspect, a readable storage medium is provided, and programs or instructions are stored on the readable storage medium, and when the programs or instructions are executed by a processor, the steps of the method described in the first aspect are realized, or the steps of the method described in the first aspect are realized, or The steps of the method described in the second aspect.
第十方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法的步骤,或者实现如第二方面所述的方法的步骤。In a tenth aspect, a chip is provided, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method as described in the first aspect steps, or realize the steps of the method as described in the second aspect.
第十一方面,提供了一种计算机程序产品,所述计算机程序产品被存储在存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤,或者实现如第二方面所述的方法的步骤。In an eleventh aspect, a computer program product is provided, the computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the steps of the method described in the first aspect, or The steps of the method described in the second aspect are implemented.
在本申请实施例中,通过第一终端辅助第二终端请求分配IP地址,在第二终端接入通信网络的场景中,让网络可以基于为第二终端的IP地址识别相应的业务流,进而进行管理控制。In this embodiment of the application, the first terminal assists the second terminal in requesting the allocation of an IP address. In the scenario where the second terminal accesses the communication network, the network can identify the corresponding service flow based on the IP address of the second terminal, and then Take administrative control.
附图说明Description of drawings
图1a是本申请实施例提供的无线通信系统的架构示意图;Fig. 1a is a schematic structural diagram of a wireless communication system provided by an embodiment of the present application;
图1b是一种个人物联网的架构示意图;Figure 1b is a schematic diagram of a personal Internet of Things architecture;
图1c是一种固移融合的架构示意图;Figure 1c is a schematic diagram of a fixed-mobile fusion architecture;
图2是本申请实施例提供的IP地址分配方法的流程示意图之一;FIG. 2 is one of the schematic flow diagrams of the IP address allocation method provided by the embodiment of the present application;
图3是本申请实施例提供的IP地址分配方法的流程示意图之二;Fig. 3 is the second schematic flow diagram of the IP address allocation method provided by the embodiment of the present application;
图4a是本申请实施例提供的应用示例的流程示意图之一;Fig. 4a is one of the schematic flow charts of the application example provided by the embodiment of the present application;
图4b是本申请实施例提供的应用示例的流程示意图之二;Figure 4b is the second schematic flow diagram of the application example provided by the embodiment of the present application;
图4c是本申请实施例提供的应用示例的流程示意图之三;Fig. 4c is the third schematic flow diagram of the application example provided by the embodiment of the present application;
图4d是本申请实施例提供的应用示例的流程示意图之四;Fig. 4d is the fourth schematic flow diagram of the application example provided by the embodiment of the present application;
图5是本申请实施例提供的IP地址分配装置的结构示意图之一;FIG. 5 is one of the structural schematic diagrams of the IP address allocation device provided by the embodiment of the present application;
图6是本申请实施例提供的IP地址分配方法的结构示意图之二;FIG. 6 is the second structural schematic diagram of the IP address allocation method provided by the embodiment of the present application;
图7是本申请实施例提供的通信设备的结构示意图;FIG. 7 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图8是本申请实施例提供的终端的结构示意图; FIG. 8 is a schematic structural diagram of a terminal provided in an embodiment of the present application;
图9是本申请实施例提供的网络侧设备的结构示意图。FIG. 9 is a schematic structural diagram of a network side device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”所区别的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein and that "first" and "second" distinguish objects. It is usually one category, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the description and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
值得指出的是,本申请实施例所描述的技术不限于长期演进型(Long Term Evolution,LTE)/LTE的演进(LTE-Advanced,LTE-A)系统,还可用于其他无线通信系统,诸如码分多址(Code Division Multiple Access,CDMA)、时分多址(Time Division Multiple Access,TDMA)、频分多址(Frequency Division Multiple Access,FDMA)、正交频分多址(Orthogonal Frequency Division Multiple Access,OFDMA)、单载波频分多址(Single-carrier Frequency Division Multiple Access,SC-FDMA)和其他系统。本申请实施例中的术语“系统”和“网络”常被可互换地使用,所描述的技术既可用于以上提及的系统和无线电技术,也可用于其他系统和无线电技术。以下描述出于示例目的描述了新空口(New Radio,NR)系统,并且在以下大部分描述中使用NR术语,但是这些技术也可应用于NR系统应用以外的应用,如第6代(6thGeneration,6G)通信系统。It is worth pointing out that the technology described in the embodiment of this application is not limited to the Long Term Evolution (Long Term Evolution, LTE)/LTE-Advanced (LTE-Advanced, LTE-A) system, and can also be used in other wireless communication systems, such as code Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access, OFDMA), Single-carrier Frequency Division Multiple Access (Single-carrier Frequency Division Multiple Access, SC-FDMA) and other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described technology can be used for the above-mentioned system and radio technology, and can also be used for other systems and radio technologies. The following description describes the New Radio (NR) system for illustrative purposes, and uses NR terminology in most of the following descriptions, but these techniques can also be applied to applications other than NR system applications, such as the 6th generation (6 th Generation, 6G) communication system.
图1a示出本申请实施例可应用的一种无线通信系统的框图。无线通信系 统包括终端11和网络侧设备12。其中,终端11可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)或称为笔记本电脑、个人数字助理(Personal Digital Assistant,PDA)、掌上电脑、上网本、超级移动个人计算机(ultra-mobile personal computer,UMPC)、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴式设备(Wearable Device)、车载设备(VUE)、行人终端(PUE)、智能家居(具有无线通信功能的家居设备,如冰箱、电视、洗衣机或者家具等)、游戏机、个人计算机(personal computer,PC)、柜员机或者自助机等终端侧设备,可穿戴式设备包括:智能手表、智能手环、智能耳机、智能眼镜、智能首饰(智能手镯、智能手链、智能戒指、智能项链、智能脚镯、智能脚链等)、智能腕带、智能服装等。需要说明的是,在本申请实施例并不限定终端11的具体类型。网络侧设备12可以包括接入网设备或核心网设备,其中,接入网设备12也可以称为无线接入网设备、无线接入网(Radio Access Network,RAN)、无线接入网功能或无线接入网单元。接入网设备12可以包括基站、无线局域网(Wireless Local Area Network,WLAN)接入点或WiFi节点等,基站可被称为节点B、演进节点B(eNB)、接入点、基收发机站(Base Transceiver Station,BTS)、无线电基站、无线电收发机、基本服务集(Basic Service Set,BSS)、扩展服务集(Extended Service Set,ESS)、家用B节点、家用演进型B节点、发送接收点(Transmitting Receiving Point,TRP)或所述领域中其他某个合适的术语,只要达到相同的技术效果,所述基站不限于特定技术词汇,需要说明的是,在本申请实施例中仅以NR系统中的基站为例进行介绍,并不限定基站的具体类型。核心网设备可以包含但不限于如下至少一项:核心网节点、核心网功能、移动管理实体(Mobility Management Entity,MME)、接入移动管理功能(Access and Mobility Management Function,AMF)、会话管理功能(Session Management Function,SMF)、用户平面功能(User Plane Function,UPF)、策略控制功能(Policy Control Function,PCF)、策略与计费规则功能单元(Policy and Charging Rules  Function,PCRF)、边缘应用服务发现功能(Edge Application Server Discovery Function,EASDF)、统一数据管理(Unified Data Management,UDM)、统一数据仓储(Unified Data Repository,UDR)、归属用户服务器(Home Subscriber Server,HSS)、集中式网络配置(Centralized network configuration,CNC)、网络存储功能(Network Repository Function,NRF)、网络开放功能(Network Exposure Function,NEF)、本地NEF(Local NEF,或L-NEF)、绑定支持功能(Binding Support Function,BSF)、应用功能(Application Function,AF)等。需要说明的是,在本申请实施例中仅以NR系统中的核心网设备为例进行介绍,并不限定核心网设备的具体类型。值得说明的是,上述核心网设备的功能可以由多个设备共同实现,也可以多个核心网设备的功能由一个设备实现,本申请实施例对此不做限定。在本申请实施例中,如果多个核心网设备的功能由一个设备实现,则本申请实施例中该多个核心网设备之间的交互为该设备内部操作。Fig. 1a shows a block diagram of a wireless communication system to which the embodiment of the present application is applicable. Department of Wireless Communication The system includes a terminal 11 and a network side device 12. Wherein, the terminal 11 can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer) or a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a palmtop computer, a netbook, a super mobile personal computer (ultra-mobile personal computer, UMPC), mobile Internet device (Mobile Internet Device, MID), augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) equipment, robot, wearable device (Wearable Device) , vehicle equipment (VUE), pedestrian terminal (PUE), smart home (home equipment with wireless communication functions, such as refrigerators, TVs, washing machines or furniture, etc.), game consoles, personal computers (personal computers, PCs), teller machines or self-service Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), Smart wristbands, smart clothing, etc. It should be noted that, the embodiment of the present application does not limit the specific type of the terminal 11 . The network side device 12 may include an access network device or a core network device, wherein the access network device 12 may also be called a radio access network device, a radio access network (Radio Access Network, RAN), a radio access network function, or Wireless access network unit. The access network device 12 may include a base station, a wireless local area network (Wireless Local Area Network, WLAN) access point or a WiFi node, etc., and the base station may be called a node B, an evolved node B (eNB), an access point, or a base transceiver station (Base Transceiver Station, BTS), radio base station, radio transceiver, Basic Service Set (BSS), Extended Service Set (Extended Service Set, ESS), Home Node B, Home Evolved Node B, sending and receiving point (Transmitting Receiving Point, TRP) or some other appropriate term in the field, as long as the same technical effect is achieved, the base station is not limited to specific technical terms. It should be noted that in the embodiment of this application, only the NR system The base station in the example is introduced as an example, and the specific type of the base station is not limited. The core network equipment may include but not limited to at least one of the following: core network node, core network function, mobility management entity (Mobility Management Entity, MME), access mobility management function (Access and Mobility Management Function, AMF), session management function (Session Management Function, SMF), User Plane Function (UPF), Policy Control Function (Policy Control Function, PCF), Policy and Charging Rules Function Unit (Policy and Charging Rules Function, PCRF), Edge Application Server Discovery Function (EASDF), Unified Data Management (UDM), Unified Data Repository (UDR), Home Subscriber Server (Home Subscriber Server, HSS), centralized network configuration (Centralized network configuration, CNC), network storage function (Network Repository Function, NRF), network exposure function (Network Exposure Function, NEF), local NEF (Local NEF, or L-NEF), binding Support function (Binding Support Function, BSF), application function (Application Function, AF), etc. It should be noted that, in the embodiment of the present application, only the core network equipment in the NR system is used as an example for introduction, and the specific type of the core network equipment is not limited. It should be noted that the functions of the above-mentioned core network device may be realized by multiple devices, or the functions of multiple core network devices may be realized by one device, which is not limited in this embodiment of the present application. In the embodiment of the present application, if the functions of multiple core network devices are implemented by one device, the interaction among the multiple core network devices in the embodiment of the present application is an internal operation of the device.
为更好理解本申请技术方案,首先对以下内容进行介绍:In order to better understand the technical solution of this application, the following contents are firstly introduced:
个人物联网(Personal IoT Network,PIN)Personal IoT Network (PIN)
图1b示出一种个人物联网的架构,PIN是一个由至少一个PIN元素(PIN element,PINE)构成的组,其中至少一个PIN元素为一个UE。PIN元素之间彼此通信。两个PIN元素可以通过它们之间的直接连接进行通信,也可以通过通信网络进行间接通信。Fig. 1b shows a personal internet of things architecture, a PIN is a group consisting of at least one PIN element (PIN element, PINE), wherein at least one PIN element is a UE. PIN elements communicate with each other. Two PIN elements can communicate through a direct connection between them, or indirectly through a communication network.
一个PIN元素为一个UE或一个非3GPP设备。一个PIN元素还可以为一个在无线局域网无5G能力的(Non-5G-Capable over WLAN,N5CW)设备。非3GPP设备指未使用3GPP定义的凭证的设备,不支持3GPP定义的非接入层(Non-access stratum,NAS)协议的设备,或者不支持3GPP接入技术(如3G/4G/5G空口技术)而只支持非3GPP接入技术(如WiFi,固网,蓝牙等接入技术)的设备。值得说明的是,当PIN元素为UE时,当它通过PEGC接入通信网络时,也可以执行非3GPP设备或N5CW设备的流程,例如,不使用UE的NAS与通信网络交互。 A PIN element is a UE or a non-3GPP device. A PIN element may also be a Non-5G-Capable over WLAN (N5CW) device on a wireless local area network. Non-3GPP devices refer to devices that do not use credentials defined by 3GPP, devices that do not support the Non-access stratum (Non-access stratum, NAS) protocol defined by 3GPP, or devices that do not support 3GPP access technologies (such as 3G/4G/5G air interface technology ) and only supports non-3GPP access technologies (such as WiFi, fixed network, Bluetooth and other access technologies). It is worth noting that when the PIN element is UE, when it accesses the communication network through PEGC, it can also execute the process of non-3GPP equipment or N5CW equipment, for example, the NAS of UE is not used to interact with the communication network.
一个PIN中可以有一个或多个具有网关能力的PINE(PIN element with gateway capability,PEGC)。该PIN中的PIN元素互相之间可以直接交互通信或者通过PEGC进行通信。该PIN中的PIN元素和该PIN外的其他设备或应用服务器可以通过PEGC进行通信。PEGC可以是智能家居场景中的网关,也可以是可穿戴设备场景中的手机。There can be one or more PINEs (PIN element with gateway capability, PEGC) in a PIN. The PIN elements in the PIN can communicate with each other directly or through PEGC. The PIN element in the PIN can communicate with other devices or application servers outside the PIN through the PEGC. PEGC can be a gateway in a smart home scenario, or a mobile phone in a wearable device scenario.
固移融合(Wireline Wireless Convergence,WWC)Fixed Mobile Convergence (Wireline Wireless Convergence, WWC)
参见图1c,当前的3GPP 5G核心网支持固定网络接入。包括支持家庭网关(Residential Gateway,RG)通过固定网络和3GPP网络接入5G核心网,也包括3GPP终端设备通过家庭网关接入到5G核心网。Referring to Figure 1c, the current 3GPP 5G core network supports fixed network access. It includes support for residential gateways (Residential Gateway, RG) to access the 5G core network through fixed networks and 3GPP networks, and also includes the access of 3GPP terminal devices to the 5G core network through residential gateways.
现有技术中,手机可以为其他设备开设WiFi热点,如使得笔记本通过手机上网。但是笔记本是个非3GPP设备,通信网络不能知晓笔记本正在上网,也难以识别笔记本的业务流,从而也无法对其进行策略控制、计费等管理操作。在个人物联网和固移融合的场景中,如何识别非3GPP设备的业务流,是亟待解决的问题。In the prior art, the mobile phone can set up a WiFi hotspot for other devices, such as enabling a notebook to access the Internet through the mobile phone. However, the notebook is a non-3GPP device, and the communication network cannot know that the notebook is surfing the Internet, and it is also difficult to identify the business flow of the notebook, so that it cannot perform management operations such as policy control and billing. In the scenario of personal IoT and fixed-mobile convergence, how to identify the service flow of non-3GPP devices is an urgent problem to be solved.
下面结合附图,通过一些实施例及其应用场景对本申请实施例提供的IP地址分配方法进行详细地说明。The IP address allocation method provided by the embodiment of the present application will be described in detail below through some embodiments and application scenarios with reference to the accompanying drawings.
参见图2,本申请实施例提供一种IP地址分配方法,包括:Referring to Fig. 2, the embodiment of the present application provides a method for assigning an IP address, including:
步骤201:第一终端向第一网元发送第一请求消息,该第一请求消息用于请求为第二终端分配IP地址;Step 201: the first terminal sends a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
步骤202:第一终端接收来自第一网元的第一IP地址,该第一IP地址是为第二终端分配的IP地址;Step 202: the first terminal receives a first IP address from the first network element, where the first IP address is an IP address assigned to the second terminal;
步骤203:第一终端根据第一IP地址,向第二终端发送第二IP地址;Step 203: the first terminal sends the second IP address to the second terminal according to the first IP address;
本申请实施例中,第一终端为个人物联网网关或家庭网关,第二终端为无法使用NAS协议的设备。作为一种可选地实现方式,第二终端为非3GPP设备或者为个人物联网设备,作为另外一种可选地实现方式,第二终端为3GPP设备,第二终端与第一终端之间的连接不支持NAS协议的传输。In the embodiment of the present application, the first terminal is a personal Internet of Things gateway or a home gateway, and the second terminal is a device that cannot use the NAS protocol. As an optional implementation, the second terminal is a non-3GPP device or a personal Internet of Things device. As another optional implementation, the second terminal is a 3GPP device, and the connection between the second terminal and the first terminal The connection does not support NAS protocol transfers.
可选的,第一终端与第二终端之间通过非3GPP技术建立连接。例如, 第一终端和第二终端之间可以通过WiFi蓝牙或无源物联网(Passive IoT)技术等建立连接。值得说明的是,当第一终端和第二终端通过无源物联网建立连接时,第二终端可以为3GPP设备或非3GPP设备,无源物联网技术也可以为3GPP接入技术或非3GPP接入技术。Optionally, a non-3GPP technology is used to establish a connection between the first terminal and the second terminal. For example, A connection may be established between the first terminal and the second terminal through WiFi, Bluetooth or passive Internet of Things (Passive IoT) technology. It is worth noting that when the first terminal and the second terminal establish a connection through the passive Internet of Things, the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
在本申请实施例中,通过即第一终端辅助第二终端请求分配IP地址,在非3GPP设备通过个人物联网络或家庭网络接入通信网络的场景中,让网络可以基于为非3GPP设备分配的IP地址识别非3GPP设备的业务流,进而进行管理控制。In the embodiment of the present application, the first terminal assists the second terminal to request IP address allocation, and in the scenario where non-3GPP devices access the communication network through the personal Internet of Things network or home network, the network can be based on the allocation of IP addresses for non-3GPP devices. The IP address identifies the service flow of non-3GPP equipment, and then performs management and control.
需要说明的是,在本申请实施例的应用场景中,由于与第一终端连接的第二终端的数量可以是一个或者多个,因此相应地第一网元也可以为该一个或者多个第二终端分配一个或多个第一IP地址。It should be noted that, in the application scenario of the embodiment of the present application, since the number of second terminals connected to the first terminal may be one or more, correspondingly, the first network element may also be the one or more second terminals The second terminal allocates one or more first IP addresses.
在一种可能的实施方式中,第一网元为移动性管理功能(Access and Mobility Management Function,AMF)或者会话管理功能(Session Management Function,SMF)。In a possible implementation manner, the first network element is a mobility management function (Access and Mobility Management Function, AMF) or a session management function (Session Management Function, SMF).
在一种可能的实施方式中,第一终端为个人物联网网关或者家庭网关。In a possible implementation manner, the first terminal is a personal Internet of Things gateway or a home gateway.
在一种可能的实施方式中,第二终端为非3GPP设备或者个人物联网设备。In a possible implementation manner, the second terminal is a non-3GPP device or a personal Internet of Things device.
在一种可能的实施方式中,第一终端和第二终端之间的通过WiFi、蓝牙或者无源物联网(Passive IoT)技术建立连接。值得说明的是,当第一终端和第二终端通过无源物联网建立连接时,第二终端可以为3GPP设备或非3GPP设备,无源物联网技术也可以为3GPP接入技术或非3GPP接入技术。In a possible implementation manner, the connection between the first terminal and the second terminal is established through WiFi, Bluetooth or passive Internet of Things (Passive IoT) technology. It is worth noting that when the first terminal and the second terminal establish a connection through the passive Internet of Things, the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
在一种可能的实施方式中,第一请求消息中携带以下一项或者多项:In a possible implementation manner, the first request message carries one or more of the following:
(1)第一终端的标识;(1) the identification of the first terminal;
(2)PIN指示;(2) PIN instructions;
(3)非3GPP指示;(3) Non-3GPP instructions;
(4)N5CW指示;(4) N5CW instructions;
(5)为不支持NAS的终端请求IP地址的指示; (5) an indication of requesting an IP address for a terminal that does not support NAS;
(6)无源物联网指示。(6) Passive IoT indication.
在一种可能的实施方式中,第一终端向第一网元发送第一请求消息,包括:In a possible implementation manner, the first terminal sends the first request message to the first network element, including:
第一终端通过与第一网元之间的NAS连接,向第一网元发送第一请求消息。The first terminal sends the first request message to the first network element through the NAS connection with the first network element.
在一种可能的实施方式中,第一请求消息中携带第二终端的标识信息;In a possible implementation manner, the first request message carries identification information of the second terminal;
相应地,在第一终端向第一网元发送第一请求消息之前,方法还可以包括:Correspondingly, before the first terminal sends the first request message to the first network element, the method may further include:
第一终端获取第二终端的标识信息。The first terminal acquires the identification information of the second terminal.
示例性地,第一终端获取第二终端的标识信息,包括:Exemplarily, the first terminal obtains the identification information of the second terminal, including:
第一终端接收来自第二终端的第二请求消息,该第二请求消息中携带第二终端的标识信息,第二请求消息用于请求为第二终端分配IP地址。The first terminal receives a second request message from the second terminal, where the second request message carries identification information of the second terminal, and the second request message is used to request to assign an IP address to the second terminal.
示例性地,上述第二请求消息可以是IP地址配置请求消息。Exemplarily, the foregoing second request message may be an IP address configuration request message.
在一种可能的实施方式中,第二IP地址与第一IP地址相同,或者第二IP地址与第一IP地址具有映射关系。In a possible implementation manner, the second IP address is the same as the first IP address, or the second IP address has a mapping relationship with the first IP address.
在本申请实施例中,IP地址具体可以是互联网协议版本4(Internet Protocol version 4,IPv4)地址或者互联网协议版本6(Internet Protocol version6,IPv6)地址;上述第二IP地址与第一IP地址相同可以指的是:第一终端发送给第二终端的IPv4地址与第一网元为第二终端分配的IPv4地址相同,或者第一终端发送给第二终端的IPv6地址与第一网元为第二终端分配的IPv6地址相同;上述第二IP地址与第一IP地址具有映射关系可以指的是:第一终端发送给第二终端的IPv4地址是与第一网元为第二终端分配的IPv4地址相对应的局域网IPv4地址,或者第一终端发送给第二终端的IPv6地址是与第一网元为第二终端分配的IPv6地址相对应的局域网IPv6地址。例如,第一地址为第二地址经过网络地址转换后的IP地址。反之亦然。In the embodiment of the present application, the IP address may specifically be an Internet Protocol version 4 (Internet Protocol version 4, IPv4) address or an Internet Protocol version 6 (Internet Protocol version 6, IPv6) address; the above-mentioned second IP address is the same as the first IP address It may refer to: the IPv4 address sent by the first terminal to the second terminal is the same as the IPv4 address allocated by the first network element to the second terminal, or the IPv6 address sent by the first terminal to the second terminal is the same as the IPv6 address sent by the first network element. The IPv6 addresses assigned by the two terminals are the same; the above-mentioned second IP address having a mapping relationship with the first IP address may refer to: the IPv4 address sent by the first terminal to the second terminal is the same as the IPv4 address assigned by the first network element to the second terminal The local area network IPv4 address corresponding to the address, or the IPv6 address sent by the first terminal to the second terminal is a local area network IPv6 address corresponding to the IPv6 address allocated by the first network element to the second terminal. For example, the first address is the IP address of the second address after network address translation. vice versa.
可选地,第一IP地址包括IPv6前缀和第一网元分配的本地标识,或者,第一IP地址为IPv6前缀,第二IP地址包括第一IP地址和第一终端分配的本 地标识。Optionally, the first IP address includes an IPv6 prefix and a local identifier assigned by the first network element, or the first IP address is an IPv6 prefix, and the second IP address includes the first IP address and a local identifier assigned by the first terminal. to identify.
在本申请实施例中,第一网络为第二终端分配的可以是IPv6前缀以及本地标识,或者,第一网络为第二终端分配的可以是IPv6前缀,然后由第一终端为第二终端分配本地标识;In this embodiment of the application, the first network may allocate an IPv6 prefix and a local identifier to the second terminal, or the first network may allocate an IPv6 prefix to the second terminal, and then the first terminal allocates an IPv6 prefix to the second terminal. local identification;
最终由IPv6前缀与本地标识组成第二终端的IPv6地址,即第二IP地址,相应地,第一终端可以向第二终端发送由IPv6前缀与本地标识组成的IPv6地址,也可以向第二终端发送由IPv6前缀与本地标识组成的IPv6地址所对应的局域网IPv6地址。Finally, the IPv6 address of the second terminal is composed of the IPv6 prefix and the local identifier, that is, the second IP address. Correspondingly, the first terminal can send the IPv6 address composed of the IPv6 prefix and the local identifier to the second terminal, or send Send the LAN IPv6 address corresponding to the IPv6 address composed of the IPv6 prefix and the local identifier.
在一种可能的实施方式中,第一请求消息包括以下任意一项:In a possible implementation manner, the first request message includes any of the following:
(1)NAS消息;(1) NAS message;
(2)协议数据单元(Protocol Data Unit,PDU)会话请求建立请求消息;(2) Protocol Data Unit (Protocol Data Unit, PDU) session request establishment request message;
(3)PDU会话修改请求消息。(3) PDU session modification request message.
在一种可能的实施方式中,第二终端的标识信息包括以下一项或者多项:In a possible implementation manner, the identification information of the second terminal includes one or more of the following:
(1)第二终端的媒体接入控制(Media Access Control,MAC)地址;(1) the Media Access Control (Media Access Control, MAC) address of the second terminal;
(2)第二终端的设备标识;(2) the device identification of the second terminal;
(3)第二终端的国际移动用户识别码(International Mobile Subscriber Identity,IMSI);(3) International Mobile Subscriber Identity (IMSI) of the second terminal;
(4)第二终端的用户永久标识符(Subscription Permanent Identifier,SUPI);(4) Subscription Permanent Identifier (SUPI) of the second terminal;
(5)第二终端的通用公共用户标识(Generic Public Subscription Identifier,GPSI)。(5) Generic Public Subscription Identifier (Generic Public Subscription Identifier, GPSI) of the second terminal.
参见图3,本申请实施例提供一种IP地址分配方法,包括:Referring to Fig. 3, the embodiment of the present application provides a method for assigning an IP address, including:
步骤301:第一网元接收来自第一终端的第一请求消息,该第一请求消息用于请求为第二终端分配IP地址;Step 301: The first network element receives a first request message from the first terminal, where the first request message is used to request to assign an IP address to the second terminal;
步骤302:第一网元向第一终端发送第一IP地址;Step 302: the first network element sends the first IP address to the first terminal;
可选地,第一终端为3GPP设备,第二终端为非3GPP设备,第一终端与第二终端之间通过非3GPP建立连接。 Optionally, the first terminal is a 3GPP device, the second terminal is a non-3GPP device, and the connection between the first terminal and the second terminal is established through non-3GPP.
在本申请实施例中,通过3GPP设备(即第一终端)辅助非3GPP设备(即第二终端)请求分配IP地址,在非3GPP设备通过个人物联网络或家庭网络接入通信网络的场景中,让网络可以基于为非3GPP设备分配的IP地址识别非3GPP设备的业务流,进而进行管理控制。In the embodiment of this application, the non-3GPP device (ie, the second terminal) is assisted by the 3GPP device (ie, the first terminal) to request the allocation of an IP address. , so that the network can identify the service flow of the non-3GPP device based on the IP address assigned to the non-3GPP device, and then perform management and control.
需要说明的是,在本申请实施例的应用场景中,由于与第一终端连接的第二终端的数量可以是一个或者多个,因此相应地第一网元也可以为该一个或者多个第二终端分配一个或多个第一IP地址。It should be noted that, in the application scenario of the embodiment of the present application, since the number of second terminals connected to the first terminal may be one or more, correspondingly, the first network element may also be the one or more second terminals The second terminal allocates one or more first IP addresses.
在一种可能的实施方式中,在第一网元接收来自第一终端的第一请求消息之后,方法还包括:In a possible implementation manner, after the first network element receives the first request message from the first terminal, the method further includes:
第一网元为所述第二终端分配第一IP地址。The first network element allocates the first IP address to the second terminal.
在一种可能的实施方式中,第一终端为个人物联网网关或者家庭网关。In a possible implementation manner, the first terminal is a personal Internet of Things gateway or a home gateway.
在一种可能的实施方式中,第二终端为非3GPP设备或者个人物联网设备。In a possible implementation manner, the second terminal is a non-3GPP device or a personal Internet of Things device.
在一种可能的实施方式中,第一终端和第二终端之间的通过WiFi,蓝牙或者无源物联网(例如Passive IoT)建立连接。值得说明的是,当第一终端和第二终端通过无源物联网建立连接时,第二终端可以为3GPP设备或非3GPP设备,无源物联网技术也可以为3GPP接入技术或非3GPP接入技术。In a possible implementation manner, the connection between the first terminal and the second terminal is established through WiFi, Bluetooth or passive Internet of Things (such as Passive IoT). It is worth noting that when the first terminal and the second terminal establish a connection through the passive Internet of Things, the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
在一种可能的实施方式中,第一请求消息中携带以下一项或者多项:In a possible implementation manner, the first request message carries one or more of the following:
(1)第一终端的标识;(1) the identification of the first terminal;
(2)PIN指示;(2) PIN instructions;
(3)非3GPP指示;(3) Non-3GPP instructions;
(4)N5CW指示;(4) N5CW instruction;
(5)为不支持NAS的终端请求IP地址的指示;(5) An indication of requesting an IP address for a terminal that does not support NAS;
(6)无源物联网指示。(6) Passive IoT indication.
在一种可能的实施方式中,第一网元接收来自第一终端的第一请求消息,包括:In a possible implementation manner, the first network element receives the first request message from the first terminal, including:
第一网元通过与第一终端之间的NAS连接,接收来自第一网元的第一请 求消息。The first network element receives the first request from the first network element through the NAS connection with the first terminal Ask for news.
在一种可能的实施方式中,第一请求消息中携带第二终端的标识信息。In a possible implementation manner, the first request message carries identification information of the second terminal.
在一种可能的实施方式中,在第一网元备为AMF的情况下,第一网元为第二终端分配第一IP地址,包括:In a possible implementation manner, when the first network element is prepared as an AMF, the first network element assigns the first IP address to the second terminal, including:
(1)第一网元向SMF发送第三请求消息,第三请求消息用于请求为第二终端分配IP地址;(1) The first network element sends a third request message to the SMF, and the third request message is used to request to allocate an IP address for the second terminal;
(2)第一网元接收来自SMF的第一IP地址。(2) The first network element receives the first IP address from the SMF.
作为一种可能的实施方式,第一网元是AMF时,则在接收到来自第一终端的第一请求之后,AMF向SMF发送请求消息,以请求为第二终端分配IP地址。As a possible implementation manner, when the first network element is an AMF, after receiving the first request from the first terminal, the AMF sends a request message to the SMF to request allocation of an IP address for the second terminal.
示例性的,该第三请求消息可以是N11消息。Exemplarily, the third request message may be an N11 message.
在一种可能的实施方式中,第三请求消息中携带以下一项或者多项:In a possible implementation manner, the third request message carries one or more of the following:
(1)第一终端的标识;(1) the identification of the first terminal;
(2)PIN指示;(2) PIN instructions;
(3)非3GPP指示;(3) Non-3GPP instructions;
(4)N5CW指示;(4) N5CW instructions;
(5)为不支持NAS的终端请求IP地址的指示;(5) An indication of requesting an IP address for a terminal that does not support NAS;
(6)无源物联网指示。(6) Passive IoT indication.
作为另一种可能的实施方式,第一网元备为SMF。第一网元可以为以下任意一项:As another possible implementation manner, the first network element is prepared as an SMF. The first network element can be any of the following:
(1)具有PIN能力的SMF;(1) SMF with PIN capability;
(2)具有为非3GPP设备分配IP地址的能力的SMF;(2) SMF with the ability to assign IP addresses to non-3GPP devices;
(3)服务于目标PDU会话的SMF,第一请求消息中携带该目标PDU会话的标识。(3) The SMF serving the target PDU session, the first request message carries the identifier of the target PDU session.
进一步地,第一网元为第二终端分配第一IP地址,包括:Further, the first network element allocates the first IP address to the second terminal, including:
第一网元根据第一终端的签约数据和/或运营商配置,为第二终端分配第一IP地址。 The first network element allocates the first IP address to the second terminal according to the subscription data of the first terminal and/or operator configuration.
在本申请实施例中,如果第一网元是满足上述情况的SMF时,则SMF可以根据第一终端的签约数据和/或运营商配置,为第二终端分配第一IP地址。In this embodiment of the present application, if the first network element is an SMF that satisfies the above conditions, the SMF may assign the first IP address to the second terminal according to the subscription data of the first terminal and/or operator configuration.
在一种可能的实施方式中,方法还包括:In a possible implementation manner, the method also includes:
第一网元向用户面功能(User Plane Function,UPF)发送所述第一IP地址和策略控制规则,该策略控制规则用于指示第一IP地址由目标PDU会话转发,第一请求消息中携带该目标PDU会话的标识。The first network element sends the first IP address and the policy control rule to the user plane function (User Plane Function, UPF), and the policy control rule is used to indicate that the first IP address is forwarded by the target PDU session, and the first request message carries The ID of the target PDU session.
在一种可能的实施方式中,方法还包括:In a possible implementation manner, the method also includes:
第一网元向AMF发送第一IP地址,即SMF在为第二终端分配好第一IP地址后,将第一IP地址发送给AMF。The first network element sends the first IP address to the AMF, that is, the SMF sends the first IP address to the AMF after allocating the first IP address to the second terminal.
在一种可能的实施方式中,方法还包括:In a possible implementation manner, the method also includes:
第一网元触发第二终端的鉴权流程;The first network element triggers an authentication process of the second terminal;
相应地,第一网元为第二终端分配第一IP地址,包括:Correspondingly, the first network element allocates the first IP address to the second terminal, including:
在所述第二终端鉴权成功后,第一网元为第二终端分配第一IP地址。After the second terminal is successfully authenticated, the first network element allocates the first IP address to the second terminal.
在本申请实施例中,SMF触发第二终端的鉴权流程,并在鉴权成功后为第二终端分配第一IP地址。该鉴权流程可以是可扩展身份验证协议(Extensible Authentication Protocol,EAP)流程也可以是其他鉴权协议。例如使用挑战握手认证协议-密码认证协议(Challenge Handshake Authentication Protocol-Password Authentication Protocol,CHAP-PAP)进行鉴权。第二终端的鉴权流程中为第二终端执行鉴权的鉴权服务器可以为统一数据管理功能,也可以为鉴权授权服务器,或者是第二终端所相关的应用服务器,本申请实施例不作限制。In the embodiment of the present application, the SMF triggers the authentication process of the second terminal, and assigns the first IP address to the second terminal after the authentication is successful. The authentication process may be an extensible authentication protocol (Extensible Authentication Protocol, EAP) process or other authentication protocols. For example, use Challenge Handshake Authentication Protocol-Password Authentication Protocol (CHAP-PAP) for authentication. In the authentication process of the second terminal, the authentication server that performs authentication for the second terminal may be a unified data management function, an authentication authorization server, or an application server related to the second terminal. This embodiment of the present application does not make any limit.
在一种可能的实施方式中,第一请求消息包括以下任意一项:In a possible implementation manner, the first request message includes any of the following:
(1)NAS消息;(1) NAS message;
(2)PDU会话请求建立请求消息;(2) PDU session request establishment request message;
(3)PDU会话修改请求消息。(3) PDU session modification request message.
在一种可能的实施方式中,第二终端的标识信息包括以下一项或者多项:In a possible implementation manner, the identification information of the second terminal includes one or more of the following:
(1)第二终端的MAC地址; (1) MAC address of the second terminal;
(2)第二终端的设备标识;(2) the device identification of the second terminal;
(3)第二终端的IMSI;(3) IMSI of the second terminal;
(4)第二终端的SUPI;(4) SUPI of the second terminal;
(5)第二终端的GPSI。(5) GPSI of the second terminal.
下面结合具体应用示例对本申请实施例的技术方案进行描述。本申请实施例以5G网络为例,但本申请实施例所描述的方案也可以用于其它代际的通信网络。The technical solutions of the embodiments of the present application are described below in conjunction with specific application examples. The embodiment of the present application takes the 5G network as an example, but the solution described in the embodiment of the present application can also be used in other intergenerational communication networks.
示例一,参见图4a:Example 1, see Figure 4a:
步骤0.PEGC获取PINE的标识信息。Step 0. The PEGC obtains the identification information of the PINE.
作为一种可能的实现方式,PEGC发起鉴权流程,以获取PINE的标识信息。PINE在鉴权流程中向PEGC发送自己的标识信息。As a possible implementation, the PEGC initiates an authentication process to obtain the identification information of the PINE. PINE sends its own identification information to PEGC during the authentication process.
作为另一种可能的实现方式,PINE向PEGC发送因特网密钥交换(Internet Key Exchange,IKEv2)消息,其中包括PINE的标识信息。As another possible implementation, PINE sends an Internet Key Exchange (IKEv2) message to PEGC, which includes the identification information of PINE.
作为再一种可能的实现方式,PINE可以使用其他L2或L1协议向PEGC发送自己的标识信息,本实施例不作限定。As yet another possible implementation manner, the PINE may use other L2 or L1 protocols to send its own identification information to the PEGC, which is not limited in this embodiment.
示例性的,PEGC和PINE使用EAP鉴权流程。例如,PEGC向PINE发送EAP-Req/Identity消息。PINE向PEGC发送EAP-Res/Identity消息,其中包括自己的标识。PINE的标识可以以网络接入标识(Network Access Identity,NAI)的形式发送。可选的,PINE可以指示它不支持NAS接入5GC,或者它希望不用NAS接入5GC。例如,NAI中可以包括字段5gc-nn表示它不支持NAS接入5GC,或者它希望不用NAS接入5GC。Exemplarily, PEGC and PINE use the EAP authentication process. For example, PEGC sends an EAP-Req/Identity message to PINE. PINE sends an EAP-Res/Identity message to PEGC, which includes its own identity. The identity of the PINE may be sent in the form of a Network Access Identity (NAI). Optionally, PINE can indicate that it does not support NAS access to 5GC, or that it wishes to access 5GC without NAS. For example, the field 5gc-nn may be included in the NAI to indicate that it does not support NAS access to 5GC, or it wishes to access 5GC without NAS.
在本申请实施例中,5GC也称为5G核心网(5G Core Network)。In the embodiment of this application, 5GC is also called 5G Core Network (5G Core Network).
示例性的,PINE发送的NAI可以为:Exemplarily, the NAI sent by PINE can be:
type1.rid678.schid0.useriduser17@nai.5gc-nn.mnc123.mcc45.3gppnetwork.o rg。type1.rid678.schid0.useriduser17@nai.5gc-nn.mnc123.mcc45.3gppnetwork.org.
PINE的标识信息用于在PIN中或5G系统中标识该PINE,例如可以为PINE的MAC地址,PINE的设备标识,IMSI,SUPI,用户隐藏标识(Subscription  Concealed Identifier,SUCI),或通用公共用户标识(Generic Public Subscription Identifier,GPSI)等。The identification information of the PINE is used to identify the PINE in the PIN or in the 5G system, for example, it can be the MAC address of the PINE, the device identification of the PINE, IMSI, SUPI, user hidden identification (Subscription Concealed Identifier, SUCI), or Generic Public Subscription Identifier (GPSI), etc.
步骤1.PINE向PEGC发送IP配置请求消息。Step 1. PINE sends an IP configuration request message to PEGC.
示例性的,IP配置请求消息为动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)请求消息。Exemplarily, the IP configuration request message is a Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol, DHCP) request message.
该IP配置请求消息可以包括PINE的标识。在这种情况下,可以认为步骤0是由步骤1来实现的。The IP configuration request message may include the identifier of PINE. In this case, step 0 can be considered to be implemented by step 1.
步骤1可选。Step 1 is optional.
步骤2.PEGC向AMF发送NAS消息,表示为PINE请求IP地址。Step 2. The PEGC sends a NAS message to the AMF, indicating that it requests an IP address for the PINE.
NAS消息中包括PEGC的标识、PINE的标识中至少一个。The NAS message includes at least one of the identifier of the PEGC and the identifier of the PINE.
可选的,NAS消息中还可以携带PIN指示,用于指示为PINE请求IP地址,或者指示为非3GPP设备请求IP地址。或者,NAS消息中还可以携带N5CW指示,或者无源物联网指示,指示为N5CW设备或无源物联网设备请求IP地址。或者NAS消息中还可以包括为不支持NAS的终端请求IP地址的指示,指示为通过PEGC接入5GC时不支持NAS的设备请求IP地址。Optionally, the NAS message may also carry a PIN indication, which is used to indicate to request an IP address for a PINE, or to indicate to request an IP address for a non-3GPP device. Alternatively, the N5CW indication or the passive Internet of Things indication may also be carried in the NAS message, indicating that an IP address is requested for the N5CW device or the passive Internet of Things device. Alternatively, the NAS message may also include an indication to request an IP address for a terminal that does not support NAS, indicating to request an IP address for a device that does not support NAS when accessing the 5GC through the PEGC.
可选的,NAS消息中还可以包括请求的IP地址的类型,如IPv4,IPv6,或IPv4v6。Optionally, the NAS message may also include the type of the requested IP address, such as IPv4, IPv6, or IPv4v6.
可选的,NAS消息中还可以包括PINE需要的会话参数,如数据网络名称(Data Network Name,DNN),单网络切片选择辅助信息(Single-Network Slice Selection Assistance Information,S-NSSAI),service ID,会话服务连续性模式(Session and Service Continuity mode,SSC mode)等。Optionally, the NAS message may also include session parameters required by PINE, such as Data Network Name (Data Network Name, DNN), Single-Network Slice Selection Assistance Information (S-NSSAI), service ID , Session and Service Continuity mode (Session and Service Continuity mode, SSC mode), etc.
示例性的,PEGC向AMF发送NAS消息,其中包括PDU会话建立请求消息。PDU会话建立请求消息可以指示为PINE请求IP地址。例如,PDU会话建立请求消息中包括上述参数中的至少一项,例如PEGC的标识、PINE的标识,PIN指示,请求的IP地址的类型,PINE需要的会话参数。可选的,PDU会话建立请求消息可以为PINE会话建立请求消息或非3GPP设备会话建立请求消息。PINE的标识本身也可以指示需要将PINE接入核心网。 Exemplarily, the PEGC sends a NAS message to the AMF, which includes a PDU session establishment request message. The PDU Session Establishment Request message may indicate that an IP address is requested for the PINE. For example, the PDU session establishment request message includes at least one of the above parameters, such as the identifier of the PEGC, the identifier of the PINE, the PIN indication, the type of the requested IP address, and the session parameters required by the PINE. Optionally, the PDU session establishment request message may be a PINE session establishment request message or a non-3GPP device session establishment request message. The identity of the PINE itself may also indicate that the PINE needs to be connected to the core network.
PEGC可以通过自身与AMF之间的NAS连接发送上述NAS消息。该AMF为服务于PEGC的AMF。The PEGC can send the above NAS message through the NAS connection between itself and the AMF. The AMF is an AMF serving PEGC.
步骤3.AMF向SMF发送N11消息,表示为PINE请求IP地址。Step 3. The AMF sends an N11 message to the SMF, indicating that the IP address is requested for the PINE.
N11消息中包括上述参数中的至少一项,例如PEGC的标识、PINE的标识,PIN指示,请求的IP地址的类型,PINE需要的会话参数。The N11 message includes at least one of the above parameters, such as the identifier of the PEGC, the identifier of the PINE, the PIN indication, the type of the requested IP address, and the session parameters required by the PINE.
可选的,N11消息中还包括一个指示,表示是否需要为PEGC分配IP地址。如果PEGC已经有IP地址,或者PEGC不与PINE共用该PDU会话,则不需要为PEGC分配IP地址。否则,则可能需要为PEGC分配IP地址。Optionally, the N11 message also includes an indication indicating whether an IP address needs to be allocated to the PEGC. If the PEGC already has an IP address, or if the PEGC does not share the PDU session with the PINE, there is no need to assign an IP address to the PEGC. Otherwise, it may be necessary to assign an IP address to the PEGC.
示例性的,AMF向SMF发送步骤2中收到的PDU会话建立请求消息。Exemplarily, the AMF sends the PDU session establishment request message received in step 2 to the SMF.
可选的,AMF根据SMF的能力选择SMF。例如,AMF选择可以支持为连接到PEGC的PINE分配IP地址能力的SMF。Optionally, the AMF selects the SMF according to the capability of the SMF. For example, the AMF selects an SMF that can support the ability to assign IP addresses to PINEs connected to the PEGC.
可选的,SMF上线的时候,可以执行以下流程:SMF向NRF发送网元注册请求,其中包括SMF的PIN能力指示信息,该PIN能力指示信息表示该SMF可以支持为连接到PEGC的PINE分配IP地址。AMF可以向NRF发送查询消息,查询具有PIN能力的SMF。AMF从NRF获取具有PIN能力的SMF。Optionally, when the SMF goes online, the following process can be performed: the SMF sends a network element registration request to the NRF, which includes the PIN capability indication information of the SMF, and the PIN capability indication information indicates that the SMF can support IP allocation for the PINE connected to the PEGC address. The AMF can send a query message to the NRF to query the SMF with PIN capability. AMF acquires PIN capable SMF from NRF.
该SMF可以为服务于PEGC的SMF,也可以不是服务于PEGC的SMF。The SMF may be the SMF serving the PEGC, or may not be the SMF serving the PEGC.
可选的,AMF根据步骤2中接收到的会话参数从服务于PEGC的SMF中选择该SMF。或者,AMF根据运营商的配置信息选择SMF。Optionally, the AMF selects the SMF from the SMFs serving the PEGC according to the session parameters received in step 2. Alternatively, the AMF selects the SMF according to the operator's configuration information.
步骤4.SMF从UDM获取PEGC的签约数据。Step 4. The SMF obtains the subscription data of the PEGC from the UDM.
SMF可以根据PEGC的签约数据,以及运营商配置确定允许该PINE设备可以从PEGC接入。例如,PEGC的签约数据存储有PINE的标识信息,则表示允许该PINE的标识所指示的PINE设备可以从PEGC接入。The SMF can determine that the PINE device is allowed to access from the PEGC according to the subscription data of the PEGC and the configuration of the operator. For example, if the subscription data of the PEGC stores the identification information of the PINE, it means that the PINE device indicated by the identification of the PINE is allowed to access from the PEGC.
例如,如果SMF已经存储有PEGC的签约数据,则该步骤可选。For example, if the SMF has already stored the subscription data of the PEGC, this step is optional.
步骤5.SMF向UPF发送N4会话建立请求消息,用以为PINE分配会话资源。Step 5. The SMF sends an N4 session establishment request message to the UPF to allocate session resources for the PINE.
N4会话建立请求消息中可以包括SMF为PINE分配的IP地址,PCC规 则。N4 The session establishment request message can include the IP address assigned by the SMF to PINE, and the IP address specified by the PCC but.
SMF可以为一个或多个PINE分配一个或多个IPv4地址,一个或多个IPv6地址,或者一个IPv6前缀和多个本地标识(local identifier),或者一个IPv6前缀。SMF can assign one or more IPv4 addresses, one or more IPv6 addresses, or one IPv6 prefix and multiple local identifiers, or one IPv6 prefix to one or more PINEs.
可选的,N4会话建立请求消息中还可以包括SMF为PEGC分配的IP地址。如果SMF分配了多个IP地址,则SMF需要保证这多个IP地址可以由同一个UPF服务。Optionally, the N4 session establishment request message may also include the IP address assigned by the SMF to the PEGC. If the SMF allocates multiple IP addresses, the SMF needs to ensure that the multiple IP addresses can be served by the same UPF.
可选的,还包括PIN指示。PIN指示用于表示UPF需要处理多个设备的业务流。Optionally, a PIN indication is also included. The PIN indication is used to indicate that the UPF needs to handle service flows of multiple devices.
PCC规则中的FAR指示多个IP地址的数据包都可以由此PDU会话转发。例如,FAR中下行包检测模板的目的IP地址包括SMF分配的多个IP地址。或者,FAR中上行包检测模板的源IP地址包括SMF分配的多个IP地址。The FAR in the PCC rule indicates that data packets with multiple IP addresses can be forwarded by this PDU session. For example, the destination IP address of the downlink packet detection template in the FAR includes multiple IP addresses allocated by the SMF. Alternatively, the source IP address of the upstream packet detection template in the FAR includes multiple IP addresses allocated by the SMF.
可选的,SMF选择一个具有为连接到PEGC的PINE服务能力的UPF。可选的,UPF向SMF上报自己的PIN能力,SMF根据获取到的UPF的能力信息选择具有PIN能力的UPF。Optionally, the SMF selects a UPF capable of serving the PINE connected to the PEGC. Optionally, the UPF reports its own PIN capability to the SMF, and the SMF selects a UPF with the PIN capability according to the acquired UPF capability information.
步骤6.UPF向SMF发送N4会话建立响应消息,用以指示N4会话已建立。Step 6. The UPF sends an N4 session establishment response message to the SMF to indicate that the N4 session has been established.
步骤5和6中的N4会话建立请求消息和响应消息可以换成N4会话修改请求消息和响应消息。通过上述步骤,SMF和UPF之间的N4会话已建立或已修改完毕。The N4 session establishment request message and response message in steps 5 and 6 can be replaced with N4 session modification request message and response message. Through the above steps, the N4 session between SMF and UPF has been established or modified.
步骤7.SMF向AMF发送N11消息的响应消息。指示PINE的IP地址已经成功分配,或指示已经为PINE分配网络资源。Step 7. The SMF sends a response message to the N11 message to the AMF. Indicates that the IP address of PINE has been allocated successfully, or indicates that network resources have been allocated for PINE.
N11消息的响应消息中可以包括SMF为PINE分配的IP地址。可选的,还可以包括为PEGC分配的IP地址。可选的,还可以包括PINE的标识信息、PEGC的标识信息中的至少一个。The response message of the N11 message may include the IP address assigned by the SMF to the PINE. Optionally, the IP address allocated for the PEGC may also be included. Optionally, at least one of identification information of PINE and identification information of PEGC may also be included.
示例性的,N11消息中包括PDU会话建立响应消息。PDU会话建立响应消息中包括上述参数。 Exemplarily, the N11 message includes a PDU session establishment response message. The above parameters are included in the PDU session establishment response message.
步骤8.AMF向PEGC发送NAS消息。Step 8. AMF sends NAS message to PEGC.
该NAS消息指示PINE的IP地址已经成功分配,或指示已经为PINE分配网络资源。可选的,该NAS消息中包括PEGC标识、PINE标识中的至少一项。示例性的,该NAS消息中包括PDU会话建立响应消息。The NAS message indicates that the IP address of the PINE has been allocated successfully, or indicates that the network resource has been allocated for the PINE. Optionally, the NAS message includes at least one of a PEGC identifier and a PINE identifier. Exemplarily, the NAS message includes a PDU session establishment response message.
步骤9.PEGC向PINE发送IP配置响应消息,其中携带为PINE分配的IP地址。Step 9. The PEGC sends an IP configuration response message to the PINE, which carries the IP address allocated for the PINE.
示例性的,IP配置响应消息为DHCP消息。Exemplarily, the IP configuration response message is a DHCP message.
为PINE分配IP地址有如下几种实施方式:There are several implementation methods for assigning IP addresses to PINE:
1)SMF为连接到PEGC的PINE分配了一个或多个IPv4地址,PEGC向每个PINE分配一个IPv4地址。该IPv4地址可以与SMF分配的IPv4地址相同,也可以是一个与SMF分配的IPv4地址相应的局域网IPv4地址。1) SMF assigns one or more IPv4 addresses to PINEs connected to PEGC, and PEGC assigns an IPv4 address to each PINE. The IPv4 address may be the same as the IPv4 address assigned by the SMF, or may be a local area network IPv4 address corresponding to the IPv4 address assigned by the SMF.
2)SMF为连接到PEGC的PINE分配了一个或多个IPv6地址,PEGC向每个PINE分配一个IPv6地址。该IPv6地址可以是SMF分配的IPv6地址相同,也可以是一个与SMF分配的IPv6地址相应的局域网IPv6地址。2) SMF assigns one or more IPv6 addresses to PINEs connected to PEGC, and PEGC assigns an IPv6 address to each PINE. The IPv6 address may be the same as the IPv6 address assigned by the SMF, or may be a local area network IPv6 address corresponding to the IPv6 address assigned by the SMF.
3)SMF为连接到PEGC的PINE分配了一个IPv6前缀和多个本地标识(local identifier),PEGC向每个PINE分配一个IPv6地址。该IPv6地址包括SMF分配IPv6前缀和一个local identifier,或者也可以包括与SMF分配的IPv6前缀和一个local identifier组成的IPv6地址相应的局域网IPv6地址。3) SMF assigns an IPv6 prefix and multiple local identifiers to PINEs connected to PEGC, and PEGC assigns an IPv6 address to each PINE. The IPv6 address includes the IPv6 prefix assigned by the SMF and a local identifier, or may also include a local area network IPv6 address corresponding to the IPv6 address composed of the IPv6 prefix assigned by the SMF and a local identifier.
4)SMF为连接到PEGC的PINE分配了一个IPv6前缀,PEGC向每个PINE分配一个IPv6地址。该IPv6地址包括PEGC确定的local identifier。该IPv6地址可以包括与SMF分配的IPv6前缀相同的IPv6前缀,或者也可以包括与SMF分配的IPv6前缀相应的局域网IPv6前缀。4) SMF assigns an IPv6 prefix to PINEs connected to PEGC, and PEGC assigns an IPv6 address to each PINE. This IPv6 address includes the local identifier determined by the PEGC. The IPv6 address may include the same IPv6 prefix as the IPv6 prefix assigned by the SMF, or may include a local area network IPv6 prefix corresponding to the IPv6 prefix assigned by the SMF.
值得注意的是,PEGC向不同PINE分配的IP地址可能是不同的,也可能是相同的。It is worth noting that the IP addresses assigned by PEGC to different PINEs may be different or the same.
步骤9可选。例如,当步骤9不执行的时候,可以认为PEGC存储为PINE分配的IP地址,或者PEGC存储SMF为PINE分配的IP地址和PEGC为PINE分配的相应的IP地址之间的关系。PEGC向PINE分配IP地址的过程也可以 在步骤1中执行。Step 9 is optional. For example, when step 9 is not executed, it can be considered that the PEGC stores the IP address allocated to the PINE, or the PEGC stores the relationship between the IP address allocated to the PINE by the SMF and the corresponding IP address allocated to the PINE by the PEGC. The process of PEGC assigning IP addresses to PINE can also Execute in step 1.
步骤10.SMF向PIN服务器发送PINE的标识信息和对应的IP地址。Step 10. The SMF sends the identification information of the PINE and the corresponding IP address to the PIN server.
步骤10可选。Step 10 is optional.
值得注意的是,本示例以PDU会话建立请求和响应为例,该消息还可以替换成PDU会话修改请求和响应。It should be noted that this example uses the PDU session establishment request and response as an example, and this message can also be replaced with a PDU session modification request and response.
作为一种可能的实施方式,PEGC还没有建立PDU会话,此时PEGC请求建立一个PDU会话,服务与PEGC和连接到PEGC的PINE。此时PEGC发送PDU会话建立请求消息,为PEGC和PINE请求IP地址。As a possible implementation manner, the PEGC has not yet established a PDU session, and at this time, the PEGC requests to establish a PDU session to serve the PEGC and the PINE connected to the PEGC. At this time, the PEGC sends a PDU session establishment request message to request IP addresses for the PEGC and the PINE.
作为另一种可能的实施方式,PEGC可能已经有自己的PDU会话,PEGC为连接到它的PINE请求建立一个单独的PDU会话。此时PEGC发送PDU会话建立请求消息,为PINE请求IP地址。As another possible implementation manner, the PEGC may already have its own PDU session, and the PEGC requests to establish a separate PDU session for the PINE connected to it. At this time, the PEGC sends a PDU session establishment request message to request an IP address for the PINE.
作为再一种可能的实施方式,PEGC已经建立一个PDU会话,并且该PDU会话也可以服务于PINE,或PEGC将该PDU会话服务与PINE。此时PEGC发送PDU会话修改请求消息,并发送该PDU会话的标识信息。PEGC指示该PDU会话修改请求是为PINE请求IP地址。作为一种示例,在本流程前,PEGC请求一个PDU会话建立。PEGC向AMF发送NAS消息,其中包括PDU会话建立请求,可选还包括PIN指示。PIN指示可指示PEGC具有PIN能力,即允许PINE连接到PEGC。PIN指示也可以由PEGC的标识表示。或者。AMF获取PEGC的签约数据,PEGC的签约数据中指示PEGC具有PIN能力,或者指示PEGC具有PIN的网关能力。AMF根据PIN指示或PEGC的PIN能力选择具有PIN能力的SMF。可选的,AMF在该PDU会话上下文中存储PIN指示。在本示例步骤3中,AMF根据NAS消息中的PDU会话标识选择服务于该PDU会话的SMF。As yet another possible implementation manner, the PEGC has established a PDU session, and the PDU session may also serve the PINE, or the PEGC may serve the PDU session with the PINE. At this time, the PEGC sends a PDU session modification request message, and sends the identification information of the PDU session. The PEGC indicates that the PDU session modification request is to request an IP address for the PINE. As an example, before this procedure, the PEGC requests a PDU session establishment. The PEGC sends a NAS message to the AMF, which includes a PDU session establishment request, and optionally includes a PIN indication. The PIN indication may indicate that the PEGC has PIN capability, ie allows the PINE to connect to the PEGC. The PIN indication can also be represented by the logo of the PEGC. or. The AMF acquires the subscription data of the PEGC, and the subscription data of the PEGC indicates that the PEGC has a PIN capability, or indicates that the PEGC has a PIN gateway capability. The AMF selects an SMF with PIN capability according to the PIN indication or the PIN capability of the PEGC. Optionally, the AMF stores the PIN indication in the PDU session context. In step 3 of this example, the AMF selects an SMF serving the PDU session according to the PDU session identifier in the NAS message.
作为再一种可能的实施方式,PEGC已经建立一个PDU会话,并且该PDU会话也可以服务于PINE,或PEGC将该PDU会话服务与PINE。此时PEGC发送PDU会话建立请求消息,并发送该PDU会话的标识信息。并且指示该PDU会话建立请求是为PINE请求IP地址。在步骤3中,AMF根据NAS消 息中的PDU会话标识选择服务于该PDU会话的SMF。As yet another possible implementation manner, the PEGC has established a PDU session, and the PDU session may also serve the PINE, or the PEGC may serve the PDU session with the PINE. At this time, the PEGC sends a PDU session establishment request message, and sends the identification information of the PDU session. And indicate that the PDU session establishment request is to request an IP address for PINE. In step 3, AMF according to NAS message The PDU session identifier in the message selects the SMF serving the PDU session.
值得说明的是,通过步骤0或1,PEGC可以获取一个或多个PINE的标识信息。在后续的流程中,PINE的标识信息可以包括一个或多个PINE的标识信息。SMF可以为一个或多个PINE分配IP地址。It is worth noting that, through step 0 or 1, PEGC can obtain the identification information of one or more PINEs. In the subsequent process, the PINE identification information may include identification information of one or more PINEs. SMF can assign IP addresses to one or more PINEs.
本示例中PEGC可以换成RG,PINE也可以换成其他非3GPP设备。In this example, PEGC can be replaced by RG, and PINE can also be replaced by other non-3GPP devices.
通过本示例,PEGC为连接到PEGC的PINE指示需要为PINE分配IP地址,PEGC可以新建PDU会话或者在已有的PDU会话中进行请求,从而AMF可以选择具有PIN能力的SMF,SMF可以选择具有PIN能力的UPF,且SMF在此PDU会话建立或修改流程中分配一个或多个IP地址,满足连接到PEGC的PINE的使用。Through this example, the PEGC indicates to the PINE connected to the PEGC that an IP address needs to be allocated for the PINE, and the PEGC can create a new PDU session or make a request in an existing PDU session, so that the AMF can choose an SMF with PIN capability, and the SMF can choose to have a PIN Capable UPF, and the SMF allocates one or more IP addresses in this PDU session establishment or modification process, which satisfies the use of PINE connected to the PEGC.
示例二,参见图4b:Example 2, see Figure 4b:
1.PINE向PEGC发送IP配置请求消息。1. PINE sends an IP configuration request message to PEGC.
步骤1可以参考示例一步骤1的描述。For step 1, refer to the description of step 1 in Example 1.
2.PEGC向AMF发送NAS消息,其中包括PDU会话建立请求消息。2. The PEGC sends a NAS message to the AMF, including a PDU session establishment request message.
可选的,NAS消息中携带PIN指示。PIN指示表示该PDU会话可以用于服务连接到该PEGC的PINE。或者表示为连接到PEGC的PINE分配IP地址。或者,NAS消息中包括指示为非3GPP设备请求IP地址的指示。或者,NAS消息中还可以携带N5CW指示,或者无源物联网指示,指示为N5CW设备或无源物联网设备请求IP地址。或者NAS消息中还可以包括为不支持NAS的终端请求IP地址的指示,指示为通过PEGC接入5GC时不支持NAS的设备请求IP地址。Optionally, the NAS message carries a PIN indication. The PIN indication indicates that this PDU session can be used to serve the PINE connected to this PEGC. Or it means assigning an IP address to the PINE connected to the PEGC. Alternatively, the NAS message includes an indication to request an IP address for the non-3GPP device. Alternatively, the N5CW indication or the passive Internet of Things indication may also be carried in the NAS message, indicating that an IP address is requested for the N5CW device or the passive Internet of Things device. Alternatively, the NAS message may also include an indication to request an IP address for a terminal that does not support NAS, indicating to request an IP address for a device that does not support NAS when accessing the 5GC through the PEGC.
3.AMF向SMF发送N11消息,其中包括PDU会话建立请求消息。3. The AMF sends an N11 message to the SMF, which includes a PDU session establishment request message.
可选的,AMF根据PEGC的签约数据,选择具有PIN能力的SMF。AMF如何选择具有PIN能力的SMF可以参考示例一步骤3中的描述。Optionally, the AMF selects an SMF with PIN capability according to the subscription data of the PEGC. How the AMF selects the SMF with the PIN capability can refer to the description in Step 3 of Example 1.
可选的,AMF也可以根据步骤2收到的PIN指示选择具有PIN能力的SMF。Optionally, the AMF may also select an SMF with PIN capability according to the PIN instruction received in step 2.
N11消息中包括PIN指示。 The PIN indication is included in the N11 message.
4.SMF从UDM获取PEGC的签约数据。4. The SMF obtains the subscription data of the PEGC from the UDM.
步骤4可以参考示例一步骤4的描述。For step 4, refer to the description of step 4 in Example 1.
5.SMF向UPF发送N4建立请求消息。5. The SMF sends an N4 Setup Request message to the UPF.
N4建立请求消息中包括SMF为PEGC分配的IP地址。The N4 establishment request message includes the IP address assigned by the SMF to the PEGC.
6.UPF向SMF发送N4建立响应消息。6. The UPF sends an N4 Setup Response message to the SMF.
其中可选的,SMF可以根据PIN指示为连接到PEGC的PINE分配一个或多个IP地址。SMF可以根据运营商配置或PEGC的签约确定分配的IP地址的数量和类型。如果SMF为PINE分配IP地址,则步骤5-6可以参考示例一步骤5-6的描述。Optionally, the SMF may assign one or more IP addresses to the PINE connected to the PEGC according to the PIN instruction. The SMF can determine the number and type of allocated IP addresses according to the operator's configuration or the PEGC's contract. If the SMF assigns an IP address to PINE, for step 5-6, reference may be made to the description of step 5-6 in Example 1.
7.SMF向AMF发送N11消息的响应消息,其中包括PDU会话建立响应消息。7. The SMF sends a response message of the N11 message to the AMF, which includes a PDU session establishment response message.
N11消息的响应消息中可以包括SMF为PEGC分配的IP地址。可选的,还包括PINE分配的一个或多个IP地址。The response message of the N11 message may include the IP address assigned by the SMF to the PEGC. Optionally, one or more IP addresses allocated by PINE are also included.
示例性的,N11消息中包括PDU会话建立响应消息。PDU会话建立响应消息中包括上述参数。Exemplarily, the N11 message includes a PDU session establishment response message. The above parameters are included in the PDU session establishment response message.
8.AMF向PEGC发送NAS消息,其中包括PDU会话建立响应消息。8. The AMF sends a NAS message to the PEGC, including a PDU session establishment response message.
9.PEGC向PINE发送IP配置响应消息,其中携带为PINE分配的IP地址。9. The PEGC sends an IP configuration response message to the PINE, which carries the IP address allocated for the PINE.
步骤9可以参考示例一步骤9的描述。For step 9, refer to the description of step 9 in Example 1.
值得说明的是,步骤1可以在步骤9之前发生,与其他步骤无先后顺序的限定。It is worth noting that step 1 may occur before step 9, and there is no sequence limitation with other steps.
通过本示例,PEGC可以在PDU会话建立请求的流程中指示需要为PINE分配IP地址,从而AMF选择具有PIN能力的SMF,SMF选择具有PIN能力的UPF,且SMF在此PDU会话建立流程中分配一个或多个IP地址,满足连接到PEGC的PINE的使用。值得说明的是,PEGC使用本流程为PINE请求IP地址的时候,PINE可能还未连接到PEGC。Through this example, PEGC can indicate that an IP address needs to be assigned to PINE during the process of PDU session establishment request, so that AMF selects SMF with PIN capability, SMF selects UPF with PIN capability, and SMF allocates an IP address in this PDU session establishment process. or multiple IP addresses, satisfying the use of PINE connected to PEGC. It is worth noting that when PEGC uses this process to request an IP address for PINE, PINE may not be connected to PEGC yet.
示例三,参见图4c: Example 3, see Figure 4c:
1.PINE与PEGC之间建立L2连接。1. An L2 connection is established between PINE and PEGC.
示例性的,PINE关联或连接上PEGC的WLAN。Exemplarily, the PINE is associated with or connected to the WLAN of the PEGC.
2.PEGC发起鉴权流程,以获取PINE的标识信息。2. PEGC initiates the authentication process to obtain the identification information of PINE.
步骤2可以参考示例一中步骤0的说明。For step 2, refer to the description of step 0 in Example 1.
3.PINE和5GC之间的鉴权流程。3. The authentication process between PINE and 5GC.
示例性地,PINE和5GC之间可以使用EAP流程进行鉴权。步骤3可选。Exemplarily, an EAP process may be used for authentication between PINE and 5GC. Step 3 is optional.
4.PEGC向AMF发送NAS消息,表示为PINE请求IP地址。4. The PEGC sends a NAS message to the AMF, indicating that it requests an IP address for the PINE.
步骤4可以参考示例一中步骤2的说明。For step 4, refer to the description of step 2 in Example 1.
5.AMF向SMF发送N11消息,表示为PINE请求IP地址。5. The AMF sends an N11 message to the SMF, indicating that the PINE requests an IP address.
步骤5可以参考示例一中步骤3的描述。For step 5, refer to the description of step 3 in Example 1.
6-7.SMF与UPF之间的N4会话建立过程。6-7. N4 session establishment process between SMF and UPF.
8-9.SMF通过AMF向PEGC发送为PINE分配的IP地址。8-9. SMF sends the IP address allocated for PINE to PEGC through AMF.
上述步骤6-9可以参考示例一中步骤5-8的描述。For the above steps 6-9, reference may be made to the description of steps 5-8 in Example 1.
10.PEGC为PINE配置IP地址的过程。10. The process of PEGC configuring an IP address for PINE.
步骤10可以参考示例一中步骤1和9的描述。For step 10, refer to the description of steps 1 and 9 in Example 1.
值得说明的是,步骤3也可以在步骤5之后发生。即SMF接收到步骤5的N11消息后,触发对PINE的鉴权流程。作为一种示例,SMF向AMF发送鉴权请求,请求为PINE鉴权。该鉴权请求消息中可以包括PINE的标识。可选的,还可以包括PEGC的标识。It is worth noting that step 3 can also occur after step 5. That is, after receiving the N11 message in step 5, the SMF triggers the authentication procedure for PINE. As an example, the SMF sends an authentication request to the AMF, and the request is PINE authentication. The authentication request message may include the identifier of PINE. Optionally, the logo of PEGC may also be included.
通过本示例,PEGC通过与PINE之间的L2连接建立或EAP消息获取PINE的标识信息,并通过自己的NAS连接为PINE请求分配IP地址。Through this example, the PEGC obtains the identification information of the PINE through the establishment of an L2 connection with the PINE or an EAP message, and requests to allocate an IP address for the PINE through its own NAS connection.
示例四,参见图4d:Example 4, see Figure 4d:
1.PINE与PEGC之间建立连接,并获得一个IP地址。1. Establish a connection between PINE and PEGC and obtain an IP address.
示例性的,PINE关联或连接上PEGC的WLAN,并从PEGC的WLAN中获得一个IP地址。PINE可以用DHCP请求或其他消息请求获取IP地址。本示例不做限定。Exemplarily, the PINE associates or connects to the WLAN of the PEGC, and obtains an IP address from the WLAN of the PEGC. PINE can request an IP address with a DHCP request or other message. This example is not limited.
可选的,PEGC可以先对PINE鉴权再为PINE分配一个IP地址。PEGC 使用什么信息对PINE鉴权本申请示例不做限制。Optionally, the PEGC may first authenticate the PINE and then assign an IP address to the PINE. PEGC What information is used for PINE authentication is not limited in this application example.
2.PINE与PEGC建立IP安全联结(IPsec Security Association,IPSec SA)。2. PINE establishes an IP security association (IPsec Security Association, IPSec SA) with PEGC.
示例性的,PINE与PEGC之间交互IKE initial消息。Exemplarily, IKE initial messages are exchanged between PINE and PEGC.
3.PINE向PEGC发送IKE_AUTH请求消息。3. PINE sends an IKE_AUTH request message to PEGC.
作为一种可能的实施方式,IKE_AUTH请求消息中包括PINE的标识信息。PINE的标识信息见示例一的描述。As a possible implementation manner, the IKE_AUTH request message includes the identification information of the PINE. For the identification information of PINE, refer to the description of Example 1.
作为另一种可能的实施方式,PINE向PEGC发送IKE_AUTH请求消息,其中不携带AUTH参数,表示需要使用EAP鉴权。PEGC向PINE发送IKE_AUTH响应消息,其中包括EAP请求消息。PINE向PEGC发送IKE_AUTH请求消息,其中包括EAP响应消息,包括PINE的标识信息。As another possible implementation manner, the PINE sends an IKE_AUTH request message to the PEGC, which does not carry the AUTH parameter, indicating that EAP authentication is required. PEGC sends IKE_AUTH response message to PINE, which includes EAP request message. The PINE sends an IKE_AUTH request message to the PEGC, which includes an EAP response message, including the identification information of the PINE.
4.PINE与5GC之间的鉴权流程。4. The authentication process between PINE and 5GC.
本步骤4可以参考示例三步骤3的描述。For step 4, refer to the description of step 3 in Example 3.
5.PEGC向AMF发送NAS消息,表示为PINE请求IP地址。5. The PEGC sends a NAS message to the AMF, indicating that it requests an IP address for the PINE.
步骤5可以参考示例一中步骤2的说明。For step 5, refer to the description of step 2 in Example 1.
6.AMF向SMF发送N11消息,表示为PINE请求IP地址。6. The AMF sends an N11 message to the SMF, indicating that the PINE requests an IP address.
步骤6可以参考示例一中步骤3的描述。For step 6, refer to the description of step 3 in Example 1.
7-8.SMF与UPF之间的N4会话建立过程。7-8. N4 session establishment process between SMF and UPF.
9-10.SMF通过AMF向PEGC发送为PINE分配的IP地址。9-10. SMF sends the IP address allocated for PINE to PEGC through AMF.
上述步骤7-10可以参考示例一中步骤5-8的描述。For the above steps 7-10, reference may be made to the description of steps 5-8 in Example 1.
11.PEGC向PINE发送IKEv2消息,其中携带为PINE分配的IP地址。11. The PEGC sends an IKEv2 message to PINE, which carries the IP address allocated for PINE.
PEGC为PINE分配IP地址的实施方式可以参考示例一步骤9的描述。For the implementation of PEGC assigning IP addresses to PINEs, reference may be made to the description of Step 9 in Example 1.
值得说明的是,步骤4也可以在步骤6之后发生。即SMF接收到步骤6的N11消息后,触发对PINE的鉴权流程。作为一种示例,SMF向AMF发送鉴权请求,请求为PINE鉴权。该鉴权请求消息中可以包括PINE的标识。可选的,还可以包括PEGC的标识。It is worth noting that step 4 can also occur after step 6. That is, after receiving the N11 message in step 6, the SMF triggers the authentication procedure for PINE. As an example, the SMF sends an authentication request to the AMF, and the request is PINE authentication. The authentication request message may include the identifier of PINE. Optionally, the logo of PEGC may also be included.
通过本示例,PEGC通过与PINE之间的IKEv2消息获取PINE的标识信息,并通过自己的NAS连接为PINE请求分配IP地址。 In this example, PEGC obtains the identification information of PINE through the IKEv2 message between PEGC and PINE, and requests to allocate an IP address for PINE through its own NAS connection.
通过上述步骤,PINE成功接入5GC。也可以认为PINE的会话通道建立完毕或网络成功为PINE分配了资源。Through the above steps, PINE successfully connected to 5GC. It can also be considered that the session channel of the PINE is established or the network has successfully allocated resources for the PINE.
本申请实施例提供的IP地址分配方法,执行主体可以为IP地址分配装置。本申请实施例中以IP地址分配装置执行IP地址分配方法为例,说明本申请实施例提供的IP地址分配装置。The IP address allocation method provided in the embodiment of the present application may be executed by an IP address allocation device. In the embodiment of the present application, the method for allocating the IP address performed by the IP address allocating device is taken as an example to describe the IP address allocating device provided in the embodiment of the present application.
参见图5,本申请实施例提供一种IP地址分配装置500,包括:Referring to FIG. 5, an embodiment of the present application provides an IP address allocation device 500, including:
第一发送模块501,用于第一终端向第一网元发送第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;The first sending module 501 is configured for the first terminal to send a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
第一接收模块502,用于所述第一终端接收来自所述第一网元的第一IP地址,所述第一IP地址是为所述第二终端分配的IP地址;A first receiving module 502, configured for the first terminal to receive a first IP address from the first network element, where the first IP address is an IP address assigned to the second terminal;
第二发送模块503,用于所述第一终端根据所述第一IP地址,向所述第二终端发送第二IP地址;The second sending module 503 is configured for the first terminal to send a second IP address to the second terminal according to the first IP address;
可选地,所述第一终端为3GPP设备,所述第二终端为非3GPP设备,所述第一终端与所述第二终端之间通过非3GPP技术建立连接。Optionally, the first terminal is a 3GPP device, the second terminal is a non-3GPP device, and the connection between the first terminal and the second terminal is established through a non-3GPP technology.
在一种可能的实施方式中,所述第一请求消息中携带以下一项或者多项:In a possible implementation manner, the first request message carries one or more of the following:
所述第一终端的标识;an identification of the first terminal;
个人物联网PIN指示;Personal IoT PIN indication;
非3GPP指示;Not indicated by 3GPP;
N5CW指示;N5CW instruction;
为不支持NAS的终端请求IP地址的指示;An indication to request an IP address for a terminal that does not support NAS;
无源物联网指示。Passive IoT indication.
在一种可能的实施方式中,所述第一发送模块,具体用于:In a possible implementation manner, the first sending module is specifically configured to:
所述第一终端通过与所述第一网元之间的非接入层NAS连接,向所述第一网元发送所述第一请求消息。The first terminal sends the first request message to the first network element through a non-access stratum NAS connection with the first network element.
在一种可能的实施方式中,所述第一请求消息中携带所述第二终端的标识信息,所述装置还包括:In a possible implementation manner, the first request message carries the identification information of the second terminal, and the apparatus further includes:
获取模块,用于所述第一终端获取所述第二终端的标识信息。 An acquiring module, configured for the first terminal to acquire the identification information of the second terminal.
在一种可能的实施方式中,所述获取模块,具体用于:In a possible implementation manner, the acquiring module is specifically configured to:
所述第一终端接收来自所述第二终端的第二请求消息,所述第二请求消息中携带所述第二终端的标识信息,所述第二请求消息用于请求为所述第二终端分配IP地址。The first terminal receives a second request message from the second terminal, the second request message carries identification information of the second terminal, and the second request message is used to request to be the second terminal Assign IP addresses.
在一种可能的实施方式中,所述第二IP地址与所述第一IP地址相同,或者所述第二IP地址与所述第一IP地址具有映射关系。In a possible implementation manner, the second IP address is the same as the first IP address, or the second IP address has a mapping relationship with the first IP address.
在一种可能的实施方式中,所述第一IP地址包括IPv6前缀和本地标识;In a possible implementation manner, the first IP address includes an IPv6 prefix and a local identifier;
或者,所述第一IP地址为IPv6前缀,所述第二IP地址包括所述第一IP地址和所述第一终端分配的本地标识。Alternatively, the first IP address is an IPv6 prefix, and the second IP address includes the first IP address and a local identifier assigned by the first terminal.
在一种可能的实施方式中,所述第一网元为移动性管理功能AMF或者会话管理功能SMF。In a possible implementation manner, the first network element is a mobility management function AMF or a session management function SMF.
在一种可能的实施方式中,所述第一请求消息包括以下任意一项:In a possible implementation manner, the first request message includes any of the following:
NAS消息;NAS message;
协议数据单元PDU会话请求建立请求消息;Protocol data unit PDU session request establishment request message;
PDU会话修改请求消息。PDU session modification request message.
在一种可能的实施方式中,所述第二终端的标识信息包括以下一项或者多项:In a possible implementation manner, the identification information of the second terminal includes one or more of the following:
所述第二终端的媒体接入控制MAC地址;The medium access control MAC address of the second terminal;
所述第二终端的设备标识;a device identifier of the second terminal;
所述第二终端的国际移动用户识别码IMSI;The International Mobile Subscriber Identity IMSI of the second terminal;
所述第二终端的用户永久标识符SUPI;the User Permanent Identifier SUPI of said second terminal;
所述第二终端的用户隐藏标识符SUCI;a user concealed identifier SUCI of said second terminal;
所述第二终端的通用公共用户标识GPSI。The general public user identity GPSI of the second terminal.
在一种可能的实施方式中,所述第一终端为个人物联网网关或者家庭网关。In a possible implementation manner, the first terminal is a personal Internet of Things gateway or a home gateway.
在一种可能的实施方式中,所述第二终端为非3GPP设备或者个人物联网设备。 In a possible implementation manner, the second terminal is a non-3GPP device or a personal Internet of Things device.
在一种可能的实施方式中,所述第一终端和所述第二终端之间的通过无线保真WiFi,蓝牙或者无源物联网(Passive IoT)建立连接。值得说明的是,当第一终端和第二终端通过无源物联网建立连接时,第二终端可以为3GPP设备或非3GPP设备,无源物联网技术也可以为3GPP接入技术或非3GPP接入技术。In a possible implementation manner, the connection between the first terminal and the second terminal is established through Wi-Fi, Bluetooth or Passive IoT. It is worth noting that when the first terminal and the second terminal establish a connection through the passive Internet of Things, the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
参见图6,本申请实施例提供一种IP地址分配装置600,包括:Referring to FIG. 6, an embodiment of the present application provides an IP address allocation device 600, including:
第二接收模块601,用于第一网元接收来自第一终端的第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;The second receiving module 601 is configured for the first network element to receive a first request message from the first terminal, where the first request message is used to request to assign an IP address to the second terminal;
第三发送模块602,用于所述第一网元向所述第一终端发送所述第一IP地址;A third sending module 602, configured for the first network element to send the first IP address to the first terminal;
可选地,所述第一终端为3GPP设备,所述第二终端为非3GPP设备,所述第一终端与所述第二终端之间通过非3GPP建立连接。Optionally, the first terminal is a 3GPP device, the second terminal is a non-3GPP device, and the connection between the first terminal and the second terminal is established through non-3GPP.
在一种可能的实施方式中,所述IP地址分配装置600,还包括:In a possible implementation manner, the IP address allocation device 600 further includes:
分配模块,用于在所述第一网元接收来自第一终端的第一请求消息之后,所述第一网元为所述第二终端分配第一IP地址;An allocation module, configured to allocate a first IP address to the second terminal by the first network element after the first network element receives the first request message from the first terminal;
在一种可能的实施方式中,所述第一请求消息中携带以下一项或者多项:In a possible implementation manner, the first request message carries one or more of the following:
所述第一终端的标识;an identification of the first terminal;
PIN指示;PIN instruction;
非3GPP指示;Not indicated by 3GPP;
N5CW指示;N5CW instruction;
为不支持NAS的终端请求IP地址的指示;An indication to request an IP address for a terminal that does not support NAS;
无源物联网指示。Passive IoT indication.
在一种可能的实施方式中,所述第二接收模块,具体用于:In a possible implementation manner, the second receiving module is specifically configured to:
所述第一网元通过与所述第一终端之间的NAS连接,接收来自所述第一网元的所述第一请求消息。The first network element receives the first request message from the first network element through the NAS connection with the first terminal.
在一种可能的实施方式中,所述第一请求消息中携带所述第二终端的标识信息。 In a possible implementation manner, the first request message carries identification information of the second terminal.
在一种可能的实施方式中,所述第一网元备为AMF,所述分配模块,具体用于:In a possible implementation manner, the first network element is prepared as an AMF, and the allocation module is specifically configured to:
所述第一网元向SMF发送第三请求消息,所述第三请求消息用于请求为所述第二终端分配IP地址;The first network element sends a third request message to the SMF, where the third request message is used to request to assign an IP address to the second terminal;
所述第一网元接收来自所述SMF的所述第一IP地址。The first network element receives the first IP address from the SMF.
在一种可能的实施方式中,所述第三请求消息中携带以下一项或者多项:In a possible implementation manner, the third request message carries one or more of the following:
所述第一终端的标识;an identification of the first terminal;
PIN指示;PIN instruction;
非3GPP指示;Not indicated by 3GPP;
N5CW指示;N5CW instruction;
为不支持NAS的终端请求IP地址的指示;An indication to request an IP address for a terminal that does not support NAS;
无源物联网指示。Passive IoT indication.
在一种可能的实施方式中,所述第一网元为以下任意一项:In a possible implementation manner, the first network element is any one of the following:
具有PIN能力的SMF;SMF with PIN capability;
具有为非3GPP设备分配IP地址的能力的SMF;SMF with the ability to assign IP addresses to non-3GPP devices;
服务于目标PDU会话的SMF,所述第一请求消息中携带所述目标PDU会话的标识。The SMF serving the target PDU session, the first request message carries the identifier of the target PDU session.
在一种可能的实施方式中,所述分配模块,具体用于:In a possible implementation manner, the allocation module is specifically used for:
所述第一网元根据所述第一终端的签约数据和/或运营商配置,为所述第二终端分配第一IP地址。The first network element allocates the first IP address to the second terminal according to the subscription data of the first terminal and/or operator configuration.
在一种可能的实施方式中,所述装置还包括:In a possible implementation manner, the device also includes:
第四发送模块,所述第一网元向用户面功能UPF发送所述第一IP地址和策略控制规则,所述策略控制规则用于指示所述第一IP地址由目标PDU会话转发。In a fourth sending module, the first network element sends the first IP address and a policy control rule to a user plane function UPF, where the policy control rule is used to indicate that the first IP address is forwarded by a target PDU session.
在一种可能的实施方式中,所述装置还包括:In a possible implementation manner, the device also includes:
第五发送模块,用于所述第一网元向AMF发送所述第一IP地址。A fifth sending module, configured for the first network element to send the first IP address to the AMF.
在一种可能的实施方式中,所述装置还包括: In a possible implementation manner, the device also includes:
鉴权模块,用于所述第一网元触发所述第二终端的鉴权流程;an authentication module, configured for the first network element to trigger an authentication process of the second terminal;
所述分配模块,具体用于:The allocation module is specifically used for:
在所述第二终端鉴权成功后,所述第一网元为所述第二终端分配第一IP地址。After the second terminal is successfully authenticated, the first network element allocates a first IP address to the second terminal.
在一种可能的实施方式中,所述第一请求消息包括以下任意一项:In a possible implementation manner, the first request message includes any of the following:
NAS消息;NAS message;
PDU会话请求建立请求消息;PDU session request establishment request message;
PDU会话修改请求消息。PDU session modification request message.
在一种可能的实施方式中,所述第二终端的标识信息包括以下一项或者多项:In a possible implementation manner, the identification information of the second terminal includes one or more of the following:
所述第二终端的MAC地址;the MAC address of the second terminal;
所述第二终端的设备标识;a device identifier of the second terminal;
所述第二终端的IMSI;the IMSI of the second terminal;
所述第二终端的SUPI;the SUPI of the second terminal;
所述第二终端的SUCI;the SUCI of the second terminal;
所述第二终端的GPSI。GPSI of the second terminal.
在一种可能的实施方式中,所述第一终端为个人物联网网关或者家庭网关。In a possible implementation manner, the first terminal is a personal Internet of Things gateway or a home gateway.
在一种可能的实施方式中,所述第二终端为个人物联网设备。In a possible implementation manner, the second terminal is a personal Internet of Things device.
在一种可能的实施方式中,所述第一终端和所述第二终端之间的通过WiFi,蓝牙或者Passive IoT建立连接。值得说明的是,当第一终端和第二终端通过无源物联网建立连接时,第二终端可以为3GPP设备或非3GPP设备,无源物联网技术也可以为3GPP接入技术或非3GPP接入技术。In a possible implementation manner, the connection between the first terminal and the second terminal is established through WiFi, Bluetooth or Passive IoT. It is worth noting that when the first terminal and the second terminal establish a connection through the passive Internet of Things, the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
本申请实施例中的IP地址分配装置可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存 储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。The IP address allocation apparatus in this embodiment of the present application may be an electronic device, such as an electronic device with an operating system, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or other devices other than the terminal. Exemplarily, the terminal may include but not limited to the types of terminal 11 listed above, and other devices may be servers, network attached storage Storage (Network Attached Storage, NAS), etc., which are not specifically limited in this embodiment of the present application.
本申请实施例提供的IP地址分配装置能够实现图2至图3的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。The IP address allocation device provided by the embodiment of the present application can realize each process realized by the method embodiments in FIG. 2 to FIG. 3 , and achieve the same technical effect. To avoid repetition, details are not repeated here.
可选的,如图7所示,本申请实施例还提供一种通信设备700,包括处理器701和存储器702,存储器702上存储有可在所述处理器701上运行的程序或指令,例如,该通信设备700为终端时,该程序或指令被处理器701执行时实现上述IP地址分配方法实施例的各个步骤,且能达到相同的技术效果。该通信设备700为网络侧设备时,该程序或指令被处理器701执行时实现上述IP地址分配方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 7 , this embodiment of the present application also provides a communication device 700, including a processor 701 and a memory 702, and the memory 702 stores programs or instructions that can run on the processor 701, for example , when the communication device 700 is a terminal, when the program or instruction is executed by the processor 701, each step of the above IP address allocation method embodiment can be realized, and the same technical effect can be achieved. When the communication device 700 is a network-side device, when the program or instruction is executed by the processor 701, each step of the above-mentioned IP address allocation method embodiment can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
本申请实施例还提供一种终端,包括处理器和通信接口,通信接口用于第一终端向第一网元发送第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;所述第一终端接收来自所述第一网元的第一IP地址,所述第一IP地址是所述第一网元为所述第二终端分配的IP地址;所述第一终端根据所述第一IP地址,向所述第二终端发送第二IP地址;其中,所述第一终端为3GPP设备,所述第二终端为非3GPP设备,所述第一终端与所述第二终端之间通过非3GPP技术建立连接。该终端实施例与上述终端侧方法实施例对应,上述方法实施例的各个实施过程和实现方式均可适用于该终端实施例中,且能达到相同的技术效果。The embodiment of the present application also provides a terminal, including a processor and a communication interface, the communication interface is used for the first terminal to send a first request message to the first network element, and the first request message is used to request to assign an IP address to the second terminal address; the first terminal receives a first IP address from the first network element, and the first IP address is an IP address assigned by the first network element to the second terminal; the first terminal Sending a second IP address to the second terminal according to the first IP address; wherein, the first terminal is a 3GPP device, the second terminal is a non-3GPP device, and the first terminal and the second terminal are connected to each other. The connection between the two terminals is established through a non-3GPP technology. This terminal embodiment corresponds to the above-mentioned terminal-side method embodiment, and each implementation process and implementation mode of the above-mentioned method embodiment can be applied to this terminal embodiment, and can achieve the same technical effect.
具体地,图8为实现本申请实施例的一种终端的硬件结构示意图。Specifically, FIG. 8 is a schematic diagram of a hardware structure of a terminal implementing an embodiment of the present application.
该终端800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809以及处理器810等中的至少部分部件。The terminal 800 includes but not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. At least some parts.
本领域技术人员可以理解,终端800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或 者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the terminal 800 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 810 through the power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions. The terminal structure shown in FIG. 8 does not constitute a limitation on the terminal, and the terminal may include more or fewer components than those shown in the figure, or Or combine certain components, or arrange different components, which will not be repeated here.
应理解的是,本申请实施例中,输入单元804可以包括图形处理单元(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板8061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板8061。用户输入单元807包括触控面板8071以及其他输入设备8072中的至少一种。触控面板8071,也称为触摸屏。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in the embodiment of the present application, the input unit 804 may include a graphics processing unit (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 is used in a video capture mode or an image capture mode by an image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072 . The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
本申请实施例中,射频单元801接收来自网络侧设备的下行数据后,可以传输给处理器810进行处理;另外,射频单元801可以向网络侧设备发送上行数据。通常,射频单元801包括但不限于天线、放大器、收发信机、耦合器、低噪声放大器、双工器等。In the embodiment of the present application, the radio frequency unit 801 may transmit the downlink data from the network side device to the processor 810 for processing after receiving the downlink data; in addition, the radio frequency unit 801 may send uplink data to the network side device. Generally, the radio frequency unit 801 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
存储器809可用于存储软件程序或指令以及各种数据。存储器809可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器809可以包括易失性存储器或非易失性存储器,或者,存储器809可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM, ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器809包括但不限于这些和任意其它适合类型的存储器。The memory 809 can be used to store software programs or instructions as well as various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc. Furthermore, memory 809 may include volatile memory or nonvolatile memory, or, memory 809 may include both volatile and nonvolatile memory. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
处理器810可包括一个或多个处理单元;可选的,处理器810集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .
射频单元801,用于第一终端向第一网元发送第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;A radio frequency unit 801, configured for the first terminal to send a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
射频单元801,用于所述第一终端接收来自所述第一网元的第一IP地址,所述第一IP地址是为所述第二终端分配的IP地址;A radio frequency unit 801, configured for the first terminal to receive a first IP address from the first network element, where the first IP address is an IP address allocated for the second terminal;
射频单元801,用于所述第一终端根据所述第一IP地址,向所述第二终端发送第二IP地址;a radio frequency unit 801, configured for the first terminal to send a second IP address to the second terminal according to the first IP address;
可选地,所述第一终端为3GPP设备,所述第二终端为非3GPP设备,所述第一终端与所述第二终端之间通过非3GPP技术建立连接。Optionally, the first terminal is a 3GPP device, the second terminal is a non-3GPP device, and the connection between the first terminal and the second terminal is established through a non-3GPP technology.
在一种可能的实施方式中,所述第一请求消息中携带以下一项或者多项:In a possible implementation manner, the first request message carries one or more of the following:
所述第一终端的标识;an identification of the first terminal;
个人物联网PIN指示;Personal IoT PIN indication;
非3GPP指示;Not indicated by 3GPP;
N5CW指示;N5CW instruction;
为不支持NAS的终端请求IP地址的指示;An indication to request an IP address for a terminal that does not support NAS;
无源物联网指示。Passive IoT indication.
在一种可能的实施方式中,所述射频单元801,具体用于:In a possible implementation manner, the radio frequency unit 801 is specifically configured to:
所述第一终端通过与所述第一网元之间的非接入层NAS连接,向所述第一网元发送所述第一请求消息。The first terminal sends the first request message to the first network element through a non-access stratum NAS connection with the first network element.
在一种可能的实施方式中,所述第一请求消息中携带所述第二终端的标识信息,所述射频单元801,用于所述第一终端获取所述第二终端的标识信 息。In a possible implementation manner, the first request message carries the identification information of the second terminal, and the radio frequency unit 801 is used for the first terminal to obtain the identification information of the second terminal interest.
在一种可能的实施方式中,所述射频单元801,具体用于:In a possible implementation manner, the radio frequency unit 801 is specifically configured to:
所述第一终端接收来自所述第二终端的第二请求消息,所述第二请求消息中携带所述第二终端的标识信息,所述第二请求消息用于请求为所述第二终端分配IP地址。The first terminal receives a second request message from the second terminal, the second request message carries identification information of the second terminal, and the second request message is used to request to be the second terminal Assign IP addresses.
在一种可能的实施方式中,,所述第二IP地址与所述第一IP地址相同,或者所述第二IP地址与所述第一IP地址具有映射关系。In a possible implementation manner, the second IP address is the same as the first IP address, or the second IP address has a mapping relationship with the first IP address.
在一种可能的实施方式中,所述第一IP地址包括IPv6前缀和本地标识;In a possible implementation manner, the first IP address includes an IPv6 prefix and a local identifier;
或者,所述第一IP地址为IPv6前缀,所述第二IP地址包括所述第一IP地址和所述第一终端分配的本地标识。Alternatively, the first IP address is an IPv6 prefix, and the second IP address includes the first IP address and a local identifier assigned by the first terminal.
在一种可能的实施方式中,所述第一网元为移动性管理功能AMF或者会话管理功能SMF。In a possible implementation manner, the first network element is a mobility management function AMF or a session management function SMF.
在一种可能的实施方式中,所述第一请求消息包括以下任意一项:In a possible implementation manner, the first request message includes any of the following:
NAS消息;NAS message;
协议数据单元PDU会话请求建立请求消息;Protocol data unit PDU session request establishment request message;
PDU会话修改请求消息。PDU session modification request message.
在一种可能的实施方式中,所述第二终端的标识信息包括以下一项或者多项:In a possible implementation manner, the identification information of the second terminal includes one or more of the following:
所述第二终端的媒体接入控制MAC地址;The medium access control MAC address of the second terminal;
所述第二终端的设备标识;a device identifier of the second terminal;
所述第二终端的国际移动用户识别码IMSI;The International Mobile Subscriber Identity IMSI of the second terminal;
所述第二终端的用户永久标识符SUPI;the User Permanent Identifier SUPI of said second terminal;
所述第二终端的用户隐藏标识符SUCI;a user concealed identifier SUCI of said second terminal;
所述第二终端的通用公共用户标识GPSI。The general public user identity GPSI of the second terminal.
在一种可能的实施方式中,所述第一终端为个人物联网网关或者家庭网关。In a possible implementation manner, the first terminal is a personal Internet of Things gateway or a home gateway.
在一种可能的实施方式中,所述第二终端为非3GPP设备或者个人物联 网设备。In a possible implementation manner, the second terminal is a non-3GPP device or a personal IoT network equipment.
在一种可能的实施方式中,所述第一终端和所述第二终端之间的通过无线保真WiFi,蓝牙或者无源物联网(Passive IoT)建立连接。值得说明的是,当第一终端和第二终端通过无源物联网建立连接时,第二终端可以为3GPP设备或非3GPP设备,无源物联网技术也可以为3GPP接入技术或非3GPP接入技术。In a possible implementation manner, the connection between the first terminal and the second terminal is established through Wi-Fi, Bluetooth or Passive IoT. It is worth noting that when the first terminal and the second terminal establish a connection through the passive Internet of Things, the second terminal can be a 3GPP device or a non-3GPP device, and the passive Internet of Things technology can also be a 3GPP access technology or a non-3GPP access technology. into technology.
本申请实施例还提供一种网络侧设备,包括处理器和通信接口,通信接口用于第一网元接收来自第一终端的第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;处理器用于所述第一网元为所述第二终端分配第一IP地址;通信接口用于所述第一网元向所述第一终端发送所述第一IP地址。该网络侧设备实施例与上述网络侧设备方法实施例对应,上述方法实施例的各个实施过程和实现方式均可适用于该网络侧设备实施例中,且能达到相同的技术效果。The embodiment of the present application also provides a network side device, including a processor and a communication interface, the communication interface is used for the first network element to receive the first request message from the first terminal, and the first request message is used to request the second The terminal assigns an IP address; the processor is used for the first network element to assign the first IP address to the second terminal; the communication interface is used for the first network element to send the first IP address to the first terminal. The network-side device embodiment corresponds to the above-mentioned network-side device method embodiment, and each implementation process and implementation mode of the above-mentioned method embodiment can be applied to this network-side device embodiment, and can achieve the same technical effect.
具体地,本申请实施例还提供了一种网络侧设备。如图9所示,该网络侧设备900包括:处理器901、网络接口902和存储器903。其中,网络接口902例如为通用公共无线接口(common public radio interface,CPRI)。Specifically, the embodiment of the present application also provides a network side device. As shown in FIG. 9 , the network side device 900 includes: a processor 901 , a network interface 902 and a memory 903 . Wherein, the network interface 902 is, for example, a common public radio interface (common public radio interface, CPRI).
具体地,本发明实施例的网络侧设备900还包括:存储在存储器903上并可在处理器901上运行的指令或程序,处理器901调用存储器903中的指令或程序执行图6所示各模块执行的方法,并达到相同的技术效果,为避免重复,故不在此赘述Specifically, the network-side device 900 in this embodiment of the present invention further includes: instructions or programs stored in the memory 903 and executable on the processor 901, and the processor 901 calls the instructions or programs in the memory 903 to execute the various programs shown in FIG. The method of module execution, and to achieve the same technical effect, in order to avoid repetition, it is not repeated here
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述IP地址分配方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned IP address allocation method embodiment is realized, and can achieve The same technical effects are not repeated here to avoid repetition.
其中,所述处理器为上述实施例中所述的终端中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the terminal described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所 述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述IP地址分配方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the The communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned IP address allocation method embodiment, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiment of the present application may also be called a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip.
本申请实施例另提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现上述IP地址分配方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a computer program/program product, the computer program/program product is stored in a storage medium, and the computer program/program product is executed by at least one processor to implement the implementation of the above IP address allocation method Each process of the example, and can achieve the same technical effect, in order to avoid repetition, will not repeat them here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (35)

  1. 一种互联网协议IP地址分配方法,包括:A method for assigning an Internet Protocol IP address, comprising:
    第一终端向第一网元发送第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;the first terminal sends a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
    所述第一终端接收来自所述第一网元的第一IP地址,所述第一IP地址是为所述第二终端分配的IP地址;receiving, by the first terminal, a first IP address from the first network element, where the first IP address is an IP address assigned to the second terminal;
    所述第一终端根据所述第一IP地址,向所述第二终端发送第二IP地址。The first terminal sends the second IP address to the second terminal according to the first IP address.
  2. 根据权利要求1所述的方法,其中,所述第一请求消息中携带以下一项或者多项:The method according to claim 1, wherein the first request message carries one or more of the following:
    所述第一终端的标识;an identification of the first terminal;
    个人物联网PIN指示;Personal IoT PIN indication;
    非第三代合作伙伴计划3GPP指示;Non-3rd Generation Partnership Project 3GPP Directive;
    在无线局域网无5G能力N5CW指示;There is no 5G capability N5CW indication in the wireless LAN;
    为不支持非接入层NAS的终端请求IP地址的指示;An indication of requesting an IP address for a terminal that does not support non-access stratum NAS;
    无源物联网指示。Passive IoT indication.
  3. 根据权利要求1所述的方法,其中,所述第一终端向第一网元发送第一请求消息,包括:The method according to claim 1, wherein the first terminal sending the first request message to the first network element includes:
    所述第一终端通过与所述第一网元之间的NAS连接,向所述第一网元发送所述第一请求消息。The first terminal sends the first request message to the first network element through the NAS connection with the first network element.
  4. 根据权利要求1所述的方法,其中,所述第一请求消息中携带所述第二终端的标识信息,所述方法还包括:The method according to claim 1, wherein the first request message carries the identification information of the second terminal, the method further comprising:
    所述第一终端获取所述第二终端的标识信息。The first terminal acquires the identification information of the second terminal.
  5. 根据权利要求4所述的方法,其中,所述第一终端获取所述第二终端的标识信息,包括:The method according to claim 4, wherein obtaining the identification information of the second terminal by the first terminal comprises:
    所述第一终端接收来自所述第二终端的第二请求消息,所述第二请求消息中携带所述第二终端的标识信息,所述第二请求消息用于请求为所述第二终端分配IP地址。 The first terminal receives a second request message from the second terminal, the second request message carries identification information of the second terminal, and the second request message is used to request to be the second terminal Assign IP addresses.
  6. 根据权利要求1所述的方法,其中,所述第二IP地址与所述第一IP地址相同,或者所述第二IP地址与所述第一IP地址具有映射关系。The method according to claim 1, wherein the second IP address is the same as the first IP address, or the second IP address has a mapping relationship with the first IP address.
  7. 根据权利要求6所述的方法,其中,The method of claim 6, wherein,
    所述第一IP地址包括IPv6前缀和本地标识;The first IP address includes an IPv6 prefix and a local identifier;
    或者,or,
    所述第一IP地址为IPv6前缀,所述第二IP地址包括所述第一IP地址和所述第一终端分配的本地标识。The first IP address is an IPv6 prefix, and the second IP address includes the first IP address and a local identifier assigned by the first terminal.
  8. 根据权利要求1所述的方法,其中,所述第一网元为移动性管理功能AMF或者会话管理功能SMF。The method according to claim 1, wherein the first network element is a mobility management function (AMF) or a session management function (SMF).
  9. 根据权利要求1所述的方法,其中,所述第一请求消息包括以下任意一项:The method according to claim 1, wherein the first request message includes any of the following:
    NAS消息;NAS message;
    协议数据单元PDU会话请求建立请求消息;Protocol data unit PDU session request establishment request message;
    PDU会话修改请求消息。PDU session modification request message.
  10. 根据权利要求4所述的方法,其中,所述第二终端的标识信息包括以下一项或者多项:The method according to claim 4, wherein the identification information of the second terminal includes one or more of the following:
    所述第二终端的媒体接入控制MAC地址;The medium access control MAC address of the second terminal;
    所述第二终端的设备标识;a device identifier of the second terminal;
    所述第二终端的国际移动用户识别码IMSI;The International Mobile Subscriber Identity IMSI of the second terminal;
    所述第二终端的用户永久标识符SUPI;the User Permanent Identifier SUPI of said second terminal;
    所述第二终端的用户隐藏标识符SUCI;a user concealed identifier SUCI of said second terminal;
    所述第二终端的通用公共用户标识GPSI。The general public user identity GPSI of the second terminal.
  11. 根据权利要求1所述的方法,其中,所述第一终端为个人物联网网关或者家庭网关。The method according to claim 1, wherein the first terminal is a personal Internet of Things gateway or a home gateway.
  12. 根据权利要求1所述的方法,其中,所述第二终端为非3GPP设备或者个人物联网设备。The method according to claim 1, wherein the second terminal is a non-3GPP device or a personal internet of things device.
  13. 根据权利要求1所述的方法,其中,所述第一终端和所述第二终端 之间的通过无线保真WiFi、蓝牙或者无源物联网Passive IoT技术建立连接。The method according to claim 1, wherein the first terminal and the second terminal The connection between them is established through wireless fidelity WiFi, Bluetooth or Passive IoT technology.
  14. 一种IP地址分配方法,包括:A method for assigning an IP address, comprising:
    第一网元接收来自第一终端的第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;receiving, by the first network element, a first request message from the first terminal, where the first request message is used to request allocation of an IP address for the second terminal;
    所述第一网元向所述第一终端发送第一IP地址。The first network element sends the first IP address to the first terminal.
  15. 根据权利要求14所述的方法,其中,在所述第一网元接收来自第一终端的第一请求消息之后,所述方法还包括:The method according to claim 14, wherein, after the first network element receives the first request message from the first terminal, the method further comprises:
    所述第一网元为所述第二终端分配第一IP地址。The first network element allocates a first IP address to the second terminal.
  16. 根据权利要求14所述的方法,其中,所述第一请求消息中携带以下一项或者多项:The method according to claim 14, wherein the first request message carries one or more of the following:
    所述第一终端的标识;an identification of the first terminal;
    PIN指示;PIN instruction;
    非3GPP指示;Not indicated by 3GPP;
    N5CW指示;N5CW instruction;
    为不支持NAS的终端请求IP地址的指示;An indication to request an IP address for a terminal that does not support NAS;
    无源物联网指示。Passive IoT indication.
  17. 根据权利要求14所述的方法,其中,所述第一网元接收来自第一终端的第一请求消息,包括:The method according to claim 14, wherein the first network element receiving the first request message from the first terminal comprises:
    所述第一网元通过与所述第一终端之间的NAS连接,接收来自所述第一网元的所述第一请求消息。The first network element receives the first request message from the first network element through the NAS connection with the first terminal.
  18. 根据权利要求14所述的方法,其中,所述第一请求消息中携带所述第二终端的标识信息。The method according to claim 14, wherein the first request message carries identification information of the second terminal.
  19. 根据权利要求15所述的方法,其中,所述第一网元备为AMF,所述第一网元为所述第二终端分配第一IP地址,包括:The method according to claim 15, wherein the first network element is an AMF, and the first network element allocates a first IP address to the second terminal, comprising:
    所述第一网元向SMF发送第三请求消息,所述第三请求消息用于请求为所述第二终端分配IP地址;The first network element sends a third request message to the SMF, where the third request message is used to request to assign an IP address to the second terminal;
    所述第一网元接收来自所述SMF的所述第一IP地址。 The first network element receives the first IP address from the SMF.
  20. 根据权利要求19所述的方法,其中,所述第三请求消息中携带以下一项或者多项:The method according to claim 19, wherein the third request message carries one or more of the following:
    所述第一终端的标识;an identification of the first terminal;
    PIN指示;PIN instruction;
    非3GPP指示;Not indicated by 3GPP;
    N5CW指示;N5CW instruction;
    为不支持NAS的终端请求IP地址的指示;An indication to request an IP address for a terminal that does not support NAS;
    无源物联网指示。Passive IoT indication.
  21. 根据权利要求15所述的方法,其中,所述第一网元为以下任意一项:The method according to claim 15, wherein the first network element is any one of the following:
    具有PIN能力的SMF;SMF with PIN capability;
    具有为非3GPP设备分配IP地址的能力的SMF;SMF with the ability to assign IP addresses to non-3GPP devices;
    服务于目标PDU会话的SMF,所述第一请求消息中携带所述目标PDU会话的标识。The SMF serving the target PDU session, the first request message carries the identifier of the target PDU session.
  22. 根据权利要求21所述的方法,其中,所述第一网元为所述第二终端分配第一IP地址,包括:The method according to claim 21, wherein the first network element assigning the first IP address to the second terminal comprises:
    所述第一网元根据所述第一终端的签约数据和/或运营商配置,为所述第二终端分配第一IP地址。The first network element allocates the first IP address to the second terminal according to the subscription data of the first terminal and/or operator configuration.
  23. 根据权利要求21所述的方法,其中,所述方法还包括:The method according to claim 21, wherein said method further comprises:
    所述第一网元向用户面功能UPF发送所述第一IP地址和策略控制规则,所述策略控制规则用于指示所述第一IP地址由目标PDU会话转发。The first network element sends the first IP address and a policy control rule to a user plane function UPF, where the policy control rule is used to indicate that the first IP address is forwarded by a target PDU session.
  24. 根据权利要求21所述的方法,其中,所述方法还包括:The method according to claim 21, wherein said method further comprises:
    所述第一网元向AMF发送所述第一IP地址。The first network element sends the first IP address to the AMF.
  25. 根据权利要求21所述的方法,其中,所述方法还包括:The method according to claim 21, wherein said method further comprises:
    所述第一网元触发所述第二终端的鉴权流程;The first network element triggers an authentication process of the second terminal;
    所述第一网元为所述第二终端分配第一IP地址,包括:The first network element assigning the first IP address to the second terminal includes:
    在所述第二终端鉴权成功后,所述第一网元为所述第二终端分配第一IP地址。 After the second terminal is successfully authenticated, the first network element allocates a first IP address to the second terminal.
  26. 根据权利要求14所述的方法,其中,所述第一请求消息包括以下任意一项:The method according to claim 14, wherein the first request message includes any of the following:
    NAS消息;NAS message;
    PDU会话请求建立请求消息;PDU session request establishment request message;
    PDU会话修改请求消息。PDU session modification request message.
  27. 根据权利要求18所述的方法,其中,所述第二终端的标识信息包括以下一项或者多项:The method according to claim 18, wherein the identification information of the second terminal includes one or more of the following:
    所述第二终端的MAC地址;the MAC address of the second terminal;
    所述第二终端的设备标识;a device identifier of the second terminal;
    所述第二终端的IMSI;the IMSI of the second terminal;
    所述第二终端的SUPI;the SUPI of the second terminal;
    所述第二终端的SUCI;the SUCI of the second terminal;
    所述第二终端的GPSI。GPSI of the second terminal.
  28. 根据权利要求14所述的方法,其中,所述第一终端为个人物联网网关或者家庭网关。The method according to claim 14, wherein the first terminal is a personal IoT gateway or a home gateway.
  29. 根据权利要求14所述的方法,其中,所述第二终端为非3GPP设备或者个人物联网设备。The method according to claim 14, wherein the second terminal is a non-3GPP device or a personal internet of things device.
  30. 根据权利要求14所述的方法,其中,所述第一终端和所述第二终端之间的通过WiFi、蓝牙或者Passive IoT技术建立连接。The method according to claim 14, wherein the connection between the first terminal and the second terminal is established through WiFi, Bluetooth or Passive IoT technology.
  31. 一种IP地址分配装置,包括:A device for assigning an IP address, comprising:
    第一发送模块,用于第一终端向第一网元发送第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;A first sending module, configured for the first terminal to send a first request message to the first network element, where the first request message is used to request to assign an IP address to the second terminal;
    第一接收模块,用于所述第一终端接收来自所述第一网元的第一IP地址,所述第一IP地址是为所述第二终端分配的IP地址;A first receiving module, configured for the first terminal to receive a first IP address from the first network element, where the first IP address is an IP address assigned to the second terminal;
    第二发送模块,用于所述第一终端根据所述第一IP地址,向所述第二终端发送第二IP地址。The second sending module is configured for the first terminal to send a second IP address to the second terminal according to the first IP address.
  32. 一种IP地址分配装置,包括: A device for assigning an IP address, comprising:
    第二接收模块,用于第一网元接收来自第一终端的第一请求消息,所述第一请求消息用于请求为第二终端分配IP地址;A second receiving module, configured for the first network element to receive a first request message from the first terminal, where the first request message is used to request to assign an IP address to the second terminal;
    第三发送模块,用于所述第一网元向所述第一终端发送第一IP地址。A third sending module, configured for the first network element to send the first IP address to the first terminal.
  33. 一种终端,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至13任一项所述的IP地址分配方法的步骤。A terminal, including a processor and a memory, the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, the process described in any one of claims 1 to 13 is implemented. The steps of the IP address allocation method described above.
  34. 一种网络侧设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求14至29任一项所述的IP地址分配方法的步骤。A network side device, comprising a processor and a memory, the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, any one of claims 14 to 29 can be implemented. The steps of the IP address allocation method described in item.
  35. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至13任一项所述的IP地址分配方法,或者实现如权利要求14至30任一项所述的IP地址分配方法的步骤。 A readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the method for assigning an IP address as claimed in any one of claims 1 to 13 is realized, or the method as described in The steps of the IP address allocation method described in any one of claims 14 to 30.
PCT/CN2023/073273 2022-01-27 2023-01-20 Ip address assignment method, device, and readable storage medium WO2023143412A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210102833.3A CN116566949A (en) 2022-01-27 2022-01-27 IP address allocation method, device and readable storage medium
CN202210102833.3 2022-01-27

Publications (1)

Publication Number Publication Date
WO2023143412A1 true WO2023143412A1 (en) 2023-08-03

Family

ID=87470813

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/073273 WO2023143412A1 (en) 2022-01-27 2023-01-20 Ip address assignment method, device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN116566949A (en)
WO (1) WO2023143412A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660683A (en) * 2015-01-27 2015-05-27 广州视源电子科技股份有限公司 Data transmission control method, device and system
US20190289664A1 (en) * 2018-03-13 2019-09-19 Samsung Electronics Co., Ltd. Method and device for performing communication
WO2021134754A1 (en) * 2020-01-02 2021-07-08 Oppo广东移动通信有限公司 Method and apparatus for establishing terminal connection
CN113783976A (en) * 2021-09-24 2021-12-10 阿里巴巴达摩院(杭州)科技有限公司 Address allocation method, and address allocation method and device of live broadcast terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660683A (en) * 2015-01-27 2015-05-27 广州视源电子科技股份有限公司 Data transmission control method, device and system
US20190289664A1 (en) * 2018-03-13 2019-09-19 Samsung Electronics Co., Ltd. Method and device for performing communication
WO2021134754A1 (en) * 2020-01-02 2021-07-08 Oppo广东移动通信有限公司 Method and apparatus for establishing terminal connection
CN113783976A (en) * 2021-09-24 2021-12-10 阿里巴巴达摩院(杭州)科技有限公司 Address allocation method, and address allocation method and device of live broadcast terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MOTOROLA MOBILITY, LENOVO: "N5CW device registration and IP assignment", 3GPP DRAFT; C1-203460, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. CT WG1, no. Electronic meeting; 20200602 - 20200610, 26 May 2020 (2020-05-26), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP051891019 *

Also Published As

Publication number Publication date
CN116566949A (en) 2023-08-08

Similar Documents

Publication Publication Date Title
EP3668054B1 (en) Data transmission method, device and system
JP6770189B2 (en) Connectivity to the core network via the access network
WO2019128671A1 (en) Session establishment method, device and system
US20230319556A1 (en) Key obtaining method and communication apparatus
US20130114463A1 (en) System and Method for Domain Name Resolution for Fast Link Setup
WO2022233265A1 (en) Network access method and apparatus
US10880748B1 (en) Open access in neutral host network environments
WO2011116713A2 (en) Method, device and system for machine type communication (mtc) terminal communicating with network through gateway
WO2021063298A1 (en) Method for implementing external authentication, communication device and communication system
WO2023046457A1 (en) Restricting onboard traffic
US20220312188A1 (en) Network operations to receive user consent for edge computing
WO2023143412A1 (en) Ip address assignment method, device, and readable storage medium
US20190200226A1 (en) Method of authenticating access to a wireless communication network and corresponding apparatus
WO2023143411A1 (en) Device authentication methods, apparatus and communication device
RU2760872C1 (en) Local network service control method and communication device
EP3310078B1 (en) Communication method, small cell base station, small cell base station controller, terminal and system
WO2022027505A1 (en) User equipment authentication and authorization procedure for edge data network
WO2024017167A1 (en) Rule processing method, communication device, and network side device
WO2023143423A1 (en) Information acquisition, storage and reporting method and device, terminal, and network function
WO2024022182A1 (en) Information query method and apparatus, terminal, and network side device
WO2024017181A1 (en) Device authorization method and apparatus, and network-side device
WO2024037515A1 (en) Message transmitting method, communication device, and storage medium
WO2023179595A1 (en) Session channel establishment method and apparatus for non-3gpp device, and device
WO2024061205A1 (en) Parameter acquisition method and apparatus, first network function, and second network function
WO2023143554A1 (en) Pin establishment method and device

Legal Events

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

Ref document number: 23746291

Country of ref document: EP

Kind code of ref document: A1