CN113068237B - Session management method, user equipment, computer storage medium and system - Google Patents

Session management method, user equipment, computer storage medium and system Download PDF

Info

Publication number
CN113068237B
CN113068237B CN202110335241.1A CN202110335241A CN113068237B CN 113068237 B CN113068237 B CN 113068237B CN 202110335241 A CN202110335241 A CN 202110335241A CN 113068237 B CN113068237 B CN 113068237B
Authority
CN
China
Prior art keywords
pdu session
session
pdu
establishing
user equipment
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN202110335241.1A
Other languages
Chinese (zh)
Other versions
CN113068237A (en
Inventor
谢朝阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110335241.1A priority Critical patent/CN113068237B/en
Priority to CN202210813026.2A priority patent/CN115226176B/en
Publication of CN113068237A publication Critical patent/CN113068237A/en
Priority to PCT/CN2022/075454 priority patent/WO2022206173A1/en
Application granted granted Critical
Publication of CN113068237B publication Critical patent/CN113068237B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Landscapes

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

Abstract

本申请实施例公开了一种会话管理方法、用户设备、计算机存储介质及系统,应用于用户设备,该方法包括:接收协议数据单元PDU会话修改命令;其中,PDU会话修改命令用于指示对当前的第一PDU会话进行切换;以及在检测到已建立PDU会话数量小于预设会话阈值的情况下,建立第二PDU会话并记录监测结果;其中,监测结果至少包括:第二PDU会话的建立耗时和下行用户数据流量;根据监测结果,对第一PDU会话进行释放。这样,不仅能够保证业务流传输的连续性,而且还能够缩短新旧会话同时存在的时间,避免用户设备和网络设备对资源的浪费,有助于提高系统性能。

Figure 202110335241

The embodiment of the present application discloses a session management method, user equipment, computer storage medium and system, which are applied to user equipment. The method includes: receiving a protocol data unit PDU session modification command; wherein the PDU session modification command is used to indicate the current and when it is detected that the number of established PDU sessions is less than the preset session threshold, establish a second PDU session and record the monitoring result; wherein, the monitoring result includes at least: the establishment consumption of the second PDU session time and downlink user data flow; release the first PDU session according to the monitoring result. In this way, not only the continuity of service flow transmission can be ensured, but also the time during which new and old sessions coexist can be shortened, resource waste of user equipment and network equipment can be avoided, and system performance can be improved.

Figure 202110335241

Description

一种会话管理方法、用户设备、计算机存储介质及系统A session management method, user equipment, computer storage medium and system

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种会话管理方法、用户设备、计算机存储介质及系统。The present application relates to the field of communication technologies, and in particular, to a session management method, user equipment, computer storage medium and system.

背景技术Background technique

随着通信技术的快速发展,第五代(Fifth Generation,5G)移动通信技术应用而生。在5G系统中,为了保证数据传输的可靠性,支持在用户设备(User Equipment,UE)和网络设备之间可创建多个协议数据单元(Protocol Data Unit,PDU)会话。这里,业务和会话连续性(Service and Session Continuity,SSC)模式是5G系统中PDU会话的一种属性,用于指示PDU会话进行业务传输时,其业务流连续性的保障模式。With the rapid development of communication technology, the fifth generation (Fifth Generation, 5G) mobile communication technology is applied. In the 5G system, in order to ensure the reliability of data transmission, it is supported that multiple Protocol Data Unit (PDU) sessions can be created between user equipment (User Equipment, UE) and network equipment. Here, the Service and Session Continuity (SSC) mode is an attribute of the PDU session in the 5G system, and is used to indicate the guarantee mode of the service flow continuity of the PDU session when the service is transmitted.

目前,SSC模式的取值有三种,分别是SSC模式1、SSC模式2和SSC模式3。当网络设备决定发起SSC模式3的PDU会话切换过程时,意味着网络侧已经不希望通过该PDU会话进行业务流传输,并随时可以将其释放。然而,由于针对本次切换过程具体实现的不确定性,当前用户设备采取的释放策略均存在一些缺陷,比如要么使得正在传输的下行业务数据无法传输给用户,导致业务流传输出现中断;要么长时间的保持新旧会话同时存在,导致用户和网络都出现资源浪费的情况,使得系统性能较差。At present, there are three values of SSC mode, namely SSC mode 1, SSC mode 2 and SSC mode 3. When the network device decides to initiate the PDU session switching process in SSC mode 3, it means that the network side no longer wishes to perform service flow transmission through the PDU session, and can release it at any time. However, due to the uncertainty of the specific implementation of the handover process, the current release strategy adopted by the user equipment has some defects, for example, either the downlink service data being transmitted cannot be transmitted to the user, resulting in interruption of service flow transmission; The time keeping of new and old sessions coexists, resulting in waste of resources for both users and the network, resulting in poor system performance.

发明内容SUMMARY OF THE INVENTION

本申请提出一种会话管理方法、用户设备、计算机存储介质及系统,不仅能够保证业务流传输的连续性,而且还能够缩短新旧会话同时存在的时间,避免用户设备和网络设备对资源的浪费,有助于提高系统性能。The present application proposes a session management method, user equipment, computer storage medium and system, which can not only ensure the continuity of service flow transmission, but also shorten the time when new and old sessions exist at the same time, and avoid the waste of resources by user equipment and network equipment. Helps improve system performance.

为达到上述目的,本申请的技术方案是这样实现的:In order to achieve the above-mentioned purpose, the technical scheme of the present application is achieved in this way:

第一方面,本申请实施例提供了一种会话管理方法,应用于用户设备,该方法包括:In a first aspect, an embodiment of the present application provides a session management method, which is applied to a user equipment, and the method includes:

接收协议数据单元PDU会话修改命令;其中,所述PDU会话修改命令用于指示对当前的第一PDU会话进行切换;以及receiving a protocol data unit PDU session modification command; wherein the PDU session modification command is used to instruct the current first PDU session to be switched; and

在检测到已建立PDU会话数量小于预设会话阈值的情况下,建立第二PDU会话并记录监测结果;其中,所述监测结果至少包括:所述第二PDU会话的建立耗时和下行用户数据流量;When it is detected that the number of established PDU sessions is less than the preset session threshold, a second PDU session is established and a monitoring result is recorded; wherein the monitoring result at least includes: the establishment time and downlink user data of the second PDU session flow;

根据所述监测结果,对所述第一PDU会话进行释放。According to the monitoring result, the first PDU session is released.

第二方面,本申请实施例提供了一种用户设备,该用户设备包括接收单元、建立单元和释放单元;其中,In a second aspect, an embodiment of the present application provides a user equipment, where the user equipment includes a receiving unit, a establishing unit, and a releasing unit; wherein,

所述接收单元,配置为接收协议数据单元PDU会话修改命令;其中,所述PDU会话修改命令用于指示对当前的第一PDU会话进行切换;The receiving unit is configured to receive a protocol data unit PDU session modification command; wherein the PDU session modification command is used to instruct the current first PDU session to be switched;

所述建立单元,配置为在检测到已建立PDU会话数量小于预设会话阈值的情况下,建立第二PDU会话并记录监测结果;其中,所述监测结果至少包括:所述第二PDU会话的建立耗时和下行用户数据流量;The establishment unit is configured to establish a second PDU session and record a monitoring result when it is detected that the number of established PDU sessions is less than a preset session threshold; wherein the monitoring result at least includes: the second PDU session. Establish time-consuming and downlink user data traffic;

所述释放单元,配置为根据所述监测结果,对所述第一PDU会话进行释放。The releasing unit is configured to release the first PDU session according to the monitoring result.

第三方面,本申请实施例提供了一种用户设备,该用户设备包括存储器和处理器;其中,In a third aspect, an embodiment of the present application provides a user equipment, where the user equipment includes a memory and a processor; wherein,

所述存储器,用于存储能够在所述处理器上运行的计算机程序;the memory for storing a computer program executable on the processor;

所述处理器,用于在运行所述计算机程序时,执行如第一方面所述的方法。The processor is configured to execute the method according to the first aspect when running the computer program.

第四方面,本申请实施例提供了一种计算机存储介质,该计算机存储介质存储有计算机程序,所述计算机程序被至少一个处理器执行时实现如第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program implements the method according to the first aspect when the computer program is executed by at least one processor.

第五方面,本申请实施例提供了一种通信系统,该通信系统包括网络设备和如第二方面或第三方面所述的用户设备。In a fifth aspect, an embodiment of the present application provides a communication system, where the communication system includes a network device and the user equipment according to the second aspect or the third aspect.

本申请实施例所提供的一种会话管理方法、用户设备、计算机存储介质及系统,通过接收协议数据单元PDU会话修改命令;其中,所述PDU会话修改命令用于指示对当前的第一PDU会话进行切换;以及在检测到已建立PDU会话数量小于预设会话阈值的情况下,建立第二PDU会话并记录监测结果;其中,所述监测结果至少包括:所述第二PDU会话的建立耗时和下行用户数据流量;根据所述监测结果,对所述第一PDU会话进行释放。这样,本申请的技术方案采用由用户设备统一发起旧PDU会话释放的方式,保证了业务流传输的连续性,也能够缩短新旧PDU会话同时存在的时间,从而可以避免用户设备和网络设备对资源的浪费,而且还可以避免用户数据出现传输中断的风险,有助于提高系统性能。In a session management method, user equipment, computer storage medium, and system provided by the embodiments of the present application, a protocol data unit PDU session modification command is received; wherein, the PDU session modification command is used to indicate the current first PDU session Perform handover; and when it is detected that the number of established PDU sessions is less than a preset session threshold, establish a second PDU session and record a monitoring result; wherein, the monitoring result includes at least: the establishment time of the second PDU session and downlink user data traffic; according to the monitoring result, release the first PDU session. In this way, the technical solution of the present application adopts a method in which the user equipment uniformly initiates the release of the old PDU session, which ensures the continuity of service flow transmission, and can also shorten the time during which the old and new PDU sessions exist at the same time, thereby avoiding user equipment and network equipment. It also avoids the risk of transmission interruption of user data, which helps to improve system performance.

附图说明Description of drawings

图1为本申请实施例提供的一种用户设备与网络设备之间的关系示意图;1 is a schematic diagram of a relationship between a user equipment and a network device according to an embodiment of the present application;

图2为相关技术提供的一种5G网络下SSC模式3的PDU会话切换过程的流程示意图;2 is a schematic flowchart of a PDU session switching process in SSC mode 3 under a 5G network provided by the related art;

图3为相关技术提供的另一种5G网络下SSC模式3的PDU会话切换过程的流程示意图;3 is a schematic flowchart of another PDU session switching process in SSC mode 3 in a 5G network provided by the related art;

图4为本申请实施例提供的一种会话管理方法的流程示意图;4 is a schematic flowchart of a session management method provided by an embodiment of the present application;

图5为本申请实施例提供的一种会话管理方法的详细流程示意图;FIG. 5 is a detailed schematic flowchart of a session management method provided by an embodiment of the present application;

图6为本申请实施例提供的另一种会话管理方法的详细流程示意图;6 is a detailed schematic flowchart of another session management method provided by an embodiment of the present application;

图7为本申请实施例提供的一种用户设备的组成结构示意图;FIG. 7 is a schematic diagram of the composition and structure of a user equipment according to an embodiment of the present application;

图8为本申请实施例提供的一种用户设备的具体硬件结构示意图;FIG. 8 is a schematic diagram of a specific hardware structure of a user equipment according to an embodiment of the present application;

图9为本申请实施例提供的一种通信系统的组成结构示意图。FIG. 9 is a schematic diagram of the composition and structure of a communication system according to an embodiment of the present application.

具体实施方式Detailed ways

为了能够更加详尽地了解本申请实施例的特点与技术内容,下面结合附图对本申请实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本申请实施例。In order to have a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.

在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。还需要指出,本申请实施例所涉及的术语“第一\第二\第三”仅是用于区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" can be the same or a different subset of all possible embodiments, and Can be combined with each other without conflict. It should also be pointed out that the term "first\second\third" involved in the embodiments of the present application is only used to distinguish similar objects, and does not represent a specific ordering of objects. It is understood that "first\second\" Where permitted, the specific order or sequence may be interchanged so that the embodiments of the present application described herein can be implemented in sequences other than those illustrated or described herein.

需要说明的是,业务和会话连续性(Service and Session Continuity,SSC)模式是5G系统中协议数据单元(Protocol Data Unit,PDU)会话的一种属性,用于指示PDU会话进行业务传输时,其业务流连续性的保障模式。在第三代合作伙伴计划(3rd GenerationPartnership Project,3GPP)的技术规范(Technical Specification,TS)24.501协议中,规定SSC模式的取值有三种,分别是SSC模式1、SSC模式2和SSC模式3。对于值为SSC模式1的PDU会话,其协议数据单元会话锚点(PDU Session Anchor,PSA)在会话存在期间不会改变;对于值为SSC模式2的PDU会话,其PSA可以通过先释放旧会话,随后建立连接到同一数据网络(Data Network,DN)的新会话的方式进行切换;对于值为SSC模式3的PDU会话,其PSA是通过先建立连接到同一DN的新会话,再删除旧会话的方式进行切换,这时候新旧会话会有一段共存期。It should be noted that the Service and Session Continuity (SSC) mode is an attribute of the Protocol Data Unit (PDU) session in the 5G system, which is used to indicate that when the PDU session performs service transmission, its A guarantee model for business flow continuity. In the Technical Specification (TS) 24.501 protocol of the 3rd Generation Partnership Project (3GPP), three values of the SSC mode are specified, namely SSC mode 1, SSC mode 2 and SSC mode 3. For a PDU session whose value is SSC mode 1, its protocol data unit session anchor (PDU Session Anchor, PSA) will not change during the existence of the session; for a PDU session whose value is SSC mode 2, its PSA can be released by first releasing the old session , and then switch by establishing a new session connected to the same data network (Data Network, DN); for a PDU session whose value is SSC mode 3, its PSA is to first establish a new session connected to the same DN, and then delete the old session. In this case, the old and new sessions will coexist for a period of time.

3GPP TS 23.502协议中规定在SSC模式3的PDU会话切换过程中,网络侧的会话管理功能(Session Management Function,SMF)可能会发送给用户侧的会话管理模块(Session Management,SM)一个与时间有关的参数(通常称为“会话保留时间”)。SM收到该参数后直接上报给用户侧的应用处理器(Application Processor,AP),此参数是网络侧是用于通知用户侧在本次切换中,网络侧SMF愿意为用户侧保留旧会话的时间。对于SSC模式3的PDU会话切换,目前旧会话被释放的场景有三种:(1)网络侧携带会话保留时间参数,在该会话保留时间内,用户侧确定已将会话上的全部业务数据切换至新会话上传输,此时由用户侧AP发起旧会话的释放流程;(2)网络侧携带会话保留时间参数,在超过会话保留时间后,网络侧SMF直接发起旧会话的释放流程;(3)网络侧未携带会话保留时间参数,用户侧等待网络侧SMF释放旧会话。另外,在3GPP TS 23.502协议中明确指出,用户侧业务流如何从旧会话切换到新会话,取决于用户侧自身的实现。The 3GPP TS 23.502 protocol stipulates that during the PDU session switching process in SSC mode 3, the Session Management Function (SMF) on the network side may send a time-related session to the Session Management Module (SMF) on the user side. parameter (often called "session retention time"). After the SM receives this parameter, it directly reports it to the Application Processor (AP) on the user side. This parameter is used by the network side to notify the user side that in this handover, the network side SMF is willing to reserve the old session for the user side. time. For PDU session switching in SSC mode 3, there are currently three scenarios in which the old session is released: (1) The network side carries the session retention time parameter. During the session retention time, the user side determines that all service data on the session has been switched to For transmission on the new session, the user-side AP initiates the release process of the old session; (2) The network side carries the session retention time parameter. After the session retention time exceeds, the network-side SMF directly initiates the release process of the old session; (3) The network side does not carry the session retention time parameter, and the user side waits for the network side SMF to release the old session. In addition, it is clearly pointed out in the 3GPP TS 23.502 protocol that how to switch the service flow on the user side from the old session to the new session depends on the implementation on the user side.

可以理解,针对上述的SM、AP与网络侧之间的关系,具体如图1所示。在图1中,网络侧有网络设备,而用户侧有用户设备,在该用户设备中包括应用处理器(AP)和会话管理模块(SM);其中,在用户设备中,SM设置在调制解调器(Modem)上。It can be understood that the above-mentioned relationship between the SM, the AP and the network side is specifically shown in FIG. 1 . In FIG. 1, the network side has network equipment, and the user side has user equipment, the user equipment includes an application processor (AP) and a session management module (SM); wherein, in the user equipment, the SM is set in the modem ( Modem).

参见图2,其示出了相关技术提供的一种5G网络下SSC模式3的PDU会话切换过程的流程示意图。如图2所示,该流程可以包括:Referring to FIG. 2 , it shows a schematic flowchart of a PDU session switching process of SSC mode 3 in a 5G network provided by the related art. As shown in Figure 2, the process can include:

S201:网络设备与AP之间传输上/下行数据。S201: Uplink/downlink data is transmitted between the network device and the AP.

S202:网络设备确定切换当前的旧PDU会话。S202: The network device determines to switch the current old PDU session.

S203:网络设备向SM发送PDU会话修改命令。S203: The network device sends a PDU session modification command to the SM.

S204:SM向网络设备返回PDU会话修改完成命令。S204: The SM returns a PDU session modification completion command to the network device.

S205:SM向AP上报第一消息。S205: The SM reports the first message to the AP.

S206:AP向SM下发第一消息命令。S206: The AP sends a first message command to the SM.

S207:SM与网络设备之间执行新PDU会话建立流程。S207: A new PDU session establishment process is performed between the SM and the network device.

S208:SM向AP上报第二消息。S208: The SM reports the second message to the AP.

S209:用户设备根据自身实现将业务流由旧PDU会话切换到新PDU会话。S209: The user equipment switches the service flow from the old PDU session to the new PDU session according to its own implementation.

S210:AP与网络设备之间执行旧PCU会话释放流程。S210: Perform the old PCU session release process between the AP and the network device.

具体来讲,上/下行数据在用户侧与网络侧之间传输的过程中,网络侧由于某种原因确定切换当前业务流所在PDU会话对应的PSA,这时候网络侧会先进行内部处理,即执行S202步骤。Specifically, during the transmission of uplink/downlink data between the user side and the network side, the network side determines to switch the PSA corresponding to the PDU session where the current service flow is located for some reason. At this time, the network side will first perform internal processing, that is, Step S202 is performed.

随后,网络侧可以发送PDU会话修改命令,并且该PDU会话修改命令可能携带会话保留时间参数,即执行S203步骤;当用户侧的SM接收到PDU会话修改命令后,会对该PDU会话修改命令进行应答,同时将PDU会话修改命令上报给用户侧的AP,如果有会话保留时间参数,那么一并上报给AP,即执行S204和S205步骤。这里,第一消息可以为修改当前PDU会话的消息,并携带会话保留时间。Subsequently, the network side can send a PDU session modification command, and the PDU session modification command may carry the session retention time parameter, that is, step S203 is performed; when the SM on the user side receives the PDU session modification command, it will perform the PDU session modification command. In response, the PDU session modification command is reported to the AP on the user side. If there is a session retention time parameter, it is reported to the AP together, that is, steps S204 and S205 are performed. Here, the first message may be a message for modifying the current PDU session, and carries the session retention time.

进一步地,如果用户侧的AP接收到PDU会话修改命令后,需要判断是否是一个SSC模式3的PDU会话修改,如果判断结果为是,那么随后触发SM发起PDU会话建立流程;即执行S206和S207步骤,AP向SM下发第一消息命令,该第一消息命令用于指示SM建立新PDU会话。Further, if the AP on the user side receives the PDU session modification command, it needs to judge whether it is a PDU session modification of SSC mode 3, if the judgment result is yes, then trigger the SM to initiate the PDU session establishment process; that is, execute S206 and S207 Step, the AP sends a first message command to the SM, where the first message command is used to instruct the SM to establish a new PDU session.

进一步地,PDU会话建立成功后,用户侧根据自身实现,将业务流由旧PDU会话切换到新建的PDU会话;即执行S208和S209步骤,PDU会话建立成功后,SM向AP上报第二消息,这里的第二消息可以为会话建立成功的消息,然后AP会根据自身实现方法,将业务流由旧PDU会话切换到新PDU会话。Further, after the PDU session is successfully established, the user side switches the service flow from the old PDU session to the new PDU session according to its own implementation; that is, steps S208 and S209 are performed, and after the PDU session is successfully established, the SM reports the second message to the AP, The second message here may be a message that the session is established successfully, and then the AP will switch the service flow from the old PDU session to the new PDU session according to its own implementation method.

进一步地,上/下行数据在用户设备与网络设备之间传输的过程中,AP可以根据是否接收到会话保留时间参数,然后旧PDU会话被上文提到的三种PDU会话释放场景之一进行释放,即执行S210步骤。Further, in the process of uplink/downlink data transmission between the user equipment and the network equipment, the AP can, according to whether the session retention time parameter is received, the old PDU session is then released by one of the three PDU session release scenarios mentioned above. Release, that is, step S210 is executed.

根据图2所示的流程,当网络侧的SMF决定发起SSC模式3的PDU会话切换过程时,意味着网络侧已经不希望通过该PDU会话进行业务流传输,并随时可以将其释放。由于对用户侧本次切换过程具体实现的不确定性,出于保证业务流能够连续传输的目的,网络侧可以提供一段时间维持新旧PDU会话同时存在(可能通过会话保留时间参数告知用户侧,也可能不告知),使用户侧有充分的时间,可以顺利将业务流由旧PDU会话切换到新PDU会话,随后通过PDU会话释放流程释放旧PDU会话。According to the process shown in FIG. 2 , when the SMF on the network side decides to initiate the PDU session switching process of SSC mode 3, it means that the network side no longer wishes to perform service flow transmission through the PDU session and can release it at any time. Due to the uncertainty of the specific implementation of this handover process on the user side, for the purpose of ensuring the continuous transmission of service flows, the network side can provide a period of time to maintain the coexistence of the old and new PDU sessions (may inform the user side through the session retention time parameter, or (may not be notified), so that the user side has sufficient time to smoothly switch the service flow from the old PDU session to the new PDU session, and then release the old PDU session through the PDU session release process.

目前,用户侧普遍使用的PDU会话释放策略有两种:(1)用户侧如果接收到会话保留时间参数,当新PDU会话建立成功后,AP直接发起旧PDU会话的释放流程;若没接收到该参数,则等待网络侧发起旧PDU会话的释放流程。(2)用户侧不管是否收到会话保留时间参数,均等待网络侧发起旧PDU会话的释放流程。At present, there are two commonly used PDU session release strategies on the user side: (1) If the user side receives the session retention time parameter, when the new PDU session is successfully established, the AP directly initiates the release process of the old PDU session; With this parameter, wait for the network side to initiate the release process of the old PDU session. (2) The user side waits for the network side to initiate the release process of the old PDU session regardless of whether the session retention time parameter is received or not.

在通常场景下,当前用户侧采取的释放策略存在如下问题:In common scenarios, the current release strategy adopted by the user side has the following problems:

(a)用户侧在新会话建立成功后立即发起旧PDU会话释放,虽然可以快速释放用户和网络的旧PDU会话资源,但可能会出现一种情况,导致业务流传输中断。即,当网络刚通过旧PDU会话传输下行业务数据时,这时候接收到用户侧发来释放请求,随后释放旧PDU会话,使得正在传输的下行业务数据无法传输给用户,业务流传输出现中断。(a) The user side initiates the release of the old PDU session immediately after the new session is successfully established. Although the old PDU session resources of the user and the network can be quickly released, there may be a situation that interrupts the service flow transmission. That is, when the network just transmits downlink service data through the old PDU session, it receives a release request from the user side, and then releases the old PDU session, so that the downlink service data being transmitted cannot be transmitted to the user, and the service flow transmission is interrupted.

(b)用户侧一直等待网络侧发起旧PDU会话的释放流程,虽然能够保证业务流从旧PDU会话切换到新PDU会话时不会出现传输中断的情况,但是长时间的保持新旧PDU会话同时存在,导致用户和网络都出现资源浪费的情况。(b) The user side has been waiting for the network side to initiate the release process of the old PDU session. Although it can ensure that there will be no transmission interruption when the service flow is switched from the old PDU session to the new PDU session, the old and new PDU sessions are maintained for a long time. , resulting in a waste of resources for both users and the network.

此外,在一种特殊场景下,当前用户侧采取的释放策略会导致一种更严重的问题。如果用户侧的SM层建立的PDU会话数量已经达到用户侧的极限数量时,根据3GPP TS24.501协议的描述,用户接收到网络发送的PDU会话修改命令后,由于无法建立新PDU会话,则会直接拒绝网络这一请求,继续使用旧PDU会话进行传输。这时候,网络侧可能有两种相应处理:1)终止本次切换流程,继续使用当前PDU会话(即旧PDU会话)传输。但是由于切换的原因是旧PDU会话在网络侧的PSA已经处于饱和状态,继续使用旧PDU会话可能会导致传输质量下降。2)网络在等待一段时间后,直接发起旧PDU会话释放。这将导致在该PDU会话上进行的业务流无法继续传输,违背了尽力保证PDU会话业务流连续的初衷。示例性地,参见图3,其示出了相关技术提供的另一种5G网络下SSC模式3的PDU会话切换过程的流程示意图。如图3所示,该流程可以包括:In addition, in a special scenario, the release strategy currently adopted by the user side will cause a more serious problem. If the number of PDU sessions established by the SM layer of the user side has reached the limit number of the user side, according to the description of the 3GPP TS24.501 protocol, after the user receives the PDU session modification command sent by the network, because a new PDU session cannot be established, the Directly reject this request from the network and continue to use the old PDU session for transmission. At this time, the network side may have two corresponding processes: 1) Terminate this handover process, and continue to use the current PDU session (ie, the old PDU session) for transmission. However, since the PSA of the old PDU session on the network side is already in a saturated state due to the switchover, continuing to use the old PDU session may cause the transmission quality to degrade. 2) After waiting for a period of time, the network directly initiates the release of the old PDU session. This will result in that the service flow performed on the PDU session cannot continue to be transmitted, which violates the original intention of ensuring the continuity of the service flow of the PDU session as much as possible. Exemplarily, referring to FIG. 3 , it shows a schematic flowchart of another PDU session switching process of SSC mode 3 in a 5G network provided by the related art. As shown in Figure 3, the process may include:

S301:网络设备与AP之间传输上/下行数据。S301: Uplink/downlink data is transmitted between the network device and the AP.

S302:网络设备确定切换当前的旧PDU会话。S302: The network device determines to switch the current old PDU session.

S303:网络设备向SM发送PDU会话修改命令。S303: The network device sends a PDU session modification command to the SM.

S304:在检测到当前已建立会话数量达到预设会话阈值时,SM将拒绝该PDU会话修改命令。S304: When it is detected that the number of currently established sessions reaches the preset session threshold, the SM will reject the PDU session modification command.

S305:SM向网络设备返回PDU会话修改拒绝命令。S305: The SM returns a PDU session modification rejection command to the network device.

S306:网络设备继续使用或释放旧PDU会话。S306: The network device continues to use or release the old PDU session.

具体来讲,上/下行数据在用户侧与网络侧之间传输的过程中,如果网络决定对当前PDU会话进行切换时,那么网络侧将发起PDU会话修改流程,即执行S302和S303步骤。Specifically, during the transmission of uplink/downlink data between the user side and the network side, if the network decides to switch the current PDU session, the network side will initiate a PDU session modification process, that is, perform steps S302 and S303.

在用户侧,如果SM检测到当前建立的PDU会话已经达到预设会话阈值(比如用户设置支持的最大会话数),那么用户侧将拒绝网络的PDU会话修改命令,即执行S304步骤。On the user side, if the SM detects that the currently established PDU session has reached the preset session threshold (such as the maximum number of sessions supported by the user setting), the user side will reject the network's PDU session modification command, that is, step S304 is performed.

进一步地,用户将PDU会话修改拒绝命令返回给网络设备,在网络侧接收到修改拒绝后,这时候可以维持旧PDU会话或等一段时间后释放旧PDU会话,即执行S305和S306步骤。Further, the user returns the PDU session modification rejection command to the network device. After the network side receives the modification rejection, the old PDU session can be maintained or released after a period of time, that is, steps S305 and S306 are performed.

简言之,在相关技术中,由于针对SSC模式3的PDU切换过程具体实现的不确定性,当前用户设备采取的释放策略均存在一些缺陷,比如要么使得正在传输的下行业务数据无法传输给用户,导致业务流传输出现中断;要么长时间的保持新旧会话同时存在,导致用户和网络都出现资源浪费的情况,使得系统性能较差。In short, in the related art, due to the uncertainty of the specific implementation of the PDU switching process for SSC mode 3, the release strategy adopted by the current user equipment has some defects, for example, the downlink service data being transmitted cannot be transmitted to the user. , resulting in interruption of service flow transmission; or keeping new and old sessions coexisting for a long time, resulting in waste of resources for both users and the network, resulting in poor system performance.

本申请实施例提供了一种会话管理方法,应用于用户设备,该方法的基本思想是:接收PDU会话修改命令;其中,所述PDU会话修改命令用于指示对当前的第一PDU会话进行切换;以及在检测到已建立PDU会话数量小于预设会话阈值的情况下,建立第二PDU会话并记录监测结果;其中,所述监测结果至少包括:所述第二PDU会话的建立耗时和下行用户数据流量;根据所述监测结果,对所述第一PDU会话进行释放。这样,本申请的技术方案采用由用户设备统一发起旧PDU会话释放的方式,保证了业务流传输的连续性,也能够缩短新旧PDU会话同时存在的时间,可以避免用户设备和网络设备对资源的浪费,而且还可以避免用户数据出现传输中断的风险,有助于提高系统性能。An embodiment of the present application provides a session management method, which is applied to a user equipment. The basic idea of the method is: receiving a PDU session modification command; wherein the PDU session modification command is used to instruct the current first PDU session to be switched And when it is detected that the number of established PDU sessions is less than the preset session threshold, the second PDU session is established and the monitoring result is recorded; Wherein, the monitoring result includes at least: the establishment time-consuming and downlink of the second PDU session User data traffic; according to the monitoring result, release the first PDU session. In this way, the technical solution of the present application adopts the method in which the user equipment uniformly initiates the release of the old PDU session, which ensures the continuity of service flow transmission, can also shorten the time that the old and new PDU sessions coexist, and can avoid the user equipment and network equipment. waste, but also to avoid the risk of transmission interruption of user data, which helps to improve system performance.

下面将结合附图对本申请各实施例进行详细说明。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

本申请的一实施例中,参见图4,其示出了本申请实施例提供的一种会话管理方法的流程示意图。如图4所示,该方法可以包括:In an embodiment of the present application, referring to FIG. 4 , it shows a schematic flowchart of a session management method provided by an embodiment of the present application. As shown in Figure 4, the method may include:

S401:接收PDU会话修改命令。S401: Receive a PDU session modification command.

需要说明的是,本申请实施例的会话管理方法应用于用户设备。这里,用户设备又可以称为终端设备,可以是诸如智能手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、移动台(mobile station)、移动单元(mobile unit)、移动客户端、芯片、现场可编程逻辑门阵列(Field Programmable Gate Array,FPGA)等等,这里不作具体限定。It should be noted that, the session management method in the embodiment of the present application is applied to the user equipment. Here, the user equipment may also be referred to as a terminal device, such as a smart phone, a tablet computer, a notebook computer, a palmtop computer, a personal digital assistant (Personal Digital Assistant, PDA), a portable media player (Portable Media Player, PMP), Navigation device, wearable device, mobile station (mobile station), mobile unit (mobile unit), mobile client, chip, Field Programmable Gate Array (Field Programmable Gate Array, FPGA), etc., which are not specifically limited here.

还需要说明的是,PDU会话修改命令用于指示对当前的第一PDU会话进行切换。具体地,当网络设备决定对当前的第一PDU会话进行切换时,这时候网络设备会发起PDU会话修改流程,并且向终端设备发送PDU会话修改命令。也就是说,如果网络设备决定对当前的第一PDU会话进行切换,那么用户设备可以接收到网络设备发送的PDU会话修改命令。It should also be noted that the PDU session modification command is used to instruct the current first PDU session to be switched. Specifically, when the network device decides to switch the current first PDU session, the network device will initiate a PDU session modification process at this time, and send a PDU session modification command to the terminal device. That is, if the network device decides to switch the current first PDU session, the user equipment can receive the PDU session modification command sent by the network device.

在本申请实施例中,从业务流连续性的角度出发,用户设备在接收到PDU会话修改命令后,可以根据应用场景和自身的实际情况,针对不同的应用场景提出对应的优化方案来确定用户设备何时释放第一PDU会话(即旧PDU会话),以便尽可能保证业务流传输连续性以及节约用户侧和网络侧的资源。In the embodiment of the present application, from the perspective of service flow continuity, after receiving the PDU session modification command, the user equipment may, according to the application scenario and its own actual situation, propose corresponding optimization schemes for different application scenarios to determine the user When does the device release the first PDU session (ie, the old PDU session), so as to ensure the continuity of service flow transmission as much as possible and save resources on the user side and the network side.

具体来讲,本申请实施例可以根据已建立PDU会话数量与预设会话阈值的比较结果,将应用场景划分为正常场景和特殊场景,然后针对这两种应用场景分别提出优化方案。Specifically, the embodiment of the present application can divide the application scenarios into normal scenarios and special scenarios according to the comparison result between the number of established PDU sessions and the preset session threshold, and then respectively propose optimization schemes for the two application scenarios.

S402:在检测到已建立PDU会话数量小于预设会话阈值的情况下,建立第二PDU会话并记录监测结果。S402: In the case that it is detected that the number of established PDU sessions is less than the preset session threshold, establish a second PDU session and record the monitoring result.

S403:根据所述监测结果,对第一PDU会话进行释放。S403: Release the first PDU session according to the monitoring result.

在这里,监测结果至少可以包括:所述第二PDU会话的建立耗时和下行用户数据流量。Here, the monitoring result may at least include: the establishment time of the second PDU session and the downlink user data traffic.

需要说明的是,已建立PDU会话数量是指在用户设备中已经建立成功的PDU会话数量。通常情况下,用户设备支持的最大会话数量为15个,预设会话阈值可以为用户设备支持的最大会话数量。但是预设会话阈值可以将根据实际情况进行具体设置,比如预设会话阈值可以设置为15,也可以设置为10,这里不作任何限定。It should be noted that the number of established PDU sessions refers to the number of PDU sessions that have been successfully established in the user equipment. Generally, the maximum number of sessions supported by the user equipment is 15, and the preset session threshold may be the maximum number of sessions supported by the user equipment. However, the preset session threshold may be specifically set according to the actual situation. For example, the preset session threshold may be set to 15 or 10, which is not limited here.

还需要说明的是,将已建立PDU会话数量与预设会话阈值进行比较;如果已建立PDU会话数量小于预设会话阈值,表明当前的应用场景为正常场景,那么这时候的优化方案为执行S402和S403步骤。如果已建立PDU会话数量大于或等于预设会话阈值,表明当前的应用场景为特殊场景,那么这时候的优化方案将如下描述。It should also be noted that the number of established PDU sessions is compared with the preset session threshold; if the number of established PDU sessions is less than the preset session threshold, it indicates that the current application scenario is a normal scenario, then the optimization solution at this time is to execute S402 and step S403. If the number of established PDU sessions is greater than or equal to the preset session threshold, it indicates that the current application scenario is a special scenario, and the optimization scheme at this time will be described as follows.

在一些实施例中,在S401之后,该方法还可以包括:In some embodiments, after S401, the method may further include:

在检测到已建立PDU会话数量大于或等于预设会话阈值的情况下,释放所述第一PDU会话;In the case of detecting that the number of established PDU sessions is greater than or equal to a preset session threshold, release the first PDU session;

在所述第一PDU会话释放成功后,建立第二PDU会话。After the first PDU session is successfully released, a second PDU session is established.

也就是说,对于特殊场景,用户设备在接收到PDU会话修改命令后,如果检测到已建立PDU会话数量大于或等于预设会话阈值,那么将先释放第一PDU会话,然后在第一PDU会话释放成功后,建立第二PDU会话。That is to say, for a special scenario, after receiving the PDU session modification command, if the user equipment detects that the number of established PDU sessions is greater than or equal to the preset session threshold, it will release the first PDU session first, and then use the first PDU session in the first PDU session. After the release is successful, a second PDU session is established.

具体来讲,在特殊场景下,如果检测到已建立PDU会话数量大于或等于预设会话阈值,那么这时候可以记录过程信息,比如记录一个标识信息,同时释放第一PDU会话;在第一PDU会话释放成功后,根据该标识信息建立第二PDU会话。其中,这里的标识信息可以指示在检测到已建立PDU会话数量大于或等于预设会话阈值的情况下,先触发第一PDU会话的释放流程,然后启动第二PDU会话的建立流程。Specifically, in special scenarios, if it is detected that the number of established PDU sessions is greater than or equal to the preset session threshold, then process information can be recorded at this time, such as recording an identification information, and the first PDU session is released at the same time; in the first PDU After the session is released successfully, a second PDU session is established according to the identification information. Wherein, the identification information here may indicate that when it is detected that the number of established PDU sessions is greater than or equal to the preset session threshold, first trigger the release process of the first PDU session, and then start the establishment process of the second PDU session.

还需要说明的是,第一PDU会话可以称为旧PDU会话,第二PDU会话可以称为新PDU会话。进一步地,在一些实施例中,该方法还可以包括:通过所述第二PDU会话,进行数据交互。It should also be noted that the first PDU session may be referred to as an old PDU session, and the second PDU session may be referred to as a new PDU session. Further, in some embodiments, the method may further include: performing data interaction through the second PDU session.

也就是说,在第二PDU会话建立成功后,网络设备与用户设备之间可以利用第二PDU会话进行数据交互。That is, after the second PDU session is successfully established, the network device and the user equipment can use the second PDU session to perform data exchange.

可以理解地,由于SSC模式5G系统中PDU会话的一种属性,能够指示PDU会话进行业务传输时,其业务流连续性的保障模式。目前在3GPP TS 24.501协议中,规定SSC模式的取值有三种,分别是SSC模式1、SSC模式2和SSC模式3。对于值为SSC模式1的PDU会话,其PSA在会话存在期间不会改变;对于值为SSC模式2的PDU会话,其PSA可以通过先释放旧会话,随后建立连接到同一DN的新会话的方式进行切换;对于值为SSC模式3的PDU会话,其PSA是通过先建立连接到同一DN的新会话,再删除旧会话的方式进行切换,这时候新旧会话会有一段共存期。也就是说,在SSC模式3下,网络设备允许在新的PDU会话(新的PDU会话锚点接入同一DN)建立完成前依然保持用户设备与旧PDU会话锚点间的PDU会话,此时用户设备同时拥有两个会话锚点和PDU会话,最后释放掉旧PDU会话。Understandably, due to an attribute of the PDU session in the SSC mode 5G system, it can indicate the guarantee mode of the service flow continuity of the PDU session when the service is transmitted. Currently, in the 3GPP TS 24.501 protocol, three values of the SSC mode are specified, namely SSC mode 1, SSC mode 2 and SSC mode 3. For a PDU session whose value is SSC mode 1, its PSA will not change during the existence of the session; for a PDU session whose value is SSC mode 2, its PSA can be released by first releasing the old session and then establishing a new session connected to the same DN. Perform handover; for a PDU session whose value is SSC mode 3, its PSA is to first establish a new session connected to the same DN, and then delete the old session. At this time, the old and new sessions will have a coexistence period. That is to say, in SSC mode 3, the network device is allowed to maintain the PDU session between the user equipment and the old PDU session anchor until the new PDU session (the new PDU session anchor is connected to the same DN) is established. The user equipment has two session anchors and a PDU session at the same time, and finally releases the old PDU session.

基于此,在SSC模式3类型PDU会话切换过程中,网络设备已经不希望通过该旧PDU会话进行业务流传输,并随时可以将其释放;但是由于用户设备在PDU会话切换过程具体实现的不确定性,出于保证业务流能够连续传输的目的,本申请实施例主要是解决在SSC模式3下旧PDU会话的释放策略问题。Based on this, in the SSC mode 3 type PDU session switching process, the network device no longer wishes to perform service flow transmission through the old PDU session, and can release it at any time; however, due to the uncertainty of the specific implementation of the user equipment in the PDU session switching process For the purpose of ensuring continuous transmission of the service flow, the embodiment of the present application mainly solves the problem of the release policy of the old PDU session in the SSC mode 3.

在一种可能的实施方式中,对于正常场景而言,在检测到已建立PDU会话数量小于预设会话阈值的情况下,该方法还可以包括:In a possible implementation manner, for a normal scenario, when it is detected that the number of established PDU sessions is less than a preset session threshold, the method may further include:

确定所述第一PDU会话的模式类型;determining the mode type of the first PDU session;

当所述第一PDU会话的模式类型为预设模式类型时,执行所述建立第二PDU会话并记录监测结果的步骤。When the mode type of the first PDU session is a preset mode type, the steps of establishing the second PDU session and recording the monitoring result are performed.

在另一种可能的实施方式中,对于特殊场景而言,在检测到已建立PDU会话数量大于或等于预设会话阈值的情况下,该方法还可以包括:In another possible implementation manner, for a special scenario, when it is detected that the number of established PDU sessions is greater than or equal to a preset session threshold, the method may further include:

确定所述第一PDU会话的模式类型;determining the mode type of the first PDU session;

当所述第一PDU会话的模式类型为预设模式类型时,执行释放所述第一PDU会话的步骤。When the mode type of the first PDU session is a preset mode type, the step of releasing the first PDU session is performed.

在本申请实施例中,预设模式类型为SSC模式3。In this embodiment of the present application, the preset mode type is SSC mode 3 .

也就是说,无论是正常场景还是特殊场景,用户设备在接收到PDU会话修改命令后,还需要检测当前是否是对SSC模式3类型PDU会话进行切换。换言之,如果当前待切换的第一PDU会话的模式类型是SSC模式3,那么可以按照本申请实施例所述的会话管理方法进行旧PDU会话的释放;如果当前待切换的第一PDU会话的模式类型不是SSC模式3,那么可以按照传统会话管理方式进行旧PDU会话的释放。That is to say, no matter it is a normal scenario or a special scenario, after receiving the PDU session modification command, the user equipment also needs to detect whether the SSC mode 3 type PDU session is currently being switched. In other words, if the mode type of the first PDU session to be switched is SSC mode 3, the old PDU session can be released according to the session management method described in the embodiment of the present application; if the mode of the first PDU session to be switched is currently If the type is not SSC mode 3, the old PDU session can be released according to the traditional session management method.

进一步地,针对正常场景,由于现有的释放策略进行旧PDU会话释放时导致的问题,可以采用由用户设备发起旧PDU会话释放的方式来解决。本申请实施例提供了一种用户设备进行业务流切换的方法以确定出何时释放就PDU会话。具体地,在一些实施例中,所述建立第二PDU会话并记录监测结果,可以包括:Further, for a normal scenario, the problem caused by the existing release strategy for releasing the old PDU session can be solved by using the user equipment to initiate the release of the old PDU session. The embodiment of the present application provides a method for user equipment to perform service flow switching to determine when to release a PDU session. Specifically, in some embodiments, the establishing the second PDU session and recording the monitoring result may include:

在所述第二PDU会话建立启动的时刻,记录第一时刻;At the moment when the second PDU session is established and started, record the first moment;

在所述第二PDU会话的建立过程中,监测所述第一PDU会话是否接收到下行用户数据;In the process of establishing the second PDU session, monitoring whether the first PDU session receives downlink user data;

在所述第二PDU会话建立成功的时刻,记录第二时刻;At the moment when the second PDU session is successfully established, record the second moment;

根据所述第二时刻和所述第一时刻,计算所述第二PDU会话的建立耗时;According to the second moment and the first moment, calculating the establishment time of the second PDU session;

将所述第二PDU会话的建立耗时和所述下行用户数据流量作为所述监测结果进行记录。The establishment time of the second PDU session and the downlink user data flow are recorded as the monitoring result.

需要说明的是,在检测到当前是对SSC模式3类型PDU会话的切换时,这时候可以发起第二PDU会话的建立流程,并且在第二PDU会话建立启动的时刻,记录第一时刻,同时检测当前正在切换的第一PDU会话是否接收到下行用户数据;然后在第二PDU会话建立成功后,还需要记录第二时刻,以便计算出整个建立过程耗时,即第二PDU会话的建立耗时;同时记录下行用户数据的监测情况(具体可以是下行用户数据流量)。这样,用户设备可以根据记录的第二PDU会话的建立耗时和下行用户数据的监测情况来确定第一PDU会话的释放策略,为后续的第一PDU会话的释放作参考。It should be noted that when it is detected that the current switching of the SSC mode 3 type PDU session is detected, the establishment process of the second PDU session can be initiated at this time, and at the moment when the establishment of the second PDU session is started, the first moment is recorded, and at the same time Detect whether the first PDU session that is currently being switched receives downlink user data; then after the second PDU session is successfully established, it is necessary to record the second moment in order to calculate the time-consuming of the entire establishment process, that is, the establishment time of the second PDU session. time; at the same time, record the monitoring situation of downlink user data (specifically, it can be downlink user data traffic). In this way, the user equipment can determine the release policy of the first PDU session according to the recorded establishment time of the second PDU session and the monitoring situation of downlink user data, so as to serve as a reference for the subsequent release of the first PDU session.

可选地,在一些实施例中,所述根据所述监测结果,对所述第一PDU会话进行释放,可以包括:Optionally, in some embodiments, the releasing the first PDU session according to the monitoring result may include:

在所述第二PDU会话的建立过程中,若监测到所述第一PDU会话接收到下行用户数据,则开启对所述第二PDU会话的监测;During the establishment of the second PDU session, if it is monitored that the first PDU session receives downlink user data, the monitoring of the second PDU session is started;

当监测到所述第二PDU会话接收到下行用户数据时,释放所述第一PDU会话。When monitoring that the second PDU session receives downlink user data, the first PDU session is released.

在一种具体的示例中,如果在建立新PDU会话(即第二PDU会话)的过程中,当前旧PDU会话(即第一PDU会话)接收到下行用户数据,那么用户设备可以开始监测新PDU会话。当新PDU会话接收到第一包下行用户数据时,用户设备发起旧PDU会话的释放流程。In a specific example, if the current old PDU session (ie the first PDU session) receives downlink user data during the process of establishing a new PDU session (ie the second PDU session), the user equipment may start monitoring the new PDU session. When the new PDU session receives the first packet of downlink user data, the user equipment initiates a process of releasing the old PDU session.

还需要说明的是,用户设备可以包括应用处理器(AP)和会话管理模块(SM)。这样,在AP检测到当前是对SSC模式3类型PDU会话进行切换时,这时候可以发起新PDU会话的建立流程,并且记录第二PDU会话的建立耗时和下行用户数据的监测情况;如果在建立新PDU会话的过程中,当前旧PDU会话接收到下行用户数据,那么AP可以开始监测新PDU会话。当新PDU会话接收到第一包下行用户数据时,AP发起旧PDU会话的释放流程。It should also be noted that the user equipment may include an application processor (AP) and a session management module (SM). In this way, when the AP detects that the current SSC mode 3 type PDU session is being switched, it can initiate the establishment process of a new PDU session, and record the establishment time of the second PDU session and the monitoring of downlink user data; In the process of establishing a new PDU session, if the current old PDU session receives downlink user data, the AP can start monitoring the new PDU session. When the new PDU session receives the first packet of downlink user data, the AP initiates a process of releasing the old PDU session.

可选地,在一些实施例中,所述根据所述监测结果,对所述第一PDU会话进行释放,可以包括:Optionally, in some embodiments, the releasing the first PDU session according to the monitoring result may include:

在所述第二PDU会话的建立过程中,若监测到所述第一PDU会话未接收到下行用户数据,则启动释放定时器,以及开启对所述第二PDU会话的监测;During the establishment of the second PDU session, if it is monitored that the first PDU session does not receive downlink user data, a release timer is started, and monitoring of the second PDU session is started;

当所述释放定时器的计时超过预设时长,或者在所述释放定时器的计时未超过预设时长之前监测到所述第二PDU会话接收到下行用户数据时,释放所述第一PDU会话。Release the first PDU session when the timing of the release timer exceeds a preset duration, or when it is detected that the second PDU session receives downlink user data before the timing of the release timer does not exceed the preset duration .

在本申请实施例中,预设时长可以大于或等于第二PDU会话的建立耗时。In this embodiment of the present application, the preset duration may be greater than or equal to the establishment duration of the second PDU session.

在一种具体的示例中,如果在建立新PDU会话的过程中,当前旧PDU会话未接收到下行用户数据,那么AP可以启动一个释放定时器,该释放定时器的超时时间设置为新PDU会话的建立耗时,同时监测新PDU会话。一旦释放定时器超时,或者在其超时前新PDU会话接收到下行用户数据,这时候AP也可以发起旧PDU会话的释放流程。In a specific example, if in the process of establishing a new PDU session, the current old PDU session does not receive downlink user data, the AP can start a release timer, and the timeout time of the release timer is set to the new PDU session The establishment is time consuming while monitoring for new PDU sessions. Once the release timer times out, or the new PDU session receives downlink user data before it times out, the AP can also initiate the release process of the old PDU session.

进一步地,针对特殊场景,当用户设备侧的SM层接收到PDU会话修改命令后,这时候不再拒绝网络设备的命令,而是上报AP并对当前的PDU会话进行释放,同时建立新PDU会话。AP接收到上报后先触发旧PDU会话的释放流程,紧接着发起新PDU会话的建立流程。具体地,在一些实施例中,记录过程信息,至少可以包括:向网络设备发送PDU会话修改成功的应答消息和通过SM向AP上报第一PDU会话的释放消息。Further, for special scenarios, when the SM layer on the user equipment side receives the PDU session modification command, it no longer rejects the command from the network device, but reports the AP and releases the current PDU session, and establishes a new PDU session at the same time. . After receiving the report, the AP first triggers the release process of the old PDU session, and then initiates the establishment process of the new PDU session. Specifically, in some embodiments, recording the process information may at least include: sending a response message that the PDU session is successfully modified to the network device and reporting a release message of the first PDU session to the AP through the SM.

进一步地,在一些实施例中,在第一PDU会话释放成功后,该方法还可以包括:Further, in some embodiments, after the first PDU session is successfully released, the method may further include:

通过SM向AP上报所述第一PDU会话的成功释放消息;Report the successful release message of the first PDU session to the AP through the SM;

相应地,所述建立第二PDU会话,可以包括:Correspondingly, the establishing the second PDU session may include:

通过SM向AP上报第二PDU会话的建立消息;Report the establishment message of the second PDU session to the AP through the SM;

AP根据接收到的所述第二PDU会话的建立消息,启动所述第二PDU会话的建立流程。The AP starts the process of establishing the second PDU session according to the received establishment message of the second PDU session.

也就是说,如果用户设备侧的SM检测到当前建立的PDU会话个数达到预设会话阈值(比如自身支持的最大数量),那么本地将记录此过程,回复网络设备的PDU会话修改成功的应答消息,同时向AP上报释放当前PDU会话的释放消息。然后AP触发旧PDU会话的释放流程。在旧PDU会话释放成功后,SM上报释放成功消息,同时根据本地记录的过程信息,SM向AP上报建立新的PDU会话。AP触发新PDU会话的建立流程。在新PDU会话建立成功后,AP可以使用新PDU会话(即第二PDU会话)与网络设备进行业务流传输。That is to say, if the SM on the user equipment side detects that the number of currently established PDU sessions has reached the preset session threshold (such as the maximum number supported by itself), then the local will record this process and reply to the network device's PDU session modification success response message, and report the release message of the current PDU session to the AP at the same time. The AP then triggers the release procedure of the old PDU session. After the old PDU session is successfully released, the SM reports a release success message, and at the same time, according to the locally recorded process information, the SM reports to the AP to establish a new PDU session. The AP triggers the establishment process of a new PDU session. After the new PDU session is successfully established, the AP can use the new PDU session (ie, the second PDU session) to perform service flow transmission with the network device.

简言之,本申请实施例提供了一种用户设备侧AP层业务流可以由旧PDU会话切换到新PDU会话的具体方法,而且用户设备侧在特殊场景下,还可以通过本地实现,使得业务流能够连续传输。这样,本申请实施例是基于SSC模式保证用户业务数据传输连续性的角度出发,对现有技术规范中SSC模式3类型PDU会话切换过程中存在问题的两种场景(包括正常场景和特殊场景)分别进行优化。在通常情况下,可以通过给出用户设备侧AP具体切换业务流的方法,使得旧PDU会话的释放统一由AP发起,保证了业务流传输的连续性,同时及时释放了不必要的资源。在某特定情况下,不仅可以保证用户业务数据连续传输的同时,还可以避免用户业务数据出现传输中断的风险。In short, the embodiments of the present application provide a specific method for switching the AP layer service flow on the user equipment side from the old PDU session to the new PDU session, and in special scenarios on the user equipment side, it can also be implemented locally to make the service flow. Streams are capable of continuous transmission. In this way, the embodiment of the present application is based on the perspective of ensuring the continuity of user service data transmission based on the SSC mode, and two scenarios (including normal scenarios and special scenarios) that have problems in the process of switching between SSC mode 3 type PDU sessions in the prior art specifications. optimized separately. Under normal circumstances, a specific method for switching the service flow of the AP on the user equipment side can be given, so that the release of the old PDU session is initiated by the AP, which ensures the continuity of service flow transmission and releases unnecessary resources in time. In a specific case, it can not only ensure the continuous transmission of user service data, but also avoid the risk of transmission interruption of user service data.

本实施例提供了一种会话管理方法,应用于用户设备。通过接收协议数据单元PDU会话修改命令;其中,所述PDU会话修改命令用于指示对当前的第一PDU会话进行切换;以及在检测到已建立PDU会话数量小于预设会话阈值的情况下,建立第二PDU会话并记录监测结果;其中,所述监测结果至少包括:所述第二PDU会话的建立耗时和下行用户数据流量;根据所述监测结果,对所述第一PDU会话进行释放。这样,由于采用了由用户设备统一发起旧PDU会话释放的方式,保证了业务流传输的连续性,也能够缩短新旧PDU会话同时存在的时间,从而可以避免用户设备和网络设备对资源的浪费,而且还可以避免用户数据出现传输中断的风险,有助于提高系统性能。This embodiment provides a session management method, which is applied to user equipment. By receiving a protocol data unit PDU session modification command; wherein, the PDU session modification command is used to instruct the current first PDU session to be switched; and when it is detected that the number of established PDU sessions is less than the preset session threshold, establish The second PDU session is performed and the monitoring result is recorded; wherein, the monitoring result at least includes: the establishment time and downlink user data flow of the second PDU session; according to the monitoring result, the first PDU session is released. In this way, because the user equipment uniformly initiates the release of the old PDU session, the continuity of service flow transmission is ensured, and the time for the new and old PDU sessions to exist at the same time can be shortened, thereby avoiding the waste of resources by the user equipment and network equipment. It also avoids the risk of transmission interruption of user data, which helps to improve system performance.

本申请的另一实施例中,以尽力保证业务流传输连续性和节约用户设备侧和网络设备侧的资源为出发点,针对上述提到的两种场景(正常场景和特殊场景)下的释放策略进行详细过程的描述。In another embodiment of the present application, taking the best effort to ensure the continuity of service flow transmission and saving resources on the user equipment side and the network equipment side as the starting point, the release policies in the above-mentioned two scenarios (normal scenario and special scenario) are used as the starting point. A description of the detailed process.

需要指出的是,用户设备中包括应用处理器(AP)和会话管理模块(SM);其中,在用户设备中,SM设置在调制解调器(Modem)上。另外,用户设备与网络设备之间可以进行数据交互。It should be pointed out that the user equipment includes an application processor (AP) and a session management module (SM); wherein, in the user equipment, the SM is set on a modem (Modem). In addition, data interaction can be performed between the user equipment and the network equipment.

针对正常场景,在这种正常传输的情况下,由于旧PDU会话释放策略导致的问题,统一采用由用户设备侧AP发起旧PDU会话释放的方式来解决,同时给出一种用户设备侧进行业务流切换的方法,用以确定AP何时释放旧PDU会话。具体地,参见图5,其示出了本申请实施例提供的一种会话管理方法的详细流程示意图。如图5所示,该详细流程可以包括:For normal scenarios, in the case of normal transmission, the problem caused by the old PDU session release policy is solved by the method of releasing the old PDU session initiated by the AP on the user equipment side, and a service on the user equipment side is provided. Flow switching method to determine when the AP releases old PDU sessions. Specifically, refer to FIG. 5 , which shows a detailed flowchart of a session management method provided by an embodiment of the present application. As shown in Figure 5, the detailed process may include:

S501:网络设备与AP之间传输上/下行数据。S501: Uplink/downlink data is transmitted between the network device and the AP.

S502:网络设备确定切换当前的旧PDU会话。S502: The network device determines to switch the current old PDU session.

S503:AP与网络设备之间执行PDU会话修改流程。S503: Execute a PDU session modification process between the AP and the network device.

S504:AP向SM下发第一消息命令。S504: The AP delivers the first message command to the SM.

S505:SM与网络设备之间执行新PDU会话建立流程。S505: A new PDU session establishment process is performed between the SM and the network device.

S506:AP记录当前时间以及监测旧PDU会话是否接收到下行用户数据。S506: The AP records the current time and monitors whether the old PDU session receives downlink user data.

S507:SM向AP上报第二消息。S507: The SM reports the second message to the AP.

S508:AP计算新PDU会话的建立耗时,记录下行用户数据的监测情况;进行业务流切换,并释放旧PDU会话。S508: The AP calculates the time required for establishing the new PDU session, records the monitoring situation of downlink user data, switches the service flow, and releases the old PDU session.

S509:AP与网络设备之间执行旧PCU会话释放流程。S509: Perform the old PCU session release process between the AP and the network device.

需要说明的是,旧PDU会话为前述实施例中所述的第一PDU会话,新PDU会话为前述实施例中所述的第二PDU会话。It should be noted that the old PDU session is the first PDU session described in the foregoing embodiments, and the new PDU session is the second PDU session described in the foregoing embodiments.

还需要说明的是,对于S503来说,AP与网络设备之间执行PDU会话修改流程,具体可以包括:网络设备向SM发送PDU会话修改命令;SM向网络设备返回PDU会话修改完成命令;SM向AP上报第一消息。这里,第一消息可以为修改当前PDU会话的消息,并携带会话保留时间。这样,用户侧的AP接收到PDU会话修改命令后,需要判断是否是一个SSC模式3的PDU会话修改,如果判断结果为是,那么随后AP向SM下发第一消息命令,即建立新PDU会话的命令。It should also be noted that for S503, the PDU session modification process performed between the AP and the network device may specifically include: the network device sends a PDU session modification command to the SM; the SM returns a PDU session modification completion command to the network device; the SM sends a PDU session modification completion command to the network device. The AP reports the first message. Here, the first message may be a message for modifying the current PDU session, and carries the session retention time. In this way, after the AP on the user side receives the PDU session modification command, it needs to determine whether it is a PDU session modification in SSC mode 3. If the judgment result is yes, then the AP sends the first message command to the SM, that is, establishes a new PDU session. The command.

进一步地,在S504之后,即AP向SM下发第一消息命令后,一方面AP记录当前时间以及监测旧PDU会话是否接收到下行用户数据,另一方面SM与网络设备之间执行新PDU会话建立流程,即S505和S506是同时执行的。Further, after S504, that is, after the AP sends the first message command to the SM, on the one hand, the AP records the current time and monitors whether the old PDU session receives downlink user data, and on the other hand, executes a new PDU session between the SM and the network device. The establishment process, that is, S505 and S506 are performed simultaneously.

进一步地,对于S507来说,SM向AP上报第二消息,这里的第二消息可以为会话建立成功的消息,然后AP计算新PDU会话的建立耗时,记录下行用户数据的监测情况;然后根据这些监测情况进行业务流切换,并释放旧PDU会话。Further, for S507, the SM reports the second message to the AP, where the second message can be a message that the session is established successfully, and then the AP calculates the time-consuming for the establishment of the new PDU session, and records the monitoring situation of the downlink user data; and then according to These monitoring cases perform service flow switching and release old PDU sessions.

具体来讲,网络侧决定对当前PDU会话进行切换时,可以发起PDU会话修改流程。然后,用户侧AP检测到当前是对SSC模式3类型PDU会话的修改,可以发起新PDU会话建立流程,记录当前时间,并监测当前正在修改的旧PDU会话是否接收到下行用户数据。随后,新PDU会话建立成功后,AP再次记录时间,以计算出整个建立过程耗时(即新PDU会话的建立耗时),同时记录下行用户数据监测结果,为后续的释放决策做参考。Specifically, when the network side decides to switch the current PDU session, it can initiate a PDU session modification process. Then, the user-side AP detects that the current SSC mode 3 type PDU session is modified, and can initiate a new PDU session establishment process, record the current time, and monitor whether the old PDU session currently being modified receives downlink user data. Subsequently, after the new PDU session is successfully established, the AP records the time again to calculate the time-consuming of the entire establishment process (ie, the establishment time of the new PDU session), and records the monitoring results of downlink user data for reference in subsequent release decisions.

在本申请实施例中,AP可以根据以下释放策略决定何时发起旧PDU会话释放:In this embodiment of the present application, the AP can decide when to initiate the release of the old PDU session according to the following release policy:

(1)如果在建立新PDU会话过程中,当前旧PDU会话接收到下行用户数据,那么AP开始监测新PDU会话。当新PDU会话接收到第一包下行用户数据时,AP可以发起旧PDU会话的释放流程。(1) If in the process of establishing a new PDU session, the current old PDU session receives downlink user data, then the AP starts to monitor the new PDU session. When the new PDU session receives the first packet of downlink user data, the AP may initiate a process of releasing the old PDU session.

(2)如果在建立新PDU会话过程中,当前旧PDU会话未接收到下行用户数据,那么AP启动一个释放定时器,该释放定时器超时时间为新PDU会话的建立过程耗时,同时监测新PDU会话。一旦释放定时器超时后,或在其超时前新PDU会话接收到下行用户数据,AP可以发起旧PDU会话的释放流程。(2) If in the process of establishing a new PDU session, the current old PDU session does not receive downlink user data, then the AP starts a release timer. PDU session. Once the release timer expires, or before the new PDU session receives downlink user data, the AP can initiate the release procedure of the old PDU session.

进一步地,通过PDU会话的释放流程,可以释放旧PDU会话,然后利用新PDU会话与网络设备进行业务流传输。Further, through the release process of the PDU session, the old PDU session can be released, and then the new PDU session can be used to perform service flow transmission with the network device.

针对特殊场景,当用户侧SM接收到PDU会话修改命令后,不再拒绝网络的PDU会话修改命令,而是上报AP对当前PDU会话进行释放,并建立新PDU会话。AP接收到上报后先触发旧PDU会话的释放流程,紧接着发起新PDU会话的建立流程。网络设备则是根据接收到的用户设备的请求,做出相应的操作。具体地,参见图6,其示出了本申请实施例提供的另一种会话管理方法的详细流程示意图。如图6所示,该详细流程可以包括:For special scenarios, when the user-side SM receives the PDU session modification command, it no longer rejects the network's PDU session modification command, but reports the AP to release the current PDU session and establish a new PDU session. After receiving the report, the AP first triggers the release process of the old PDU session, and then initiates the establishment process of the new PDU session. The network equipment performs corresponding operations according to the received request of the user equipment. Specifically, refer to FIG. 6 , which shows a detailed flowchart of another session management method provided by an embodiment of the present application. As shown in Figure 6, the detailed process may include:

S601:网络设备与AP之间传输上/下行数据。S601: Uplink/downlink data is transmitted between the network device and the AP.

S602:网络设备确定切换当前的旧PDU会话。S602: The network device determines to switch the current old PDU session.

S603:网络设备向SM发送PDU会话修改命令。S603: The network device sends a PDU session modification command to the SM.

S604:SM检测到当前已建立会话数量达到预设会话阈值时,本地记录此次过程。S604: When the SM detects that the number of currently established sessions reaches a preset session threshold, the SM records this process locally.

S605:SM向网络设备返回PDU会话修改完成命令。S605: The SM returns a PDU session modification completion command to the network device.

S606:SM向AP上报第一消息。S606: The SM reports the first message to the AP.

S607:AP向SM下发第一消息命令。S607: The AP delivers the first message command to the SM.

S608:SM与网络设备之间执行旧PDU会话释放流程。S608: Perform the old PDU session release process between the SM and the network device.

S609:SM根据本地记录的内容,再次发起新PDU会话的建立。S609: The SM initiates the establishment of a new PDU session again according to the locally recorded content.

S610:SM向AP上报第二消息。S610: The SM reports the second message to the AP.

S611:SM向AP上报第三消息。S611: The SM reports the third message to the AP.

S612:AP向SM下发第三消息命令。S612: The AP sends a third message command to the SM.

S613:SM与网络设备之间执行新PDU会话建立流程。S613: A new PDU session establishment process is performed between the SM and the network device.

S614:SM向AP上报第四消息。S614: The SM reports the fourth message to the AP.

S615:根据新PDU会话,网络设备与AP之间传输上/下行数据。S615: According to the new PDU session, transmit uplink/downlink data between the network device and the AP.

需要说明的是,旧PDU会话为前述实施例中所述的第一PDU会话,新PDU会话为前述实施例中所述的第二PDU会话。It should be noted that the old PDU session is the first PDU session described in the foregoing embodiments, and the new PDU session is the second PDU session described in the foregoing embodiments.

还需要说明的是,第一消息可以为释放当前PDU会话的消息,第一消息命令可以为会话释放请求的命令,以指示SM开启旧PDU会话的释放流程;第二消息可以为会话释放成功的消息;第三消息可以为建立新会话的消息,第三消息命令可以为会话建立请求的命令,以指示SM开启新PDU会话的建立流程;第四消息可以为会话建立成功的消息,以使得AP可以根据新PDU会话实现与网络设备之间的业务流传输。It should also be noted that the first message may be a message for releasing the current PDU session, and the first message command may be a command for a session release request to instruct the SM to open the release process of the old PDU session; the second message may be a successful session release. message; the third message may be a message for establishing a new session, and the third message command may be a command for a session establishment request to instruct the SM to open the establishment process of a new PDU session; the fourth message may be a successful session establishment message, so that the AP The traffic flow with the network device can be implemented according to the new PDU session.

具体来讲,首先,网络侧决定对当前PDU会话进行切换时,发起PDU会话修改流程。其次,用户侧SM检测到当前建立PDU会话个数达到自身支持的最大数量,本地记录此次过程,回复网络侧PDU会话修改成功,同时向AP上报释放当前PDU会话。再次,AP触发旧PDU会话的释放流程。旧PDU会话释放成功后,SM上报释放成功的消息,同时根据本地记录,向AP上报建立新PDU会话。再次,AP触发新PDU会话的建立流程。新PDU会话建立成功后,AP可以使用新PDU会话进行业务流传输。Specifically, first, when the network side decides to switch the current PDU session, it initiates a PDU session modification process. Secondly, the SM on the user side detects that the number of currently established PDU sessions reaches the maximum number supported by itself, records the process locally, replies that the modification of the PDU session on the network side is successful, and reports to the AP to release the current PDU session. Again, the AP triggers the release process of the old PDU session. After the old PDU session is released successfully, the SM reports a release success message, and at the same time reports the establishment of a new PDU session to the AP according to the local record. Again, the AP triggers the process of establishing a new PDU session. After the new PDU session is successfully established, the AP can use the new PDU session for service flow transmission.

简言之,针对第一种的正常场景,可以通过给出用户侧AP具体的业务流切换方法,并采用由AP统一发起旧PDU会话释放的方式,保证了业务流传输的连续性,也尽可能缩短新旧PDU会话同时存在的时间,可以避免用户和网络对资源的浪费。这种释放策略大大优化了当前技术规范中的释放策略,比如或尽快释放资源无法保证业务流传输连续,或保证业务流传输连续但等待最大时间浪费资源的方式。如此在保证业务流传输连续性和节约资源的互相冲突的情景中,本申请实施例找到了一种优解。In short, for the first normal scenario, the specific service flow switching method of the user-side AP can be given, and the AP can uniformly initiate the release of the old PDU session to ensure the continuity of the service flow transmission and minimize the It is possible to shorten the time that the old and new PDU sessions exist at the same time, which can avoid the waste of resources by the user and the network. This release strategy greatly optimizes the release strategy in the current technical specification. For example, releasing resources as soon as possible cannot guarantee continuous service flow transmission, or guaranteeing continuous service flow transmission but waiting for maximum time to waste resources. In this way, in the conflicting scenarios of ensuring continuity of service flow transmission and saving resources, the embodiment of the present application finds an optimal solution.

针对第二种的特殊场景,可以采用先释放旧PDU会话,随后建立连接到同一DN的新PDU会话的方法,虽然可能会导致该PDU会话上业务流传输短暂停止,但相比于技术规范中的方法,能够保证业务流在停止后继续传输。而且通常情况下的停止时间应该是毫秒级的,对使用无线设备应用的用户来说是可以忽略不计的,也能够尽力保证业务流传输的连续性。For the second special scenario, the method of first releasing the old PDU session and then establishing a new PDU session connected to the same DN may be adopted. Although the service flow transmission on the PDU session may be temporarily stopped, compared with the technical specification The method can ensure that the service flow continues to transmit after it is stopped. In addition, the stop time under normal circumstances should be in the millisecond level, which is negligible for users using wireless device applications, and it can also try its best to ensure the continuity of service flow transmission.

本实施例提供了一种会话管理方法,应用于用户设备。通过上述实施例对前述实施例的具体实现进行了详细阐述,从中可以看出,通过前述实施例的技术方案,从而可以避免用户设备和网络设备对资源的浪费,而且还可以避免用户数据出现传输中断的风险,有助于提高系统性能。This embodiment provides a session management method, which is applied to user equipment. The specific implementation of the foregoing embodiments is described in detail through the foregoing embodiments, from which it can be seen that, through the technical solutions of the foregoing embodiments, the waste of resources by the user equipment and the network equipment can be avoided, and the transmission of user data can also be avoided. The risk of outage helps to improve system performance.

本申请的又一实施例中,基于前述实施例相同的发明构思,参见图7,其示出了本申请实施例提供的一种用户设备70的组成结构示意图。如图7所示,用户设备70可以包括:接收单元701、建立单元702和释放单元703;其中,In yet another embodiment of the present application, based on the same inventive concept as the foregoing embodiments, see FIG. 7 , which shows a schematic structural diagram of a user equipment 70 provided by an embodiment of the present application. As shown in FIG. 7 , the user equipment 70 may include: a receiving unit 701, a establishing unit 702 and a releasing unit 703; wherein,

接收单元701,配置为接收PDU会话修改命令;其中,所述PDU会话修改命令用于指示对当前的第一PDU会话进行切换;The receiving unit 701 is configured to receive a PDU session modification command; wherein, the PDU session modification command is used to instruct the current first PDU session to be switched;

建立单元702,配置为在检测到已建立PDU会话数量小于预设会话阈值的情况下,建立第二PDU会话并记录监测结果;其中,所述监测结果至少包括:所述第二PDU会话的建立耗时和下行用户数据流量;The establishment unit 702 is configured to establish a second PDU session and record a monitoring result when it is detected that the number of established PDU sessions is less than a preset session threshold; wherein the monitoring result at least includes: the establishment of the second PDU session Time-consuming and downlink user data traffic;

释放单元703,配置为根据所述监测结果,对所述第一PDU会话进行释放。The releasing unit 703 is configured to release the first PDU session according to the monitoring result.

在一些实施例中,释放单元703,还配置为在检测到已建立PDU会话数量大于或等于预设会话阈值的情况下,释放所述第一PDU会话;In some embodiments, the releasing unit 703 is further configured to release the first PDU session when it is detected that the number of established PDU sessions is greater than or equal to a preset session threshold;

建立单元702,还配置为在所述第一PDU会话释放成功后,建立第二PDU会话。The establishing unit 702 is further configured to establish a second PDU session after the first PDU session is successfully released.

在一些实施例中,参见图7,用户设备70还可以包括确定单元704,配置为通过所述第二PDU会话,进行数据交互。In some embodiments, referring to FIG. 7 , the user equipment 70 may further include a determination unit 704 configured to perform data interaction through the second PDU session.

在一些实施例中,确定单元704,还配置为在检测到已建立PDU会话数量小于预设会话阈值的情况下,确定所述第一PDU会话的模式类型;In some embodiments, the determining unit 704 is further configured to determine the mode type of the first PDU session when it is detected that the number of established PDU sessions is less than a preset session threshold;

建立单元702,还配置为当所述第一PDU会话的模式类型为预设模式类型时,执行所述建立第二PDU会话并记录监测结果的步骤。The establishing unit 702 is further configured to execute the step of establishing a second PDU session and recording the monitoring result when the mode type of the first PDU session is a preset mode type.

在一些实施例中,建立单元702,具体配置为在所述第二PDU会话建立启动的时刻,记录第一时刻;以及在所述第二PDU会话的建立过程中,监测所述第一PDU会话是否接收到下行用户数据;以及在所述第二PDU会话建立成功的时刻,记录第二时刻;以及根据所述第二时刻和所述第一时刻,计算所述第二PDU会话的建立耗时;以及将所述第二PDU会话的建立耗时和所述下行用户数据流量作为所述监测结果进行记录。In some embodiments, the establishing unit 702 is specifically configured to record the first moment at the moment when the establishment of the second PDU session is started; and monitor the first PDU session during the establishment of the second PDU session Whether downlink user data is received; and at the moment when the second PDU session is successfully established, record the second moment; and calculate the establishment time of the second PDU session according to the second moment and the first moment ; and recording the establishment time of the second PDU session and the downlink user data flow as the monitoring result.

在一些实施例中,释放单元703,具体配置为在所述第二PDU会话的建立过程中,若监测到所述第一PDU会话接收到下行用户数据,则开启对所述第二PDU会话的监测;以及当监测到所述第二PDU会话接收到下行用户数据时,释放所述第一PDU会话。In some embodiments, the releasing unit 703 is specifically configured to, in the process of establishing the second PDU session, if it is monitored that the first PDU session receives downlink user data, then enable the release of the second PDU session. monitoring; and when monitoring that the second PDU session receives downlink user data, releasing the first PDU session.

在一些实施例中,释放单元703,具体配置为在所述第二PDU会话的建立过程中,若监测到所述第一PDU会话未接收到下行用户数据,则启动释放定时器,以及开启对所述第二PDU会话的监测;当所述释放定时器的计时超过预设时长,或者在所述释放定时器的计时未超过预设时长之前监测到所述第二PDU会话接收到下行用户数据时,释放所述第一PDU会话。In some embodiments, the release unit 703 is specifically configured to start the release timer and start the pairing process if it is detected that the first PDU session does not receive downlink user data during the establishment of the second PDU session. Monitoring of the second PDU session; when the timing of the release timer exceeds a preset duration, or before the timing of the release timer does not exceed a preset duration, it is monitored that the second PDU session receives downlink user data , release the first PDU session.

在一些实施例中,所述预设时长大于或等于所述第二PDU会话的建立耗时。In some embodiments, the preset duration is greater than or equal to the establishment duration of the second PDU session.

在一些实施例中,确定单元704,还配置为在检测到已建立PDU会话数量大于或等于预设会话阈值的情况下,确定所述第一PDU会话的模式类型;In some embodiments, the determining unit 704 is further configured to determine the mode type of the first PDU session when it is detected that the number of established PDU sessions is greater than or equal to a preset session threshold;

建立单元702,还配置为当所述第一PDU会话的模式类型为预设模式类型时,释放所述第一PDU会话。The establishing unit 702 is further configured to release the first PDU session when the mode type of the first PDU session is a preset mode type.

在一些实施例中,所述预设模式类型为业务和会话连续性SSC模式3。In some embodiments, the preset mode type is Service and Session Continuity SSC Mode 3.

在一些实施例中,所述用户设备包括应用处理器AP和会话管理SM;In some embodiments, the user equipment includes an application processor AP and a session management SM;

相应地,释放单元703,还配置为通过SM向AP上报所述第一PDU会话的成功释放消息;Correspondingly, the release unit 703 is further configured to report the successful release message of the first PDU session to the AP through the SM;

建立单元702,还配置为通过SM向AP上报第二PDU会话的建立消息;以及AP根据接收到的所述第二PDU会话的建立消息,启动所述第二PDU会话的建立流程。The establishing unit 702 is further configured to report the establishment message of the second PDU session to the AP through the SM; and the AP starts the establishment process of the second PDU session according to the received establishment message of the second PDU session.

在一些实施例中,所述预设会话阈值为所述用户设备支持的最大会话数量。In some embodiments, the preset session threshold is the maximum number of sessions supported by the user equipment.

可以理解地,在本实施例中,“单元”可以是部分电路、部分处理器、部分程序或软件等等,当然也可以是模块,还可以是非模块化的。而且在本实施例中的各组成部分可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It can be understood that, in this embodiment, a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course, it may also be a module, and it may also be non-modular. Moreover, each component in this embodiment may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of software function modules.

所述集成的单元如果以软件功能模块的形式实现并非作为独立的产品进行销售或使用时,可以存储在一个计算机可读取存储介质中,基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或processor(处理器)执行本实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or The part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a storage medium, and includes several instructions for making a computer device (which can be It is a personal computer, a server, or a network device, etc.) or a processor (processor) that executes all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes: U disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.

因此,本实施例提供了一种计算机存储介质,应用于用户设备70,该计算机存储介质存储有计算机程序,所述计算机程序被至少一个处理器执行时实现前述实施例中任一项所述的方法的步骤。Therefore, this embodiment provides a computer storage medium, which is applied to the user equipment 70. The computer storage medium stores a computer program, and when the computer program is executed by at least one processor, any one of the foregoing embodiments is implemented. steps of the method.

基于上述用户设备70的组成以及计算机存储介质,参见图8,其示出了本申请实施例提供的用户设备70的具体硬件结构示意图。如图8所示,可以包括:通信接口801、存储器802和处理器803;各个组件通过总线系统804耦合在一起。可理解,总线系统804用于实现这些组件之间的连接通信。总线系统804除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图8中将各种总线都标为总线系统804。其中,通信接口801,用于在与其他外部网元之间进行收发信息过程中,信号的接收和发送;Based on the composition of the user equipment 70 and the computer storage medium described above, see FIG. 8 , which shows a schematic diagram of a specific hardware structure of the user equipment 70 provided by the embodiment of the present application. As shown in FIG. 8 , it may include: a communication interface 801 , a memory 802 and a processor 803 ; various components are coupled together through a bus system 804 . It will be appreciated that the bus system 804 is used to implement connection communication between these components. In addition to the data bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 804 in FIG. 8 . Among them, the communication interface 801 is used for receiving and sending signals in the process of sending and receiving information with other external network elements;

存储器802,用于存储能够在处理器803上运行的计算机程序;a memory 802 for storing computer programs that can be executed on the processor 803;

处理器803,用于在运行所述计算机程序时,执行:The processor 803 is configured to, when running the computer program, execute:

接收协议数据单元PDU会话修改命令;其中,所述PDU会话修改命令用于指示对当前的第一PDU会话进行切换;以及receiving a protocol data unit PDU session modification command; wherein the PDU session modification command is used to instruct the current first PDU session to be switched; and

在检测到已建立PDU会话数量小于预设会话阈值的情况下,建立第二PDU会话并记录监测结果;其中,所述监测结果至少包括:所述第二PDU会话的建立耗时和下行用户数据流量;When it is detected that the number of established PDU sessions is less than the preset session threshold, a second PDU session is established and a monitoring result is recorded; wherein the monitoring result at least includes: the establishment time and downlink user data of the second PDU session flow;

根据所述监测结果,对所述第一PDU会话进行释放。According to the monitoring result, the first PDU session is released.

可以理解,本申请实施例中的存储器802可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步链动态随机存取存储器(Synchronous link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本文描述的系统和方法的存储器802旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 802 in this embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synchronous link DRAM, SLDRAM) And direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 802 of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.

而处理器803可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器803中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器803可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器802,处理器803读取存储器802中的信息,结合其硬件完成上述方法的步骤。The processor 803 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 803 or an instruction in the form of software. The above-mentioned processor 803 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 802, and the processor 803 reads the information in the memory 802, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processing (DSP), Digital Signal Processing Device (DSP Device, DSPD), programmable logic Devices (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described herein. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

可选地,作为另一个实施例,处理器803还配置为在运行所述计算机程序时,执行前述实施例中任一项所述的方法的步骤。Optionally, as another embodiment, the processor 803 is further configured to execute the steps of the method in any one of the foregoing embodiments when running the computer program.

本实施例提供了一种用户设备,该用户设备可以包括接收单元、建立单元和释放单元。这样,本申请的技术方案采用由用户设备统一发起旧PDU会话释放的方式,保证了业务流传输的连续性,也能够缩短新旧PDU会话同时存在的时间,从而可以避免用户设备和网络设备对资源的浪费,而且还可以避免用户数据出现传输中断的风险,有助于提高系统性能。This embodiment provides a user equipment, and the user equipment may include a receiving unit, a establishing unit, and a releasing unit. In this way, the technical solution of the present application adopts a method in which the user equipment uniformly initiates the release of the old PDU session, which ensures the continuity of service flow transmission, and can also shorten the time during which the old and new PDU sessions exist at the same time, thereby avoiding user equipment and network equipment. It also avoids the risk of transmission interruption of user data, which helps to improve system performance.

本申请的再一实施例中,参见图9,其示出了本申请实施例提供的一种通信系统90的组成结构示意图。如图9所示,通信系统90可以包括网络设备901和用户设备902。这里,用户设备902可以是前述实施例中任一项所述的用户设备。In yet another embodiment of the present application, referring to FIG. 9 , it shows a schematic structural diagram of the composition of a communication system 90 provided by an embodiment of the present application. As shown in FIG. 9 , the communication system 90 may include a network device 901 and a user device 902 . Here, the user equipment 902 may be the user equipment described in any one of the foregoing embodiments.

需要说明的是,本申请实施例所述的通信系统90不限于长期演进(Long TermEvolution,LTE)系统,第四代移动通信(the 4th Generation,4G)系统、或者是第五代移动通信(the 5th Generation,5G)系统、新空口(NR)系统,甚至是后续演进的通信系统等。在该通信系统中,网络设备901与用户设备902之间可以通过无线网络进行数据交互。It should be noted that the communication system 90 described in the embodiments of the present application is not limited to the Long Term Evolution (Long Term Evolution, LTE) system, the 4th Generation (the 4th Generation, 4G) system, or the fifth generation mobile communication (the 5th Generation, 5G) system, New Radio (NR) system, and even the subsequent evolution of the communication system. In this communication system, data interaction can be performed between the network device 901 and the user equipment 902 through a wireless network.

这样,在该通信系统90中,网络侧由于某种原因确定切换当前业务流所在PDU会话对应的PSA,这时候网络设备901可以向用户设备902发送PDU会话修改命令。用户设备902在接收到PDU会话修改命令后,可以根据已建立PDU会话数量与预设会话阈值的比较结果,将应用场景划分为正常场景和特殊场景;然后针对不同的应用场景提出对应的优化方案来确定用户设备何时释放第一PDU会话(即旧PDU会话),从而不仅可以保证业务流传输的连续性,缩短新旧PDU会话同时存在的时间,而且可以避免用户设备和网络设备对资源的浪费,同时还可以避免用户数据出现传输中断的风险,有助于提高系统性能。In this way, in the communication system 90, the network side determines for some reason to switch the PSA corresponding to the PDU session where the current service flow is located. At this time, the network device 901 can send the PDU session modification command to the user equipment 902. After receiving the PDU session modification command, the user equipment 902 can divide the application scenarios into normal scenarios and special scenarios according to the comparison result between the number of established PDU sessions and the preset session threshold; and then propose corresponding optimization solutions for different application scenarios to determine when the user equipment releases the first PDU session (that is, the old PDU session), so as to not only ensure the continuity of service flow transmission, shorten the coexistence time of the old and new PDU sessions, but also avoid the waste of resources by the user equipment and network equipment At the same time, it can also avoid the risk of transmission interruption of user data, which helps to improve system performance.

需要说明的是,在本申请中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this application, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements , but also other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.

本申请所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined under the condition of no conflict to obtain new method embodiments.

本申请所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in the several product embodiments provided in this application can be combined arbitrarily without conflict to obtain a new product embodiment.

本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments or device embodiments.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (16)

1. A session management method applied to a User Equipment (UE), the method comprising:
receiving a Protocol Data Unit (PDU) session modification command; wherein the PDU session modification command is used for indicating switching of the current first PDU session; and
under the condition that the number of the established PDU sessions is smaller than a preset session threshold value, establishing a second PDU session and recording a monitoring result; wherein the monitoring result at least comprises: establishing the second PDU session consumes time and carries out downlink user data flow;
and releasing the first PDU session according to the monitoring result.
2. The method of claim 1, further comprising:
releasing the first PDU session when detecting that the number of the established PDU sessions is larger than or equal to a preset session threshold value;
and after the first PDU session is successfully released, establishing a second PDU session.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and carrying out data interaction through the second PDU session.
4. The method of claim 1, wherein in case it is detected that the number of established PDU sessions is less than a preset session threshold, the method further comprises:
determining a mode type of the first PDU session;
and when the mode type of the first PDU session is a preset mode type, executing the steps of establishing a second PDU session and recording a monitoring result.
5. The method of claim 4, wherein establishing the second PDU session and recording the monitoring result comprises:
recording a first moment at the moment of establishing and starting the second PDU session;
monitoring whether the first PDU session receives downlink user data or not in the process of establishing the second PDU session;
recording a second moment at the moment when the second PDU session is successfully established;
calculating the time consumption for establishing the second PDU session according to the second time and the first time;
and taking the time consumed for establishing the second PDU session and the downlink user data flow as the monitoring result for recording.
6. The method of claim 5, wherein the releasing the first PDU session according to the monitoring result comprises:
in the process of establishing the second PDU session, if the first PDU session is monitored to receive downlink user data, starting monitoring of the second PDU session;
and when the second PDU session is monitored to receive downlink user data, releasing the first PDU session.
7. The method of claim 5, wherein the releasing the first PDU session according to the monitoring result comprises:
in the process of establishing the second PDU session, if monitoring that the first PDU session does not receive downlink user data, starting a release timer and starting monitoring of the second PDU session;
and when the timing of the release timer exceeds a preset time length, or when the second PDU session is monitored to receive downlink user data before the timing of the release timer does not exceed the preset time length, releasing the first PDU session.
8. The method of claim 7, wherein the preset duration is greater than or equal to a time consumed for establishing the second PDU session.
9. The method according to claim 2, wherein in case it is detected that the number of established PDU sessions is greater than or equal to a preset session threshold, the method further comprises the steps of:
determining a mode type of the first PDU session;
and when the mode type of the first PDU session is a preset mode type, releasing the first PDU session.
10. The method of claim 4 or 9, wherein the predetermined pattern type is traffic and session continuity SSC pattern 3.
11. The method of claim 2, wherein the user equipment comprises an application processor AP and a session management module SM, and wherein after the session release of the first PDU is successful, the method further comprises:
reporting a successful release message of the first PDU session to an AP through an SM;
accordingly, the establishing the second PDU session includes:
reporting a building message of the second PDU session to the AP through the SM;
and the AP starts the establishment flow of the second PDU session according to the received establishment message of the second PDU session.
12. The method of claim 1, wherein the preset session threshold is a maximum number of sessions supported by the UE.
13. User equipment, characterized in that the user equipment comprises a receiving unit, an establishing unit and a releasing unit; wherein,
the receiving unit is configured to be a Protocol Data Unit (PDU) session modification command; wherein the PDU session modification command is used for indicating switching of the current first PDU session;
the establishing unit is configured to establish a second PDU session and record a monitoring result under the condition that the number of the established PDU sessions is smaller than a preset session threshold value; wherein the monitoring result at least comprises: establishing the second PDU session consumes time and carries out downlink user data flow;
the release unit is configured to release the first PDU session according to the monitoring result.
14. A user device, wherein the user device comprises a memory and a processor; wherein,
the memory for storing a computer program operable on the processor;
the processor, when running the computer program, is configured to perform the method of any of claims 1 to 12.
15. A computer storage medium, characterized in that the computer storage medium stores a computer program which, when executed by at least one processor, implements the method of any one of claims 1 to 12.
16. A communication system, characterized in that the communication system comprises a network device and a user equipment according to claim 13 or 14.
CN202110335241.1A 2021-03-29 2021-03-29 Session management method, user equipment, computer storage medium and system Expired - Fee Related CN113068237B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202110335241.1A CN113068237B (en) 2021-03-29 2021-03-29 Session management method, user equipment, computer storage medium and system
CN202210813026.2A CN115226176B (en) 2021-03-29 2021-03-29 Session management method, user equipment, computer storage medium and system
PCT/CN2022/075454 WO2022206173A1 (en) 2021-03-29 2022-02-08 Session management method, user equipment, computer storage medium, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110335241.1A CN113068237B (en) 2021-03-29 2021-03-29 Session management method, user equipment, computer storage medium and system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202210813026.2A Division CN115226176B (en) 2021-03-29 2021-03-29 Session management method, user equipment, computer storage medium and system

Publications (2)

Publication Number Publication Date
CN113068237A CN113068237A (en) 2021-07-02
CN113068237B true CN113068237B (en) 2022-08-16

Family

ID=76564566

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110335241.1A Expired - Fee Related CN113068237B (en) 2021-03-29 2021-03-29 Session management method, user equipment, computer storage medium and system
CN202210813026.2A Active CN115226176B (en) 2021-03-29 2021-03-29 Session management method, user equipment, computer storage medium and system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202210813026.2A Active CN115226176B (en) 2021-03-29 2021-03-29 Session management method, user equipment, computer storage medium and system

Country Status (2)

Country Link
CN (2) CN113068237B (en)
WO (1) WO2022206173A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113068237B (en) * 2021-03-29 2022-08-16 Oppo广东移动通信有限公司 Session management method, user equipment, computer storage medium and system

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592331B (en) * 2016-07-08 2021-11-02 中兴通讯股份有限公司 Method, device and system for realizing session continuity
US10455641B2 (en) * 2017-01-05 2019-10-22 Huawei Technologies Co., Ltd. Protocol data unit management
JP6931066B2 (en) * 2017-05-09 2021-09-01 華為技術有限公司Huawei Technologies Co.,Ltd. Session management method and system and terminal
US20190007992A1 (en) * 2017-07-03 2019-01-03 Electronics And Telecommunications Research Institute Network triggered service request method and user equipment (ue) triggered service request method
CN111972003B (en) * 2018-02-16 2023-10-13 艾达克控股有限公司 Mobility handling of multiple access protocol data unit (PDU) sessions in 5G networks
CN110167202B (en) * 2019-04-26 2021-04-20 维沃移动通信有限公司 Session processing method, device, terminal and medium
EP3984278A1 (en) * 2019-06-14 2022-04-20 Nokia Technologies Oy Method and apparatus for providing network triggered mobility between a stand-alone non-public network and a public land mobile network
CN112188608B (en) * 2019-07-04 2022-01-14 华为技术有限公司 Method, device, system and chip for synchronizing PDU session state
CN110474969B (en) * 2019-07-29 2021-07-16 华为技术有限公司 Session management method and device
US11265771B2 (en) * 2019-08-14 2022-03-01 Mediatek Inc. AT commands for supporting session and service continuity modes of 5G protocol data unitsession operations
CN110933709B (en) * 2019-12-24 2023-02-28 展讯通信(上海)有限公司 Protocol data unit session management method and communication device
CN112188643B (en) * 2020-10-09 2022-11-15 哲库科技(北京)有限公司 PDU session establishment method, device, terminal and storage medium
CN113068237B (en) * 2021-03-29 2022-08-16 Oppo广东移动通信有限公司 Session management method, user equipment, computer storage medium and system

Also Published As

Publication number Publication date
CN115226176B (en) 2024-10-29
WO2022206173A1 (en) 2022-10-06
CN115226176A (en) 2022-10-21
CN113068237A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
US12075277B2 (en) Method of processing network slice based congestion, device and system thereof
CN111263415B (en) Cell residence method, related equipment and storage medium
US9872247B2 (en) Power preference indicator timer
TWI445370B (en) System and method for multiple radio access bearer traffic throttling
CN110636593A (en) Connection mode control method, terminal and storage medium
US20220060952A1 (en) Information reporting and receiving method and apparatus, related device and storage medium
US11602001B2 (en) Method and device for resuming data radio bearer, storage medium and electronic device
US20230262572A1 (en) Communication method and related device
EP3379889B1 (en) Method and terminal for controlling service connection
CN113068237B (en) Session management method, user equipment, computer storage medium and system
WO2022242368A1 (en) Network connection control method, terminal device and storage medium
WO2020168913A1 (en) Switching method, apparatus and communication device
CN111212450B (en) Switching method and device
CN114071790B (en) Communication method, device, equipment and storage medium
KR101879711B1 (en) Apparatus and method for operational state synchronization in a wireless communication system
WO2013107035A1 (en) Method and device for detecting resumption of interrupted cell
JP7574469B2 (en) Method for maintaining DRX and/or DTX state of direct communication interface and direct communication terminal - Patents.com
WO2014087553A1 (en) Communication device, communication control method and program
US20250008486A1 (en) Method and system for paging restriction in musim
US20240430766A1 (en) Method and system for managing source cell connection during a dual active protocol stack (daps) handover
CN112135306A (en) Terminal movement management method, base station, network device, system and storage medium
EP4546834A1 (en) Communication method and apparatus, related device, and storage medium
CN119155821A (en) Control method, device and storage medium for Radio Resource Control (RRC) state
EP4266751A1 (en) Method and device for notifying to return to network and terminal
CN118591029A (en) PDU session processing method, device, apparatus and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220816