An IP address allocation method and apparatus, a communication device and a storage medium
By forwarding DHCP messages from the FN-RG device to the SMF device through the W-AGF device, and directly using DHCP for IP address allocation, the problem of excessive information processing by the W-AGF device is solved, network load is reduced, and reliability is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER
- Filing Date
- 2023-07-05
- Publication Date
- 2026-05-19
AI Technical Summary
In existing IP address allocation methods, W-AGF devices need to obtain an IP address from the received PDU session resource setting request and encapsulate it into a DHCP message, which increases the workload of information processing and increases the load on network devices.
The W-AGF device forwards DHCP messages from the FN-RG device to the SMF device. The SMF device generates a DHCP message carrying the target IP address and forwards it to the FN-RG device. This avoids the steps of the W-AGF device obtaining and encapsulating the IP address in the PDU session, and directly uses DHCP to allocate the IP address.
This reduces the workload of W-AGF devices, lowers the network load on the system, and improves the reliability of IP address allocation.
Smart Images

Figure CN116827906B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication technology, and in particular to an IP address allocation method, apparatus, communication device, and storage medium. Background Technology
[0002] In Release 16, 3GPP (3rd Generation Partnership Project) established the 5WWC (Wireless and Wireline Convergence for the 5G System) project to support the unified access of fixed wireless and wired access networks to the 5GC (5th Generation Core Network). Specifically, it defined a technical solution for Residential Gateways (RGs) to access the 5GC via wired access networks. In this solution, to enable RGs to access the 5GC via wired access networks, the 5GC needs to assign IP addresses (Internet Protocol Addresses) to the RGs.
[0003] In related technologies, the FN-RG (Fixed Network-Residential Gateway) requests an IP address from the Wireline Access Gateway Function (W-AGF) via the Dynamic Host Configuration Protocol (DHCP). After receiving the DHCP message sent by the FN-RG, the W-AGF initiates a PDU (Protocol Data Unit) session establishment process through the N2 interface to obtain an IP address from the relevant network elements of the 5GC, and then assigns the obtained IP address to the FN-RG via the DHCP message.
[0004] However, in the above IP address allocation method, W-AGF needs to obtain the IP address from the received PDU session resource setting request and encapsulate the obtained IP address into a DHCP message before it can be allocated to the corresponding FN-RG in the form of a DHCP message. This increases the workload of the information processed by W-AGF, thereby increasing the load on the corresponding network devices. Summary of the Invention
[0005] This application provides an IP address allocation method, apparatus, communication device, and storage medium to solve the problem that the amount of information processed by W-AGF in existing IP address allocation methods is large, thereby increasing the load on the corresponding network devices.
[0006] In a first aspect, embodiments of this application provide an IP address allocation method, applied to a wired access gateway (W-AGF) device, comprising:
[0007] Receive a first Dynamic Host Configuration Protocol (DHCP) message containing identification information of the Fixed Network-Home Gateway (FN-RG) device;
[0008] The first DHCP message is sent to the Session Management Function (SMF) device via the Access and Mobility Management Function (AMF) device;
[0009] After receiving the second DHCP message carrying the target IP address and the identification information returned by the SMF device through the AMF device, the second DHCP message is sent to the FN-RG device so that the FN-RG device uses the target IP address as the IP address of the FN-RG device. The second DHCP message is generated by the SMF device based on the first DHCP message, and the target IP address is the available IP address of the SMF device.
[0010] The IP address allocation method provided in this application involves the W-AGF device first forwarding a first DHCP message containing the identification information of the FN-RG device, sent by the FN-RG device, to the SMF device. The SMF device then generates a second DHCP message containing the target IP address and identification information based on the first DHCP message. Finally, the W-AGF device forwards the received second DHCP message back from the SMF device to the FN-RG device, enabling the FN-RG device to use the target IP address as its own IP address. This method utilizes only DHCP throughout the entire IP address allocation process. Compared to the prior art where the W-AGF device obtains the IP address from the PDU session information and encapsulates it into a DHCP message to allocate the IP address to the FN-RG device, the DHCP-based method eliminates the need for information conversion, thus reducing the workload of the W-AGF device and lowering the network load on the system.
[0011] In an optional embodiment, after sending the second DHCP message to the FN-RG device, the method further includes:
[0012] After receiving the DHCP request message sent by the FN-RG device, the DHCP request message is sent to the SMF device through the AMF device, so that the SMF device generates a DHCP confirmation message to indicate that the target IP address allocation is completed based on the DHCP request message. The DHCP request message is generated by the FN-RG device after receiving the second DHCP message.
[0013] After receiving the DHCP confirmation message returned by the SMF device through the AMF device, the DHCP confirmation message is sent to the FN-RG device.
[0014] In the above method, after the W-AGF device sends the second DHCP message to the FN-RG device, it forwards the received DHCP request message from the FN-RG device to the SMF device. This allows the SMF device to generate a DHCP confirmation message indicating that the target IP address allocation is complete, and then forwards the received DHCP confirmation message from the SMF device to the FN-RG device. This reconfirmation of IP address allocation via DHCP improves the reliability of IP address allocation.
[0015] In an optional embodiment, after receiving the first DHCP message containing the identification information of the Fixed Network-Home Gateway (FN-RG) device and before sending the first DHCP message to the Session Management Function (SMF) device through the Access and Mobility Management Function (AMF) device, the method further includes:
[0016] The AMF device sends a Protocol Data Unit (PDU) session establishment request containing the identification information to the SMF device, so that the SMF device returns a preset IP address to the AMF device after receiving the PDU session establishment request;
[0017] The system receives a PDU resource configuration request containing the preset IP address returned by the AMF device, wherein the PDU resource configuration request is generated by the AMF device based on the preset IP address returned by the SMF device.
[0018] In the above method, after the W-AGF device receives the first DHCP message containing the identification information of the FN-RG device, it sends a PDU session establishment request containing the identification information to the SMF device. This causes the SMF device to return a preset IP address to the AMF device after receiving the PDU session establishment request, and to receive a PDU resource configuration request containing the preset IP address returned by the AMF device. Then, the W-AGF device sends the first DHCP message to the SMF device through the AMF device, so that the SMF device generates a second DHCP message containing the target IP address and identification information based on the first DHCP message, thereby allocating the target IP address to the FN-RG device.
[0019] Secondly, embodiments of this application provide an Internet Protocol (IP) address allocation method, applied to a Session Management Function (SMF) device, comprising:
[0020] Receive a first Dynamic Host Configuration Protocol (DHCP) message sent by the Wired Access Gateway Function (W-AGF) device through the Access and Mobility Management Function (AMF) device, wherein the first DHCP message contains identification information of the Fixed Network-Home Gateway (FN-RG) device;
[0021] A second DHCP message is generated based on the first DHCP message, carrying the target IP address to be allocated to the FN-RG device and the identification information, wherein the target IP address is an available IP address of the SMF device;
[0022] The second DHCP message is sent to the W-AGF device through the AMF device, so that the W-AGF device sends the target IP address to the FN-RG device.
[0023] In an optional embodiment, after sending the second DHCP message to the W-AGF device via the AMF device, the method further includes:
[0024] Receive a DHCP request message sent by the AMF device, wherein the DHCP request message is sent by the FN-RG device to the AMF device through the W-AGF device;
[0025] Generate a DHCP confirmation message to indicate that the target IP address allocation is complete based on the DHCP request message;
[0026] The DHCP confirmation message is sent to the W-AGF device through the AMF device, so that the W-AGF device sends the DHCP confirmation message to the FN-RG device.
[0027] In an optional embodiment, before receiving the first Dynamic Host Configuration Protocol (DHCP) message sent by the Wired Access Gateway Function (W-AGF) device through the Access and Mobility Management Function (AMF) device, the method further includes:
[0028] The device receives a Protocol Data Unit (PDU) session establishment request containing the identification information sent by the W-AGF device through the AMF device, wherein the PDU session establishment request is generated by the W-AGF device based on the first DHCP message;
[0029] A preset IP address is returned to the AMF device, so that the AMF device sends a PDU resource configuration request containing the preset IP address to the W-AGF device, thereby triggering the W-AGF device to send the first DHCP message.
[0030] Thirdly, embodiments of this application provide an Internet Protocol (IP) address allocation method applied to an Access and Mobility Management Function (AMF) device, comprising:
[0031] After receiving a first Dynamic Host Configuration Protocol (DHCP) message containing the identification information of a Fixed Network-Home Gateway (FN-RG) device from a Wired Access Gateway (W-AGF) device, the first DHCP message is sent to a Session Management Function (SMF) device, so that the SMF device generates a second DHCP message carrying a target IP address and the identification information based on the first DHCP message, wherein the target IP address is an available IP address allocated by the SMF device for the FN-RG device;
[0032] After receiving the second DHCP message returned by the SMF device, the second DHCP message is sent to the FN-RG device through the W-AGF device, so that the FN-RG device uses the target IP address as the IP address of the FN-RG device.
[0033] In an optional embodiment, after sending the second DHCP message to the FN-RG device through the W-AGF device, the method further includes:
[0034] After receiving the DHCP request message sent by the FN-RG device through the W-AGF device, the DHCP request message is sent to the SMF device so that the SMF device generates a DHCP confirmation message to indicate that the target IP address allocation is complete, wherein the DHCP request message is generated by the FN-RG device after receiving the second DHCP message;
[0035] After receiving the DHCP confirmation message returned by the SMF device, the DHCP confirmation message is sent to the FN-RG device through the W-AGF device.
[0036] In an optional embodiment, before receiving the first Dynamic Host Configuration Protocol (DHCP) message containing the identification information of the Fixed Network-Home Gateway (FN-RG) device sent by the Wired Access Gateway Function (W-AGF) device, the method further includes:
[0037] Receive a Protocol Data Unit (PDU) session establishment request containing the identification information sent by the W-AGF device, wherein the PDU session establishment request is generated by the W-AGF device based on the first DHCP message;
[0038] The PDU session establishment request is sent to the SMF device, so that the SMF device returns a preset IP address after receiving the PDU session establishment request;
[0039] Upon receiving the preset IP address, a PDU resource configuration request containing the preset IP address is generated, and the PDU resource configuration request is sent to the W-AGF device to trigger the W-AGF device to send the first DHCP message.
[0040] Fourthly, embodiments of this application provide an Internet Protocol (IP) address allocation device, applied to a wired access gateway (W-AGF) device, comprising:
[0041] The first receiving unit is configured to receive a first Dynamic Host Configuration Protocol (DHCP) message containing identification information of a fixed network-home gateway (FN-RG) device.
[0042] The first sending unit is configured to send the first DHCP message to the Session Management Function (SMF) device through the Access and Mobility Management Function (AMF) device;
[0043] The first relay unit is configured to, upon receiving a second DHCP message carrying a target IP address and the identification information returned by the SMF device through the AMF device, send the second DHCP message to the FN-RG device, so that the FN-RG device uses the target IP address as its IP address. The second DHCP message is generated by the SMF device based on the first DHCP message, and the target IP address is an available IP address of the SMF device.
[0044] Fifthly, embodiments of this application provide an Internet Protocol (IP) address allocation device, applied to a Session Management Function (SMF) device, comprising:
[0045] The second receiving unit is used to receive a first Dynamic Host Configuration Protocol (DHCP) message sent by the Wired Access Gateway Function (W-AGF) device through the Access and Mobility Management Function (AMF) device, wherein the first DHCP message contains identification information of the Fixed Network-Home Gateway (FN-RG) device.
[0046] The first processing unit is configured to generate a second DHCP message carrying a target IP address allocated to the FN-RG device and the identification information based on the first DHCP message, wherein the target IP address is an available IP address of the SMF device;
[0047] The second sending unit is used to send the second DHCP message to the W-AGF device through the AMF device, so that the W-AGF device sends the target IP address to the FN-RG device.
[0048] Sixthly, embodiments of this application provide an Internet Protocol (IP) address allocation device, applied to an Access and Mobility Management Function (AMF) device, comprising:
[0049] The second relay unit is configured to, upon receiving a first Dynamic Host Configuration Protocol (DHCP) message containing identification information of a Fixed Network-Home Gateway (FN-RG) device from a Wired Access Gateway (W-AGF) device, send the first DHCP message to a Session Management Function (SMF) device, so that the SMF device generates a second DHCP message carrying a target IP address and the identification information based on the first DHCP message, wherein the target IP address is an available IP address allocated by the SMF device for the FN-RG device;
[0050] The third relay unit is used to send the second DHCP message to the FN-RG device through the W-AGF device after receiving the second DHCP message returned by the SMF device, so that the FN-RG device uses the target IP address as the IP address of the FN-RG device.
[0051] In a seventh aspect, embodiments of this application provide an Internet Protocol (IP) address allocation system, including a Fixed Network-Home Gateway (FN-RG) device, a Wired Access Gateway Function (W-AGF) device, an Access and Mobility Management Function (AMF) device, and a Session Management Function (SMF) device, wherein:
[0052] The FN-RG device is configured to send a first Dynamic Host Configuration Protocol (DHCP) message containing the identification information of the FN-RG device sequentially through the W-AGF device and the AMF device to the SMF device, so that the SMF device generates a second DHCP message carrying a target IP address and the identification information based on the first DHCP message, wherein the target IP address is an available IP address of the SMF; and receive the second DHCP message returned by the SMF device sequentially through the AMF device and the W-AGF device, and use the target IP address as the IP address of the FN-RG device.
[0053] The W-AGF device is used to perform the steps of the Internet Protocol IP address allocation method as described in any of the embodiments of the first aspect above;
[0054] The SMF device is used to perform the steps of the Internet Protocol IP address allocation method as described in any of the embodiments of the second aspect above;
[0055] The AMF device is used to perform the steps of the Internet Protocol IP address allocation method as described in any of the embodiments of the third aspect above.
[0056] Eighthly, embodiments of this application provide a communication device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the Internet Protocol (IP) address allocation method as described in any one of the embodiments of the first, second, or third aspects above.
[0057] Ninthly, embodiments of this application provide a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the steps of the Internet Protocol (IP) address allocation method as described in any one of the first, second, or third aspects above.
[0058] The technical effects that may be achieved by the Internet Protocol (IP) address allocation method disclosed in the second aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, the seventh aspect, the eighth aspect, and the ninth aspect, the computer-readable storage medium disclosed above, please refer to the above description of the technical effects that may be achieved by the various possible solutions in the first aspect or the first aspect, and will not be repeated here. Attached Figure Description
[0059] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0060] Figure 1 This application provides a schematic diagram of the architecture of a communication system.
[0061] Figure 2 This application provides a schematic diagram of the architecture of an IP address allocation system.
[0062] Figure 3 A schematic interactive flowchart illustrating IP address allocation based on an IP address allocation system, provided as an embodiment of this application;
[0063] Figure 4 A schematic interactive flowchart illustrating another IP address allocation system provided in this application embodiment;
[0064] Figure 5 This application provides a schematic and complete interactive flowchart illustrating an IP address allocation system based on an IP address allocation embodiment.
[0065] Figure 6 A schematic flowchart illustrating an IP address allocation method provided in an embodiment of this application;
[0066] Figure 7 A schematic flowchart illustrating another IP address allocation method provided in an embodiment of this application;
[0067] Figure 8 A schematic flowchart illustrating another IP address allocation method provided in an embodiment of this application;
[0068] Figure 9 A schematic diagram of the module structure of an IP address allocation device provided in an embodiment of this application;
[0069] Figure 10 A schematic diagram of the module structure of another IP address allocation device provided in the embodiments of this application;
[0070] Figure 11 A schematic diagram of the module structure of another IP address allocation device provided in the embodiments of this application;
[0071] Figure 12 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;
[0072] Figure 13This is a schematic diagram of a program product for an IP address allocation method provided in an embodiment of this application. Detailed Implementation
[0073] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0074] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0075] Embodiments of this application provide an IP address allocation method, apparatus, communication device, and storage medium to address the problem that existing IP address allocation methods involve a large workload of information processed via W-AGF, thereby increasing the load on the corresponding network devices.
[0076] The technical solution in this application will now be described with reference to the accompanying drawings:
[0077] Figure 1 A schematic diagram of the architecture of a communication system is shown. Figure 1 As shown, the communication system includes: a terminal device, an FN-RG device, a 5GC, and a DN (Data Network). The terminal device sends a PDU session establishment request to the 5GC through the FN-RG device. During the PDU session establishment process, the 5GC assigns an IP address to the FN-RG device through its Session Management Function (SMF) device, and transmits data between the FN-RG device and the 5GC's User Plane Function (UPF) device through the established PDU session. After the PDU session is established, the terminal device can access the 5GC through the FN-RG device, thereby enabling interaction with the DN.
[0078] It should be noted that the terminal device in this application embodiment can be a user equipment (UE), a handheld terminal, a laptop computer, a cellular phone, a smartphone, a tablet computer, a handheld device, an augmented reality (AR) device, a virtual reality (VR) device, a machine-type communication terminal, or other devices capable of accessing a network. The terminal device and the FN-RG device communicate with each other using some air interface technology (such as New Radio (NR) or Long Term Evolution (LTE) technology), and this application embodiment does not impose any limitations on this. Furthermore, in this application embodiment… Figure 1 The communication architecture shown can be based on a 5G communication system or a future communication system, and this application embodiment does not impose any restrictions on it.
[0079] To reduce the workload of processing information via W-AGF, embodiments of this application provide an IP address allocation system, wherein... Figure 2 A schematic diagram of the IP address allocation system is shown, as follows: Figure 2 As shown, the IP address allocation system includes: a Fixed Network-Residential Gateway (FN-RG) device 201, a Wireline Access Gateway Function (W-AGF) device 202, an Access and Mobility Management Function (AMF) device 203, a Session Management Function (SMF) device 204, a User Plane Function (UPF) device 205, and a Data Network (DN) 206.
[0080] The FN-RG device 201 is mainly used to connect terminal devices in the home to the Internet, and interacts with the W-AGF device 202 of 5GC through the air interface.
[0081] The W-AGF device 202 is configured with a Dynamic Host Configuration Protocol Relay (DHCP Relay), which is mainly responsible for wired access of home gateway devices and forwarding DHCP-related messages.
[0082] AMF device 203 is configured with a DHCP Relay and is mainly responsible for signaling processing, such as access control, mobility management, attach and detach, and gateway selection. When providing services for a session in a terminal, AMF device 203 can also provide control plane storage resources for that session to store the session identifier, the SMF identifier associated with the session identifier, etc. AMF device 203 can also forward DHCP-related messages.
[0083] SMF device 204 is configured with a Dynamic Host Configuration Protocol (DHCP) server, which is mainly responsible for IP address allocation, DHCP-related services, user plane network element selection, user plane network element redirection, bearer establishment, modification and release, and Quality of Service (QoS) control.
[0084] UPF device 205 is primarily responsible for forwarding and receiving user data in the terminal. For example, UPF device 205 can receive user data from DN206 and transmit it to the terminal through the access network equipment, and it can also receive user data from the terminal through the access network equipment and forward it to DN206. The transmission resources and scheduling functions that provide services to the terminal in UPF device 205 are managed and controlled by SMF device 204.
[0085] In this network architecture, N1 is the reference point between W-AGF device 202 and AMF device 203; N2 is the reference point between W-AGF device 202 and AMF device 203, used for sending Non-Access Stratum (NAS) messages, etc.; N3 is the reference point between W-AGF device 202 and UPF device 205, used for transmitting user plane data, etc.; N4 is the reference point between SMF device 204 and UPF device 205, used for transmitting information such as tunnel identification information for N3 connection, data buffer indication information, and downlink data notification messages, etc.; interface N6 is the reference point between UPF device 205 and DN 206, used for transmitting user plane data, etc.; interface N11 is the reference point between AMF device 203 and SMF device 204.
[0086] For example Figure 2 The IP address allocation system in [the system] can allocate IP addresses in the following ways, such as... Figure 3 The diagram shown is an illustrative interactive flowchart of an IP address allocation system provided in this application embodiment, as described below:
[0087] Step 301: FN-RG device 201 sends the first DHCP message to W-AGF device 202.
[0088] It should be noted that the first DHCP message contains identification information for the FN-RG device 201. For example, the identification information may be a Subscription Concealed Identifier (SUCI), an Access Network Insertion Line Identifier, or other information used to identify the FN-RG device 201. This application embodiment does not impose any limitations on this.
[0089] Step 302: After receiving the first DHCP message sent by the FN-RG device 201, the W-AGF device 202 sends the first DHCP message to the AMF device 203.
[0090] Step 303: After receiving the first DHCP message containing the identification information of the FN-RG device 201 sent by the W-AGF device 202, the AMF device 203 sends the first DHCP message to the SMF device 204.
[0091] Step 304: After receiving the first DHCP message containing the identification information of the FN-RG device 201 sent by the AMF device 203, the SMF device 204 generates a second DHCP message carrying the target IP address and identification information based on the first DHCP message.
[0092] It should be noted that the target IP address is the available IP address of the SMF device 204. For example, the target IP address can be 192.168.1.151.
[0093] Optionally, in this embodiment, the target IP address is an available IP address of the SMF device 204. The number of target IP addresses is related to the number of terminal devices connected to the FN-RG device 201. Specifically, the target IP address can be any one of the available IP addresses of the SMF device 204, or it can be multiple available IP addresses of the SMF device 204. This embodiment does not impose any restrictions on this.
[0094] Step 305: After generating a second DHCP message carrying the target IP address and identification information based on the first DHCP message, SMF device 204 sends the second DHCP message to AMF device 203.
[0095] Step 306: After receiving the second DHCP message carrying the target IP address and identification information sent by the SMF device 204, the AMF device 203 sends the second DHCP message to the W-AGF device 202.
[0096] Step 307: After receiving the second DHCP message carrying the target IP address and identification information sent by the AMF device 203, the W-AGF device 202 sends the second DHCP message to the FN-RG device 201.
[0097] Step 308: After receiving the second DHCP message carrying the target IP address and identification information sent by the W-AGF device 202, the FN-RG device 201 uses the target IP address carried in the second DHCP message as the IP address of the FN-RG device 201.
[0098] In the above embodiments, only DHCP is used for interaction in the entire process of IP address allocation based on the IP address allocation system. W-AGF device 202 and AMF device 203, as relay devices, are only responsible for forwarding DHCP messages. Therefore, compared with the existing technology where W-AGF devices need to extract IP addresses and re-encapsulate them, since no information conversion is required, the workload of W-AGF device 202 can be reduced and the network load of the system can be reduced.
[0099] For example Figure 2 The IP address allocation system in the system can also allocate IP addresses through a combination of DHCP interaction and PDU sessions, such as... Figure 4 The diagram shown below illustrates another interactive flowchart for IP address allocation based on an IP address allocation system provided in this application embodiment, as described below:
[0100] Step 401: FN-RG device 201 sends the first DHCP message to W-AGF device 202.
[0101] It should be noted that the first DHCP message contains identification information for the FN-RG device 201. For example, the identification information may be a Subscription Concealed Identifier (SUCI), an Access Network Insertion Line Identifier, or other information used to identify the FN-RG device 201. This application embodiment does not impose any limitations on this.
[0102] Step 402: After receiving the first DHCP message sent by the FN-RG device 201, the W-AGF device 202 sends a PDU session establishment request to the AMF device 203.
[0103] It should be noted that the PDU session establishment request is generated by the W-AGF device 202 after receiving the first DHCP message from the FN-RG device 201, and the PDU session establishment request contains the identification information of the FN-RG device 201.
[0104] Step 403: After receiving the PDU session establishment request sent by the W-AGF device 202, the AMF device 203 sends the PDU session establishment request to the SMF device 204.
[0105] Step 404: After receiving the PDU session establishment request containing the identification information of FN-RG device 201 sent by AMF device 203, SMF device 204 sends a preset IP address to AMF device 203.
[0106] It should be noted that when SMF device 204 receives a PDU session establishment request sent by AMF device 203 and recognizes that the PDU session establishment request contains the identification information of FN-RG device 201, it sends a preset IP address to AMF device 203.
[0107] Optionally, the preset IP address in this embodiment can be an all-zero IP address, for example, 0.0.0.0. This embodiment does not impose any restrictions on this. Furthermore, in this embodiment, the SMF device 204 can send QoS configuration files and other information in addition to the preset IP address. This embodiment does not impose any restrictions on this.
[0108] Step 405: After receiving the preset IP address sent by the SMF device 204, the AMF device 203 generates a PDU resource configuration request based on the preset IP address.
[0109] It should be noted that the PDU resource configuration request in this embodiment includes a preset IP address.
[0110] Optionally, in this embodiment of the application, the PDU resource configuration request may include a PDU session ID (Identity document), a QoS configuration file, and a PDU session establishment acceptance. This embodiment of the application does not impose any restrictions on these aspects.
[0111] Step 406: After generating a PDU resource configuration request based on the preset IP address, AMF device 203 sends the PDU resource configuration request to W-AGF device 202.
[0112] Step 407: After receiving the PDU resource configuration request containing the preset IP address sent by the AMF device 203, the W-AGF device 202 sends the first DHCP message to the AMF device 203.
[0113] It should be noted that in this embodiment of the application, when the W-AGF device 202 receives the PDU resource configuration request sent by the AMF device 203 and recognizes that the PDU resource configuration request contains a preset IP address, it sends a first DHCP message to the AMF device 203.
[0114] Step 408: After receiving the first DHCP message containing the identification information of the FN-RG device 201 sent by the W-AGF device 202, the AMF device 203 sends the first DHCP message to the SMF device 204.
[0115] Step 409: After receiving the first DHCP message containing the identification information of the FN-RG device 201 sent by the AMF device 203, the SMF device 204 generates a second DHCP message carrying the target IP address and identification information based on the first DHCP message.
[0116] It should be noted that the target IP address is the available IP address of the SMF device 204. For example, the target IP address can be 192.168.1.168.
[0117] Optionally, in this embodiment, the target IP address is an available IP address of the SMF device 204. The number of target IP addresses is related to the number of terminal devices connected to the FN-RG device 201. Specifically, the target IP address can be any one of the available IP addresses of the SMF device 204, or it can be multiple available IP addresses of the SMF device 204. This embodiment does not impose any restrictions on this.
[0118] Step 410: After generating a second DHCP message carrying the target IP address and identification information based on the first DHCP message, the SMF device 204 sends the second DHCP message to the AMF device 203.
[0119] Step 411: After receiving the second DHCP message carrying the target IP address and identification information sent by the SMF device 204, the AMF device 203 sends the second DHCP message to the W-AGF device 202.
[0120] Step 412: After receiving the second DHCP message carrying the target IP address and identification information sent by the AMF device 203, the W-AGF device 202 sends the second DHCP message to the FN-RG device 201.
[0121] Step 413: After receiving the second DHCP message carrying the target IP address and identification information sent by the W-AGF device 202, the FN-RG device 201 uses the target IP address carried in the second DHCP message as the IP address of the FN-RG device 201.
[0122] In the above embodiments, in the entire process of IP address allocation based on the IP address allocation system, before the W-AGF device 202 forwards the received first DHCP message to the AMF device 203, a PDU session establishment process is triggered by a PDU session establishment request. On the one hand, this clarifies the need for establishing a PDU session between the FN-RG device 201 and the 5GC, preventing the FN-RG device 201 from being assigned an IP address but not establishing a PDU session with the 5GC, thus avoiding a waste of IP address. On the other hand, the forwarding of the first DHCP message is triggered by the PDU resource configuration request containing the preset IP address received by the W-AGF device 202, ensuring that only DHCP is used in the IP address acquisition process, reducing the workload of the W-AGF device 202 in the IP address allocation process, and reducing the network load of the system.
[0123] For example Figure 2 IP address allocation system in China Figure 5 This application provides an embodiment of a schematic and complete interactive flowchart illustrating an IP address allocation system based on an IP address allocation system, including the following steps:
[0124] Step 501: FN-RG device 201 sends the first DHCP message to W-AGF device 202.
[0125] It should be noted that the first DHCP message contains identification information for the FN-RG device 201. For example, the identification information may be a Subscription Concealed Identifier (SUCI), an Access Network Insertion Line Identifier, or other information used to identify the FN-RG device 201. This application embodiment does not impose any limitations on this.
[0126] Step 502: After receiving the first DHCP message sent by the FN-RG device 201, the W-AGF device 202 sends a PDU session establishment request to the AMF device 203.
[0127] It should be noted that the PDU session establishment request is generated by the W-AGF device 202 after receiving the first DHCP message from the FN-RG device 201, and the PDU session establishment request contains the identification information of the FN-RG device 201.
[0128] Step 503: After receiving the PDU session establishment request sent by the W-AGF device 202, the AMF device 203 sends a PDU session establishment request to the SMF device 204.
[0129] Step 504: After receiving the PDU session establishment request from the AMF device 203 containing the identification information of the FN-RG device 201, the SMF device 204 sends a preset IP address to the AMF device 203.
[0130] It should be noted that when SMF device 204 receives a PDU session establishment request sent by AMF device 203 and recognizes that the PDU session establishment request contains the identification information of FN-RG device 201, it sends a preset IP address to AMF device 203.
[0131] Optionally, the preset IP address in this embodiment can be an all-zero IP address, for example, 0.0.0.0. This embodiment does not impose any restrictions on this. Furthermore, in this embodiment, the SMF device 204 can send QoS configuration files and other information in addition to the preset IP address. This embodiment does not impose any restrictions on this.
[0132] Step 505: After receiving the preset IP address sent by the SMF device 204, the AMF device 203 generates a PDU resource configuration request based on the preset IP address.
[0133] It should be noted that the PDU resource configuration request in this embodiment includes a preset IP address.
[0134] Optionally, in this embodiment of the application, the PDU resource configuration request may include a PDU session ID (Identity document), a QoS configuration file, and a PDU session establishment acceptance. This embodiment of the application does not impose any restrictions on these aspects.
[0135] Step 506: After generating a PDU resource configuration request based on the preset IP address, AMF device 203 sends the PDU resource configuration request to W-AGF device 202.
[0136] Step 507: After receiving the PDU resource configuration request containing the preset IP address sent by the AMF device 203, the W-AGF device 202 sends the first DHCP message to the AMF device 203.
[0137] It should be noted that in this embodiment of the application, when the W-AGF device 202 receives the PDU resource configuration request sent by the AMF device 203 and recognizes that the PDU resource configuration request contains a preset IP address, it sends a first DHCP message to the AMF device 203.
[0138] Step 508: After receiving the first DHCP message containing the identification information of the FN-RG device 201 sent by the W-AGF device 202, the AMF device 203 sends the first DHCP message to the SMF device 204.
[0139] Step 509: After receiving the first DHCP message containing the identification information of the FN-RG device 201 sent by the AMF device 203, the SMF device 204 generates a second DHCP message carrying the target IP address and identification information based on the first DHCP message.
[0140] It should be noted that the target IP address is the available IP address of the SMF device 204. For example, the target IP address can be 192.168.1.168.
[0141] Optionally, in this embodiment, the target IP address is an available IP address of the SMF device 204. The number of target IP addresses is related to the number of terminal devices connected to the FN-RG device 201. Specifically, the target IP address can be any one of the available IP addresses of the SMF device 204, or it can be multiple available IP addresses of the SMF device 204. This embodiment does not impose any restrictions on this.
[0142] Step 510: After generating a second DHCP message carrying the target IP address and identification information based on the first DHCP message, the SMF device 204 sends the second DHCP message to the AMF device 203.
[0143] Step 511: After receiving the second DHCP message carrying the target IP address and identification information sent by the SMF device 204, the AMF device 203 sends the second DHCP message to the W-AGF device 202.
[0144] Step 512: After receiving the second DHCP message carrying the target IP address and identification information sent by the AMF device 203, the W-AGF device 202 sends the second DHCP message to the FN-RG device 201.
[0145] Step 513: After receiving the second DHCP message carrying the target IP address and identification information sent by the W-AGF device 202, the FN-RG device sends a DHCP request message to the W-AGF device 202.
[0146] It should be noted that the DHCP request message in this embodiment is generated by the FN-RG device 201 after receiving the second DHCP message.
[0147] Step 514: After receiving the DHCP request message sent by the FN-RG device 201, the W-AGF device 202 sends a DHCP request message to the AMF device 203.
[0148] Step 515: After receiving the DHCP request message sent by the W-AGF device 202, the AMF device 203 sends a DHCP request message to the SMF device 204.
[0149] Step 516: After receiving the DHCP request message sent by the AMF device 203, the SMF device 204 generates a DHCP acknowledgment message based on the DHCP request message.
[0150] It should be noted that the DHCP confirmation message in this embodiment is used to indicate that the target IP address allocation is complete.
[0151] Step 517: After generating a DHCP confirmation message based on the DHCP request message, SMF device 204 sends the DHCP confirmation message to AMF device 203.
[0152] Step 518: After receiving the DHCP confirmation message sent by the SMF device 204, the AMF device 203 sends a DHCP confirmation message to the W-AGF device 202.
[0153] Step 519: After receiving the DHCP confirmation message sent by the AMF device 203, the W-AGF device 202 sends a DHCP confirmation message to the FN-RG device 201.
[0154] Step 520: After receiving the DHCP confirmation message sent by the W-AGF device 202, the FN-RG device 201 uses the target IP address carried in the second DHCP message as the IP address of the FN-RG device 201.
[0155] Based on the same concept, this embodiment of the invention also provides an IP address allocation method applied to a W-AGF device. Since this method is the same as the method in the IP address allocation system of this embodiment of the invention, and the principle of solving the problem by this method is similar to that of the system, the implementation of this method can refer to the implementation of the system, and the repeated parts will not be described again.
[0156] like Figure 6 As shown, this embodiment of the invention provides an IP address allocation method, including:
[0157] Step S601: Receive a first DHCP message containing the identification information of the FN-RG device;
[0158] Step S602: Send the first DHCP message to the SMF device through the AMF device;
[0159] Step S603: After receiving the second DHCP message carrying the target IP address and identification information returned by the SMF device through the AMF device, the second DHCP message is sent to the FN-RG device so that the FN-RG device uses the target IP address as the IP address of the FN-RG device. The second DHCP message is generated by the SMF device based on the first DHCP message, and the target IP address is the available IP address of the SMF device.
[0160] In an optional embodiment, after sending the second DHCP message to the FN-RG device, the method further includes:
[0161] After receiving the DHCP request message sent by the FN-RG device, the DHCP request message is sent to the SMF device through the AMF device, so that the SMF device generates a DHCP confirmation message to indicate that the target IP address allocation is complete based on the DHCP request message. The DHCP request message is generated by the FN-RG device after receiving the second DHCP message.
[0162] After receiving the DHCP acknowledgment message returned by the SMF device through the AMF device, the DHCP acknowledgment message is sent to the FN-RG device.
[0163] In an optional embodiment, after receiving the first DHCP message containing the identification information of the FN-RG device, and before sending the first DHCP message to the SMF device via the AMF device, the method further includes:
[0164] The AMF device sends a Protocol Data Unit (PDU) session establishment request containing identification information to the SMF device, so that the SMF device returns a preset IP address to the AMF device after receiving the PDU session establishment request;
[0165] Receive a PDU resource configuration request containing a preset IP address returned by the AMF device, wherein the PDU resource configuration request is generated by the AMF device based on the preset IP address returned by the SMF device.
[0166] Based on the same concept, this embodiment of the invention also provides an IP address allocation method applied to an SMF device. Since this method is the same as the method in the IP address allocation system of this embodiment of the invention, and the principle of solving the problem by this method is similar to that of the system, the implementation of this method can refer to the implementation of the system, and the repeated parts will not be described again.
[0167] like Figure 7 As shown, this embodiment of the invention provides an IP address allocation method, including:
[0168] Step S701: Receive a first DHCP message sent by the W-AGF device through the AMF device, wherein the first DHCP message contains the identification information of the FN-RG device;
[0169] Step S702: Generate a second DHCP message carrying the target IP address and identification information assigned to the FN-RG device based on the first DHCP message, wherein the target IP address is an available IP address of the SMF device;
[0170] Step S703: Send the second DHCP message to the W-AGF device through the AMF device, so that the W-AGF device sends the target IP address to the FN-RG device.
[0171] In an optional embodiment, after sending the second DHCP message to the W-AGF device via the AMF device, the method further includes:
[0172] Receive DHCP request messages sent by the AMF device, wherein the DHCP request message is sent by the FN-RG device to the AMF device through the W-AGF device;
[0173] Generate a DHCP acknowledgment message from the DHCP request message to indicate that the target IP address allocation is complete;
[0174] The DHCP acknowledgment message is sent to the W-AGF device through the AMF device, so that the W-AGF device will send the DHCP acknowledgment message to the FN-RG device.
[0175] In an optional embodiment, before receiving the first DHCP message sent by the W-AGF device through the AMF device, the method further includes:
[0176] Receive a Protocol Data Unit (PDU) session establishment request containing identification information sent by the W-AGF device through the AMF device, wherein the PDU session establishment request is generated by the W-AGF device based on the first DHCP message;
[0177] Return a preset IP address to the AMF device so that the AMF device sends a PDU resource configuration request containing the preset IP address to the W-AGF device, thereby triggering the W-AGF device to send the first DHCP message.
[0178] Based on the same concept, this embodiment of the invention also provides an IP address allocation method applied to an AMF device. Since this method is the same as the method in the IP address allocation system of this embodiment of the invention, and the principle of solving the problem by this method is similar to that of the system, the implementation of this method can refer to the implementation of the system, and the repeated parts will not be described again.
[0179] like Figure 8 As shown, this embodiment of the invention provides an IP address allocation method, including:
[0180] Step S801: After receiving the first Dynamic Host Configuration Protocol (DHCP) message containing the identification information of the Fixed Network-Home Gateway (FN-RG) device sent by the Wired Access Gateway (W-AGF) device, the first DHCP message is sent to the Session Management Function (SMF) device, so that the SMF device generates a second DHCP message carrying the target IP address and identification information based on the first DHCP message, wherein the target IP address is an available IP address allocated by the SMF device for the FN-RG device;
[0181] Step S802: After receiving the second DHCP message returned by the SMF device, the second DHCP message is sent to the FN-RG device through the W-AGF device, so that the FN-RG device uses the target IP address as the IP address of the FN-RG device.
[0182] In an optional embodiment, after sending the second DHCP message to the FN-RG device via the W-AGF device, the method further includes:
[0183] After receiving the DHCP request message sent by the FN-RG device through the W-AGF device, the DHCP request message is sent to the SMF device so that the SMF device can generate a DHCP confirmation message to indicate that the target IP address allocation is complete. The DHCP request message is generated by the FN-RG device after receiving the second DHCP message.
[0184] After receiving the DHCP confirmation message returned by the SMF device, the DHCP confirmation message is sent to the FN-RG device through the W-AGF device.
[0185] In an optional embodiment, before receiving the first DHCP message containing the identification information of the FN-RG device sent by the W-AGF device, the method further includes:
[0186] Receive a Protocol Data Unit (PDU) session establishment request containing identification information sent by the W-AGF device, wherein the PDU session establishment request is generated by the W-AGF device based on the first DHCP message;
[0187] Send a PDU session establishment request to the SMF device so that the SMF device returns a preset IP address after receiving the PDU session establishment request;
[0188] Upon receiving the preset IP address, a PDU resource configuration request containing the preset IP address is generated and sent to the W-AGF device to trigger the W-AGF device to send the first DHCP message.
[0189] Based on the same concept, this embodiment of the invention also provides an IP address allocation device applied to a W-AGF device. Since this device is the same as the device in the method of this embodiment of the invention, and the principle of the device in solving the problem is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0190] like Figure 9 As shown, the above-mentioned device includes the following modules:
[0191] The first receiving unit 901 is configured to receive a first DHCP message containing the identification information of the FN-RG device;
[0192] The first sending unit 902 is used to send the first DHCP message to the SMF device through the AMF device;
[0193] The first relay unit 903 is used to send the second DHCP message to the FN-RG device after receiving the second DHCP message carrying the target IP address and identification information returned by the SMF device through the AMF device, so that the FN-RG device uses the target IP address as the IP address of the FN-RG device. The second DHCP message is generated by the SMF device based on the first DHCP message, and the target IP address is the available IP address of the SMF device.
[0194] In an optional embodiment, the above-described apparatus further includes a fourth relay unit;
[0195] The fourth relay unit is used to send the DHCP request message to the SMF device through the AMF device after receiving the DHCP request message sent by the FN-RG device, so that the SMF device can generate a DHCP confirmation message to indicate that the target IP address allocation is completed according to the DHCP request message. The DHCP request message is generated by the FN-RG device after receiving the second DHCP message.
[0196] After receiving the DHCP acknowledgment message returned by the SMF device through the AMF device, the DHCP acknowledgment message is sent to the FN-RG device.
[0197] In an optional embodiment, the above-described device further includes a first triggering unit;
[0198] The first triggering unit is used to send a Protocol Data Unit (PDU) session establishment request containing identification information to the SMF device through the AMF device, so that the SMF device returns a preset IP address to the AMF device after receiving the PDU session establishment request;
[0199] Receive a PDU resource configuration request containing a preset IP address returned by the AMF device, wherein the PDU resource configuration request is generated by the AMF device based on the preset IP address returned by the SMF device.
[0200] Based on the same concept, this embodiment of the invention also provides an IP address allocation device applied to an SMF device. Since this device is the same as the device in the method of this embodiment of the invention, and the principle of the device in solving the problem is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0201] like Figure 10 As shown, the above-mentioned device includes the following modules:
[0202] The second receiving unit 1001 is used to receive a first DHCP message sent by the W-AGF device through the AMF device, wherein the first DHCP message contains the identification information of the FN-RG device;
[0203] The first processing unit 1002 is configured to generate a second DHCP message carrying a target IP address and identification information allocated to the FN-RG device based on the first DHCP message, wherein the target IP address is an available IP address of the SMF device;
[0204] The second sending unit 1003 is used to send the second DHCP message to the W-AGF device through the AMF device, so that the W-AGF device sends the target IP address to the FN-RG device.
[0205] In one optional embodiment, the above-described apparatus further includes a second processing unit;
[0206] The second processing unit is used to receive DHCP request messages sent by the AMF device, wherein the DHCP request message is sent by the FN-RG device to the AMF device through the W-AGF device;
[0207] Generate a DHCP acknowledgment message from the DHCP request message to indicate that the target IP address allocation is complete;
[0208] The DHCP acknowledgment message is sent to the W-AGF device through the AMF device, so that the W-AGF device will send the DHCP acknowledgment message to the FN-RG device.
[0209] In an optional embodiment, the above-described device further includes a second triggering unit;
[0210] The second triggering unit is used to receive a Protocol Data Unit (PDU) session establishment request containing identification information sent by the W-AGF device through the AMF device, wherein the PDU session establishment request is generated by the W-AGF device according to the first DHCP message;
[0211] Return a preset IP address to the AMF device so that the AMF device sends a PDU resource configuration request containing the preset IP address to the W-AGF device, thereby triggering the W-AGF device to send the first DHCP message.
[0212] Based on the same concept, this embodiment of the invention also provides an IP address allocation device applied to an AMF device. Since this device is the same as the device in the method of this embodiment of the invention, and the principle of the device in solving the problem is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0213] like Figure 11 As shown, the above-mentioned device includes the following modules:
[0214] The second relay unit 1101 is used to send a first Dynamic Host Configuration Protocol (DHCP) message containing the identification information of a Fixed Network-Home Gateway (FN-RG) device to a Session Management Function (SMF) device after receiving a first DHCP message from a Wired Access Gateway (W-AGF) device. This allows the SMF device to generate a second DHCP message carrying a target IP address and identification information based on the first DHCP message. The target IP address is an available IP address allocated by the SMF device for the FN-RG device.
[0215] The third relay unit 1102 is used to send the second DHCP message to the FN-RG device through the W-AGF device after receiving the second DHCP message returned by the SMF device, so that the FN-RG device uses the target IP address as the IP address of the FN-RG device.
[0216] In an optional embodiment, the above-described apparatus further includes a fifth relay unit;
[0217] The fifth relay unit is used to send the DHCP request message to the SMF device after receiving the DHCP request message sent by the FN-RG device through the W-AGF device, so that the SMF device can generate a DHCP confirmation message to indicate that the target IP address allocation is completed according to the DHCP request message. The DHCP request message is generated by the FN-RG device after receiving the second DHCP message.
[0218] After receiving the DHCP confirmation message returned by the SMF device, the DHCP confirmation message is sent to the FN-RG device through the W-AGF device.
[0219] In an optional embodiment, the above-described device further includes a third triggering unit;
[0220] The third triggering unit is used to receive a Protocol Data Unit (PDU) session establishment request containing identification information sent by the W-AGF device, wherein the PDU session establishment request is generated by the W-AGF device based on the first DHCP message;
[0221] Send a PDU session establishment request to the SMF device so that the SMF device returns a preset IP address after receiving the PDU session establishment request;
[0222] Upon receiving the preset IP address, a PDU resource configuration request containing the preset IP address is generated and sent to the W-AGF device to trigger the W-AGF device to send the first DHCP message.
[0223] Based on the same concept, this embodiment of the invention also provides a communication device that can be applied to W-AGF devices, SMF devices, and AMF devices. Since this communication device is the same as the communication device in the method of this embodiment of the invention, and the principle of the communication device in solving the problem is similar to that of the method, the implementation of this communication device can refer to the implementation of the method, and repeated details will not be described again.
[0224] The following reference Figure 12 To describe the communication device 120 according to this embodiment of the present invention. Figure 12 The communication device 120 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0225] like Figure 12As shown, the communication device 120 can be manifested as a general-purpose computing device, such as a 5G communication network device. The components of the communication device 120 may include, but are not limited to: at least one processor 121, at least one memory 122 storing instructions executable by the processor 121, and a bus 123 connecting different system components (including memory 122 and processor 121), wherein the processor 121 is a processor of a smart device.
[0226] In one possible implementation, processor 121 performs the following steps by executing executable instructions:
[0227] Receive the first DHCP message containing the identification information of the FN-RG device;
[0228] The first DHCP message is sent from the AMF device to the SMF device;
[0229] After receiving the second DHCP message carrying the target IP address and identification information returned by the SMF device through the AMF device, the second DHCP message is sent to the FN-RG device so that the FN-RG device uses the target IP address as its IP address. The second DHCP message is generated by the SMF device based on the first DHCP message, and the target IP address is an available IP address of the SMF device.
[0230] Optionally, processor 121 is specifically used for:
[0231] After receiving the DHCP request message sent by the FN-RG device, the DHCP request message is sent to the SMF device through the AMF device, so that the SMF device generates a DHCP confirmation message to indicate that the target IP address allocation is complete based on the DHCP request message. The DHCP request message is generated by the FN-RG device after receiving the second DHCP message.
[0232] After receiving the DHCP acknowledgment message returned by the SMF device through the AMF device, the DHCP acknowledgment message is sent to the FN-RG device.
[0233] Optionally, processor 121 is specifically used for:
[0234] The AMF device sends a Protocol Data Unit (PDU) session establishment request containing identification information to the SMF device, so that the SMF device returns a preset IP address to the AMF device after receiving the PDU session establishment request;
[0235] Receive a PDU resource configuration request containing a preset IP address returned by the AMF device, wherein the PDU resource configuration request is generated by the AMF device based on the preset IP address returned by the SMF device.
[0236] In another possible implementation, processor 121 performs the following steps by executing executable instructions:
[0237] Receive a first DHCP message sent by the W-AGF device through the AMF device, wherein the first DHCP message contains the identification information of the FN-RG device;
[0238] A second DHCP message is generated based on the first DHCP message, carrying the target IP address and identification information to be assigned to the FN-RG device, wherein the target IP address is an available IP address of the SMF device;
[0239] The second DHCP message is sent to the W-AGF device through the AMF device, so that the W-AGF device sends the target IP address to the FN-RG device.
[0240] Optionally, processor 121 is specifically used for:
[0241] Receive DHCP request messages sent by the AMF device, wherein the DHCP request message is sent by the FN-RG device to the AMF device through the W-AGF device;
[0242] Generate a DHCP acknowledgment message from the DHCP request message to indicate that the target IP address allocation is complete;
[0243] The DHCP acknowledgment message is sent to the W-AGF device through the AMF device, so that the W-AGF device will send the DHCP acknowledgment message to the FN-RG device.
[0244] Optionally, processor 121 is specifically used for:
[0245] Receive a Protocol Data Unit (PDU) session establishment request containing identification information sent by the W-AGF device through the AMF device, wherein the PDU session establishment request is generated by the W-AGF device based on the first DHCP message;
[0246] Return a preset IP address to the AMF device so that the AMF device sends a PDU resource configuration request containing the preset IP address to the W-AGF device, thereby triggering the W-AGF device to send the first DHCP message.
[0247] In another possible implementation, processor 121 performs the following steps by executing executable instructions:
[0248] After receiving a first Dynamic Host Configuration Protocol (DHCP) message containing the identification information of the Fixed Network-Home Gateway (FN-RG) device sent by the Wired Access Gateway (W-AGF) device, the first DHCP message is sent to the Session Management Function (SMF) device, so that the SMF device generates a second DHCP message carrying the target IP address and identification information based on the first DHCP message, wherein the target IP address is an available IP address allocated by the SMF device for the FN-RG device;
[0249] After receiving the second DHCP message returned by the SMF device, the second DHCP message is sent to the FN-RG device through the W-AGF device, so that the FN-RG device uses the target IP address as its IP address.
[0250] Optionally, processor 121 is specifically used for:
[0251] After receiving the DHCP request message sent by the FN-RG device through the W-AGF device, the DHCP request message is sent to the SMF device so that the SMF device can generate a DHCP confirmation message to indicate that the target IP address allocation is complete. The DHCP request message is generated by the FN-RG device after receiving the second DHCP message.
[0252] After receiving the DHCP confirmation message returned by the SMF device, the DHCP confirmation message is sent to the FN-RG device through the W-AGF device.
[0253] Optionally, processor 121 is specifically used for:
[0254] Receive a Protocol Data Unit (PDU) session establishment request containing identification information sent by the W-AGF device, wherein the PDU session establishment request is generated by the W-AGF device based on the first DHCP message;
[0255] Send a PDU session establishment request to the SMF device so that the SMF device returns a preset IP address after receiving the PDU session establishment request;
[0256] Upon receiving the preset IP address, a PDU resource configuration request containing the preset IP address is generated and sent to the W-AGF device to trigger the W-AGF device to send the first DHCP message.
[0257] Bus 123 represents one or more of several types of bus structures, including memory bus or memory controller, peripheral bus, processor, or local bus using any of the multiple bus structures.
[0258] The memory 122 may include a readable medium in the form of volatile memory, such as random access memory (RAM) 1221 and / or cache memory 1222, and may further include read-only memory (ROM) 1223.
[0259] The memory 122 may also include a program / utility 1225 having a set (at least one) of program modules 1224, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0260] The communication device 120 can also communicate with one or more external devices 124 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with the communication device 120, and / or any device that enables the communication device 120 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 125. Furthermore, the communication device 120 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 126. As shown, network adapter 126 communicates with other modules of the communication device 120 via bus 123. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with the communication device 120, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0261] In some possible implementations, various aspects of the present invention can also be implemented as a program product comprising program code that, when run on a terminal device, causes the terminal device to execute the steps of the modules in the IP address allocation apparatus according to various exemplary embodiments of the present disclosure as described in the "Exemplary Methods" section of this specification. For example, receiving a first DHCP message containing identification information of an FN-RG device; sending the first DHCP message to an SMF device via an AMF device; and, upon receiving a second DHCP message carrying a target IP address and identification information returned by the SMF device via the AMF device, sending the second DHCP message to the FN-RG device so that the FN-RG device uses the target IP address as its IP address, wherein the second DHCP message is generated by the SMF device based on the first DHCP message, and the target IP address is an available IP address of the SMF device. For example, the device receives a first DHCP message sent by the W-AGF device through the AMF device, wherein the first DHCP message contains the identification information of the FN-RG device; generates a second DHCP message based on the first DHCP message, carrying a target IP address and identification information allocated to the FN-RG device, wherein the target IP address is an available IP address of the SMF device; and sends the second DHCP message to the W-AGF device through the AMF device, so that the W-AGF device sends the target IP address to the FN-RG device. For example, after receiving a first Dynamic Host Configuration Protocol (DHCP) message containing the identification information of the Fixed Network-Home Gateway (FN-RG) device sent by the Wired Access Gateway (W-AGF) device, the first DHCP message is sent to the Session Management Function (SMF) device, so that the SMF device generates a second DHCP message carrying the target IP address and identification information based on the first DHCP message, wherein the target IP address is an available IP address allocated by the SMF device to the FN-RG device; after receiving the second DHCP message returned by the SMF device, the second DHCP message is sent to the FN-RG device through the W-AGF device, so that the FN-RG device uses the target IP address as its IP address.
[0262] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0263] like Figure 13 As shown, a program product 130 for an IP address allocation method according to an embodiment of the present invention is described. This product may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0264] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code. This propagated data signal may take many forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0265] The program code contained on the readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wired, optical fiber, RF, or any suitable combination thereof.
[0266] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0267] It should be noted that although several modules or sub-modules of the system have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided and embodied by multiple modules.
[0268] Furthermore, although the operation of the modules of the system of the present invention is described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain operations may be omitted, multiple operations may be combined into one operation, and / or one operation may be broken down into multiple operations.
[0269] The present application has been described above with reference to block diagrams and / or flowcharts illustrating methods, apparatus (systems), and / or computer program products according to embodiments of the present application. It should be understood that a block of a block diagram and / or flowchart, as well as combinations of blocks of block diagrams and / or flowcharts, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, and / or other programmable data processing means to produce a machine, such that the instructions, executable via the computer processor and / or other programmable data processing means, create methods for implementing the functions / actions specified in the blocks of the block diagrams and / or flowcharts.
[0270] Accordingly, this application can also be implemented using hardware and / or software (including firmware, resident software, microcode, etc.). Furthermore, this application can take the form of a computer program product on a computer-usable or computer-readable storage medium, having computer-usable or computer-readable program code implemented in the medium for use by or in conjunction with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium can be any medium that can contain, store, communicate, transmit, or deliver a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0271] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for allocating Internet Protocol (IP) addresses, characterized in that, W-AGF devices used for wired access gateway functions include: Receive a first Dynamic Host Configuration Protocol (DHCP) message containing identification information of the Fixed Network-Home Gateway (FN-RG) device; The Mobility Management Function (AMF) device sends a Protocol Data Unit (PDU) session establishment request containing the identification information to the Session Management Function (SMF) device, so that the SMF device returns a preset IP address to the AMF device after receiving the PDU session establishment request. The system receives a PDU resource configuration request containing the preset IP address returned by the AMF device, wherein the PDU resource configuration request is generated by the AMF device based on the preset IP address returned by the SMF device. The first DHCP message is sent to the Session Management Function (SMF) device via the Access and Mobility Management Function (AMF) device. After receiving the second DHCP message carrying the target IP address and the identification information returned by the SMF device through the AMF device, the second DHCP message is sent to the FN-RG device so that the FN-RG device uses the target IP address as the IP address of the FN-RG device. The second DHCP message is generated by the SMF device based on the first DHCP message, and the target IP address is at least one available IP address of the SMF device.
2. The method as described in claim 1, characterized in that, After sending the second DHCP message to the FN-RG device, the method further includes: After receiving the DHCP request message sent by the FN-RG device, the DHCP request message is sent to the SMF device through the AMF device, so that the SMF device generates a DHCP confirmation message to indicate that the target IP address allocation is completed based on the DHCP request message. The DHCP request message is generated by the FN-RG device after receiving the second DHCP message. After receiving the DHCP confirmation message returned by the SMF device through the AMF device, the DHCP confirmation message is sent to the FN-RG device.
3. A method for allocating Internet Protocol (IP) addresses, characterized in that, Applications to SMF devices for session management functions include: The device receives a Protocol Data Unit (PDU) session establishment request sent by the Wired Access Gateway Function (W-AGF) device through the Access and Mobility Management Function (AMF) device. The PDU session establishment request is generated by the W-AGF device based on a first Dynamic Host Configuration Protocol (DHCP) message. Return a preset IP address to the AMF device so that the AMF device sends a PDU resource configuration request containing the preset IP address to the W-AGF device, thereby triggering the W-AGF device to send the first DHCP message; Receive the first Dynamic Host Configuration Protocol (DHCP) message sent by the Wired Access Gateway Function (W-AGF) device through the Access and Mobility Management Function (AMF) device, wherein the first DHCP message contains the identification information of the Fixed Network-Home Gateway (FN-RG) device; A second DHCP message is generated based on the first DHCP message, carrying the target IP address to be assigned to the FN-RG device and the identification information, wherein the target IP address is at least one available IP address of the SMF device; The second DHCP message is sent to the W-AGF device through the AMF device, so that the W-AGF device sends the target IP address to the FN-RG device.
4. The method as described in claim 3, characterized in that, After sending the second DHCP message to the W-AGF device through the AMF device, the method further includes: Receive a DHCP request message sent by the AMF device, wherein the DHCP request message is sent by the FN-RG device to the AMF device through the W-AGF device; Generate a DHCP confirmation message to indicate that the target IP address allocation is complete based on the DHCP request message; The DHCP confirmation message is sent to the W-AGF device through the AMF device, so that the W-AGF device sends the DHCP confirmation message to the FN-RG device.
5. A method for allocating Internet Protocol (IP) addresses, characterized in that, AMF devices used for access and mobility management functions include: The device receives a Protocol Data Unit (PDU) session establishment request sent by a Wired Access Gateway (W-AGF) device, which contains the identification information of a Fixed Network-Home Gateway (FN-RG) device. The PDU session establishment request is generated by the W-AGF device based on a first Dynamic Host Configuration Protocol (DHCP) message. The PDU session establishment request is sent to the Session Management Function (SMF) device, so that the SMF device returns a preset IP address after receiving the PDU session establishment request; Upon receiving the preset IP address, a PDU resource configuration request containing the preset IP address is generated, and the PDU resource configuration request is sent to the W-AGF device to trigger the W-AGF device to send the first DHCP message; After receiving the first Dynamic Host Configuration Protocol (DHCP) message containing the identification information of the Fixed Network-Home Gateway (FN-RG) device sent by the Wired Access Gateway (W-AGF) device, the first DHCP message is sent to the Session Management Function (SMF) device, so that the SMF device generates a second DHCP message carrying a target IP address and the identification information based on the first DHCP message, wherein the target IP address is at least one available IP address allocated by the SMF device for the FN-RG device; After receiving the second DHCP message returned by the SMF device, the second DHCP message is sent to the FN-RG device through the W-AGF device, so that the FN-RG device uses the target IP address as the IP address of the FN-RG device.
6. The method as described in claim 5, characterized in that, After sending the second DHCP message to the FN-RG device through the W-AGF device, the method further includes: After receiving the DHCP request message sent by the FN-RG device through the W-AGF device, the DHCP request message is sent to the SMF device so that the SMF device generates a DHCP confirmation message to indicate that the target IP address allocation is complete, wherein the DHCP request message is generated by the FN-RG device after receiving the second DHCP message; After receiving the DHCP confirmation message returned by the SMF device, the DHCP confirmation message is sent to the FN-RG device through the W-AGF device.
7. An Internet Protocol (IP) address allocation device, characterized in that, W-AGF devices used for wired access gateway functions include: The first receiving unit is configured to receive a first Dynamic Host Configuration Protocol (DHCP) message containing identification information of a fixed network-home gateway (FN-RG) device. The first triggering unit is configured to send a Protocol Data Unit (PDU) session establishment request containing the identification information to a Session Management Function (SMF) device via a Mobility Management Function (AMF) device, so that the SMF device returns a preset IP address to the AMF device after receiving the PDU session establishment request; and to receive a PDU resource configuration request containing the preset IP address returned by the AMF device, wherein the PDU resource configuration request is generated by the AMF device based on the preset IP address returned by the SMF device. The first sending unit is configured to send the first DHCP message to the Session Management Function (SMF) device through the Access and Mobility Management Function (AMF) device; The first relay unit is configured to, upon receiving a second DHCP message carrying a target IP address and the identification information returned by the SMF device through the AMF device, send the second DHCP message to the FN-RG device, so that the FN-RG device uses the target IP address as its IP address. The second DHCP message is generated by the SMF device based on the first DHCP message, and the target IP address is at least one available IP address of the SMF device.
8. An Internet Protocol (IP) address allocation device, characterized in that, Applications to SMF devices for session management functions include: The second triggering unit is used to receive a Protocol Data Unit (PDU) session establishment request sent by the wired access gateway function (W-AGF) device through the access and mobility management function (AMF) device, which contains the identification information of the fixed network-home gateway (FN-RG) device. The PDU session establishment request is generated by the W-AGF device according to the first Dynamic Host Configuration Protocol (DHCP) message. The unit returns a preset IP address to the AMF device so that the AMF device sends a PDU resource configuration request containing the preset IP address to the W-AGF device, thereby triggering the W-AGF device to send the first DHCP message. The second receiving unit is configured to receive the first Dynamic Host Configuration Protocol (DHCP) message sent by the Wired Access Gateway Function (W-AGF) device through the Access and Mobility Management Function (AMF) device, wherein the first DHCP message contains the identification information of the Fixed Network-Home Gateway (FN-RG) device. The first processing unit is configured to generate a second DHCP message carrying a target IP address allocated to the FN-RG device and the identification information based on the first DHCP message, wherein the target IP address is at least one available IP address of the SMF device; The second sending unit is used to send the second DHCP message to the W-AGF device through the AMF device, so that the W-AGF device sends the target IP address to the FN-RG device.
9. An Internet Protocol (IP) address allocation device, characterized in that, AMF devices used for access and mobility management functions include: The third triggering unit is configured to receive a Protocol Data Unit (PDU) session establishment request containing the identification information of a Fixed Network-Home Gateway (FN-RG) device sent by a Wired Access Gateway (W-AGF) device, wherein the PDU session establishment request is generated by the W-AGF device according to a first Dynamic Host Configuration Protocol (DHCP) message; send the PDU session establishment request to a Session Management Function (SMF) device, so that the SMF device returns a preset IP address after receiving the PDU session establishment request; after receiving the preset IP address, generate a PDU resource configuration request containing the preset IP address, and send the PDU resource configuration request to the W-AGF device to trigger the W-AGF device to send the first DHCP message; The second relay unit is configured to, upon receiving the first Dynamic Host Configuration Protocol (DHCP) message containing the identification information of the Fixed Network-Home Gateway (FN-RG) device sent by the Wired Access Gateway Function (W-AGF) device, send the first DHCP message to the Session Management Function (SMF) device, so that the SMF device generates a second DHCP message carrying a target IP address and the identification information based on the first DHCP message, wherein the target IP address is at least one available IP address allocated by the SMF device for the FN-RG device; The third relay unit is used to send the second DHCP message to the FN-RG device through the W-AGF device after receiving the second DHCP message returned by the SMF device, so that the FN-RG device uses the target IP address as the IP address of the FN-RG device.
10. A communication device, characterized in that, It includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the Internet Protocol IP address allocation method as described in any one of claims 1-2, 3-4, or 5-6.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the steps of the Internet Protocol IP address allocation method as described in any one of claims 1-2, 3-4, or 5-6.