Session management method, device and system

In the 5G mobile communication system, the session management network element receives the request message from the terminal and determines whether to establish a permanent online session, which solves the problem of insufficient concurrent processing capabilities and waste of network resources in the service request process, and improves system performance and delay-sensitive services. key performance indicators.

CN113993143BActive Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202111180689.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-05-22
Publication Date
2024-09-24
Estimated Expiration
2038-05-22

AI Technical Summary

Technical Problem

In the 5G mobile communication system, the concurrent processing capability of the service request process is insufficient, causing delay-sensitive services to be affected, and the terminal's local management of always-on PDU sessions may lead to malicious consumption of user plane network resources. How to save network resources is an urgent need. problem solved.

Method used

The session management network element receives the request message from the terminal, determines whether to establish the session as a permanent online session, and carries out corresponding marking and notification on the terminal and network side to flexibly manage the use of network resources to avoid unnecessary consumption.

Benefits of technology

Effective management of network resources is achieved, resource waste is avoided, and system performance and key performance indicators of delay-sensitive services are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113993143B
    Figure CN113993143B
Patent Text Reader

Abstract

The present application provides a session management method, device and system, which are conducive to preventing user-plane network resources from being maliciously consumed by terminals, thereby saving network resources. The session management method includes: a session management network element receives a first request message, the first request message is used to request to establish a first session for the terminal; the session management network element determines to establish the first session as a permanent online session, the permanent online session is a session that activates user-plane resources when the terminal changes from an idle state to a connected state; the session management network element sends a first response message to the terminal, the first response message is used to indicate that the session management network element accepts to establish the first session, the first response message carries first indication information, and the first indication information is used to indicate that the first session is a permanent online session.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and more specifically, to a session management method, device and system in the field of communications. Background Art

[0002] In the fifth generation (5G) mobile communication system, the service request (SR) process is used by an idle terminal to request to establish a signaling connection to the AMF, or it can also be used by an idle or connected terminal to activate the corresponding user plane resources for an established protocol data unit (PDU) session. When an SR process is being executed, if the terminal needs to request a new service, it needs to wait for the previous service request process to complete before executing the new SR process. The current 3GPP (3 rd The 3rd Generation Partnership Project (3GPP) standard does not allow concurrent SR processes.

[0003] 5G aims to provide a pan-access network to provide access services for terminals of various service types, including enhanced Mobile Broadband (eMBB) type terminals, Massive Internet of Things (MIoT) type terminals and ultra-reliable and low latency communications (uRLLC) type terminals. Since the SR process cannot be processed concurrently, if a terminal has initiated an SR process for a normal service but has not completed it, and the terminal has another service that is very sensitive to latency and needs to initiate an SR process, such as uRLLC service, multimedia priority service (MPS), mission critical services (MCS), etc., waiting in line for the current SR process to end will seriously affect the key performance indicators (KPI) of latency-sensitive services.

[0004] To solve the above problems, 3GPP currently defines always-on PDU sessions, which require the activation of user-plane resources when the terminal changes from an idle state to a connected state. For the above-mentioned services that are very sensitive to latency, the terminal can locally set the PDU session established for the service as an always-on PDU session. For the always-on PDU session, each time the terminal changes from an idle state to a connected state, it will request the network side to activate the corresponding user-plane network resources for the PDU session, including data radio bearers (DRB). With this method, as long as a higher-priority PDU session needs to transmit data, it can directly transmit data without queuing and waiting to request network resources. However, local management of always-on PDU sessions by the terminal may cause user-plane network resources to be maliciously consumed by the terminal. How to save network resources is a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present application provides a session management method, device and system, which are helpful to avoid user-side network resources being maliciously consumed by terminals, thereby saving network resources.

[0006] In a first aspect, a session management method is provided, including: a session management network element receives a first request message, the first request message is used to request to establish a first session for a terminal; the session management network element determines to establish the first session as a permanent online session, wherein the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; then, the session management network element sends a first response message to the terminal, wherein the first response message is used to indicate that the session management network element accepts to establish the first session, and the first response message carries first indication information, and the first indication information is used to indicate that the first session is a permanent online session.

[0007] Optionally, after determining that the first session is established as a permanent online session, the session management network element may mark the first session as a permanent online session. Similarly, the terminal may also mark the session as a permanent online session when determining that the first session is established as a permanent online session, which is not limited in the embodiments of the present application.

[0008] The session management method of the embodiment of the present application receives a first request message from a terminal for requesting to establish a session through a session management network element, and determines to establish a permanent online session for the terminal according to actual conditions. This can achieve flexible management of the establishment process of the permanent online session on the network side, which is beneficial to avoid unnecessary consumption of network resources, thereby improving system performance.

[0009] It should be understood that the first session can be specifically a PDU session, the first request message can be specifically a PDU session establishment request message, and the first response message can be specifically a PDU session establishment response message, but it can be understood that the PDU session is only a specific example, but the embodiment of the present application does not limit this. In addition, the signaling interaction between the terminal and the session management network element can be direct or indirect, that is, forwarded through the access network element and the mobility management network element, which is not limited in the embodiment of the present application.

[0010] In combination with the first aspect, in certain implementations of the first aspect, the session management network element determines to establish the first session as a permanent online session, specifically: the session management network element determines to establish the first session as a permanent online session based on any one of the following information: the contract information of the terminal, the policy information of the terminal, or the local configuration information of the session management network element.

[0011] Specifically, the above-mentioned session management network element may determine, based on the subscription information of the terminal, the policy information of the terminal, or the local configuration information of the session management network element, whether to establish the first session requested by the terminal as a permanent online session. Optionally, the subscription information, the policy information, or the local configuration information may carry indication information for indicating that a permanent online session is allowed to be established for the terminal, and the session management network element may determine, based on the indication information, whether to establish the first session requested by the terminal as a permanent online session.

[0012] It should be understood that the above-mentioned session management network element can use any one of the contract information, policy information, or local configuration information for judgment, or can make a comprehensive judgment based on any two or three of the above three information, which is not limited in this embodiment of the present application.

[0013] In combination with the first aspect, in certain implementations of the first aspect, the session management network element determines to establish the first session as a permanent online session, specifically: the session management network element determines to establish the first session as a permanent online session based on any one of the following information: data network name DNN, single network slice auxiliary information S-NSSAI, current location information of the terminal, or access type of the terminal; wherein, DNN or S-NSSAI is carried in the first request message.

[0014] Specifically, the session management network element can determine whether to establish the first session requested by the terminal as a permanent online session based on any one of the DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal. Wherein, the DNN and S-NSSAI are carried in the above-mentioned first request message and sent by the terminal to the session management network element. The current location information of the terminal and the access type of the terminal are obtained by the session management network element from the access network element.

[0015] Optionally, the above-mentioned DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal may also come from the subscription information of the above-mentioned terminal, the policy information of the terminal, or the local configuration information of the session management network element, which is not limited in the embodiment of the present application.

[0016] It should be understood that the above-mentioned session management network element may use any one of DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal for judgment, or may combine any multiple information of the above four for comprehensive judgment, and the embodiment of the present application does not limit this. In a possible implementation, if the session management network element selects multiple information for judgment, then the session management network element determines to establish the first session as a permanent online session only when the multiple information successfully matches the corresponding information allowing the establishment of a permanent session.

[0017] In combination with the first aspect, in certain implementations of the first aspect, the local configuration information may include any one of the following information: the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the session management network element; accordingly, the session management network element determines to establish the first session as a permanent online session, specifically: when the number of permanent online sessions already existing at the terminal is less than the maximum number of permanent online sessions supported by the terminal, the session management network element determines to establish the first session as a permanent online session; or, when the number of permanent online sessions already existing at the session management network element is less than the maximum number of permanent online sessions supported by the session management network element, the session management network element determines to establish the first session as a permanent online session.

[0018] Optionally, the above-mentioned local configuration information may include both DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal, and the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the session management network element. In this case, the session management network element may first determine whether the permanent online session of the terminal or the session management network element is less than the maximum number of permanent online sessions supported by the terminal or the session management network element. If the permanent online session of the terminal or the session management network element is less than the maximum number of permanent online sessions supported by the terminal or the session management network element, the session management network element may then determine whether to refuse to establish the first session as a permanent online session.

[0019] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the session management network element receiving second indication information, where the second indication information is used to indicate that the first session is established as a permanent online session.

[0020] Specifically, the terminal may also send second indication information to the session management network element for indicating that the first session requested to be established is established as a permanent online session. The second indication information may be carried in the first request message, or may be separated from the first request message and sent to the session management network element as two independent messages, which is not limited in the embodiment of the present application. Generally, the terminal encapsulates the first request message in an uplink transmission message for transmission, for example, an uplink non-access stratum (NAS) transmission message.

[0021] It should be understood that the above-mentioned session management network element can determine to establish the first session as a permanent online session only when the above-mentioned second indication information is detected. If the above-mentioned second indication information is not detected, it will still be processed according to the existing normal session establishment process, but the embodiment of the present application is not limited to this.

[0022] In combination with the first aspect, in certain implementations of the first aspect, after the session management network element sends a first response message to the terminal, the method further includes: the session management network element determines to update the session attributes of the first session, wherein the session attributes are used to indicate that the first session is a permanent online session; then, the session management network element sends a notification message to the terminal, wherein the notification message is used to notify that the session attributes of the first session have been updated to a non-permanent online session.

[0023] The session management method of the embodiment of the present application can flexibly use network resources by updating the session attributes of existing sessions, especially when the contract information, policy information, or local configuration information changes, and flexibly adjust the session attributes of existing sessions, which is beneficial to improving the resource utilization of the system and thus improving the system performance.

[0024] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the session management network element receiving second indication information, where the second indication information is used to indicate that the first session is established as a permanent online session.

[0025] In a second aspect, another session management method is provided, including: a terminal sends a first request message to a session management network element, the first request message is used to request to establish a first session for the terminal; the terminal receives a first response message, wherein the first response message is used to indicate that the session management network element accepts to establish the first session, the first response message carries first indication information, and the first indication information is used to indicate that the first session is a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state.

[0026] The session management method of the embodiment of the present application receives a first request message from a terminal for requesting to establish a session through a session management network element, and determines to establish a permanent online session for the terminal according to actual conditions. This can achieve flexible management of the establishment process of the permanent online session on the network side, which is beneficial to avoid unnecessary consumption of network resources, thereby improving system performance.

[0027] In combination with the second aspect, in some implementations of the second aspect, the method further includes: the terminal sending second indication information to the session management network element, where the second indication information is used to indicate that the first session is established as a permanent online session.

[0028] In combination with the second aspect, in some implementations of the second aspect, after the terminal receives the first response message, the method further includes: the terminal receiving a notification message, the notification message being used to notify that the session attribute of the first session has been updated to a non-permanent online session.

[0029] According to a third aspect, another session management method is provided, including: a session management network element receives a first request message and second indication information, wherein the first request message is used to request to establish a first session for a terminal, and the second indication information is used to indicate that the first session is established as a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; the session management network element determines to refuse to establish the first session as a permanent online session; then, the session management network element sends a first response message to the terminal, wherein the first response message carries third indication information, and the third indication information is used to indicate that the session management network element refuses to establish the first session as the permanent online session.

[0030] The session management method of the embodiment of the present application receives, through the session management network element, a first request message from the terminal for requesting to establish a session and second indication information for indicating that the session is to be established as a permanent online session, and determines to refuse to establish a permanent online session for the terminal according to actual conditions. This can achieve flexible management of the establishment process of the permanent online session on the network side, which is beneficial to avoid unnecessary consumption of network resources, thereby improving system performance.

[0031] In combination with the third aspect, in certain implementations of the third aspect, the first response message is used to indicate that the session management network element refuses to establish the first session, and the third indication information is used to indicate that the reason why the session management network element refuses to establish the first session is to refuse to establish the first session as a permanent online session; or the first response message is used to indicate that the session management network element accepts to establish the first session, but does not accept to establish the first session as a permanent online session.

[0032] In combination with the third aspect, in certain implementations of the third aspect, the session management network element determines to refuse to establish the first session as a permanent online session, specifically: the session management network element determines to refuse to establish the first session as a permanent online session based on any one of the following information: the contract information of the terminal, the policy information of the terminal, or the local configuration information of the session management network element.

[0033] In combination with the third aspect, in certain implementations of the third aspect, the session management network element determines to refuse to establish the first session as a permanent online session, including: the session management network element determines to refuse to establish the first session as a permanent online session based on any one of the following information: data network name DNN, single network slice auxiliary information S-NSSAI, current location information of the terminal, or access type of the terminal; wherein the DNN or the S-NSSAI is carried in the first request message.

[0034] In combination with the third aspect, in certain implementations of the third aspect, the local configuration information includes any one of the following information: the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the session management network element; the session management network element determines to refuse to establish the first session as a permanent online session, including: when the number of permanent online sessions already existing at the terminal is greater than or equal to the maximum number of permanent online sessions supported by the terminal, the session management network element determines to refuse to establish the first session as a permanent online session; or, when the number of permanent online sessions already existing at the session management network element is greater than or equal to the maximum number of permanent online sessions supported by the session management network element, the session management network element determines to refuse to establish the first session as a permanent online session.

[0035] In combination with the third aspect, in certain implementations of the third aspect, after the session management network element sends a first response message to the terminal, the method also includes: the session management network element determines to update a session attribute of the first session, and the session attribute is used to indicate that the first session is a non-permanent online session; the session management network element sends a notification message to the terminal, and the notification message is used to notify that the session attribute of the first session has been updated to a permanent online session.

[0036] In a fourth aspect, another session management method is provided, including: a terminal sends a first request message and second indication information to a session management network element, the first request message is used to request to establish a first session for the terminal, and the second indication information is used to indicate that the first session is established as a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; the terminal receives a first response message, the first response message carries third indication information, and the third indication information is used to indicate that the session management network element refuses to establish the first session as a permanent online session.

[0037] The session management method of the embodiment of the present application receives, through the session management network element, a first request message from the terminal for requesting to establish a session and second indication information for indicating that the session is to be established as a permanent online session, and determines to refuse to establish a permanent online session for the terminal according to actual conditions. This can achieve flexible management of the establishment process of the permanent online session on the network side, which is beneficial to avoid unnecessary consumption of network resources, thereby improving system performance.

[0038] In combination with the fourth aspect, in certain implementations of the fourth aspect, the first response message is used to indicate that the session management network element refuses to establish the first session, and the third indication information is used to indicate that the reason why the session management network element refuses to establish the first session is to refuse to establish the first session as a permanent online session; or the first response message is used to indicate that the session management network element accepts to establish the first session, but does not accept to establish the first session as a permanent online session.

[0039] In combination with the fourth aspect, in certain implementations of the fourth aspect, after the terminal receives the first response message, the method further includes: the terminal receiving a notification message, the notification message being used to notify that the session attribute of the first session has been updated to a permanent online session.

[0040] In a fifth aspect, another session management method is provided, including: a terminal receives permanent online session setting information from a mobility management network element; the terminal sets an established first session as a permanent online session according to the permanent online session setting information, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state.

[0041] In combination with the fifth aspect, in some implementations of the fifth aspect, the terminal receives the permanent online session setting information from the mobility management network element, specifically including:

[0042] The terminal sends a second request message to the mobility management network element, where the second request message is used to request registration with the mobility management network element; the terminal receives a second response message, where the second response message is used to indicate that the mobility management network element accepts the registration of the terminal, and the second response message carries the permanent online session setting information; or,

[0043] The terminal receives a configuration update command from the mobility management network element, where the configuration update command carries the permanent online session setting information; or,

[0044] The terminal receives policy information of the terminal from the mobility management network element, where the policy information carries the permanent online session setting information.

[0045] In combination with the fifth aspect, in some implementations of the fifth aspect, the second request message carries capability indication information of the terminal, where the capability indication information is used to indicate a capability of the terminal to support a permanent online session.

[0046] In combination with the fifth aspect, in some implementations of the fifth aspect, the terminal sets the established first session as a permanent online session according to the permanent online session setting information, including: the terminal determines that the established first session satisfies the permanent online session setting information, and then sets the established first session as a permanent online session.

[0047] In combination with the fifth aspect, in certain implementations of the fifth aspect, the permanent online session setting information is any one of the following: DNN information allowing establishment of a permanent online session, S-NSSAI information allowing establishment of a permanent online session, the location of the terminal allowing establishment of a permanent online session, the access type of the terminal allowing establishment of a permanent online session, or the service type requested by the terminal allowing establishment of a permanent online session.

[0048] In a sixth aspect, another session management method is provided, including: a mobility management network element determines permanent online session setting information based on any one of the following information: subscription information of a terminal, policy information of the terminal, or local configuration information of the mobility management network element; and the mobility management network element sends the permanent online session setting information to the terminal.

[0049] In combination with the sixth aspect, in certain implementation methods of the sixth aspect, the terminal receives permanent online session setting information from a mobility management network element, specifically including: the mobility management network element receives a second request message from the terminal, the second request message is used to request registration in the mobility management network element; the mobility management network element sends the permanent online session setting information to the terminal, specifically: the mobility management network element sends a second response message to the terminal, the second response message is used to indicate that the mobility management network element accepts the registration of the terminal, and the second response message carries the permanent online session setting information.

[0050] In combination with the sixth aspect, in certain implementation methods of the sixth aspect, the second request message carries capability indication information of the terminal, and the capability indication information is used to indicate the ability of the terminal to support permanent online sessions; the mobility management network element determines the permanent online session setting information, specifically: when the capability indication information indicates that the terminal supports permanent online sessions, the mobility management network element determines the permanent online session setting information according to any one of the following information: the terminal's subscription information, the terminal's policy information, or the local configuration information of the mobility management network element.

[0051] In combination with the sixth aspect, in certain implementations of the sixth aspect, the permanent online session setting information is any one of the following: DNN information allowing establishment of a permanent online session, S-NSSAI information allowing establishment of a permanent online session, the location of the terminal allowing establishment of a permanent online session, the access type of the terminal allowing establishment of a permanent online session, or the service type requested by the terminal allowing establishment of a permanent online session.

[0052] In the session management method of the embodiment of the present application, the mobility management network element can inform the terminal of the permanent online session setting information that allows the terminal to initiate a permanent online session. The terminal can decide whether to set the existing session as a permanent online session based on the permanent online session setting information, and can further strengthen the control of the terminal side initiating the permanent online session, effectively preventing the waste of network resources.

[0053] In a seventh aspect, a session management system is provided, including: a mobility management network element and a session management network element, the mobility management network element is used to send a first request message to the session management network element, the first request message is used to request to establish a first session for a terminal; the session management network element is used to receive the first request message, and determine to establish the first session as a permanent online session, the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; the session management network element is used to send a first response message to the mobility management network element, the first response message is used to indicate that the session management network element accepts to establish the first session, the first response message carries first indication information, and the first indication information is used to indicate that the first session is a permanent online session.

[0054] In combination with the seventh aspect, in some implementations of the seventh aspect, the mobility management network element is further used to: before the mobility management network element sends a first request message to the session management network element, determine whether at least one of the following conditions is met: the mobility management network element supports the permanent online session; and the mobility management network element can select the session management network element that supports the permanent online session; if the at least one condition is met, the mobility management network element sends the first request message and second indication information to the session management network element, and the second indication information is used to indicate that the first session is established as a permanent online session.

[0055] In an eighth aspect, a session management device is provided, which is used to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the device includes a unit for executing the method in the first aspect or any possible implementation of the first aspect.

[0056] In a ninth aspect, another device is provided, for executing the method in the second aspect or any possible implementation of the second aspect. Specifically, the device includes a unit for executing the method in the second aspect or any possible implementation of the second aspect.

[0057] In a tenth aspect, a session management device is provided, which is used to execute the method in the third aspect or any possible implementation of the third aspect. Specifically, the device includes a unit for executing the method in the third aspect or any possible implementation of the third aspect.

[0058] In an eleventh aspect, another device is provided, for executing the method in the fourth aspect or any possible implementation of the fourth aspect. Specifically, the device includes a unit for executing the method in the fourth aspect or any possible implementation of the fourth aspect.

[0059] In a twelfth aspect, a session management device is provided, which is used to execute the method in the fifth aspect or any possible implementation of the fifth aspect. Specifically, the device includes a unit for executing the method in the fifth aspect or any possible implementation of the fifth aspect.

[0060] In a thirteenth aspect, another device is provided, which is used to execute the method in the sixth aspect or any possible implementation of the sixth aspect. Specifically, the device includes a unit for executing the method in the sixth aspect or any possible implementation of the sixth aspect.

[0061] In a fourteenth aspect, another session management device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, so that the device executes the method in the first aspect or any possible implementation of the first aspect.

[0062] In a fifteenth aspect, another device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, so that the device executes the method in the second aspect or any possible implementation of the second aspect.

[0063] In the sixteenth aspect, another device is provided, which includes: a processor; the processor is used to couple with a memory, and after reading instructions in the memory, execute a method as described in the second aspect or any possible implementation of the second aspect according to the instructions.

[0064] In a seventeenth aspect, another session management device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, so that the device executes the method in the third aspect or any possible implementation of the third aspect.

[0065] In an eighteenth aspect, another device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, so that the device executes the method in the fourth aspect or any possible implementation of the fourth aspect.

[0066] In the nineteenth aspect, another device is provided, which includes: a processor; the processor is used to couple with a memory, and after reading instructions in the memory, execute a method as described in the fourth aspect or any possible implementation of the fourth aspect according to the instructions.

[0067] In a twentieth aspect, another session management device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, so that the device executes the method in the fifth aspect or any possible implementation of the fifth aspect.

[0068] In a twenty-first aspect, another device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, so that the device executes the method in the sixth aspect or any possible implementation of the sixth aspect.

[0069] In the twenty-second aspect, another device is provided, which includes: a processor; the processor is used to couple with a memory, and after reading instructions in the memory, execute a method as in the above-mentioned sixth aspect or any possible implementation of the sixth aspect according to the instructions.

[0070] In the twenty-third aspect, a computer program product is provided, which includes: a computer program code, which, when executed by a computer, enables the computer to execute a method in any possible implementation of any of the above aspects.

[0071] In the twenty-fourth aspect, a computer-readable medium is provided for storing a computer program, wherein the computer program includes instructions for executing a method in any possible implementation of any of the above aspects.

[0072] In the twenty-fifth aspect, a communication chip is provided, in which instructions are stored, and when the instructions are executed on a computer device, the communication chip executes a method in any possible implementation of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 It is a schematic diagram of the system architecture provided in the embodiment of the present application.

[0074] Figure 2 It is a schematic diagram of an application scenario provided by an embodiment of the present application.

[0075] Figure 3 It is a schematic flowchart of the session management method provided in an embodiment of the present application.

[0076] Figure 4 It is a schematic flowchart of another session management method provided in an embodiment of the present application.

[0077] Figure 5 It is a schematic flowchart of another session management method provided in an embodiment of the present application.

[0078] Figure 6 It is a schematic flowchart of another session management method provided in an embodiment of the present application.

[0079] Figure 7 It is a schematic flowchart of another session management method provided in an embodiment of the present application.

[0080] Figure 8 It is a schematic flowchart of another session management method provided in an embodiment of the present application.

[0081] Fig. 9 It is a schematic flowchart of another session management method provided in an embodiment of the present application.

[0082] Fig.10 It is a schematic flowchart of another session management method provided in an embodiment of the present application.

[0083] Fig.11 It is a schematic block diagram of the device provided in an embodiment of the present application.

[0084] Fig.12 It is a schematic block diagram of another device provided in an embodiment of the present application.

[0085] Fig.13 It is a schematic block diagram of another device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0086] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0087] The technical solutions of the embodiments of the present application can be applied to various communication systems, for example: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, fifth generation (5G) system or future systems, etc.

[0088] Figure 1 FIG. 1 is a schematic diagram showing a system architecture 100 to which an embodiment of the present application is applied. Figure 1 As shown, the system architecture 100 includes: a session management network element 110. Optionally, the system architecture 100 may also include a mobility management network element 120.

[0089] The above system architecture 100 can be used to execute the session management method in the embodiment of the present application.

[0090] In a possible implementation, the session management network element 110 in the above system architecture 100 is specifically used to: receive a first request message, the first request message is used to request to establish a first session for the terminal; determine to establish the first session as a permanent online session, the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; send a first response message to the terminal, the first response message is used to indicate that the session management network element accepts to establish the first session, the first response message carries first indication information, the first indication information is used to indicate that the first session is a permanent online session. In this case, the session management network element 110 can also receive second indication information, the second indication information is used to indicate that the first session is established as a permanent online session.

[0091] In another possible implementation, the session management network element 110 in the above system architecture 100 is specifically used to: receive a first request message and a second indication information, wherein the first request message is used to request to establish a first session for a terminal, and the second indication information is used to indicate that the first session is established as a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; determine to refuse to establish the first session as a permanent online session; send a first response message to the terminal, wherein the first response message carries a third indication information, and the third indication information is used to indicate that the session management network element refuses to establish the first session as the permanent online session. In this case, the session management network element can refuse to establish the first session, or establish the first session as a non-permanent online session, which is not limited here.

[0092] In another possible implementation, the mobility management network element 120 in the above-mentioned system architecture 100 is specifically used to: receive a first request message and a second indication information, wherein the first request message is used to request to establish a first session for a terminal, and the second indication information is used to indicate that the first session is established as a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; determine whether at least one of the following conditions is met: the mobility management network element supports the permanent online session; and the mobility management network element can select the session management network element that supports the permanent online session; and if at least one of the conditions is met, send the first request message and the second indication information to the session management network element.

[0093] Therefore, in the above system architecture 100, the establishment process of the permanent online session is flexibly managed by the session management network element, which is conducive to avoiding unnecessary consumption of network resources, thereby improving system performance.

[0094] Optionally, the session management network element 110 and the mobility management network element 120 in the above system architecture 100 may be implemented by one device, or by multiple devices, or may be a functional module in one device, which is not specifically limited in the embodiments of the present application. It is understandable that the above functions may be network elements in hardware devices, software functions running on dedicated hardware, or virtualized functions instantiated on a platform (e.g., a cloud platform).

[0095] Optionally, the system architecture 100 may further include a terminal.

[0096] In a possible implementation, the terminal is specifically used to: send a first request message to a session management network element, where the first request message is used to request establishment of a first session for the terminal; receive a first response message, where the first response message is used to indicate that the session management network element accepts establishment of the first session, and the first response message carries first indication information, where the first indication information is used to indicate that the first session is a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state.

[0097] In another possible implementation, the terminal is specifically used to: send a first request message and a second indication information to a session management network element, wherein the first request message is used to request to establish a first session for the terminal, and the second indication information is used to indicate that the first session is established as a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; receive a first response message, the first response message carries third indication information, and the third indication information is used to instruct the session management network element to refuse to establish the first session as a permanent online session.

[0098] It should be understood that the terminal in the embodiments of the present application may refer to user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device. The terminal may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved Public Land Mobile Network (PLMN), etc., and the embodiments of the present application are not limited to this.

[0099] Figure 2 This is an application scenario 200 of an embodiment of the present application. Figure 2 As shown, the application scenario 200 may specifically include the following network elements:

[0100] 1. Session Management Function (SMF) network element: mainly used for session management, allocation and management of Internet Protocol (IP) addresses of terminal devices, selection of endpoints for manageable user plane functions, policy control, or charging function interfaces, and downlink data notification.

[0101] 2. Access and mobility management function (AMF) network element: It is mainly used for mobility management and access management, etc. It can be used to implement other functions of the mobility management entity (MME) except session management, such as lawful monitoring or access authorization (or authentication).

[0102] It should be understood that in the above system architecture 100, the session management network element 110 may specifically correspond to Figure 2 The SMF network element in the mobility management network element 120 may specifically correspond to Figure 2 AMF network element in.

[0103] Optionally, the application scenario 200 may further include:

[0104] 3. Terminal.

[0105] 4. (Radio) Access Network (R)AN) network element: used to provide network access for authorized users in a specific area, and can use transmission tunnels of different qualities according to the user level and business requirements. (R)AN network elements can manage wireless resources, provide access services for terminal devices, and then complete the forwarding of control signals and user data between the terminal and the core network. (R)AN network elements can also be understood as base stations in traditional networks.

[0106] 5. User Plane Function (UPF) network element: used for packet routing and forwarding, or quality of service (QoS) processing of user plane data, etc.

[0107] 6. Data Network (DN) network element: a network used to provide data transmission, such as the Internet network.

[0108] 7. Authentication Server Function (AUSF) network element: mainly used for user authentication, etc.

[0109] 8. Network Exposure Function (NEF) network element: used to securely open the services and capabilities provided by 3GPP network functions to the outside world.

[0110] 9. Network Repository Function (NRF) network element: used to store description information of network function entities and the services they provide, and to support service discovery, network element entity discovery, etc.

[0111] 10. Policy Control Function (PCF) network element: A unified policy framework used to guide network behavior and provide policy rule information to control plane functional network elements (such as AMF, SMF network elements, etc.).

[0112] 11. Unified Data Management (UDM) network element: used to process user identification, access authentication, registration, or mobility management, etc.

[0113] 12. Application Function (AF) NE: used for data routing affected by applications, accessing network open function NEs, or interacting with the policy framework for policy control.

[0114] In the application scenario 200, the N1 interface is the reference point between the terminal and the AMF; the N2 interface is the reference point between the (R)AN network element and the AMF network element, which is used for sending non-access stratum (NAS) messages, etc.; the N3 interface is the reference point between the (R)AN network element and the UPF network element, which is used for transmitting user plane data, etc.; the N4 interface is the reference point between the SMF network element and the UPF network element, which is used for transmitting information such as tunnel identification information of the N3 connection, data cache indication information, and downlink data notification messages; the N6 interface is the reference point between the UPF network element and the DN network element, which is used for transmitting user plane data, etc.

[0115] It should be understood that the above-mentioned application scenario 200 applied to the embodiment of the present application is only an example of the network architecture described from the perspective of the service-oriented architecture, and the network architecture applicable to the embodiment of the present application is not limited to this. Any network architecture that can realize the functions of the above-mentioned network elements is applicable to the embodiment of the present application.

[0116] It should be noted that Figure 2 The interface name between the various network elements is only an example. The name of the interface in a specific implementation may be other names, and the embodiments of the present application do not specifically limit this.

[0117] It should be noted that Figure 2 The names of the various network elements (such as SMF, AF, UPF, etc.) included in are only examples and do not limit the functions of the network elements themselves. In 5G networks and other future networks, the above-mentioned network elements may also have other names, and the embodiments of the present application do not specifically limit this. For example, in a 6G network, some or all of the above-mentioned network elements may use the terminology in 5G, or may use other names, etc., which are uniformly explained here and will not be repeated below. In addition, it should be understood that the name of the message (or signaling) transmitted between the above-mentioned network elements is only an example and does not constitute any limitation on the function of the message itself.

[0118] Figure 1 and Figure 2 The specific working process and beneficial effects of the network elements in the system can be found in the description of the method embodiment below.

[0119] Figure 3 A schematic flow chart of a session management method 300 according to an embodiment of the present application is shown. The method 300 can be applied to Figure 1 The system architecture 100 shown can also be applied to Figure 2 The application scenario 200 is shown, but the embodiments of the present application are not limited thereto.

[0120] S310, the terminal sends a first request message to a session management network element, where the first request message is used to request to establish a first session for the terminal; correspondingly, the session management network element receives the first request message.

[0121] S320, the session management network element determines to establish the first session as a permanent online session, where the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state;

[0122] S330, the session management network element sends a first response message to the terminal, the first response message is used to indicate that the session management network element accepts to establish the first session, the first response message carries first indication information, the first indication information is used to indicate that the first session is a permanent online session; correspondingly, the terminal receives the first response message.

[0123] Specifically, the terminal may send a first request message to the session management network element for requesting to establish a first session, the session management network element receives the first request message and determines to establish the first session as a permanent online session (always-on session), the session management network element sends a first response message to the terminal, the first response message is used to indicate that the session management network element accepts to establish the first session, and the first response message carries first indication information for indicating that the first session is established as a permanent online session. When the terminal receives the first response message sent by the session management network element, it can determine that the first session is allowed to be established and is established as a permanent online session.

[0124] Optionally, after determining that the first session is established as a permanent online session, the session management network element may mark the first session as a permanent online session. Similarly, the terminal may also mark the session as a permanent online session when determining that the first session is established as a permanent online session, which is not limited in the embodiments of the present application.

[0125] The session management method of the embodiment of the present application receives a first request message from a terminal for requesting to establish a session through a session management network element, and determines to establish a permanent online session for the terminal according to actual conditions. This can achieve flexible management of the establishment process of the permanent online session on the network side, which is beneficial to avoid unnecessary consumption of network resources, thereby improving system performance.

[0126] It should be understood that the first session can be specifically a PDU session, the first request message can be specifically a PDU session establishment request message, and the first response message can be specifically a PDU session establishment response message, but it can be understood that the PDU session is only a specific example, but the embodiment of the present application does not limit this. In addition, the signaling interaction between the terminal and the session management network element can be direct or indirect, that is, forwarded through the access network element and the mobility management network element, which is not limited in the embodiment of the present application.

[0127] As an optional embodiment, the session management network element determines to establish the first session as a permanent online session, specifically: the session management network element determines to establish the first session as a permanent online session based on any one of the following information: the contract information of the terminal, the policy information of the terminal, or the local configuration information of the session management network element.

[0128] Specifically, the above-mentioned session management network element may determine, based on the subscription information of the terminal, the policy information of the terminal, or the local configuration information of the session management network element, whether to establish the first session requested by the terminal as a permanent online session. Optionally, the subscription information, the policy information, or the local configuration information may carry indication information for indicating that a permanent online session is allowed to be established for the terminal, and the session management network element may determine, based on the indication information, whether to establish the first session requested by the terminal as a permanent online session.

[0129] It should be understood that the above-mentioned session management network element can use any one of the contract information, policy information, or local configuration information for judgment, or can make a comprehensive judgment based on any two or three of the above three information, which is not limited in this embodiment of the present application.

[0130] In one possible implementation, if the session management network element makes a judgment based only on the contract information, then as long as the contract information indicates that a permanent online session is allowed to be established for the terminal, the session management network element can determine to establish the first session as a permanent online session; if the session management network element makes a judgment based on the contract information and local configuration information, then if both the contract information and the local configuration information indicate that a permanent online session is allowed to be established for the terminal, the session management network element can determine to establish the first session as a permanent online session; similarly, if the session management network element makes a judgment based on the contract information, policy information and local configuration information, then if the contract information, policy information and local configuration information all indicate that a permanent online session is allowed to be established, the session management network element can determine to establish the first session as a permanent online session.

[0131] As an optional embodiment, the session management network element determines to establish the first session as a permanent online session, including: the session management network element determines to establish the first session as a permanent online session based on any one of the following information: data network name DNN, single network slice auxiliary information S-NSSAI, current location information of the terminal, or access type of the terminal; wherein the DNN or the S-NSSAI is carried in the first request message.

[0132] Specifically, the session management network element can determine whether to establish the first session requested by the terminal as a permanent online session based on any one of the DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal. Wherein, the DNN and S-NSSAI are carried in the above-mentioned first request message and sent by the terminal to the session management network element. The current location information of the terminal and the access type of the terminal are obtained by the session management network element from the access network element.

[0133] In a possible implementation, the session management network element may match the DNN carried in the first request message with at least one DNN on the session management network element that allows the establishment of a permanent online session, and if there is a DNN in the at least one DNN that successfully matches the DNN carried in the first request message, the session management network element may determine to establish the first session as a permanent online session. Optionally, the at least one DNN may be stored in the session management network element in the form of a table, a list, etc.

[0134] In another possible implementation, the session management network element may match the S-NSSAI carried in the first request message with at least one S-NSSAI on the session management network element that allows the establishment of a permanent online session. If there is an S-NSSAI in the at least one S-NSSAI that successfully matches the S-NSSAI carried in the first request message, the session management network element may determine to establish the first session as a permanent online session. Optionally, the at least one S-NSSAI may be stored in the session management network element in the form of a table, a list, or the like.

[0135] In another possible implementation, the session management network element may match the acquired current location information of the terminal with at least one location information on the session management network element that allows the establishment of a permanent online session, and if the location information in the at least one location information successfully matches the current location information of the terminal, the session management network element may determine to establish the first session as a permanent online session. Optionally, the at least one location information may be stored in the session management network element in the form of a table, a list, etc.

[0136] In another possible implementation, the session management network element may match the acquired access type of the terminal with at least one access type on the session management network element that allows the establishment of a permanent online session, and if there is an access type in the at least one access type that successfully matches the access type of the terminal, the session management network element may determine to establish the first session as a permanent online session. Optionally, the at least one access type may be stored in the session management network element in the form of a table, a list, etc.

[0137] Optionally, the above-mentioned DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal may also come from the subscription information of the above-mentioned terminal, the policy information of the terminal, or the local configuration information of the session management network element, which is not limited in the embodiment of the present application.

[0138] It should be understood that the above-mentioned session management network element may use any one of DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal for judgment, or may combine any multiple information of the above four for comprehensive judgment, and the embodiment of the present application does not limit this. In a possible implementation, if the session management network element selects multiple information for judgment, then the session management network element determines to establish the first session as a permanent online session only when the multiple information successfully matches the corresponding information allowing the establishment of a permanent session.

[0139] As an optional embodiment, the local configuration information includes any one of the following information: the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the session management network element. Accordingly, the session management network element determines to establish the first session as a permanent online session, including: when the number of permanent online sessions already held by the terminal is less than the maximum number of permanent online sessions supported by the terminal, the session management network element determines to establish the first session as a permanent online session; or, when the number of permanent online sessions already held by the session management network element is less than the maximum number of permanent online sessions supported by the session management network element, the session management network element determines to establish the first session as a permanent online session.

[0140] Specifically, the local configuration information may include the maximum number of permanent online sessions supported by the terminal. The session management network element may compare the number of permanent online sessions already held by the terminal with the maximum number of permanent online sessions supported by the terminal. If the number of permanent online sessions already held by the terminal is less than the maximum number of permanent online sessions supported by the terminal, the session management network element may determine to establish the first session as a permanent online session.

[0141] The local configuration information may include the maximum number of permanent online sessions supported by the session management network element. The session management network element may compare the number of permanent online sessions already in the session management network element with the maximum number of permanent online sessions supported by the session management network element. If the number of permanent online sessions already in the session management network element is less than the maximum number of permanent online sessions supported by the session management network element, the session management network element may determine to establish the first session as a permanent online session.

[0142] Similarly, if the session management network element judges both of the above two conditions, then when both of the above two conditions are met, the session management network element may determine to establish the first session as a permanent online session.

[0143] Optionally, the above-mentioned local configuration information may include both DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal, and the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the session management network element. In this case, the session management network element may first determine whether the permanent online session of the terminal or the session management network element is less than the maximum number of permanent online sessions supported by the terminal or the session management network element. If the permanent online session of the terminal or the session management network element is less than the maximum number of permanent online sessions supported by the terminal or the session management network element, the session management network element may then determine whether to refuse to establish the first session as a permanent online session.

[0144] As an optional embodiment, the method further includes: the terminal sending second indication information to the session management network element, the second indication information being used to indicate that the first session is established as a permanent online session; then correspondingly, the session management network element receives the second indication information.

[0145] Specifically, the terminal may also send second indication information to the session management network element for indicating that the requested first session is established as a permanent online session. The second indication information may be carried in the first request message, or may be separated from the first request message and sent to the session management network element as two independent messages, which is not limited in the embodiment of the present application.

[0146] Optionally, the above-mentioned session management network element can determine to establish the first session as a permanent online session only when the above-mentioned second indication information is detected. If the above-mentioned second indication information is not detected, it will still be processed according to the existing normal session establishment process, but the embodiment of the present application is not limited to this.

[0147] Generally, the terminal will encapsulate the first request message in an uplink transmission message and send it, for example, an uplink non-access stratum (NAS) transmission message. For the above two different situations, the network side can adopt different processing methods, which are described in detail below.

[0148] Case 1: If the second indication information is carried in the first request message, the mobility management network element receives the uplink transmission message of the terminal and cannot recognize the second indication information in the first request message. Therefore, the mobility management network element forwards the uplink transmission message, and the session management network element decapsulates the uplink transmission message to obtain other information and the second indication information in the first request message.

[0149] Case 2: If the second indication information and the first request message are two independent messages, and the terminal encapsulates the second indication information and the first request message together in an uplink transmission message, then the mobility management network element receives the uplink transmission message of the terminal and can obtain the second indication information therefrom. When the mobility management network element determines that the terminal requests to establish a permanent online session based on the second indication information, the method further includes: the mobility management network element determines whether at least one of the following conditions is met: the mobility management network element supports permanent online sessions, and the mobility management network element can select a session management network element that supports permanent online sessions. When at least one of the conditions is met, the mobility management network element sends the first request message and the second indication information to the session management network element.

[0150] It should be understood that for situation 2, the mobility management network element may choose one of the above two conditions for judgment, or both of them. When both judgment conditions are met, the mobility management network element allows the first session to be established as a permanent online session, and continues to forward the above first request message and the second indication information to the session management network element. If there are unsatisfied conditions, the mobility management network element may refuse to establish the first session as a permanent online session. In this case, the mobility management network element may refuse to establish the first session, send a response message indicating the refusal to establish the first session to the terminal, and interrupt the session establishment process. The response message may carry a reason value, and the reason value is used to indicate that the reason for refusing to establish the first session is that the mobility management network element refuses to establish the first session as a permanent online session. The mobility management network element may also establish the first session as a normal session, and only send the above first request message to the session management network element, but not send the above second indication information.

[0151] As an optional embodiment, after the session management network element sends a first response message to the terminal, the method also includes: the session management network element determines to update the session attributes of the first session, and the session attributes are used to indicate that the first session is a permanent online session; the session management network element sends a notification message to the terminal, and the notification message is used to notify that the session attributes of the first session have been updated to a non-permanent online session; then, correspondingly, the terminal receives the notification message.

[0152] Specifically, after the session management network element establishes the first session as a permanent online session, the session management network element may also update the session attribute of the first session, that is, update the session attribute of the first session from a permanent online session to a non-permanent online session. Optionally, the session management network element may delete a mark used to identify the first session as a permanent online session. The session management network element sends a notification message to the terminal to notify that the session attribute of the first session has been updated to a non-permanent online session. The terminal receives the notification message, thereby determining that the first session has been updated to a non-permanent online session. Optionally, the terminal may delete the mark used to identify the first session as a permanent online session.

[0153] The session management method of the embodiment of the present application can flexibly use network resources by updating the session attributes of existing sessions, especially when the contract information, policy information, or local configuration information changes, and flexibly adjust the session attributes of existing sessions, which is beneficial to improving the resource utilization of the system and thus improving the system performance.

[0154] Figure 4 A schematic flow chart of a session management method 400 according to an embodiment of the present application is shown. The method 400 can be applied to Figure 1 The system architecture 100 shown can also be applied to Figure 2 The application scenario 200 is shown, but the embodiments of the present application are not limited thereto.

[0155] S410, the terminal sends a first request message and a second indication information to a session management network element, where the first request message is used to request to establish a first session for the terminal, and the second indication information is used to indicate that the first session is established as a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; correspondingly, the session management network element receives the first request message and the second indication information.

[0156] S420, the session management network element determines to refuse to establish the first session as a permanent online session;

[0157] S430, the session management network element sends a first response message to the terminal, wherein the first response message carries third indication information, and the third indication information is used to instruct the session management network element to refuse to establish the first session as the permanent online session; correspondingly, the terminal receives the first response message.

[0158] Specifically, the terminal may send a first request message for requesting to establish a first session and second indication information for indicating that the first session is established as a permanent online session (always-on session) to the session management network element. The session management network element receives the first request message and the second indication information, and the session management network element makes a judgment to determine that the first session is rejected to be established as a permanent online session, and sends a first response message to the terminal to indicate that the session management network element rejects to establish the first session, and the first response message carries a reason value for indicating that the session management network element rejects to establish the first session, that is, it indicates that the session management network element rejects to establish the first session as the permanent online session. When the terminal receives the first response message sent by the session management network element, it can determine that the first session is not allowed to be established as a permanent online session.

[0159] The session management method of the embodiment of the present application receives, through the session management network element, a first request message from the terminal for requesting to establish a session and second indication information for indicating that the session is to be established as a permanent online session, and determines to refuse to establish a permanent online session for the terminal according to actual conditions. This can achieve flexible management of the establishment process of the permanent online session on the network side, which is beneficial to avoid unnecessary consumption of network resources, thereby improving system performance.

[0160] It should be understood that the first session may be a PDU session, the first request message may be a PDU session establishment request message, and the first response message may be a PDU session establishment response message, but the embodiment of the present application does not limit this. In addition, the signaling interaction between the terminal and the session management network element may be direct or indirect, that is, forwarded by the access network element and the mobility management network element, which is not limited in the embodiment of the present application.

[0161] As an optional embodiment, the first response message is used to indicate that the session management network element refuses to establish the first session, and the third indication information is used to indicate that the reason why the session management network element refuses to establish the first session is the refusal to establish the first session; or, the first response message is used to indicate that the session management network element accepts to establish the first session, but does not accept to establish the first session as a permanent online session.

[0162] Specifically, the session management network element may refuse to establish the first session, or may allow the first session to be established, but refuse to establish the first session as a permanent online session, that is, to establish the first session as a common session. Therefore, the first response message may indicate that the session management network element refuses to establish the first session, or may indicate that the session management network element allows the first session to be established, but does not accept the first session to be established as a permanent online session.

[0163] As an optional embodiment, the session management network element determines to refuse to establish the first session as a permanent online session, including: the session management network element determines to refuse to establish the first session as a permanent online session based on any one of the following information: the contract information of the terminal, the policy information of the terminal, or the local configuration information of the session management network element.

[0164] Specifically, the above-mentioned session management network element may determine to refuse to establish the first session requested by the terminal as a permanent online session based on the terminal's subscription information, the terminal's policy information, or the local configuration information of the session management network element. Optionally, the subscription information, the policy information, or the local configuration information may carry indication information for indicating permission (or refusal) to establish a permanent online session for the terminal, and the session management network element may determine to refuse to establish the first session requested by the terminal as a permanent online session based on the indication information.

[0165] It should be understood that the above-mentioned session management network element can use any one of the contract information, policy information, or local configuration information for judgment, or can make a comprehensive judgment based on any two or three of the above three information, which is not limited in this embodiment of the present application.

[0166] In one possible implementation, if the session management network element makes a judgment based only on the contract information, then as long as the contract information indicates a refusal to establish a permanent online session for the terminal, the session management network element can determine to refuse to establish the first session as a permanent online session; if the session management network element makes a judgment based on the contract information and local configuration information, then as long as there is one piece of information in the contract information and the local configuration information indicating a refusal to establish a permanent online session for the terminal, the session management network element can determine to refuse to establish the first session as a permanent online session; similarly, if the session management network element makes a judgment based on the contract information, policy information and local configuration information, then as long as there is one piece of information in the contract information, policy information and local configuration information indicating a refusal to establish a permanent online session, the session management network element determines to refuse to establish the first session as a permanent online session.

[0167] As an optional embodiment, the session management network element determines to refuse to establish the first session as a permanent online session, including: the session management network element determines to refuse to establish the first session as a permanent online session based on any one of the following information: DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal; wherein the DNN or the S-NSSAI is carried in the first request message.

[0168] Specifically, the session management network element may determine to refuse to establish the first session requested by the terminal as a permanent online session based on any one of the DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal. Among them, the DNN and S-NSSAI are carried in the above-mentioned first request message and sent by the terminal to the session management network element. The current location information of the terminal and the access type of the terminal are obtained by the session management network element from the access network element.

[0169] In a possible implementation, the session management network element may match the DNN carried in the first request message with at least one DNN on the session management network element that is allowed to establish a permanent online session. If there is no DNN in the at least one DNN that successfully matches the DNN carried in the first request message, the session management network element may determine to refuse to establish the first session as a permanent online session. Optionally, the at least one DNN may be stored in the session management network element in the form of a table, a list, etc.

[0170] In another possible implementation, the session management network element may match the S-NSSAI carried in the first request message with at least one S-NSSAI on the session management network element that allows the establishment of a permanent online session. If there is no S-NSSAI in the at least one S-NSSAI that successfully matches the S-NSSAI carried in the first request message, the session management network element may determine to refuse to establish the first session as a permanent online session. Optionally, the at least one S-NSSAI may be stored in the session management network element in the form of a table, a list, etc.

[0171] In another possible implementation, the session management network element may match the acquired current location information of the terminal with at least one location information on the session management network element that allows the establishment of a permanent online session, and if there is no location information in the at least one location information that successfully matches the current location information of the terminal, the session management network element may determine to refuse to establish the first session as a permanent online session. Optionally, the at least one location information may be stored in the session management network element in the form of a table, a list, etc.

[0172] In another possible implementation, the session management network element may match the acquired access type of the terminal with at least one access type on the session management network element that allows the establishment of a permanent online session, and if no access type in the at least one access type successfully matches the access type of the terminal, the session management network element may determine to refuse to establish the first session as a permanent online session. Optionally, the at least one access type may be stored in the session management network element in the form of a table, a list, etc.

[0173] Optionally, the above-mentioned DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal may also come from the subscription information of the above-mentioned terminal, the policy information of the terminal, or the local configuration information of the session management network element, which is not limited in the embodiment of the present application.

[0174] It should be understood that the above-mentioned session management network element may use any one of DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal for judgment, or may combine any multiple information of the above four for comprehensive judgment, and the embodiment of the present application does not limit this. In a possible implementation, if the session management network element selects multiple information for judgment, as long as there is one information in the multiple information that fails to match the corresponding information allowing the establishment of a permanent session, the session management network element determines to refuse to establish the first session as a permanent online session.

[0175] As an optional embodiment, the local configuration information includes any one of the following information: the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the session management network element; the session management network element determines to refuse to establish the first session as a permanent online session, including: when the number of permanent online sessions already owned by the terminal is greater than or equal to the maximum number of permanent online sessions supported by the terminal, the session management network element determines to refuse to establish the first session as a permanent online session; or, when the number of permanent online sessions already owned by the session management network element is greater than or equal to the maximum number of permanent online sessions supported by the session management network element, the session management network element determines to refuse to establish the first session as a permanent online session.

[0176] Specifically, the local configuration information may include the maximum number of permanent online sessions supported by the terminal. The session management network element may compare the number of permanent online sessions already held by the terminal with the maximum number of permanent online sessions supported by the terminal. If the number of permanent online sessions already held by the terminal is greater than or equal to the maximum number of permanent online sessions supported by the terminal, the session management network element may determine to refuse to establish the first session as a permanent online session.

[0177] The local configuration information may include the maximum number of permanent online sessions supported by the session management network element. The session management network element may compare the number of permanent online sessions already in the session management network element with the maximum number of permanent online sessions supported by the session management network element. If the number of permanent online sessions already in the session management network element is greater than or equal to the maximum number of permanent online sessions supported by the session management network element, the session management network element may determine to refuse to establish the first session as a permanent online session.

[0178] Similarly, if the session management network element judges both of the above two conditions, the session management network element may determine to refuse to establish the first session as a permanent online session as long as one of the above two conditions is not satisfied.

[0179] Optionally, the above-mentioned local configuration information may include both DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal, and the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the session management network element. In this case, the session management network element may first determine whether the permanent online session of the terminal or the session management network element is less than the maximum number of permanent online sessions supported by the terminal or the session management network element. If the permanent online session of the terminal or the session management network element is less than the maximum number of permanent online sessions supported by the terminal or the session management network element, the session management network element may then combine the DNN, S-NSSAI, the current location information of the terminal, or the access type of the terminal to make a judgment. If the permanent online session of the terminal or the session management network element is not less than the maximum number of permanent online sessions supported by the terminal or the session management network element, the session management network element may determine to refuse to establish the first session as a permanent online session.

[0180] As an optional embodiment, after the session management network element sends a first response message to the terminal, the method also includes: the session management network element determines to update the session attributes of the first session, and the session attributes are used to indicate that the first session is a non-permanent online session; the session management network element sends a notification message to the terminal, and the notification message is used to notify that the session attributes of the first session have been updated to a permanent online session; then, correspondingly, the terminal receives the notification message.

[0181] Specifically, after the session management network element establishes the first session and establishes the first session as a common session, the session management network element may also update the session attribute of the first session, that is, update the session attribute of the first session from a non-permanent online session to a permanent online session. Optionally, the session management network element may add a mark for identifying the first session as a permanent online session to the first session. The session management network element sends a notification message to the terminal to notify that the session attribute of the first session has been updated to a permanent online session. The terminal receives the notification message, thereby determining that the first session has been updated to a permanent online session. Optionally, the terminal may add a mark for identifying the first session as a permanent online session to the first session.

[0182] The session management method of the embodiment of the present application can flexibly use network resources by updating the session attributes of existing sessions, especially when the contract information, policy information, or local configuration information changes, and flexibly adjust the session attributes of existing sessions, which is beneficial to improving the resource utilization of the system and thus improving the system performance.

[0183] The specific embodiments of the above method can be found in Figures 5 to 7 And the corresponding text description will not be repeated here.

[0184] The present application also provides another session management method, including: a mobility management network element determines permanent online session setting information according to any one of the following information: subscription information of a terminal, policy information of the terminal, or local configuration information of the mobility management network element; the mobility management network element sends the permanent online session setting information to the terminal; correspondingly, the terminal receives the permanent online session setting information from the mobility management network element; the terminal sets an established first session as a permanent online session according to the permanent online session setting information, wherein the permanent online session is a session for activating user plane resources when the terminal changes from an idle state to a connected state.

[0185] Specifically, the mobility management network element can determine the permanent online session setting information of the terminal based on the terminal's subscription information, the terminal's policy information, or any one of the local configuration information of the mobility management network element, and the permanent online session setting information is used to indicate relevant information allowing the terminal to set a permanent online session. Then, the mobility management network element sends the permanent online session setting information to the terminal, and the terminal can set the established first session as a permanent online session based on the permanent online session setting information.

[0186] In the embodiment of the present application, the terminal does not determine which sessions can be set as permanent online sessions according to the request provided by the upper layer of the terminal, but determines which sessions can be set as permanent online sessions according to the permanent online session setting information sent by the mobility management network element. The permanent online session setting information can be carried by the mobility management network element in the registration process or the configuration update process and sent to the terminal, but the embodiment of the present application is not limited to this.

[0187] Therefore, the session management method of the embodiment of the present application enables the mobility management network element to inform the terminal of the permanent online session setting information that allows the terminal to initiate a permanent online session. The terminal can decide whether to set the existing session as a permanent online session based on the permanent online session setting information, and can further strengthen the control over the initiation of the permanent online session on the terminal side, effectively preventing the waste of network resources.

[0188] It should be understood that the above-mentioned mobility management network element can also combine the terminal's subscription information, the terminal's policy information, or any two or three of the local configuration information of the mobility management network element to comprehensively determine the permanent online session setting information of the terminal, and the embodiments of the present application are not limited to this. Specifically, the above-mentioned subscription information, policy information, or local configuration information may include single network slice auxiliary information S-NSSAI that allows the terminal to set a permanent online session, the current location information of the terminal, or the access type of the terminal. The mobility management network element can analyze the above-mentioned subscription information, policy information, or local configuration information to obtain the DNN information, S-NSSAI information, the location of the terminal, the access type of the terminal, or the service type requested by the terminal that allow the establishment of a permanent online session, and determine the information that allows the terminal to establish a permanent online session as the permanent online session setting information, and send it to the terminal.

[0189] As an optional embodiment, the terminal receives the permanent online session setting information from the mobility management network element, specifically including:

[0190] The terminal sends a second request message to the mobility management network element, where the second request message is used to request registration in the mobility management network element; then correspondingly, the mobility management network element receives the second request message from the terminal; the mobility management network element sends the permanent online session setting information to the terminal, specifically: the mobility management network element sends a second response message to the terminal, where the second response message is used to indicate that the mobility management network element accepts the registration of the terminal, and the second response message carries the permanent online session setting information, then correspondingly, the terminal receives the second response message; or,

[0191] The mobility management network element sends a configuration update command to the terminal, wherein the configuration update command carries the permanent online session setting information, and correspondingly, the terminal receives the configuration update command from the mobility management network element; or,

[0192] The mobility management network element sends policy information to the terminal, wherein the policy information carries the permanent online session setting information, and correspondingly, the terminal receives the policy information from the mobility management network element.

[0193] Specifically, the permanent online session setting information may be sent by the mobility management network element to the terminal in a second response message of a registration process, a configuration update command in a configuration update process, or policy information from a policy control function network element.

[0194] It should be understood that the registration process is initiated by the terminal, while the configuration update process is initiated by the mobility management network element, not the terminal. The configuration update process is initiated by the mobility management network element after the terminal completes registration, and is used to send permanent online session establishment information to the terminal.

[0195] As an optional embodiment, the second request message carries capability indication information of the terminal, and the capability indication information is used to indicate the ability of the terminal to support permanent online sessions. The mobility management network element determines the permanent online session setting information, specifically: when the capability indication information indicates that the terminal supports permanent online sessions, the mobility management network element determines the permanent online session setting information based on any one of the following information: the terminal's subscription information, the terminal's policy information, or the local configuration information of the mobility management network element.

[0196] Specifically, the terminal may send its own capability indication information of supporting permanent online sessions to the mobility management network element in the second request message (also referred to as the registration request message) in initiating the registration process, and the mobility management network element may determine the above-mentioned permanent online session setting information according to the capability indication information, if the terminal supports permanent online sessions, and send the permanent online session setting information to the terminal. Optionally, the mobility management network element may save the capability indication information.

[0197] As an optional embodiment, the terminal sets the established first session as a permanent online session according to the permanent online session setting information, including: the terminal determines that the established first session meets the permanent online session setting information, and then sets the established first session as a permanent online session.

[0198] Specifically, the session established on the terminal may be only the first session, or there may be other sessions in addition to the first session, which is not limited in the embodiment of the present application. In other words, the terminal may set all established sessions as permanent online sessions or only some of them as permanent online sessions according to the above permanent online session setting information and the established sessions.

[0199] It should be understood that the specific method for the terminal to set the first session as a permanent online session may be: after receiving the permanent online session setting information sent by the mobility management network element, the terminal locally sets the first session that has been established as a permanent online session according to the permanent online session setting information, for example, adding a permanent online session tag (or a permanent online session flag, etc.) to the context of the first session that needs to be set as a permanent online session. Optionally, the terminal may also save the permanent online session setting information.

[0200] As an optional embodiment, the permanent online session setting information is any one of the following: DNN information allowing establishment of a permanent online session, S-NSSAI information allowing establishment of a permanent online session, the location of the terminal allowing establishment of a permanent online session, the access type of the terminal allowing establishment of a permanent online session, or the service type requested by the terminal allowing establishment of a permanent online session.

[0201] Specifically, taking DNN as an example, if the terminal has an established first session to DNN 1, and the permanent online session establishment information sent by the mobility management network element includes DNN 1, the terminal will directly add a permanent online session label to all first sessions established to DNN 1 locally, and other information is similar.

[0202] The specific embodiments of the above method can be found in Figures 8 to 10 And the corresponding text description will not be repeated here.

[0203] For ease of understanding, the following example takes the session management network element as SMF, the mobility management network element as AMF, and the terminal as UE. Figures 5 to 10 The embodiments of the present application are described in detail.

[0204] Figure 5 A schematic flow chart of a session management method 500 according to an embodiment of the present application is shown. The method 500 can be applied to Figure 1 The system architecture 100 shown can also be applied to Figure 2 The application scenario 200 is shown, but the embodiments of the present application are not limited thereto.

[0205] In S501, the UE sends a PDU session establishment request to the AMF through the (R)AN, where the PDU session establishment request is used to request establishment of a first session; correspondingly, the AMF receives the PDU session establishment request.

[0206] After the UE successfully registers with the network, it can determine the need to establish a new PDU session (i.e., the first session mentioned above) to transmit uplink and downlink data based on the request of the upper layers. At this time, the UE initiates the PDU session establishment process to the network side. Specifically, the UE sends a PDU session establishment request message to the AMF, and the UE encapsulates the PDU session establishment request message in an uplink NAS transmission (UL NAS T(R)ANSPORT) message and sends it to the AMF.

[0207] Optionally, if the UE determines that the newly established PDU session is an Always-on PDU session according to the request of the upper layer, the UE may carry always-on indication information (corresponding to the second indication information in the above embodiment) in the PDU session establishment request message to indicate that the PDU session requested to be established is an always-on PDU session. The UE may carry the always-on indication information in the uplink NAS transmission message.

[0208] It should be noted that the always-on indication information carried in the PDU session establishment request message and / or the uplink NAS transmission message can adopt a newly defined information element (IE) or reuse unused bits in an existing IE (for example, the request type request type IE in the uplink NAS transmission message, or the PDU session type PDU session type IE or 5G session management (5G Session Management, 5GSM) capability IE in the PDU session establishment request message). This application does not limit the specific form of the above-mentioned always-on indication information.

[0209] Optionally, if the above-mentioned uplink NAS transmission message carries always-on indication information, execute S502; if the above-mentioned uplink NAS transmission message does not carry always-on indication information, in other words, the always-on indication information is carried in the PDU session establishment request message, the AMF does not perform any processing and executes S503.

[0210] In S502, if the uplink NAS transmission message received by the AMF carries Always-on indication information, the AMF performs at least one of the following checks: whether the AMF supports always-on PDU sessions; or whether an SMF that supports always-on PDU sessions can be selected.

[0211] If all checked conditions are met, the AMF selects a suitable SMF and continues to execute S503. If one of the checked conditions is not met, the AMF can continue to execute S503, but does not carry the always-on indication information in the message sent to the SMF, or the AMF can terminate the PDU session establishment process and does not send the entire PDU session establishment request message to the SMF, that is, the AMF sends the entire PDU session establishment request message back to the UE via the downlink NAS transport (DL NAS T(R)ANSPORT) message and carries the cause value. If the AMF adopts this process, the following steps will not be executed.

[0212] In S503, AMF calls the Create PDU Session Context Request (Nsmf_PDUSession_CreateSMContext Request) service operation provided by SMF to request SMF to create the first session for the UE. In this service operation, the PDU session establishment request message received from the UE is sent to SMF. If the check in step S502 is passed, the service operation also carries always-on indication information.

[0213] Optionally, in this step, AMF may also call the update PDU session context request (Nsmf_PDUSession_UpdateSMContext Request) service operation provided by SMF. Other specific operations are similar and are not limited to this in the embodiments of the present application.

[0214] It should be understood that if the always-on indication information is carried in the PDU session establishment request message, the AMF does not perform any processing, and encapsulates the PDU session establishment request message in the above-mentioned create PDU session context request and sends it to the SMF.

[0215] In S504, the SMF receives the service operation sent by the AMF and determines that it carries a PDU session establishment request message. If the service operation carries always-on indication information, or the PDU session establishment request message carried in the service operation carries always-on indication information, the SMF performs at least one of the following checks:

[0216] 1) Determine whether to allow the requested first session to be established as an always-on session based on the subscription information of the UE obtained from the UDM. Specifically, the SMF determines whether to allow the requested first session to be established as an always-on session based on the indication information of allowing the UE to establish an always-on PDU session contained in the subscription information of the UE obtained.

[0217] 2) Determine whether to allow the requested first session to be established as an always-on session based on the policy information of the UE obtained from the PCF. Specifically, the SMF determines whether to allow the requested first session to be established as an always-on session based on the indication information of allowing the UE to establish an always-on PDU session included in the obtained policy information of the UE.

[0218] 3) Determine whether to allow the requested first session to be established as an always-on session according to the local configuration information of the SMF. Specifically, the SMF determines whether to allow the requested first session to be established as an always-on session according to the indication information that the local configuration information of the SMF obtained contains that allows the UE to establish an always-on PDU session.

[0219] Optionally, the local configuration information of the SMF may also include at least one of the maximum number of PDU sessions that the UE can support, the maximum number of always-on PDU sessions that the UE can support, the maximum number of PDU sessions that the SMF can support, and the maximum number of always-on PDU sessions that the SMF can support.

[0220] In one possible implementation, if the number of PDU sessions currently corresponding to the UE does not exceed the maximum number of PDU sessions that the UE can support, or the number of always-on PDU sessions currently corresponding to the UE does not exceed the maximum number of always-on PDU sessions that the UE can support, or if the number of PDU sessions currently corresponding to the SMF does not exceed the maximum number of PDU sessions that the SMF can support, or the number of always-on PDU sessions currently corresponding to the SMF does not exceed the maximum number of always-on PDU sessions that the SMF can support, then the SMF decides to allow the requested first session to be established as an always-on session.

[0221] Optionally, the SMF can also make a comprehensive judgment based on DNN, S-NSSAI, the current location information of the UE or the access type (accesstype) of the UE. For example, if the above-mentioned contract information, policy information or local configuration information includes the DNN and / or S-NSSAI requested by the UE, or if the above-mentioned contract information, policy information or local configuration information includes the current location information of the UE, or if the above-mentioned contract information, policy information or local configuration information includes the current access type of the UE, the SMF decides to allow the requested first session to be established as an always-on session.

[0222] If the result of the above check is that the SMF allows the requested first session to be established as an always-on session, the PDU session establishment process will continue to be executed. Optionally, the SMF can mark the first session as an always-on PDU session. Otherwise, the SMF continues to execute the PDU session establishment process, but does not mark the first session as an always-on PDU session, or the SMF refuses to establish the first session and interrupts the PDU session establishment process.

[0223] In S505, SMF sends a create PDU session context response service operation to AMF, or sends an update PDU session context response service operation to AMF.

[0224] Optionally, in S506, a secondary authorization / authentication of the PDU session is performed. It should be understood that if the request type (Request Type) of the first session indicates that the first session is an "existing PDU session (Existing PDU Session)", "Emergency Request (Emergency Request)" or "existing emergency PDU session (Existing Emergency PDUSession)", the SMF does not perform secondary authorization / authentication.

[0225] In S507a, if dynamic policy and charging control (PCC) is deployed, the SMF performs the selection of the PCF. If the request type indicates "existing PDU session" or "existing emergency PDU session", the SMF should use the PCF already selected for the PDU session. If no PCC is deployed, the SMF may apply local policy.

[0226] In S507b, the SMF may execute a session management policy establishment process, which is used to establish a PDU session with the PCF and obtain the default PCC rule of the PDU session.

[0227] It should be noted that S507a and S507b are steps of choosing one from the other, that is, either S507a or S507b is executed, and S507a and S507b are not executed at the same time.

[0228] In S508, if the above request type indicates "initial request", the SMF needs to select a session and service continuity (SSC) mode for the PDU session, and select one or more UPFs as needed.

[0229] In S509, the SMF may execute a session management policy modification process, which is used to notify the PCF of some events to which it has subscribed.

[0230] In S510, if the request type indicates "initialization request", the SMF initiates the N4 session establishment process to the selected UPF, otherwise, it initiates the N4 session modification process to the selected UPF.

[0231] In S511, SMF calls the N1 / N2 message delivery (Namf_Communication_N1N2MessageT(R)ANsfer) service operation provided by AMF, and sends the N1 session management SM container (N1 SMcontainer) to be sent to the UE and the N2 SM information (N2SM information) to be sent to the (R)AN to AMF.

[0232] Specifically, the N1 SM container includes the response message of the SMF to the PDU session establishment request message, which may specifically include:

[0233] 1) If the SMF allows the requested first session to be established as an always-on session in S504, the N1 SMcontainer includes a PDU session establishment accept message, and the PDU session establishment accept message carries always-on indication information, which is used to indicate that the SMF accepts the request to establish the first session and establishes the first session as an always-on PDU session; or

[0234] 2) If the SMF does not allow the requested first session to be established as an always-on session in S504 and therefore refuses to establish the first session, the N1 SM container includes a PDU session establishment reject message, and the PDU session establishment reject message carries a cause value, indicating that the reason why the SMF refuses to establish the first session is to refuse to establish the first session as an always-on PDU session; or

[0235] 3) If the SMF does not allow the requested first session to be established as an always-on session in S504, but still allows the first session to be established, the N1 SM container includes a PDU session establishment accept message, and the message does not carry the always-on indication information.

[0236] The information included in N2 SM information is as follows:

[0237] 1) If the SMF allows the requested first session to be established as an always-on session in S504, then N2 SMinformation includes always-on indication information, which is used to indicate that the currently established first session is an always-on PDU session; or

[0238] 2) If the SMF does not allow the requested first session to be established as an always-on session in S504, the N2 SMinformation does not include always-on indication information.

[0239] In S512, AMF sends an N2 PDU Session Request message to (R)AN, which is also called a PDU Session Resource Setup Request message. The message includes the N2 SM information received in S511 and the N1SMcontainer to be sent to the UE. If the N2 SM Information in S511 contains the always-on indication information, the (R)AN marks the first session as an always-on PDU session.

[0240] In S513, the (R)AN sends the received N1 SM container to the UE. Specifically, the (R)AN may include the received N1 SM container in an RRC Connection Reconfiguration message and send it to the UE. If the PDU session establishment acceptance message included in the N1 SM container in S511 carries the always-on indication information, the UE marks the PDU session as an always-on PDU session; if the N1 SM container includes a PDU session establishment rejection message, the UE learns, based on the rejection reason value carried, that the reason for the failure of the PDU session establishment is that the network side refuses to establish the always-on PDU session.

[0241] In S514, the (R)AN sends an N2 PDU session response message to the AMF, which includes access network (AN) tunnel information, a list of accepted or rejected quality of service flow identifiers (QFI), etc.

[0242] Optionally, after the above steps, the PDU session establishment process may further include the following steps:

[0243] AMF calls the update PDU session context request service operation provided by SMF, which contains N2 SM information, etc. AMF forwards the received N2 SM information to SMF.

[0244] The N4 session modification process is executed between SMF and UPF, and SMF provides AN tunnel information and corresponding forwarding rules to UPF.

[0245] SMF calls the update PDU session context response service operation provided by SMF. SMF may subscribe to UE mobility events, etc. from AMF in this step.

[0246] After S505, if it is found that the PDU session establishment is unsuccessful, SMF can notify AMF at any time through the PDU session context status notification service operation. At the same time, SMF releases the established N4 session and the associated information with PCF.

[0247] For IPv6, or IP version 4 and version 6 (IPv4v6) scenarios, SMF generates IPv6 routing advertisements and sends them to UPF and UE.

[0248] If a PDU session establishment failure occurs after S504, the SMF will execute the de-subscription process of the session management subscription data modification and initiate the de-registration of the given PDU session to the UDM.

[0249] After the PDU connection establishment process is completed and the UE returns to the idle state, the UE saves the always-on PDU session. When the idle state is changed to the connected state later because of the need to send uplink signaling or uplink data transmission, for the always-on PDU session, the UE always requests the network side to establish the corresponding air interface user plane resources, also known as DRB resources. Specifically, the UE can instruct the network side to establish the corresponding DRB resources by setting the bit position corresponding to the always-on PDU session in the uplink data status (Uplink Data Status) information element in the sent uplink NAS message (for example, setting it to 1). The uplink NAS message may include: a registration request (Registration Request) message or a service request (Service Request) message, but the embodiments of the present application are not limited to this.

[0250] The session management method of the embodiment of the present application receives the session establishment request of the UE through the SMF, and determines to establish a permanent online session for the UE according to the actual situation. It can realize flexible management of the establishment process of the permanent online session on the network side, which is conducive to avoiding unnecessary consumption of network resources, thereby improving system performance.

[0251] In addition, when the UE wishes to establish an always-on PDU session, the network side can decide whether to allow the establishment of an always-on PDU session for the UE based on the subscription information, policy information, or local configuration information, thereby effectively reducing unnecessary consumption of resources. At the same time, the method of the embodiment of the present application maintains the consistent understanding of the always-on feature of the PDU session between the UE and the network side.

[0252] Figure 6 A schematic flow chart of another session management method 600 according to an embodiment of the present application is shown. The method 600 can be applied to Figure 1 The system architecture 100 shown can also be applied to Figure 2 The application scenario 200 is shown, but the embodiments of the present application are not limited thereto.

[0253] In S601a, after the UE has established a PDU session, the UE may initiate a PDU session modification procedure to the network side.

[0254] Specifically, the UE sends a PDU session modification request message to the AMF, and the PDU session modification request message carries indication information for indicating that the PDU session requested by the SMF needs to modify the always-on feature (for the convenience of description, the indication information is referred to as "always-on update indication information"). The UE encapsulates the PDU session establishment request message in an uplink non-access layer NAS transmission (UL NAS TRANSPORT) message and sends it to the AMF. Optionally, the UE can carry the always-on update indication information in the uplink NAS transmission message.

[0255] It should be noted that the always-on update indication information carried in the PDU session establishment request message and / or the uplink NAS transmission message may be a newly defined information element (IE) or may reuse unused bits in an existing IE (for example, the Request type IE in the uplink NAS transmission message, or the 5GSMcapability IE in the PDU session modification request message). The embodiment of the present application does not limit the specific form of the always-on update indication information.

[0256] In S601b, when the AN resources mapped by the QoS flow are released, the (R)AN sends an N2 message to the AMF. The N2 message carries always-on update indication information, indicating that the (R)AN wishes to modify the always-on feature of the PDU session.

[0257] It should be noted that S601a and S601b are steps of choosing one from the other, that is, either S601a or S601b is executed, and S601a and S601b are not executed at the same time.

[0258] In S602, after receiving the uplink NAS transport message or N2 message, the AMF calls the update PDU session context request (Nsmf_PDUSession_UpdateSMContext Request) service operation (service operation) provided by the SMF to request the SMF to modify the PDU session for the UE. In this service operation, the PDU session modification request message received from the UE is sent to the SMF. If the NAS transport message carries the always-on update indication information, the service operation still carries the indication information.

[0259] In S603, the SMF may report the subscribed events to the PCF through the session management policy modification process.

[0260] In S604, the SMF calls the update PDU session context (Nsmf_PDUSession_UpdateSMContext) service operation, in which the N1 SM Container includes the always-on update indication information. Optionally, the N2 SM Information in the Nsmf_PDUSession_UpdateSMContext message may include the always-on update indication information.

[0261] In S605, the AMF sends an N2 PDU Session Request to the (R)AN. If the N2SM Information contains always-on indication information, the (R)AN updates the always-on feature of the PDU session.

[0262] In S606, the UE interacts with the (R)AN, and the (R)AN allocates resources for the PDU session. After receiving the always-on update indication information, the UE updates the always-on feature of the PDU session.

[0263] In S607, the (R)AN responds to the N2 PDU session request of the AMF by sending an N2 PDU session response message, which includes AN tunnel information, etc.

[0264] Optionally, after the above steps, the PDU session update process may further include the following steps:

[0265] AMF forwards the received N2 SM information and the location information received from AN to SMF by calling the Update PDU Session Context Request service operation. SMF replies with an Update PDU Session Context Response to AMF.

[0266] The UE confirms the PDU Session Modification Command via a NAS message.

[0267] (R)AN directly forwards the NAS message to AMF.

[0268] AMF forwards the received N1 SM container and the user location information received from AN to SMF by calling the Update PDU Session Context Request service operation. SMF replies with an Update PDU Session Context Response to AMF.

[0269] The N4 session update process can be executed between SMF and UPF.

[0270] It should be understood that the above-mentioned updating of the always-on characteristic of the PDU session may include updating a non-always-on session to an always-on session, and may also include updating an always-on session to a non-always-on session.

[0271] The session management method of the embodiment of the present application can flexibly use network resources by updating the session attributes of existing sessions, especially when the contract information, policy information or local configuration information changes, and flexibly adjust the session attributes of existing sessions, which is beneficial to improving the resource utilization of the system and thus improving the system performance.

[0272] Figure 7 A schematic flow chart of another session management method 700 according to an embodiment of the present application is shown. The method 700 can be applied to Figure 1 The system architecture 100 shown can also be applied to Figure 2 The application scenario 200 is shown, but the embodiments of the present application are not limited thereto.

[0273] In S701a, the PCF will perform the Session Management Policy Modification process according to the current policy or the request of the Application Function (AF). Specifically, the PCF calls the Session Policy Modification Notification (Npcf_SMPolicyControl_UpdateNotify) service operation to notify the SMF to modify the PDU session for the UE, and the service operation may carry always-on update indication information.

[0274] In S701b, UDM calls the subscription data update notification (Nudm_SDM_Notification) service operation to notify SMF to modify the PDU session for the UE. This service operation may carry always-on update indication information. After receiving it, SMF updates the session management subscription data and returns confirmation information to UDM.

[0275] In S701c, the SMF may decide to modify the always-on feature of the PDU session based on the local configuration, and the SMF starts to execute the PDU session update process.

[0276] It should be noted that S701a, S701b and S701c are three-choice steps, that is, either S701a, S701b or S701c is executed, and S701a, S701b and S701c are not executed at the same time.

[0277] In S702, SMF calls the Namf_Communication_N1N2MessageTransfer service operation provided by AMF, and the N1 SM Container in the service operation includes always-on update indication information. Optionally, the N2 SMInformation in the Namf_Communication_N1N2MessageTransfer service operation may include always-on update indication information.

[0278] In S703, the AMF sends an N2 PDU Session Request to the (R)AN. If the N2SM Information contains always-on indication information, the (R)AN updates the always-on feature of the PDU session.

[0279] In S704, the UE interacts with the (R)AN, and the (R)AN allocates resources for the PDU session. After receiving the always-on update indication information, the UE updates the always-on feature of the PDU session.

[0280] In S705, the (R)AN responds to the N2 PDU session request of the AMF by sending an N2 PDU session response message, which includes AN tunnel information, etc.

[0281] Optionally, after the above steps, the PDU session update process may further include the following steps: AMF forwards the received N2 SM information and the location information received from AN to SMF by calling the update PDU session context request service operation. SMF replies to AMF with an update PDU session context response.

[0282] The UE confirms the PDU Session Modification Command via a NAS message.

[0283] (R)AN directly forwards the NAS message to AMF.

[0284] AMF forwards the received N1 SM container and the user location information received from AN to SMF by calling the Update PDU Session Context Request service operation. SMF replies with an Update PDU Session Context Response to AMF.

[0285] The N4 session update process can be executed between SMF and UPF.

[0286] It should be understood that the above-mentioned updating of the always-on characteristic of the PDU session may include updating a non-always-on session to an always-on session, and may also include updating an always-on session to a non-always-on session.

[0287] The session management method of the embodiment of the present application can flexibly use network resources by updating the session attributes of existing sessions, especially when the contract information, policy information or local configuration information changes, and flexibly adjust the session attributes of existing sessions, which is beneficial to improving the resource utilization of the system and thus improving the system performance.

[0288] Figure 8 A schematic flow chart of another session management method 800 according to an embodiment of the present application is shown. The method 800 can be applied to Figure 1 The system architecture 100 shown can also be applied to Figure 2 The application scenario 200 is shown, but the embodiments of the present application are not limited thereto.

[0289] In S801, the UE sends a registration request message to the (R)AN.

[0290] Specifically, the registration type requested by the registration request message may include: 1) initial registration, i.e., the UE is in an unregistered state (RM-DEREGISTERED state); 2) mobile registration update, i.e., the UE is in a registered state (RM-REGISTERED state), and the registration is initiated by mobile; 3) periodic registration update, i.e., the UE is in the RM-REGISTERED state, and the registration is initiated due to the expiration of the periodic registration update timer. The registration request message may be included in an AN message and forwarded to the (R)AN.

[0291] In S802, if the UE has not been registered, or the registered information provided by the UE is illegal, the (R)AN selects a suitable AMF. Optionally, if the (R)AN cannot select a suitable AMF, the (R)AN may forward the registration request message to a configured default AMF.

[0292] In S803, the (R)AN forwards the registration request message to the AMF via the N2 message.

[0293] If the registration type requested by the registration request message is periodic registration update, skip S804-S817 and execute S818. If the registration type requested by the registration request message is aperiodic registration update, execute S804.

[0294] In S804, if the AMF changes, the new AMF sends a UE context transfer request (Namf_Communication_UEContextTransfer) to the old AMF. That is, the new AMF calls the Namf_Communication_UEContextTransfer service operation on the old AMF to request the UE's subscription permanent identifier (SUPI) and mobility management (MM) context.

[0295] In S805, the old AMF sends a UE context transfer response (Namf_Communication_UEContextTransfer) to the new AMF, which includes the SUPI and MM context.

[0296] Optionally, if there is information about an established PDU session at the old AMF, the UE context transfer response sent by the old AMF to the new AMF may include SMF information, which may specifically include S-NSSAI(s), SMF identifier, or PDU session ID, etc. If there is information about an activated NGAP UE-TNLA binding to N3IWF at the old AMF, the UE context transfer response sent by the old AMF to the new AMF may include NGAP UE-TNLA binding.

[0297] In S806, if the UE does not provide the SUPI and the old AMF does not query the Subscription Concealed Identifier (SUPI), the new AMF sends an identifier request to the UE to request a SUCI.

[0298] In S807, the UE sends an identifier request response to the new AMF, and the identifier request response carries a SUCI. The SUCI may be a SUCI derived by the UE according to the public key allocated by the HPLMN.

[0299] Optionally, in S808, the AMF selects an AUSF based on the SUCI or SUPI, and the AMF may call an AUSF to initiate authentication of the UE. If the AMF is configured with support for unauthenticated SUPI under emergency registration, the AMF may skip authentication and security creation, or, after the AMF receives an authentication failure, continue with the subsequent registration process.

[0300] In S809, the UE authentication / security process is performed by AUSF, the AMF initializes the NAS security function, the RAN stores the security context, and confirms it to the AMF.

[0301] In S810, the new AMF sends a registration completion notification (Namf_Communication_RegistrationCompleteNotify) to the old AMF.

[0302] Specifically, if the AMF changes, that is, from the old AMF to the new AMF, the Namf_Communication_RegistrationCompleteNotify service operation is called after the registration of the UE in the new AMF is completed. If the authentication / security process fails, the registration request of the UE should be rejected, and the new AMF calls the Namf_Communication_RegistrationCompleteNotify service operation and uses a failure code to identify the reason for rejection. The old AMF will continue to work, and the service operation is the same as if the UE context transfer request had not been received.

[0303] In S811, if the UE does not provide a permanent equipment identifier (PEI) and it is not queried from the old AMF, the new AMF initiates an identifier request message to the UE to query the PEI, and the UE returns the PEI through an identifier request response.

[0304] It should be understood that, except for emergency registration scenarios where authentication is not possible, PEI should be transmitted encrypted. For emergency registration scenarios, PEI may have been provided in the registration request, and no further request is required.

[0305] Optionally, in S812, the new AMF invokes the equipment identifier check (N5g-eir_EquipmentIdentityCheck_Get) service operation to initiate a mobile equipment identifier check. For emergency registration scenarios, if PEI is not available, the operator policy determines whether the emergency registration process continues or stops.

[0306] In S813, the new AMF selects a unified data management (UDM) based on SUPI, and then the UDM selects a unified data repository (UDR) instance.

[0307] In S814, if the AMF changes, or the UE provides a SUPI for which a valid context cannot be found in the AMF, or the UE registers to an AMF to which the UE has registered for non-3GPP access, the new AMF registers to the UDM and executes the subscription information query and subscription process.

[0308] Specifically, UDM stores the AMF identifier associated with this access type and does not remove the AMF identifier associated with other access types. UDM may store registration related information in UDR through Nudr_UDM_Update. AMF queries access and mobile subscription data and SMF selects subscription data through Nudm_SDM_Get. AMF subscribes to the modification of the requested data to UDM through Nudm_SDM_Subscribe, and UDM subscribes to the data changes to UDR through Nudr_UDM_Subscribe. The new AMF creates an MM context for the UE after obtaining the mobile subscription data from UDM. For emergency registration scenarios, if the UE cannot be successfully authenticated, the AMF should not register it with the UDM. For emergency registration scenarios, the AMF does not check access restrictions, regional restrictions or subscription restrictions, and ignores the unsuccessful registration response from the UDM to continue the registration process. When UDM stores the relationship between the access type and the serving AMF, UDM will initiate a Nudm_UECM_DeregistrationNotification call to the old AMF corresponding to 3GPP. At the same time, the AMF will remove the MM context of the UE. If the reason for the removal of the service NF marked in the UDM is initial registration, the old AMF calls the Namf_EventExposure_Notify (Event Notification Request) service operation to notify all SMFs related to the UE that the UE has deregistered from the old AMF. After receiving this notification, the SMF will release all PDU sessions related to the UE.

[0309] In S815, if the AMF does not obtain the access or mobility policy from the UE or the access and mobility policy in the AMF is no longer valid, the AMF will select a PCF to start PCF communication.

[0310] It should be understood that if the new AMF obtains the PCF ID from the old AMF and successfully contacts the PCF through the PCF ID, the new AMF selects the (V-)PCF according to the PCF ID. If the PCF ID is not available or the new AMF does not obtain the PCF ID, it is necessary to reselect the PCF.

[0311] Optionally, in S816, the new AMF performs a policy association establishment during the registration process. For emergency registration scenarios, this step can be skipped.

[0312] If the new AMF contacts the PCF, the AMF shall include the PCF ID in the Npcf_AMPolicyControl get operation. The AMF does not provide this identifier during the initial registration process.

[0313] If the AMF notifies the PCF of mobility restrictions (e.g. UE location) for adjustment, or if the PCF updates the mobility restrictions due to certain conditions (e.g. applications in use), the PCF shall provide the updated mobility restrictions to the AMF.

[0314] In S817, the PCF may call Namf_EventExposure_Subscribe to subscribe to events of the UE.

[0315] In S818, for the UE that is urgently registered, when the registration type is mobile registration update, the new AMF sends an SM context update (Nsmf_PDUSession_UpdateSMContex) or an SM context release (Nsmf_PDUSession_ReleaseSMContext) to the SMF.

[0316] Specifically, if a PDU session to be reactivated is provided in S801, the new AMF sends a Nsmf_PDUSession_UpdateSMContext request to the SMF associated with the PDU session to activate the user plane connection of the PDU session. If the PDU session status shows that it has been released on the UE, the new AMF calls the Nsmf_PDUSession_ReleaseSMContext service operation to the SMF to release all network resources associated with the PDU session.

[0317] It should be understood that if the served AMF changes, the new AMF should wait until S817 is executed before executing S818, otherwise, S817 can be executed in parallel with S818-S822. After this step is executed, the mobile-related notification of the network element consumer will be triggered.

[0318] In S819, if the AMF changes, the new AMF sends an N2 AMF Mobility Request to the N3IWF to create an NGAP UE relationship towards the N3IWF connected to the UE.

[0319] In S820, the N3IWF sends an N2 AMF mobility response to the new AMF.

[0320] Optionally, in S821, the old AMF sends a policy association termination to the (V-)PCF. If the old AMF has previously initiated a policy association to the PCF, this step is performed.

[0321] In S822, the new AMF sends a registration acceptance message to the UE, which includes relevant information that the network allows the UE to initiate an always-on session, and the relevant information may include DNN, S-NSSAI, the current location of the UE, the current access type of the UE, or the service type, etc. For example, the AMF only allows the UE to set an existing session with an emergency service as an always-on session, or the AMF only allows an existing session that requests a service to one or some DNNs to be set as an always-on session.

[0322] In S823, the UE sends a registration completion message to the new AMF to confirm whether a new 5G-GUTI is allocated. After the UE receives the relevant information about the always-on session from the AMF, it will subsequently set the meeting-conditional session as an always-on session based on the relevant information. Optionally, the UE can save the relevant information.

[0323] In the session management method of the embodiment of the present application, the AMF can inform the UE of the relevant information that allows the UE to initiate an always-on PDU session through the registration process, and the UE can decide whether to set the established session as an always-on session based on the relevant information. Therefore, the embodiment of the present application can further strengthen the control of setting the always-on session on the UE side, effectively preventing the waste of network resources.

[0324] Fig. 9 A schematic flow chart of a session management method 900 according to an embodiment of the present application is shown. The method 900 can be applied to Figure 1 The system architecture 100 shown can also be applied to Figure 2 The application scenario 200 is shown, but the embodiments of the present application are not limited thereto.

[0325] In S901, AMF decides to update the UE configuration based on various reasons, which may include UE mobility changes, network-side policies, receipt of subscription data update notifications from UDM, or changes in network slice configuration, etc., which are not limited to the embodiments of the present application.

[0326] In S902, the AMF sends a UE configuration update command (UE Configuration Update Commad) to the UE.

[0327] Specifically, the UE configuration update command may include one or more UE parameters, such as the UE's globally unique temporary identifier (5G-GUTI), the tracking area identifier list (TAI List), the allowed slice information (Allowed NSSAI), the mapping of the allowed slice information (Mapping Of Allowed NSSAI), the network allows the establishment of relevant information for the UE to initiate an always-on session, etc. In addition, the network allows the establishment of relevant information for the UE to initiate an always-on session may include DNN, S-NSSAI, the current location of the UE, the current access type of the UE, or the service type, etc. For example, AMF only allows the UE to set an existing session with a service type of emergency service as an always-on session, or AMF only allows an existing session that makes a service request to one or some DNNs to be set as an always-on session.

[0328] In S903, if the UE configuration update command requires confirmation, the UE sends a UE configuration update completion message to the AMF.

[0329] After the UE receives the relevant information about the always-on session from the AMF, it will subsequently set the meeting-condition session as the always-on session according to the relevant information. Optionally, the UE can save the relevant information.

[0330] In S904, if the UE configuration update command message includes that only the Mobile Initiated Connection Only (MICO) mode is allowed, the UE initiates a registration process to confirm the re-negotiation of the MICO mode.

[0331] The UE may initiate the registration process in a connected state or after entering an idle state, which is not limited in the embodiments of the present application.

[0332] In S905, if the new slice information or the newly configured slice information in the UE configuration update command does not affect the slices of the existing connection, the AMF does not trigger the AN release process. If the new slice information or the newly configured slice information in the UE configuration update command affects the slices of the existing connection, the AMF triggers the AN release process.

[0333] In the session management method of the embodiment of the present application, the AMF can inform the UE of the relevant information that allows the UE to initiate an always-on PDU session through the UE configuration update process, and the UE can decide whether to set the established session as an always-on session based on the relevant information. Therefore, the embodiment of the present application can further strengthen the control of setting the always-on session on the UE side, effectively preventing the waste of network resources.

[0334] Fig.10 A schematic flow chart of a session management method 1000 according to an embodiment of the present application is shown. The method 1000 can be applied to Figure 1 The system architecture 100 shown can also be applied to Figure 2 The application scenario 200 is shown, but the embodiments of the present application are not limited thereto.

[0335] In S1001a, the AMF receives a policy control query response (Npcf_AMPolicyControlGetResponse) from the PCF, which includes access mobility related information and / or a UE policy container (UE access and PDU session selection related information).

[0336] In S1001b, AMF receives a policy control update notification (Npcf_AMPolicyControlUpdateNotify) from PCF, which includes access mobility related information and / or UE policy container (UE access and PDU session selection related information).

[0337] It should be noted that S1001a and S1001b are two-choice steps, that is, either S1001a or S1001b is executed, and S1001a and S1001b are not executed at the same time.

[0338] Specifically, the above-mentioned UE policy container includes policy information that needs to be added, modified, or deleted. Among them, the modified policy includes relevant information that the network allows the UE to initiate an always-on session, and the relevant information may include DNN, S-NSSAI, the current location of the UE, the current access type of the UE, or the service type, etc. For example, AMF only allows the UE to set an existing session with a service type of emergency service as an always-on session, or AMF only allows an existing session that makes a service request to one or some DNNs to be set as an always-on session.

[0339] In S1002, if the UE is in a connected state, the AMF will transparently transmit the UE policy information received from the PCF to the UE. If the UE is in an idle state, the AMF triggers a service request initiated by the network, and if the UE is unreachable, the UE notifies the PCF of the information.

[0340] In S1003, the UE executes the received policy indication information and sends the execution result to the AMF.

[0341] Specifically, after the UE receives the relevant information about the always-on session from the AMF, it will subsequently set the session that meets the conditions as the always-on session according to the relevant information. Optionally, the UE can save the relevant information.

[0342] Optionally, in S1004, if PCF subscribes to the information received from AMF on policy information, then after receiving the execution result from the UE, AMF sends an event notification (Namf_EventExposureNotify) request to PCF to inform it that the policy container has been received.

[0343] In S1005, the PCF sends a time notification response to the AMF to confirm that the notification has been received.

[0344] In the session management method of the embodiment of the present application, the AMF can inform the UE of the relevant information that allows the UE to initiate an always-on PDU session through the UE configuration update process, and the UE can decide whether to set the established session as an always-on session based on the relevant information. Therefore, the embodiment of the present application can further strengthen the control of setting the always-on session on the UE side, effectively preventing the waste of network resources.

[0345] It should be understood that the sequence numbers of the above processes do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0346] Combined with the above Figures 1 to 10 , describes in detail the session management method according to the embodiment of the present application, and will be combined with Figures 11 to 13 , describe in detail the device according to the embodiment of the present application.

[0347] Fig.11 The apparatus 1100 provided in an embodiment of the present application is shown. The apparatus 1100 may be the aforementioned session management network element. The apparatus 1100 includes:

[0348] The receiving unit 1110 is configured to receive a first request message, where the first request message is used to request to establish a first session for the terminal;

[0349] The processing unit 1120 is configured to determine to establish the first session as a permanent online session, where the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state;

[0350] The sending unit 1130 is used to send a first response message to the terminal, where the first response message is used to indicate that the device accepts to establish the first session, and the first response message carries first indication information, where the first indication information is used to indicate that the first session is a permanent online session.

[0351] Optionally, the processing unit 1120 is specifically configured to: determine to establish the first session as a permanent online session according to any one of the following information: subscription information of the terminal, policy information of the terminal, or local configuration information of the device.

[0352] Optionally, the processing unit 1120 is specifically used to: determine to establish the first session as a permanent online session based on any one of the following information: data network name DNN, single network slice auxiliary information S-NSSAI, current location information of the terminal, or access type of the terminal; wherein the DNN or the S-NSSAI is carried in the first request message.

[0353] Optionally, the local configuration information includes any one of the following information: the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the device; the processing unit 1120 is specifically used to: determine to establish the first session as a permanent online session when the number of permanent online sessions already existing at the terminal is less than the maximum number of permanent online sessions supported by the terminal; or determine to establish the first session as a permanent online session when the number of permanent online sessions already existing at the device is less than the maximum number of permanent online sessions supported by the device.

[0354] Optionally, the processing unit 1120 is further used to: after sending the first response message to the terminal, determine to update the session attribute of the first session, wherein the session attribute is used to indicate that the first session is a permanent online session; the sending unit 1130 is further used to: send a notification message to the terminal, wherein the notification message is used to notify that the session attribute of the first session has been updated to a non-permanent online session.

[0355] In another possible implementation manner of the present application, the receiving unit 1110 is used to: receive a first request message and second indication information, where the first request message is used to request to establish a first session for a terminal, and the second indication information is used to indicate that the first session is established as a permanent online session, where the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state;

[0356] The processing unit 1120 is configured to: refuse to establish the first session as a permanent online session;

[0357] The sending unit 1130 is configured to send a first response message to the terminal, wherein the first response message carries third indication information, and the third indication information is used to instruct the device to refuse to establish the first session as the permanent online session.

[0358] Optionally, the first response message is used to indicate that the device refuses to establish the first session, and the third indication information is used to indicate that the reason why the device refuses to establish the first session is to refuse to establish the first session as a permanent online session; or the first response message is used to indicate that the device accepts to establish the first session, but does not accept to establish the first session as a permanent online session.

[0359] Optionally, the processing unit 1120 is specifically configured to: determine to refuse to establish the first session as a permanent online session according to any one of the following information: subscription information of the terminal, policy information of the terminal, or local configuration information of the device.

[0360] Optionally, the processing unit 1120 is specifically used to: determine to refuse to establish the first session as a permanent online session based on any one of the following information: data network name DNN, single network slice auxiliary information S-NSSAI, current location information of the terminal, or access type of the terminal; wherein the DNN or the S-NSSAI is carried in the first request message.

[0361] Optionally, the local configuration information includes any one of the following information: the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the device; the processing unit 1120 is specifically used to: when the number of permanent online sessions already existing at the terminal is greater than or equal to the maximum number of permanent online sessions supported by the terminal, determine to refuse to establish the first session as a permanent online session; or when the number of permanent online sessions already existing at the device is greater than or equal to the maximum number of permanent online sessions supported by the device, determine to refuse to establish the first session as a permanent online session.

[0362] Optionally, the processing unit 1120 is further used to: after sending the first response message to the terminal, determine to update the session attribute of the first session, wherein the session attribute is used to indicate that the first session is a non-permanent online session; the sending unit 1130 is further used to: send a notification message to the terminal, wherein the notification message is used to notify that the session attribute of the first session has been updated to a permanent online session.

[0363] It should be understood that the device 1100 here is embodied in the form of a functional unit. The term "unit" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art may understand that the device 1100 may be specifically a session management network element in the above method embodiment, and the device 1100 may be used to execute the various processes and / or steps corresponding to the session management network element in the above method embodiment, and to avoid repetition, it will not be repeated here.

[0364] Fig.12 The device 1200 provided in the embodiment of the present application is shown, and the device 1200 may be the aforementioned terminal or a chip. The device 1200 includes:

[0365] The sending unit 1210 is configured to send a first request message to a session management network element, where the first request message is used to request to establish a first session for the device;

[0366] The receiving unit 1220 is used to receive a first response message, where the first response message is used to indicate that the session management network element accepts the establishment of the first session, and the first response message carries first indication information, where the first indication information is used to indicate that the first session is a permanent online session, and the permanent online session is a session that activates user plane resources when the device changes from an idle state to a connected state.

[0367] Optionally, the receiving unit 1220 is further configured to: receive a notification message, where the notification message is used to notify that the session attribute of the first session has been updated to a non-persistent online session.

[0368] In another possible implementation manner of the present application, the sending unit 1210 is used to: send a first request message and a second indication information to a session management network element, where the first request message is used to request to establish a first session for the device, and the second indication information is used to indicate that the first session is established as a permanent online session, where the permanent online session is a session that activates user plane resources when the device changes from an idle state to a connected state;

[0369] The receiving unit 1220 is used to: receive a first response message, where the first response message carries third indication information, and the third indication information is used to instruct the session management network element to refuse to establish the first session as a permanent online session.

[0370] Optionally, the first response message is used to indicate that the session management network element refuses to establish the first session, and the third indication information is used to indicate that the reason why the session management network element refuses to establish the first session is that it refuses to establish the first session as a permanent online session; or

[0371] The first response message is used to indicate that the session management network element accepts the establishment of the first session, but does not accept the establishment of the first session as a permanent online session.

[0372] Optionally, the receiving unit 1220 is further configured to: receive a notification message, where the notification message is used to notify that the session attribute of the first session has been updated to a permanent online session.

[0373] It should be understood that the device 1200 here is embodied in the form of a functional unit. The term "unit" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art can understand that the device 1200 can be specifically a terminal in the above-mentioned method embodiment, and the device 1200 can be used to execute the various processes and / or steps corresponding to the terminal in the above-mentioned method embodiment. To avoid repetition, it will not be repeated here.

[0374] The apparatus 1100 and the apparatus 1200 of each of the above schemes have the function of implementing the corresponding steps executed by the session management network element and the terminal in the above method; the function can be implemented by hardware, or by hardware executing the corresponding software. The hardware or software includes one or more modules corresponding to the above functions; for example, the sending unit can be replaced by a transmitter, the receiving unit can be replaced by a receiver, and other units, such as the determination unit, can be replaced by a processor, respectively performing the sending and receiving operations and related processing operations in each method embodiment.

[0375] In the embodiments of the present application, Fig.11 and Fig.12 The device in the embodiment may also be a chip or a chip system, such as a system on chip (SoC). Correspondingly, the receiving unit and the sending unit may be the transceiver circuit of the chip, which is not limited here.

[0376] It should be understood that the embodiments of the present application Fig.11 The session management element in the Fig.12 The terminal can be Fig.13 The device 1300 in the embodiment is implemented and can be used to execute each step and / or process corresponding to the session management network element or terminal in the above method embodiment.

[0377] Fig.13 The device 1300 provided in an embodiment of the present application is shown. The device 1300 includes a processor 1313, a transceiver 1320, and a memory 1330. The processor 1313, the transceiver 1320, and the memory 1330 communicate with each other through an internal connection path, the memory 1330 is used to store instructions, and the processor 1313 is used to execute the instructions stored in the memory 1330 to control the transceiver 1320 to send signals and / or receive signals.

[0378] Among them, in a possible implementation of the present application, if the communication device 1300 is a session management network element, the processor 1313 is used to receive a first request message through the transceiver 1320, and the first request message is used to request to establish a first session for the terminal; determine to establish the first session as a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; send a first response message to the terminal through the transceiver 1320, and the first response message is used to indicate that the device accepts to establish the first session, and the first response message carries first indication information, and the first indication information is used to indicate that the first session is a permanent online session.

[0379] If the communication device 1300 is a terminal, the transceiver 1320 is used to send a first request message to a session management network element through the transceiver 1320, wherein the first request message is used to request to establish a first session for the device; a first response message is received through the transceiver 1320, wherein the first response message is used to indicate that the session management network element accepts to establish the first session, and the first response message carries first indication information, wherein the first indication information is used to indicate that the first session is a permanent online session, and the permanent online session is a session that activates user plane resources when the device changes from an idle state to a connected state.

[0380] In another possible implementation of the present application, if the communication device 1300 is a session management network element, the processor 1313 is used to receive a first request message and a second indication information through a transceiver 1320, wherein the first request message is used to request to establish a first session for the terminal, and the second indication information is used to indicate that the first session is established as a permanent online session, and the permanent online session is a session that activates user plane resources when the terminal changes from an idle state to a connected state; refuses to establish the first session as a permanent online session; and sends a first response message to the terminal through the transceiver 1320, wherein the first response message carries third indication information, and the third indication information is used to indicate that the device refuses to establish the first session as the permanent online session.

[0381] If the communication device 1300 is a terminal, the transceiver 1320 is used to send a first request message and a second indication information to a session management network element through the transceiver 1320, wherein the first request message is used to request to establish a first session for the device, and the second indication information is used to indicate that the first session is established as a permanent online session, and the permanent online session is a session that activates user plane resources when the device changes from an idle state to a connected state; and receive a first response message through the transceiver 1320, wherein the first response message carries third indication information, and the third indication information is used to instruct the session management network element to refuse to establish the first session as a permanent online session.

[0382] Optionally, the memory 1330 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 1313 may be used to execute instructions stored in the memory, and when the processor 1313 executes instructions stored in the memory, the processor 1313 is used to execute the various steps and / or processes of the above-mentioned method embodiment corresponding to the network storage network element or the mobility management network element.

[0383] It should be understood that the above-mentioned transceiver may include a transmitter and a receiver. The transceiver may further include an antenna, and the number of antennas may be one or more. The memory may be a separate device or integrated in the processor. The above-mentioned various devices or some of the devices may be integrated into a chip for implementation, such as integrated into a baseband chip for implementation.

[0384] In the embodiments of the present application, Fig.13 The transceiver in may also be a communication interface, which is not limited here.

[0385] In the various embodiments of the present application, various examples are provided for ease of understanding, however, these examples are merely examples and are not intended to be the best implementation of the present application.

[0386] In the embodiments of the present application, for the convenience of description, the names of request messages, response messages and other various messages are used. However, these messages are only used as examples to illustrate the content that needs to be carried or the functions that need to be implemented. The specific names of the messages do not limit the present application. For example, they can also be first messages, second messages, third messages, etc. These messages can be specific messages or certain fields in the messages. These messages can also represent various service operations.

[0387] It should also be understood that in the embodiments of the present application, the processor of the above-mentioned device may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0388] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software units in a processor for execution. The software unit can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0389] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0390] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0391] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

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

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

[0394] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

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

[0396] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A session management method, characterized in that: include: The session management network element receives a first request message, where the first request message is used to request to establish a first session for the terminal, and establish the first session as a permanent online session; The session management network element determines to refuse to establish the first session as a permanent online session; The session management network element sends a first response message to the terminal, where the first response message is used to indicate that the session management network element accepts the establishment of the first session, but does not accept the establishment of the first session as a permanent online session; The session management network element determines to update the session attribute of the first session from a non-permanent online session to a permanent online session; The session management network element sends a notification message to the terminal, where the notification message is used to notify that a session attribute of the first session is a permanent online session.

2. The method according to claim 1, characterized in that The session management network element determines to refuse to establish the first session as a permanent online session, including: The session management network element determines to refuse to establish the first session as a permanent online session according to any one of the following information: subscription information of the terminal, policy information of the terminal, or local configuration information of the session management network element.

3. The method according to claim 2, characterized in that The local configuration information includes any one of the following information: the maximum number of permanent online sessions supported by the terminal, or the maximum number of permanent online sessions supported by the session management network element.

4. The method according to any one of claims 1 to 3, characterized in that The session management network element determines to refuse to establish the first session as a permanent online session, including: In a case where the number of existing permanent online sessions of the terminal is greater than or equal to the maximum number of permanent online sessions supported by the terminal, the session management network element determines to refuse to establish the first session as a permanent online session.

5. The method according to any one of claims 1 to 3, characterized in that The session management network element determines to refuse to establish the first session as a permanent online session, including: In a case where the number of existing permanent online sessions of the session management network element is greater than or equal to the maximum number of permanent online sessions supported by the session management network element, the session management network element determines to refuse to establish the first session as a permanent online session.

6. The method according to claim 1, characterized in that The session management network element determines to refuse to establish the first session as a permanent online session, including: The session management network element determines, according to any one of the following information, to refuse to establish the first session as a permanent online session: data network name DNN, single network slice auxiliary information S-NSSAI, current location information of the terminal, or access type of the terminal; The DNN or the S-NSSAI is carried in the first request message.

7. The method according to any one of claims 1 to 5, characterized in that: The session management network element determines to update the session attribute of the first session from a non-permanent online session to a permanent online session, specifically including: When the subscription information, policy information, or local configuration information changes, the session management network element determines to update the session attributes of the first session.

8. The method according to any one of claims 1 to 6, characterized in that: The first response message carries third indication information, where the third indication information is used to indicate that the session management network element does not accept establishing the first session as the permanent online session.

9. The method according to any one of claims 1 to 8, characterized in that: The first request message is a protocol data unit session establishment request message, and the first response message is a protocol data unit session establishment response message.

10. A session management method, characterized in that: include: The terminal sends a first request message to the session management network element, where the first request message is used to request to establish a first session for the terminal, and to establish the first session as a permanent online session; The terminal receives a first response message from the session management network element, where the first response message is used to indicate that the session management network element accepts the establishment of the first session but does not accept the establishment of the first session as a permanent online session; The terminal determines, according to the first response message, that the first session is a non-permanent online session; The terminal receives a notification message from the session management network element, where the notification message is used to notify that a session attribute of the first session is a permanent online session; The terminal determines, according to the notification message, that the first session is updated from a non-permanent online session to a permanent online session.

11. A session management method, characterized in that: include: The terminal sends first indication information to the session management network element through the mobility management network element, where the first indication information is used to indicate that a protocol data unit session is updated to a permanent online feature, where the protocol data unit session is an established non-permanent online session of the terminal; The terminal receives second indication information from the session management network element, where the second indication information is used to instruct to update the protocol data unit session to a permanent online feature; The terminal updates the protocol data unit session from a non-permanent online session to a permanent online session according to the second indication information.

12. A session management network element, characterized in that: include: Unit for performing the method according to any one of claims 1 to 9.

13. A communication device, characterized in that: include: A unit for executing the method of claim 10 or 11 for a terminal.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product stores instructions, and when the computer program product is run on a computer, the computer can execute the method according to any one of claims 1 to 11.

16. A session management method, characterized in that: include: The mobility management network element sends a first request message to the session management network element, where the first request message is used to request to establish a first session for the terminal and to establish the first session as a permanent online session; The session management network element receives the first request message from the mobility management network element; The session management network element determines to refuse to establish the first session as a permanent online session; The session management network element sends a first response message to the terminal, where the first response message is used to indicate that the session management network element accepts the establishment of the first session, but does not accept the establishment of the first session as a permanent online session; The session management network element determines to update the session attribute of the first session from a non-permanent online session to a permanent online session; The session management network element sends a notification message to the terminal, where the notification message is used to notify that a session attribute of the first session is a permanent online session.

17. A session management system, characterized in that: It comprises a session management network element and a mobility management network element as claimed in claim 12, wherein the mobility management network element is used to send a first request message to the session management network element.

Citation Information

Patent Citations

  • System and method for determining that a maximum number of IP sessions have been established

    CA2598378A1

  • Communication method and system based on HTTP (hyper Text Transfer Protocol), HTTP server and HTTP client

    CN102065143A

  • Timer dynamic setting method and device

    CN103888230A

  • Always-on bearer for small data transfers in LTE systems

    CN104737619A

  • User device, method and system for concurrent session control

    JP2008541501A