Address allocation method and device

CN119586110APending Publication Date: 2025-03-07GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280098521.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-10-24
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively allocate addresses to devices that cannot directly access the 5G core network. Especially when IoT devices access the network through relay devices or mobile phones, the 5G system is unable to realize the access of the device, affecting service quality. and management efficiency.

Method used

Provides an address allocation method that dynamically allocates addresses to terminal devices by receiving an address set from a first device or determining an address set from a network device or a server device, thereby avoiding static allocation of frame routing information and frequent session reconstruction, and realizing address allocation. Flexible allocation and management.

Benefits of technology

It realizes address allocation to terminal devices, reduces the impact on service quality, improves device access efficiency and management flexibility, and is suitable for a variety of communication systems and scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119586110A_ABST
    Figure CN119586110A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an address allocation method and device, and the method comprises the steps: a first device receives an address set, and the address set is used for allocating an address for a first terminal device associated with the first device. According to the embodiment of the invention, the address can be allocated to the equipment accessing the communication network.
Need to check novelty before this filing date? Find Prior Art

Description

Address allocation method and device Technical Field

[0001] The present application relates to the field of communications, and more particularly, to an address allocation method and device. Background Art

[0002] When a terminal accesses the network, it sometimes does so through other terminals. For example, a device that cannot directly access the 5G Core (5GC) network may access the 5GC through a 3rd Generation Partnership Project (3GPP) User Equipment (UE). In this scenario, assigning an address to this device is a technical issue that needs to be addressed.

[0003] Summary of the Invention

[0004] The embodiments of the present application provide an address allocation method and device, which can allocate addresses to devices accessing a communication network.

[0005] This embodiment of the present application provides an address allocation method, including:

[0006] The first device receives an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0007] This embodiment of the present application provides an address allocation method, including:

[0008] The first network device determines an address set, which is used to allocate an address to a first terminal device associated with the first device.

[0009] This embodiment of the present application provides an address allocation method, including:

[0010] The server device receives a second address request from the first device;

[0011] The server device allocates an address to the first terminal device associated with the first device according to the second address request.

[0012] This embodiment of the present application provides an address allocation method, including:

[0013] The third network device determines an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0014] An embodiment of the present application provides a first device, including:

[0015] The first receiving module is used to receive an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0016] An embodiment of the present application provides a first network device, including:

[0017] The first determining module is used to determine an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0018] An embodiment of the present application provides a server device, including:

[0019] a third receiving module, configured to receive a second address request from the first device;

[0020] The allocation module is configured to allocate an address to a first terminal device associated with the first device according to the second address request.

[0021] This embodiment of the present application provides a third network device, including:

[0022] The second determining module is used to determine an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0023] An embodiment of the present application provides a communication device, including: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, and execute any address allocation method as described in the embodiments of the present application.

[0024] An embodiment of the present application provides a chip, including: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes any address allocation method of the embodiments of the present application.

[0025] An embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute any address allocation method according to the embodiment of the present application.

[0026] An embodiment of the present application provides a computer program product, including computer program instructions, which enable a computer to execute any address allocation method as described in the embodiments of the present application.

[0027] An embodiment of the present application provides a computer program, which enables a computer to execute any address allocation method as described in the embodiments of the present application.

[0028] In an embodiment of the present application, an address is allocated to a first terminal device associated with the first device by the first device receiving an address set for allocating an address to the first terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] FIG1 is a schematic diagram of application scenario 1 of an embodiment of the present application.

[0030] FIG2 is a schematic diagram of application scenario 2 of an embodiment of the present application.

[0031] 3A-3C are schematic diagrams showing three communication modes between PINEs.

[0032] FIG4 is a schematic diagram of a frame routing address configuration method.

[0033] FIG5 is a schematic flowchart of an address allocation method 500 according to an embodiment of the present application.

[0034] FIG6 is a schematic flowchart of a first address allocation method 600 according to an embodiment of the present application.

[0035] FIG7 is a schematic flowchart of a second address allocation method 700 according to an embodiment of the present application.

[0036] FIG8 is a schematic flowchart of a third address allocation method 800 according to an embodiment of the present application.

[0037] FIG9 is an implementation flowchart according to the first embodiment of the present application.

[0038] FIG10 is a flowchart of an implementation according to the second embodiment of the present application.

[0039] FIG11 is a flowchart of an implementation according to the third embodiment of the present application.

[0040] FIG12 is an implementation flowchart according to the fourth embodiment of the present application.

[0041] FIG13 is a schematic flowchart of an address allocation method 1300 according to an embodiment of the present application.

[0042] FIG14 is a schematic flowchart of an address allocation method 1400 according to an embodiment of the present application.

[0043] FIG15 is a schematic flowchart of an address allocation method 1500 according to an embodiment of the present application.

[0044] FIG16 is a schematic structural diagram of a first device 1600 according to an embodiment of the present application.

[0045] FIG17 is a schematic structural diagram of a first device 1700 according to an embodiment of the present application.

[0046] FIG18 is a schematic structural diagram of a first network device 1800 according to an embodiment of the present application.

[0047] FIG19 is a schematic structural diagram of a first network device 1900 according to an embodiment of the present application.

[0048] FIG20 is a schematic structural diagram of a server device 2000 according to an embodiment of the present application.

[0049] FIG21 is a schematic structural diagram of a server device 2100 according to an embodiment of the present application.

[0050] Figure 22 is a schematic structural diagram of a third network device 2200 according to an embodiment of the present application.

[0051] FIG23 is a schematic structural diagram of a third network device 2300 according to an embodiment of the present application.

[0052] FIG24 is a schematic structural diagram of a communication device 2400 according to an embodiment of the present application.

[0053] FIG25 is a schematic structural diagram of a chip 2500 according to an embodiment of the present application. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0055] It should be noted that the terms "first," "second," and the like in the description and claims of the embodiments of this application and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. The objects described by the terms "first" and "second" may be the same or different.

[0056] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, Advanced long term evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-U) system, NR on unlicensed spectrum (NR-U) system, Non-Terrestrial Networks (NTN) system, Universal Mobile Telecommunication System (UMTS), Wireless Local Area Networks (WLAN), Wireless Fidelity (Wireless Fidelity) system. Fidelity, WiFi), fifth-generation communication (5th-Generation, 5G) system or other communication systems, etc.

[0057] Generally speaking, traditional communication systems support a limited number of connections and are easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but will also support, for example, device-to-device (D2D) communication, machine-to-machine (M2M) communication, machine-type communication (MTC), vehicle-to-vehicle (V2V) communication, or vehicle-to-everything (V2X) communication, etc. The embodiments of the present application can also be applied to these communication systems.

[0058] In one embodiment, the communication system in the embodiment of the present application can be applied to a carrier aggregation (CA) scenario, a dual connectivity (DC) scenario, and a standalone (SA) networking scenario.

[0059] In one embodiment, the communication system in the embodiment of the present application can be applied to an unlicensed spectrum, wherein the unlicensed spectrum can also be considered as a shared spectrum; or, the communication system in the embodiment of the present application can also be applied to an authorized spectrum, wherein the authorized spectrum can also be considered as an unshared spectrum.

[0060] The embodiments of the present application describe various embodiments in conjunction with network devices and terminal devices, wherein the terminal device may also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.

[0061] The terminal device can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a next-generation communication system such as an NR network, or a terminal device in a future evolved Public Land Mobile Network (PLMN) network, etc.

[0062] In an embodiment of the present application, the terminal device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.).

[0063] In an embodiment of the present application, the terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.

[0064] As an example and not a limitation, in the embodiment of the present application, the terminal device may also be a wearable device. Wearable devices may also be called wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0065] In an embodiment of the present application, the network device may be a device for communicating with a mobile device. The network device may be an access point (AP) in WLAN, a base station (BTS) in GSM or CDMA, a base station (NodeB, NB) in WCDMA, an evolved base station (eNB or eNodeB) in LTE, or a relay station or access point, or a vehicle-mounted device, a wearable device, and a network device (gNB) in an NR network, or a network device in a future evolved PLMN network or a network device in an NTN network, etc.

[0066] As an example and not a limitation, in an embodiment of the present application, the network device may have a mobile feature, for example, the network device may be a mobile device. Alternatively, the network device may be a satellite or a balloon station. For example, the satellite may be a low earth orbit (LEO) satellite, a medium earth orbit (MEO) satellite, a geostationary earth orbit (GEO) satellite, a high elliptical orbit (HEO) satellite, etc. Optionally, the network device may also be a base station set up in a location such as land or water.

[0067] In an embodiment of the present application, the network device can provide services for a cell, and the terminal device communicates with the network device through the transmission resources used by the cell (for example, frequency domain resources, or spectrum resources). The cell can be a cell corresponding to the network device (for example, a base station). The cell can belong to a macro base station or a base station corresponding to a small cell. The small cells here may include: metro cells, micro cells, pico cells, femto cells, etc. These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.

[0068] FIG1 exemplarily illustrates a communication system 100. The communication system includes a network device 110 and two terminal devices 120. In one embodiment, the communication system 100 may include multiple network devices 110, and each network device 110 may include a different number of terminal devices 120 within its coverage area, which is not limited in this embodiment of the present application.

[0069] In one embodiment, the communication system 100 may further include other network entities such as a Mobility Management Entity (MME) and an Access and Mobility Management Function (AMF), which is not limited in this embodiment of the present application.

[0070] Among them, the network equipment may include access network equipment and core network equipment. That is, the wireless communication system also includes multiple core networks for communicating with the access network equipment. The access network equipment can be an evolutionary base station (evolutional node B, abbreviated as eNB or e-NodeB) macro base station, micro base station (also called "small base station"), pico base station, access point (AP), transmission point (TP) or new generation base station (new generation Node B, gNodeB), etc. in a long-term evolution (LTE) system, a next-generation (mobile communication system) (next radio, NR) system or an authorized auxiliary access long-term evolution (LAA-LTE) system.

[0071] It should be understood that in the embodiments of the present application, a device having a communication function in a network / system may be referred to as a communication device. Taking the communication system shown in Figure 1 as an example, the communication device may include a network device and a terminal device having a communication function. The network device and the terminal device may be specific devices in the embodiments of the present application and will not be described in detail here. The communication device may also include other devices in the communication system, such as a network controller, a mobility management entity, and other network entities, which are not limited in the embodiments of the present application.

[0072] It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and / or" is simply a description of an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the related objects are in an "or" relationship.

[0073] It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association. For example, "A indicates B" can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B.

[0074] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between the two, or an association relationship between the two, or a relationship between indication and being indicated, configuration and being configured, etc.

[0075] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following relevant technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.

[0076] When terminals access the network, they sometimes do so through other terminals. For example, devices that cannot directly access the 5G Core (5GC) network access the 5GC through a 3GPP UE. Taking the Personal IoT Network (PIN) scenario as an example, a Personal IoT device (PINE) can access the 5G System (5GS) through a Personal IoT Device with Gateway Capability (PEGC) or a PIN Element with Management Capability (PEMC). IoT devices can be categorized as wearables (e.g., cameras, earphones, watches, headphones, health monitors), home appliances (e.g., smart lights, cameras, thermostats, door sensors, voice assistants, speakers, refrigerators, washing machines, lawn mowers, robots), and office or factory equipment (e.g., printers, meters, sensors). Users can use these IoT devices to create (e.g., plan, modify topology) their personal networks in their homes, offices, factories, or around them.

[0077] Currently, some wearable devices and other IoT devices can only access the internet through relays and gateways, or through mobile phones. In both cases, the mobile core network is unaware that the IoT device has connected to the mobile network. However, in order to fully utilize 5G systems to assist in the management and service support of IoT devices, enabling 5G systems to participate in the personal Internet of Things is essential.

[0078] As shown in Figure 2, a user-created Personal Internet of Things (PIN) consists of three types of devices: standard Personal Internet of Things devices (PINEs), Personal Internet of Things devices with gateway capabilities (PEGCs), and Personal Internet of Things devices with management capabilities (PEMCs). Standard PINEs have basic communication capabilities and can communicate with each other directly via Wi-Fi, Bluetooth, or through PEGCs. PEGCs and PEMCs have access to 5G systems and can use the 5G system to provide data forwarding and management services to other PINEs.

[0079] Figures 3A-3C illustrate three methods of communication between PINEs. Figure 3A illustrates method one for communication between PINEs. In this method, PINEs are directly connected to each other. As shown in Figure 3A, PINE 1 and PINE 2 directly exchange data via communication technologies such as WiFi and Bluetooth. Figure 3B illustrates method two for communication between PINEs. In this method, data is forwarded between PINEs via the PEGC. As shown in Figure 3B, PINE 1 and PINE 2 are connected to the same PEGC via communication technologies such as WiFi or Bluetooth, with the PEGC providing data forwarding services. Figure 3C illustrates method three for communication between PINEs. In this method, data is forwarded between PINEs via the 5GS. As shown in Figure 3C, data can be forwarded between PINE 1 and PINE 2 via the 5GS. For example, when the PDU session created by the PEGC for PINE 1 and PINE 2 is connected to the same User Plane Function (UPF), data can be forwarded via the UPF. When the PDU session established by PEGC for PINE is connected to different UPFs, data can be forwarded through the N19 interface between the UPFs. In addition, data can also be forwarded through the N6 interface between the UPF and the data network.

[0080] As shown in Figure 4, when an existing PINE device accesses the 5G network through PEGC, the 5GC uses framed routing to assign IP addresses to the PINE connected to the PEGC. 5G network support for frame routing is defined only for PDU sessions of IP types (IPv4, IPv6, IPv4v6) and allows IP networks to be supported behind the PEGC. Therefore, a range of IPv4 addresses or IPv6 prefixes can be accessed within a single PDU session.

[0081] A PDU session can be associated with multiple frame routes. Each frame route refers to a range of IPv4 addresses (i.e., IPv4 address and IPv4 address mask) or a range of IPv6 prefixes (i.e., IPv6 prefix and IPv6 prefix length). The frame route or a group of frame routes associated with a PDU session is included in the routing information. The 5GC does not send the frame routing information to the PEGC, but instead sends the IP address to the PINE connected to the PEGC through a specific application layer method.

[0082] Frame routing information is provided to the PSAUPF by the Session Management Function (SMF) as part of the packet inspection rules associated with the UPF's network-side N6 interface. The SMF can obtain frame routing information from the Data Network (DN)-Authentication Authorization Accounting (AAA) server during the secondary authentication and authorization process or by consulting the session management subscription message in the UDM.

[0083] The IP address allocated by 5GC to PEGC during the PDU session establishment process can be an address in the frame routing information or an IP address outside the frame routing information.

[0084] If the Unified Data Management (UDM) or DN-AAA updates the frame routing information during the life cycle of the PDU session, the SMF releases the PDU session and can include an indication in the release request to allow the UE to re-establish the PDU session. The topology information of the PIN network is often flexible and changeable, and the association between PEGC and PINE often changes dynamically. The frame routing information in 5GC is often static address information and will not be sent to PEGC. As shown in Figure 4, the IP gateway (IP-gateway) in the frame routing information is the address statically assigned to PEGC, while IP-a and IP-b are static addresses assigned to PINE-a and PINE-b. When a new PINE-c needs to access the 5GC through PEGC, if there is no frame routing information corresponding to PINE-c in the network, it cannot be assigned an IP address. Even if the frame routing information in UDM and DN-AAA can be updated through application layer interaction, PEGC needs to release the existing PDU session and establish a new PDU session based on the new frame routing information. This will seriously affect the service quality of PINE-a and PINE-b, and PINE-c needs to wait for the update of the frame routing information.

[0085] The present invention provides an address allocation method that can be applied to PIN networks and other scenarios where devices that cannot directly access 5GC apply for addresses through 3GPP UE. The addresses allocated in the present invention can be IPv4 addresses and / or IPv6 prefixes.

[0086] FIG5 is a schematic flow chart of an address allocation method 500 according to an embodiment of the present application, which can be applied to any of the systems shown in FIG1-4, but is not limited thereto. The method includes at least part of the following contents.

[0087] S510: The first device receives an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0088] The first terminal device accesses the network through the first device, i.e., the first device is associated with the first terminal device. After receiving the address set, the first device can select an address from the address set and assign the selected address to the first terminal device associated with the first device, thereby allocating an address to the first terminal device.

[0089] After allocating an address to the second network device, the first device can send the address to the first terminal device. In this way, when the first device needs to access the network, it can use the address to access without waiting for the update of the frame routing information.

[0090] Among them, the address set can be determined by the first network device. That is, the first network device determines an address set, and the address set is used to assign an address to the first terminal device associated with the first device. In this way, even if the association relationship between the first terminal device and the first device changes, as long as the address assigned by the first device to the first terminal device is selected from the address set, there is no need to re-establish the session process. For example, when a new first terminal device is connected to the first device and an IP address needs to be assigned to it through the first device, the first device can select an unused address from the address set assigned by the first network device or reuse the address of the disconnected first terminal device.

[0091] The first device may carry first indication information, which is used to request an address set; the first indication information may be sent directly to the first network device, or forwarded to the first network device by an intermediate device; after receiving the first indication information, the first network device determines the address set, and sends the address set directly to the first device, or forwards it to the first device by the intermediate device; the first device then selects an address from the address set and assigns the address to the first terminal device. In this case, the first device acts as a DHCP server to perform address allocation. The first network device may include one or more of SMF, UPF, and AMF. Alternatively, the first device may send the first indication information to the PEGC or PEMC; based on the first indication information, the PEGC or PEMC may determine the address set, or obtain the address set from other network elements, and send the address set to the first device; the first device then selects an address from the address set and assigns the address to the first terminal device.

[0092] In other embodiments, the first device sends a first address request, which carries the identifier of the first terminal device and is used to request an address be allocated to the first terminal device. The first address request may be sent directly to the first network device or forwarded to the first network device by an intermediate device. The first network device may include one or more of an SMF, a UPF, and an AMF. The first network device may select an address to be allocated to the first terminal device from a determined address set and send the address. In this case, the first network device acts as a DHCP server and performs address allocation.

[0093] In other embodiments, the first device sends a first address request to a server device (or application server, data network (DN), application function (AF), etc.). The first address request carries the identifier of the first terminal device and is used to request an address allocation for the first terminal device. The server device allocates an address to the first terminal device. In this case, the server device acts as a Dynamic Host Configuration Protocol (DHCP) server to perform address allocation.

[0094] In each of the above situations, the address set can be represented by frame routing information, an IPv4 address and subnet mask, an IPv6 address and an IPv6 prefix, etc. The IPv6 prefix can also be called the IPv6 prefix length. The address set represented by the frame routing information can be a continuous address segment or multiple dispersed addresses.

[0095] The first device may be a PEGC, and the first terminal device may be a PINE. The first network device may be an SMF, UPF, or other network element. Taking the address allocation of a PINE associated with a PEGC as an example, the address allocation method proposed in this embodiment includes at least the following three methods:

[0096] 1. PEGC acts as a DHCP server. This method has at least the following two scenarios:

[0097] Case 1: Expanding the existing frame routing method, 5GC no longer allocates an address for each PINE. Instead, it sends the frame routing information to PEGC, which dynamically selects the appropriate IP address from the frame routing information and allocates it to the associated PEGC based on the current PINE-PEGC association relationship.

[0098] In the second scenario, the 5GC allocates an IP address set to the PEGC. The PEGC can dynamically select an IP address from the allocated IP address set and allocate it to the PINE associated with it. Specifically, the SMF can allocate an IPv4 mask or IPv6 prefix to the PEGC and set the IPv4 mask / IPv6 prefix as the destination address in the PDR.

[0099] 2. 5GC network elements such as SMF act as DHCP servers to dynamically allocate IP addresses to PINE.

[0100] 3. The server device outside the core network acts as a DHCP server. After the PGEC establishes a PDU session, it interacts with the DHCP server outside the core network through the data plane to obtain the IP address of the PINE.

[0101] FIG6 is a schematic flowchart of an address allocation method 1 600 according to an embodiment of the present application, including:

[0102] S610. A first device (e.g., PEGC) sends first indication information, which is used to request acquisition of an address set. The first indication information can be sent directly or via other devices to a first network device, which may include one or more of an SMF, a UPF, and an AMF. The first indication information can be sent via a NAS message, e.g., the first device sends a NAS message, and the NAS message carries the first indication information. The NAS message also carries at least one of an identifier of the first device (e.g., PEGC ID), an identifier of the network to which the first device and the first terminal device (e.g., PINE) belong (PIN ID), and the number of addresses requested.

[0103] S620: The first network device determines an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0104] The address set may be represented by frame routing information or by an IP address segment.

[0105] Specifically, the first network device may determine frame routing information, where the frame routing information includes an address set and may further include an address of the first device, so as to allocate an address to the first device.

[0106] The first network device may determine the frame routing information in at least one of the following ways:

[0107] Obtain frame routing information by searching for contract information;

[0108] Obtain frame routing information from the DN-AAA server;

[0109] Generate frame routing information;

[0110] Frame routing information is obtained from the second network device.

[0111] Therefore, the first network device can solve the frame routing acquisition method in the related art, and can also adopt a new frame routing acquisition method to acquire frame routing information that can contain an address set.

[0112] Among them, the second network device can be a network element such as UPF.

[0113] Alternatively, the first network device may determine an IPv4 address and a subnet mask, the IPv4 address and the subnet mask being used to represent the address set; and / or,

[0114] The first network device may determine an IPv6 address and a prefix, where the IPv6 address and the prefix are used to represent a set of addresses.

[0115] The first network device may determine the address set in at least one of the following ways:

[0116] Acquire the address set by searching the contract information;

[0117] Obtain the address set from the DN-AAA server;

[0118] Assign address set;

[0119] Obtain a set of addresses from the second network device.

[0120] Among them, the second network device can be a network element such as UPF.

[0121] S630. The first network device adds the address set to the packet detection rule (PDR) corresponding to the session (such as the protocol data unit (PDU) session) that the first device requests to establish or modify, and provides the PDR to the second network device.

[0122] S640: The first network device sends the address set.

[0123] For example, the first network device sends a Namf_Communication_N1N2MessageTransfer message, which carries an address set. The Namf_Communication_N1N2MessageTransfer message may also carry at least one of the identifier of the first device (such as PEGC ID), the address of the first device (such as PEGC IP), the identifier of the first terminal device (such as PINE ID), and the identifier of the network to which the first device and the first terminal device belong (such as PIN ID). The message carrying the address set can be sent to other network elements (such as AMF), and the other network elements (such as AMF) send the address set to the first device. When the first network device sends the address set, it synchronously sends the aforementioned addresses and / or identification information, which can facilitate the first device that receives the address set to distinguish the address set and avoid address allocation errors caused by errors in the message transmission process.

[0124] The first device receives the address set, which is used to assign an address to a first terminal device associated with the first device. For example, the first device receives a NAS message, which carries the address set. The NAS message may also carry at least one of an identifier of the first device (e.g., a PEGC ID), an address of the first device (e.g., a PEGC IP), an identifier of the first terminal device (e.g., a PINE ID), and an identifier of a network to which the first device and the first terminal device belong (e.g., a PIN ID).

[0125] S660: The first device allocates an address from the received address set to the first terminal device associated with the first device. For example, upon receiving an address request from the first terminal device, the first device selects an address from the address set and distributes the selected address to the first terminal device. The step of receiving the address request from the first terminal device may be performed before or after obtaining the address set.

[0126] In this example, the first device acts as a DHCP server to allocate an address to the first terminal device.

[0127] FIG7 is a schematic flowchart of a second address allocation method 700 according to an embodiment of the present application, including:

[0128] S710. A first network device (e.g., an SMF, UPF, or other network element) configures an address set in a PDR corresponding to a session (e.g., a PDU session) established by the first device (e.g., a PEGC). Specifically, the first network device may configure frame routing information for the first device, the frame routing information including the address set, and the frame routing information may also include the address of the first device; or, the first network device may configure an IP address segment for the first device, such as an IPv4 address and subnet mask, the IPv4 address and subnet mask being used to represent the address set; and / or, an IPv6 address and prefix being used to represent the address set. The IPv4 address or IPv6 address may also represent the address of the first device.

[0129] S720. The first network device receives a first address request, which carries an identifier of the first terminal device (such as a PINE ID). The first address request may be sent directly by the first device to the first network device, or forwarded to the first network device via other network elements. This step may also be performed before step S710. The first address request may also carry at least one of an identifier of the first device (such as a PEGC ID), an address of the first device (such as a PEGC IP), and an identifier of the network to which the first device and the first terminal device belong (such as a PIN ID).

[0130] S730. The first network device selects an address allocated to the first terminal device from the address set and sends the address. The first network device may send the address directly to the first device or forward it to the first device via other network elements. When sending the address, the first network device may also send at least one of the identifier of the first terminal device (such as PINE ID), the identifier of the first device (such as PEGC ID), the address of the first device (such as PEGC IP), and the identifier of the network to which the first device and the first terminal device belong (such as PIN ID).

[0131] In this example, the first network device acts as a DHCP server to allocate an address to the first terminal device. In this example, the network device acts as a DHCP server to allocate addresses, which can reduce the requirements for the terminal device's functions and reduce the burden on the terminal device.

[0132] FIG8 is a schematic flowchart of a third address allocation method 800 according to an embodiment of the present application, including:

[0133] S810. A server device (such as a DN, AF, or application server) receives a second address request from a first device; the second address request carries an identifier of the first terminal device (such as a PIN ID). The second address request may be sent directly by the first device to the server device, or forwarded to the server device via another network element. The second address request may also carry at least one of an identifier of the first device (such as a PEGC ID), an address of the first device (such as a PEGC IP), and an identifier of the network to which the first device and the first terminal device belong (such as a PIN ID).

[0134] S820: The server device allocates an address to the first terminal device associated with the first device based on the second address request. Furthermore, the server device may record the routing relationship between the address of the first device and the address of the first terminal device. Later, when data needs to be sent to the first terminal device, the server device may, based on the routing relationship, send the data to the first device that has a routing relationship with the first terminal device. The server device may also include the routing relationship in the data, indicating to which first terminal device the first device should send the data.

[0135] S830: The server device sends the address allocated to the first terminal device to the first device. The first device may then send the address to the first terminal device.

[0136] In this example, the server device functions as a DHCP server to allocate an address to the first terminal device.

[0137] The following takes the first device being PEGC, the first terminal device being PINE, and the first network device being SMF as an example to introduce the address allocation method of the present application in detail with reference to specific embodiments.

[0138] Example 1:

[0139] Figure 9 is a flowchart of the implementation of Example 1 of the present application. In Example 1, the 5GC configures frame routing information for the PEGC. The address of the frame routing information is no longer fixedly assigned by the 5GC to the PINE behind the PEGC, but is dynamically assigned by the PEGC to the PIEN connected to it. The specific process is as follows:

[0140] 1. A PINE connects to a PEGC, interacting with the 5GC through the PEGC and sending an IP address allocation request to the PEGC. This request includes the PINE ID and PIN ID. This IP address allocation request message can be sent to the PEGC via the PIN protocol stack or the application layer. The IP address can be an IPv4 address and / or an IPv6 prefix.

[0141] 2. PEGC sends PEGC indication information to AMF to inform 5GC that it is a PEGC and needs to obtain an IP address set. This PEGC indication information can be sent to AMF via NAS message. Specifically, PEGC initiates the PDU session establishment or modification process and includes PEGC indication, PEGC ID, PIN ID, and the number of IP addresses requested in the PDU session establishment / modification request message to inform 5GC that it is a PEGC and needs to allocate addresses to the devices behind it.

[0142] 3. The AMF forwards the PEGC indication to the SMF. In addition to the PEGC indication, the AMF may also forward information such as the PEGC ID, PIN ID, and the number of IP addresses requested for allocation to the SMF. The PEGC indication, PEGC ID, PIN ID, and the number of IP addresses requested for allocation may be carried in the Nsmf_PDUSession_CreateSMContext Request message.

[0143] 4. The SMF obtains the frame routing information of the PEGC. The frame routing information can be obtained by consulting the contract message in the UDM, or obtained from the DN-AAA server through the secondary authentication process, or generated locally by the SMF, or obtained from the UPF. Specifically, the frame routing information contains the address of the PEGC and an address set, which contains a certain number of IP addresses. These IP addresses can be a set consisting of continuous IP address segments or a set of discontinuous IP addresses. The IP address assigned to the PEGC can be an address in the address set or an IP address that does not belong to the address set.

[0144] 5.SMF configures the packet detection rule (PDR) for the PDU session established or modified by PEGC, that is, adds the frame routing information to the PDR corresponding to the PDU session, and provides the PDR to UPF.

[0145] 6. The SMF sends the frame routing information corresponding to the PEGC to the AMF. This frame routing information can be carried in the Namf_Communication_N1N2MessageTransfer message. In addition, the message may also include the PEGC ID, PEGC IP address, and PIN ID.

[0146] 7. The AMF sends the frame routing information to the PEGC. This frame routing information can be carried in an N2NAS message. In addition, the message may also include the PEGC ID, PEGC IP address, PINE ID, and PIN ID.

[0147] 8. PEGC can select an available address from the IP address set in the frame routing information and dynamically assign it to the PINE associated with it.

[0148] In this embodiment, the PEGC acts as a DHCP server to allocate addresses to the PINEs associated with it; the address set obtained by the PEGC is represented by frame routing.

[0149] Example 2:

[0150] Figure 10 is a flowchart of the implementation of Example 2 of the present application. In Example 2, the 5GC allocates an IP address segment to the PEGC. The IP address segment consists of an IPv4 address and subnet mask and / or an IPv6 address and prefix length. The PEGC selects an IP address from the obtained IP address segment and allocates it to the PINE associated with it. The specific process is as follows:

[0151] 1. A PINE connects to a PEGC, interacting with the 5GC through the PEGC and sending an IP address allocation request to the PEGC. This request includes the PINE ID and PIN ID. This IP address allocation request message can be sent to the PEGC via the PIN protocol stack or the application layer. The IP address can be an IPv4 address and / or an IPv6 prefix.

[0152] 2. PEGC sends PEGC indication information to AMF to inform 5GC that it is a PEGC and needs to obtain an IP address set. This PEGC indication information can be sent to AMF via NAS message. Specifically, PEGC initiates the PDU session establishment or modification process and includes PEGC indication, PEGC ID, PIN ID, and the number of IP addresses requested in the PDU session establishment / modification request message to inform 5GC that it is a PEGC and needs to allocate addresses to the devices behind it.

[0153] 3.AMF forwards the PEGC indication PEGC ID, PIN ID, and the number of IP addresses requested to be allocated to the SMF. The PEGC indication, PEGC ID, PIN ID, and the number of IP addresses requested to be allocated can be carried in the Nsmf_PDUSession_CreateSMContext Request message.

[0154] 4. The SMF obtains the frame routing information of the PEGC and obtains an address set (or address segment). The address set can be represented by an IPv4 address and subnet mask, and / or an IPv6 address and prefix length. The IPv4 address and subnet mask, and / or the IPv6 address and prefix length can be obtained in at least four ways:

[0155] a.SMF consults the contract information in the UDM to obtain the IPv4 address and subnet mask, and / or the IPv6 address and prefix length.

[0156] b.SMF obtains the IPv4 address and subnet mask, and / or IPv6 address and prefix length from the DN-AAA server.

[0157] c.SMF independently allocates IPv4 addresses and subnet masks, and / or IPv6 addresses and prefix lengths.

[0158] d.SMF instructs UPF to generate an IPv4 address and subnet mask, and / or an IPv6 address and prefix length; and obtains the IPv4 address and subnet mask, and / or an IPv6 address and prefix length from UPF.

[0159] 5.SMF configures the packet detection rule (PDR) for the PDU session that PEGC requests to establish or modify, that is, uses the IPv4 address and subnet mask, and / or IPv6 address and prefix length to configure the IP packet filter settings (IP Packet Filter Set) in the PDR corresponding to the above PDU session, and provides the PDR to the UPF.

[0160] 6. The SMF sends the IP address set (i.e., IPv4 address and subnet mask and / or IPv6 address and prefix length) to the AMF. This IP address set can be carried in a Namf_Communication_N1N2MessageTransfer message. In addition, the message may also include the PEGC ID, PEGC IP address, PINE ID, and PIN ID.

[0161] 7. The AMF sends the IP address set (i.e., IPv4 address and subnet mask and / or IPv6 address and prefix length) to the PEGC. This IP address set can be carried in an N2NAS message. In addition, the message may also include the PEGC ID, PEGC IP address, PINE ID, and PIN ID.

[0162] 8. PEGC can select an available IP address from the IP address set and dynamically assign it to the PINE associated with it.

[0163] This embodiment is similar to the first embodiment, where PEGC acts as a DHCP server to allocate addresses to the PINEs associated with it; the difference is that the address set obtained by PEGC is represented by an IPv4 address and subnet mask, and / or an IPv6 address and prefix length.

[0164] Example 3:

[0165] Figure 11 is a flowchart of the implementation of Example 3 of the present application. In Example 3, SMF acts as a DHCP server to allocate an IP address to a PINE. After PEGC establishes a PDU session, SMF configures frame routing information or an IP address segment for the PDU session as part of the PDR. Subsequently, whenever a new PINE requests an IP address from 5GC through PEGC, SMF can select an IP address from the frame routing information or the above IP address segment and allocate it to the PINE. The specific process is as follows:

[0166] 1. After PEGC establishes a PDU session, SMF configures frame routing information or an IP address segment for the PDU session as part of the PDR.

[0167] 2. The PINE connects to the PEGC, interacting with the 5GC through the PEGC and sending an IP address allocation request to the PEGC. This request includes the PINE ID and PIN ID. This IP address allocation request message can be sent to the PEGC via the PIN protocol stack or the application layer. The IP address can be an IPv4 address and / or an IPv6 prefix. This step can also be performed before step 1.

[0168] 3. PEGC sends an IP address request to AMF via a NAS message. The request message includes PINE ID, PIN ID, PEGC ID, and PEGC IP address.

[0169] 4.AMF sends an IP address request to SMF. The IP address request message includes PINE ID, PIN ID, PEGC ID, and PEGC IP address.

[0170] 5.SMF selects an IP address from the frame routing information or IP address segment corresponding to the PDU session established by PEGC and assigns it to PINE.

[0171] 6.SMF sends the IP address information of PINE to AMF. In addition, the message may also include PEGC ID, PEGC IP address, PINE ID, and PIN ID.

[0172] 7.AMF sends the PINE IP address information to PEGC. In addition, the message may also include PEGC ID, PEGC IP address, PINE ID, and PIN ID.

[0173] 8. PEGC sends its IP address to PINE. In addition, the message may also contain PEGC ID, PEGC IP address, PINE ID, PIN ID.

[0174] In this embodiment, a core network element (such as an SMF) acts as a DHCP server to allocate addresses to PINEs associated with the PEGC. This embodiment uses the SMF as an example for explanation. In other implementations, a 5GC network element such as a UPF or other network element can also be selected as a DHCP server to allocate addresses to PINEs.

[0175] Example 4:

[0176] Figure 12 is a flowchart of the implementation of Example 4 of the present application. In Example 4, the DN acts as a DHCP server to assign an address to the PINE. After the PEGC establishes a PDU session, it can interact with the DN through the user plane to report the PEGC IP address and obtain the address information of the PINE. The DN will record the routing relationship between the PEGC IP address and the PINE IP address, send the data packet sent to the PINE to the PEGC, and then forward it by the PEGC. The specific process is as follows:

[0177] 1. A PINE connects to a PEGC, interacting with the 5GC through the PEGC and sending an IP address allocation request to the PEGC. This request includes the PINE ID and PIN ID. This IP address allocation request message can be sent to the PEGC via the PIN protocol stack or the application layer. The IP address can be an IPv4 address and / or an IPv6 prefix.

[0178] 2. PEGC establishes a PDU session and obtains the IP address assigned to it by 5GC. This step can also occur before step 1.

[0179] 3. PEGC sends an IP address request to DN via the user plane from the application layer. The IP address request includes PINE ID, PIN ID, PEGC ID, and PEGC IP address.

[0180] 4. The DN assigns an IP address to the PINE, which can be an IPv4 address and / or an IPv6 prefix, and records the routing relationship between the PEGC IP address and the PINE IP address. When data needs to be sent to the PINE, it can send a data packet to the PEGC, including routing information to indicate to the PEGC that the data packet should ultimately be sent to the PINE.

[0181] 5. DN sends the IP address of PINE (i.e., IPv4 address and / or IPv6 prefix) to PEGC.

[0182] 6. PEGC sends PINE's IP address (i.e., IPv4 address and / or IPv6 prefix) to PINE.

[0183] From the above embodiments, it can be seen that in embodiments one and two, 5GC sends a set of available IP addresses to PEGC through frame routing information, IPv4 subnet mask and / or IPv6 address prefix, and PEGC can select an IP address from the set and assign it to the PINE associated with it. The frame routing information has been added to the PDR, and all data packets sent to the IP address set can be sent to PEGC first and then forwarded by PEGC. Therefore, even if the association between PINE and PEGC changes, as long as the address assigned to the PINE by PEGC is selected from the above IP address set, there is no need to re-establish the PDU session process. For example, when a new PINE is connected to PEGC and needs to be assigned an IP address by PEGC, PEGC can select an unused address from the IP address set assigned by 5GC or reuse the IP address of the disconnected PINE.

[0184] Example 3 is similar to Examples 1 and 2. The SMF configures frame routing information or an IP address segment for the PDU session established for the PEGC. Whenever a new PINE needs to exchange data with the 5GC through the PEGC, the SMF can select an IP address from the configured frame routing information or IP address segment and assign it to the PINE without having to repeatedly establish or modify the PDU session already established for the PEGC.

[0185] In Example 4, the IP address of a PINE can be assigned through application-layer interaction between the PEGC and the DN. The routing relationship between the PINE and the PEGC can be encapsulated in the packet header, without requiring configuration in the 5GC. The DN can send packets destined for the PINE to the PEGC, which then forwards the packets to the PINE based on the routing information in the packet header. At this point, the PINE is invisible to the 5GC. Therefore, even if the topological relationship between the PINE and the PEGC changes, the PDU session established by the PEGC does not need to be modified.

[0186] The addresses involved in the above embodiments may include IPv4 addresses and / or IPv6 prefixes. In the above embodiments, the Personal Internet of Things (PIN) scenario is used as an example for explanation. However, the address allocation method of this solution is not only applicable to the PIN scenario, but also to scenarios where other devices that cannot directly access 5GC apply for IP addresses through 3GPP UE.

[0187] FIG13 is a schematic flow chart of an address allocation method 1300 according to an embodiment of the present application, which can be applied to any of the systems shown in FIG1-4, but is not limited thereto. The method includes at least part of the following contents.

[0188] S1310. A first network device determines an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0189] Among them, the first network device may include SMF, UPF or other core network elements, the first device may include PEGC, and the first terminal device may include PINE.

[0190] In one implementation, the first network device determining the address set may include: the first network device determining frame routing information, where the frame routing information includes the address set.

[0191] In one embodiment, the frame routing information further includes the address of the first device.

[0192] The first network device may determine the frame routing information in at least one of the following ways:

[0193] Acquire the frame routing information by searching the contract information;

[0194] Obtaining the frame routing information from the DN-AAA server;

[0195] generating the frame routing information;

[0196] The frame routing information is obtained from the second network device.

[0197] Among them, the second network device can be UPF.

[0198] In one embodiment, the first network device determines the address set, including:

[0199] The first network device obtains an IPv4 address and a subnet mask, where the IPv4 address and the subnet mask are used to represent the address set; and / or,

[0200] The first network device obtains an IPv6 address and a prefix, where the IPv6 address and the prefix are used to represent the address set.

[0201] The IPv4 address or IPv6 address may also represent the address of the first device.

[0202] In one embodiment, the first network device may determine the address set in at least one of the following ways:

[0203] Acquire the address set by searching the contract information;

[0204] Obtain the address set from the DN-AAA server;

[0205] allocating the address set;

[0206] The address set is obtained from a second network device, where the second network device may be a UPF.

[0207] In one embodiment, the method further includes: the first network device adding the address set to a PDR corresponding to the session that the first device requests to establish or modify, and providing the PDR to the second network device.

[0208] In one embodiment, the method further includes: the first network device sending the address set.

[0209] The first network device sending address set may include:

[0210] The first network device sends a Namf_Communication_N1N2MessageTransfer message, where the Namf_Communication_N1N2MessageTransfer message carries the address set.

[0211] In one implementation, the Namf_Communication_N1N2MessageTransfer message may further carry at least one of the following:

[0212] an identifier of the first device;

[0213] the address of the first device;

[0214] an identifier of the first terminal device;

[0215] The identifier of the network to which the first device and the first terminal device belong.

[0216] In one embodiment, the method further includes: the first network device receiving first indication information, where the first indication information is used to request acquisition of the address set.

[0217] The first network device receiving the first indication information may include:

[0218] The first network device receives an Nsmf_PDUSession_CreateSMContext Request message, where the Nsmf_PDUSession_CreateSMContext Request message carries the first indication information.

[0219] In one implementation, the Nsmf_PDUSession_CreateSMContext Request message further carries at least one of the following:

[0220] an identifier of the first device;

[0221] an identifier of a network to which the first device and the first terminal device belong;

[0222] The number of addresses requested.

[0223] In one embodiment, the method further includes: the first network device configuring the address set in a PDR corresponding to the session established by the first device.

[0224] In one embodiment, the method further includes: the first network device receives a first address request, the first address request carries an identifier of the first terminal device; the first network device selects an address allocated to the first terminal device from the address set, and sends the address.

[0225] The first address request may also carry at least one of the following:

[0226] an identifier of the first device;

[0227] the address of the first device;

[0228] The identifier of the network to which the first device and the first terminal device belong.

[0229] For other details of the address allocation method of this embodiment, please refer to the relevant introduction of the first network device in the above embodiment, which will not be repeated here.

[0230] FIG14 is a schematic flow chart of an address allocation method 1400 according to an embodiment of the present application, which can be applied to any of the systems shown in FIG1-4 , but is not limited thereto. The method includes at least part of the following contents.

[0231] S1410. The server device receives a second address request from the first device.

[0232] S1420. The server device allocates an address to the first terminal device associated with the first device according to the second address request.

[0233] The server device may be a DN, an AF, an application server, etc. The first device may include a PEGC, and the first terminal device may include a PINE.

[0234] In one embodiment, the method further includes: the server device sending the address allocated to the first terminal device to the first device.

[0235] In one embodiment, the second address request may carry at least one of the following:

[0236] an identifier of the first device;

[0237] the address of the first device;

[0238] an identifier of the first terminal device;

[0239] The identifier of the network to which the first device and the first terminal device belong.

[0240] In one embodiment, the method further includes: the server device recording a routing relationship between the address of the first device and the address of the first terminal device.

[0241] In one embodiment, the method further includes: when data needs to be sent to the first terminal device, sending the data to the first device that has a routing relationship with the first terminal device according to the routing relationship, and including the routing relationship in the data.

[0242] For other details of the address allocation method of this embodiment, please refer to the relevant introduction of the server device in the above embodiment, which will not be repeated here.

[0243] FIG15 is a schematic flow chart of an address allocation method 1500 according to an embodiment of the present application, which can be applied to any of the systems shown in FIG1-4 , but is not limited thereto. The method includes at least part of the following contents.

[0244] S1510. The third network device determines an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0245] Among them, the third network device may include network elements such as UPF, SMF, AMF, the first device may include PEGC, and the first terminal device may include PINE.

[0246] In one embodiment, the method further includes: the third network device providing the address set to the first network device.

[0247] Among them, the first network device may include network elements such as SMF, UPF, and AMF.

[0248] In one implementation, the third network device determining the address set includes: the third network device determining frame routing information, where the frame routing information includes the address set.

[0249] The frame routing information may further include the address of the first device.

[0250] In one embodiment, the third network device determining the address set includes:

[0251] The third network device determines an IPv4 address and a subnet mask, where the IPv4 address and the subnet mask are used to represent the address set; and / or,

[0252] The third network device determines an IPv6 address and a prefix, where the IPv6 address and the prefix are used to represent the address set.

[0253] The IPv4 address or the IPv6 address may also represent the address of the first device.

[0254] For other details of the address allocation method of this embodiment, please refer to the relevant introduction of the third network device in the above embodiment, which will not be repeated here.

[0255] The present embodiment further provides a first device. FIG16 is a schematic structural diagram of the first device 1600 according to the embodiment of the present application, including:

[0256] The first receiving module 1610 is configured to receive an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0257] FIG17 is a schematic diagram of the structure of a first device 1700 according to an embodiment of the present application. The first device 1700 includes one or more features of the first device 1600 embodiment described above. In one possible implementation, in the embodiment of the present application, the first device 1700 further includes:

[0258] The selection module 1720 is configured to select an address from the address set and allocate the address to the first terminal device associated with the first device.

[0259] In some embodiments, further comprising:

[0260] The first sending module 1730 is configured to send an address to the first terminal device.

[0261] In some implementations, the first receiving module 1610 is configured to receive frame routing information, where the frame routing information includes an address set.

[0262] In some implementations, the frame routing information further includes an address of the first device.

[0263] In some implementations, the first receiving module 1610 is configured to:

[0264] receiving an IPv4 address and a subnet mask, wherein the IPv4 address and the subnet mask are used to represent a set of addresses; and / or,

[0265] Receives an IPv6 address and prefix, which are used to represent a set of addresses.

[0266] In some embodiments, the IPv4 address or the IPv6 address also represents the address of the first device.

[0267] In some implementations, the first receiving module 1610 is configured to receive a NAS message, where the NAS message carries an address set.

[0268] In some implementations, the NAS message further carries at least one of the following:

[0269] an identifier of the first device;

[0270] the address of the first device;

[0271] an identifier of the first terminal device;

[0272] The identifier of the network to which the first device and the first terminal device belong.

[0273] In some implementations, the first sending module 1730 is further configured to send first indication information, where the first indication information is used to request acquisition of an address set.

[0274] In some implementations, the first sending module 1730 is configured to send a NAS message, where the NAS message carries first indication information.

[0275] In some implementations, the NAS message further carries at least one of the following:

[0276] an identifier of the first device;

[0277] An identifier of the network to which the first device and the first terminal device belong;

[0278] The number of addresses requested.

[0279] In some embodiments, the first device comprises a PEGC.

[0280] In some embodiments, the first terminal device includes a PINE.

[0281] It should be understood that the above and other operations and / or functions of the modules in the first device according to the embodiment of the present application are respectively for implementing the corresponding processes of the first device in method 500 of Figure 5. For the sake of brevity, they are not repeated here.

[0282] The present embodiment further provides a first network device. FIG18 is a schematic structural diagram of the first network device 1800 according to the embodiment of the present application, including:

[0283] The first determining module 1810 is configured to determine an address set, where the address set is used to allocate an address to a first terminal device associated with a first device.

[0284] In some implementations, the first determining module 1810 is configured to determine frame routing information, where the frame routing information includes an address set.

[0285] In some implementations, the frame routing information further includes an address of the first device.

[0286] In some implementations, the first network device determines the frame routing information by using at least one of the following methods:

[0287] Obtain frame routing information by searching for contract information;

[0288] Obtain frame routing information from the DN-AAA server;

[0289] Generate frame routing information;

[0290] Frame routing information is obtained from the second network device.

[0291] In some implementations, the first determining module 1810 is configured to:

[0292] Obtaining an IPv4 address and subnet mask, where the IPv4 address and subnet mask are used to represent a set of addresses; and / or,

[0293] Gets an IPv6 address and prefix. The IPv6 address and prefix are used to represent an address set.

[0294] In some embodiments, the IPv4 address or the IPv6 address also represents the address of the first device.

[0295] In some implementations, the first network device determines the address set by using at least one of the following methods:

[0296] Get the address set by searching the contract information;

[0297] Obtain the address set from the DN-AAA server;

[0298] Assign address set;

[0299] Obtain a set of addresses from the second network device.

[0300] Figure 19 is a schematic diagram of the structure of a first network device 1900 according to an embodiment of the present application. The first network device 1900 includes one or more features of the first network device 1800 embodiment described above. In one possible implementation, in the embodiment of the present application, it further includes:

[0301] The adding module 1920 is configured to add the address set to the PDR corresponding to the session requested to be established or modified by the first device, and provide the PDR to the second network device.

[0302] In some embodiments, further comprising:

[0303] The second sending module 1930 is configured to send an address set.

[0304] In some implementations, the second sending module 1930 is configured to send a Namf_Communication_N1N2MessageTransfer message, where the Namf_Communication_N1N2MessageTransfer message carries an address set.

[0305] In some implementations, the Namf_Communication_N1N2MessageTransfer message further carries at least one of the following:

[0306] an identifier of the first device;

[0307] the address of the first device;

[0308] an identifier of the first terminal device;

[0309] The identifier of the network to which the first device and the first terminal device belong.

[0310] In some embodiments, further comprising:

[0311] The second receiving module 1940 is configured to receive first indication information, where the first indication information is used to request acquisition of an address set.

[0312] In some implementations, the second receiving module 1940 is configured to receive an Nsmf_PDUSession_CreateSMContext Request message, where the Nsmf_PDUSession_CreateSMContext Request message carries the first indication information.

[0313] In some implementations, the Nsmf_PDUSession_CreateSMContext Request message further carries at least one of the following:

[0314] an identifier of the first device;

[0315] An identifier of the network to which the first device and the first terminal device belong;

[0316] The number of addresses requested.

[0317] In some embodiments, further comprising:

[0318] The configuration module 1950 is configured to configure an address set in a PDR corresponding to a session established by the first device.

[0319] In some implementations, the address selection module 1960 is further included, configured to:

[0320] receiving a first address request, where the first address request carries an identifier of the first terminal device;

[0321] An address allocated to the first terminal device is selected from the address set, and the address is sent.

[0322] In some implementations, the first address request further carries at least one of the following:

[0323] an identifier of the first device;

[0324] the address of the first device;

[0325] The identifier of the network to which the first device and the first terminal device belong.

[0326] In some embodiments, the first network device includes an SMF, a UPF, or other core network elements.

[0327] In some embodiments, the first device comprises a PEGC.

[0328] In some embodiments, the first terminal device includes a PINE.

[0329] In some embodiments, the second network device includes a UPF.

[0330] It should be understood that the above and other operations and / or functions of the modules in the first network device according to the embodiment of the present application are respectively for implementing the corresponding processes of the first network device in method 1300 of Figure 13. For the sake of brevity, they are not repeated here.

[0331] The present application also provides a server device. FIG20 is a schematic diagram of the structure of a server device 2000 according to an embodiment of the present application, including:

[0332] A third receiving module 2010 is configured to receive a second address request from the first device;

[0333] The allocation module 2020 is configured to allocate an address to the first terminal device associated with the first device according to the second address request.

[0334] FIG21 is a schematic diagram of the structure of a server device 2100 according to an embodiment of the present application. The server device 2100 includes one or more features of the above-mentioned server device 2000 embodiment. In one possible implementation, in the embodiment of the present application, it further includes:

[0335] The third sending module 2130 is configured to send the address allocated to the first terminal device to the first device.

[0336] In some implementations, the second address request carries at least one of the following:

[0337] an identifier of the first device;

[0338] the address of the first device;

[0339] an identifier of the first terminal device;

[0340] The identifier of the network to which the first device and the first terminal device belong.

[0341] In some embodiments, further comprising:

[0342] The recording module 2140 is configured to record a routing relationship between the address of the first device and the address of the first terminal device.

[0343] In some implementations, the recording module 2140 is further configured to:

[0344] When data needs to be sent to the first terminal device, the data is sent to the first device having a routing relationship with the first terminal device according to the routing relationship, and the routing relationship is included in the data.

[0345] In some embodiments, the first device comprises a PEGC.

[0346] In some embodiments, the first terminal device includes a PINE.

[0347] It should be understood that the above-mentioned and other operations and / or functions of the modules in the server device according to the embodiment of the present application are respectively for implementing the corresponding processes of the server device in method 1400 of Figure 14. For the sake of brevity, they are not repeated here.

[0348] The present embodiment further provides a third network device. FIG22 is a schematic structural diagram of the third network device 2200 according to the embodiment of the present application, including:

[0349] The second determining module 2210 is configured to determine an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

[0350] Figure 23 is a schematic diagram of the structure of a third network device 2300 according to an embodiment of the present application. The third network device 2300 includes one or more features of the third network device 2200 embodiment described above. In one possible implementation, in the embodiment of the present application, it further includes:

[0351] A providing module 2320 is provided for providing the address set to the first network device.

[0352] In some implementations, the second determining module 2210 is configured to determine frame routing information, where the frame routing information includes an address set.

[0353] In some implementations, the frame routing information further includes an address of the first device.

[0354] In some implementations, the second determining module 2210 is configured to:

[0355] Determine an IPv4 address and a subnet mask, wherein the IPv4 address and the subnet mask are used to represent a set of addresses; and / or,

[0356] Determine the IPv6 address and prefix, which are used to represent a set of addresses.

[0357] In some embodiments, the IPv4 address or the IPv6 address also represents the address of the first device.

[0358] In some implementations, the third network device includes a UPF.

[0359] In some embodiments, the first device comprises a PEGC.

[0360] In some embodiments, the first terminal device includes a PINE.

[0361] In some implementations, the first network device includes an SMF.

[0362] It should be understood that the above and other operations and / or functions of the modules in the third network device according to the embodiment of the present application are respectively for implementing the corresponding processes of the third network device in method 1400 of Figure 14. For the sake of brevity, they are not repeated here.

[0363] It should be noted that the functions described in the various modules (submodules, units, or components, etc.) in the communication device of the embodiment of the present application can be implemented by different modules (submodules, units, or components, etc.) or by the same module (submodule, unit, or component, etc.). For example, the first receiving module and the second receiving module can be different modules or the same module, and both can implement their corresponding functions in the embodiment of the present application. In addition, the sending module and the receiving module in the embodiment of the present application can be implemented by the transceiver of the device, and some or all of the other modules can be implemented by the processor of the device.

[0364] Figure 24 is a schematic structural diagram of a communication device 2400 according to an embodiment of the present application. The communication device 2400 shown in Figure 24 includes a processor 2410, which can call and execute a computer program from a memory to implement the method in the embodiment of the present application.

[0365] In some implementations, as shown in FIG24 , the communication device 2400 may further include a memory 2420. The processor 2410 may call and execute a computer program from the memory 2420 to implement the communication device in the embodiment of the present application.

[0366] The memory 2420 may be a separate device independent of the processor 2410 or may be integrated into the processor 2410 .

[0367] In some embodiments, as shown in FIG. 24 , the communication device 2400 may further include a transceiver 2430 , and the processor 2410 may control the transceiver 2430 to communicate with other devices. Specifically, the transceiver 2430 may send information or data to other devices, or receive information or data sent by other devices.

[0368] The transceiver 2430 may include a transmitter and a receiver. The transceiver 2430 may further include an antenna, and the number of antennas may be one or more.

[0369] In some embodiments, the communication device 2400 may be the communication device of an embodiment of the present application, and the communication device 2400 may implement the corresponding processes implemented by the communication device in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0370] Figure 25 is a schematic structural diagram of a chip 2500 according to an embodiment of the present application. The chip 2500 shown in Figure 25 includes a processor 2510, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.

[0371] In some embodiments, as shown in FIG25 , the chip 2500 may further include a memory 2520. The processor 2510 may call and execute a computer program from the memory 2520 to implement the method in the embodiment of the present application.

[0372] The memory 2520 may be a separate device independent of the processor 2510 or may be integrated into the processor 2510 .

[0373] In some embodiments, the chip 2500 may further include an input interface 2530. The processor 2510 may control the input interface 2530 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0374] In some embodiments, the chip 2500 may further include an output interface 2540. The processor 2510 may control the output interface 2540 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0375] In some embodiments, the chip can be applied to the communication equipment in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the network equipment in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0376] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0377] The processor mentioned above may be a general-purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or other programmable logic devices, transistor logic devices, discrete hardware components, etc. The general-purpose processor mentioned above may be a microprocessor or any conventional processor, etc.

[0378] The memory mentioned above may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM).

[0379] It should be understood that the above-mentioned memories are exemplary but not restrictive. For example, the memories in the embodiments of the present application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM RAM (DR RAM), etc. In other words, the memories in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0380] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, The computer instruction can be transmitted from a website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0381] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0382] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0383] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. An address allocation method, comprising: The first device receives an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

2. The method according to claim 1, further comprising: The first device selects an address from the address set and allocates the address to a first terminal device associated with the first device.

3. The method according to claim 2, further comprising: The first device sends the address to the first terminal device.

4. The method according to any one of claims 1 to 3, wherein: The first device receiving the address set includes: The first device receives frame routing information, where the frame routing information includes the address set.

5. The method according to claim 4, wherein The frame routing information also includes the address of the first device.

6. The method according to any one of claims 1 to 3, wherein: The first device receiving the address set includes: The first device receives an IPv4 address and a subnet mask, where the IPv4 address and the subnet mask are used to represent the address set; and / or, The first device receives an IPv6 address and a prefix, where the IPv6 address and the prefix are used to represent the address set.

7. The method according to claim 6, wherein: The IPv4 address or the IPv6 address also represents the address of the first device.

8. The method according to any one of claims 1 to 7, wherein: The first device receiving the address set includes: The first device receives a NAS message, where the NAS message carries the address set.

9. The method according to claim 8, wherein The NAS message also carries at least one of the following: an identifier of the first device; the address of the first device; an identifier of the first terminal device; The identifier of the network to which the first device and the first terminal device belong.

10. The method according to any one of claims 1 to 9, further comprising: The first device sends first indication information, where the first indication information is used to request acquisition of an address set.

11. The method according to claim 10, wherein: The first device sending the first indication information includes: The first device sends a NAS message, where the NAS message carries the first indication information.

12. The method according to claim 11, wherein The NAS message also carries at least one of the following: an identifier of the first device; an identifier of a network to which the first device and the first terminal device belong; The number of addresses requested.

13. The method according to any one of claims 1 to 12, wherein: The first device includes a PEGC.

14. The method according to any one of claims 1 to 13, wherein: The first terminal device includes PINE.

15. A method for allocating an address, comprising: The first network device determines an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

16. The method according to claim 15, wherein The first network device determines an address set, including: The first network device determines frame routing information, where the frame routing information includes the address set.

17. The method according to claim 16, wherein The frame routing information also includes the address of the first device.

18. The method according to claim 16 or 17, wherein The first network device determines the frame routing information by adopting at least one of the following methods: Acquire the frame routing information by searching the contract information; Obtaining the frame routing information from the DN-AAA server; generating the frame routing information; The frame routing information is obtained from the second network device.

19. The method according to claim 15, wherein The first network device determines an address set, including: The first network device obtains an IPv4 address and a subnet mask, where the IPv4 address and the subnet mask are used to represent the address set; and / or, The first network device obtains an IPv6 address and a prefix, where the IPv6 address and the prefix are used to represent the address set.

20. The method according to claim 19, wherein The IPv4 address or the IPv6 address also represents the address of the first device.

21. The method according to claim 19 or 20, wherein The first network device determines the address set by adopting at least one of the following methods: Acquire the address set by searching the contract information; Obtain the address set from the DN-AAA server; allocating the address set; The address set is obtained from the second network device.

22. The method according to any one of claims 15 to 21, further comprising: The first network device adds the address set to a PDR corresponding to the session that the first device requests to establish or modify, and provides the PDR to the second network device.

23. The method according to any one of claims 15 to 22, further comprising: The first network device sends the address set.

24. The method according to claim 23, wherein The first network device sending the address set includes: The first network device sends a Namf_Communication_N1N2MessageTransfer message, where the Namf_Communication_N1N2MessageTransfer message carries the address set.

25. The method according to claim 24, wherein The Namf_Communication_N1N2MessageTransfer message also carries at least one of the following: an identifier of the first device; the address of the first device; an identifier of the first terminal device; The identifier of the network to which the first device and the first terminal device belong.

26. The method according to any one of claims 15 to 25, further comprising: The first network device receives first indication information, where the first indication information is used to request acquisition of an address set.

27. The method according to claim 26, wherein The first network device receiving the first indication information includes: The first network device receives an Nsmf_PDUSession_CreateSMContext Request message, where the Nsmf_PDUSession_CreateSMContext Request message carries the first indication information.

28. The method according to claim 27, wherein The Nsmf_PDUSession_CreateSMContext Request message also carries at least one of the following: an identifier of the first device; an identifier of a network to which the first device and the first terminal device belong; The number of addresses requested.

29. The method of claim 15, 16, 17, 19 or 20, further comprising: The first network device configures the address set in a PDR corresponding to the session established by the first device.

30. The method according to claim 15 or 29, further comprising: The first network device receives a first address request, where the first address request carries an identifier of the first terminal device; The first network device selects an address allocated to the first terminal device from the address set and sends the address.

31. The method according to claim 30, wherein The first address request further carries at least one of the following: an identifier of the first device; the address of the first device; The identifier of the network to which the first device and the first terminal device belong.

32. The method according to any one of claims 15 to 31, wherein: The first network device includes SMF, UPF or other core network elements.

33. The method according to any one of claims 15 to 32, wherein: The first device includes a PEGC.

34. The method according to any one of claims 15 to 33, wherein: The first terminal device includes PINE.

35. The method according to claim 18 or 21, wherein The second network device includes a UPF.

36. A method for allocating an address, comprising: The server device receives a second address request from the first device; The server device allocates an address to the first terminal device associated with the first device according to the second address request.

37. The method according to claim 36, further comprising, The server device sends the address allocated to the first terminal device to the first device.

38. The method according to claim 36 or 37, wherein The second address request carries at least one of the following: an identifier of the first device; the address of the first device; an identifier of the first terminal device; The identifier of the network to which the first device and the first terminal device belong.

39. The method according to any one of claims 36 to 38, further comprising: The server device records a routing relationship between the address of the first device and the address of the first terminal device.

40. The method of claim 39, further comprising: When data needs to be sent to the first terminal device, the data is sent to the first device having a routing relationship with the first terminal device according to the routing relationship, and the routing relationship is included in the data.

41. The method according to any one of claims 36 to 40, wherein: The first device includes a PEGC.

42. The method according to any one of claims 36 to 41, wherein: The first terminal device includes PINE.

43. A method for allocating an address, comprising: The third network device determines an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

44. The method of claim 43, further comprising the third network device providing the set of addresses to the first network device.

45. The method according to claim 43 or 44, wherein The third network device determining the address set includes: The third network device determines frame routing information, where the frame routing information includes the address set.

46. ​​The method of claim 45, wherein The frame routing information also includes the address of the first device.

47. The method according to claim 43 or 44, wherein The third network device determining the address set includes: The third network device determines an IPv4 address and a subnet mask, wherein the IPv4 address and the subnet mask are used to represent the address set; and / or, The third network device determines an IPv6 address and a prefix, where the IPv6 address and the prefix are used to represent the address set.

48. The method of claim 47, wherein The IPv4 address or the IPv6 address also represents the address of the first device.

49. The method according to any one of claims 43 to 48, wherein: The third network device includes a UPF.

50. The method according to any one of claims 43 to 49, wherein: The first device includes a PEGC.

51. The method according to any one of claims 43 to 50, wherein: The first terminal device includes PINE.

52. The method of claim 44, wherein: The first network device includes SMF.

53. A first device comprising: The first receiving module is configured to receive an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

54. A first network device comprising: The first determining module is configured to determine an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

55. A server device comprising: a third receiving module, configured to receive a second address request from the first device; An allocation module is used to allocate an address to a first terminal device associated with the first device according to the second address request.

56. A third network device, comprising: The second determining module is used to determine an address set, where the address set is used to allocate an address to a first terminal device associated with the first device.

57. A communication device comprising: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 14, 15 to 35, 36 to 42, or 43 to 52.

58. A chip, comprising: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the method according to any one of claims 1 to 14, 15 to 35, 36 to 42, or 43 to 52.

59. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to execute the method of any one of claims 1 to 14, 15 to 35, 36 to 42, or 43 to 52.

60. A computer program product comprising computer program instructions for causing a computer to perform the method of any one of claims 1 to 14, 15 to 35, 36 to 42, or 43 to 52.

61. A computer program causing a computer to perform the method of any one of claims 1 to 14, 15 to 35, 36 to 42, or 43 to 52.