Address pool management method and device, non-volatile storage medium, and electronic device

By receiving session messages to identify faulty network elements and expand address pool resources, the problem of Internet Protocol address anomalies in 5G customized network user online testing was solved, and the terminal was able to quickly obtain Internet Protocol addresses.

CN116846874BActive Publication Date: 2025-09-26CHINA TELECOM INTELLIGENT NETWORK TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310948482.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2025-09-26
Estimated Expiration
2043-07-28

AI Technical Summary

Technical Problem

During the 5G customized network user online test, the user terminal was unable to obtain the Internet Protocol address and could not quickly identify the faulty network element causing the anomaly, resulting in the failure of address pool expansion and the terminal being unable to quickly obtain the Internet Protocol address.

Method used

By receiving session messages, determining the flag type between the terminal and the network element, identifying the target network element that caused the abnormality, and increasing address pool resources when the target network element's address pool resource usage exceeds the threshold, the address pool of the faulty network element is expanded.

Benefits of technology

Rapidly identify faulty network elements and expand address pool resources to ensure that terminals can quickly obtain Internet Protocol addresses, solving the address acquisition problem caused by the inability to quickly identify faulty network elements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116846874B_ABST
    Figure CN116846874B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for managing an address pool, a non-volatile storage medium, and an electronic device. The method includes: receiving a first session message; determining the flag bit type in the first field of the first session message between the terminal and the network element when it is determined that the Internet Protocol address obtained by the terminal is abnormal, wherein the flag bit type is used to determine the network element that allocates the address to the terminal; determining the target network element that causes the Internet Protocol address abnormality based on the flag bit type; and increasing the address resources in the address pool when the usage rate of the address resources of the address pool corresponding to the target network element is greater than a preset threshold. The present application solves the technical problem that the terminal cannot quickly obtain the Internet Protocol address due to the inability to quickly determine the faulty network element that causes the Internet Protocol address abnormality and thus the inability to expand the address pool of the faulty network element.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a method and device for managing an address pool, a non-volatile storage medium, and an electronic device. Background Art

[0002] The User Plane Function (UPF) is mainly used in 5G customized network services. For customized network users to successfully go online, they first need to obtain the Internet Protocol address corresponding to the terminal. The Internet Protocol address corresponding to the terminal is allocated by the session management function network element or the edge user plane function network element.

[0003] Currently, during user rollout testing of 5G customized networks, user terminals often experience difficulty obtaining Internet Protocol (IP) addresses. However, the user terminals are unable to detect the actual fault point of the anomaly. Related technologies cannot quickly identify the faulty network element causing the IP address anomaly, and thus cannot expand the address pool for that element, resulting in the terminal's inability to quickly obtain an IP address.

[0004] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention

[0005] The embodiments of the present application provide an address pool management method and device, a non-volatile storage medium, and an electronic device to at least solve the technical problem that a terminal cannot quickly obtain an Internet Protocol address due to the inability to quickly determine the faulty network element that causes the Internet Protocol address anomaly and the inability to expand the address pool of the faulty network element.

[0006] According to one aspect of an embodiment of the present application, a method for managing an address pool is provided, including: receiving a first session message; when it is determined that the Internet Protocol address obtained by the terminal is abnormal, determining a flag bit type in a first field in the first session message between the terminal and the network element, wherein the flag bit type is used to determine the network element that allocates the address to the terminal; determining a target network element that causes the Internet Protocol address abnormality based on the flag bit type; and when the usage rate of the address resources of the address pool corresponding to the target network element is greater than a preset threshold, increasing the address resources in the address pool.

[0007] Optionally, based on the second field in the first session message, determine the first address type of the Internet Protocol address obtained by the terminal; obtain the second address type included in the address pool corresponding to the target network element; match the first address type and the second address type, and when the first address type and the second address type are inconsistent or the first address type is not included in the second address type, send a first message to the terminal to prompt that the packet data network type is abnormal.

[0008] Optionally, the first field includes: an Internet Protocol address field corresponding to the terminal in the original data record creation message; the second field includes: a packet data network type field in the session establishment message.

[0009] Optionally, the flag bit type includes: a first flag bit and a second flag bit, wherein the first flag bit is used to indicate that the Internet Protocol address of the terminal is allocated by the session management function network element, and the second flag bit is used to indicate that the Internet Protocol address of the terminal is allocated by the user plane function network element.

[0010] Optionally, the first flag bit and the second flag bit both include a flag bit corresponding to an IPV4 address and a flag bit corresponding to an IPV6 address.

[0011] Optionally, when the usage rate of address resources in the address pool corresponding to the target network element is greater than a preset threshold, after increasing the address resources in the address pool, the method further includes: determining whether the terminal obtains the Internet Protocol address allocated by the network element.

[0012] Optionally, the first session message is transmitted based on a packet forwarding control protocol.

[0013] According to another aspect of the embodiment of the present application, an address pool management device is also provided, including: a receiving module for receiving a first session message; a first determination module for determining a flag bit type in a first field in the first session message between the terminal and the network element when it is determined that the Internet Protocol address obtained by the terminal is abnormal, wherein the flag bit type is used to determine the network element that allocates the address to the terminal; a second determination module for determining a target network element that causes the Internet Protocol address abnormality based on the flag bit type; and an adding module for adding address resources in the address pool when the usage rate of the address resources of the address pool corresponding to the target network element is greater than a preset threshold.

[0014] According to another aspect of the embodiments of the present application, a non-volatile storage medium is provided, which includes a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the above address pool management method.

[0015] According to another aspect of the embodiments of the present application, an electronic device is provided, including: a memory and a processor, wherein the processor is configured to run a program stored in the memory, wherein the above address pool management method is executed when the program is run.

[0016] In an embodiment of the present application, a method is adopted in which a first session message is received; if it is determined that the Internet Protocol address obtained by the terminal is abnormal, a flag bit type in a first field in the first session message between the terminal and the network element is determined, wherein the flag bit type is used to determine the network element that allocates the address to the terminal; a target network element that causes the Internet Protocol address abnormality is determined based on the flag bit type; and address resources in the address pool are increased if the usage rate of address resources in the address pool corresponding to the target network element is greater than a preset threshold. By determining the flag bit type in the first field in the first session message between the terminal and the network element if it is determined that the Internet Protocol address obtained by the terminal is abnormal, determining the target network element that causes the Internet Protocol address abnormality based on the flag bit type, and increasing the address resources in the address pool if the usage rate of address resources in the address pool corresponding to the target network element is greater than a preset threshold, the purpose of determining the faulty network element that causes the Internet Protocol address abnormality and then expanding the address pool for the faulty network element is achieved, thereby achieving the technical effect of ensuring that the terminal quickly obtains the Internet Protocol address, and thus solving the technical problem of the terminal being unable to quickly obtain the Internet Protocol address due to the inability to quickly determine the faulty network element that causes the Internet Protocol address abnormality and then unable to expand the address pool for the faulty network element. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a flowchart of a method for managing an address pool according to an embodiment of the present application;

[0019] Figure 2 is a flowchart of another method for managing an address pool according to an embodiment of the present application;

[0020] Figure 3 This is a schematic diagram of interaction between a terminal and a session management function network element and a user plane function network element according to an embodiment of the present application;

[0021] Figure 4 is a structural diagram of an address pool management device according to an embodiment of the present application;

[0022] Figure 5 This is a hardware structure block diagram of a computer terminal (or electronic device) according to an address pool management method of an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] According to an embodiment of the present application, a method embodiment of a method for managing an address pool is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0026] Figure 1 is a flow chart of a method for managing an address pool according to an embodiment of the present application, such as Figure 1 As shown, the method includes the following steps:

[0027] Step S102: Receive a first session message.

[0028] According to some optional embodiments of the present application, the first session message is a session message between a network element and a terminal, wherein the session message between the network element and the terminal refers to the message exchanged between the network element and the terminal during the communication process. These session messages include request messages and response messages. A request message is a message sent by a terminal to a network element, used to request a certain operation or service from the network element. A request message generally contains information such as the request method, path, and parameters, so that the network element can correctly process and respond. A response message is a message sent by a network element to a terminal, used to respond to the terminal's request. A response message generally contains information such as a status code, a response header, and a response body, so that the terminal can perform subsequent processing based on the response result. The content and format of the session message generally follow certain protocol specifications. For example, the request message and response message in the HTTP protocol follow the HTTP protocol specifications. Different protocols may have different session message format and content requirements.

[0029] Step S104: When it is determined that the Internet Protocol address obtained by the terminal is abnormal, determine the flag bit type in the first field of the first session message between the terminal and the network element, wherein the flag bit type is used to determine the network element that allocates the address to the terminal.

[0030] According to other optional embodiments of the present application, when the terminal goes online, the Internet Protocol address obtained is abnormal, for example: the Internet Protocol address allocated by the network element cannot be received. This situation is likely caused by insufficient address resources in the address pool corresponding to the network element.

[0031] A flag is a binary value that indicates a specific condition or status. Flags are often used to determine and adjust control flow during program execution. A flag can be a single bit or a combination of one or more bits. Flags can indicate various conditions, such as program completion, error occurrence, or the satisfaction of a condition. By checking the value of a flag, the program can take different actions based on the situation.

[0032] Step S106: Determine the target network element causing the Internet Protocol address anomaly based on the flag bit type.

[0033] In some optional embodiments of the present application, when the flag bit is V4 or / and V6, it indicates that the address is allocated by the session management function network element, and the faulty network element is located as the session management function network element; when the flag bit is CHV4 or / and CHV6, it indicates that the address is allocated by the UPF, and the faulty network element is located as the user plane function network element.

[0034] The user plane function network element (UPE) is a key network element in 5G networks, responsible for data transmission and user plane functions. The UPE primarily handles user data transmission, including data encapsulation, decapsulation, routing, and forwarding. It selects appropriate transmission paths and protocols based on network requirements and quality of service (QoS) to ensure reliable data transmission. It controls and manages user data flow based on network traffic conditions, scheduling and optimizing traffic based on network congestion and QoS requirements to ensure network stability and performance. It prioritizes user data based on different QoS requirements, prioritizing and scheduling data based on user needs and network resource availability to ensure the timely and reliable transmission of important data. It protects user data security by encrypting and decrypting data to prevent data leakage and tampering. Furthermore, the UPE can perform traffic monitoring and analysis to promptly detect and prevent network attacks and abnormal behavior. It supports Network Function Virtualization (NFV), virtualizing traditional hardware devices into software entities to improve network flexibility and scalability. Through virtualization technology, user plane functional network elements can dynamically allocate resources according to network needs and quickly deploy and adjust network functions.

[0035] A session management function (SMF) is a device or module responsible for managing and maintaining session status within the network. It typically performs the following functions: Session establishment and termination: When a user initiates a session request, the SMF assigns a unique session identifier and associates it with the user's session information. When the session ends, the SMF releases related resources and clears the session information. Session tracking and maintenance: The SMF records each session's status information, such as its start time, duration, and participant information. This status information can be used to monitor and manage session operations. Session routing and forwarding: Forwards session data to the correct destination based on the session identifier and destination address. The SMF can send session data to the appropriate destination device or module based on preconfigured routing policies. Session security and access control: Ensures session security and confidentiality. The SMF can implement security measures such as authentication, encryption, and access control to protect session data from unauthorized access. Session monitoring and troubleshooting: Monitors session operations and performs troubleshooting when failures or anomalies occur. The session management function network element can collect and analyze session data to identify and solve problems in a timely manner.

[0036] Step S108: When the usage rate of the address resources in the address pool corresponding to the target network element is greater than a preset threshold, the address resources in the address pool are increased.

[0037] As some optional embodiments of the present application, by calling the attribute information of the target network element, the usage and utilization rate of the address resources of the address pool corresponding to the target network element can be determined. When the usage exceeds a preset threshold or the utilization rate exceeds a preset percentage, the address resources in the address pool are expanded.

[0038] According to the above steps, by determining that the Internet Protocol address obtained by the terminal is abnormal, determining the flag bit type in the first field in the first session message between the terminal and the network element, and determining the target network element that caused the Internet Protocol address abnormality based on the flag bit type, and when the usage rate of the address resources in the address pool corresponding to the target network element is greater than the preset threshold, increasing the address resources in the address pool, the purpose of determining the faulty network element that caused the Internet Protocol address abnormality and then expanding the address pool of the faulty network element is achieved, thereby achieving the technical effect of ensuring that the terminal can quickly obtain the Internet Protocol address.

[0039] According to some optional embodiments of the present application, the first address type of the Internet Protocol address obtained by the terminal is determined based on the second field in the first session message; the second address type included in the address pool corresponding to the target network element is obtained; the first address type and the second address type are matched, and when the first address type and the second address type are inconsistent or the first address type is not included in the second address type, a first message for prompting an abnormality in the packet data network type is sent to the terminal.

[0040] Obtain the packet data network type field in the session establishment message based on the packet forwarding control protocol, determine whether the address type requested by the terminal is IPv4, IPv6, or IPv4&IPv6 based on the packet data network type field in the session establishment message, and match it with the IP type supported by the address pool of the network element. If it is determined that the Internet Protocol address type requested by the terminal is incorrect, prompt the terminal that the packet data network type is abnormal.

[0041] According to some optional embodiments of the present application, the first field includes: an Internet Protocol address field corresponding to the terminal in the original data record creation message; the second field includes: a packet data network type field in the session establishment message.

[0042] According to some other optional embodiments of the present application, the flag bit types include: the flag bit types include: a first flag bit and a second flag bit, wherein the first flag bit is used to indicate that the Internet Protocol address of the terminal is allocated by the session management function network element, and the second flag bit is used to indicate that the Internet Protocol address of the terminal is allocated by the user plane function network element.

[0043] In some optional embodiments of the present application, the first flag bit and the second flag bit both include a flag bit corresponding to an IPV4 address and a flag bit corresponding to an IPV6 address.

[0044] Optionally, the first flag bit includes at least: a flag bit corresponding to an IPV4 address and a flag bit corresponding to an IPV6 address, and the second flag bit includes at least: a CHV4 flag bit and a CH V6 flag bit in the 3GPP protocol.

[0045] 3GPP (3rd Generation Partnership Project) is an international standardization organization composed of telecom operators and telecom manufacturers, dedicated to developing and formulating standards for mobile communication technologies. The 3GPP protocol is a series of mobile communication standards developed by the 3GPP organization, including standards for various generations of mobile communication technologies such as 2G, 3G, and 4G. These standards cover aspects such as mobile network architecture, interface protocols, wireless access technology, data transmission, and security. The main goal of the 3GPP protocol is to promote the interoperability and interoperability of global mobile communication systems, enabling equipment and networks from different manufacturers to be compatible with each other. By developing unified standards, the 3GPP protocol ensures that networks from different operators can connect and communicate seamlessly, providing a unified user experience.

[0046] As some optional embodiments of the present application, when the usage rate of the address resources of the address pool corresponding to the target network element is greater than the preset threshold, after increasing the address resources in the address pool, it is also necessary to: determine whether the terminal obtains the Internet Protocol address allocated by the network element.

[0047] According to some other optional embodiments of the present application, the first session message is transmitted based on a packet forwarding control protocol.

[0048] The Packet Forwarding Control Protocol (PFCP) is a protocol for controlling, managing, and monitoring packet forwarding. It is a control plane protocol used in 5G networks, used to transmit control information between the user plane and the control plane. PFCP is primarily used as the protocol interface between the control plane and the user plane to configure and manage packet forwarding policies, load balancing, Quality of Service (QoS), and other related functions. PFCP provides a flexible way to configure and control packet forwarding in the network and supports the deployment of network function virtualization and software-defined networking.

[0049] The main functions of PFCP include: 1. Session management: establishing, modifying, and terminating sessions to control packet forwarding; 2. Traffic processing: defining and configuring packet forwarding policies, load balancing, and quality of service; 3. Network Function Virtualization (NFV) support: supporting the deployment and management of network functions in a virtualized environment; 4. Error handling and fault management: monitoring and managing faults and errors in the network; 5. Security: providing security mechanisms to protect the confidentiality and integrity of packet forwarding control information.

[0050] Figure 2 is a flow chart of another method for managing an address pool according to an embodiment of the present application, such as Figure 2 As shown, the method includes the following steps:

[0051] Step S202: The user plane function network element performs parameter identification on the terminal Internet Protocol address message in the user PFCP session establishment request.

[0052] Figure 3 This is a schematic diagram of the interaction between a terminal and a session management function network element and a user plane function network element according to an embodiment of the present application. The terminal establishes a PFCP session with the user plane function network element through the session management function network element, and the user plane function network element performs parameter identification on the terminal Internet Protocol address message in the user PFCP session establishment request.

[0053] Step S204: For a particular session, the flag bit in the terminal Internet Protocol address message is analyzed. If the flag bit is V4 or V6, it indicates that the address is allocated by the session management function network element, and the faulty network element is located as the session management function network element. If the flag bit is CHV4 or CHV6, it indicates that the address is allocated by the user plane function network element, and the faulty network element is located as the user plane function network element.

[0054] Step S206: Based on the faulty NE located in step S204, the configuration of the faulty NE is obtained and the available ratio of the NE's address pool is analyzed to determine whether it meets the terminal's requirements. The packet data network type field in the PFCP session establishment message is also obtained to confirm whether the terminal's requested address type is IPv4, IPv6, or IPv4 & IPv6. This is then matched against the IP types supported by the NE's configured address pool.

[0055] Step S208: When the analysis result shows that the address pool resources of the faulty network element are insufficient, the expansion configuration is issued to make the address pool resources available; when the analysis result shows that the address type requested by the terminal is not supported, an associated alarm is generated on the user plane functional network element side, prompting the terminal to request an unsupported type and to modify the packet data network type.

[0056] Figure 4 is a structural diagram of an address pool management device according to an embodiment of the present application, such as Figure 4 As shown, the device includes:

[0057] The receiving module 40 is configured to receive a first session message;

[0058] a first determining module 42 configured to, when determining that the Internet Protocol address obtained by the terminal is abnormal, determine a flag bit type in a first field in a first session message between the terminal and the network element, wherein the flag bit type is used to determine the network element that allocates the address to the terminal;

[0059] A second determining module 44 is configured to determine a target network element causing an Internet Protocol address anomaly based on the flag bit type;

[0060] The adding module 46 is configured to add address resources in the address pool when the usage rate of the address resources in the address pool corresponding to the target network element is greater than a preset threshold.

[0061] It should be noted that the above Figure 4 The modules in the embodiment can be program modules (for example, a set of program instructions that implement a specific function) or hardware modules. For the latter, they can be expressed in the following forms, but are not limited to these: the expression form of each of the above modules is a processor, or the functions of each of the above modules are implemented by a processor.

[0062] It should be noted that Figure 4 The preferred implementation of the embodiment shown can be found in Figure 1 The relevant description of the illustrated embodiment will not be repeated here.

[0063] Optionally, based on the second field in the first session message, determine the first address type of the Internet Protocol address obtained by the terminal; obtain the second address type included in the address pool corresponding to the target network element; match the first address type and the second address type, and when the first address type and the second address type are inconsistent or the first address type is not included in the second address type, send a first message to the terminal to prompt that the packet data network type is abnormal.

[0064] Optionally, the first field includes: an Internet Protocol address field corresponding to the terminal in the original data record creation message; the second field includes: a packet data network type field in the session establishment message.

[0065] Optionally, the flag bit type includes: a first flag bit and a second flag bit, wherein the first flag bit is used to indicate that the Internet Protocol address of the terminal is allocated by the session management function network element, and the second flag bit is used to indicate that the Internet Protocol address of the terminal is allocated by the user plane function network element.

[0066] Optionally, the first flag bit and the second flag bit both include a flag bit corresponding to an IPV4 address and a flag bit corresponding to an IPV6 address.

[0067] Optionally, when the usage rate of address resources in the address pool corresponding to the target network element is greater than a preset threshold, after increasing the address resources in the address pool, the method further includes: determining whether the terminal obtains the Internet Protocol address allocated by the network element.

[0068] Optionally, the first session message is transmitted based on a packet forwarding control protocol.

[0069] Figure 5 The hardware structure block diagram of a computer terminal (or mobile device) for implementing the address pool management method is shown. Figure 5 As shown, the computer terminal 50 (or mobile device 50) may include one or more (502a, 502b, ..., 502n are used to illustrate) processors 502 (the processor 502 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 504 for storing data, and a transmission module 506 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It will be understood by those skilled in the art that Figure 5 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 5 More or fewer components than shown, or with Figure 5 Different configurations shown.

[0070] It should be noted that the one or more processors 502 and / or other data processing circuits described above may generally be referred to herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuitry may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 50 (or mobile device). As described in the embodiments of the present application, the data processing circuitry serves as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0071] The memory 504 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the address pool management method in the embodiment of the present application. The processor 502 executes various functional applications and data processing by running the software programs and modules stored in the memory 504, that is, implementing the above-mentioned address pool management method. The memory 504 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 504 may further include a memory remotely located relative to the processor 502, and these remote memories may be connected to the computer terminal 50 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0072] The transmission module 506 is configured to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by the communications provider of the computer terminal 50. In one embodiment, the transmission module 506 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission module 506 may be a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.

[0073] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 50 (or mobile device).

[0074] It should be noted that, in some optional embodiments, the above Figure 5 The computer device (or electronic device) shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. Figure 5 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computer device (or electronic device) described above.

[0075] It should be noted that Figure 5 The electronic device shown is used to perform Figure 1 The management method of the address pool shown in the figure, therefore the relevant explanations in the execution method of the above command are also applicable to the electronic device and will not be repeated here.

[0076] An embodiment of the present application further provides a non-volatile storage medium, which includes a stored program. When the program runs, the device where the storage medium is located is controlled to execute the above-mentioned address pool management method.

[0077] A program for a non-volatile storage medium to perform the following functions: receiving a first session message; determining a flag bit type in a first field in a first session message between the terminal and a network element when it is determined that the Internet Protocol address obtained by the terminal is abnormal, wherein the flag bit type is used to determine the network element that allocates the address to the terminal; determining a target network element that causes the Internet Protocol address abnormality based on the flag bit type; and increasing address resources in the address pool when the usage rate of address resources in the address pool corresponding to the target network element is greater than a preset threshold.

[0078] An embodiment of the present application further provides an electronic device, including: a memory and a processor, wherein the processor is configured to run a program stored in the memory, wherein the above-mentioned address pool management method is executed when the program is run.

[0079] The processor is used to run a program that performs the following functions: receiving a first session message; when it is determined that the Internet Protocol address obtained by the terminal is abnormal, determining a flag bit type in a first field in the first session message between the terminal and the network element, wherein the flag bit type is used to determine the network element that allocates the address to the terminal; determining a target network element that causes the Internet Protocol address abnormality based on the flag bit type; and when the usage rate of address resources in the address pool corresponding to the target network element is greater than a preset threshold, increasing the address resources in the address pool.

[0080] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0081] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0082] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0083] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0084] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0085] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0086] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for managing an address pool, characterized in that: include: receiving a first session message; In a case where it is determined that the Internet Protocol address obtained by the terminal is abnormal, determining a flag bit type in a first field in the first session message between the terminal and the network element, wherein the flag bit type is used to determine the network element that allocates the address to the terminal; Determining, according to the flag bit type, a target network element causing the Internet Protocol address anomaly; When the usage rate of the address resources in the address pool corresponding to the target network element is greater than a preset threshold, the address resources in the address pool are increased.

2. The method according to claim 1, characterized in that include: determining, according to the second field in the first session message, a first address type of the Internet Protocol address acquired by the terminal; Obtaining a second address type included in the address pool corresponding to the target network element; The first address type and the second address type are matched, and if the first address type and the second address type are inconsistent or the second address type does not include the first address type, a first message for prompting abnormality of the packet data network type is sent to the terminal.

3. The method according to claim 2, characterized in that include: The first field includes: creating an Internet Protocol address field corresponding to the terminal in the original data record message; The second field includes: a packet data network type field in a session establishment message.

4. The method according to claim 1, wherein The flag bit type includes: a first flag bit and a second flag bit, wherein the first flag bit is used to indicate that the Internet Protocol address of the terminal is allocated by a session management function network element, and the second flag bit is used to indicate that the Internet Protocol address of the terminal is allocated by a user plane function network element.

5. The method according to claim 4, characterized in that The first flag bit and the second flag bit both include a flag bit corresponding to an IPV4 address and a flag bit corresponding to an IPV6 address.

6. The method according to claim 1, characterized in that When the usage rate of the address resources in the address pool corresponding to the target network element is greater than a preset threshold, after increasing the address resources in the address pool, the method further includes: determining whether the terminal obtains the Internet Protocol address allocated by the network element.

7. The method according to claim 1, characterized in that The first session message is transmitted based on a packet forwarding control protocol.

8. A device for managing an address pool, characterized in that: include: A receiving module, configured to receive a first session message; A first determining module is configured to, when it is determined that the Internet Protocol address obtained by the terminal is abnormal, determine a flag bit type in a first field in the first session message between the terminal and the network element, wherein the flag bit type is used to determine the network element that allocates the address to the terminal; A second determining module is configured to determine a target network element causing the Internet Protocol address anomaly based on the flag bit type; The adding module is used to add address resources in the address pool when the usage rate of the address resources in the address pool corresponding to the target network element is greater than a preset threshold.

9. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the address pool management method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the program executes the address pool management method according to any one of claims 1 to 7 when running.

Citation Information

Patent Citations

  • Internet protocol IP address management system and method

    CN106130843A

  • Address management method, device and system

    CN110120988A