An address allocation method, device and computer readable storage medium

By reporting the MAC address and obtaining the IP address during the PDU session establishment process, the problem of insufficient flexibility in the existing IP address allocation scheme is solved, flexible IP address management is achieved, the fixed IP address requirements of vertical industries are met, and the adaptability of 5G networks is improved.

CN115695375BActive Publication Date: 2026-04-21CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE COMM LTD RES INST
Filing Date
2021-07-30
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Existing IP address allocation schemes are not very flexible, and modifying IP addresses is difficult, making it hard to meet the fixed IP address requirements of terminal devices in vertical industries such as factories and industrial parks.

Method used

During or after the establishment of a PDU session, the Media Access Control (MAC) address is reported, and the IP address is obtained through the Session Management Function (SMF). The target server assigns an IPv4 or IPv6 address based on the MAC address, including the IPv6 prefix address.

Benefits of technology

It enables flexible allocation of IP addresses, reduces the difficulty of modifying IP addresses, meets the needs of vertical industries for fixed IP addresses, and improves the application adaptability of 5G networks in vertical industries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695375B_ABST
    Figure CN115695375B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an address allocation method, which is applied to a user terminal (UE), and the method comprises the following steps: reporting a media access control (MAC) address in a protocol data unit (PDU) session establishment process and / or after the establishment is completed; and receiving an Internet protocol (IP) address returned by a session management function (SMF). Embodiments of the present application also disclose an address allocation device and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to address allocation technology in the field of information processing, and more particularly to an address allocation method, apparatus and computer-readable storage medium. Background Technology

[0002] When extending 5G networks into vertical industries, third-party enterprises such as factories and industrial parks have specific requirements for allocating Internet Protocol (IP) addresses to User Equipment (UEs). For example, they need to assign fixed IP addresses to terminal devices such as manufacturing equipment and automated guided vehicles (AGVs). Currently, the solution to this requirement is generally that the Dynamic Host Configuration Protocol (DHCP) server within the factory binds a corresponding fixed IP address to each terminal based on its Media Access Control (MAC) address, facilitating unified control and management of the terminals. However, this IP address allocation scheme in related technologies has poor flexibility; if an IP address needs to be modified, the UE's subscription data needs to be modified, which is a complex operation. Summary of the Invention

[0003] To address the aforementioned technical problems, this application aims to provide an address allocation method, device, and computer-readable storage medium, thereby resolving the issues of poor flexibility in IP address allocation schemes and the difficulty in modifying IP addresses in related technologies.

[0004] The technical solution of this application is implemented as follows:

[0005] An address allocation method, the method being applied to a user terminal UE, the method comprising:

[0006] During and / or after the establishment of a Protocol Data Unit (PDU) session, the Media Access Control (MAC) address is reported.

[0007] Receive the Internet Protocol (IP) address returned by the Session Management Function (SMF).

[0008] In the above scheme, reporting the MAC address during or after the PDU session establishment process includes:

[0009] During or after the PDU session is established, the MAC address is sent to the Session Management Function (SMF).

[0010] In the above scheme, the IP address is assigned by the target server based on the MAC address;

[0011] The IP address version is either IPv4 or IPv6.

[0012] If the IP address is an IPv6 address, then the IP address is an IPv6 prefix address.

[0013] An address allocation method applied to an SMF, the method comprising:

[0014] Receive a first request from the UE; wherein the first request carries a MAC address;

[0015] A second request is generated based on the first request and sent to the target server; wherein the second request carries the MAC address;

[0016] The system receives the IP address returned by the target server and sends it to the UE.

[0017] In the above scheme, the target server can be a Dynamic Host Configuration Protocol (DHCP) server, an application server, or an AAA server.

[0018] In the above scheme, receiving the IP address returned by the target server includes:

[0019] Receive the IP address corresponding to the MAC address returned by the target server and send it to the SMF.

[0020] An address allocation method, applied to a target server, the method comprising:

[0021] Receive an address allocation request; wherein the address allocation request carries the MAC address of the UE;

[0022] Based on the address allocation request and the mapping between MAC addresses and IP addresses, an IP address corresponding to the MAC address is allocated.

[0023] In the above scheme, the target server can be a DHCP server, an application server, or an AAA server.

[0024] A UE, the UE comprising: a first processor, a first memory, and a first communication bus;

[0025] The first communication bus is used to establish a communication connection between the first processor and the first memory;

[0026] The first processor is used to execute an address allocation program in the first memory to implement the steps of the address allocation method described above.

[0027] An SMF, the SMF comprising: a second processor, a second memory, and a second communication bus;

[0028] The second communication bus is used to establish a communication connection between the second processor and the second memory;

[0029] The second processor is used to execute the address allocation program in the second memory to implement the steps of the address allocation method described above.

[0030] A target server, the target server comprising: a third processor, a third memory, and a third communication bus;

[0031] The third communication bus is used to realize the communication connection between the third processor and the third memory;

[0032] The third processor is used to execute the address allocation program in the third memory to implement the steps of the address allocation method described above.

[0033] A computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the address allocation method described above.

[0034] The address allocation method, device, and computer-readable storage medium provided in the embodiments of this application report the MAC address during and / or after the PDU session is established, and receive the IP address returned by the SMF. In this way, the UE can obtain the IP address it needs from the server during and / or after the PDU session is established based on its own MAC address, without having to write the IP address to the subscription data in a fixed way as in related technologies. This solves the problems of poor flexibility of IP address allocation schemes and high difficulty in modifying IP addresses in related technologies. Attached Figure Description

[0035] Figure 1 A flowchart illustrating an address allocation method provided for an embodiment of this application;

[0036] Figure 2 A flowchart illustrating another address allocation method provided for embodiments of this application;

[0037] Figure 3 A flowchart illustrating yet another address allocation method provided for an embodiment of this application;

[0038] Figure 4 A flowchart illustrating an address allocation method according to another embodiment of this application;

[0039] Figure 5 A flowchart illustrating another address allocation method provided for another embodiment of this application;

[0040] Figure 6 A flowchart illustrating yet another address allocation method provided in another embodiment of this application;

[0041] Figure 7 A schematic diagram of the structure of a UE provided for an embodiment of this application;

[0042] Figure 8 A schematic diagram of an SMF structure provided for an embodiment of this application;

[0043] Figure 9 This is a schematic diagram of the structure of a target server provided in an embodiment of this application. Detailed Implementation

[0044] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0045] It should be understood that the phrases "embodiments of this application" or "foreign embodiments" throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "embodiments of this application" or "in the foreign embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential 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 this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0046] Unless otherwise specified, any step in the embodiments of this application performed by the electronic device may be executed by the processor of the electronic device. It is also worth noting that the embodiments of this application do not limit the order in which the electronic device performs the following steps. Furthermore, the methods used to process data in different embodiments may be the same or different methods. It should also be noted that any step in the embodiments of this application can be executed independently by the electronic device; that is, when the electronic device performs any step in the following embodiments, it may not depend on the execution of other steps.

[0047] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application.

[0048] This application provides an address allocation method, which can be applied to a UE, as shown in the following embodiments. Figure 1 As shown, the method includes the following steps:

[0049] Step 101: During and / or after the establishment of a Protocol Data Unit (PDU) session, report the MAC address.

[0050] In this embodiment, the MAC address refers to the UE's own MAC address. Specifically, the UE may send a first request for an IP address to the Session Management Function (SMF) during and / or after the PDU session is established; this first request carries the UE's own MAC address. It should be noted that the UE may first send the first request to the User Plane Function (UPF), and then forward the first request to the SMF through the UPF.

[0051] Step 102: Receive the IP address returned by the Session Management Function (SMF).

[0052] The IP address can be assigned by the target server based on the UE's own MAC address, and this IP address corresponds to the MAC address. It should be noted that the IP address can be determined by the target server after the SMF sends the MAC address reported by the UE to the target server.

[0053] It should be noted that the UE can report the MAC address through user plane data packets or control plane signaling.

[0054] The address allocation method provided in this application embodiment allows the UE to report its MAC address during and / or after the PDU session is established, and receive the IP address returned by the SMF. In this way, the UE can obtain the required IP address from the server during and / or after the PDU session is established based on its own MAC address, without having to write the IP address to the subscription data in a fixed way as in related technologies. This solves the problems of poor flexibility in IP address allocation schemes and high difficulty in modifying IP addresses in related technologies.

[0055] Based on the foregoing embodiments, this application provides an address allocation method that can be applied to SMFs, see below. Figure 2 As shown, the method includes the following steps:

[0056] Step 201: Receive the first request from the UE.

[0057] The first request includes a MAC address.

[0058] In the embodiments of this application, the first request sent by the UE and received by the SMF can be forwarded via the UPF. That is, the UE first sends the first request to the UPF, and then the UPF forwards the first request to the SMF.

[0059] Step 202: Generate a second request based on the first request and send it to the target server.

[0060] The second request includes a MAC address.

[0061] In this embodiment, after receiving a first request from the UE forwarded via the UPF, the SMF can generate a second request to obtain an IP address based on the first request. Then, the SMF can send the second request to the target server via the UPF to obtain the IP address corresponding to the MAC address from the target server. It should be noted that the target server can be a server capable of assigning IP addresses to the UE based on the MAC address; the target server may include one or more servers.

[0062] Step 203: Receive the IP address returned by the target server and send it to the UE.

[0063] In this embodiment, the target server received by the SMF can be forwarded via the UPF; that is, the target server first sends its IP address to the UPF, which then forwards it. Furthermore, after receiving the IP address from the target server, the SMF can send that IP address to the UE via the UPF.

[0064] The address allocation method provided in this application embodiment involves the SMF receiving a first request carrying a MAC address from the UE, generating a second request carrying a MAC address based on the first request, and sending it to the target server. The SMF then receives the IP address returned by the target server and sends it to the UE. In this way, the UE can obtain the required IP address from the server through the SMF during and / or after the PDU session is established, based on its own MAC address. This eliminates the need to write the IP address to the subscription data in a fixed manner as in related technologies, thus solving the problems of poor flexibility in IP address allocation schemes and the difficulty in modifying IP addresses in related technologies.

[0065] Based on the foregoing embodiments, embodiments of this application provide an address allocation method, which can be applied to a target server, as described above. Figure 3 As shown, the method includes the following steps:

[0066] Step 301: Receive address allocation request.

[0067] The address allocation request carries the UE's MAC address. The second request may include the address allocation request itself; that is, the address allocation request may be a type of request used in the second request to obtain an IP address from the target server.

[0068] In this embodiment of the application, the address allocation request may be sent from the SMF to the target server via the UPF.

[0069] Step 302: Based on the address allocation request and the mapping between MAC addresses and IP addresses, allocate the IP address corresponding to the MAC address.

[0070] In this embodiment of the application, after receiving the second request forwarded by the SMF via the UPF, the target server can determine the IP address that matches the received MAC address from the pre-stored mapping relationship between MAC address and IP address, and then send the determined IP address to the UPF, and forward it to the SMF via the UPF; at the same time, the SMF can forward the IP address to the UE via the UPF.

[0071] The address allocation method provided in this application embodiment involves the target server receiving an address allocation request carrying the MAC address of the UE, and allocating an IP address corresponding to the MAC address based on the address allocation request and the correspondence between MAC addresses and IP addresses. In this way, the UE can obtain the required IP address from the server through SMF during and / or after the PDU session is established, based on its own MAC address. Unlike related technologies, the IP address does not need to be fixedly written into the subscription data, which solves the problems of poor flexibility in IP address allocation schemes and high difficulty in modifying IP addresses in related technologies.

[0072] Based on the foregoing embodiments, embodiments of this application provide an address allocation method, referring to... Figure 4 As shown, the method may include the following steps:

[0073] Step 401: During and / or after the PDU session is established, the UE sends its MAC address to the Session Management Function (SMF).

[0074] In this embodiment, if the target server includes a DHCP server, the UE can send its MAC address to the Radio Access Network (RAN) in a first request, and then transparently transmit it to the SMF via the AMF. The first request can be a PDU session establishment request for obtaining an IP address.

[0075] Alternatively, in other embodiments of this application, if the target server includes an application server or an AAA server, the UE may also carry the MAC address in the third request and send it to the RAN first, and then generate a first request via the Access and Mobility Management Function (AMF) and forward it to the SMF; wherein, the first request may be a PDU session creation session management context request; after receiving the PDU session establishment request sent by the UE, the AMF determines the SMF based on the PDU session establishment request, and then generates a PDU session creation session management context request and sends it to the SMF.

[0076] Step 402: SMF receives the first request from UE.

[0077] The first request includes a MAC address.

[0078] Step 403: SMF generates a second request based on the first request and sends it to the target server.

[0079] The second request carries a MAC address. This second request may include an address allocation request; however, the target server may only receive the address allocation request used to request an IP address.

[0080] In this embodiment, if the target server includes a DHCP server, the SMF can establish an N4 session with the UPF network element, and simultaneously instruct the UPF to act as a PDU session anchor point to forward DHCP server data packets between the UE and the SMF through the user plane. The SMF also instructs the UPF to establish an N6 connection with the DHCP server and receive the first DHCP request forwarded by the UPF based on the N4 session. Subsequently, the SMF generates a second DHCP request based on the first DHCP request and sends the second DHCP request to the DHCP server via the N6 connection between the UPF and the DHCP server. It should be noted that the first request can be a first DHCP request, and the second request can be a second DHCP request. The first DHCP request can be a DHCP request between the SMF and the UE, and the second DHCP request can be a DHCP request between the SMF and an external source. Of course, both the first and second DHCP requests carry the UE's MAC address.

[0081] In other embodiments of this application, if the target server includes an application server or an AAA server, the AMF receives a PDU session establishment request initiated by the UE, initiates an SMF selection procedure, and the SMF receives a PDU session creation session management context request sent by the Access and Mobility Management Function (AMF) network element. Then, the SMF responds to the first request by generating a second request and establishes an N4 session with the UPF, instructing the UPF to establish an N6 connection with the application server or AAA server. Subsequently, based on the N4 session, the second request is sent to the application server or AAA server through the N6 connection between the UPF and the data network server. It should be noted that the SMF can send an authentication and authorization request to the application server or AAA server via the UPF through the N6 connection between the UPF and the data network server; wherein, the authentication and authorization request is used to instruct the application server or AAA server to return an IP address after successfully authenticating and authorizing the user terminal.

[0082] Step 404: The target server receives the address allocation request.

[0083] The target server can be a DHCP server, an application server, or an AAA server.

[0084] Step 405: The target server allocates an IP address corresponding to the MAC address based on the address allocation request and the mapping between MAC addresses and IP addresses.

[0085] In this embodiment of the application, if the target server includes an application server or an AAA server, it receives the authentication and authorization request sent by the SMF and forwarded by the UPF, performs authentication and authorization on the UE based on the authentication and authorization request, and then, after determining that the UE's authentication and authorization is successful, responds to the second request and assigns the corresponding IP address to the UE based on the correspondence between MAC address and IP address and the UE's MAC address.

[0086] In other embodiments of this application, if the target server includes a DHCP server, after receiving the address allocation request, the DHCP server directly responds to the address allocation request and allocates an IP address based on the correspondence between MAC addresses and IP addresses and the MAC address.

[0087] Step 406: The SMF receives the IP address corresponding to the MAC address returned by the target server and sends it to the UE.

[0088] In this embodiment of the application, if the target server includes an application server or an AAA server, the SMF receives the IP address corresponding to the MAC address returned by the application server or AAA server via the UPF through the N6 connection, and then sends the IP address to the AMF through the N1N2 message. The AMF then forwards the IP address to the RAN through the N2 PDU session request (NAS message), and then the RAN sends the IP address to the UE through the radio resource establishment (PDU session establishment successful) message.

[0089] In other embodiments of this application, if the target server includes a DHCP server, the DHCP server can send the IP address to the SMF via the UPF through user plane data packets, and then the SMF can send the IP address to the UE via the UPF through user plane data packets.

[0090] It should be noted that after receiving the IP address, the UE can update its own IP address and notify the 5GC network of the IP address.

[0091] The IP address version can be either IPv4 or IPv6.

[0092] If the IP address version is IPv6, then the IP address is an IPv6 prefix address; that is, the MAC address is only bound to the prefix of that IPv6 address.

[0093] The address allocation method proposed in this application enables 5G mobile networks to allocate fixed IP addresses to terminals according to the needs of vertical industries, which meets the special needs of vertical industries such as factory parks for fixed IP address allocation, and helps 5G networks to be introduced into vertical industries more quickly and effectively, thus meeting the needs of vertical industries.

[0094] It should be noted that the explanation of the same or corresponding steps in the embodiments of this application and other embodiments can be referred to the description in other embodiments, and will not be repeated here.

[0095] The address allocation method provided in this application embodiment allows the UE to obtain the required IP address from the server via SMF during and / or after the PDU session is established, based on its own MAC address. Unlike related technologies, the IP address does not need to be fixedly written into the subscription data, thus solving the problems of poor flexibility in IP address allocation schemes and high difficulty in modifying IP addresses in related technologies.

[0096] Based on the foregoing embodiments, other embodiments of this application will be described using the example of a target server including a DHCP server, with reference to... Figure 5 As shown, the specific steps may include:

[0097] Step 501: During the PDU session establishment process, the UE instructs the network to request an IP address from DHCP. During the PDU session establishment process, the SMF assigns the UE an IP address of 0.0.0.0 and completes the PDU session establishment with this address.

[0098] Step 502: The SMF establishes an N4 session with the UPF and forwards DHCP packets between the UE and the SMF through the UPF, as well as DHCP packets between the SMF and external devices.

[0099] Step 503: When facing the UE, the SMF acts as a DHCP server, and the UE, as a DHCP client, initiates a DHCP request to the SMF to request the DHCP to assign an IP address; the DHCP request carries the UE's own MAC address.

[0100] Step 504: When the SMF faces the DHCP server, it acts as a DHCP client and sends a DHCP request to the DHCP server; the MAC address field is filled with the UE's MAC address.

[0101] Step 505: The DHCP server uses the UE's MAC address to find the corresponding fixed IP address configured by a third party.

[0102] Step 506: DHCP sends the assigned IP address to SMF via UPF.

[0103] Step 507: The SMF sends the IP address to the UPF via user plane data packets, and then sends it to the UE via the UPF.

[0104] Step 508: The UE updates its own IP address and notifies the 5GC network.

[0105] Based on the foregoing embodiments, other embodiments of this application will be described using the example of a target server including a third-party application server, specifically an application server or an AAA server, and will refer to [reference]. Figure 6 As shown, the specific steps may include:

[0106] Step 601: The UE carries its own MAC address and an indication to request a third-party application server to allocate an IP address in the PDU protocol data unit session establishment request.

[0107] Step 602: AMF performs SMF selection.

[0108] Step 603: The AMF sends a PDU session creation session management (SM) context request to the SMF; wherein, the PDU session creation SM context request carries the UE's MAC address.

[0109] Step 604: SMF queries UDM for subscription information.

[0110] Step 605: SMF sends a PDU session creation SM context reply to AMF.

[0111] Step 606: SMF triggers authentication and authorization, requesting an IP address from the application server or AAA server.

[0112] Step 607: SMF establishes an N4 session with UPF, instructing UPF to establish an N6 connection with the application server (or AAA server).

[0113] Step 608: SMF initiates an authentication and authorization request and an IP address request to the application server (or AAA server) through UPF.

[0114] Step 609: The application server (or AAA server) authenticates and authorizes the UE.

[0115] Step 610: Authentication and authorization response. At the same time, the application server (or AAA server) returns the IP address of the corresponding UE's MAC address to the UPF, and then the UPF forwards it to the SMF.

[0116] Step 611: SMF sends the IP address assigned by the application server (or AAA server) to AMF via N1N2 message transmission.

[0117] Step 612: The AMF initiates an N2 PDU session request to the RAN; the N2 PDU session request carries the UE's IP address.

[0118] Step 613: The RAN returns a radio resource establishment message to the UE and assigns an IP address to the UE.

[0119] Based on the foregoing embodiments, embodiments of this application provide a UE that can be applied to... Figure 1 , 4 In the address allocation method provided in the embodiments corresponding to ~6, refer to Figure 7 As shown, the UE7 may include: a first processor 71, a first memory 72, and a first communication bus 73, wherein:

[0120] The first communication bus 73 is used to realize the communication connection between the first processor 71 and the first memory 72;

[0121] The first processor 71 is used to execute the address allocation program in the first memory 72 to perform the following steps:

[0122] Report the MAC address during and / or after the PDU session is established;

[0123] Receive the IP address returned by SMF.

[0124] In other embodiments of this application, the first processor 71 is used to execute the address allocation program in the first memory 72 during and / or after the establishment of a Protocol Data Unit (PDU) session, and to report the Media Access Control (MAC) address to achieve the following steps:

[0125] During and / or after the PDU session is established, the MAC address is sent to the Session Management Function (SMF).

[0126] In other embodiments of this application, the IP address is assigned by the target server based on the MAC address;

[0127] The IP address type is either an IPv4 address or an IPv6 address;

[0128] If the IP address is an IPv6 address, then the IP address mentioned is an IPv6 prefix address.

[0129] It should be noted that a detailed description of the steps performed by the first processor can be found in [reference needed]. Figure 1 , 4 The address allocation method provided in the embodiments corresponding to ~6 will not be described again here.

[0130] The UE provided in this application embodiment can obtain its required IP address from the server during and / or after the PDU session is established based on its own MAC address. Unlike related technologies, the IP address does not need to be fixedly written into the subscription data. This solves the problems of poor flexibility in IP address allocation schemes and high difficulty in modifying IP addresses in related technologies.

[0131] Based on the foregoing embodiments, embodiments of this application provide an SMF that can be applied to... Figure 2 , 4 In the address allocation method provided in the embodiments corresponding to ~6, refer to Figure 8 As shown, the SMF8 may include: a second processor 81, a second memory 82, and a second communication bus 83, wherein:

[0132] The second communication bus 83 is used to realize the communication connection between the second processor 81 and the second memory 82;

[0133] The second processor 81 is used to execute the address allocation program in the second memory 82 to perform the following steps:

[0134] Receive a first request from the UE; wherein the first request carries a MAC address;

[0135] A second request is generated based on the first request and sent to the target server; the second request carries a MAC address.

[0136] Receive the IP address returned by the target server and send it to the UE.

[0137] In other embodiments of this application, the target server may be a Dynamic Host Configuration Protocol (DHCP) server, an application server, or an AAA server.

[0138] In other embodiments of this application, the second processor 81 is used to execute the address allocation program in the second memory 82 to receive the IP address returned by the target server, in order to implement the following steps:

[0139] Receive the IP address corresponding to the MAC address returned by the target server.

[0140] It should be noted that a detailed description of the steps performed by the second processor can be found in [reference needed]. Figure 2 , 4 The address allocation method provided in the embodiments corresponding to ~6 will not be described again here.

[0141] The SMF provided in this application embodiment allows the UE to obtain its required IP address from the server during and / or after the PDU session is established, based on its own MAC address. Unlike related technologies, the IP address does not need to be fixedly written into the subscription data, thus solving the problems of poor flexibility in IP address allocation schemes and high difficulty in modifying IP addresses in related technologies.

[0142] Based on the foregoing embodiments, embodiments of this application provide a target server that can be applied to... Figures 3-6 In the address allocation method provided in the corresponding embodiment, refer to Figure 9 As shown, the target server 9 may include: a third processor 91, a third memory 92, and a third communication bus 93, wherein:

[0143] The third communication bus 93 is used to realize the communication connection between the third processor 91 and the third memory 92;

[0144] The third processor 91 is used to execute the address allocation program in the third memory 92 to perform the following steps:

[0145] Receive an address allocation request; wherein the address allocation request carries the UE's MAC address;

[0146] Based on the address allocation request and the mapping between MAC addresses and IP addresses, an IP address corresponding to the MAC address is allocated.

[0147] The target server can be a DHCP server, an application server, or an AAA server.

[0148] It should be noted that a detailed explanation of the steps performed by the third processor can be found in [reference needed]. Figures 3-6 The address allocation method provided in the corresponding embodiments will not be described in detail here.

[0149] The target server provided in this application embodiment allows the UE to obtain the required IP address from the server during and / or after the PDU session is established based on its own MAC address. Unlike related technologies, the IP address does not need to be fixedly written into the subscription data, which solves the problems of poor flexibility in IP address allocation schemes and high difficulty in modifying IP addresses in related technologies.

[0150] Based on the foregoing embodiments, embodiments of this application provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement... Figures 1-6 The steps of the address allocation method provided in the corresponding embodiment.

[0151] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0152] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0153] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0154] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0155] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application.

Claims

1. An address allocation method, characterized in that, The method is applied to a user terminal (UE), and the method includes: During and / or after the establishment of a Protocol Data Unit (PDU) session, the Media Access Control (MAC) address is reported. Receive the Internet Protocol (IP) address returned by the Session Management Function (SMF); the IP address is the IP address assigned by the target server based on the mapping relationship between MAC addresses and IP addresses, corresponding to the MAC address; The reporting of the MAC address during and / or after the establishment of a Protocol Data Unit (PDU) session includes: During and / or after the PDU session is established, the MAC address is sent to the Session Management Function (SMF).

2. The method according to claim 1, characterized in that, The IP address version is either IPv4 or IPv6. If the IP address is an IPv6 address, then the IP address is an IPv6 prefix address.

3. An address allocation method, characterized in that, The method is applied to SMF, and the method includes: Receive a first request from the UE; wherein the first request carries a MAC address; A second request is generated based on the first request and sent to the target server; wherein the second request carries the MAC address; The system receives the IP address returned by the target server and sends it to the UE, wherein the IP address is an IP address corresponding to the MAC address assigned by the target server based on the correspondence between MAC addresses and IP addresses.

4. The method according to claim 3, characterized in that, The target server can be a Dynamic Host Configuration Protocol (DHCP) server, an application server, or an AAA server.

5. An address allocation method, characterized in that, The method is applied to the target server, and the method includes: Receive an address allocation request; wherein the address allocation request carries the MAC address of the UE; Based on the address allocation request and the mapping between MAC addresses and IP addresses, an IP address corresponding to the MAC address is allocated; The address allocation request is generated based on a first request, which is a request sent by the UE to the SMF, and the first request carries a MAC address.

6. The method according to claim 5, characterized in that, The target server can be a DHCP server, an application server, or an AAA server.

7. A UE, characterized in that, The UE includes: a first processor, a first memory, and a first communication bus; The first communication bus is used to establish a communication connection between the first processor and the first memory; The first processor is configured to execute an address allocation program in the first memory to implement the steps as described in any one of claims 1 to 2.

8. An SMF, characterized in that, The SMF includes: a second processor, a second memory, and a second communication bus; The second communication bus is used to establish a communication connection between the second processor and the second memory; The second processor is used to execute an address allocation program in the second memory to implement the steps as described in any one of claims 3 to 4.

9. A target server, characterized in that, The target server includes: a third processor, a third memory, and a third communication bus; The third communication bus is used to realize the communication connection between the third processor and the third memory; The third processor is used to execute an address allocation program in the third memory to implement the steps as described in claim 5 or 6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the address allocation method as described in any one of claims 1-2, 3-4, or 5-6.

Citation Information

Patent Citations

  • Data processing method, device and equipment

    CN109803029A

  • Information processing method and device

    CN110417840A