WO2021258912A1 - Session management method and apparatus, and storage medium - Google Patents

Session management method and apparatus, and storage medium Download PDF

Info

Publication number
WO2021258912A1
WO2021258912A1 PCT/CN2021/094174 CN2021094174W WO2021258912A1 WO 2021258912 A1 WO2021258912 A1 WO 2021258912A1 CN 2021094174 W CN2021094174 W CN 2021094174W WO 2021258912 A1 WO2021258912 A1 WO 2021258912A1
Authority
WO
WIPO (PCT)
Prior art keywords
pdu session
established
pdu
session
deactivation
Prior art date
Application number
PCT/CN2021/094174
Other languages
French (fr)
Chinese (zh)
Inventor
滕文星
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2021258912A1 publication Critical patent/WO2021258912A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections
    • H04W76/36Selective release of ongoing connections for reassigning the resources associated with the released connections

Definitions

  • the present invention relates to the field of communication technology, in particular to a session management method, device and storage medium.
  • the embodiments of the present invention provide a session management method, device, and storage medium, aiming at intelligently switching PDU sessions and improving user experience of using user equipment.
  • an embodiment of the present invention provides a session management method, including: obtaining a PDU session establishment request initiated by a currently running application, and obtaining the number of established PDU sessions to obtain the number of PDU sessions; When the number of the PDU sessions reaches the preset number, and the application has the authority to use the PDU sessions, an established PDU session is deactivated; when it is determined that the established PDU session is deactivated, according to The PDU session establishment request establishes the PDU session of the application program.
  • an embodiment of the present invention also provides a session management device.
  • the session management device includes a processor, a memory, a computer program that is stored on the memory and can be executed by the processor, and is used to implement the A data bus for connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of any session management method as provided in the specification of the present invention are realized.
  • embodiments of the present invention also provide a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be processed by one or more The device executes to implement the steps of any session management method as provided in the specification of the present invention.
  • the embodiment of the present invention provides a session management method, device, and storage medium.
  • the embodiment of the present invention obtains a protocol data unit PDU session establishment request initiated by an application program, and obtains the number of established PDU sessions to obtain the number of PDU sessions; Then, when it is determined that the number of PDU sessions reaches the preset number, and the application has the right to use PDU sessions, deactivate one of the established PDU sessions; when it is determined that one PDU session has been established After the session is deactivated, the PDU session of the application program is established according to the PDU session establishment request.
  • the above solution can compare an established PDU session when the PDU session establishment request initiated by an application with the permission to use the PDU session and the number of established PDU sessions reaches the limit. Perform deactivation processing, and after the deactivation is completed, establish the PDU session of the application, which greatly improves the intelligence of PDU session switching and improves the user experience.
  • FIG. 1 is a schematic flowchart of steps of a session management method provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of sub-steps of the session management method in FIG. 1;
  • FIG. 3 is a schematic flowchart of sub-steps of the session management method in FIG. 2;
  • FIG. 4 is a schematic flowchart of another sub-step of the session management method in FIG. 2;
  • FIG. 5 is a schematic flowchart of another sub-step of the session management method in FIG. 2;
  • FIG. 6 is a schematic block diagram of the structure of a session management apparatus according to an embodiment of the present invention.
  • the embodiment of the present invention provides a session management method, device and storage medium.
  • the session management method can be applied to a session management device, and the session management device can be set in a user equipment, and the user equipment can be an electronic device such as a mobile phone, a tablet computer, and a notebook computer.
  • FIG. 1 is a schematic flowchart of steps of a session management method according to an embodiment of the present invention.
  • the session management method may include step S101 to step S103.
  • Step S101 Obtain a protocol data unit PDU session establishment request initiated by the application program, and obtain the number of established PDU sessions to obtain the number of PDU sessions.
  • the PDU session is a protocol data unit session (Protocol Data Unit session, PDU session), which connects the PDU data between the user terminal and the data network (Data Network, DN), that is, the data between the user equipment and the data network Data transmission channel.
  • PDU session Protocol Data Unit session
  • DN data network
  • the preset number of PDU sessions is set according to the actual situation, which is not specifically limited in the embodiment of the present invention.
  • the user terminal uses It is the 3rd Generation Partnership Project (3GPP) protocol.
  • 3GPP 3rd Generation Partnership Project
  • the maximum number of PDU sessions that the user equipment can establish is 8 or more; the 8 PDU sessions establish multiple network slices, the 8 The number of PDU session establishment network slices can be set according to the actual situation, which is not specifically limited in the embodiment of the present invention.
  • the 8 PDU sessions establish 8 different network slices respectively, and for example, the 8 PDU sessions Two network slices are established respectively, that is, one network slice establishes 4 PDU sessions, and the other network slice establishes another 4 PDU sessions.
  • the application when it is detected that a certain application on the user equipment is started, the application initiates a PDU session establishment request, and the session management apparatus obtains the PDU session establishment request from the application and obtains the currently established PDU The number of sessions, to get the number of PDU sessions.
  • one PDU session may correspond to one application program identifier, that is, one application program uses one PDU session, that is, the number of PDU sessions may be confirmed according to the application program identifier.
  • Step S102 When it is determined that the number of PDU sessions reaches the preset number, and the application has the right to use the PDU sessions, deactivate one of the established PDU sessions.
  • the preset number of PDU sessions is the number of PDU sessions that the user equipment can establish.
  • the preset number can be set according to actual conditions.
  • the embodiment of the present invention does not specifically limit this.
  • the user equipment uses It is a 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) protocol.
  • the user equipment includes 8 PDU sessions, and the preset number is 8 or 10.
  • the specific method for determining whether the application has the right to use the PDU session is to obtain a permission list of the PDU session, where the permission list stores the application identifiers of the applications that have the right to use the PDU session Symbol; Obtain the application identifier of the currently running application, and determine whether the application identifier of the currently running application is in the permission list.
  • the whitelist of the application is a collection of application identifiers of the permission application used by the PDU session set by the user.
  • the whitelist of the application can be set according to the actual situation, which is not specifically limited in the embodiment of the present invention.
  • the user account can be selected according to the actual situation, and the embodiment of the present invention does not specifically limit this.
  • the user account can be the user's mobile phone account, and of course, it can also be any other suitable authority identity information.
  • the network slice selection assistance information (network slice selection assistance information, NSSAI) of the network operator’s network slice is mainly purchased through the application development company and the user account that has logged in to the application has purchased the application development company’s Only when you are a member, the app has the right to use the PDU session.
  • the network operator can be determined according to actual conditions, and the embodiment of the present invention does not specifically limit this.
  • the network operator can select operators such as mobile operators, China Unicom operators, and telecommunications operators.
  • the application development company purchases the network slice selection auxiliary information of the network operator’s network slice, and the user account that logs in to the application does not purchase a member of the application development company, the application on the user’s device Does not have the right to use the PDU session.
  • step S102 may include sub-step S1021 to sub-step S1023.
  • sub-step S1021 the deactivation priority of each established PDU session is obtained.
  • the deactivation priority is to determine the order of deactivation of the established PDU session.
  • the deactivation priority can be determined according to the establishment duration of the established PDU session, the type of the PDU session, and/or the preset application list set by the user. , The higher the deactivation priority of the established PDU session, the greater the probability of deactivation of the established PDU session, and the lower the deactivation priority of the established PDU session, it indicates the established PDU The lower the probability of deactivation of the session.
  • step S1021 may include sub-step S1021a to sub-step S1021b.
  • Step S1021a Obtain the establishment duration of each PDU session that has been established.
  • PDU session 1 there are a total of 8 established PDU sessions, namely PDU session 1, PDU session 2, PDU session 3, PDU session 4, PDU session 5, PDU session 6, PDU session 7, and PDU session 8, and PDU session 1
  • the establishment time of PDU session 2 is 50 minutes
  • the establishment time of PDU session 2 is 45 minutes
  • the establishment time of PDU session 3 is 40 minutes
  • the establishment time of PDU session 4 is 35 minutes
  • the establishment time of PDU session 5 is 30 minutes
  • the establishment time of PDU session 6 is 30 minutes.
  • the establishment time of PDU session 7 is 25 minutes
  • the establishment time of PDU session 7 is 20 minutes
  • the establishment time of PDU session 8 is 15 minutes.
  • Sub-step S1021b Determine the deactivation priority of each PDU session that has been established according to the establishment duration of each PDU session that has been established.
  • each PDU session is sorted to obtain the PDU session queue, and according to the order of each established PDU session in the PDU session queue, the established each PDU session is determined Deactivation priority of each PDU session. Among them, the longer the duration of the PDU session establishment, the higher the priority of deactivation of the PDU session.
  • the establishment time of PDU session 1 is 50 minutes
  • the establishment time of PDU session 2 is 45 minutes
  • the establishment time of PDU session 3 is 40 minutes
  • the establishment time of PDU session 4 is 35 minutes
  • the establishment time of PDU session 5 is 35 minutes.
  • the 8 PDU sessions are sorted to obtain the PDU session queue, namely PDU Session 1, PDU session 2, PDU session 3, PDU session 4, PDU session 5, PDU session 6, PDU session 7, and PDU session 8 are deactivated in order of priority from high priority to low priority.
  • PDU session 1 The deactivation priority is the highest, and the deactivation priority of PDU session 8 is the lowest.
  • step S1021 may include sub-step S1021c to sub-step S1021d.
  • Step S1021c Obtain the type of each PDU session that has been established.
  • the types of PDU sessions can include enhanced Mobile Broadband (eMMB) types, Ultra Reliable Low Latency Communications (URLLC) types, large-scale IoT types, and vehicle wireless communication technologies (vehicle to X, V2X) type, etc.
  • eMMB enhanced Mobile Broadband
  • URLLC Ultra Reliable Low Latency Communications
  • V2X vehicle wireless communication technologies
  • Sub-step S1021d Determine the deactivation priority of each established PDU session according to the type of each established PDU session.
  • mapping relationship table between the pre-stored PDU session type and the deactivation priority Obtain the mapping relationship table between the pre-stored PDU session type and the deactivation priority, and determine the established based on the mapping relationship table between the PDU session type and the deactivation priority and the type of each PDU session that has been established
  • the deactivation priority of each PDU session can be set according to the actual situation, which is not specifically limited in the embodiment of the present invention, for example, eMMB type, URLLC type, large-scale IoT type and
  • the deactivation priority of the V2X type is from low to high.
  • the deactivation priority of eMMB type, URLLC type, large-scale Internet of Things type and V2X type is from low to high, and the acquired established PDU session 1, PDU session 2, PDU session 3, and PDU session 4 are obtained.
  • the type of session 5 with PDU is eMMB type
  • the type of PDU session 6 is large-scale IoT type
  • the type of PDU session 7 is V2X type
  • the type of PDU session 8 is URLLC type
  • the deactivation priority of PDU session is from high to The low order is: PDU session 7, PDU session 6, PDU session 8, PDU session 1, PDU session 2, PDU session 3, PDU session 4, and PDU session 5, among which, PDU session 1, PDU session 2, PDU session 3 , PDU session 4 and PDU session 5 have the same deactivation priority, that is, the established PDU session 7 has the highest deactivation priority, PDU session 1, PDU session 2, PDU session 3, PDU session 4, and PDU session 5 have the highest deactivation priority.
  • step S1021 may include sub-step S1021e to sub-step S1021f.
  • Step S1021e Obtain the identifier of the application program that uses each established PDU session.
  • the identifier of the application program can be set according to actual conditions, which is not specifically limited in the embodiment of the present invention.
  • the identifier of the application program can be set to APP1, APP2, and so on.
  • Sub-step S1021f Determine the deactivation priority of each established PDU session according to the identifier of the application using each established PDU session and the preset application list.
  • the identifier list of the preset application program can be set according to actual conditions, which is not specifically limited in the embodiment of the present invention.
  • a list of identifiers of preset applications is acquired, wherein the list stores identifiers of applications with low deactivation priority; acquiring the identifiers of the applications of each PDU session that has been established, And determine whether the application identifier of each established PDU session is located in the identifier list of the preset application.
  • the deactivated PDU session of the established PDU session corresponding to the application program identifier has the lowest priority.
  • the identifier list of the preset application program can be set according to actual conditions, which is not specifically limited in the embodiment of the present invention.
  • a list of preset application program identifiers is obtained; the application program identifier of each established PDU session is obtained, and it is determined whether the application program identifier of each established PDU session is located in the preset application program.
  • the identifier list of the application program when it is determined that the identifier of the application program for each established PDU session is located in the identifier list of the preset application program, the identifier of the application program corresponds to the established PDU session Activating the PDU session has the highest priority.
  • each PDU session is sorted according to the size of the establishment duration of each established PDU session, Obtain the PDU session queue, and determine the deactivation sub-priority of each established PDU session according to the sequence of each established PDU session in the PDU session queue. Among them, the longer the duration of the PDU session establishment, the higher the priority of deactivation of the PDU session.
  • the above several ways to determine the deactivation priority of each PDU session that have been established can be determined in one way or the deactivation priority of each PDU session that has been established.
  • the methods for determining the deactivation priority of each established PDU session are combined to determine the deactivation priority of each established PDU session, which is not specifically limited in the embodiment of the present invention.
  • Sub-step S1022 according to the established deactivation priority of each PDU session, determine the target PDU session to be deactivated.
  • the established PDU session with the highest deactivation priority is used as the target PDU session to be deactivated.
  • PDU session 1 has been established for 50 minutes
  • PDU session 2 has been established for 45 minutes
  • PDU session 3 has been established for 40 minutes
  • PDU session 4 has been established.
  • 35 minutes have been established
  • PDU session 5 has been established for 30 minutes
  • PDU session 6 has been established for 25 minutes
  • PDU session 7 has been established for 20 minutes
  • PDU session 8 has been established for 15 minutes
  • the longest PDU session is established as deactivated
  • the established PDU session 1 is used as the target PDU session to be deactivated.
  • Sub-step S1023 Deactivate the target PDU session.
  • the application corresponding to the target PDU session is established from the PDU session to the normal session.
  • a PDU session is left empty, so that the application that initiates the PDU session establishment request can successfully establish the PDU session.
  • the deactivation identifier of the target PDU session is obtained, and it is determined whether the deactivation identifier of the target PDU session is the first identifier or the second identifier.
  • the deactivation identifier is the first identifier
  • the deactivation identifier is set according to the actual situation, which is not specifically limited in the embodiment of the present invention. For example, the first identifier is 1 and the second identifier is 0.
  • the PDU session selection page is displayed to obtain the application selected on the deactivated PDU session selection page of the user equipment
  • the identifier of the program according to the selected identifier and each established PDU session, the PDU session corresponding to the identifier is obtained, that is, the target PDU session to be deactivated is obtained, and the target PDU session is deactivated.
  • Step S103 After it is determined that the deactivation of an established PDU session is completed, the PDU session of the application program is established according to the PDU session establishment request.
  • the acquired deactivation identifier of the target PDU session is the first identifier, it is determined that the deactivation of an established PDU session is completed, an empty PDU session is obtained, and the PDU session of the application is established according to the PDU session establishment request.
  • the application program corresponding to the target PDU session is established to the normal session, so that the application program can transmit information and data.
  • the protocol data unit PDU session establishment request initiated by the application program is obtained, and the number of established PDU sessions is obtained to obtain the number of PDU sessions; and then when it is determined that the number of PDU sessions reaches When the number is preset and the application has the authority to use PDU sessions, it will deactivate one of the established PDU sessions; when it is determined that an established PDU session has been deactivated, it will be established according to the PDU session Request to establish a PDU session of the application.
  • the above solution can compare an established PDU session when the PDU session establishment request initiated by an application with the permission to use the PDU session and the number of established PDU sessions reaches the limit Perform deactivation processing, and after the deactivation is completed, establish the PDU session of the application, which greatly improves the intelligence of PDU session switching and improves the user experience.
  • FIG. 6 is a schematic block diagram of the structure of a session management apparatus according to an embodiment of the present invention.
  • the session management apparatus 200 may include a processor 201 and a memory 202, and the processor 201 and the memory 202 are connected by a bus 203, such as an I2C (Inter-integrated Circuit) bus.
  • a bus 203 such as an I2C (Inter-integrated Circuit) bus.
  • the processor 201 is used to provide computing and control capabilities, and support the operation of the entire session management apparatus.
  • the processor 201 may be a central processing unit (CPU), and the processor 201 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (ASICs). ), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates 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 or the like.
  • the memory 202 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
  • FIG. 6 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the session management device to which the solution of the present invention is applied.
  • the specific session management The device may include more or fewer parts than shown in the figures, or combine certain parts, or have a different arrangement of parts.
  • the processor is configured to run a computer program stored in a memory, and when executing the computer program, implement any one of the session management methods provided in the embodiments of the present invention.
  • the processor is configured to run a computer program stored in a memory, and implement the following steps when executing the computer program:
  • the PDU session of the application program is established according to the PDU session establishment request.
  • the processor when the processor implements the deactivation process for one of the established PDU sessions, the processor is configured to implement:
  • the processor when the processor realizes the acquisition of the deactivation priority of each established PDU session, it is configured to realize:
  • the deactivation priority of each established PDU session is determined.
  • the processor when the processor realizes the acquisition of the deactivation priority of each established PDU session, it is configured to realize:
  • the deactivation priority of each PDU session that has been established is determined.
  • the processor when the processor implements the acquisition of the deactivation priority of each established PDU session, it is configured to implement:
  • the deactivation priority of each established PDU session is determined.
  • the processor implements the acquisition of the protocol data unit PDU session establishment request initiated by the currently running application, and acquires the number of established PDU sessions, and after obtaining the number of PDU sessions, it also uses To achieve:
  • the deactivation processing of one of the established PDU sessions includes:
  • the processor determines the target PDU session to be deactivated according to the deactivation priority of each established PDU session, it is used to implement:
  • the established PDU session with the highest deactivation priority is taken as the target PDU session to be deactivated.
  • the processor is further configured to implement:
  • the deactivation identifier is the first identifier, it is determined that the target PDU session is successfully deactivated;
  • the deactivation identifier is the second identifier, it is determined that the deactivation of the target PDU session fails.
  • the embodiment of the present invention also provides a storage medium for computer-readable storage, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize such as The steps of any session management method provided in the specification of the present invention.
  • the storage medium may be the internal storage unit of the session management device described in the foregoing embodiment, for example, the hard disk or memory of the session management device.
  • the storage medium may also be an external storage device of the session management device, such as a plug-in hard disk equipped on the session management device, a smart memory card (Smart Media Card, SMC), or a Secure Digital (SD) Card, Flash Card, etc.
  • Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium).
  • the term computer storage medium may include volatile and non-volatile implementations in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Lost, removable and non-removable media.
  • Computer storage media may include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, tapes, magnetic disk storage or other magnetic storage devices, or Any other medium that can be used to store desired information and that can be accessed by a computer.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

Provided are a session management method and apparatus, and a storage medium. The method comprises: acquiring a protocol data unit (PDU) session establishment request initiated by an application program, and acquiring the number of established PDU sessions, so as to obtain the number of PDU sessions; then, when it is determined that the number of PDU sessions reaches a preset number, and the application program has the permission to use the PDU sessions, performing deactivation processing on one PDU session among the established PDU sessions; and when it is determined that the deactivation of the established PDU session is completed, establishing a PDU session of the application program according to the PDU session establishment request. When there is a PDU session establishment request that is initiated by an application program having the permission to use PDU sessions, deactivation processing can be performed on an established PDU session, and the application program of the PDU session is requested in order to establish the PDU session, such that the intelligence of PDU session switching and the usage experience of a user are improved.

Description

会话管理方法、装置及存储介质Session management method, device and storage medium 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种会话管理方法、装置及存储介质。The present invention relates to the field of communication technology, in particular to a session management method, device and storage medium.
背景技术Background technique
随着通信技术的快速发展,移动数据传输方式也越来越多样化,但是移动数据快速传输的信道有限,并不是所有的信息都使用快速传输通道。例如,网络切片作为第五代移动通信技术(5th-Generation,5G)中非常重要的技术,目前第三代合作伙伴计划(3rd Generation Partnership Project,3GPP)规定一个终端最多只能同时建立8个协议数据单元会话(Protocol Data Unit session,PDU session),当申请的PDU会话超过8个时,后面申请的PDU会话只能通过普通的会话处理。例如,用户在某游戏中购买了PDU会话,当用户启动应用程序(Application,APP)时,但由于终端的PDU会话已经占满,该用户不能使用PDU会话,即该APP不能够使用更高速的网速,用户不能够体验到VIP的高速网速,因此,用户的使用体验很差。With the rapid development of communication technology, mobile data transmission methods are becoming more and more diversified, but the channels for fast mobile data transmission are limited, and not all information uses fast transmission channels. For example, network slicing is a very important technology in the fifth-generation mobile communication technology (5th-Generation, 5G). At present, the 3rd Generation Partnership Project (3GPP) stipulates that a terminal can only establish 8 protocols at the same time. Data unit session (Protocol Data Unit session, PDU session). When there are more than 8 PDU sessions applied for, the PDU sessions applied for later can only be processed through ordinary sessions. For example, when a user purchases a PDU session in a game, when the user starts an application (Application, APP), but because the terminal’s PDU session is already full, the user cannot use the PDU session, that is, the APP cannot use the higher-speed Internet speed, users cannot experience the high-speed Internet speed of VIP, therefore, the user experience is very poor.
发明内容Summary of the invention
本发明实施例提供了一种会话管理方法、装置及存储介质,旨在智能的切换PDU会话,提高用户使用用户设备的使用体验。The embodiments of the present invention provide a session management method, device, and storage medium, aiming at intelligently switching PDU sessions and improving user experience of using user equipment.
第一方面,本发明实施例提供一种会话管理方法,包括:获取当前运行的应用程序发起的PDU会话建立请求,并获取已建立的PDU会话的个数,得到PDU会话个数;当确定所述PDU会话个数达到预设个数,且所述应用程序具备使用PDU会话的权限时,对已建立的一个PDU会话进行去激活处理;当确定已建立的一个PDU会话去激活完成后,根据所述PDU会话建立请求建立所述应用程序的PDU会话。In the first aspect, an embodiment of the present invention provides a session management method, including: obtaining a PDU session establishment request initiated by a currently running application, and obtaining the number of established PDU sessions to obtain the number of PDU sessions; When the number of the PDU sessions reaches the preset number, and the application has the authority to use the PDU sessions, an established PDU session is deactivated; when it is determined that the established PDU session is deactivated, according to The PDU session establishment request establishes the PDU session of the application program.
第二方面,本发明实施例还提供一种会话管理装置,所述会话管理装置包括处理器、存储器、存储在所述存储器上并可被所述处理器执行的计算机程序以及用于实现所述处理器和所述存储器之间的连接通信的数据总线,其中所述计算机程序被所述处理器执行时,实现如本发明说明书提供的任一项会话管理方法的步骤。In a second aspect, an embodiment of the present invention also provides a session management device. The session management device includes a processor, a memory, a computer program that is stored on the memory and can be executed by the processor, and is used to implement the A data bus for connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of any session management method as provided in the specification of the present invention are realized.
第三方面,本发明实施例还提供一种存储介质,用于计算机可读存储,其中,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如本发明说明书提供的任一项会话管理方法的步骤。In a third aspect, embodiments of the present invention also provide a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be processed by one or more The device executes to implement the steps of any session management method as provided in the specification of the present invention.
本发明实施例提供一种会话管理方法、装置及存储介质,本发明实施例获取应用程序发起的协议数据单元PDU会话建立请求,并获取已建立的PDU会话的个数,得到PDU会话个数;然后当确定所述PDU会话个数达到预设个数,且该应用程序具备使用PDU会话的权限时,对已建立的PDU会话中的一个PDU会话进行去激活处理;当确定已建立的一个PDU会话去激活完成后,根据PDU会话建立请求建立应用程序的PDU会话。由于用户设备的PDU 会话存在数量限制,上述方案,当具备使用PDU会话的权限的应用程序发起的PDU会话建立请求,而已建立的PDU会话的个数达到限制时,能够对已建立的一个PDU会话进行去激活处理,并在去激活完成后,建立该应用程序的PDU会话,极大地提高了PDU会话切换的智能性,提高了用户的使用体验。The embodiment of the present invention provides a session management method, device, and storage medium. The embodiment of the present invention obtains a protocol data unit PDU session establishment request initiated by an application program, and obtains the number of established PDU sessions to obtain the number of PDU sessions; Then, when it is determined that the number of PDU sessions reaches the preset number, and the application has the right to use PDU sessions, deactivate one of the established PDU sessions; when it is determined that one PDU session has been established After the session is deactivated, the PDU session of the application program is established according to the PDU session establishment request. Due to the limitation of the number of PDU sessions of the user equipment, the above solution can compare an established PDU session when the PDU session establishment request initiated by an application with the permission to use the PDU session and the number of established PDU sessions reaches the limit. Perform deactivation processing, and after the deactivation is completed, establish the PDU session of the application, which greatly improves the intelligence of PDU session switching and improves the user experience.
附图说明Description of the drawings
图1为本发明实施例提供的一种会话管理方法的步骤流程示意图;FIG. 1 is a schematic flowchart of steps of a session management method provided by an embodiment of the present invention;
图2为图1中的会话管理方法的子步骤流程示意图;FIG. 2 is a schematic flowchart of sub-steps of the session management method in FIG. 1;
图3为图2中的会话管理方法的子步骤流程示意图;FIG. 3 is a schematic flowchart of sub-steps of the session management method in FIG. 2;
图4为图2中的会话管理方法的另一子步骤流程示意图;FIG. 4 is a schematic flowchart of another sub-step of the session management method in FIG. 2;
图5为图2中的会话管理方法的另一子步骤流程示意图;FIG. 5 is a schematic flowchart of another sub-step of the session management method in FIG. 2;
图6为本发明实施例提供的一种会话管理装置的结构示意性框图。FIG. 6 is a schematic block diagram of the structure of a session management apparatus according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is only an example, and does not necessarily include all contents and operations/steps, nor does it have to be executed in the described order. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to actual conditions.
应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
本发明实施例提供一种会话管理方法、装置及存储介质。其中,该会话管理方法可应用于会话管理装置中,该会话管理装置可以设置在用户设备中,该用户设备可以是手机、平板电脑和笔记本电脑等电子设备。The embodiment of the present invention provides a session management method, device and storage medium. Wherein, the session management method can be applied to a session management device, and the session management device can be set in a user equipment, and the user equipment can be an electronic device such as a mobile phone, a tablet computer, and a notebook computer.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
请参照图1,图1为本发明实施例提供的一种会话管理方法的步骤流程示意图。Please refer to FIG. 1, which is a schematic flowchart of steps of a session management method according to an embodiment of the present invention.
如图1所示,该会话管理方法可以包括步骤S101至步骤S103。As shown in FIG. 1, the session management method may include step S101 to step S103.
步骤S101、获取应用程序发起的协议数据单元PDU会话建立请求,并获取已建立的PDU会话的个数,得到PDU会话个数。Step S101: Obtain a protocol data unit PDU session establishment request initiated by the application program, and obtain the number of established PDU sessions to obtain the number of PDU sessions.
其中,该PDU会话为协议数据单元会话(Protocol Data Unit session,PDU session),该PDU会话连接用户终端和数据网络(Data Network,DN)之间的PDU数据,即用户设备和数据网络之间的数据传输通道。需要说明的是,用户终端中包括的预设个数的PDU会话,该PDU会话的预设个数根据实际情况进行设置,本发明实施例对此不做具体限定,例如,该用户终端使用的是第三代合作伙伴计划(3rd Generation Partnership Project,3GPP)协议,该 用户设备可建立的PDU会话的最大个数为8个或更多;该8个PDU会话建立多个网络切片,该8个PDU会话建立网络切片的数量可以根据实际情况进行设置,本发明实施例中对此不做具体限定,例如,该8个PDU会话分别建立8个不同的网络切片,又例如,该8个PDU会话分别建立两个网络切片,即一个网络切片建立4个PDU会话,另外一个网络切片建立另外4个PDU会话。Among them, the PDU session is a protocol data unit session (Protocol Data Unit session, PDU session), which connects the PDU data between the user terminal and the data network (Data Network, DN), that is, the data between the user equipment and the data network Data transmission channel. It should be noted that, for the preset number of PDU sessions included in the user terminal, the preset number of PDU sessions is set according to the actual situation, which is not specifically limited in the embodiment of the present invention. For example, the user terminal uses It is the 3rd Generation Partnership Project (3GPP) protocol. The maximum number of PDU sessions that the user equipment can establish is 8 or more; the 8 PDU sessions establish multiple network slices, the 8 The number of PDU session establishment network slices can be set according to the actual situation, which is not specifically limited in the embodiment of the present invention. For example, the 8 PDU sessions establish 8 different network slices respectively, and for example, the 8 PDU sessions Two network slices are established respectively, that is, one network slice establishes 4 PDU sessions, and the other network slice establishes another 4 PDU sessions.
在一实施例中,当检测到用户设备上的某一应用程序启动时,该应用程序发起PDU会话建立请求,该会话管理装置获取该应用程序向发起PDU会话建立请求,并获取当前已建立PDU会话的个数,得到PDU会话个数。在一实施方式中,一个PDU会话可以对应一个应用程序标识符,也即一个应用程序使用一个PDU会话,即可以根据应用程序标识符来确认PDU会话的数量。In an embodiment, when it is detected that a certain application on the user equipment is started, the application initiates a PDU session establishment request, and the session management apparatus obtains the PDU session establishment request from the application and obtains the currently established PDU The number of sessions, to get the number of PDU sessions. In one embodiment, one PDU session may correspond to one application program identifier, that is, one application program uses one PDU session, that is, the number of PDU sessions may be confirmed according to the application program identifier.
步骤S102、当确定PDU会话个数达到预设个数,且应用程序具备使用PDU会话的权限时,对已建立的PDU会话中的一个PDU会话进行去激活处理。Step S102: When it is determined that the number of PDU sessions reaches the preset number, and the application has the right to use the PDU sessions, deactivate one of the established PDU sessions.
其中,PDU会话的预设个数为用户设备能够建立PDU会话的个数,该预设个数可以根据实际情况进行设置,本发明实施例对此不做具体限定,例如,该用户设备使用的是第三代合作伙伴计划(3rd Generation Partnership Project,3GPP)协议,该用户设备包括8个PDU会话,预设个数为8个或10个。The preset number of PDU sessions is the number of PDU sessions that the user equipment can establish. The preset number can be set according to actual conditions. The embodiment of the present invention does not specifically limit this. For example, the user equipment uses It is a 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) protocol. The user equipment includes 8 PDU sessions, and the preset number is 8 or 10.
在一实施例中,确定该应用程序是否具有使用PDU会话的权限的具体方式为:获取PDU会话的权限列表,其中,该权限列表中存储有具备使用PDU会话的权限的应用程序的应用程序标识符;获取当前运行的应用程序的应用程序标识符,并确定当前运行的应用程序的应用程序标识符是否位于该权限列表。当确定当前运行的应用程序的应用程序标识符位于该权限列表时,获取登录当前运行的应用程序的用户账号,并确定该用户账号是否位于当前运行的应用程序的白名单中;当确定该用户账号位于当前运行的应用程序的白名单中时,确定当前运行的应用程序具备使用PDU会话的权限;当确定该用户账号不位于当前运行的应用程序的白名单中,或当前运行的应用程序的应用程序标识符不位于该权限列表时,确定当前运行的应用程序不具备使用PDU会话的权限。其中,该应用程序的白名单为用户设置的PDU会话使用的权限应用程序的应用程序标识符的集合,该应用程序的白名单可以根据实际情况进行设置,本发明实施例对此不做具体限定;该用户账号可以根据实际情况进行选择,本发明实施例对此不做具体限定,例如该用户账号可以为用户的手机账号,当然也可以是其他任意合适的权限身份信息。In an embodiment, the specific method for determining whether the application has the right to use the PDU session is to obtain a permission list of the PDU session, where the permission list stores the application identifiers of the applications that have the right to use the PDU session Symbol; Obtain the application identifier of the currently running application, and determine whether the application identifier of the currently running application is in the permission list. When it is determined that the application identifier of the currently running application is in the permission list, obtain the user account for logging in to the currently running application, and determine whether the user account is in the whitelist of the currently running application; when the user is determined When the account is in the whitelist of the currently running application, it is determined that the currently running application has the permission to use the PDU session; when it is determined that the user account is not in the whitelist of the currently running application, or the current running application When the application identifier is not in the permission list, it is determined that the currently running application does not have the permission to use the PDU session. Wherein, the whitelist of the application is a collection of application identifiers of the permission application used by the PDU session set by the user. The whitelist of the application can be set according to the actual situation, which is not specifically limited in the embodiment of the present invention. The user account can be selected according to the actual situation, and the embodiment of the present invention does not specifically limit this. For example, the user account can be the user's mobile phone account, and of course, it can also be any other suitable authority identity information.
需要说明的是,主要通过应用程序的开发公司购买网络运营商的网络切片的网络切片选择辅助信息(network slice selection assistance information,NSSAI)和登录应用程序的用户账号购买了该应用程序的开发公司的会员时,该应用程序才具备使用PDU会话的权限。其中,该网络运营商可以根据实际情况确定,本发明实施例对此不做具体限定,例如该网络运营商可以选择移动运营商、联通运营商和电信运营商等运营商。It should be noted that the network slice selection assistance information (network slice selection assistance information, NSSAI) of the network operator’s network slice is mainly purchased through the application development company and the user account that has logged in to the application has purchased the application development company’s Only when you are a member, the app has the right to use the PDU session. Among them, the network operator can be determined according to actual conditions, and the embodiment of the present invention does not specifically limit this. For example, the network operator can select operators such as mobile operators, China Unicom operators, and telecommunications operators.
例如,当应用程序的开发公司购买网络运营商的网络切片的网络切片选择辅助信息时,登录应用程序的用户账号未购买了该应用程序的开发公司的会员,则该用户设备上的该应用程序不具备PDU会话的使用权限。For example, when the application development company purchases the network slice selection auxiliary information of the network operator’s network slice, and the user account that logs in to the application does not purchase a member of the application development company, the application on the user’s device Does not have the right to use the PDU session.
在一实施例中,如图2所示,步骤S102可以包括子步骤S1021至子步骤S1023。In an embodiment, as shown in FIG. 2, step S102 may include sub-step S1021 to sub-step S1023.
子步骤S1021、获取已建立的每个PDU会话的去激活优先级。In sub-step S1021, the deactivation priority of each established PDU session is obtained.
其中,去激活优先级为确定已建立PDU会话去激活的先后顺序,该去激活优先级可以根据已建立的PDU会话的建立时长、PDU会话的类型和/或用户设置的预设应用程序名单确定,已建立的PDU会话的去激活优先级越高,则表示该已建立的PDU会话的去激活的概率越大,而已建立的PDU会话的去激活优先级越低,则表示该已建立的PDU会话的去激活的概率越小。Wherein, the deactivation priority is to determine the order of deactivation of the established PDU session. The deactivation priority can be determined according to the establishment duration of the established PDU session, the type of the PDU session, and/or the preset application list set by the user. , The higher the deactivation priority of the established PDU session, the greater the probability of deactivation of the established PDU session, and the lower the deactivation priority of the established PDU session, it indicates the established PDU The lower the probability of deactivation of the session.
在一实施例中,如图3所示,步骤S1021可以包括子步骤S1021a至子步骤S1021b。In an embodiment, as shown in FIG. 3, step S1021 may include sub-step S1021a to sub-step S1021b.
步骤S1021a、获取已建立的每个PDU会话的建立时长。Step S1021a: Obtain the establishment duration of each PDU session that has been established.
例如,已建立的PDU会话一共有8个,分别为PDU会话1、PDU会话2、PDU会话3、PDU会话4、PDU会话5、PDU会话6、PDU会话7和PDU会话8,且PDU会话1的建立时长为50分钟,PDU会话2的建立时长为45分钟,PDU会话3的建立时长为40分钟,PDU会话4的建立时长为35分钟,PDU会话5的建立时长为30分钟,PDU会话6的建立时长为25分钟,PDU会话7的建立时长为20分钟,PDU会话8的建立时长为15分钟。For example, there are a total of 8 established PDU sessions, namely PDU session 1, PDU session 2, PDU session 3, PDU session 4, PDU session 5, PDU session 6, PDU session 7, and PDU session 8, and PDU session 1 The establishment time of PDU session 2 is 50 minutes, the establishment time of PDU session 2 is 45 minutes, the establishment time of PDU session 3 is 40 minutes, the establishment time of PDU session 4 is 35 minutes, the establishment time of PDU session 5 is 30 minutes, and the establishment time of PDU session 6 is 30 minutes. The establishment time of PDU session 7 is 25 minutes, the establishment time of PDU session 7 is 20 minutes, and the establishment time of PDU session 8 is 15 minutes.
子步骤S1021b、根据已建立的每个PDU会话的建立时长,确定已建立的每个PDU会话的去激活优先级。Sub-step S1021b: Determine the deactivation priority of each PDU session that has been established according to the establishment duration of each PDU session that has been established.
根据已建立的每个PDU会话的建立时长的大小,对每个PDU会话进行排序,得到PDU会话队列,并根据已建立的每个PDU会话在该PDU会话队列中的顺序,确定已建立的每个PDU会话的去激活优先级。其中,PDU会话建立的时长越长,该PDU会话的去激活的优先级越高。示例性的,PDU会话1的建立时长为50分钟,PDU会话2的建立时长为45分钟,PDU会话3的建立时长为40分钟,PDU会话4的建立时长为35分钟,PDU会话5的建立时长为30分钟,PDU会话6的建立时长为25分钟,PDU会话7的建立时长为20分钟,PDU会话8的建立时长为15分钟,对该8个PDU会话进行排序,得到PDU会话队列,即PDU会话1、PDU会话2、PDU会话3、PDU会话4、PDU会话5、PDU会话6、PDU会话7和PDU会话8去激活的优先级顺序依次由高优先级至低优先级,该PDU会话1去激活的优先级最高,PDU会话8去激活的优先级最低。According to the size of the establishment duration of each established PDU session, each PDU session is sorted to obtain the PDU session queue, and according to the order of each established PDU session in the PDU session queue, the established each PDU session is determined Deactivation priority of each PDU session. Among them, the longer the duration of the PDU session establishment, the higher the priority of deactivation of the PDU session. Exemplarily, the establishment time of PDU session 1 is 50 minutes, the establishment time of PDU session 2 is 45 minutes, the establishment time of PDU session 3 is 40 minutes, the establishment time of PDU session 4 is 35 minutes, and the establishment time of PDU session 5 is 35 minutes. It is 30 minutes, the establishment time of PDU session 6 is 25 minutes, the establishment time of PDU session 7 is 20 minutes, and the establishment time of PDU session 8 is 15 minutes. The 8 PDU sessions are sorted to obtain the PDU session queue, namely PDU Session 1, PDU session 2, PDU session 3, PDU session 4, PDU session 5, PDU session 6, PDU session 7, and PDU session 8 are deactivated in order of priority from high priority to low priority. This PDU session 1 The deactivation priority is the highest, and the deactivation priority of PDU session 8 is the lowest.
在一实施例中,如图4所示,步骤S1021可以包括子步骤S1021c至子步骤S1021d。In an embodiment, as shown in FIG. 4, step S1021 may include sub-step S1021c to sub-step S1021d.
步骤S1021c、获取已建立的每个PDU会话的类型。Step S1021c: Obtain the type of each PDU session that has been established.
其中,PDU会话的类型可以包括增强移动宽带(enhanced Mobile Broadband,eMMB)类型、极可靠低延迟通信(Ultra Reliable Low Latency Communications,URLLC)类型、大规模物联网类型和车用无线通信技术(vehicle to X,V2X)类型等。Among them, the types of PDU sessions can include enhanced Mobile Broadband (eMMB) types, Ultra Reliable Low Latency Communications (URLLC) types, large-scale IoT types, and vehicle wireless communication technologies (vehicle to X, V2X) type, etc.
子步骤S1021d、根据已建立的每个PDU会话的类型,确定已建立的每个PDU会话的去激活优先级。Sub-step S1021d: Determine the deactivation priority of each established PDU session according to the type of each established PDU session.
获取预存的PDU会话的类型与去激活优先级之间的映射关系表,并根据PDU会话的类型与去激活优先级之间的映射关系表和已建立的每个PDU会话的类型,确定已建立的每个PDU会话的去激活优先级。其中,该PDU会话的类型与去激活优先级之间的映射关系表可以根据实际情况进行设置,本发明实施例对此不做具体限定,例如,eMMB类型、URLLC类型、大规模物联网类型和V2X类型的去激活优先级依次由低到高。Obtain the mapping relationship table between the pre-stored PDU session type and the deactivation priority, and determine the established based on the mapping relationship table between the PDU session type and the deactivation priority and the type of each PDU session that has been established The deactivation priority of each PDU session. Among them, the mapping table between the type of the PDU session and the deactivation priority can be set according to the actual situation, which is not specifically limited in the embodiment of the present invention, for example, eMMB type, URLLC type, large-scale IoT type and The deactivation priority of the V2X type is from low to high.
示例性的,eMMB类型、URLLC类型、大规模物联网类型和V2X类型的去激活优先级 依次由低到高,获取到的已建立的PDU会话1、PDU会话2、PDU会话3、PDU会话4和PDU会话5的类型为eMMB类型,PDU会话6的类型为大规模物联网类型,PDU会话7的类型为V2X类型、PDU会话8的类型URLLC类型,则PDU会话的去激活优先级由高到低的排序为:PDU会话7、PDU会话6、PDU会话8、PDU会话1、PDU会话2、PDU会话3、PDU会话4和PDU会话5,其中,PDU会话1、PDU会话2、PDU会话3、PDU会话4和PDU会话5的去激活优先级相同,即已建立的PDU会话7的去激活优先级最高,PDU会话1、PDU会话2、PDU会话3、PDU会话4和PDU会话5的去激活优先级最低。Exemplarily, the deactivation priority of eMMB type, URLLC type, large-scale Internet of Things type and V2X type is from low to high, and the acquired established PDU session 1, PDU session 2, PDU session 3, and PDU session 4 are obtained. The type of session 5 with PDU is eMMB type, the type of PDU session 6 is large-scale IoT type, the type of PDU session 7 is V2X type, and the type of PDU session 8 is URLLC type, then the deactivation priority of PDU session is from high to The low order is: PDU session 7, PDU session 6, PDU session 8, PDU session 1, PDU session 2, PDU session 3, PDU session 4, and PDU session 5, among which, PDU session 1, PDU session 2, PDU session 3 , PDU session 4 and PDU session 5 have the same deactivation priority, that is, the established PDU session 7 has the highest deactivation priority, PDU session 1, PDU session 2, PDU session 3, PDU session 4, and PDU session 5 have the highest deactivation priority. The activation priority is the lowest.
在一实施例中,如图5所示,步骤S1021可以包括子步骤S1021e至子步骤S1021f。In an embodiment, as shown in FIG. 5, step S1021 may include sub-step S1021e to sub-step S1021f.
步骤S1021e、获取使用已建立的每个PDU会话的应用程序的标识符。Step S1021e: Obtain the identifier of the application program that uses each established PDU session.
其中,该应用程序的标识符可以根据实际情况进行设置,本发明实施例对此不做具体限定,例如,应用程序的标识符可以设置为APP1、APP2等。Wherein, the identifier of the application program can be set according to actual conditions, which is not specifically limited in the embodiment of the present invention. For example, the identifier of the application program can be set to APP1, APP2, and so on.
子步骤S1021f、根据使用已建立的每个PDU会话的应用程序的标识符和预设应用程序名单,确定已建立的每个PDU会话的去激活优先级。Sub-step S1021f: Determine the deactivation priority of each established PDU session according to the identifier of the application using each established PDU session and the preset application list.
获取预设应用程序的标识符名单,其中,该名单中存储有去激活优先级高的应用程序的标识符;获取已建立的每个PDU会话的应用程序的标识符,并确定已建立的每个PDU会话的应用程序的标识符是否位于该预设应用程序的标识符名单,当确定存在已建立的每个PDU会话的应用程序的标识符位于该预设应用程序的标识符名单,则应用程序的标识符对应的已建立的PDU会话的去激活PDU会话的优先级最高。其中,预设应用程序的标识符名单可以根据实际情况进行设置,本发明实施例对此不做具体限定。Obtain a list of identifiers of preset applications, where the identifiers of applications with high deactivation priority are stored in the list; obtain the identifiers of the applications of each established PDU session, and determine the identifiers of each established application. Whether the application identifier of each PDU session is located in the identifier list of the preset application, when it is determined that the identifier of each PDU session that has been established is located in the identifier list of the preset application, the application The deactivated PDU session of the established PDU session corresponding to the program identifier has the highest priority. Among them, the identifier list of the preset application program can be set according to actual conditions, which is not specifically limited in the embodiment of the present invention.
在一实施例中,获取预设应用程序的标识符名单,其中,该名单中存储有去激活优先级低的应用程序的标识符;获取已建立的每个PDU会话的应用程序的标识符,并确定已建立的每个PDU会话的应用程序的标识符是否位于该预设应用程序的标识符名单,当确定存在已建立的每个PDU会话的应用程序的标识符位于该预设应用程序的标识符名单,则应用程序的标识符对应的已建立的PDU会话的去激活PDU会话的优先级最低。其中,预设应用程序的标识符名单可以根据实际情况进行设置,本发明实施例对此不做具体限定。In one embodiment, a list of identifiers of preset applications is acquired, wherein the list stores identifiers of applications with low deactivation priority; acquiring the identifiers of the applications of each PDU session that has been established, And determine whether the application identifier of each established PDU session is located in the identifier list of the preset application. When it is determined that the identifier of the application program of each established PDU session is located in the preset application Identifier list, the deactivated PDU session of the established PDU session corresponding to the application program identifier has the lowest priority. Among them, the identifier list of the preset application program can be set according to actual conditions, which is not specifically limited in the embodiment of the present invention.
在一实施例中,获取预设应用程序的标识符名单;获取已建立的每个PDU会话的应用程序的标识符,并确定已建立的每个PDU会话的应用程序的标识符是否位于该预设应用程序的标识符名单,当确定存在已建立的每个PDU会话的应用程序的标识符位于该预设应用程序的标识符名单,则应用程序的标识符对应的已建立的PDU会话的去激活PDU会话的优先级最高。当确定不存在已建立的每个PDU会话的应用程序的标识符位于该预设应用程序的标识符名单,根据已建立的每个PDU会话的建立时长的大小,对每个PDU会话进行排序,得到PDU会话队列,并根据已建立的每个PDU会话在该PDU会话队列中的顺序,确定已建立的每个PDU会话的去激活的次优先级。其中,PDU会话建立的时长越长,该PDU会话的去激活的优先级越高。In one embodiment, a list of preset application program identifiers is obtained; the application program identifier of each established PDU session is obtained, and it is determined whether the application program identifier of each established PDU session is located in the preset application program. Suppose the identifier list of the application program, when it is determined that the identifier of the application program for each established PDU session is located in the identifier list of the preset application program, the identifier of the application program corresponds to the established PDU session Activating the PDU session has the highest priority. When it is determined that there is no established application identifier of each PDU session in the preset application identifier list, each PDU session is sorted according to the size of the establishment duration of each established PDU session, Obtain the PDU session queue, and determine the deactivation sub-priority of each established PDU session according to the sequence of each established PDU session in the PDU session queue. Among them, the longer the duration of the PDU session establishment, the higher the priority of deactivation of the PDU session.
需要说明的是,上述几种确定已建立的每个PDU会话的去激活优先级的方式,可以通过一种方式确定已建立的每个PDU会话的去激活优先级,也可以通过几种方式的组合确定已建立的每个PDU会话的去激活优先级的方式组合起来,进而确定已建立的每个PDU会话的去激活优先级,本发明实施例对此不做具体限定。It should be noted that the above several ways to determine the deactivation priority of each PDU session that have been established can be determined in one way or the deactivation priority of each PDU session that has been established. The methods for determining the deactivation priority of each established PDU session are combined to determine the deactivation priority of each established PDU session, which is not specifically limited in the embodiment of the present invention.
子步骤S1022、根据已建立的每个PDU会话的去激活优先级,确定待去激活的目标PDU会话。Sub-step S1022, according to the established deactivation priority of each PDU session, determine the target PDU session to be deactivated.
将去激活优先级最高的已建立PDU会话去作为待去激活的目标PDU会话,例如,PDU会话1已建立50分钟,PDU会话2已建立45分钟,PDU会话3已建立40分钟,PDU会话4已建立35分钟,PDU会话5已建立30分钟,PDU会话6已建立25分钟,PDU会话7已建立20分钟,PDU会话8已建立15分钟,将建立PDU会话的时长最长PDU会话作为去激活的目标PDU会话,则将已建立的PDU会话1作为待去激活的目标PDU会话。The established PDU session with the highest deactivation priority is used as the target PDU session to be deactivated. For example, PDU session 1 has been established for 50 minutes, PDU session 2 has been established for 45 minutes, PDU session 3 has been established for 40 minutes, and PDU session 4 has been established. 35 minutes have been established, PDU session 5 has been established for 30 minutes, PDU session 6 has been established for 25 minutes, PDU session 7 has been established for 20 minutes, PDU session 8 has been established for 15 minutes, and the longest PDU session is established as deactivated For the target PDU session, the established PDU session 1 is used as the target PDU session to be deactivated.
子步骤S1023、对目标PDU会话进行去激活处理。Sub-step S1023: Deactivate the target PDU session.
在得到目标PDU会话后,将该目标PDU会话对应的应用程序从PDU会话建立到普通的会话。通过对目标PDU会话进行去激活处理,以空置一个PDU会话,使得发起PDU会话建立请求的应用程序能够成功的建立PDU会话。After the target PDU session is obtained, the application corresponding to the target PDU session is established from the PDU session to the normal session. By deactivating the target PDU session, a PDU session is left empty, so that the application that initiates the PDU session establishment request can successfully establish the PDU session.
在一实施例中,获取该目标PDU会话的去激活标识符,并确定该目标PDU会话的去激活标识符是第一标识符还是第二标识符,当确定该去激活标识符是第一标识符时,确定该目标PDU去激活成功;当确定该去激活标识符是第二标识符时,确定该目标PDU去激活失败。其中,该去激活标识符根据实际情况设置,本发明实施例对此不做具体限定,例如,该第一标识符为1,该第二标识符为0。通过获取目标PDU会话的去激活标识符,进而确定该目标PDU会话是否去激活成功,提高了会话管理的效率。In an embodiment, the deactivation identifier of the target PDU session is obtained, and it is determined whether the deactivation identifier of the target PDU session is the first identifier or the second identifier. When it is determined that the deactivation identifier is the first identifier When it is determined that the target PDU is successfully deactivated; when it is determined that the deactivation identifier is the second identifier, it is determined that the deactivation of the target PDU fails. The deactivation identifier is set according to the actual situation, which is not specifically limited in the embodiment of the present invention. For example, the first identifier is 1 and the second identifier is 0. By obtaining the deactivation identifier of the target PDU session, it is determined whether the target PDU session is successfully deactivated, which improves the efficiency of session management.
在一实施例中,当确定PDU会话个数达到预设个数,且应用程序具备使用PDU会话的权限时,显示PDU会话选择页面,获取在用户设备的去激活PDU会话选择页面被选择的应用程序的标识符;根据被选择的标识符和已建立的每个PDU会话,得到该标识符对应的PDU会话,即得到待去激活的目标PDU会话,并对目标PDU会话进行去激活处理。通过获取用户在去激活PDU会话选择页面选择的应用程序的标识符,进而得到待去激活的目标PDU会话,并对该目标PDU会话进行去激活处理,提高了会话管理灵活性和提高了用户的使用体验。In one embodiment, when it is determined that the number of PDU sessions reaches the preset number and the application has the permission to use the PDU session, the PDU session selection page is displayed to obtain the application selected on the deactivated PDU session selection page of the user equipment The identifier of the program; according to the selected identifier and each established PDU session, the PDU session corresponding to the identifier is obtained, that is, the target PDU session to be deactivated is obtained, and the target PDU session is deactivated. By obtaining the identifier of the application selected by the user on the deactivation PDU session selection page, the target PDU session to be deactivated is obtained, and the target PDU session is deactivated, which improves the flexibility of session management and improves the user’s experience. Use experience.
步骤S103、当确定已建立的一个PDU会话去激活完成后,根据PDU会话建立请求建立应用程序的PDU会话。Step S103: After it is determined that the deactivation of an established PDU session is completed, the PDU session of the application program is established according to the PDU session establishment request.
当获取到的目标PDU会话的去激活标识符是第一标识符,则确定已建立的一个PDU会话去激活完成,得到一个空置的PDU会话,并根据PDU会话建立请求建立应用程序的PDU会话。在一实施例中,当对待去激活的目标PDU会话进行去激活之后,将目标PDU会话对应的应用程序建立到普通的会话,以使该应用程序能够进行信息数据的传输。When the acquired deactivation identifier of the target PDU session is the first identifier, it is determined that the deactivation of an established PDU session is completed, an empty PDU session is obtained, and the PDU session of the application is established according to the PDU session establishment request. In an embodiment, after the target PDU session to be deactivated is deactivated, the application program corresponding to the target PDU session is established to the normal session, so that the application program can transmit information and data.
上述实施例提供的会话管理方法,通过获取应用程序发起的协议数据单元PDU会话建立请求,并获取已建立的PDU会话的个数,得到PDU会话个数;然后当确定所述PDU会话个数达到预设个数,且该应用程序具备使用PDU会话的权限时,对已建立的PDU会话中的一个PDU会话进行去激活处理;当确定已建立的一个PDU会话去激活完成后,根据PDU会话建立请求建立所述应用程序的PDU会话。由于用户设备的PDU会话存在数量限制,上述方案,当具备使用PDU会话的权限的应用程序发起的PDU会话建立请求,而已建立的PDU会话的个数达到限制时,能够对已建立的一个PDU会话进行去激活处理,并在去激活完成后,建立该应用程序的PDU会话,极大地提高了PDU会话切换的智能性,提高了用户的使用体验。In the session management method provided by the foregoing embodiment, the protocol data unit PDU session establishment request initiated by the application program is obtained, and the number of established PDU sessions is obtained to obtain the number of PDU sessions; and then when it is determined that the number of PDU sessions reaches When the number is preset and the application has the authority to use PDU sessions, it will deactivate one of the established PDU sessions; when it is determined that an established PDU session has been deactivated, it will be established according to the PDU session Request to establish a PDU session of the application. Due to the limitation of the number of PDU sessions of the user equipment, the above solution can compare an established PDU session when the PDU session establishment request initiated by an application with the permission to use the PDU session and the number of established PDU sessions reaches the limit Perform deactivation processing, and after the deactivation is completed, establish the PDU session of the application, which greatly improves the intelligence of PDU session switching and improves the user experience.
请参阅图6,图6为本发明实施例提供的一种会话管理装置的结构示意性框图。Please refer to FIG. 6, which is a schematic block diagram of the structure of a session management apparatus according to an embodiment of the present invention.
如图6所示,会话管理装置200可以包括处理器201和存储器202,处理器201和存储器202通过总线203连接,该总线比如为I2C(Inter-integrated Circuit)总线。As shown in FIG. 6, the session management apparatus 200 may include a processor 201 and a memory 202, and the processor 201 and the memory 202 are connected by a bus 203, such as an I2C (Inter-integrated Circuit) bus.
具体地,处理器201用于提供计算和控制能力,支撑整个会话管理装置的运行。处理器201可以是中央处理单元(Central Processing Unit,CPU),该处理器201还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Specifically, the processor 201 is used to provide computing and control capabilities, and support the operation of the entire session management apparatus. The processor 201 may be a central processing unit (CPU), and the processor 201 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (ASICs). ), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
具体地,存储器202可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 202 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
本领域技术人员可以理解,图6中示出的结构,仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用于其上的会话管理装置的限定,具体的会话管理装置可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 6 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the session management device to which the solution of the present invention is applied. The specific session management The device may include more or fewer parts than shown in the figures, or combine certain parts, or have a different arrangement of parts.
其中,所述处理器用于运行存储在存储器中的计算机程序,并在执行所述计算机程序时实现本发明实施例提供的任意一种所述的会话管理方法。Wherein, the processor is configured to run a computer program stored in a memory, and when executing the computer program, implement any one of the session management methods provided in the embodiments of the present invention.
在一实施方式中,所述处理器用于运行存储在存储器中的计算机程序,并在执行所述计算机程序时实现如下步骤:In one embodiment, the processor is configured to run a computer program stored in a memory, and implement the following steps when executing the computer program:
获取应用程序发起的协议数据单元PDU会话建立请求,并获取已建立的PDU会话的个数,得到PDU会话个数;Obtain the protocol data unit PDU session establishment request initiated by the application program, and obtain the number of established PDU sessions to obtain the number of PDU sessions;
当确定所述PDU会话个数达到预设个数,且所述应用程序具备使用PDU会话的权限时,对已建立的一个PDU会话进行去激活处理;When it is determined that the number of the PDU sessions reaches the preset number and the application has the right to use the PDU sessions, deactivate an established PDU session;
当确定已建立的PDU会话中的一个PDU会话去激活完成后,根据所述PDU会话建立请求建立所述应用程序的PDU会话。When it is determined that one of the established PDU sessions is deactivated, the PDU session of the application program is established according to the PDU session establishment request.
在一实施例中,所述处理器在实现所述对已建立的PDU会话中的一个PDU会话进行去激活处理时,用于实现:In an embodiment, when the processor implements the deactivation process for one of the established PDU sessions, the processor is configured to implement:
获取已建立的每个PDU会话的去激活优先级;Obtain the deactivation priority of each PDU session that has been established;
根据已建立的每个PDU会话的去激活优先级,确定待去激活的目标PDU会话;Determine the target PDU session to be deactivated according to the deactivation priority of each PDU session that has been established;
对所述目标PDU会话进行去激活处理。Deactivate the target PDU session.
在一实施例中,所述处理器在实现所述获取已建立的每个PDU会话的去激活优先级时,用于实现:In an embodiment, when the processor realizes the acquisition of the deactivation priority of each established PDU session, it is configured to realize:
获取已建立的每个PDU会话的建立时长;Obtain the establishment duration of each PDU session that has been established;
根据已建立的每个PDU会话的建立时长,确定已建立的每个PDU会话的去激活优先级。According to the establishment duration of each established PDU session, the deactivation priority of each established PDU session is determined.
在一实施例中,所述处理器在实现所述获取已建立的每个PDU会话的去激活优先级时,用于实现:In an embodiment, when the processor realizes the acquisition of the deactivation priority of each established PDU session, it is configured to realize:
获取已建立的每个PDU会话的类型;Obtain the type of each PDU session that has been established;
根据已建立的每个PDU会话的类型,确定已建立的每个PDU会话的去激活优先级。According to the type of each PDU session that has been established, the deactivation priority of each PDU session that has been established is determined.
在一实施例中,所述处理器在实现所述获取已建立的每个PDU会话的去激活优先级时, 用于实现:In an embodiment, when the processor implements the acquisition of the deactivation priority of each established PDU session, it is configured to implement:
获取使用已建立的每个PDU会话的应用程序的标识符;Obtain the identifier of the application that uses each established PDU session;
根据使用已建立的每个PDU会话的应用程序的标识符和预设应用程序名单,确定已建立的每个PDU会话的去激活优先级。According to the identifier of the application using each established PDU session and the preset application list, the deactivation priority of each established PDU session is determined.
在一实施例中,所述处理器在实现所述获取当前运行的应用程序发起的协议数据单元PDU会话建立请求,并获取已建立的PDU会话的个数,得到PDU会话个数之后,还用于实现:In an embodiment, the processor implements the acquisition of the protocol data unit PDU session establishment request initiated by the currently running application, and acquires the number of established PDU sessions, and after obtaining the number of PDU sessions, it also uses To achieve:
当确定所述PDU会话个数达到预设个数,且所述应用程序具备使用PDU会话的权限时,显示PDU会话选择页面;When it is determined that the number of the PDU sessions reaches the preset number, and the application program has the authority to use the PDU sessions, display the PDU session selection page;
所述对已建立的PDU会话中的一个PDU会话进行去激活处理,包括:The deactivation processing of one of the established PDU sessions includes:
获取在所述PDU会话选择页面被选择的PDU会话标识符;Acquiring the PDU session identifier selected on the PDU session selection page;
根据所述PDU会话标识符确定待去激活的目标PDU会话;Determine the target PDU session to be deactivated according to the PDU session identifier;
对所述目标PDU会话进行去激活处理。Deactivate the target PDU session.
在一实施例中,所述处理器在实现所述根据已建立的每个PDU会话的去激活优先级,确定待去激活的目标PDU会话时,用于实现:In an embodiment, when the processor determines the target PDU session to be deactivated according to the deactivation priority of each established PDU session, it is used to implement:
取所述去激活优先级最高的已建立的PDU会话作为待去激活的目标PDU会话。The established PDU session with the highest deactivation priority is taken as the target PDU session to be deactivated.
在一实施例中,所述处理器还用于实现:In an embodiment, the processor is further configured to implement:
获取所述目标PDU会话的去激活标识符;Acquiring the deactivation identifier of the target PDU session;
当确定所述去激活标识符是第一标识符时,确定所述目标PDU会话去激活成功;When it is determined that the deactivation identifier is the first identifier, it is determined that the target PDU session is successfully deactivated;
当确定所述去激活标识符是第二标识符时,确定所述目标PDU会话去激活失败。When it is determined that the deactivation identifier is the second identifier, it is determined that the deactivation of the target PDU session fails.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的会话管理装置的具体工作过程,可以参考前述会话管理方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described session management device can refer to the corresponding process in the foregoing session management method embodiment. Repeat it again.
本发明实施例还提供一种存储介质,用于计算机可读存储,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如本发明说明书提供的任一项会话管理的方法的步骤。The embodiment of the present invention also provides a storage medium for computer-readable storage, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize such as The steps of any session management method provided in the specification of the present invention.
其中,所述存储介质可以是前述实施例所述的会话管理装置的内部存储单元,例如所述会话管理装置的硬盘或内存。所述存储介质也可以是所述会话管理装置的外部存储设备,例如所述会话管理装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。Wherein, the storage medium may be the internal storage unit of the session management device described in the foregoing embodiment, for example, the hard disk or memory of the session management device. The storage medium may also be an external storage device of the session management device, such as a plug-in hard disk equipped on the session management device, a smart memory card (Smart Media Card, SMC), or a Secure Digital (SD) Card, Flash Card, etc.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质可以包括在用于 存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质可以包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可以包括任何信息递送介质。A person of ordinary skill in the art can understand that all or some of the steps, functional modules/units in the system, and apparatus in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. In the hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may consist of several physical components. The components are executed cooperatively. Certain physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium may include volatile and non-volatile implementations in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Lost, removable and non-removable media. Computer storage media may include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, tapes, magnetic disk storage or other magnetic storage devices, or Any other medium that can be used to store desired information and that can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .
应当理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be understood that the term "and/or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or system. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The sequence numbers of the foregoing embodiments of the present invention are only for description, and do not represent the superiority or inferiority of the embodiments. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Anyone familiar with the technical field can easily think of various equivalents within the technical scope disclosed by the present invention. Modifications or replacements, these modifications or replacements should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (10)

  1. 一种会话管理方法,包括:A session management method, including:
    获取应用程序发起的协议数据单元PDU会话建立请求,并获取已建立的PDU会话的个数,得到PDU会话个数;Obtain the protocol data unit PDU session establishment request initiated by the application program, and obtain the number of established PDU sessions to obtain the number of PDU sessions;
    当确定所述PDU会话个数达到预设个数,且所述应用程序具备使用PDU会话的权限时,对已建立的PDU会话中的一个PDU会话进行去激活处理;When it is determined that the number of the PDU sessions reaches the preset number and the application has the right to use the PDU sessions, deactivate one of the established PDU sessions;
    当确定已建立的一个PDU会话去激活完成后,根据所述PDU会话建立请求建立所述应用程序的PDU会话。When it is determined that the deactivation of an established PDU session is completed, the PDU session of the application program is established according to the PDU session establishment request.
  2. 根据权利要求1所述的会话管理方法,其中,所述对已建立的PDU会话中的一个PDU会话进行去激活处理,包括:The session management method according to claim 1, wherein said deactivating one of the established PDU sessions comprises:
    获取已建立的每个PDU会话的去激活优先级;Obtain the deactivation priority of each PDU session that has been established;
    根据已建立的每个PDU会话的去激活优先级,确定待去激活的目标PDU会话;Determine the target PDU session to be deactivated according to the deactivation priority of each PDU session that has been established;
    对所述目标PDU会话进行去激活处理。Deactivate the target PDU session.
  3. 根据权利要求2所述的会话管理方法,其中,所述获取已建立的每个PDU会话的去激活优先级,包括:The session management method according to claim 2, wherein said obtaining the deactivation priority of each established PDU session comprises:
    获取已建立的每个PDU会话的建立时长;Obtain the establishment duration of each PDU session that has been established;
    根据已建立的每个PDU会话的建立时长,确定已建立的每个PDU会话的去激活优先级。According to the establishment duration of each established PDU session, the deactivation priority of each established PDU session is determined.
  4. 根据权利要求2所述的会话管理方法,其中,所述获取已建立的每个PDU会话的去激活优先级,包括:The session management method according to claim 2, wherein said obtaining the deactivation priority of each established PDU session comprises:
    获取已建立的每个PDU会话的类型;Obtain the type of each PDU session that has been established;
    根据已建立的每个PDU会话的类型,确定已建立的每个PDU会话的去激活优先级。According to the type of each PDU session that has been established, the deactivation priority of each PDU session that has been established is determined.
  5. 根据权利要求2所述的会话管理方法,其中,所述获取已建立的每个PDU会话的去激活优先级,包括:The session management method according to claim 2, wherein said obtaining the deactivation priority of each established PDU session comprises:
    获取使用已建立的每个PDU会话的应用程序的标识符;Obtain the identifier of the application that uses each established PDU session;
    根据使用已建立的每个PDU会话的应用程序的标识符和预设应用程序名单,确定已建立的每个PDU会话的去激活优先级。According to the identifier of the application using each established PDU session and the preset application list, the deactivation priority of each established PDU session is determined.
  6. 根据权利要求1至5中任一项所述的会话管理方法,其中,所述获取应用程序发起的协议数据单元PDU会话建立请求,并获取已建立的PDU会话的个数,得到PDU会话个数之后,还包括:The session management method according to any one of claims 1 to 5, wherein the obtaining the protocol data unit PDU session establishment request initiated by the application program, and obtaining the number of established PDU sessions, obtains the number of PDU sessions After that, it also includes:
    当确定所述PDU会话个数达到预设个数,且所述应用程序具备使用PDU会话的权限时,显示PDU会话选择页面;When it is determined that the number of the PDU sessions reaches the preset number, and the application program has the authority to use the PDU sessions, display the PDU session selection page;
    所述对已建立的PDU会话中的一个PDU会话进行去激活处理,包括:The deactivation processing of one of the established PDU sessions includes:
    获取在所述PDU会话选择页面被选择的PDU会话标识符;Acquiring the PDU session identifier selected on the PDU session selection page;
    根据所述PDU会话标识符确定待去激活的目标PDU会话;Determine the target PDU session to be deactivated according to the PDU session identifier;
    对所述目标PDU会话进行去激活处理。Deactivate the target PDU session.
  7. 根据权利要求2所述的会话管理方法,其中,所述根据已建立的每个PDU会话的去激活优先级,确定待去激活的目标PDU会话,包括:The session management method according to claim 2, wherein the determining the target PDU session to be deactivated according to the deactivation priority of each established PDU session comprises:
    获取所述去激活优先级最高的已建立的PDU会话作为待去激活的目标PDU会话。Obtain the established PDU session with the highest deactivation priority as the target PDU session to be deactivated.
  8. 根据权利要求7所述的会话管理方法,其中,所述方法还包括:The session management method according to claim 7, wherein the method further comprises:
    获取所述目标PDU会话的去激活标识符;Acquiring the deactivation identifier of the target PDU session;
    当确定所述去激活标识符是第一标识符时,确定所述目标PDU会话去激活成功;When it is determined that the deactivation identifier is the first identifier, it is determined that the target PDU session is successfully deactivated;
    当确定所述去激活标识符是第二标识符时,确定所述目标PDU会话去激活失败。When it is determined that the deactivation identifier is the second identifier, it is determined that the target PDU session deactivation fails.
  9. 一种会话管理装置,其中,所述会话管理装置包括处理器、存储器、存储在所述存储器上并可被所述处理器执行的计算机程序以及用于实现所述处理器和所述存储器之间的连接通信的数据总线,其中所述计算机程序被所述处理器执行时,实现如权利要求1至8中任一项所述的会话管理方法的步骤。A session management device, wherein the session management device includes a processor, a memory, a computer program that is stored on the memory and can be executed by the processor, and is used for realizing communication between the processor and the memory. A data bus connected to communication, wherein when the computer program is executed by the processor, the steps of the session management method according to any one of claims 1 to 8 are implemented.
  10. 一种存储介质,用于计算机可读存储,其中,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1至8中任一项所述的会话管理方法的步骤。A storage medium used for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement claims 1 to 8 The steps of any one of the session management methods.
PCT/CN2021/094174 2020-06-24 2021-05-17 Session management method and apparatus, and storage medium WO2021258912A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010591572.7 2020-06-24
CN202010591572.7A CN113839981A (en) 2020-06-24 2020-06-24 Session management method, device and storage medium

Publications (1)

Publication Number Publication Date
WO2021258912A1 true WO2021258912A1 (en) 2021-12-30

Family

ID=78964732

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/094174 WO2021258912A1 (en) 2020-06-24 2021-05-17 Session management method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN113839981A (en)
WO (1) WO2021258912A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108811009A (en) * 2017-05-05 2018-11-13 电信科学技术研究院 A kind of management method and device of PDU session connections
CN110351890A (en) * 2018-04-04 2019-10-18 华为技术有限公司 Communication means, communication equipment under centralized unit-distributed unit framework
US20200077357A1 (en) * 2017-03-20 2020-03-05 Samsung Electronics Co., Ltd. Method for supporting efficient pdu session activation and deactivation in cellular networks
CN110933709A (en) * 2019-12-24 2020-03-27 展讯通信(上海)有限公司 Protocol data unit session management method and communication device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10462840B2 (en) * 2017-01-09 2019-10-29 Huawei Technologies Co., Ltd. System and methods for session management
CN109548175B (en) * 2017-08-15 2021-11-19 华为技术有限公司 Session processing method and device
CN109428705A (en) * 2017-09-01 2019-03-05 中国移动通信有限公司研究院 Carrier activation method, equipment and the computer readable storage medium of multicarrier system
CN110519809B (en) * 2018-05-21 2020-12-15 华为技术有限公司 Method, network element, equipment, device, system and storage medium for managing PDU session
CN110474969B (en) * 2019-07-29 2021-07-16 华为技术有限公司 Session management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200077357A1 (en) * 2017-03-20 2020-03-05 Samsung Electronics Co., Ltd. Method for supporting efficient pdu session activation and deactivation in cellular networks
CN108811009A (en) * 2017-05-05 2018-11-13 电信科学技术研究院 A kind of management method and device of PDU session connections
CN110351890A (en) * 2018-04-04 2019-10-18 华为技术有限公司 Communication means, communication equipment under centralized unit-distributed unit framework
CN110933709A (en) * 2019-12-24 2020-03-27 展讯通信(上海)有限公司 Protocol data unit session management method and communication device

Also Published As

Publication number Publication date
CN113839981A (en) 2021-12-24

Similar Documents

Publication Publication Date Title
US20220303276A1 (en) Network connection method, hotspot terminal and management terminal
AU2017427437B2 (en) Pdu type setting method, ue policy setting method, and related entity
AU2014235793B2 (en) Automatic tuning of virtual data center resource utilization policies
US10555253B2 (en) Method and system for selection of an access and mobility management function in an access network environment
WO2019100921A1 (en) Information pushing method and device
US11516160B1 (en) Techniques for efficient messaging client communication by updating user subscription stores based on subscription type and commands
US20190207892A1 (en) Techniques for extensible message indexing
GB2507490A (en) Handling of device-to-device data units during handover to a cellular bearer
US20220369401A1 (en) Method and apparatus for admission control of sessions based on priority
US20190207888A1 (en) Techniques for message indexing
US20190207873A1 (en) Techniques for batched bulk processing
US10673791B2 (en) Techniques for data reads from secondary stores
US20190207899A1 (en) Techniques for messaging conversation indexing
WO2021258912A1 (en) Session management method and apparatus, and storage medium
WO2020048382A1 (en) Method for controlling display of service identifier, and related product
WO2020098594A1 (en) Sequence generation and processing method and apparatus
US10642877B2 (en) Techniques for consistent reads in a split message store
US9763102B2 (en) Resources in a communication system
US8412159B2 (en) Method, apparatus and computer program product for security configuration coordination during a cell update procedure
WO2018028532A1 (en) Control channel transmission method, device and system
US10645040B2 (en) Techniques for consistent writes in a split message store
WO2018196624A1 (en) Parameter configuration method and apparatus
WO2024094015A1 (en) Transmission method, ue and readable storage medium
GB2480127A (en) Cell update message containing a security configuration information element
WO2012131661A1 (en) Method, apparatus and computer program product for security configuration coordination during a cell update procedure

Legal Events

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

Ref document number: 21829840

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/05/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21829840

Country of ref document: EP

Kind code of ref document: A1