WO2024125117A1 - Redundant resource recycling processing method and device, and storage medium and electronic device - Google Patents

Redundant resource recycling processing method and device, and storage medium and electronic device Download PDF

Info

Publication number
WO2024125117A1
WO2024125117A1 PCT/CN2023/127897 CN2023127897W WO2024125117A1 WO 2024125117 A1 WO2024125117 A1 WO 2024125117A1 CN 2023127897 W CN2023127897 W CN 2023127897W WO 2024125117 A1 WO2024125117 A1 WO 2024125117A1
Authority
WO
WIPO (PCT)
Prior art keywords
smf
resources
receiving
session
sending
Prior art date
Application number
PCT/CN2023/127897
Other languages
French (fr)
Chinese (zh)
Inventor
张鲁遥
王翠钟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2024125117A1 publication Critical patent/WO2024125117A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
    • H04W4/185Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals by embedding added-value information into content, e.g. geo-tagging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Definitions

  • the embodiments of the present disclosure relate to the field of communications, and in particular, to a redundant resource recovery processing method, device, storage medium, and electronic device.
  • Figure 1 is an architecture diagram of a 5G system in a home routing roaming mode in the related art. As shown in Figure 1, it mainly includes: V-SMF (Visit Session Management Function) and H-SMF (Home Session Management Function).
  • V-SMF Visit Session Management Function
  • H-SMF Home Session Management Function
  • FIG2 is an architecture diagram of a 5G system in a local roaming mode in the related art. As shown in FIG2 , it mainly includes: I-SMF (Intermediate Session Management Function) and SMF (Session Management Function).
  • I-SMF Intermediate Session Management Function
  • SMF Session Management Function
  • A-SMF and H-SMF are home SMFs used for billing and policy control.
  • I-SMF and V-SMF are used to transmit signaling between AMF and A/H-SMF.
  • PSA-SMF and I/V-SMF can be used instead.
  • the user context information of I/V-SMF and PSA-SMF should be consistent.
  • the user, session, and QoS Flow (Quality of Service) context resources of the two may be inconsistent, resulting in waste of resources and affecting the subsequent user experience.
  • PSA-SMF In roaming state, after the user hangs up after making a voice call, PSA-SMF sends an update message to I/V-SMF to delete QoS Flow. Due to network fluctuations, I/V-SMF does not receive the message. After waiting for the response timeout, PSA-SMF deletes the QoS Flow context, resulting in inconsistent resources on both sides. If the user makes another call, I/V-SMF will create QoS Flow repeatedly, and I/V-SMF may handle the exception, and the user cannot make a phone call to complain.
  • PSA-SMF initiates session release. In the event of an exception, it does not send a release request to I/V-SMF. Eventually, PSA-SMF and other network-side NFs release the session, but the I/V-SMF, AMF, and base station still have a session. The subsequent session update process initiated by the UE or base station will fail.
  • the I/V-SMF process is removed, and the AMF sends a release message to the I/V-SMF to be released. If the AMF handles the exception and does not send the message, the entire user information of the I/V-SMF will be stuck, and no further messages will be received, resulting in a waste of resources. In severe cases, the resources on the entire SMF may be fully occupied.
  • the embodiments of the present disclosure provide a redundant resource recovery processing method, apparatus, storage medium and electronic device to at least solve the problem in the related art that inconsistency of resources between SMFs in a roaming state leads to abnormal processing, session update failure and resource waste.
  • a redundant resource recovery processing method which is applied to the network side, and the method includes: transmitting an interface request message between a sending end SMF and a receiving end SMF, wherein the interface message carries a resource identifier; transmitting an interface response message after verifying the resources corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries a resource status; determining redundant resources based on the resource status through the sending end SMF or the receiving end SMF; and recovering redundant resources through the sending end SMF or the receiving end SMF.
  • a redundant resource recovery processing device which is applied to the network side, and the device includes: a first transmission module, which is used to transmit an interface request message between a sending end SMF and a receiving end SMF, wherein the interface message carries a resource identifier; a second transmission module, which is used to transmit an interface response message after resource verification corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries a resource status; a determination module, which is used to determine redundant resources based on the resource status through the sending end SMF or the receiving end SMF; and a recovery processing module, which is used to recycle redundant resources through the sending end SMF or the receiving end SMF.
  • a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
  • an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • FIG1 is an architecture diagram of a 5G system in a home routing roaming mode in the related art
  • FIG2 is an architecture diagram of a 5G system in a local roaming mode in the related art
  • FIG. 3 is a hardware structure block diagram of a computer device of a redundant resource recovery processing method according to an embodiment of the present disclosure
  • FIG4 is a flow chart of a redundant resource recovery processing method according to an embodiment of the present disclosure.
  • FIG. 5 is a flowchart 1 of QoS Flow redundant resource recovery according to an embodiment of the present disclosure
  • Figure 6 is a second flowchart of QoS Flow redundant resource recovery according to an embodiment of the present disclosure
  • Figure 7 is a flowchart 3 of QoS Flow redundant resource recovery according to an embodiment of the present disclosure
  • FIG8 is a fourth flowchart of QoS Flow redundant resource recovery according to an embodiment of the present disclosure.
  • FIG9 is a flowchart 1 of session redundant resource recovery according to an embodiment of the present disclosure.
  • FIG10 is a second flowchart of session redundant resource recovery according to an embodiment of the present disclosure.
  • FIG11 is a third flowchart of session redundant resource recovery according to an embodiment of the present disclosure.
  • FIG12 is a fourth flowchart of session redundant resource recovery according to an embodiment of the present disclosure.
  • FIG13 is a flowchart 1 of user redundant resource recovery according to an embodiment of the present disclosure.
  • FIG14 is a second flowchart of user redundant resource recovery according to an embodiment of the present disclosure.
  • FIG. 15 is a block diagram of a redundant resource recovery processing device according to an embodiment of the present disclosure.
  • FIG3 is a hardware structure block diagram of a computer device of the redundant resource recovery processing method of the embodiment of the present disclosure.
  • the computer device may include one or more (only one is shown in FIG3) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device) and a memory 104 for storing data, wherein the above-mentioned computer device may also include a transmission device 106 and an input and output device 108 for communication functions.
  • FIG3 is only for illustration, and it does not limit the structure of the above-mentioned computer device.
  • the computer device may also include more or fewer components than those shown in FIG3, or have a configuration different from that shown in FIG3.
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the redundant resource recovery processing method in the embodiment of the present disclosure.
  • the processor 102 executes various functional applications and redundant resource recovery processing by running the computer program stored in the memory 104, that is, to implement the above method.
  • the memory 104 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.
  • the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the computer device 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.
  • the transmission device 106 is used to receive or send data via a network.
  • the specific example of the above network may include a wireless network provided by a communication provider of the computer device.
  • the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
  • RF Radio Frequency
  • FIG4 is a flow chart of the redundant resource recovery processing method according to an embodiment of the present disclosure. As shown in FIG4, it is applied to the network side. The process includes the following steps:
  • Step S402 transmitting an interface request message between the sending end SMF and the receiving end SMF, wherein the interface message carries a resource identifier
  • Step S404 transmitting an interface response message after checking the resource corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries a resource status;
  • Step S406 determining redundant resources based on the resource status through the transmitting end SMF or the receiving end SMF;
  • Step S408 Recycling the redundant resources through the sending-end SMF or the receiving-end SMF.
  • the above step S402 may specifically include: sending an interface request message for verifying resources to the receiving-end SMF through the sending-end SMF; or receiving an interface request message sent by the receiving-end SMF through the sending-end SMF.
  • the above step S404 may specifically include: in the case where the transmitting end SMF sends an interface request message for verifying resources to the receiving end SMF, the receiving end SMF verifies the resource corresponding to the resource identifier; Verification, receiving the interface response message sent by the receiving-end SMF after verifying the resources corresponding to the resource identifier through the sending-end SMF; in the case of receiving the interface request message sent by the receiving-end SMF through the sending-end SMF, verifying the resources corresponding to the resource identifier through the sending-end SMF, and then sending the interface response message to the receiving-end SMF.
  • verifying the resource corresponding to the resource identifier through the receiving-end SMF may specifically include: the resource identifier includes a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier; determining through the receiving-end SMF whether the receiving-end SMF has the user identifier of the sending-end SMF carried in the interface request message; when the determination result is that the user identifier does not exist, determining that the verification result is that the user resources of the receiving-end SMF are less than the user resources of the sending-end SMF, and the resource status is that the user identifier does not exist; when the determination result is that the user identifier exists, determining through the receiving-end SMF whether the receiving-end SMF has the session identifier of the sending-end SMF carried in the interface request message; when the determination result is that the session identifier does not exist, determining that the verification result is that the session resources of the receiving-end SMF are less than the session resources of the
  • verifying the resource corresponding to the resource identifier through the sending SMF may specifically include: the resource identifier includes a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier; determining through the sending SMF whether the sending SMF has the user identifier of the receiving SMF carried in the interface request message; when the determination result is that the user identifier does not exist, determining that the verification result is that the user resources of the sending SMF are less than the user resources of the receiving SMF, and the resource status is that the user identifier does not exist; when the determination result is that the user identifier exists, determining through the sending SMF whether the sending SMF has the session identifier of the receiving SMF carried in the interface request message; when the determination result is that the session identifier does not exist, determining that the verification result is that the session resources of the sending SMF are less than the session resources of the receiving SMF, and the resource status is that the session identifier does not exist; when the determination result
  • the above step S406 may specifically include: the user resources of the SMF at the receiving end are less than the user resources of the SMF at the sending end.
  • the sending-end SMF determines, based on the resource status, that the user resources that do not exist in the receiving-end SMF are the redundant resources; in the case of QoS Flow resources of the receiving-end SMF being less than the QoS Flow resources of the sending-end SMF, the sending-end SMF determines, based on the resource status, that the session resources that do not exist in the receiving-end SMF are the redundant resources; in the case of QoS Flow resources of the receiving-end SMF being less than the QoS Flow resources of the sending-end SMF, the sending-end SMF determines, based on the resource status, that the QoS Flow resources that do not exist in the receiving-end SMF are the redundant resources; in the case of user resources of the sending-end SMF being less than the user resources
  • the above-mentioned step S408 may specifically include: when the resources of the sending end SMF are more than the resources of the receiving end SMF, sending an N1N2 message to the AMF through the sending end SMF, so that the base station and the UE release the redundant resources through the AMF, receiving a response message returned by the AMF after the base station and the UE release the redundant resources, and releasing the redundant resources in the sending end SMF; or when the resources of the sending end SMF are less than the resources of the receiving end SMF, sending a release request message for releasing the redundant resources to the H-UPF and PCF through the receiving end SMF, receiving a release response message sent by the H-UPF and the PCF after releasing the redundant resources, and releasing the redundant resources in the receiving end SMF.
  • the resources of the I/V-SMF are consistent with those of the forward NF, and the resources of the PSA-SMF are consistent with those of the backward NF.
  • a new message for the N16 interface is added, which contains the user identifier (Supi, Pei, Gpsi), session identifier (Pdu Session Id list), and QoS Flow identifier (Qfi list), indicating the resource identifier of a single user of the SMF.
  • I/V-SMF and PSA-SMF send this message to each other.
  • the sending SMF sends this message, and after the receiving SMF receives the message, it verifies whether the resource exists locally and replies with a response message, carrying the identifier and status information in the request message.
  • the basic processing principle of the sending and receiving ends is to release the redundant parts of themselves and the surrounding NFs if the user, session or QoS Flow resources are inconsistent.
  • the logic is as follows:
  • the sender sends a request message. After receiving the request message, if the receiver determines that its own resources are missing, the response message carries the status of each resource. After receiving the response, the sender initiates the corresponding resource release process to the surrounding NF and releases itself. If it is determined that it has excess resources, after returning the response, it releases its own and surrounding NF corresponding resources.
  • the I/V-SMF sends a message to the forward NF, and the PSA-SMF sends a message to the network side NF.
  • FIG5 is a flowchart of QoS Flow redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG5, including:
  • I/V-SMF sends Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, and Qfi list;
  • PSA-SMF checks with local resources and returns Nsmf_ResourceCheck Response (resource check response) to I/V-SMF, carrying the status of each resource (user, session, QosFlow);
  • I/V-SMF determines that PSA-SMF lacks some QoS Flows based on the resource status in the resource check response, and then sends a Namf_Communication_N1N2Message Transfer message (transmitting N1N2 message) to the forward direction, carrying N2 PDU Session Resource Modify Request Transfer and N1 PDU Session Modification Command messages;
  • AMF sends N2 Session Request to (R)AN, and (R)AN deletes QosFlow.
  • (R)AN sends an AN-specific resource modification message for deleting QosFlow to UE.
  • the resource modification message includes a session modification request or a session request response.
  • AMF transmits the (R)AN's response PDU Session Resource Modify Response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • I/V-UPF sends N4 Session Modification Request to I/V-SMF;
  • I/V-UPF receives N4 Session Modification Response returned by I/V-SMF;
  • (R)AN transparently transmits the UE's response PDU Session Modification Complete to AMF through N2 NAS uplink transfer.
  • AMF transparently transmits the UE's session modification response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • I/V-SMF sends N4 Session Modification Request to I-UPF;
  • I/V-SMF sends N4 Session Modification Response to I-UPF;
  • I/V-SMF deletes local QosFlow resources.
  • FIG6 is a second flowchart of QoS Flow redundant resource recovery according to an embodiment of the present disclosure, as shown in FIG6 , including:
  • PSA-SMF sends Nsmf_ResourceCheck Request (resource check request) to I/V-SMF, including Supi, Pei, Gpsi, Pdu Session Id list and Qfi list;
  • I/V-SMF After receiving the request, I/V-SMF verifies the local resources and returns Nsmf_ResourceCheck Response (resource check response) to PSA-SMF, carrying the status of each resource (user, session, QosFlow);
  • I/V-SMF determines that PSA-SMF lacks some QoS Flows based on the resource status in the resource check response, and then sends a Namf_Communication_N1N2Message Transfer message (transmitting N1N2 message) to the forward direction, carrying N2 PDU Session Resource Modify Request Transfer and N1 PDU Session Modification Command messages;
  • AMF sends N2 Session Request to (R)AN, and (R)AN deletes QosFlow.
  • (R)AN sends an AN-specific resource modification message to delete the QosFlow to the UE.
  • the resource modification message includes a session modification request or a session request response.
  • AMF transmits the (R)AN's response PDU Session Resource Modify Response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • I/V-UPF sends N4 Session Modification Request to I/V-SMF;
  • I/V-UPF receives N4 Session Modification Response returned by I/V-SMF;
  • (R)AN transparently transmits the UE's response PDU Session Modification Complete to AMF through N2 NAS uplink ttansfer (uplink message transmission);
  • AMF transparently transmits the UE's session modification response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • I/V-SMF sends N4 Session Modification Request to I-UPF;
  • I/V-SMF sends N4 Session Modification Response to I-UPF;
  • I/V-SMF deletes local QosFlow resources.
  • FIG7 is a flowchart of QoS Flow redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG7, including:
  • I/V-SMF sends Nsmf_Resource Check Request to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list and Qfi list;
  • PSA-SMF checks with local resources and determines that it has some additional QoS Flows. It returns Nsmf_ResourceCheck Response (resource check response) with the status of each resource (user, session, QoSFlow);
  • PSA-SMF initiates the QosFlow release process through N4 Session Modification Request, and sends an update message to H-UPF to release the redundant QoS Flow;
  • PSA-SMF receives the N4 Session Modification Response returned by H-UPF
  • PSA-SMF sends an update message to PCF through SMF initiated SM Policy Association Modification to inform the deletion of Qos Flow. After PSA-SMF receives the response, the process ends and the local QosFlow resources are deleted.
  • FIG8 is a fourth flowchart of QoS Flow redundant resource recovery according to an embodiment of the present disclosure, as shown in FIG8 , including:
  • PSA-SMF sends Nsmf_Resource Check Request to I/V-SMF, including Supi, Pei, Gpsi, Pdu Session Id list and Qfi list;
  • I/V-SMF After receiving the resource check request, I/V-SMF checks with local resources and determines that it has some additional QoS Flows. It returns Nsmf_ResourceCheck Response (resource check response) with the status of each resource (user, session, QoSFlow);
  • PSA-SMF initiates the QosFlow release process through N4 Session Modification Request, and sends an update message to H-UPF to release the redundant QoS Flow;
  • PSA-SMF receives the N4 Session Modification Response returned by H-UPF
  • PSA-SMF sends an update message to PCF through SMF initiated SM Policy Association Modification to inform the deletion of Qos Flow. After PSA-SMF receives the response, the process ends and the local QosFlow resources are deleted.
  • FIG9 is a flowchart of session redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG9 , including:
  • I/V-SMF sends Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, and Qfi list;
  • PSA-SMF checks with local resources and returns Nsmf_ResourceCheck Response (resource check response) to I/V-SMF, carrying the status of each resource (user, session, QosFlow);
  • PSA-SMF determines that it lacks resources for some sessions, and initiates the session release process.
  • I/V-SMF sends N4 Session Release Request to I/V-UPF;
  • I/V-SMF receives N4 Session Release Response sent by I/V-UPF;
  • I/V-SMF sends Namf_Communication_N1N2Message Transfer (N1N2 message transmission) to AMF, carrying N1 PDU Session Release Command and N2 PDU Session Resource Release Command Transfer messages to release the session resources of UE and (R)AN;
  • AMF sends N2 Session Release Request to (R)AN so that (R)AN releases session resources.
  • (R)AN sends AN-specific resource modification message to UE so that UE can release session resources.
  • AMF transmits the (R)AN's response PDU Session Resource Modify Response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • (R)AN transparently transmits the UE release message to AMF through N2 NAS uplink transfer.
  • AMF transparently transmits N1's PDU Session Release Ack message to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • I/V-SMF sends Nsmf_PDUSession_SMContextStatus Notify (session context status notification) to AMF to release AMF's session resources;
  • I/V-SMF releases its own session resources.
  • FIG. 10 is a second flowchart of session redundant resource recovery according to an embodiment of the present disclosure, as shown in FIG. 10 , including:
  • PSA-SMF sends Nsmf_ResourceCheck Request (resource check request) to I/V-SMF, including Supi, Pei, Gpsi, Pdu Session Id list and Qfi list;
  • I/V-SMF checks with local resources and returns Nsmf_ResourceCheck Response (resource check response) to PSA-SMF, carrying the status of each resource (user, session, QosFlow);
  • PSA-SMF determines that it lacks resources for some sessions, and initiates the session release process.
  • I/V-SMF sends N4 Session Release Request to I/V-UPF;
  • I/V-SMF receives N4 Session Release Response sent by I/V-UPF;
  • I/V-SMF sends Namf_Communication_N1N2Message Transfer (N1N2 message transmission) to AMF, carrying N1 PDU Session Release Command and N2 PDU Session Resource Release Command Transfer messages to release the session resources of UE and (R)AN;
  • AMF sends N2 Session Release Request to (R)AN so that (R)AN releases session resources.
  • (R)AN sends AN-specific resource modification message to UE so that UE can release session resources.
  • AMF transmits the (R)AN's response PDU Session ResoUrce Modify Response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • (R)AN transparently transmits the UE release message to AMF through N2 NAS uplink transfer.
  • AMF transparently transmits N1's PDU Session Release Ack message to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • I/V-SMF sends Nsmf_PDUSession_SMContextStatus Notify (session context status notification) to AMF to release AMF's session resources;
  • I/V-SMF releases its own session resources.
  • FIG11 is a flowchart of session redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG11 , including:
  • I/V-SMF sends Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, and Qfi list;
  • PSA-SMF checks with local resources and finds that its own SMF has extra session resources. It returns Nsmf_ResourceCheck Response (resource check response) with the status of each resource (user, session, QosFlow);
  • PSA-SMF starts to initiate the session release process to release redundant session resources and sends N4 Session Release Request to H-UPF;
  • PSA-SMF receives the N4 Session Release Request (N4 Session Release Response) returned by H-UPF;
  • H-UPF sends SMF initiated SM Policy Association Modification to PCF, i.e. initiates session release request, and receives response. The process ends, and the redundant session resources are released.
  • FIG. 12 is a fourth flowchart of session redundant resource recovery according to an embodiment of the present disclosure, as shown in FIG. 12 , including:
  • PSA-SMF sends Nsmf_ResourceCheck Request (resource check request) to I/V-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, Qfi list;
  • I/V-SMF After receiving the request, I/V-SMF checks with local resources and finds that its own SMF has extra session resources. It returns Nsmf_ResourceCheck Response (resource check response) with the status of each resource (user, session, QosFlow);
  • PSA-SMF starts to initiate the session release process to release redundant session resources and sends N4 Session Release Request to H-UPF;
  • PSA-SMF receives the N4 Session Release Request (N4 Session Release Response) returned by H-UPF;
  • H-UPF sends SMF initiated SM Policy Association Modification to PCF, i.e. initiates session release request, and receives response. The process ends, and the redundant session resources are released.
  • FIG13 is a flowchart 1 of user redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG13 , including:
  • I/V-SMF sends Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including: Supi, Pei, Gpsi, Pdu Session Id list, Qfi list;
  • PSA-SMF After receiving the request, PSA-SMF checks with local resources and finds that it lacks the user resources. It returns Nsmf_ResourceCheck Response (resource check response) with the abnormal status of the user resources.
  • I/V-SMF determines that PSA-SMF lacks the user resources, and I/V-SMF starts to initiate a release process to release all session resources under the redundant users.
  • the process of releasing each session is as follows.
  • I/V-SMF sends N4 Session Release Request to I/V-UPF;
  • I/V-SMF receives the N4 Session Release response returned by I/V-UPF;
  • I/V-SMF sends Namf_Communication_N1N2Message Transfer (N1N2 message transmission) to AMF, carrying N1 PDU Session Release Command and N2 PDU Session Resource Release Command Transfer messages to release the session resources of UE and (R)AN;
  • AMF sends N2 Session Release Request to (R)AN to release session resources.
  • (R)AN sends an AN-specific resource modification message to the UE to release session resources.
  • AMF transmits N2 PDU Session Resource Release Response Transfer to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • (R)AN transparently transmits the UE release message to AMF through N2 NAS uplink transfer.
  • AMF transparently transmits N1's PDU Session Release Ack message to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
  • AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
  • I/V-SMF sends Nsmf_PDUSession_SMContextStatus Notify (session context status) to AMF Notification) to release the AMF session resources;
  • I/V-SMF releases its own session resources.
  • FIG14 is a second flowchart of user redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG14 , including:
  • PSA-SMF periodically triggers Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, and Qfi list;
  • I/V-SMF After receiving the request, I/V-SMF checks with local resources and finds that its own SMF lacks the user resource. It returns Nsmf_ResourceCheck Response (resource check response) with the abnormal status of the user resource.
  • PSA-SMF finds that I/V-SMF lacks the user resources and starts to initiate a release process to release all session resources under the redundant users.
  • the process of releasing each session is as follows.
  • PSA-SMF starts to initiate the session release process to release redundant session resources and sends N4 Session Release Request to H-UPF;
  • PSA-SMF receives the N4 Session Release Request (N4 Session Release Response) returned by H-UPF;
  • PSA-SMF sends a release request to H-UPF and receives a response
  • H-UPF sends SMF initiated SM Policy Association Modification to PCF, i.e. initiates session release request, and receives response. The process ends, and the redundant session resources are released.
  • the redundant resources of I/V-SMF and PSA-SMF can be recovered to keep them consistent. Redundant resources are recovered to save memory space and improve performance; each user will be checked once, and the check is complete without omission; problems can be found and solved before the normal process goes wrong, and users are not aware of it, which improves user experience.
  • FIG15 is a block diagram of the redundant resource recovery processing device according to the embodiment of the present disclosure. As shown in FIG15 , the device is applied to the network side, and the device includes:
  • the first transmission module 152 is used to transmit an interface request message between the sending end SMF and the receiving end SMF, wherein the interface message carries a resource identifier;
  • the second transmission module 154 is used to transmit the interface response message after the resource verification corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries the resource status;
  • a determination module 156 configured to determine redundant resources based on the resource status through the transmitting end SMF or the receiving end SMF;
  • the recycling processing module 158 is used to recycle the redundant resources through the sending end SMF or the receiving end SMF.
  • the first transmission module 152 is further used to send an interface request message for verifying resources to the receiving-end SMF through the sending-end SMF; or to receive an interface request message sent by the receiving-end SMF through the sending-end SMF.
  • the second transmission module 154 includes:
  • a first verification submodule is used for, when an interface request message for verifying resources is sent to the receiving-end SMF through the sending-end SMF, verifying the resources corresponding to the resource identifier through the receiving-end SMF, and receiving through the sending-end SMF the interface response message sent by the receiving-end SMF after verifying the resources corresponding to the resource identifier;
  • the second verification submodule is used to verify the resource corresponding to the resource identifier through the sending end SMF when the interface request message sent by the receiving end SMF is received through the sending end SMF, and then send the resource identifier to the receiving end SMF.
  • the interface response message is sent.
  • the first verification submodule is also used for the resource identifier including a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier; through the receiving end SMF, determining whether the receiving end SMF has the user identifier of the sending end SMF carried in the interface request message; when the determination result is that the user identifier does not exist, determining that the verification result is that the user resources of the receiving end SMF are less than the user resources of the sending end SMF, and the resource status is that the user identifier does not exist; when the determination result is that the user identifier exists, determining through the receiving end SMF whether the receiving end SMF has the session identifier of the sending end SMF carried in the interface request message; when the determination result is that the session identifier does not exist, determining that the verification result is that the session resources of the receiving end SMF are less than the session resources of the sending end SMF, and the resource status is that the session identifier does not exist; when the determination result
  • the second verification submodule is also used for the resource identifier including a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier; through the sending end SMF, determining whether the sending end SMF has the user identifier of the receiving end SMF carried in the interface request message; when the determination result is that the user identifier does not exist, determining the verification result is that the user resources of the sending end SMF are less than the user resources of the receiving end SMF, and the resource status is that the user identifier does not exist; when the determination result is that the user identifier exists, determining through the sending end SMF whether the sending end SMF has the session identifier of the receiving end SMF carried in the interface request message; when the determination result is that the session identifier does not exist, determining the verification result is that the session resources of the sending end SMF are less than the session resources of the receiving end SMF, and the resource status is that the session identifier does not exist; when the determination
  • Whether there are redundant session resources in the session resources of the sending-end SMF if there are redundant session resources, determine that the session resources of the sending-end SMF are more than the session resources of the receiving-end SMF, and determine that the resource status is that the session identifier exists; if there are no redundant session resources, determine through the sending-end SMF whether the sending-end SMF has the QoS Flow identifier of the receiving-end SMF carried in the interface request message; when the determination result is that the QoS Flow identifier does not exist, determine that the verification result is that the QoS Flow resources of the sending-end SMF are less than the QoS Flow resources of the receiving-end SMF, and the resource status is that the QoS Flow identifier does not exist; when the determination result is that the QoS Flow identifier exists, determine that the verification result is that the QoS Flow resources of the sending-end SMF are greater than or equal to the QoS Flow resources of the receiving-end SMF, and the resource
  • the determination module 156 is further used to determine, through the sending end SMF, based on the resource status, when the user resources of the receiving end SMF are less than the user resources of the sending end SMF, that the user resources that do not exist in the receiving end SMF are the redundant resources; and, through the sending end SMF, based on the resource status, when the QoS Flow resources of the receiving end SMF are less than the QoS Flow resources of the sending end SMF.
  • the session resources that do not exist in the SMF are the redundant resources; when the QoS Flow resources of the receiving-end SMF are less than the QoS Flow resources of the sending-end SMF, the sending-end SMF determines, based on the resource status, that the QoS Flow resources that do not exist in the receiving-end SMF are the redundant resources; when the user resources of the sending-end SMF are less than the user resources of the receiving-end SMF, the receiving-end SMF determines, based on the resource status, that the user resources that do not exist in the sending-end SMF are the redundant resources; when the QoS Flow resources of the sending-end SMF are less than the QoS Flow resources of the receiving-end SMF, the receiving-end SMF determines, based on the resource status, that the session resources that do not exist in the sending-end SMF are the redundant resources; when the QoS Flow resources of the sending-end SMF are less than the QoS Flow resources of the receiving-end SMF, the receiving
  • the recycling processing module 158 is also used to, when the resources of the sending end SMF are more than the resources of the receiving end SMF, send an N1N2 message to the AMF through the sending end SMF, so as to enable the base station and the UE to release the redundant resources through the AMF, receive a response message returned by the AMF after the base station and the UE release the redundant resources, and release the redundant resources in the sending end SMF; or when the resources of the sending end SMF are less than the resources of the receiving end SMF, send a release request message for releasing the redundant resources to the H-UPF and PCF through the receiving end SMF, receive a release response message sent by the H-UPF and the PCF after releasing the redundant resources, and release the redundant resources in the receiving end SMF.
  • An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
  • the above-mentioned computer-readable storage medium may include, but is not limited to: 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, and other media that can store computer programs.
  • An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
  • modules or steps of the present disclosure can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation.
  • the present disclosure is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Embodiments of the present disclosure provide a redundant resource recycling processing method and device, and a storage medium and an electronic device. The method comprises: transmitting an interface request message between a sending end SMF and a receiving end SMF, the interface message carrying a resource identifier; transmitting, between the sending end SMF and the receiving end SMF, an interface response message after verifying a resource corresponding to the resource identifier, the interface response message carrying a resource state; determining a redundant resource on the basis of the resource state by means of the sending end SMF or the receiving end SMF; and performing recycling processing on the redundant resource by means of the sending end SMF or the receiving end SMF.

Description

一种冗余资源回收处理方法、装置、存储介质及电子装置A redundant resource recovery processing method, device, storage medium and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开基于2022年12月12日提交的发明名称为“一种冗余资源回收处理方法、装置、存储介质及电子装置”的中国专利申请CN202211611440.1,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。This disclosure is based on Chinese patent application CN202211611440.1, filed on December 12, 2022, entitled “A method, device, storage medium and electronic device for recycling redundant resources”, and claims the priority of the patent application, and all its disclosed contents are incorporated into this disclosure by reference.
技术领域Technical Field
本公开实施例涉及通信领域,具体而言,涉及一种冗余资源回收处理方法、装置、存储介质及电子装置。The embodiments of the present disclosure relate to the field of communications, and in particular, to a redundant resource recovery processing method, device, storage medium, and electronic device.
背景技术Background technique
图1是相关技术中归属地路由漫游方式5G系统的架构图,如图1所示,主要包括:V-SMF(Visit Session Management Function,拜访地会话管理功能)、H-SMF(Home Session Management Function,归属地会话管理功能)。Figure 1 is an architecture diagram of a 5G system in a home routing roaming mode in the related art. As shown in Figure 1, it mainly includes: V-SMF (Visit Session Management Function) and H-SMF (Home Session Management Function).
图2是相关技术中本地疏导漫游方式5G系统的架构图,如图2所示,主要包括:I-SMF(Intermediate Session Management Function,中间会话管理功能)、SMF(Session Management Function,会话管理功能)。定义带I-SMF的SMF为A-SMF。FIG2 is an architecture diagram of a 5G system in a local roaming mode in the related art. As shown in FIG2 , it mainly includes: I-SMF (Intermediate Session Management Function) and SMF (Session Management Function). The SMF with I-SMF is defined as A-SMF.
A-SMF和H-SMF是归属地的SMF,用于计费和策略控制,I-SMF和V-SMF用于传递AMF和A/H-SMF之间的信令,为描述方便,可以分别使用PSA-SMF和I/V-SMF来代替。正常场景下,I/V-SMF与PSA-SMF的用户上下文信息应该是一致的。但是异常场景下,两者的用户、会话、QoS Flow(服务质量流)上下文资源可能存在不一致的情况,导致资源占用浪费,而且影响后续用户体验。A-SMF and H-SMF are home SMFs used for billing and policy control. I-SMF and V-SMF are used to transmit signaling between AMF and A/H-SMF. For the convenience of description, PSA-SMF and I/V-SMF can be used instead. In normal scenarios, the user context information of I/V-SMF and PSA-SMF should be consistent. However, in abnormal scenarios, the user, session, and QoS Flow (Quality of Service) context resources of the two may be inconsistent, resulting in waste of resources and affecting the subsequent user experience.
漫游状态下,用户打完语音电话挂机,PSA-SMF给I/V-SMF发送更新消息删除QoS Flow,由于网络波动,I/V-SMF没有收到该消息,PSA-SMF在等待响应超时后自己删除了QoS Flow上下文,导致两边资源不一致。后续再打电话,对于I/V-SMF来说是重复创建QoS Flow,I/V-SMF可能会处理异常,用户打不了电话投诉。In roaming state, after the user hangs up after making a voice call, PSA-SMF sends an update message to I/V-SMF to delete QoS Flow. Due to network fluctuations, I/V-SMF does not receive the message. After waiting for the response timeout, PSA-SMF deletes the QoS Flow context, resulting in inconsistent resources on both sides. If the user makes another call, I/V-SMF will create QoS Flow repeatedly, and I/V-SMF may handle the exception, and the user cannot make a phone call to complain.
漫游状态下,PSA-SMF发起会话释放,异常时没给I/V-SMF发送释放请求,最终PSA-SMF和其他网络侧NF释放了会话,但是I/V-SMF和AMF以及基站依旧存在会话,后续UE或基站发起的会话更新流程就会失败。In the roaming state, PSA-SMF initiates session release. In the event of an exception, it does not send a release request to I/V-SMF. Eventually, PSA-SMF and other network-side NFs release the session, but the I/V-SMF, AMF, and base station still have a session. The subsequent session update process initiated by the UE or base station will fail.
漫游状态下,移除I/V-SMF流程,AMF给要释放的I/V-SMF发送释放消息,如果AMF处理异常没有发送该消息,I/V-SMF的整个用户信息就会挂住,后续也不会再有消息过来,导致资源浪费,严重可能导致整个SMF上资源占满。In the roaming state, the I/V-SMF process is removed, and the AMF sends a release message to the I/V-SMF to be released. If the AMF handles the exception and does not send the message, the entire user information of the I/V-SMF will be stuck, and no further messages will be received, resulting in a waste of resources. In severe cases, the resources on the entire SMF may be fully occupied.
针对相关技术中漫游状态下SMF之间资源不一致导致处理异常、会话更新失败以及资源浪费的问题,尚未提出解决方案。There is no solution yet for the problem in the related art that inconsistency of resources between SMFs in roaming state leads to abnormal processing, session update failure and waste of resources.
发明内容 Summary of the invention
本公开实施例提供了一种冗余资源回收处理方法、装置、存储介质及电子装置,以至少解决相关技术中漫游状态下SMF之间资源不一致导致处理异常、会话更新失败以及资源浪费的问题。The embodiments of the present disclosure provide a redundant resource recovery processing method, apparatus, storage medium and electronic device to at least solve the problem in the related art that inconsistency of resources between SMFs in a roaming state leads to abnormal processing, session update failure and resource waste.
根据本公开的一个实施例,提供了一种冗余资源回收处理方法,应用于网络侧,该方法包括:在发送端SMF与接收端SMF之间传输接口请求消息,其中,接口消息中携带有资源标识;在发送端SMF与接收端SMF之间传输对资源标识对应的资源校验之后的接口响应消息,其中,接口响应消息中携带有资源状态;通过发送端SMF或接收端SMF,基于资源状态确定冗余资源;通过发送端SMF或接收端SMF,对冗余资源进行回收处理。According to an embodiment of the present disclosure, a redundant resource recovery processing method is provided, which is applied to the network side, and the method includes: transmitting an interface request message between a sending end SMF and a receiving end SMF, wherein the interface message carries a resource identifier; transmitting an interface response message after verifying the resources corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries a resource status; determining redundant resources based on the resource status through the sending end SMF or the receiving end SMF; and recovering redundant resources through the sending end SMF or the receiving end SMF.
根据本公开的另一个实施例,还提供了一种冗余资源回收处理装置,应用于网络侧,该装置包括:第一传输模块,用于在发送端SMF与接收端SMF之间传输接口请求消息,其中,接口消息中携带有资源标识;第二传输模块,用于在发送端SMF与接收端SMF之间传输对资源标识对应的资源校验之后的接口响应消息,其中,接口响应消息中携带有资源状态;确定模块,用于通过发送端SMF或接收端SMF,基于资源状态确定冗余资源;回收处理模块,用于通过发送端SMF或接收端SMF,对冗余资源进行回收处理。According to another embodiment of the present disclosure, a redundant resource recovery processing device is also provided, which is applied to the network side, and the device includes: a first transmission module, which is used to transmit an interface request message between a sending end SMF and a receiving end SMF, wherein the interface message carries a resource identifier; a second transmission module, which is used to transmit an interface response message after resource verification corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries a resource status; a determination module, which is used to determine redundant resources based on the resource status through the sending end SMF or the receiving end SMF; and a recovery processing module, which is used to recycle redundant resources through the sending end SMF or the receiving end SMF.
根据本公开的又一个实施例,还提供了一种计算机可读的存储介质,存储介质中存储有计算机程序,其中,计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to another embodiment of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
根据本公开的又一个实施例,还提供了一种电子装置,包括存储器和处理器,存储器中存储有计算机程序,处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。According to another embodiment of the present disclosure, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是相关技术中归属地路由漫游方式5G系统的架构图;FIG1 is an architecture diagram of a 5G system in a home routing roaming mode in the related art;
图2是相关技术中本地疏导漫游方式5G系统的架构图;FIG2 is an architecture diagram of a 5G system in a local roaming mode in the related art;
图3是本公开实施例的冗余资源回收处理方法的计算机设备的硬件结构框图;3 is a hardware structure block diagram of a computer device of a redundant resource recovery processing method according to an embodiment of the present disclosure;
图4是根据本公开实施例的冗余资源回收处理方法的流程图;FIG4 is a flow chart of a redundant resource recovery processing method according to an embodiment of the present disclosure;
图5是根据本公开实施例的QoS Flow冗余资源回收的流程图一;Figure 5 is a flowchart 1 of QoS Flow redundant resource recovery according to an embodiment of the present disclosure;
图6是根据本公开实施例的QoS Flow冗余资源回收的流程图二;Figure 6 is a second flowchart of QoS Flow redundant resource recovery according to an embodiment of the present disclosure;
图7是根据本公开实施例的QoS Flow冗余资源回收的流程图三;Figure 7 is a flowchart 3 of QoS Flow redundant resource recovery according to an embodiment of the present disclosure;
图8是根据本公开实施例的QoS Flow冗余资源回收的流程图四;FIG8 is a fourth flowchart of QoS Flow redundant resource recovery according to an embodiment of the present disclosure;
图9是根据本公开实施例的会话冗余资源回收的流程图一;FIG9 is a flowchart 1 of session redundant resource recovery according to an embodiment of the present disclosure;
图10是根据本公开实施例的会话冗余资源回收的流程图二;FIG10 is a second flowchart of session redundant resource recovery according to an embodiment of the present disclosure;
图11是根据本公开实施例的会话冗余资源回收的流程图三;FIG11 is a third flowchart of session redundant resource recovery according to an embodiment of the present disclosure;
图12是根据本公开实施例的会话冗余资源回收的流程图四;FIG12 is a fourth flowchart of session redundant resource recovery according to an embodiment of the present disclosure;
图13是根据本公开实施例的用户冗余资源回收的流程图一;FIG13 is a flowchart 1 of user redundant resource recovery according to an embodiment of the present disclosure;
图14是根据本公开实施例的用户冗余资源回收的流程图二;FIG14 is a second flowchart of user redundant resource recovery according to an embodiment of the present disclosure;
图15是根据本公开实施例的冗余资源回收处理装置的框图。FIG. 15 is a block diagram of a redundant resource recovery processing device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本公开的实施例。Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二” 等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the specification and claims of the present disclosure and the above drawings are used interchangeably. The terms "etc." and "etc." are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
本公开实施例中所提供的方法实施例可以在计算机设备或者类似的运算装置中执行。以运行在计算机设备上为例,图3是本公开实施例的冗余资源回收处理方法的计算机设备的硬件结构框图,如图3所示,计算机设备可以包括一个或多个(图3中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件等的处理装置)和用于存储数据的存储器104,其中,上述计算机设备还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图3所示的结构仅为示意,其并不对上述计算机设备的结构造成限定。例如,计算机设备还可包括比图3中所示更多或者更少的组件,或者具有与图3所示不同的配置。The method embodiments provided in the embodiments of the present disclosure can be executed in a computer device or a similar computing device. Taking running on a computer device as an example, FIG3 is a hardware structure block diagram of a computer device of the redundant resource recovery processing method of the embodiment of the present disclosure. As shown in FIG3, the computer device may include one or more (only one is shown in FIG3) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device) and a memory 104 for storing data, wherein the above-mentioned computer device may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that the structure shown in FIG3 is only for illustration, and it does not limit the structure of the above-mentioned computer device. For example, the computer device may also include more or fewer components than those shown in FIG3, or have a configuration different from that shown in FIG3.
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的冗余资源回收处理方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及冗余资源回收处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the redundant resource recovery processing method in the embodiment of the present disclosure. The processor 102 executes various functional applications and redundant resource recovery processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 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 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the computer device 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.
传输设备106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机设备的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Ra dio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
在本实施例中提供了一种运行于上述计算机设备的冗余资源回收处理方法,图4是根据本公开实施例的冗余资源回收处理方法的流程图,如图4所示,应用于网络侧,该流程包括如下步骤:In this embodiment, a redundant resource recovery processing method running on the above-mentioned computer device is provided. FIG4 is a flow chart of the redundant resource recovery processing method according to an embodiment of the present disclosure. As shown in FIG4, it is applied to the network side. The process includes the following steps:
步骤S402,在发送端SMF与接收端SMF之间传输接口请求消息,其中,所述接口消息中携带有资源标识;Step S402, transmitting an interface request message between the sending end SMF and the receiving end SMF, wherein the interface message carries a resource identifier;
步骤S404,在所述发送端SMF与所述接收端SMF之间传输对所述资源标识对应的资源校验之后的接口响应消息,其中,所述接口响应消息中携带有资源状态;Step S404, transmitting an interface response message after checking the resource corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries a resource status;
步骤S406,通过所述发送端SMF或所述接收端SMF,基于所述资源状态确定冗余资源;Step S406, determining redundant resources based on the resource status through the transmitting end SMF or the receiving end SMF;
步骤S408,通过所述发送端SMF或所述接收端SMF,对所述冗余资源进行回收处理。Step S408: Recycling the redundant resources through the sending-end SMF or the receiving-end SMF.
通过上述步骤S402至S408,可以解决相关技术中漫游状态下SMF之间资源不一致导致处理异常、会话更新失败以及资源浪费的问题,在用户漫游情况下,SMF之间资源不一致时,对于冗余资源进行资源回收,从而避免了SMF之间资源不一致导致的处理异常、会话更新失败以及资源浪费。Through the above steps S402 to S408, the problems in the related technology of abnormal processing, session update failure and resource waste caused by inconsistent resources between SMFs in the roaming state can be solved. When the resources between SMFs are inconsistent when the user is roaming, the redundant resources are recycled, thereby avoiding abnormal processing, session update failure and resource waste caused by inconsistent resources between SMFs.
本实施例中,上述步骤S402具体可以包括:通过所述发送端SMF向所述接收端SMF发送校验资源的接口请求消息;或者通过所述发送端SMF接收所述接收端SMF发送的接口请求消息。In this embodiment, the above step S402 may specifically include: sending an interface request message for verifying resources to the receiving-end SMF through the sending-end SMF; or receiving an interface request message sent by the receiving-end SMF through the sending-end SMF.
本实施例中,上述步骤S404具体可以包括:在通过所述发送端SMF向所述接收端SMF发送校验资源的接口请求消息的情况下,通过所述接收端SMF对所述资源标识对应的资源进行 校验,通过所述发送端SMF接收所述接收端SMF对所述资源标识对应的资源校验之后发送的所述接口响应消息;在通过所述发送端SMF接收所述接收端SMF发送的接口请求消息的情况下,通过所述发送端SMF对所述资源标识对应的资源进行校验,之后向所述接收端SMF发送所述接口响应消息。In this embodiment, the above step S404 may specifically include: in the case where the transmitting end SMF sends an interface request message for verifying resources to the receiving end SMF, the receiving end SMF verifies the resource corresponding to the resource identifier; Verification, receiving the interface response message sent by the receiving-end SMF after verifying the resources corresponding to the resource identifier through the sending-end SMF; in the case of receiving the interface request message sent by the receiving-end SMF through the sending-end SMF, verifying the resources corresponding to the resource identifier through the sending-end SMF, and then sending the interface response message to the receiving-end SMF.
在一实施例中,通过所述接收端SMF对所述资源标识对应的资源进行校验具体可以包括:所述资源标识包括用户标识,会话标识、所述会话标识对应的QoS Flow标识;通过所述接收端SMF,确定所述接收端SMF是否存在所述接口请求消息中携带的所述发送端SMF的用户标识;在确定结果为不存在所述用户标识的情况下,确定校验结果为所述接收端SMF的用户资源少于所述发送端SMF的用户资源,所述资源状态为所述用户标识不存在;在确定结果为存在所述用户标识的情况下,通过所述接收端SMF,确定所述接收端SMF是否存在所述接口请求消息中携带的所述发送端SMF的会话标识;在确定结果为不存在所述会话标识的情况下,确定校验结果为所述接收端SMF的会话资源少于所述发送端SMF的会话资源,所述资源状态为所述会话标识不存在;在确定结果为存在所述会话标识的情况下,判断所述接收端SMF的会话资源是否存在多余的会话资源,若存在多于的会话资源,确定校验结果为所述接收端SMF的会话资源多于所述发送端SMF的会话资源,并确定所述资源状态为所述会话标识存在;若不存在多余的会话资源,通过所述接收端SMF,确定所述接收端SMF是否存在所述接口请求消息中携带的所述发送端SMF的QoS Flow标识;在确定结果为不存在所述QoS Flow标识的情况下,确定校验结果为所述接收端SMF的QoS Flow资源少于所述发送端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识不存在;在确定结果为存在所述QoS Flow标识的情况下,确定校验结果为所述接收端SMF的QoS Flow资源大于或等于所述发送端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识存在。In one embodiment, verifying the resource corresponding to the resource identifier through the receiving-end SMF may specifically include: the resource identifier includes a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier; determining through the receiving-end SMF whether the receiving-end SMF has the user identifier of the sending-end SMF carried in the interface request message; when the determination result is that the user identifier does not exist, determining that the verification result is that the user resources of the receiving-end SMF are less than the user resources of the sending-end SMF, and the resource status is that the user identifier does not exist; when the determination result is that the user identifier exists, determining through the receiving-end SMF whether the receiving-end SMF has the session identifier of the sending-end SMF carried in the interface request message; when the determination result is that the session identifier does not exist, determining that the verification result is that the session resources of the receiving-end SMF are less than the session resources of the sending-end SMF, and the resource status is that the session identifier does not exist; when the determination result is that the session identifier exists In this case, determine whether there are redundant session resources of the session resources of the receiving-end SMF; if there are redundant session resources, determine that the verification result is that the session resources of the receiving-end SMF are more than the session resources of the sending-end SMF, and determine that the resource status is that the session identifier exists; if there are no redundant session resources, determine, through the receiving-end SMF, whether the receiving-end SMF has the QoS Flow identifier of the sending-end SMF carried in the interface request message; when the determination result is that the QoS Flow identifier does not exist, determine that the verification result is that the QoS Flow resources of the receiving-end SMF are less than the QoS Flow resources of the sending-end SMF, and the resource status is that the QoS Flow identifier does not exist; when the determination result is that the QoS Flow identifier exists, determine that the verification result is that the QoS Flow resources of the receiving-end SMF are greater than or equal to the QoS Flow resources of the sending-end SMF, and the resource status is that the QoS Flow identifier exists.
在另一实施例中,通过所述发送端SMF对所述资源标识对应的资源进行校验具体可以包括:所述资源标识包括用户标识,会话标识、所述会话标识对应的QoS Flow标识;通过所述发送端SMF,确定所述发送端SMF是否存在所述接口请求消息中携带的所述接收端SMF的用户标识;在确定结果为不存在所述用户标识的情况下,确定校验结果为所述发送端SMF的用户资源少于所述接收端SMF的用户资源,所述资源状态为所述用户标识不存在;在确定结果为存在所述用户标识的情况下,通过所述发送端SMF,确定所述发送端SMF是否存在所述接口请求消息中携带的所述接收端SMF的会话标识;在确定结果为不存在所述会话标识的情况下,确定校验结果为所述发送端SMF的会话资源少于所述接收端SMF的会话资源,所述资源状态为所述会话标识不存在;在确定结果为存在所述会话标识的情况下,判断所述发送端SMF的会话资源是否存在多余的会话资源,若存在多于的会话资源,确定校验结果为所述发送端SMF的会话资源多于所述接收端SMF的会话资源,并确定所述资源状态为所述会话标识存在;若不存在多余的会话资源,通过所述发送端SMF,确定所述发送端SMF是否存在所述接口请求消息中携带的所述接收端SMF的QoS Flow标识;在确定结果为不存在所述QoS Flow标识的情况下,确定校验结果为所述发送端SMF的QoS Flow资源少于所述接收端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识不存在;在确定结果为存在所述QoS Flow标识的情况下,确定校验结果为所述发送端SMF的QoS Flow资源大于或等于所述接收端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识存在。In another embodiment, verifying the resource corresponding to the resource identifier through the sending SMF may specifically include: the resource identifier includes a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier; determining through the sending SMF whether the sending SMF has the user identifier of the receiving SMF carried in the interface request message; when the determination result is that the user identifier does not exist, determining that the verification result is that the user resources of the sending SMF are less than the user resources of the receiving SMF, and the resource status is that the user identifier does not exist; when the determination result is that the user identifier exists, determining through the sending SMF whether the sending SMF has the session identifier of the receiving SMF carried in the interface request message; when the determination result is that the session identifier does not exist, determining that the verification result is that the session resources of the sending SMF are less than the session resources of the receiving SMF, and the resource status is that the session identifier does not exist; when the determination result is that the session identifier exists In this case, determine whether there are redundant session resources of the session resources of the sending end SMF; if there are redundant session resources, determine that the verification result is that the session resources of the sending end SMF are more than the session resources of the receiving end SMF, and determine that the resource status is that the session identifier exists; if there are no redundant session resources, determine through the sending end SMF whether the sending end SMF has the QoS Flow identifier of the receiving end SMF carried in the interface request message; when the determination result is that the QoS Flow identifier does not exist, determine that the verification result is that the QoS Flow resources of the sending end SMF are less than the QoS Flow resources of the receiving end SMF, and the resource status is that the QoS Flow identifier does not exist; when the determination result is that the QoS Flow identifier exists, determine that the verification result is that the QoS Flow resources of the sending end SMF are greater than or equal to the QoS Flow resources of the receiving end SMF, and the resource status is that the QoS Flow identifier exists.
本实施例中,上述步骤S406具体可以包括:在所述接收端SMF的用户资源小于所述发送 端SMF的用户资源的情况下,通过所述发送端SMF,基于所述资源状态确定所述接收端SMF中不存在的用户资源为所述冗余资源;在所述接收端SMF的QoS Flow资源小于所述发送端SMF的QoS Flow资源的情况下,通过所述发送端SMF,基于所述资源状态确定所述接收端SMF中不存在的会话资源为所述冗余资源;在所述接收端SMF的QoS Flow资源小于所述发送端SMF的QoS Flow资源的情况下,通过所述发送端SMF,基于所述资源状态确定所述接收端SMF中不存在的用QoS Flow资源为所述冗余资源;在所述发送端SMF的用户资源小于所述接收端SMF的用户资源的情况下,通过所述接收端SMF,基于所述资源状态确定所述发送端SMF中不存在的用户资源为所述冗余资源;在所述发送端SMF的QoS Flow资源小于所述接收端SMF的QoS Flow资源的情况下,通过所述接收端SMF,基于所述资源状态确定所述发送端SMF中不存在的会话资源为所述冗余资源;在所述发送端SMF的QoS Flow资源小于所述接收端SMF的QoS Flow资源的情况下,通过所述接收端SMF,基于所述资源状态确定所述发送端SMF中不存在的用QoS Flow资源为所述冗余资源。In this embodiment, the above step S406 may specifically include: the user resources of the SMF at the receiving end are less than the user resources of the SMF at the sending end. In the case of user resources of the receiving-end SMF, the sending-end SMF determines, based on the resource status, that the user resources that do not exist in the receiving-end SMF are the redundant resources; in the case of QoS Flow resources of the receiving-end SMF being less than the QoS Flow resources of the sending-end SMF, the sending-end SMF determines, based on the resource status, that the session resources that do not exist in the receiving-end SMF are the redundant resources; in the case of QoS Flow resources of the receiving-end SMF being less than the QoS Flow resources of the sending-end SMF, the sending-end SMF determines, based on the resource status, that the QoS Flow resources that do not exist in the receiving-end SMF are the redundant resources; in the case of user resources of the sending-end SMF being less than the user resources of the receiving-end SMF, the receiving-end SMF determines, based on the resource status, that the user resources that do not exist in the sending-end SMF are the redundant resources; in the case of QoS Flow resources of the sending-end SMF being less than the QoS Flow resources of the receiving-end SMF, the receiving-end SMF determines, based on the resource status, that the session resources that do not exist in the sending-end SMF are the redundant resources; in the case of QoS Flow resources of the sending-end SMF being less than the QoS Flow resources of the receiving-end SMF In the case of QoS Flow resources, the receiving-end SMF determines, based on the resource status, that the QoS Flow resources that do not exist in the sending-end SMF are the redundant resources.
本实施例中,上述步骤S408具体可以包括:在所述发送端SMF的资源多于所述接收端SMF的资源的情况下,通过所述发送端SMF向AMF发送N1N2消息,以通过所述AMF使基站与UE释放所述冗余资源,接收所述AMF返回的所述基站与所述UE释放所述冗余资源之后返回的响应消息,在所述发送端SMF中释放所述冗余资源;或者在所述发送端SMF的资源少于所述接收端SMF的资源的情况下,通过所述接收端SMF向H-UPF与PCF发送释放所述冗余资源的释放请求消息,接收所述H-UPF与所述PCF释放所述冗余资源之后发送的释放响应消息,在所述接收端SMF中释放所述冗余资源。In this embodiment, the above-mentioned step S408 may specifically include: when the resources of the sending end SMF are more than the resources of the receiving end SMF, sending an N1N2 message to the AMF through the sending end SMF, so that the base station and the UE release the redundant resources through the AMF, receiving a response message returned by the AMF after the base station and the UE release the redundant resources, and releasing the redundant resources in the sending end SMF; or when the resources of the sending end SMF are less than the resources of the receiving end SMF, sending a release request message for releasing the redundant resources to the H-UPF and PCF through the receiving end SMF, receiving a release response message sent by the H-UPF and the PCF after releasing the redundant resources, and releasing the redundant resources in the receiving end SMF.
本实施例中,假设I/V-SMF的资源与前向NF保持一致,PSA-SMF的资源与后向NF保持一致。In this embodiment, it is assumed that the resources of the I/V-SMF are consistent with those of the forward NF, and the resources of the PSA-SMF are consistent with those of the backward NF.
新增一条N16接口的消息,含有用户标识(Supi、Pei、Gpsi)、会话标识(Pdu Session Id列表)、QoS Flow标识(Qfi列表),表示该SMF单个用户下的资源标识。I/V-SMF和PSA-SMF互相发送该消息。发送端SMF发送该消息,接收端SMF收到该消息后,校验本地是否存在该资源,回复响应消息,携带请求消息中的标识以及状态信息。发送端和接收端在校验后,处理的基本处理原则是用户、会话或Qos Flow资源不一致就释放自身和周边NF多余的部分。逻辑如下:A new message for the N16 interface is added, which contains the user identifier (Supi, Pei, Gpsi), session identifier (Pdu Session Id list), and QoS Flow identifier (Qfi list), indicating the resource identifier of a single user of the SMF. I/V-SMF and PSA-SMF send this message to each other. The sending SMF sends this message, and after the receiving SMF receives the message, it verifies whether the resource exists locally and replies with a response message, carrying the identifier and status information in the request message. After verification, the basic processing principle of the sending and receiving ends is to release the redundant parts of themselves and the surrounding NFs if the user, session or QoS Flow resources are inconsistent. The logic is as follows:
发送端发送请求消息,接收端收到请求消息后,如果判断自身资源缺失,响应消息中携带各资源的状态,发送端收到响应后,给周边NF发起对应资源释放流程,并释放自身。如果判断自身有多余的资源,回完响应后,释放自身以及周边NF对应资源。给周边NF发送消息释放资源时,I/V-SMF给前向NF发送消息,PSA-SMF给网络侧NF发送消息。The sender sends a request message. After receiving the request message, if the receiver determines that its own resources are missing, the response message carries the status of each resource. After receiving the response, the sender initiates the corresponding resource release process to the surrounding NF and releases itself. If it is determined that it has excess resources, after returning the response, it releases its own and surrounding NF corresponding resources. When sending a message to the surrounding NF to release resources, the I/V-SMF sends a message to the forward NF, and the PSA-SMF sends a message to the network side NF.
当I/V-SMF的QoS Flow资源比PSA-SMF的多时,皆可回收冗余资源使其保持一致。图5是根据本公开实施例的QoS Flow冗余资源回收的流程图一,如图5所示,包括:When the QoS Flow resources of I/V-SMF are more than those of PSA-SMF, both can recycle the redundant resources to keep them consistent. FIG5 is a flowchart of QoS Flow redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG5, including:
1,I/V-SMF向PSA-SMF发送Nsmf_ResourceCheck Request(资源检查请求),包括Supi、Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. I/V-SMF sends Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, and Qfi list;
2,PSA-SMF收到请求后与本地资源进行校验,向I/V-SMF返回Nsmf_ResourceCheck Response(资源检查响应),携带各资源(用户、会话、QosFlow)状态;2. After receiving the request, PSA-SMF checks with local resources and returns Nsmf_ResourceCheck Response (resource check response) to I/V-SMF, carrying the status of each resource (user, session, QosFlow);
3,I/V-SMF根据资源检查响应中的资源状态,判断PSA-SMF缺少部分QoS Flow,则给前向发送Namf_Communication_N1N2Message Transfer消息(传输N1N2消息),携带N2 PDU  Session Resource Modify Request Transfer和N1 PDU Session Modification Command消息;3. I/V-SMF determines that PSA-SMF lacks some QoS Flows based on the resource status in the resource check response, and then sends a Namf_Communication_N1N2Message Transfer message (transmitting N1N2 message) to the forward direction, carrying N2 PDU Session Resource Modify Request Transfer and N1 PDU Session Modification Command messages;
4,AMF将N2 Session Request(N2会话请求)发送至(R)AN,(R)AN进行删除QosFlow处理;4. AMF sends N2 Session Request to (R)AN, and (R)AN deletes QosFlow.
5,(R)AN将删除QosFlow的AN-specific resource modification资源修改消息)发送给UE,该资源修改消息包括会话修改请求或会话请求响应;5. (R)AN sends an AN-specific resource modification message for deleting QosFlow to UE. The resource modification message includes a session modification request or a session request response.
6,(R)AN删除QosFlow完成后,向AMF回复N2 Session Request(N2会话响应);6. After (R)AN completes deleting QosFlow, it replies N2 Session Request to AMF.
7a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将(R)AN的响应PDU Session Resource Modify Response传输给I/V-SMF;7a, AMF transmits the (R)AN's response PDU Session Resource Modify Response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
7b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);7b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
8a,I/V-UPF向I/V-SMF发送N4 Session Modification Request(N4会话修改请求);8a, I/V-UPF sends N4 Session Modification Request to I/V-SMF;
8b,I/V-UPF接收I/V-SMF返回的N4 Session Modification Response(N4会话修改响应);8b, I/V-UPF receives N4 Session Modification Response returned by I/V-SMF;
9,UE删除QosFlow完成后,向R(AN)回复PDU Session Modification Command Ack(会话修改响应);9. After the UE completes deleting the QosFlow, it replies PDU Session Modification Command Ack (session modification response) to R (AN);
10,(R)AN通过N2 NAS uplink transfer(上行消息传输)将UE的响应PDU Session Modification Complete透传给AMF;10. (R)AN transparently transmits the UE's response PDU Session Modification Complete to AMF through N2 NAS uplink transfer.
11a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将UE的会话修改响应透传给I/V-SMF;11a, AMF transparently transmits the UE's session modification response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
11b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);11b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
12a,I/V-SMF向I-UPF发送N4 Session Modification Request(N4会话修改请求);12a, I/V-SMF sends N4 Session Modification Request to I-UPF;
12b,I/V-SMF向I-UPF发送N4 Session Modification Response(N4会话修改响应);12b, I/V-SMF sends N4 Session Modification Response to I-UPF;
13,I/V-SMF删除本地QosFlow资源。13. I/V-SMF deletes local QosFlow resources.
图6是根据本公开实施例的QoS Flow冗余资源回收的流程图二,如图6所示,包括:FIG6 is a second flowchart of QoS Flow redundant resource recovery according to an embodiment of the present disclosure, as shown in FIG6 , including:
1,PSA-SMF向I/V-SMF发送Nsmf_ResourceCheck Request(资源检查请求),包括Supi、Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. PSA-SMF sends Nsmf_ResourceCheck Request (resource check request) to I/V-SMF, including Supi, Pei, Gpsi, Pdu Session Id list and Qfi list;
2,I/V-SMF收到请求后与本地资源进行校验,向PSA-SMF返回Nsmf_ResourceCheck Response(资源检查响应),携带各资源(用户、会话、QosFlow)状态;2. After receiving the request, I/V-SMF verifies the local resources and returns Nsmf_ResourceCheck Response (resource check response) to PSA-SMF, carrying the status of each resource (user, session, QosFlow);
3,I/V-SMF根据资源检查响应中的资源状态,判断PSA-SMF缺少部分QoS Flow,则给前向发送Namf_Communication_N1N2Message Transfer消息(传输N1N2消息),携带N2 PDU Session Resource Modify Request Transfer和N1 PDU Session Modification Command消息;3. I/V-SMF determines that PSA-SMF lacks some QoS Flows based on the resource status in the resource check response, and then sends a Namf_Communication_N1N2Message Transfer message (transmitting N1N2 message) to the forward direction, carrying N2 PDU Session Resource Modify Request Transfer and N1 PDU Session Modification Command messages;
4,AMF将N2 Session Request(N2会话请求)发送至(R)AN,(R)AN进行删除QosFlow处理;4. AMF sends N2 Session Request to (R)AN, and (R)AN deletes QosFlow.
5,(R)AN将删除QosFlow的AN-specific resource modification(资源修改消息)发送给UE,该资源修改消息包括会话修改请求或会话请求响应;5. (R)AN sends an AN-specific resource modification message to delete the QosFlow to the UE. The resource modification message includes a session modification request or a session request response.
6,(R)AN删除QosFlow完成后,向AMF回复N2 Session Request(N2会话响应); 6. After (R)AN completes deleting QosFlow, it replies N2 Session Request to AMF.
7a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将(R)AN的响应PDU Session Resource Modify Response传输给I/V-SMF;7a, AMF transmits the (R)AN's response PDU Session Resource Modify Response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
7b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);7b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
8a,I/V-UPF向I/V-SMF发送N4 Session Modification Request(N4会话修改请求);8a, I/V-UPF sends N4 Session Modification Request to I/V-SMF;
8b,I/V-UPF接收I/V-SMF返回的N4 Session Modification Response(N4会话修改响应);8b, I/V-UPF receives N4 Session Modification Response returned by I/V-SMF;
9,UE删除QosFlow完成后,向R(AN)回复PDU Session Modification Command Ack(会话修改响应);9. After the UE completes deleting the QosFlow, it replies PDU Session Modification Command Ack (session modification response) to R (AN);
10,(R)AN通过N2 NAS uplink ttansfer(上行消息传输)将UE的响应PDU Session Modification Complete透传给AMF;10. (R)AN transparently transmits the UE's response PDU Session Modification Complete to AMF through N2 NAS uplink ttansfer (uplink message transmission);
11a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将UE的会话修改响应透传给I/V-SMF;11a, AMF transparently transmits the UE's session modification response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
11b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);11b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
12a,I/V-SMF向I-UPF发送N4 Session Modification Request(N4会话修改请求);12a, I/V-SMF sends N4 Session Modification Request to I-UPF;
12b,I/V-SMF向I-UPF发送N4 Session Modification Response(N4会话修改响应);12b, I/V-SMF sends N4 Session Modification Response to I-UPF;
13,I/V-SMF删除本地QosFlow资源。13. I/V-SMF deletes local QosFlow resources.
当I/V-SMF的QoS Flow资源比PSA-SMF的少时,可回收冗余资源使其保持一致。图7是根据本公开实施例的QoS Flow冗余资源回收的流程图三,如图7所示,包括:When the QoS Flow resources of I/V-SMF are less than those of PSA-SMF, the redundant resources can be recycled to keep them consistent. FIG7 is a flowchart of QoS Flow redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG7, including:
1,I/V-SMF向PSA-SMF发送Nsmf_Resource Check Request(资源检查请求),包括Supi、Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. I/V-SMF sends Nsmf_Resource Check Request to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list and Qfi list;
2,PSA-SMF收到资源检查请求后与本地资源进行校验,判断自身多了部分QoS Flow,返回Nsmf_ResourceCheck Response(资源检查响应),携带各资源(用户、会话、QosFlow)状态;2. After receiving the resource check request, PSA-SMF checks with local resources and determines that it has some additional QoS Flows. It returns Nsmf_ResourceCheck Response (resource check response) with the status of each resource (user, session, QoSFlow);
3a,PSA-SMF通过N4 Session Modification Request(N4会话修改请求)发起QosFlow释放流程,给H-UPF发送更新消息释放多余QoS Flow;3a, PSA-SMF initiates the QosFlow release process through N4 Session Modification Request, and sends an update message to H-UPF to release the redundant QoS Flow;
3b,PSA-SMF接收H-UPF返回的N4 Session Modification Response(N4会话修改响应)3b, PSA-SMF receives the N4 Session Modification Response returned by H-UPF
4,PSA-SMF通过SMF initiated SM Policy Association Modification(SMF发起的策略管理修改)向PCF发送更新消息,告知Qos Flow删除。PSA-SMF收到响应后,流程结束,删除本地QosFlow资源。4. PSA-SMF sends an update message to PCF through SMF initiated SM Policy Association Modification to inform the deletion of Qos Flow. After PSA-SMF receives the response, the process ends and the local QosFlow resources are deleted.
图8是根据本公开实施例的QoS Flow冗余资源回收的流程图四,如图8所示,包括:FIG8 is a fourth flowchart of QoS Flow redundant resource recovery according to an embodiment of the present disclosure, as shown in FIG8 , including:
1,PSA-SMF向I/V-SMF发送Nsmf_Resource Check Request(资源检查请求),包括Supi、Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. PSA-SMF sends Nsmf_Resource Check Request to I/V-SMF, including Supi, Pei, Gpsi, Pdu Session Id list and Qfi list;
2,I/V-SMF收到资源检查请求后与本地资源进行校验,判断自身多了部分QoS Flow,返回Nsmf_ResourceCheck Response(资源检查响应),携带各资源(用户、会话、QosFlow)状态;2. After receiving the resource check request, I/V-SMF checks with local resources and determines that it has some additional QoS Flows. It returns Nsmf_ResourceCheck Response (resource check response) with the status of each resource (user, session, QoSFlow);
3a,PSA-SMF通过N4 Session Modification Request(N4会话修改请求)发起QosFlow释放流程,给H-UPF发送更新消息释放多余QoS Flow; 3a, PSA-SMF initiates the QosFlow release process through N4 Session Modification Request, and sends an update message to H-UPF to release the redundant QoS Flow;
3b,PSA-SMF接收H-UPF返回的N4 Session Modification Response(N4会话修改响应)3b, PSA-SMF receives the N4 Session Modification Response returned by H-UPF
4,PSA-SMF通过SMF initiated SM Policy Association Modification(SMF发起的策略管理修改)向PCF发送更新消息,告知Qos Flow删除。PSA-SMF收到响应后,流程结束,删除本地QosFlow资源。4. PSA-SMF sends an update message to PCF through SMF initiated SM Policy Association Modification to inform the deletion of Qos Flow. After PSA-SMF receives the response, the process ends and the local QosFlow resources are deleted.
当I/V-SMF的会话资源比PSA-SMF的多时,可回收冗余资源使其保持一致。图9是根据本公开实施例的会话冗余资源回收的流程图一,如图9所示,包括:When the session resources of I/V-SMF are more than those of PSA-SMF, the redundant resources can be recycled to keep them consistent. FIG9 is a flowchart of session redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG9 , including:
1,I/V-SMF向PSA-SMF发送Nsmf_ResourceCheck Request(资源检查请求),包括Supi、Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. I/V-SMF sends Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, and Qfi list;
2,PSA-SMF收到请求后与本地资源进行校验,向I/V-SMF返回Nsmf_ResourceCheck Response(资源检查响应),携带各资源(用户、会话、QosFlow)状态;2. After receiving the request, PSA-SMF checks with local resources and returns Nsmf_ResourceCheck Response (resource check response) to I/V-SMF, carrying the status of each resource (user, session, QosFlow);
3a,根据响应消息中的资源状态,判断PSA-SMF缺少部分会话的资源,则发起会话释放流程。I/V-SMF向I/V-UPF发送N4 Session Release Request(N4会话释放请求);3a. According to the resource status in the response message, PSA-SMF determines that it lacks resources for some sessions, and initiates the session release process. I/V-SMF sends N4 Session Release Request to I/V-UPF;
3b,I/V-SMF接收I/V-UPF发送N4 Session Release Response(N4会话释放响应);3b, I/V-SMF receives N4 Session Release Response sent by I/V-UPF;
4,I/V-SMF给AMF发送Namf_Communication_N1N2Message Transfer(N1N2消息传输),携带N1 PDU Session Release Command和N2 PDU Session Resource Release Command Transfer消息,来释放UE和(R)AN的会话资源;4. I/V-SMF sends Namf_Communication_N1N2Message Transfer (N1N2 message transmission) to AMF, carrying N1 PDU Session Release Command and N2 PDU Session Resource Release Command Transfer messages to release the session resources of UE and (R)AN;
5,AMF给(R)AN发送N2 Session Release Request(N2会话释放请求),以便(R)AN释放会话资源;5. AMF sends N2 Session Release Request to (R)AN so that (R)AN releases session resources.
6,(R)AN给UE发送AN-specific resource modification(资源修改消息),以便UE释放会话资源;6. (R)AN sends AN-specific resource modification message to UE so that UE can release session resources.
7,(R)AN给AMF回复N2 Session Release Response(N2会话释放响应);7. (R)AN replies N2 Session Release Response to AMF.
8a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将(R)AN的响应PDU Session Resource Modify Response传输给I/V-SMF;8a, AMF transmits the (R)AN's response PDU Session Resource Modify Response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
8b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);8b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
9,UE向(R)AN返回PDU session Release Accept(会话释放接受);9. UE returns PDU session Release Accept to (R)AN;
10,(R)AN通过N2 NAS uplink transfer(上行消息传输)将UE释放消息透传给AMF;10. (R)AN transparently transmits the UE release message to AMF through N2 NAS uplink transfer.
11a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将N1的PDU Session Release Ack消息透传给I/V-SMF;11a, AMF transparently transmits N1's PDU Session Release Ack message to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
11b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);11b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
12,I/V-SMF给AMF发送Nsmf_PDUSession_SMContextStatus Notify(会话上下文状态通知),以释放AMF的会话资源;12. I/V-SMF sends Nsmf_PDUSession_SMContextStatus Notify (session context status notification) to AMF to release AMF's session resources;
13,I/V-SMF释放自身会话资源。13. I/V-SMF releases its own session resources.
图10是根据本公开实施例的会话冗余资源回收的流程图二,如图10所示,包括:FIG. 10 is a second flowchart of session redundant resource recovery according to an embodiment of the present disclosure, as shown in FIG. 10 , including:
1,PSA-SMF向I/V-SMF发送Nsmf_ResourceCheck Request(资源检查请求),包括Supi、Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. PSA-SMF sends Nsmf_ResourceCheck Request (resource check request) to I/V-SMF, including Supi, Pei, Gpsi, Pdu Session Id list and Qfi list;
2,I/V-SMF收到请求后与本地资源进行校验,向PSA-SMF返回Nsmf_ResourceCheck Response(资源检查响应),携带各资源(用户、会话、QosFlow)状态; 2. After receiving the request, I/V-SMF checks with local resources and returns Nsmf_ResourceCheck Response (resource check response) to PSA-SMF, carrying the status of each resource (user, session, QosFlow);
3a,根据响应消息中的资源状态,判断PSA-SMF缺少部分会话的资源,则发起会话释放流程。I/V-SMF向I/V-UPF发送N4 Session Release Request(N4会话释放请求);3a. According to the resource status in the response message, PSA-SMF determines that it lacks resources for some sessions, and initiates the session release process. I/V-SMF sends N4 Session Release Request to I/V-UPF;
3b,I/V-SMF接收I/V-UPF发送N4 Session Release Response(N4会话释放响应);3b, I/V-SMF receives N4 Session Release Response sent by I/V-UPF;
4,I/V-SMF给AMF发送Namf_Communication_N1N2Message Transfer(N1N2消息传输),携带N1 PDU Session Release Command和N2 PDU Session Resource Release Command Transfer消息,来释放UE和(R)AN的会话资源;4. I/V-SMF sends Namf_Communication_N1N2Message Transfer (N1N2 message transmission) to AMF, carrying N1 PDU Session Release Command and N2 PDU Session Resource Release Command Transfer messages to release the session resources of UE and (R)AN;
5,AMF给(R)AN发送N2 Session Release Request(N2会话释放请求),以便(R)AN释放会话资源;5. AMF sends N2 Session Release Request to (R)AN so that (R)AN releases session resources.
6,(R)AN给UE发送AN-specific resource modification(资源修改消息),以便UE释放会话资源;6. (R)AN sends AN-specific resource modification message to UE so that UE can release session resources.
7,(R)AN给AMF回复N2 Session Release Response(N2会话释放响应);7. (R)AN replies N2 Session Release Response to AMF.
8a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将(R)AN的响应PDU Session ResoUrce Modify Response传输给I/V-SMF;8a, AMF transmits the (R)AN's response PDU Session ResoUrce Modify Response to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
8b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);8b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
9,UE向(R)AN返回PDU session Release Accept(会话释放接受);9. UE returns PDU session Release Accept to (R)AN;
10,(R)AN通过N2 NAS uplink transfer(上行消息传输)将UE释放消息透传给AMF;10. (R)AN transparently transmits the UE release message to AMF through N2 NAS uplink transfer.
11a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将N1的PDU Session Release Ack消息透传给I/V-SMF;11a, AMF transparently transmits N1's PDU Session Release Ack message to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
11b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);11b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
12,I/V-SMF给AMF发送Nsmf_PDUSession_SMContextStatus Notify(会话上下文状态通知),以释放AMF的会话资源;12. I/V-SMF sends Nsmf_PDUSession_SMContextStatus Notify (session context status notification) to AMF to release AMF's session resources;
13,I/V-SMF释放自身会话资源。13. I/V-SMF releases its own session resources.
当I/V-SMF的会话资源比PSA-SMF的少时,可回收冗余资源使其保持一致。图11是根据本公开实施例的会话冗余资源回收的流程图三,如图11所示,包括:When the session resources of the I/V-SMF are less than those of the PSA-SMF, the redundant resources can be recycled to keep them consistent. FIG11 is a flowchart of session redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG11 , including:
1,I/V-SMF向PSA-SMF发送Nsmf_ResourceCheck Request(资源检查请求),包括Supi、Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. I/V-SMF sends Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, and Qfi list;
2,PSA-SMF收到请求后与本地资源进行校验,发现本身SMF有多余的会话资源,返回Nsmf_ResourceCheck Response(资源检查响应),携带各资源(用户、会话、QosFlow)状态;2. After receiving the request, PSA-SMF checks with local resources and finds that its own SMF has extra session resources. It returns Nsmf_ResourceCheck Response (resource check response) with the status of each resource (user, session, QosFlow);
3a,PSA-SMF开始发起会话释放流程释放多余会话资源,向H-UPF发送N4 Session Release Request(N4会话释放请求);3a, PSA-SMF starts to initiate the session release process to release redundant session resources and sends N4 Session Release Request to H-UPF;
3b,PSA-SMF接收H-UPF返回N4 Session Release Request(N4会话释放响应);3b, PSA-SMF receives the N4 Session Release Request (N4 Session Release Response) returned by H-UPF;
4,H-UPF向PCF发送SMF initiated SM Policy Association Modification(SMF发起的策略关联修改),即发起会话释放请求,并接收响应。流程结束,释放本身多余会话资源。4. H-UPF sends SMF initiated SM Policy Association Modification to PCF, i.e. initiates session release request, and receives response. The process ends, and the redundant session resources are released.
图12是根据本公开实施例的会话冗余资源回收的流程图四,如图12所示,包括:FIG. 12 is a fourth flowchart of session redundant resource recovery according to an embodiment of the present disclosure, as shown in FIG. 12 , including:
1,PSA-SMF向I/V-SMF发送Nsmf_ResourceCheck Request(资源检查请求),包括Supi、 Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. PSA-SMF sends Nsmf_ResourceCheck Request (resource check request) to I/V-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, Qfi list;
2,I/V-SMF收到请求后与本地资源进行校验,发现本身SMF有多余的会话资源,返回Nsmf_ResourceCheck Response(资源检查响应),携带各资源(用户、会话、QosFlow)状态;2. After receiving the request, I/V-SMF checks with local resources and finds that its own SMF has extra session resources. It returns Nsmf_ResourceCheck Response (resource check response) with the status of each resource (user, session, QosFlow);
3a,PSA-SMF开始发起会话释放流程释放多余会话资源,向H-UPF发送N4 Session Release Request(N4会话释放请求);3a, PSA-SMF starts to initiate the session release process to release redundant session resources and sends N4 Session Release Request to H-UPF;
3b,PSA-SMF接收H-UPF返回N4 Session Release Request(N4会话释放响应);3b, PSA-SMF receives the N4 Session Release Request (N4 Session Release Response) returned by H-UPF;
4,H-UPF向PCF发送SMF initiated SM Policy Association Modification(SMF发起的策略关联修改),即发起会话释放请求,并接收响应。流程结束,释放本身多余会话资源。4. H-UPF sends SMF initiated SM Policy Association Modification to PCF, i.e. initiates session release request, and receives response. The process ends, and the redundant session resources are released.
当I/V-SMF的用户资源比PSA-SMF的多时,可回收冗余资源使其保持一致。图13是根据本公开实施例的用户冗余资源回收的流程图一,如图13所示,包括:When the user resources of I/V-SMF are more than those of PSA-SMF, the redundant resources can be recycled to keep them consistent. FIG13 is a flowchart 1 of user redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG13 , including:
1,I/V-SMF向PSA-SMF发送Nsmf_ResourceCheck Request(资源检查请求),包括:Supi、Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. I/V-SMF sends Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including: Supi, Pei, Gpsi, Pdu Session Id list, Qfi list;
2,PSA-SMF收到请求后与本地资源进行校验,发现自身缺少该用户资源,返回Nsmf_ResourceCheck Response(资源检查响应),携带该用户资源的异常状态;2. After receiving the request, PSA-SMF checks with local resources and finds that it lacks the user resources. It returns Nsmf_ResourceCheck Response (resource check response) with the abnormal status of the user resources.
I/V-SMF根据响应消息中的资源状态,判断PSA-SMF缺少该用户资源,I/V-SMF开始发起释放流程释放多余用户下的所有会话资源。释放每个会话的流程如下。Based on the resource status in the response message, I/V-SMF determines that PSA-SMF lacks the user resources, and I/V-SMF starts to initiate a release process to release all session resources under the redundant users. The process of releasing each session is as follows.
3a,I/V-SMF向I/V-UPF发送N4 Session Release Request(N4会话释放请求);3a, I/V-SMF sends N4 Session Release Request to I/V-UPF;
3b,I/V-SMF接收I/V-UPF返回的N4 Session Release response(N4会话释放响应);3b, I/V-SMF receives the N4 Session Release response returned by I/V-UPF;
4,I/V-SMF向AMF发送Namf_Communication_N1N2Message Transfer(N1N2消息传输),携带N1 PDU Session Release Command和N2 PDU Session Resource Release Command Transfer消息,来释放UE和(R)AN的会话资源;4. I/V-SMF sends Namf_Communication_N1N2Message Transfer (N1N2 message transmission) to AMF, carrying N1 PDU Session Release Command and N2 PDU Session Resource Release Command Transfer messages to release the session resources of UE and (R)AN;
5,AMF给(R)AN发送N2 Session Release Request(N2会话释放请求),以释放会话资源;5. AMF sends N2 Session Release Request to (R)AN to release session resources.
6,(R)AN给UE发送AN-specific resource modification(资源修改消息),以释放会话资源;6. (R)AN sends an AN-specific resource modification message to the UE to release session resources.
7,(R)AN给AMF回复N2 Session Release Ack(N2会话释放响应);7. (R)AN replies N2 Session Release Ack to AMF;
8a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将N2 PDU Session Resource Release Response Transfer传输给I/V-SMF;8a, AMF transmits N2 PDU Session Resource Release Response Transfer to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
8b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);8b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
9,UE向(R)AN返回PDU session Release Accept(会话释放接受);9. UE returns PDU session Release Accept to (R)AN;
10,(R)AN通过N2 NAS uplink transfer(上行消息传输)将UE释放消息透传给AMF;10. (R)AN transparently transmits the UE release message to AMF through N2 NAS uplink transfer.
11a,AMF通过Nsmf_PDU Session_UpdateSMContext Request(会话更新请求)将N1的PDU Session Release Ack消息透传给I/V-SMF;11a, AMF transparently transmits N1's PDU Session Release Ack message to I/V-SMF through Nsmf_PDU Session_UpdateSMContext Request (session update request);
11b,AMF接收I/V-SMF返回的Nsmf_PDU Session_UpdateSMContext Response(会话更新响应);11b, AMF receives Nsmf_PDU Session_UpdateSMContext Response (session update response) returned by I/V-SMF;
12,I/V-SMF给AMF发送Nsmf_PDUSession_SMContextStatus Notify(会话上下文状态 通知),以释放AMF的会话资源;12. I/V-SMF sends Nsmf_PDUSession_SMContextStatus Notify (session context status) to AMF Notification) to release the AMF session resources;
13,I/V-SMF释放自身会话资源。13. I/V-SMF releases its own session resources.
当I/V-SMF的用户资源比PSA-SMF的少时,可回收冗余资源使其保持一致。图14是根据本公开实施例的用户冗余资源回收的流程图二,如图14所示,包括:When the user resources of the I/V-SMF are less than those of the PSA-SMF, the redundant resources can be recycled to keep them consistent. FIG14 is a second flowchart of user redundant resource recycling according to an embodiment of the present disclosure, as shown in FIG14 , including:
1,PSA-SMF向PSA-SMF定时触发Nsmf_ResourceCheck Request(资源检查请求),包括Supi、Pei、Gpsi、Pdu Session Id列表、Qfi列表;1. PSA-SMF periodically triggers Nsmf_ResourceCheck Request (resource check request) to PSA-SMF, including Supi, Pei, Gpsi, Pdu Session Id list, and Qfi list;
2,I/V-SMF收到请求后与本地资源进行校验,发现本身SMF缺失该用户资源,返回Nsmf_ResourceCheck Response(资源检查响应),携带该用户资源异常状态;2. After receiving the request, I/V-SMF checks with local resources and finds that its own SMF lacks the user resource. It returns Nsmf_ResourceCheck Response (resource check response) with the abnormal status of the user resource.
PSA-SMF收到响应后,发现I/V-SMF缺少该用户资源,开始发起释放流程释放多余用户下的所有会话资源。释放每个会话的流程如下。After receiving the response, PSA-SMF finds that I/V-SMF lacks the user resources and starts to initiate a release process to release all session resources under the redundant users. The process of releasing each session is as follows.
3a,PSA-SMF开始发起会话释放流程释放多余会话资源,向H-UPF发送N4 Session Release Request(N4会话释放请求);3a, PSA-SMF starts to initiate the session release process to release redundant session resources and sends N4 Session Release Request to H-UPF;
3b,PSA-SMF接收H-UPF返回N4 Session Release Request(N4会话释放响应);3b, PSA-SMF receives the N4 Session Release Request (N4 Session Release Response) returned by H-UPF;
3,PSA-SMF给H-UPF发送释放请求,并接收响应;3. PSA-SMF sends a release request to H-UPF and receives a response;
4,H-UPF向PCF发送SMF initiated SM Policy Association Modification(SMF发起的策略关联修改),即发起会话释放请求,并接收响应。流程结束,释放本身多余会话资源。4. H-UPF sends SMF initiated SM Policy Association Modification to PCF, i.e. initiates session release request, and receives response. The process ends, and the redundant session resources are released.
通过本实施例,可以回收I/V-SMF和PSA-SMF的冗余资源,使其保持一致。回收冗余的资源,节省内存空间,提高性能;每个用户都会检查一次,检查完全,不会遗漏;可在正常流程出问题之前,发现解决问题,用户无感知,提高用户体验。Through this embodiment, the redundant resources of I/V-SMF and PSA-SMF can be recovered to keep them consistent. Redundant resources are recovered to save memory space and improve performance; each user will be checked once, and the check is complete without omission; problems can be found and solved before the normal process goes wrong, and users are not aware of it, which improves user experience.
本公开实施例还提供了一种冗余资源回收处理装置,图15是根据本公开实施例的冗余资源回收处理装置的框图,如图15所示,应用于网络侧,所述装置包括:The embodiment of the present disclosure further provides a redundant resource recovery processing device. FIG15 is a block diagram of the redundant resource recovery processing device according to the embodiment of the present disclosure. As shown in FIG15 , the device is applied to the network side, and the device includes:
第一传输模块152,用于在发送端SMF与接收端SMF之间传输接口请求消息,其中,所述接口消息中携带有资源标识;The first transmission module 152 is used to transmit an interface request message between the sending end SMF and the receiving end SMF, wherein the interface message carries a resource identifier;
第二传输模块154,用于在所述发送端SMF与所述接收端SMF之间传输对所述资源标识对应的资源校验之后的接口响应消息,其中,所述接口响应消息中携带有资源状态;The second transmission module 154 is used to transmit the interface response message after the resource verification corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries the resource status;
确定模块156,用于通过所述发送端SMF或所述接收端SMF,基于所述资源状态确定冗余资源;A determination module 156, configured to determine redundant resources based on the resource status through the transmitting end SMF or the receiving end SMF;
回收处理模块158,用于通过所述发送端SMF或所述接收端SMF,对所述冗余资源进行回收处理。The recycling processing module 158 is used to recycle the redundant resources through the sending end SMF or the receiving end SMF.
在一实施例中,所述第一传输模块152,还用于通过所述发送端SMF向所述接收端SMF发送校验资源的接口请求消息;或者通过所述发送端SMF接收所述接收端SMF发送的接口请求消息。In one embodiment, the first transmission module 152 is further used to send an interface request message for verifying resources to the receiving-end SMF through the sending-end SMF; or to receive an interface request message sent by the receiving-end SMF through the sending-end SMF.
在一实施例中,所述第二传输模块154包括:In one embodiment, the second transmission module 154 includes:
第一校验子模块,用于在通过所述发送端SMF向所述接收端SMF发送校验资源的接口请求消息的情况下,通过所述接收端SMF对所述资源标识对应的资源进行校验,通过所述发送端SMF接收所述接收端SMF对所述资源标识对应的资源校验之后发送的所述接口响应消息;A first verification submodule is used for, when an interface request message for verifying resources is sent to the receiving-end SMF through the sending-end SMF, verifying the resources corresponding to the resource identifier through the receiving-end SMF, and receiving through the sending-end SMF the interface response message sent by the receiving-end SMF after verifying the resources corresponding to the resource identifier;
第二校验子模块,用于在通过所述发送端SMF接收所述接收端SMF发送的接口请求消息的情况下,通过所述发送端SMF对所述资源标识对应的资源进行校验,之后向所述接收端SMF 发送所述接口响应消息。The second verification submodule is used to verify the resource corresponding to the resource identifier through the sending end SMF when the interface request message sent by the receiving end SMF is received through the sending end SMF, and then send the resource identifier to the receiving end SMF. The interface response message is sent.
在一实施例中,所述第一校验子模块,还用于所述资源标识包括用户标识,会话标识、所述会话标识对应的QoS Flow标识;通过所述接收端SMF,确定所述接收端SMF是否存在所述接口请求消息中携带的所述发送端SMF的用户标识;在确定结果为不存在所述用户标识的情况下,确定校验结果为所述接收端SMF的用户资源少于所述发送端SMF的用户资源,所述资源状态为所述用户标识不存在;在确定结果为存在所述用户标识的情况下,通过所述接收端SMF,确定所述接收端SMF是否存在所述接口请求消息中携带的所述发送端SMF的会话标识;在确定结果为不存在所述会话标识的情况下,确定校验结果为所述接收端SMF的会话资源少于所述发送端SMF的会话资源,所述资源状态为所述会话标识不存在;在确定结果为存在所述会话标识的情况下,判断所述接收端SMF的会话资源是否存在多余的会话资源,若存在多于的会话资源,确定校验结果为所述接收端SMF的会话资源多于所述发送端SMF的会话资源,并确定所述资源状态为所述会话标识存在;若不存在多余的会话资源,通过所述接收端SMF,确定所述接收端SMF是否存在所述接口请求消息中携带的所述发送端SMF的QoS Flow标识;在确定结果为不存在所述QoS Flow标识的情况下,确定校验结果为所述接收端SMF的QoS Flow资源少于所述发送端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识不存在;在确定结果为存在所述QoS Flow标识的情况下,确定校验结果为所述接收端SMF的QoS Flow资源大于或等于所述发送端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识存在。In one embodiment, the first verification submodule is also used for the resource identifier including a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier; through the receiving end SMF, determining whether the receiving end SMF has the user identifier of the sending end SMF carried in the interface request message; when the determination result is that the user identifier does not exist, determining that the verification result is that the user resources of the receiving end SMF are less than the user resources of the sending end SMF, and the resource status is that the user identifier does not exist; when the determination result is that the user identifier exists, determining through the receiving end SMF whether the receiving end SMF has the session identifier of the sending end SMF carried in the interface request message; when the determination result is that the session identifier does not exist, determining that the verification result is that the session resources of the receiving end SMF are less than the session resources of the sending end SMF, and the resource status is that the session identifier does not exist; when the determination result is that the session identifier exists, judging that the receiving end SMF Whether there are redundant session resources in the session resources of the receiving-end SMF; if there are redundant session resources, determine that the session resources of the receiving-end SMF are more than the session resources of the sending-end SMF, and determine that the resource status is that the session identifier exists; if there are no redundant session resources, determine through the receiving-end SMF whether the receiving-end SMF has the QoS Flow identifier of the sending-end SMF carried in the interface request message; when the determination result is that the QoS Flow identifier does not exist, determine that the verification result is that the QoS Flow resources of the receiving-end SMF are less than the QoS Flow resources of the sending-end SMF, and the resource status is that the QoS Flow identifier does not exist; when the determination result is that the QoS Flow identifier exists, determine that the verification result is that the QoS Flow resources of the receiving-end SMF are greater than or equal to the QoS Flow resources of the sending-end SMF, and the resource status is that the QoS Flow identifier exists.
在一实施例中,所述第二校验子模块,还用于所述资源标识包括用户标识,会话标识、所述会话标识对应的QoS Flow标识;通过所述发送端SMF,确定所述发送端SMF是否存在所述接口请求消息中携带的所述接收端SMF的用户标识;在确定结果为不存在所述用户标识的情况下,确定校验结果为所述发送端SMF的用户资源少于所述接收端SMF的用户资源,所述资源状态为所述用户标识不存在;在确定结果为存在所述用户标识的情况下,通过所述发送端SMF,确定所述发送端SMF是否存在所述接口请求消息中携带的所述接收端SMF的会话标识;在确定结果为不存在所述会话标识的情况下,确定校验结果为所述发送端SMF的会话资源少于所述接收端SMF的会话资源,所述资源状态为所述会话标识不存在;在确定结果为存在所述会话标识的情况下,判断所述发送端SMF的会话资源是否存在多余的会话资源,若存在多于的会话资源,确定校验结果为所述发送端SMF的会话资源多于所述接收端SMF的会话资源,并确定所述资源状态为所述会话标识存在;若不存在多余的会话资源,通过所述发送端SMF,确定所述发送端SMF是否存在所述接口请求消息中携带的所述接收端SMF的QoS Flow标识;在确定结果为不存在所述QoS Flow标识的情况下,确定校验结果为所述发送端SMF的QoS Flow资源少于所述接收端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识不存在;在确定结果为存在所述QoS Flow标识的情况下,确定校验结果为所述发送端SMF的QoS Flow资源大于或等于所述接收端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识存在。In one embodiment, the second verification submodule is also used for the resource identifier including a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier; through the sending end SMF, determining whether the sending end SMF has the user identifier of the receiving end SMF carried in the interface request message; when the determination result is that the user identifier does not exist, determining the verification result is that the user resources of the sending end SMF are less than the user resources of the receiving end SMF, and the resource status is that the user identifier does not exist; when the determination result is that the user identifier exists, determining through the sending end SMF whether the sending end SMF has the session identifier of the receiving end SMF carried in the interface request message; when the determination result is that the session identifier does not exist, determining the verification result is that the session resources of the sending end SMF are less than the session resources of the receiving end SMF, and the resource status is that the session identifier does not exist; when the determination result is that the session identifier exists, judging the sending end SMF. Whether there are redundant session resources in the session resources of the sending-end SMF, if there are redundant session resources, determine that the session resources of the sending-end SMF are more than the session resources of the receiving-end SMF, and determine that the resource status is that the session identifier exists; if there are no redundant session resources, determine through the sending-end SMF whether the sending-end SMF has the QoS Flow identifier of the receiving-end SMF carried in the interface request message; when the determination result is that the QoS Flow identifier does not exist, determine that the verification result is that the QoS Flow resources of the sending-end SMF are less than the QoS Flow resources of the receiving-end SMF, and the resource status is that the QoS Flow identifier does not exist; when the determination result is that the QoS Flow identifier exists, determine that the verification result is that the QoS Flow resources of the sending-end SMF are greater than or equal to the QoS Flow resources of the receiving-end SMF, and the resource status is that the QoS Flow identifier exists.
在一实施例中,所述确定模块156,还用于在所述接收端SMF的用户资源小于所述发送端SMF的用户资源的情况下,通过所述发送端SMF,基于所述资源状态确定所述接收端SMF中不存在的用户资源为所述冗余资源;在所述接收端SMF的QoS Flow资源小于所述发送端SMF的QoS Flow资源的情况下,通过所述发送端SMF,基于所述资源状态确定所述接收端SMF 中不存在的会话资源为所述冗余资源;在所述接收端SMF的QoS Flow资源小于所述发送端SMF的QoS Flow资源的情况下,通过所述发送端SMF,基于所述资源状态确定所述接收端SMF中不存在的用QoS Flow资源为所述冗余资源;在所述发送端SMF的用户资源小于所述接收端SMF的用户资源的情况下,通过所述接收端SMF,基于所述资源状态确定所述发送端SMF中不存在的用户资源为所述冗余资源;在所述发送端SMF的QoS Flow资源小于所述接收端SMF的QoS Flow资源的情况下,通过所述接收端SMF,基于所述资源状态确定所述发送端SMF中不存在的会话资源为所述冗余资源;在所述发送端SMF的QoS Flow资源小于所述接收端SMF的QoS Flow资源的情况下,通过所述接收端SMF,基于所述资源状态确定所述发送端SMF中不存在的用QoS Flow资源为所述冗余资源。In one embodiment, the determination module 156 is further used to determine, through the sending end SMF, based on the resource status, when the user resources of the receiving end SMF are less than the user resources of the sending end SMF, that the user resources that do not exist in the receiving end SMF are the redundant resources; and, through the sending end SMF, based on the resource status, when the QoS Flow resources of the receiving end SMF are less than the QoS Flow resources of the sending end SMF. The session resources that do not exist in the SMF are the redundant resources; when the QoS Flow resources of the receiving-end SMF are less than the QoS Flow resources of the sending-end SMF, the sending-end SMF determines, based on the resource status, that the QoS Flow resources that do not exist in the receiving-end SMF are the redundant resources; when the user resources of the sending-end SMF are less than the user resources of the receiving-end SMF, the receiving-end SMF determines, based on the resource status, that the user resources that do not exist in the sending-end SMF are the redundant resources; when the QoS Flow resources of the sending-end SMF are less than the QoS Flow resources of the receiving-end SMF, the receiving-end SMF determines, based on the resource status, that the session resources that do not exist in the sending-end SMF are the redundant resources; when the QoS Flow resources of the sending-end SMF are less than the QoS Flow resources of the receiving-end SMF, the receiving-end SMF determines, based on the resource status, that the QoS Flow resources that do not exist in the sending-end SMF are the redundant resources.
在一实施例中,所述回收处理模块158,还用于在所述发送端SMF的资源多于所述接收端SMF的资源的情况下,通过所述发送端SMF向AMF发送N1N2消息,以通过所述AMF使基站与UE释放所述冗余资源,接收所述AMF返回的所述基站与所述UE释放所述冗余资源之后返回的响应消息,在所述发送端SMF中释放所述冗余资源;或者在所述发送端SMF的资源少于所述接收端SMF的资源的情况下,通过所述接收端SMF向H-UPF与PCF发送释放所述冗余资源的释放请求消息,接收所述H-UPF与所述PCF释放所述冗余资源之后发送的释放响应消息,在所述接收端SMF中释放所述冗余资源。In one embodiment, the recycling processing module 158 is also used to, when the resources of the sending end SMF are more than the resources of the receiving end SMF, send an N1N2 message to the AMF through the sending end SMF, so as to enable the base station and the UE to release the redundant resources through the AMF, receive a response message returned by the AMF after the base station and the UE release the redundant resources, and release the redundant resources in the sending end SMF; or when the resources of the sending end SMF are less than the resources of the receiving end SMF, send a release request message for releasing the redundant resources to the H-UPF and PCF through the receiving end SMF, receive a release response message sent by the H-UPF and the PCF after releasing the redundant resources, and release the redundant resources in the receiving end SMF.
本公开的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: 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, and other media that can store computer programs.
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present disclosure can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any specific combination of hardware and software.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。 The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims (10)

  1. 一种冗余资源回收处理方法,应用于网络侧,所述方法包括:A redundant resource recovery processing method is applied to a network side, and the method comprises:
    在发送端会话管理功能SMF与接收端SMF之间传输接口请求消息,其中,所述接口消息中携带有资源标识;Transmitting an interface request message between a sending end session management function SMF and a receiving end SMF, wherein the interface message carries a resource identifier;
    在发送端SMF与所述接收端SMF之间传输对所述资源标识对应的资源校验之后的接口响应消息,其中,所述接口响应消息中携带有资源状态;Transmitting an interface response message after checking the resource corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries the resource status;
    通过所述发送端SMF或所述接收端SMF,基于所述资源状态确定冗余资源;Determining redundant resources based on the resource status by the transmitting end SMF or the receiving end SMF;
    通过所述发送端SMF或所述接收端SMF,对所述冗余资源进行回收处理。The redundant resources are recycled through the sending-end SMF or the receiving-end SMF.
  2. 根据权利要求1所述的方法,其中,在发送端SMF与接收端SMF之间传输接口请求消息包括:The method according to claim 1, wherein transmitting an interface request message between a transmitting end SMF and a receiving end SMF comprises:
    通过所述发送端SMF向所述接收端SMF发送校验资源的接口请求消息;或者Sending an interface request message for verifying resources to the receiving end SMF through the sending end SMF; or
    通过所述发送端SMF接收所述接收端SMF发送的接口请求消息。The interface request message sent by the receiving-end SMF is received through the sending-end SMF.
  3. 根据权利要求2所述的方法,其中,在所述发送端SMF与所述接收端SMF之间传输对所述资源标识对应的资源校验之后的接口响应消息包括:The method according to claim 2, wherein the interface response message after the resource verification corresponding to the resource identifier is transmitted between the sending end SMF and the receiving end SMF comprises:
    在通过所述发送端SMF向所述接收端SMF发送校验资源的接口请求消息的情况下,通过所述接收端SMF对所述资源标识对应的资源进行校验,通过所述发送端SMF接收所述接收端SMF对所述资源标识对应的资源校验之后发送的所述接口响应消息;In the case where an interface request message for verifying resources is sent to the receiving-end SMF through the sending-end SMF, the resource corresponding to the resource identifier is verified through the receiving-end SMF, and the interface response message sent by the receiving-end SMF after verifying the resource corresponding to the resource identifier is received through the sending-end SMF;
    在通过所述发送端SMF接收所述接收端SMF发送的接口请求消息的情况下,通过所述发送端SMF对所述资源标识对应的资源进行校验,之后向所述接收端SMF发送所述接口响应消息。In the case where the interface request message sent by the receiving-end SMF is received by the sending-end SMF, the resource corresponding to the resource identifier is verified by the sending-end SMF, and then the interface response message is sent to the receiving-end SMF.
  4. 根据权利要求3所述的方法,其中,通过所述接收端SMF对所述资源标识对应的资源进行校验包括:The method according to claim 3, wherein verifying the resource corresponding to the resource identifier by the receiving end SMF comprises:
    所述资源标识包括用户标识,会话标识、所述会话标识对应的服务质量流QoS Flow标识;The resource identifier includes a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier;
    通过所述接收端SMF,确定所述接收端SMF是否存在所述接口请求消息中携带的所述发送端SMF的用户标识;Determine, through the receiving end SMF, whether the receiving end SMF has the user identifier of the sending end SMF carried in the interface request message;
    在确定结果为不存在所述用户标识的情况下,确定校验结果为所述接收端SMF的用户资源少于所述发送端SMF的用户资源,所述资源状态为所述用户标识不存在;In the case where the determination result is that the user identifier does not exist, determining that the verification result is that the user resources of the receiving end SMF are less than the user resources of the sending end SMF, and the resource status is that the user identifier does not exist;
    在确定结果为存在所述用户标识的情况下,通过所述接收端SMF,确定所述接收端SMF是否存在所述接口请求消息中携带的所述发送端SMF的会话标识;If the determination result is that the user identifier exists, determining, through the receiving end SMF, whether the receiving end SMF has the session identifier of the sending end SMF carried in the interface request message;
    在确定结果为不存在所述会话标识的情况下,确定校验结果为所述接收端SMF的会话资源少于所述发送端SMF的会话资源,所述资源状态为所述会话标识不存在;In the case where the determination result is that the session identifier does not exist, the verification result is determined to be that the session resources of the receiving end SMF are less than the session resources of the sending end SMF, and the resource status is that the session identifier does not exist;
    在确定结果为存在所述会话标识的情况下,判断所述接收端SMF的会话资源是否存在多余的会话资源,若存在多于的会话资源,确定校验结果为所述接收端SMF的会话资源多于所述发送端SMF的会话资源,并确定所述资源状态为所述会话标识存在;若不存在多余的会话资源,通过所述接收端SMF,确定所述接收端SMF是否存在所述接口请求消息中携带的所述发送端SMF的QoS Flow标识;In the case where the determination result is that the session identifier exists, determine whether the session resources of the receiving-end SMF have redundant session resources; if there are redundant session resources, determine the verification result to be that the session resources of the receiving-end SMF are more than the session resources of the sending-end SMF, and determine that the resource status is that the session identifier exists; if there are no redundant session resources, determine, through the receiving-end SMF, whether the receiving-end SMF has the QoS Flow identifier of the sending-end SMF carried in the interface request message;
    在确定结果为不存在所述QoS Flow标识的情况下,确定校验结果为所述接收端SMF的QoS Flow资源少于所述发送端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识不 存在;In the case where the determination result is that the QoS Flow identifier does not exist, the verification result is determined to be that the QoS Flow resources of the receiving end SMF are less than the QoS Flow resources of the sending end SMF, and the resource state is that the QoS Flow identifier does not exist. exist;
    在确定结果为存在所述QoS Flow标识的情况下,确定校验结果为所述接收端SMF的QoS Flow资源大于或等于所述发送端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识存在。When the determination result is that the QoS Flow identifier exists, the verification result is determined that the QoS Flow resources of the receiving end SMF are greater than or equal to the QoS Flow resources of the sending end SMF, and the resource status is that the QoS Flow identifier exists.
  5. 根据权利要求3所述的方法,其中,通过所述发送端SMF对所述资源标识对应的资源进行校验包括:The method according to claim 3, wherein verifying the resource corresponding to the resource identifier by the sending end SMF comprises:
    所述资源标识包括用户标识,会话标识、所述会话标识对应的QoS Flow标识;The resource identifier includes a user identifier, a session identifier, and a QoS Flow identifier corresponding to the session identifier;
    通过所述发送端SMF,确定所述发送端SMF是否存在所述接口请求消息中携带的所述接收端SMF的用户标识;Determine, by the sending end SMF, whether the sending end SMF has the user identifier of the receiving end SMF carried in the interface request message;
    在确定结果为不存在所述用户标识的情况下,确定校验结果为所述发送端SMF的用户资源少于所述接收端SMF的用户资源,所述资源状态为所述用户标识不存在;In the case where the determination result is that the user identifier does not exist, determining that the verification result is that the user resources of the sending end SMF are less than the user resources of the receiving end SMF, and the resource status is that the user identifier does not exist;
    在确定结果为存在所述用户标识的情况下,通过所述发送端SMF,确定所述发送端SMF是否存在所述接口请求消息中携带的所述接收端SMF的会话标识;If the determination result is that the user identifier exists, determining, through the sending end SMF, whether the sending end SMF has the session identifier of the receiving end SMF carried in the interface request message;
    在确定结果为不存在所述会话标识的情况下,确定校验结果为所述发送端SMF的会话资源少于所述接收端SMF的会话资源,所述资源状态为所述会话标识不存在;In the case where the determination result is that the session identifier does not exist, the verification result is determined to be that the session resources of the sending end SMF are less than the session resources of the receiving end SMF, and the resource status is that the session identifier does not exist;
    在确定结果为存在所述会话标识的情况下,判断所述发送端SMF的会话资源是否存在多余的会话资源,若存在多于的会话资源,确定校验结果为所述发送端SMF的会话资源多于所述接收端SMF的会话资源,并确定所述资源状态为所述会话标识存在;若不存在多余的会话资源,通过所述发送端SMF,确定所述发送端SMF是否存在所述接口请求消息中携带的所述接收端SMF的QoS Flow标识;In the case where the determination result is that the session identifier exists, determine whether the session resources of the sending end SMF have redundant session resources; if there are redundant session resources, determine the verification result to be that the session resources of the sending end SMF are more than the session resources of the receiving end SMF, and determine that the resource status is that the session identifier exists; if there are no redundant session resources, determine through the sending end SMF whether the sending end SMF has the QoS Flow identifier of the receiving end SMF carried in the interface request message;
    在确定结果为不存在所述QoS Flow标识的情况下,确定校验结果为所述发送端SMF的QoS Flow资源少于所述接收端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识不存在;In the case where the determination result is that the QoS Flow identifier does not exist, the verification result is determined to be that the QoS Flow resources of the sending end SMF are less than the QoS Flow resources of the receiving end SMF, and the resource state is that the QoS Flow identifier does not exist;
    在确定结果为存在所述QoS Flow标识的情况下,确定校验结果为所述发送端SMF的QoS Flow资源大于或等于所述接收端SMF的QoS Flow资源,所述资源状态为所述QoS Flow标识存在。When the determination result is that the QoS Flow identifier exists, the verification result is determined that the QoS Flow resources of the sending end SMF are greater than or equal to the QoS Flow resources of the receiving end SMF, and the resource status is that the QoS Flow identifier exists.
  6. 根据权利要求4或5所述的方法,其中,通过所述发送端SMF或所述接收端SMF,基于所述资源状态确定冗余资源包括:The method according to claim 4 or 5, wherein determining, by the transmitting end SMF or the receiving end SMF, redundant resources based on the resource status comprises:
    在所述接收端SMF的用户资源小于所述发送端SMF的用户资源的情况下,通过所述发送端SMF,基于所述资源状态确定所述接收端SMF中不存在的用户资源为所述冗余资源;In a case where the user resources of the receiving-end SMF are less than the user resources of the sending-end SMF, determining, by the sending-end SMF, based on the resource status, that the user resources not existing in the receiving-end SMF are the redundant resources;
    在所述接收端SMF的QoS Flow资源小于所述发送端SMF的QoS Flow资源的情况下,通过所述发送端SMF,基于所述资源状态确定所述接收端SMF中不存在的会话资源为所述冗余资源;In the case where the QoS Flow resources of the receiving-end SMF are less than the QoS Flow resources of the sending-end SMF, the sending-end SMF determines, based on the resource status, that the session resources that do not exist in the receiving-end SMF are the redundant resources;
    在所述接收端SMF的QoS Flow资源小于所述发送端SMF的QoS Flow资源的情况下,通过所述发送端SMF,基于所述资源状态确定所述接收端SMF中不存在的用QoS Flow资源为所述冗余资源;In the case that the QoS Flow resources of the receiving-end SMF are less than the QoS Flow resources of the sending-end SMF, the sending-end SMF determines, based on the resource status, that the QoS Flow resources not existing in the receiving-end SMF are the redundant resources;
    在所述发送端SMF的用户资源小于所述接收端SMF的用户资源的情况下,通过所述接收端SMF,基于所述资源状态确定所述发送端SMF中不存在的用户资源为所述冗余资源;In a case where the user resources of the transmitting end SMF are less than the user resources of the receiving end SMF, determining, by the receiving end SMF, based on the resource status, that the user resources not existing in the transmitting end SMF are the redundant resources;
    在所述发送端SMF的QoS Flow资源小于所述接收端SMF的QoS Flow资源的情况下,通 过所述接收端SMF,基于所述资源状态确定所述发送端SMF中不存在的会话资源为所述冗余资源;In the case where the QoS Flow resources of the transmitting SMF are less than the QoS Flow resources of the receiving SMF, Through the receiving-end SMF, determining, based on the resource status, that a session resource not existing in the sending-end SMF is the redundant resource;
    在所述发送端SMF的QoS Flow资源小于所述接收端SMF的QoS Flow资源的情况下,通过所述接收端SMF,基于所述资源状态确定所述发送端SMF中不存在的用QoS Flow资源为所述冗余资源。In the case that the QoS Flow resources of the sending-end SMF are less than the QoS Flow resources of the receiving-end SMF, the receiving-end SMF determines, based on the resource status, that the QoS Flow resources that do not exist in the sending-end SMF are the redundant resources.
  7. 根据权利要求4或5所述的方法,其中,通过所述发送端SMF或所述接收端SMF,对所述冗余资源进行回收处理包括:The method according to claim 4 or 5, wherein the recycling of the redundant resources by the transmitting end SMF or the receiving end SMF comprises:
    在所述发送端SMF的资源多于所述接收端SMF的资源的情况下,通过所述发送端SMF向AMF发送N1N2消息,以通过所述AMF使基站与UE释放所述冗余资源,接收所述AMF返回的所述基站与所述UE释放所述冗余资源之后返回的响应消息,在所述发送端SMF中释放所述冗余资源;或者In the case where the resources of the transmitting end SMF are more than the resources of the receiving end SMF, an N1N2 message is sent to the AMF through the transmitting end SMF, so that the base station and the UE release the redundant resources through the AMF, a response message returned by the AMF after the base station and the UE release the redundant resources is received, and the redundant resources are released in the transmitting end SMF; or
    在所述发送端SMF的资源少于所述接收端SMF的资源的情况下,通过所述接收端SMF向H-UPF与PCF发送释放所述冗余资源的释放请求消息,接收所述H-UPF与所述PCF释放所述冗余资源之后发送的释放响应消息,在所述接收端SMF中释放所述冗余资源。In the case where the resources of the sending-end SMF are less than the resources of the receiving-end SMF, a release request message for releasing the redundant resources is sent to the H-UPF and PCF through the receiving-end SMF, and a release response message is received after the H-UPF and the PCF release the redundant resources, and the redundant resources are released in the receiving-end SMF.
  8. 一种冗余资源回收处理装置,应用于网络侧,所述装置包括:A redundant resource recovery processing device, applied to a network side, comprising:
    第一传输模块,用于在发送端会话管理功能SMF与接收端SMF之间传输接口请求消息,其中,所述接口消息中携带有资源标识;A first transmission module, used for transmitting an interface request message between a sending end session management function SMF and a receiving end SMF, wherein the interface message carries a resource identifier;
    第二传输模块,用于在发送端SMF与所述接收端SMF之间传输对所述资源标识对应的资源校验之后的接口响应消息,其中,所述接口响应消息中携带有资源状态;A second transmission module is used to transmit an interface response message after checking the resource corresponding to the resource identifier between the sending end SMF and the receiving end SMF, wherein the interface response message carries a resource status;
    确定模块,用于通过所述发送端SMF或所述接收端SMF,基于所述资源状态确定冗余资源;A determination module, configured to determine redundant resources based on the resource status through the transmitting end SMF or the receiving end SMF;
    回收处理模块,用于通过所述发送端SMF或所述接收端SMF,对所述冗余资源进行回收处理。The recycling processing module is used to recycle the redundant resources through the sending end SMF or the receiving end SMF.
  9. 一种计算机可读的存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至7任一项中所述的方法。A computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the method described in any one of claims 1 to 7 when run.
  10. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至7任一项中所述的方法。 An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the method described in any one of claims 1 to 7.
PCT/CN2023/127897 2022-12-12 2023-10-30 Redundant resource recycling processing method and device, and storage medium and electronic device WO2024125117A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211611440.1 2022-12-12
CN202211611440.1A CN118200991A (en) 2022-12-12 2022-12-12 Redundant resource recycling method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2024125117A1 true WO2024125117A1 (en) 2024-06-20

Family

ID=91410457

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/127897 WO2024125117A1 (en) 2022-12-12 2023-10-30 Redundant resource recycling processing method and device, and storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN118200991A (en)
WO (1) WO2024125117A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040059749A1 (en) * 2002-09-24 2004-03-25 International Business Machines Corporation Reclaiming resources in response to forced state transitions
US20070271369A1 (en) * 2006-05-17 2007-11-22 Arkin Aydin Apparatus And Methods For Managing Communication System Resources
CN106375376A (en) * 2016-08-25 2017-02-01 迈普通信技术股份有限公司 Resource recovery method and apparatus
CN108964953A (en) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 A kind of method and device of Internet resources processing
CN112486689A (en) * 2020-12-10 2021-03-12 苏州浪潮智能科技有限公司 Resource management platform resource recovery method, device, equipment and readable medium
CN114722261A (en) * 2021-01-04 2022-07-08 中移(苏州)软件技术有限公司 Resource processing method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040059749A1 (en) * 2002-09-24 2004-03-25 International Business Machines Corporation Reclaiming resources in response to forced state transitions
US20070271369A1 (en) * 2006-05-17 2007-11-22 Arkin Aydin Apparatus And Methods For Managing Communication System Resources
CN106375376A (en) * 2016-08-25 2017-02-01 迈普通信技术股份有限公司 Resource recovery method and apparatus
CN108964953A (en) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 A kind of method and device of Internet resources processing
CN112486689A (en) * 2020-12-10 2021-03-12 苏州浪潮智能科技有限公司 Resource management platform resource recovery method, device, equipment and readable medium
CN114722261A (en) * 2021-01-04 2022-07-08 中移(苏州)软件技术有限公司 Resource processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN118200991A (en) 2024-06-14

Similar Documents

Publication Publication Date Title
EP3742799A1 (en) Communication method and device
US20060129631A1 (en) Method for controlling a media message upload through a wireless communication network
WO2019100937A1 (en) Method and apparatus for data transmission
WO2018126961A1 (en) Communication method, access network device, and terminal
JP4923155B2 (en) How to stop and resume content transmission / reception
WO2021057526A1 (en) Disaster recovery method for gateway device, and communication device
AU2018366793B2 (en) Request processing method, and corresponding entity
KR102505630B1 (en) Data transmission method and device
US20210329504A1 (en) Communication method and apparatus
WO2019024102A1 (en) Method for processing session in wireless communication, and terminal device
US20220286877A1 (en) Redundant session establishment method and apparatus, radio bearer establishment method and apparatus, and nodes, terminal, and medium
CN110431866B (en) Control plane connection management method and device
WO2019095379A1 (en) Service activation and deactivation method, device and computer storage medium
WO2019196668A1 (en) Information sending method, key generating method, and device
WO2024125117A1 (en) Redundant resource recycling processing method and device, and storage medium and electronic device
CN110545253B (en) Information processing method, device, equipment and computer readable storage medium
TWI816295B (en) Method and related apparatus for configuring evolved packet system non-access stratum security algorithm
WO2022001785A1 (en) User plane state synchronization method and apparatus
WO2021147672A1 (en) Session processing method and communication device
CN110324857B (en) Method and device for processing service quality data stream
CN112995260A (en) Session message interaction method and device and computer readable storage medium
WO2023109344A1 (en) Policy update method, and device and storage medium
CN110519840B (en) Session processing method and device, network element and storage medium
CN102291735A (en) Method and device for tunneling protocol (GTPC) signaling interaction of evolved packet core (EPC) network
CN117253302B (en) Digital car key synchronization method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23902317

Country of ref document: EP

Kind code of ref document: A1