Resource release method and device, electronic equipment and storage medium
By having user equipment in the 5G communication system reapply for an IP address and carry the registration request with the old IP address, the problems of IP address conflicts and unreclaimed resources caused by abnormal cancellation registration are resolved, ensuring the stability of communication services and the effective utilization of resources.
Patent Information
- Application Number
- CN202511939934.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-22
- Publication Date
- 2026-03-17
AI Technical Summary
In 5G communication systems, user equipment may experience issues such as IP address conflicts and unreclaimed resources due to failures in the bearer network or access network, which can affect the stability of communication services.
The user equipment sends a deregistration request to the 5G core network and the IP multimedia subsystem. If no response is received, it re-applies for a second IP address from the 5G core network and releases resources by carrying a registration request with the old IP address, ensuring that the IP multimedia subsystem cleans up the relevant resources.
This avoids IP address conflicts and unreclaimed resources, ensures the stable operation of communication services, and enables the timely release and effective utilization of resources.
Smart Images

Figure CN121692385A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically to a resource release method, apparatus, electronic device, and storage medium. Background Technology
[0002] In the current communication process, user equipment (UE) needs to register and deregister (also known as deregistration) with the 5G core network (5GC) and the IP Multimedia Subsystem (IMS).
[0003] When a UE initiates deregistration to the IMS network, if the deregistration signaling is silently discarded due to a failure in the bearer network or access network, the UE will not be able to successfully deregister in IMS. However, the UE may still successfully complete the 5GC deregistration process. After the 5GC successfully deregisters, the Session Management Function (SMF) will reclaim the IP address previously assigned to the UE and assign the reclaimed IP address to other UEs. This will lead to IP address conflicts and unreclaimed resources, thus affecting subsequent communication services. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a resource release method, apparatus, electronic device, and storage medium to solve the problems of IP address conflicts and unreclaimed resources caused by abnormal registration cancellation.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] The first aspect of this invention discloses a resource release method, applicable to user equipment, the method comprising:
[0007] Send deregistration requests to the IP Multimedia Subsystem and the 5G Core Network respectively to release and reclaim the resources of the first IP address;
[0008] If the first response message from the IP Multimedia Subsystem is not received but the second response message from the 5G Core Network is received, a first registration request is sent to the 5G Core Network, so that the 5G Core Network reallocates a second IP address to the user equipment.
[0009] A second registration request is sent to the IP Multimedia Subsystem, causing the IP Multimedia Subsystem to release the resources of the first IP address and establish the resources of the second IP address according to the second registration request. The second registration request carries at least the first IP address and the second IP address.
[0010] Preferably, sending a second registration request to the IP Multimedia Subsystem, causing the IP Multimedia Subsystem to release the resources of the first IP address and establish the resources of the second IP address according to the second registration request, includes:
[0011] Construct a second registration request, wherein the URI field in the message header of the second registration request carries the second IP address, and the extended parameter field in the message header of the second registration request carries the first IP address;
[0012] The constructed second registration request is sent to the IP multimedia subsystem, causing the IP multimedia subsystem to release the resources of the first IP address and establish the resources of the second IP address according to the second registration request.
[0013] Preferably, the second registration request is a Session Initiation Protocol (SIP) registration request.
[0014] A second aspect of this invention discloses a resource release method, applicable to an IP multimedia subsystem, the method comprising:
[0015] The system receives a second registration request from a user equipment (UE), wherein the UE has previously sent deregistration requests to both the IP Multimedia Subsystem (IPS) and the 5G Core Network to release and reclaim the resources of the first IP address; when the UE does not receive a first response message from the IP SMS but receives a second response message from the 5G Core Network, the UE sends a first registration request to the 5G Core Network so that the 5G Core Network reallocates a second IP address to the UE.
[0016] The second registration request releases the resources of the first IP address and establishes the resources of the second IP address, wherein the second registration request carries at least the first IP address and the second IP address.
[0017] Preferably, releasing the resources of the first IP address and establishing the resources of the second IP address according to the second registration request includes:
[0018] Parse the message header of the second registration request to extract the first IP address and the second IP address;
[0019] Locate and release the resources associated with the first IP address;
[0020] Establish a resource associated with the second IP address.
[0021] A third aspect of this invention discloses a resource release device, which is applicable to user equipment and includes:
[0022] The deregistration unit is used to send deregistration requests to the IP Multimedia Subsystem and the 5G Core Network respectively, in order to release and reclaim the resources of the first IP address;
[0023] The first registration unit is configured to send a first registration request to the 5G core network if it does not receive a first response message from the IP Multimedia Subsystem but receives a second response message from the 5G core network, so that the 5G core network reallocates a second IP address to the user equipment.
[0024] The second registration unit is used to send a second registration request to the IP multimedia subsystem, so that the IP multimedia subsystem releases the resources of the first IP address and establishes the resources of the second IP address according to the second registration request. The second registration request carries at least the first IP address and the second IP address.
[0025] Preferably, the second registration unit is specifically used for:
[0026] Construct a second registration request, wherein the URI field in the message header of the second registration request carries the second IP address, and the extended parameter field in the message header of the second registration request carries the first IP address;
[0027] The constructed second registration request is sent to the IP multimedia subsystem, causing the IP multimedia subsystem to release the resources of the first IP address and establish the resources of the second IP address according to the second registration request.
[0028] A fourth aspect of this invention discloses a resource release device, the device being applicable to an IP multimedia subsystem, the device comprising:
[0029] A receiving unit is configured to receive a second registration request sent by a user equipment, wherein the user equipment has pre-sent deregistration requests to the IP Multimedia Subsystem and the 5G Core Network respectively to release and reclaim the resources of the first IP address; when the user equipment does not receive a first response message from the IP Multimedia Subsystem but receives a second response message from the 5G Core Network, the user equipment sends a first registration request to the 5G Core Network so that the 5G Core Network reallocates a second IP address to the user equipment;
[0030] The processing unit is configured to release the resources of the first IP address and establish the resources of the second IP address according to the second registration request, wherein the second registration request carries at least the first IP address and the second IP address.
[0031] A fifth aspect of the present invention discloses a computer device, comprising: a processor and a memory, the processor and the memory being connected via a bus; wherein, the processor is configured to call and execute a program stored in the memory; the memory is configured to store the program, the program being configured to implement the resource release method disclosed in the first aspect of the present invention, or the program being configured to implement the resource release method disclosed in the second aspect of the present invention.
[0032] A sixth aspect of the present invention discloses a storage medium storing computer-executable instructions, which are used to execute the resource release method disclosed in the first aspect of the present invention, or the computer-executable instructions are used to execute the resource release method disclosed in the second aspect of the present invention.
[0033] Based on the resource release method, apparatus, electronic device, and storage medium provided in the above embodiments of the present invention, when a user equipment successfully cancels registration with the 5G core network but encounters an abnormal cancellation registration with the IP Multimedia Subsystem, it sends a first registration request to the 5G core network to enable the 5G core network to reallocate a second IP address for the user equipment. A second registration request, carrying at least the second IP address and the first IP address involved in the cancellation registration abnormality, is sent to the IP Multimedia Subsystem. This allows the IP Multimedia Subsystem to release the resources of the first IP address and establish the resources of the second IP address based on the second registration request, avoiding IP address conflicts and unreclaimed resources caused by the cancellation registration abnormality, and ensuring the stable operation of communication services. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0035] Figure 1 A flowchart of a resource release method provided in an embodiment of the present invention;
[0036] Figure 2 This is another flowchart of a resource release method provided in an embodiment of the present invention;
[0037] Figure 3 An interactive flowchart of a resource release method provided in an embodiment of the present invention;
[0038] Figure 4 This is a structural block diagram of a resource release device provided in an embodiment of the present invention;
[0039] Figure 5 This is a structural block diagram of a resource release device provided in an embodiment of the present invention. Detailed Implementation
[0040] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0042] To better understand the following content, we will first explain the content of "Secure connection between user equipment (UE) and proxy call session control function (ProxyCSCF, P-CSCF)" and "UE access to 5G core network (5GC) and address allocation".
[0043] Secure connection between UE and P-CSCF: Communication security between the UE and P-CSCF is built on the IPSecESP (Encapsulating Security Payload) protocol and operates in Transport Mode. In this mode, only the payload of the IP data packets (i.e., SIP signaling) is encrypted and authenticated, while the IP header remains in plaintext for network routing. As a mature standardized protocol, IPSecESP provides core security guarantees for SIP signaling, including confidentiality, data integrity, data source authentication, and protection against replay attacks. SIP stands for Session Initiation Protocol.
[0044] UE Access to 5GC and Address Allocation: The UE accesses the network by sending a Protocol Data Unit (PDU) session establishment request to the network. This request includes the PDU session type (e.g., IPv4, IPv6) and the Data Network Name (DNN), which specifies the target external data network. The Access and Mobility Management Function (AMF) selects the appropriate Session Management Function (SMF) based on the DNN, network policies, and local configuration. As the IP address allocation entity, the SMF is responsible for allocating free IP addresses to the UE from the IP address pool it manages, which corresponds to the DNN.
[0045] In the existing communication process, the UE needs to register and deregister (also known as "deregister") with the 5GC and IP Multimedia Subsystem (IMS) networks. During the 5GC registration process, the SMF assigns an IP address and creates a default bearer, thereby establishing a signaling channel to the IMS. Ideally, the UE should initiate deregistration normally after completing its service on the IMS network.
[0046] It should be noted that deregistration refers to releasing the UE's resources in the IMS network through the deregistration process. These released resources include IPSec resources allocated to the UE by the IMS network and other context resources of the UE. The deregistration process eliminates the UE's trace in the IMS network.
[0047] However, when a UE initiates deregistration with the IMS network, if the SIP deregistration signaling is silently discarded due to a failure in the bearer network or access network, the UE will be unable to successfully deregister with the IMS network. Nevertheless, the UE may still successfully complete the 5GC deregistration process. After successful 5GC deregistration, the SMF will reclaim the IP address previously assigned to the UE, which may subsequently be reassigned to another UE. Because the IMS network deregistration process is incomplete, the IPSec security association resources established based on the original IP address are not released, resulting in the resources not being reclaimed. This leads to the following two problems:
[0048] Problem 1: Waste of resources: IMS leaves behind unrecovered resources.
[0049] Issue 2, IP address conflict: When a reclaimed IP address is reassigned to another UE, and that UE attempts to establish an IPSec connection through the same P-CSCF, the P-CSCF will detect that the IP address already has an associated resource (albeit an invalid one), resulting in a resource conflict that affects the normal access and service of other UEs.
[0050] Both of these issues will seriously affect subsequent communication services.
[0051] To address the aforementioned issues, this invention provides a resource release method, apparatus, electronic device, and storage medium. When a user equipment (UE) successfully deregisters with the 5G core network but encounters an abnormal deregistration with the IP Multimedia Subsystem (IPS), it sends a first registration request to the 5G core network to enable the 5G core network to reallocate a second IP address to the UE. A second registration request, carrying at least the second IP address and the first IP address involved in the deregistration abnormality, is then sent to the IP SMS. This allows the IP SMS to release the resources associated with the first IP address and establish the resources associated with the second IP address based on the second registration request. This avoids IP address conflicts and unreclaimed resources caused by the deregistration abnormality, ensuring the stable operation of communication services.
[0052] In other words, the embodiments of the present invention can ensure that the IPSec (Internet Protocol Security) resources remaining in IMS can be identified and released in a timely manner when "the UE fails to complete the IMS deregistration process normally, resulting in the IP address being recycled and reused", thereby avoiding the problem of resources not being recycled and subsequent IP address conflicts.
[0053] See Figure 1 , Figure 1 A flowchart of a resource release method provided by an embodiment of the present invention is shown. Figure 1 The resource release method shown is applicable to user equipment (UE). Figure 1 Includes the following steps:
[0054] Step S101: The user equipment sends a deregistration request to both the IP Multimedia Subsystem and the 5G Core Network to release and reclaim the resources of the first IP address.
[0055] It should be noted that the IP Multimedia Subsystem (IMS) includes P-CSCF (Proxy CSCF) network elements, I-CSCF (Interrogating CSCF) network elements, S-CSCF (Serving CSCF) network elements, etc.; SMF is the core network element of the 5G core network (5GC).
[0056] In the specific implementation step S101, the user equipment attempts to send a deregistration request to the IP Multimedia Subsystem and the 5G Core Network in order to release and reclaim the resources of the first IP address.
[0057] Specifically, the user equipment sends a first deregistration request to the P-CSCF of the IP Multimedia Subsystem to release the resources of the first IP address; the user equipment sends a second deregistration request to the SMF of the 5G core network to reclaim the first IP address.
[0058] Step S102: If the user equipment does not receive the first response message from the IP Multimedia Subsystem but receives the second response message from the 5G core network, it sends a first registration request to the 5G core network, so that the 5G core network reallocates a second IP address to the user equipment.
[0059] It should be noted that after the user equipment sends a deregistration request to the IP Multimedia Subsystem and the 5G core network, if the IP Multimedia Subsystem receives the deregistration request (the first deregistration request) and releases the first IP address resource, the IP Multimedia Subsystem will send a first response message back to the user equipment. This first response message indicates that the IP Multimedia Subsystem has received the deregistration request and has released the first IP address resource.
[0060] Similarly, if the 5G core network receives a deregistration request (the second deregistration request) and reclaims the first IP address, the 5G core network will send a second response message to the user equipment. This second response message indicates that the 5G core network has received the deregistration request and has reclaimed the first IP address.
[0061] The first IP address is an old IP address.
[0062] Understandably, if the bearer network or access network malfunctions during the process of the user equipment sending a deregistration request to the IP Multimedia Subsystem, the deregistration request may fail to reach the IP Multimedia Subsystem. Consequently, the user equipment may not receive the first response message from the IP Multimedia Subsystem, and the resources of the first IP address may not be released.
[0063] In the specific implementation step S102, if the user equipment does not receive the first response message from the IP Multimedia Subsystem but receives the second response message from the 5G core network, this indicates that the IP Multimedia Subsystem's deregistration has failed (it cannot release the resources of the first IP address). However, the 5G core network successfully executes the deregistration process (it has successfully reclaimed the first IP address). When the user equipment subsequently re-initiates registration, the user equipment sends a first registration request to the 5G core network, causing the 5G core network to reallocate a second IP address (the newly allocated IP address) to the user equipment.
[0064] It should be noted that after the 5G core network reallocates a second IP address to the user equipment, the 5G core network will send a third response message to the user equipment. This third response message indicates that the user equipment has successfully completed registration on the 5G core network.
[0065] Step S103: The user equipment sends a second registration request to the IP Multimedia Subsystem, so that the IP Multimedia Subsystem releases the resources of the first IP address and establishes the resources of the second IP address according to the second registration request. The second registration request carries at least the first IP address and the second IP address.
[0066] In the specific implementation step S103, the user equipment constructs a second registration request. The Uniform Resource Identifier (URI) field in the message header of the second registration request carries a second IP address, and the extended parameter field in the message header of the second registration request carries a first IP address.
[0067] The user equipment sends the constructed second registration request to the IP Multimedia Subsystem, which then releases the resources of the first IP address and establishes the resources of the second IP address based on the second registration request.
[0068] In some embodiments, the second registration request is a SIP registration request.
[0069] It should be noted that, in this embodiment of the invention, the message header of the registration request sent to the IP Multimedia Subsystem (such as the second registration request mentioned above) is extended by adding an "extended parameter field" to the message header. This extended parameter field is used to indicate the URI used when the last unsuccessful cancellation registration was not completed. The URI includes the old IP address (such as the first IP address mentioned above) and port.
[0070] For example, based on the SIP protocol defined in RFC 3261, the Contact message header of the SIP registration request sent to the IP Multimedia Subsystem (such as the second registration request mentioned above) is extended by adding an extended parameter field "old-uri parameter" to the Contact message header; the "old-uri parameter" in the SIP registration request sent to the IP Multimedia Subsystem indicates the URI used when the last unsuccessful deregistration was not completed (including the old IP address and port).
[0071] In other words, when a user equipment fails to register with the IP Multimedia Subsystem, the user equipment will explicitly include the "first IP address used in the previous unsuccessful registration" in the second registration request it sends to the IP Multimedia Subsystem. Upon receiving the second registration request, the IP Multimedia Subsystem can proactively clean up resources (such as IPSec resources) associated with that first IP address (the old IP address).
[0072] In this embodiment of the invention, when a user equipment (UE) successfully deregisters with the 5G core network but encounters an error while deregistering with the IP Multimedia Subsystem (IPS), it sends a first registration request to the 5G core network to reassign a second IP address to the UE. A second registration request, carrying at least the second IP address and the first IP address involved in the deregistration error, is then sent to the IP SMS. This allows the IP SMS to release the resources associated with the first IP address and create the resources associated with the second IP address based on the second registration request. This avoids IP address conflicts and unreclaimed resources caused by the deregistration error, ensuring the stable operation of communication services.
[0073] See Figure 2 , Figure 2 Another flowchart of a resource release method provided by an embodiment of the present invention is shown. Figure 2 The resource release method shown is applicable to IP Multimedia Subsystem (IMS). Figure 2 Includes the following steps:
[0074] Step S201: The IP Multimedia Subsystem receives the second registration request sent by the user equipment.
[0075] It should be noted that the user equipment (UE) sends deregistration requests to both the IP Multimedia Subsystem (IPS) and the 5G core network in advance to release and reclaim the resources of the first IP address. If the UE does not receive a first response message from the IP SMS but receives a second response message from the 5G core network, the UE sends a first registration request to the 5G core network to enable the 5G core network to reallocate a second IP address to the UE. For details, please refer to the above-described embodiments of the present invention. Figure 1 The details will not be repeated here.
[0076] Step S202: The IP Multimedia Subsystem releases the resources of the first IP address and establishes the resources of the second IP address according to the second registration request. The second registration request carries at least the first IP address and the second IP address.
[0077] In the specific implementation step S202, the IP Multimedia Subsystem parses the message header of the second registration request to extract the first IP address (the old IP address) and the second IP address (the newly assigned IP address).
[0078] The IP Multimedia Subsystem locates and releases resources associated with the first IP address (unreleased IPSec resources). Specifically, the IP Multimedia Subsystem searches based on the first IP address to find the resources associated with the first IP address (unreleased IPSec resources), and then releases the resources associated with the first IP address.
[0079] After releasing the resources associated with the first IP address, the IP Multimedia Subsystem establishes resources associated with the second IP address (the newly assigned IP address).
[0080] It should be noted that after the IP Multimedia Subsystem establishes the resource associated with the second IP address, the IP Multimedia Subsystem will send a fourth response message to the user equipment. This fourth response message indicates that the user equipment has successfully completed registration with the IP Multimedia Subsystem.
[0081] In this embodiment of the invention, when the IP Multimedia Subsystem receives a second registration request sent by the user equipment, the IP Multimedia Subsystem releases the resources of the first IP address and establishes the resources of the second IP address according to the second registration request, so as to avoid IP address conflicts and resource unrecovery caused by abnormal cancellation registration, and ensure the stable operation of communication services.
[0082] To better understand the interaction process between the user equipment, IP multimedia subsystem, and 5G core network, the following will explain... Figure 3 An interactive flowchart illustrating a resource release method is provided as an example. In this example, the user equipment sends a deregistration request and a registration request to the P-CSCF of the IP Multimedia Subsystem and the SMF of the 5G core network. Figure 3 Includes the following steps:
[0083] Step S301: The UE sends a first deregistration request to the P-CSCF, and a deregistration exception occurs in the P-CSCF.
[0084] In the specific implementation step S301, the UE attempts to send a first deregistration request to the P-CSCF. Due to an anomaly in the bearer network or access network, the first deregistration request fails to reach the P-CSCF. This results in the IPSec resources associated with the "first IP address" on the P-CSCF side not being released. Consequently, the UE cannot receive the first response message from the P-CSCF.
[0085] One example of the first IP address is "41.0.67.**3:5060".
[0086] Step S302: The UE sends a second deregistration request to the SMF.
[0087] Step S303: The SMF receives the second deregistration request and reclaims the UE's first IP address.
[0088] In the specific implementation step S303, the SMF receives the second deregistration request sent by the UE, and the SMF reclaims the first IP address "41.0.67.**3:5060".
[0089] Step S304: The SMF sends a second response message to the UE.
[0090] It should be noted that the second response message indicates that SMF has received the second deregistration request and has already reclaimed the first IP address.
[0091] Step S305: The UE re-initiates the first registration request to the SMF.
[0092] Step S306: The SMF reassigns a second IP address to the UE.
[0093] One example of the second IP address is "41.0.67.**8:5060".
[0094] Step S307: The SMF sends a third response message to the UE.
[0095] It should be noted that the third response message indicates that the UE has successfully completed registration with the SMF.
[0096] Step S308: The UE sends a second registration request to the P-CSCF.
[0097] It should be noted that one example of the Contact header in the second registration request is: Contact:<sip:41.0.67.**8:5060> ;old-uri="<sip:41.0.67.**3:5060> ";+g.3gpp.accesstype="cellular2";audio;+g.3gpp.smsip;video;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";+g.3gpp.mid-call;+g.3gpp.srvcc-alerting;+sip.instance=" <urn:gsma:imei:86616000-000000-0>".
[0098] In the Contact message header of the second registration request, the URI field carries the newly assigned second IP address.<sip:41.0.67.**8:5060> The "old-uri parameter" field carries the first IP address used when the last unsuccessful deregistration (i.e., deregistration failed) occurred.<sip:41.0.67.**3:5060> ".
[0099] Step S309: After receiving the second registration request, P-CSCF reclaims the resources of the first IP address and establishes resources associated with the second IP address.
[0100] In the specific implementation step S309, after receiving the second registration request, the P-CSCF parses the Contact message header of the second registration request. If it finds the "old-uri parameter" extended parameter field, the P-CSCF extracts the first IP address from this extended parameter field.<sip:41.0.67.**3:5060> The P-CSCF actively queries and deletes all residual IPSec resources associated with the first IP address.
[0101] After P-CSCF cleans up all residual IPSec resources associated with the first IP address, it continues to process the second registration request, establishes new IPSec resources based on the second IP address, and associates them.
[0102] Step S310: The P-CSCF sends a fourth response message to the UE.
[0103] It should be noted that the fourth response message indicates that the UE has successfully completed registration in the P-CSCF.
[0104] The above embodiments of the present invention Figure 3 This pertains to the interaction process between user equipment, the IP multimedia subsystem, and the 5G core network. As can be seen from the above embodiments, this solution has the following advantages:
[0105] Timely release of unreclaimed resources: By utilizing the signaling channel re-registered by the UE and carrying the old IP address, the P-CSCF can immediately release the residual IPSec resources after detecting the old IP address, thus solving the problem of resources not being reclaimed for a long time due to abnormal deregistration.
[0106] Effectively avoid IP conflicts: By promptly cleaning up old resources, when old IP addresses are reclaimed by the SMF and reassigned to other UEs, the risk of "other UEs being unable to establish new IPSec connections in P-CSCF due to IP address conflicts" is eliminated, ensuring the effective use of network resources and normal access for new users.
[0107] Protocol compatibility implementation: The functionality is achieved by extending the standard SIP protocol (by adding extended parameter fields). The solution is simple and efficient, conforms to protocol design principles, and is easy to deploy in existing IMS networks.
[0108] Corresponding to the resource release method provided in the above embodiments of the present invention, see also... Figure 4 The present invention also provides a structural block diagram of a resource release device. Figure 4 The resource release device shown is applicable to user equipment and includes: a deregistration unit 401, a first registration unit 402, and a second registration unit 403.
[0109] The deregistration unit 401 is used to send deregistration requests to the IP Multimedia Subsystem and the 5G Core Network respectively, so as to release and reclaim the resources of the first IP address.
[0110] The first registration unit 402 is used to send a first registration request to the 5G core network if it does not receive a first response message from the IP Multimedia Subsystem but receives a second response message from the 5G core network, so that the 5G core network reallocates a second IP address to the user equipment.
[0111] The second registration unit 403 is used to send a second registration request to the IP Multimedia Subsystem, so that the IP Multimedia Subsystem releases the resources of the first IP address and establishes the resources of the second IP address according to the second registration request. The second registration request carries at least the first IP address and the second IP address.
[0112] In one specific embodiment, the second registration unit 403 is specifically used to: construct a second registration request, wherein the URI field in the message header of the second registration request carries a second IP address and the extended parameter field in the message header of the second registration request carries a first IP address; and send the constructed second registration request to the IP multimedia subsystem, so that the IP multimedia subsystem releases the resources of the first IP address and establishes the resources of the second IP address according to the second registration request.
[0113] In one specific embodiment, the second registration request is a SIP registration request.
[0114] In this embodiment of the invention, when a user equipment (UE) successfully deregisters with the 5G core network but encounters an error while deregistering with the IP Multimedia Subsystem (IPS), it sends a first registration request to the 5G core network to reassign a second IP address to the UE. A second registration request, carrying at least the second IP address and the first IP address involved in the deregistration error, is then sent to the IP SMS. This allows the IP SMS to release the resources associated with the first IP address and create the resources associated with the second IP address based on the second registration request. This avoids IP address conflicts and unreclaimed resources caused by the deregistration error, ensuring the stable operation of communication services.
[0115] Corresponding to the resource release method provided in the above embodiments of the present invention, see also... Figure 5 The present invention also provides a structural block diagram of a resource release device. Figure 5 The resource release device shown is applicable to an IP multimedia subsystem and includes a receiving unit 501 and a processing unit 502.
[0116] The receiving unit 501 is used to receive a second registration request sent by the user equipment, wherein the user equipment has previously sent a deregistration request to the IP Multimedia Subsystem and the 5G Core Network respectively to release and reclaim the resources of the first IP address; when the user equipment does not receive a first response message from the IP Multimedia Subsystem but receives a second response message from the 5G Core Network, the user equipment sends a first registration request to the 5G Core Network so that the 5G Core Network reallocates a second IP address to the user equipment.
[0117] Processing unit 502 is used to release the resources of the first IP address and establish the resources of the second IP address according to the second registration request, wherein the second registration request carries at least the first IP address and the second IP address.
[0118] In one specific embodiment, the processing unit 502 is specifically used to: parse the message header of the second registration request to extract the first IP address and the second IP address; locate and release the resource associated with the first IP address; and establish the resource associated with the second IP address.
[0119] In this embodiment of the invention, when the IP Multimedia Subsystem receives a second registration request sent by the user equipment, the IP Multimedia Subsystem releases the resources of the first IP address and establishes the resources of the second IP address according to the second registration request, so as to avoid IP address conflicts and resource unrecovery caused by abnormal cancellation registration, and ensure the stable operation of communication services.
[0120] Preferably, the present invention also provides a computer device, including: a processor and a memory, the processor and the memory being connected via a bus; wherein, the processor is used to call and execute a program stored in the memory; the memory is used to store the program, the program being used for the resource release method provided in any of the above method embodiments.
[0121] Preferably, the present invention also provides a storage medium storing computer-executable instructions for executing the resource release method provided in any of the above method embodiments.
[0122] In summary, embodiments of the present invention provide a resource release method, apparatus, electronic device, and storage medium. When a user equipment (UE) successfully deregisters with the 5G core network but encounters an abnormal deregistration with the IP Multimedia Subsystem (IPS), it sends a first registration request to the 5G core network to enable the 5G core network to reallocate a second IP address to the UE. A second registration request, carrying at least the second IP address and the first IP address involved in the deregistration abnormality, is sent to the IP SMS. This allows the IP SMS to release the resources associated with the first IP address and establish the resources associated with the second IP address based on the second registration request. This avoids IP address conflicts and unreclaimed resources caused by the deregistration abnormality, ensuring the stable operation of communication services.
[0123] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. 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 network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0124] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0125] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A resource release method, characterized by, The method is suitable for a user equipment, and the method comprises: sending a deregistration request to an IP multimedia subsystem and a 5G core network respectively to release and recover resources of a first IP address; if a first response message fed back by the IP multimedia subsystem is not received and a second response message fed back by the 5G core network is received, sending a first registration request to the 5G core network to make the 5G core network re-allocate a second IP address for the user equipment; sending a second registration request to the IP multimedia subsystem to make the IP multimedia subsystem release resources of the first IP address and establish resources of the second IP address according to the second registration request, the second registration request carrying at least the first IP address and the second IP address.
2. The method of claim 1, wherein, The method comprises: constructing a second registration request, a URI field in a message header of the second registration request carrying the second IP address, and an extension parameter field in the message header of the second registration request carrying the first IP address; sending the constructed second registration request to the IP multimedia subsystem to make the IP multimedia subsystem release resources of the first IP address and establish resources of the second IP address according to the second registration request.
3. The method according to claim 1 or 2, characterized in that, The second registration request is a session initiation protocol (SIP) registration request.
4. A resource release method, characterized by, The method is suitable for an IP multimedia subsystem, and the method comprises: receiving a second registration request sent by a user equipment, wherein the user equipment previously sends a deregistration request to the IP multimedia subsystem and a 5G core network respectively to release and recover resources of a first IP address; and when a first response message fed back by the IP multimedia subsystem is not received and a second response message fed back by the 5G core network is received, the user equipment sends a first registration request to the 5G core network to make the 5G core network re-allocate a second IP address for the user equipment; releasing resources of the first IP address and establishing resources of the second IP address according to the second registration request, the second registration request carrying at least the first IP address and the second IP address.
5. The method of claim 4, wherein, The method comprises: parsing a message header of the second registration request to extract the first IP address and the second IP address; finding and releasing resources associated with the first IP address; establishing resources associated with the second IP address.
6. A resource release apparatus characterized by comprising: The device is suitable for a user equipment, and the device comprises: a deregistration unit configured to send a deregistration request to an IP multimedia subsystem and a 5G core network respectively to release and recover resources of a first IP address; The first registration unit is configured to, if the first response message fed back by the IP multimedia subsystem is not received and the second response message fed back by the 5G core network is received, send a first registration request to the 5G core network, so that the 5G core network re-allocates a second IP address for the user equipment. The second registration unit is configured to send a second registration request to the IP multimedia subsystem, so that the IP multimedia subsystem releases resources of the first IP address and establishes resources of the second IP address according to the second registration request, and the second registration request carries at least the first IP address and the second IP address.
7. The apparatus of claim 6, wherein, The second registration unit is specifically configured to: construct a second registration request, a URI field in a message header of the second registration request carrying the second IP address, and an extension parameter field in the message header of the second registration request carrying the first IP address; send the constructed second registration request to the IP multimedia subsystem, so that the IP multimedia subsystem releases resources of the first IP address and establishes resources of the second IP address according to the second registration request.
8. A resource release apparatus characterized by comprising: The device is applicable to an IP multimedia subsystem, and the device comprises: a receiving unit configured to receive a second registration request sent by user equipment, wherein the user equipment previously sends a deregistration request to the IP multimedia subsystem and a 5G core network respectively to release and recycle resources of a first IP address; and the user equipment sends a first registration request to the 5G core network to make the 5G core network re-allocate a second IP address for the user equipment when a first response message fed back by the IP multimedia subsystem is not received and a second response message fed back by the 5G core network is received; a processing unit configured to release resources of the first IP address and establish resources of the second IP address according to the second registration request, and the second registration request carries at least the first IP address and the second IP address.
9. A computer device, comprising: comprise: a processor and a memory connected through a bus; wherein the processor is configured to invoke and execute a program stored in the memory; the memory is configured to store a program, and the program is configured to implement the resource release method according to any one of claims 1-3, or the program is configured to implement the resource release method according to any one of claims 4-5.
10. A storage medium, characterized by The storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the resource release method according to any one of claims 1-3, or the computer executable instructions are configured to execute the resource release method according to any one of claims 4-5.