CN117336896A - Session management method and device, equipment and storage medium - Google Patents

Session management method and device, equipment and storage medium Download PDF

Info

Publication number
CN117336896A
CN117336896A CN202210726452.2A CN202210726452A CN117336896A CN 117336896 A CN117336896 A CN 117336896A CN 202210726452 A CN202210726452 A CN 202210726452A CN 117336896 A CN117336896 A CN 117336896A
Authority
CN
China
Prior art keywords
timer
signaling
connection
duration
terminal
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.)
Pending
Application number
CN202210726452.2A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co 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 China Mobile Communications Group Co Ltd, Research Institute of China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202210726452.2A priority Critical patent/CN117336896A/en
Publication of CN117336896A publication Critical patent/CN117336896A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/38Connection release triggered by timers

Landscapes

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

Abstract

The application discloses a session management method and device, equipment and a storage medium; wherein the method comprises the following steps: starting a timer for the established first connection; the timer is set to a first duration, and the first connection is used for transmitting PDU data packets; transmitting first signaling to a network device, the first signaling being for requesting release of the first connection, based on determining that an amount of data transmitted over the first connection for the first duration is less than or equal to a first threshold; therefore, the PDU session which is not needed to be used can be released in time, so that the slice blockage is reduced, and the new communication energy is improved.

Description

会话管理方法及装置、设备、存储介质Session management method and device, equipment and storage medium

技术领域Technical field

本申请涉及通信技术,涉及但不限于会话管理方法及装置、设备、存储介质。This application relates to communication technology, including but not limited to session management methods and devices, equipment, and storage media.

背景技术Background technique

在移动通信网络中可以将协议数据单元(Protocol Data Unit,PDU)会话理解为终端和外部网络接入点网关之间的连接。以5G技术为例,PDU会话以分配给终端的网际互连协议(Internet Protocol,IP)地址以及数据网络名称(Data Network Name,DNN)表征。终端在5G移动通信网络中可以通过PDU会话进行数据传输。In a mobile communication network, a Protocol Data Unit (PDU) session can be understood as a connection between a terminal and an external network access point gateway. Taking 5G technology as an example, a PDU session is represented by an Internet Protocol (IP) address and a Data Network Name (DNN) assigned to the terminal. The terminal can transmit data through PDU sessions in the 5G mobile communication network.

在目前现网使用的方案中,通常为终端配置一个或多个PDU会话,且随着在5G网络中引入切片功能,PDU会话和切片存在对应关系,不同应用业务签约不同切片,终端将会为不同的切片建立对应的PDU会话。然而,在通过PDU会话进行数据传输的过程中,可能会引起切片拥塞。In the current solution used in the existing network, one or more PDU sessions are usually configured for the terminal. With the introduction of slicing function in the 5G network, there is a corresponding relationship between PDU sessions and slices. Different application services sign up for different slices, and the terminal will be Different slices establish corresponding PDU sessions. However, slice congestion may be caused during data transmission through PDU sessions.

发明内容Contents of the invention

有鉴于此,本申请提供的会话管理方法及装置、设备、存储介质,能够能够及时释放掉不需要使用的PDU会话,从而减少切片堵塞,改善通信新能。In view of this, the session management method, device, equipment, and storage medium provided by this application can release unused PDU sessions in a timely manner, thereby reducing slice congestion and improving new communication performance.

根据本申请实施例的一个方面,提供一种会话管理方法,应用于终端设备,包括:为建立的第一连接启动定时器;其中,所述定时器设置为第一时长,所述第一连接用于传输PDU数据包;以及,基于确定在所述第一时长所述第一连接上传输的数据量小于或等于第一阈值,向网络设备发送第一信令,所述第一信令用于请求释放所述第一连接。According to an aspect of an embodiment of the present application, a session management method is provided, applied to a terminal device, including: starting a timer for the first connection established; wherein the timer is set to a first duration, and the first connection for transmitting PDU data packets; and, based on determining that the amount of data transmitted on the first connection of the first duration is less than or equal to a first threshold, sending first signaling to the network device, the first signaling using Request to release the first connection.

根据本申请实施例的一个方面,提供一种会话管理方法,应用于网络设备,包括:接收终端设备发送的第一信令,所述第一信令用于请求释放与所述终端设备建立的第一连接,所述第一连接用于传输PDU数据包;释放所述第一连接;其中,所述第一信令是在定时器的第一时长所述第一连接上传输的数据量小于或等于第一阈值的情况下发送的,所述定时器是为所述第一连接设置的。According to an aspect of an embodiment of the present application, a session management method is provided, applied to a network device, including: receiving a first signaling sent by a terminal device, the first signaling being used to request the release of a session established with the terminal device. The first connection, the first connection is used to transmit PDU data packets; the first connection is released; wherein the first signaling is during the first duration of the timer. The amount of data transmitted on the first connection is less than or equal to the first threshold, and the timer is set for the first connection.

根据本申请实施例的一个方面,提供一种会话管理装置,包括:启动模块,用于为建立的第一连接启动定时器;其中,所述定时器设置为第一时长,所述第一连接用于传输PDU数据包;发送模块,用于基于确定在所述第一时长所述第一连接上传输的数据量小于或等于第一阈值,向网络设备发送第一信令,所述第一信令用于请求释放所述第一连接。According to an aspect of an embodiment of the present application, a session management device is provided, including: a starting module for starting a timer for the established first connection; wherein the timer is set to a first duration, and the first connection used to transmit PDU data packets; a sending module configured to send first signaling to the network device based on determining that the amount of data transmitted on the first connection of the first duration is less than or equal to a first threshold, the first The signaling is used to request release of the first connection.

根据本申请实施例的一个方面,提供一种会话管理装置,包括:接收模块,用于接收终端设备发送的第一信令,所述第一信令用于请求释放与所述终端设备建立的第一连接,所述第一连接用于传输PDU数据包;释放模块,用于释放所述第一连接;其中,所述第一信令是在定时器的第一时长所述第一连接上传输的数据量小于或等于第一阈值的情况下发送的,所述定时器是为所述第一连接设置的。According to an aspect of an embodiment of the present application, a session management device is provided, including: a receiving module configured to receive a first signaling sent by a terminal device, where the first signaling is used to request the release of a session established with the terminal device. The first connection, the first connection is used to transmit PDU data packets; the release module is used to release the first connection; wherein the first signaling is on the first connection during the first duration of the timer It is sent when the amount of transmitted data is less than or equal to the first threshold, and the timer is set for the first connection.

本申请实施例提供的终端设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现本申请实施例所述的方法。The terminal device provided by the embodiment of the present application includes a memory and a processor. The memory stores a computer program that can be run on the processor. When the processor executes the program, the method described in the embodiment of the present application is implemented.

本申请实施例提供的网络设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现本申请实施例所述的方法。The network device provided by the embodiment of the present application includes a memory and a processor. The memory stores a computer program that can be run on the processor. When the processor executes the program, the method described in the embodiment of the present application is implemented.

本申请实施例提供的计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现本申请实施例提供的所述的方法。The computer-readable storage medium provided by the embodiment of the present application has a computer program stored thereon, and when the computer program is executed by the processor, the method provided by the embodiment of the present application is implemented.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present application.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本申请的实施例,并与说明书一起用于说明本申请的技术方案。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application, and together with the description, are used to explain the technical solutions of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.

附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the drawings are only illustrative, and do not necessarily include all contents and operations/steps, nor must they be performed in the order described. For example, some operations/steps can be decomposed, and some operations/steps can be merged or partially merged, so the actual order of execution may change according to the actual situation.

图1为本申请实施例提供的会话管理方法的实现流程示意图;Figure 1 is a schematic flow chart of the implementation of the session management method provided by the embodiment of the present application;

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

图3为本申请实施例提供的再一会话管理方法的实现流程示意图;Figure 3 is a schematic flow chart of the implementation of yet another session management method provided by an embodiment of the present application;

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

图5为本申请实施例会话管理装置的结构示意图;Figure 5 is a schematic structural diagram of a session management device according to an embodiment of the present application;

图6为本申请实施例另一会话管理装置的结构示意图;Figure 6 is a schematic structural diagram of another session management device according to an embodiment of the present application;

图7为本申请实施例提供的终端设备的结构示意图;Figure 7 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;

图8为本申请实施例提供的网络设备的结构示意图。Figure 8 is a schematic structural diagram of a network device provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请的具体技术方案做进一步详细描述。以下实施例用于说明本申请,但不用来限制本申请的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following examples are used to illustrate the present application but are not intended to limit the scope of the present application.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。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" may be the same subset or a different subset of all possible embodiments, and Can be combined with each other without conflict.

本申请实施例提供一种会话管理方法,该方法应用于终端设备,该终端设备在实施的过程中可以为各种类型的具有信息处理能力的设备,例如所述终端设备可以包括手机、平板电脑、台式机、个人数字助理、导航仪、数字电话、视频电话或传感设备等。该方法所实现的功能可以通过终端设备中的处理器调用程序代码来实现,当然程序代码可以保存在计算机存储介质中,可见,该终端设备至少包括处理器和存储介质。The embodiment of the present application provides a session management method, which is applied to a terminal device. During the implementation process, the terminal device can be various types of devices with information processing capabilities. For example, the terminal device can include mobile phones and tablet computers. , desktop computers, personal digital assistants, navigators, digital phones, video phones or sensing devices, etc. The functions implemented by this method can be implemented by the processor in the terminal device calling the program code. Of course, the program code can be stored in a computer storage medium. It can be seen that the terminal device at least includes a processor and a storage medium.

图1为本申请实施例提供的会话管理方法的实现流程示意图,如图1所示,该方法可以包括以下步骤101至步骤102:Figure 1 is a schematic flow chart of the implementation of the session management method provided by the embodiment of the present application. As shown in Figure 1, the method may include the following steps 101 to 102:

步骤101,终端设备为建立的第一连接启动定时器;其中,所述定时器设置为第一时长,所述第一连接用于传输PDU数据包。Step 101: The terminal device starts a timer for the established first connection, wherein the timer is set to a first duration, and the first connection is used to transmit PDU data packets.

在一些实施例中,所述第一连接可以是第一PDU会话连接,其可用于传输PDU会话包。In some embodiments, the first connection may be a first PDU session connection, which may be used to transmit PDU session packets.

在一些实施例中,所述网络设备可以是用于与移动终端设备通信的实体网络设备,其可以是现有蜂窝基站,也可以是带有卫星参考站的蜂窝基站。例如:网络设备可以是全球移动通信(Global System of Mobile Communication,GSM)或宽带码分多址(CodeDivision Multiple Acccess)中的基站(Base Transceiver Station,BTS),还可以是长期演进(Long Term Evolution,LTE)中的演进型基站(Evolutional Node B,eNodeB)、中继站或接入点以及5G网络中的网络侧设备。In some embodiments, the network device may be a physical network device used to communicate with the mobile terminal device, which may be an existing cellular base station or a cellular base station with a satellite reference station. For example, the network equipment can be a Base Transceiver Station (BTS) in Global System of Mobile Communication (GSM) or Broadband Code Division Multiple Access (CodeDivision Multiple Acccess), or it can be a Long Term Evolution (Long Term Evolution) Evolutionary base station (Evolutional Node B, eNodeB), relay station or access point in LTE) and network side equipment in 5G network.

在本申请实施例中,所述网络设备可以描述为网络侧设备、网络侧、网络等等,本申请实施例对此不做限定。In the embodiment of the present application, the network device can be described as a network side device, a network side, a network, etc., which is not limited in the embodiment of the present application.

在本申请实施例中,所述终端设备可以描述为UE、终端、终端侧设备、终端侧等等,本申请实施例对此不做限定。In this embodiment of the present application, the terminal device may be described as a UE, a terminal, a terminal side device, a terminal side, etc., which is not limited in this embodiment of the present application.

在一些实施例中,所述定时器设置为第一时长,可以理解为,从启动定时器时刻开始,持续到第一时长时,定时器超时。In some embodiments, the timer is set to a first duration, which can be understood as starting from the time when the timer is started and continuing to the first duration, when the timer times out.

在一些实施例中,第一时长可以是根据(1)至(4)至少之一确定的:In some embodiments, the first duration may be determined according to at least one of (1) to (4):

(1)切片资源占用情况。(1) Slicing resource usage.

所谓切片,即网络切片,是基于一种按需组网的方式确定的,可以让运营商在统一的基础设施上分离出多个虚拟的端到端网络,每个网络切片从无线接入网到承载网再到核心网上进行逻辑隔离,以适配各种各样类型的应用。即,网络设备可以通过切片的形式,将流量差异化处理,以及可以将资源进行隔离,使得不同的应用业务按照其服务要求签约不同的切片。The so-called slicing, that is, network slicing, is determined based on an on-demand networking method, which allows operators to separate multiple virtual end-to-end networks on a unified infrastructure. Each network slice starts from the wireless access network. logical isolation from the bearer network to the core network to adapt to various types of applications. That is, network equipment can process traffic differently and isolate resources in the form of slices, so that different application services can sign up for different slices according to their service requirements.

在一些实施例中,所述切片资源占用情况可以是切片资源占用比例。可以用切片上已建立的PDU会话连接数量/切片可承载的PDU会话连接数量最大值来表征。In some embodiments, the slice resource occupancy may be a slice resource occupancy ratio. It can be characterized by the number of established PDU session connections on the slice/the maximum number of PDU session connections that the slice can carry.

在一些实施例中,根据切片资源占用情况确定第一时长的过程如下:In some embodiments, the process of determining the first duration based on slice resource occupancy is as follows:

基于确定第一切片的切片资源占用比例大于第一门限值,确定第三时长;Based on determining that the slice resource occupation ratio of the first slice is greater than the first threshold, determine a third duration;

基于确定第二切片的切片资源占用比例小于第二门限值,确定第四时长;其中,所述第一切片和第二切片是网络设备设置的与第一连接所在的第三切片不同的网络切片,所述第一门限值大于第二门限值,第三时长小于第四时长。Based on determining that the slice resource occupancy ratio of the second slice is less than the second threshold value, a fourth duration is determined; wherein the first slice and the second slice are set by the network device and are different from the third slice where the first connection is located. For network slicing, the first threshold value is greater than the second threshold value, and the third duration is less than the fourth duration.

确定第一连接所承载的第三切片的切片资源占用比例,根据以下公式确定第一时长:Determine the proportion of slice resources occupied by the third slice carried by the first connection, and determine the first duration according to the following formula:

y=kx+b (1)y=kx+b (1)

其中,y为第一时长;x为第三切片的切片资源占用情况;k为斜率,k=(第三时长-第四时长)/(第一切片的切片资源占用比例-第二切片的切片资源占用比例);b为截距,b=第三时长-k*第一切片的切片资源占用比例,或,b=第四时长-k*第二切片的切片资源占用比例。Among them, y is the first duration; Slice resource occupancy ratio); b is the intercept, b=third duration-k*slice resource occupancy ratio of the first slice, or, b=fourth duration-k*slice resource occupancy ratio of the second slice.

需要说明的是,上述根据切片资源占用情况确定定时器时长的方法,不仅适用于为第一连接确定第一时长,也适用于为其他切片中的PDU会话连接确定定时器时长。如此,仅根据第三时长和第四时长就能够确定出与每一个PDU会话连接所在的切片状况所匹配的定时器时长,提高了定时器的设置效率。It should be noted that the above method of determining the timer duration based on slice resource occupancy is not only suitable for determining the first duration for the first connection, but also for determining the timer duration for PDU session connections in other slices. In this way, the timer duration matching the slice status of each PDU session connection can be determined based only on the third duration and the fourth duration, which improves the setting efficiency of the timer.

(2)终端类型。(2)Terminal type.

在一些实施例中,所述终端类型包括以下至少之一:In some embodiments, the terminal type includes at least one of the following:

面向企业(To Business,ToB)终端;To Business (ToB) terminal;

面向消费者(To Consumer,ToC)终端。To Consumer (ToC) terminal.

在一些实施例中,所述ToB终端可以是数据传输具有特定规律的终端设备。例如:工厂里面的控制机器,对讲机等等。对于这种终端设备,在第一连接上进行完一次数据传输之后,突发数据传输的可能性极小,因此不必延长维持第一连接的时间。如此,当所述终端设备的终端类型为ToB终端时,可以将第一时长设置为一个较小值,从而缩减了定时器时长,使得释放第一连接更加及时。In some embodiments, the ToB terminal may be a terminal device with specific rules for data transmission. For example: control machines in factories, intercoms, etc. For this kind of terminal device, after one data transmission is completed on the first connection, the possibility of sudden data transmission is extremely small, so there is no need to extend the time to maintain the first connection. In this way, when the terminal type of the terminal device is a ToB terminal, the first duration can be set to a smaller value, thereby reducing the timer duration and making the release of the first connection more timely.

在一些实施例中,所述ToC终端可以是数据传输不具有特定规律的终端,即这类终端设备的数据传输随意性较大,例如:手机、个人电脑等等。对于这类终端设备,在第一连接上进行完一次数据传输之后,进行突发数据传输的可能性较大,因此需要适当的延长第一连接时间,即需要将第一时长设置为一个较大的值,如此,可以在保证及时释放第一连接的同时为突发数据传输做好准备。In some embodiments, the ToC terminal may be a terminal whose data transmission does not have specific rules, that is, the data transmission of such terminal devices is relatively random, such as mobile phones, personal computers, etc. For this type of terminal equipment, after completing a data transmission on the first connection, there is a high possibility of burst data transmission, so the first connection time needs to be appropriately extended, that is, the first duration needs to be set to a larger value. The value of , in this way, can prepare for burst data transmission while ensuring the timely release of the first connection.

(3)所述第一连接的业务质量需求。(3) The service quality requirements of the first connection.

在一些实施例中,所述第一连接的业务质量需求可以是第一连接的服务质量(Quality of Service,QoS)和或第一连接承载的切片类型。In some embodiments, the service quality requirement of the first connection may be the quality of service (Quality of Service, QoS) of the first connection and/or the slice type carried by the first connection.

在一些实施例中,所述QoS包括第一连接上进行数据传输的带宽、传送的时延、数据的丢包率等。数据传输的带宽越大、传送的时延越小,数据的丢包率越小,则第一连接的业务质量需求较高,此时应当避免频繁的释放以及建立第一连接,因此,可以将第一时长设置为一个较大值,以便再次处理应用业务时能够及时的进行数据传输。In some embodiments, the QoS includes bandwidth for data transmission on the first connection, transmission delay, data packet loss rate, etc. The greater the data transmission bandwidth, the smaller the transmission delay, and the smaller the data packet loss rate, the higher the service quality requirements of the first connection. At this time, frequent releases and establishment of the first connection should be avoided. Therefore, you can The first duration is set to a larger value so that data can be transmitted in a timely manner when the application business is processed again.

在一些实施例中,所述第一连接的业务质量需求可以是第一连接承载的切片类型,所述切片类型包括高可靠低延迟通信(Ultra-reliable and Low LatencyCommunications,URLLC)切片、海量物联网(Massive Machine Type Communication,mMTC)切片等等。In some embodiments, the service quality requirement of the first connection may be a slice type carried by the first connection, and the slice type includes a high-reliable and low-latency communications (URLLC) slice, a massive Internet of Things (Massive Machine Type Communication, mMTC) slicing and so on.

在一些实施例中,若第一连接上承载的切片类型为URLLC,第一时长在第一数值范围内取值。若第一连接上承载的切片类型为MTC,则第一时长在第二数值范围内取值,第一数值范围不小于第二数值范围。In some embodiments, if the slice type carried on the first connection is URLLC, the first duration takes a value within the first value range. If the slice type carried on the first connection is MTC, the first duration takes a value within the second numerical range, and the first numerical range is not less than the second numerical range.

可以理解地,若第一连接上承载的切片类型为URLLC,即第一连接上承载的切片对应的业务对时延的要求较高,若在第一连接上频繁建立以及释放第一连接,则每次都需要先建立第一连接后才能处理业务,使得处理业务的速度大大降低。此时应尽量避免多次建立以及释放所述第一连接,因此,第一时长可以在较大的数值范围内取值,保证了第一连接上的业务处理速度。It can be understood that if the slice type carried on the first connection is URLLC, that is, the service corresponding to the slice carried on the first connection has higher latency requirements. If the first connection is frequently established and released on the first connection, then Each time, the first connection needs to be established before business can be processed, which greatly reduces the speed of business processing. At this time, it is necessary to avoid establishing and releasing the first connection multiple times. Therefore, the first duration can take a value within a larger value range, ensuring the service processing speed on the first connection.

若第一连接上承载的切片类型为MTC,即第一连接上的承载的切片的终端数量较大,但其切片对应的业务对时延的要求较低,因此,第一时长可以在较小的数值范围内取值,即,缩减了定时器的时长,使得释放第一连接更加及时。If the slice type carried on the first connection is MTC, that is, the number of terminals carrying the slice on the first connection is larger, but the service corresponding to the slice has lower latency requirements. Therefore, the first duration can be smaller. The value is within the numerical range, that is, the timer duration is reduced, making the release of the first connection more timely.

需要说明的是,根据第一连接的业务质量需求确定的第一时长考虑到了切片上所签约的业务对时延的要求,颗粒度较细,确定出的第一时长相比于根据终端类型确定的第一时长更加适合当前业务。进一步地,根据切片资源占用情况确定出的第一时长考虑到了网络的切片状况,确定出的第一时长相比于根据第一连接的业务质量需求确定的第一时长,更有利于避免切片拥塞。It should be noted that the first duration determined based on the service quality requirements of the first connection takes into account the latency requirements of the services contracted on the slice, and the granularity is finer. Compared with the first duration determined based on the terminal type, The first duration is more suitable for the current business. Furthermore, the first duration determined based on the occupancy of slice resources takes into account the slicing status of the network. The first duration determined is more conducive to avoiding slice congestion than the first duration determined based on the service quality requirements of the first connection. .

(4)第二时长。(4) Second duration.

在一些实施例中,所述第二时长可以是终端向网络设备请求设置的定时器的值,以便网络设备可以根据第二时长确定第一时长。In some embodiments, the second duration may be a value of a timer that the terminal requests to set from the network device, so that the network device can determine the first duration based on the second duration.

在一些实施例中,第二时长可以是终端根据以下至少之一确定的:In some embodiments, the second duration may be determined by the terminal according to at least one of the following:

终端类型;terminal type;

所述第一连接的业务质量需求。The service quality requirements of the first connection.

需要说明的是,终端设备确定第一时长的方式和网络设备确定第一时长的依据可以是相同的,也可以是不同的。即第一时长和第二时长可以是相同的,也可以是不同的。在本实施例中,终端设备可以根据终端类型和/或第一连接的业务质量需求来设置第一时长;网络设备可以根据切片资源占用情况、终端类型、所述第一连接的业务质量需求、第二时长的至少之一来设置第一时长。本实施例对终端设备和网络设备设置第一时长的方式不做限定。It should be noted that the method by which the terminal device determines the first duration and the basis by which the network device determines the first duration may be the same or different. That is, the first duration and the second duration may be the same or different. In this embodiment, the terminal device can set the first duration according to the terminal type and/or the service quality requirement of the first connection; the network device can set the first duration according to the slice resource occupancy, the terminal type, the service quality requirement of the first connection, At least one of the second duration to set the first duration. This embodiment does not limit the manner in which the terminal device and the network device set the first duration.

步骤102,终端设备基于确定在所述第一时长所述第一连接上传输的数据量小于或等于第一阈值,向网络设备发送第一信令,所述第一信令用于请求释放所述第一连接。Step 102: Based on determining that the amount of data transmitted on the first connection of the first duration is less than or equal to a first threshold, the terminal device sends a first signaling to the network device, where the first signaling is used to request the release of all data. Describe the first connection.

在一些实施例中,网络设备接收终端设备发送的第一信令,释放第一连接。所述第一信令用于请求释放与所述终端设备建立的第一连接,所述第一连接用于传输PDU数据包。In some embodiments, the network device receives the first signaling sent by the terminal device and releases the first connection. The first signaling is used to request the release of the first connection established with the terminal device, and the first connection is used to transmit PDU data packets.

在一些实施例中,所述第一信令可以是PDU会话释放请求(PDU SESSION RELEASEREQUEST)。In some embodiments, the first signaling may be a PDU session release request (PDU SESSION RELEASEREQUEST).

可以理解地,用户使用签约切片的应用业务后,终端设备和网络设备之间按照正常流程建立第一连接,但在用户退出该业务后,第一连接仍然存在。进一步地,在连续使用多个签约切片的应用业务然后退出的场景下,终端维持了多个PDU会话连接,但是此时该多个PDU会话连接上已经没有任何数据传输或数据传输量较小。当某个切片上注册的终端达到最大值,或者某个切片上建立的PDU会话连接达到最大值,将会引起切片拥塞,影响其他订阅该切片的终端正常使用所述切片。It can be understood that after the user uses the application service of the contracted slice, the first connection is established between the terminal device and the network device according to the normal process. However, after the user exits the service, the first connection still exists. Furthermore, in the scenario where the application services of multiple contracted slices are continuously used and then exited, the terminal maintains multiple PDU session connections, but at this time there is no data transmission or the data transmission volume is small on the multiple PDU session connections. When the number of terminals registered on a certain slice reaches the maximum value, or the number of PDU session connections established on a certain slice reaches the maximum value, it will cause slice congestion and affect the normal use of the slice by other terminals subscribing to the slice.

在本实施例中,可以为建立的第一连接启动定时器,终端基于确定在第一时长所述第一连接上传输的数据量小于或等于第一阈值,即,终端能够确定第一连接大概率已经不用作数据传输,没有存在的必要,则向网络设备申请释放第一连接。如此,能够在第一连接的数据传输量较小甚至没有数据传输时及时释放掉不需要使用的PDU会话,减少切片拥塞。In this embodiment, a timer can be started for the established first connection, and the terminal determines that the amount of data transmitted on the first connection during the first duration is less than or equal to the first threshold, that is, the terminal can determine that the first connection has a large amount of data. If the connection is no longer used for data transmission and there is no need to exist, apply to the network device to release the first connection. In this way, when the data transmission volume of the first connection is small or even no data transmission, unused PDU sessions can be released in time, thereby reducing slice congestion.

在一些实施例中,第一连接上传输的数据量可以是第一连接上的数据资源承载(Data Resource Bearer,DRB)上传输的数据量;所述数据包括上行数据和下行数据。In some embodiments, the amount of data transmitted on the first connection may be the amount of data transmitted on a data resource bearer (Data Resource Bearer, DRB) on the first connection; the data includes uplink data and downlink data.

在一些实施例中,在所述第一时长所述第一连接上传输的数据量小于等于第一阈值,可以理解为,从定时器启动时刻起,持续到第一时长时,第一连接上传输的数据量小于等于第一阈值。In some embodiments, the amount of data transmitted on the first connection during the first duration is less than or equal to the first threshold, which can be understood as starting from the time when the timer starts and continuing until the first duration. The amount of transmitted data is less than or equal to the first threshold.

在一些实施例中,从定时器启动时刻起,持续到第一时长时,第一连接上传输的数据量小于等于第一阈值,包括:In some embodiments, from the time the timer starts to the first duration, the amount of data transmitted on the first connection is less than or equal to the first threshold, including:

从定时器启动时刻起,持续到第一时长时,每一时刻第一连接上传输的数据量均小于等于第一阈值;From the time when the timer starts to the first duration, the amount of data transmitted on the first connection at each moment is less than or equal to the first threshold;

从定时器启动时刻起,持续到第一时长时,第一时长内第一连接上传输的数据量之和小于等于第一阈值。From the time when the timer starts to the first duration, the sum of the amount of data transmitted on the first connection within the first duration is less than or equal to the first threshold.

在一些实施例中,第一连接上传输的数据量,包括:In some embodiments, the amount of data transmitted on the first connection includes:

第一连接上所有DBR上传输的数据量之和;The sum of the amount of data transmitted on all DBRs on the first connection;

第一连接上每一个DBR上传输的数据量。The amount of data transferred on each DBR on the first connection.

在一些实施例中,第一阈值可以是终端根据自身需求预先设定的,示例性地,第一阈值可以为0。In some embodiments, the first threshold may be preset by the terminal according to its own needs. For example, the first threshold may be 0.

在一些实施例中,终端可以通过监测第一连接上的所有DBR的数据传输量来实现对第一连接数据传输量的监测。In some embodiments, the terminal may monitor the data transmission volume of the first connection by monitoring the data transmission volume of all DBRs on the first connection.

需要说明的是,若在所述第一时长所述第一连接上传输的数据量小于或等于第一阈值,则可以认为在所述第一时长所述第一连接上没有数据传输,或者可以认为在所述第一时长所述第一连接上没有接收到数据包;否则,可以认为在所述第一时长内第一连接上有数据传输,或者可以认为在所述第一时长内第一连接上发送和/或接收到至少一个数据包。It should be noted that if the amount of data transmitted on the first connection of the first duration is less than or equal to the first threshold, it can be considered that there is no data transmission on the first connection of the first duration, or it can be It is considered that no data packet is received on the first connection during the first duration; otherwise, it can be considered that there is data transmission on the first connection within the first duration, or it can be considered that the first connection within the first duration is At least one packet was sent and/or received on the connection.

在一些实施例中,终端可以在所述第一连接建立成功时,启动所述定时器。即启动定时器的时机是第一连接建立成功的时刻,而不是在建立成功后先判断数据传输量是否满足条件,若有数据传输,则等数据传输完成之后再去启动定时器,如此,启动定时器的时刻提前,使得终端能够更加及时地释放掉不需要使用的会话。In some embodiments, the terminal may start the timer when the first connection is successfully established. That is, the time to start the timer is the moment when the first connection is successfully established, instead of first judging whether the data transmission amount meets the conditions after the establishment is successful. If there is data transmission, wait until the data transmission is completed before starting the timer. In this way, start The timer is advanced so that the terminal can release unused sessions in a more timely manner.

在一些实施例中,在所述第一时长内接收到至少一个数据包时,停止所述定时器,然后重新启动清零后的所述定时器。In some embodiments, when at least one data packet is received within the first period of time, the timer is stopped, and then the cleared timer is restarted.

在一些实施例中,在所述第一时长内发送至少一个数据包时,停止所述定时器,然后重启清零后的所述定时器。In some embodiments, when at least one data packet is sent within the first period of time, the timer is stopped, and then the cleared timer is restarted.

需要说明的是,发送至少一个数据包的时间很短,大概是几us,即在几us内,至少一个数据包就发送成功了,发送成功至少一个数据包的时长远远小于第一时长。It should be noted that the time for sending at least one data packet is very short, about a few us, that is, within a few us, at least one data packet is sent successfully, and the time for sending at least one data packet successfully is much shorter than the first time.

在一些实施例中,对停止定时器和将定时器清零的时间顺序不做限定。In some embodiments, the time sequence of stopping the timer and clearing the timer is not limited.

可以理解地,在第一连接会话建立成功时即启动定时器,在定时器持续至第一时长时没有数据传输即请求释放第一连接,若在第一时长内发送和/或接收到至少一个数据包时,就停止定时器,然后再重新启动清零后的定时器;如此,可以及时的释放掉不需要使用的第一连接,避免切片拥塞。It can be understood that the timer is started when the first connection session is successfully established. When the timer lasts to the first duration and there is no data transmission, the release of the first connection is requested. If at least one is sent and/or received within the first duration, When a data packet is received, the timer is stopped, and then the cleared timer is restarted; in this way, the unused first connection can be released in time to avoid slice congestion.

本申请实施例提供一种会话管理方法,图2为本申请实施例提供的会话管理方法的实现流程示意图,如图2所示,该方法可以包括以下步骤201至步骤204:This embodiment of the present application provides a session management method. Figure 2 is a schematic flow chart of the implementation of the session management method provided by this embodiment of the present application. As shown in Figure 2, the method may include the following steps 201 to 204:

步骤201,终端设备向所述网络设备发送第二信令,所述第二信令至少用于请求设置所述定时器但不用于设置定时器时长。Step 201: The terminal device sends second signaling to the network device, where the second signaling is at least used to request to set the timer but not to set the timer duration.

在一些实施例中,所述第二信令可以是PDU会话建立请求(PDU SESSIONESTABLISHMENT REQUEST),用于请求与网络设备建立第一连接;也可以是不同于PDUSESSION ESTABLISHMENT REQUEST的其他信令。In some embodiments, the second signaling may be a PDU session establishment request (PDU SESSIONESTABLISHMENT REQUEST), used to request the establishment of a first connection with the network device; it may also be other signaling different from the PDUSESSION ESTABLISHMENT REQUEST.

在一些实施例中,若第二信令是PDU SESSION ESTABLISHMENT REQUEST,终端设备可以通过在第二信令中携带特定信息单元(information Element,IE)来为第一连接申请设置定时器和/或申请设置定时器为第一时长。In some embodiments, if the second signaling is PDU SESSION ESTABLISHMENT REQUEST, the terminal device can set the timer and/or apply for the first connection application by carrying a specific information element (information element, IE) in the second signaling. Set the timer to the first duration.

步骤202,网络设备接收终端设备发送的第二信令;Step 202: The network device receives the second signaling sent by the terminal device;

步骤203,网络设备向终端设备发送第三信令,所述第三信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长,其中,所述第一时长是根据切片资源占用情况、终端类型、所述第一连接的业务质量需求的至少之一来确定的。Step 203: The network device sends third signaling to the terminal device, where the third signaling is used to instruct to set the timer, or to instruct to set the timer and set the timer to the first value. A duration, wherein the first duration is determined based on at least one of slice resource occupancy, terminal type, and service quality requirements of the first connection.

在一些实施例中,所述第三信令可以是同意PDU会话建立(PDU SESSIONESTABLISHMENT ACCEPT)信令,也可以是不同于PDU SESSION ESTABLISHMENT ACCEPT的其他信令。In some embodiments, the third signaling may be PDU SESSION ESTABLISHMENT ACCEPT signaling, or may be other signaling different from PDU SESSION ESTABLISHMENT ACCEPT.

若第三信令是PDU SESSION ESTABLISHMENT ACCEPT,网络设备可以通过第三信令中的特定IE为终端设置定时器和/或设置定时器为第一时长。If the third signaling is PDU SESSION ESTABLISHMENT ACCEPT, the network device can set the timer for the terminal through the specific IE in the third signaling and/or set the timer to the first duration.

步骤204,终端设备接收所述网络设备发送的第三信令。Step 204: The terminal device receives the third signaling sent by the network device.

在一些实施例中,在所述第三信令用于指示设置所述定时器且没有指示设置所述定时器的时长的情况下,终端设备根据终端类型和/或所述第一连接的业务质量需求将所述定时器设置为所述第一时长。In some embodiments, in the case where the third signaling is used to indicate setting the timer and does not indicate the duration of setting the timer, the terminal device determines the timer according to the terminal type and/or the service of the first connection. Quality requirements set the timer to the first duration.

可以理解地,终端设备向网络设备申请设置定时器且没有请求设置定时器时长,网络设备允许终端设备设置定时器时,网络设备可以根据切片资源占用情况、终端类型、所述第一连接的业务质量需求的至少之一来设置定时器的为第一时长。在网络设备没有指示设置定时器时长的情况下,终端设备可以根据自身的终端类型以及第一连接的业务质量需求来设置第一时长,以便在第一时长第一连接上没有数据传输时能够及时的申请释放第一连接。It can be understood that the terminal device applies to the network device to set the timer and does not request to set the timer duration. When the network device allows the terminal device to set the timer, the network device can set the timer according to the slice resource occupancy, terminal type, and the service of the first connection. Quality requires at least one to set the timer for the first duration. In the case where the network device does not indicate to set the timer duration, the terminal device can set the first duration according to its own terminal type and the service quality requirements of the first connection, so that when there is no data transmission on the first connection for the first duration, it can be timely. The application releases the first connection.

在一些实施例中,在未向所述网络设备请求设置所述定时器的情况下,网络设备向所述终端设备发送第五信令,终端设备接收所述网络设备发送的第五信令;其中,所述第五信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长;在该实施例中,所述第一时长是网络设备根据切片资源占用情况、终端类型、所述第一连接的业务质量需求的至少之一确定的。In some embodiments, without requesting the network device to set the timer, the network device sends fifth signaling to the terminal device, and the terminal device receives the fifth signaling sent by the network device; Wherein, the fifth signaling is used to instruct to set the timer, or to instruct to set the timer and set the timer to the first duration; in this embodiment, the third signaling The duration is determined by the network device based on at least one of slice resource occupancy, terminal type, and service quality requirements of the first connection.

在一些实施例中,终端设备可以向网络设备发送第八信令,网络设备可以基于确定第八信令中没有携带与定时器相关的特定IE来确定终端设备没有向网络设备请求设置所述定时器;所述第八信令可以是PDU SESSION ESTABLISHMENT REQUEST。In some embodiments, the terminal device may send the eighth signaling to the network device, and the network device may determine that the terminal device does not request the network device to set the timing based on determining that the eighth signaling does not carry a specific IE related to the timer. The eighth signaling may be PDU SESSION ESTABLISHMENT REQUEST.

在一些实施例中,在所述第五信令用于指示设置所述定时器且没有指示设置所述定时器的时长的情况下,终端设备根据终端类型和/或第一连接的业务需求质量将所述定时器设置为所述第一时长。In some embodiments, in the case where the fifth signaling is used to indicate setting the timer and does not indicate the duration of setting the timer, the terminal device determines the quality of service according to the terminal type and/or the service requirement of the first connection. The timer is set to the first duration.

可以理解地,在终端未向网络设备请求设置定时器时,网络设备可以根据切片资源占用情况、终端类型、所述第一连接的业务质量需求的至少之一确定第一时长,然后指示终端设备设置定时器以及将定时器设置为第一时长,但在网络设备指示终端设备可以设置定时器但未指示设置定时器时长时,终端根据自身终端类型和/或第一连接的业务需求质量来将定时器设置为第一时长,以便在第一时长第一连接上无数据传输时及时释放第一连接。It can be understood that when the terminal does not request to set the timer from the network device, the network device can determine the first duration based on at least one of slice resource occupancy, terminal type, and service quality requirements of the first connection, and then instruct the terminal device Set the timer and set the timer to the first duration, but when the network device indicates that the terminal device can set the timer but does not indicate to set the timer duration, the terminal will set the timer according to its own terminal type and/or the service requirement quality of the first connection. The timer is set to a first duration to release the first connection in time when there is no data transmission on the first connection for the first duration.

在一些实施例中,在未向所述网络设备请求设置所述定时器以及所述网络设备未指示设置所述定时器的情况下,终端设备根据终端类型和/或所述第一连接的业务质量需求将所述定时器设置为所述第一时长。In some embodiments, without requesting the network device to set the timer and the network device not instructing to set the timer, the terminal device determines the timer according to the terminal type and/or the service of the first connection. Quality requirements set the timer to the first duration.

在一些实施例中,网络设备向终端设备发送第九信令,终端设备可以基于确定第九信令中不携带与定时器相关的IE来确定网络设备未指示设置所述定时器;所述第九信令可以是PDU SESSION ESTABLISHMENT ACCEPT。In some embodiments, the network device sends the ninth signaling to the terminal device, and the terminal device may determine that the network device has not instructed to set the timer based on determining that the ninth signaling does not carry an IE related to the timer; Nine signaling can be PDU SESSION ESTABLISHMENT ACCEPT.

可以理解地,终端可以根据自身需求内部设置一个定时器,如此,终端不用通过发送信令请求网络设备设置定时器,网络设备不用通过下发信令指示终端是否设置定时器的方式设置定时器,节省了信令开销,且设置方式简易。Understandably, the terminal can set a timer internally according to its own needs. In this way, the terminal does not need to send signaling to request the network device to set the timer, and the network device does not need to set the timer by sending signaling to instruct the terminal whether to set the timer. It saves signaling overhead and is easy to set up.

本申请实施例提供一种会话管理方法,图3为本申请实施例提供的会话管理方法的实现流程示意图,如图3所示,该方法可以包括以下步骤301至步骤304:An embodiment of the present application provides a session management method. Figure 3 is a schematic flowchart of the implementation of the session management method provided by an embodiment of the present application. As shown in Figure 3, the method may include the following steps 301 to 304:

步骤301,终端设备向所述网络设备发送第二信令,所述第二信令至少用于请求设置所述定时器,以及将所述定时器设置为第二时长;Step 301: The terminal device sends second signaling to the network device, where the second signaling is at least used to request setting of the timer and to set the timer to a second duration;

步骤302,网络设备接收终端设备发送的第二信令;Step 302: The network device receives the second signaling sent by the terminal device;

步骤303,网络设备向终端设备发送第四信令,所述第四信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长。其中,所述第一时长是根据切片资源占用情况、终端类型、所述第一连接的业务质量需求、第二时长的至少之一来确定的。Step 303: The network device sends fourth signaling to the terminal device. The fourth signaling is used to instruct to set the timer, or to instruct to set the timer and set the timer to the first value. A long time. The first duration is determined based on at least one of slice resource occupancy, terminal type, service quality requirements of the first connection, and the second duration.

在一些实施例中,所述第四信令可以是PDU SESSION ESTABLISHMENT ACCEPT,也可以是不同于PDU SESSION ESTABLISHMENT ACCEPT的其他信令。In some embodiments, the fourth signaling may be PDU SESSION ESTABLISHMENT ACCEPT, or may be other signaling different from PDU SESSION ESTABLISHMENT ACCEPT.

若第四信令是PDU SESSION ESTABLISHMENT ACCEPT,网络设备可以通过第四信令中的特定IE为终端设置定时器和/或设置定时器为第一时长。If the fourth signaling is PDU SESSION ESTABLISHMENT ACCEPT, the network device can set the timer for the terminal through the specific IE in the fourth signaling and/or set the timer to the first duration.

步骤304,终端设备接收所述网络设备发送的第四信令。Step 304: The terminal device receives the fourth signaling sent by the network device.

在一些实施例中,在所述第四信令用于指示设置所述定时器且没有指示设置所述定时器的时长的情况下,终端设备根据终端类型和/或所述第一连接的业务质量需求将所述定时器设置为所述第一时长。In some embodiments, in the case where the fourth signaling is used to indicate setting the timer and does not indicate setting the duration of the timer, the terminal device determines the timer according to the terminal type and/or the service of the first connection. Quality requirements set the timer to the first duration.

可以理解地,终端设备向网络设备请求设置定时器和设置定时器为第二时长,网络设备指示终端设备可以设置定时器,以及根据切片资源占用情况、终端类型、所述第一连接的业务质量需求、第二时长的至少之一将所述定时器设置为第一时长。而当网络设备指示终端设备可以设置定时器,但未指示设置定时器时长时,终端设备可以根据终端类型和/或所述第一连接的业务质量需求将所述定时器设置为第一时长,以便在第一时长第一连接上无数据传输时及时释放第一连接。It can be understood that the terminal device requests the network device to set the timer and set the timer to the second duration. The network device instructs the terminal device to set the timer, and the timer is set according to the slice resource occupancy, terminal type, and service quality of the first connection. At least one of the requirement and the second duration sets the timer to the first duration. When the network device indicates that the terminal device can set the timer, but does not indicate to set the timer duration, the terminal device can set the timer to the first duration according to the terminal type and/or the service quality requirements of the first connection, In order to release the first connection in time when there is no data transmission on the first connection for the first duration.

本申请实施例提供一种会话管理方法,图4为本申请实施例提供的会话管理方法的实现流程示意图,如图4所示,该方法可以包括以下步骤401至步骤404:This embodiment of the present application provides a session management method. Figure 4 is a schematic flowchart of the implementation of the session management method provided by this embodiment of the present application. As shown in Figure 4, the method may include the following steps 401 to 404:

步骤401,终端设备向所述网络设备发送第六信令,所述第六信令用于请求建立第二连接以及请求设置所述定时器。Step 401: The terminal device sends sixth signaling to the network device, where the sixth signaling is used to request establishment of a second connection and request to set the timer.

在一些实施例中,所述第二连接的类型与第一连接的类型可以是相同的,比如均是PDU会话连接;但两者的建立时刻可以是不同的。In some embodiments, the type of the second connection and the type of the first connection may be the same, for example, both are PDU session connections; but the establishment moments of the two may be different.

在一些实施例中,所述第六信令可以是PDU SESSION ESTABLISHMENT REQUEST。In some embodiments, the sixth signaling may be PDU SESSION ESTABLISHMENT REQUEST.

在一些实施例中,所述第六信令还用于将所述定时器设置为第二时长。In some embodiments, the sixth signaling is also used to set the timer to a second duration.

步骤402,网络设备接收第六信令;Step 402: The network device receives the sixth signaling;

步骤403,网络设备向终端设备发送第七信令。其中,所述第七信令用于指示与所述终端设备建立所述第二连接。Step 403: The network device sends seventh signaling to the terminal device. Wherein, the seventh signaling is used to indicate establishing the second connection with the terminal device.

在一些实施例中,所述第七信令可以是PDU SESSION ESTABLISHMENT ACCEPT。In some embodiments, the seventh signaling may be PDU SESSION ESTABLISHMENT ACCEPT.

在一些实施例中,在所述第七信令中不携带与所述定时器相关的IE的情况下,对于所述第二连接不设置所述定时器;In some embodiments, if the seventh signaling does not carry an IE related to the timer, the timer is not set for the second connection;

在一些实施例中,可以基于确定第七信令中没有携带与定时器相关的IE来确定网络设备未指示设置所述定时器。In some embodiments, it may be determined that the network device has not instructed to set the timer based on determining that the seventh signaling does not carry an IE related to the timer.

可以理解地,终端设备通过第六信令向网络设备请求设置定时器,网络设备可以根据自身网络状况或者切片拥塞状况判断终端是否需要设置定时器,若切片无拥塞现象或者切片拥塞程度较弱,为了保证业务质量,可不同意终端设置定时器以释放第二连接的请求。Understandably, the terminal device requests the network device to set the timer through the sixth signaling. The network device can determine whether the terminal needs to set the timer based on its own network conditions or slice congestion conditions. If the slice has no congestion or the slice congestion is weak, In order to ensure service quality, the terminal may not be allowed to set a timer to release the second connection request.

在移动通信网络中可以将协议数据单元(Protocol Data Unit,PDU)会话理解为终端和外部网络接入点网关之间的连接。以5G技术为例,PDU会话以分配给终端的IP地址以及数据网络名称(Data Network Name,DNN)表征。终端在5G移动通信网络中通过PDU会话进行数据传输。所述DNN为用户面功能(User Plane Function,UPF)标志,标识5G网络之外的不同目的网络。In a mobile communication network, a Protocol Data Unit (PDU) session can be understood as a connection between a terminal and an external network access point gateway. Taking 5G technology as an example, a PDU session is represented by the IP address assigned to the terminal and the Data Network Name (DNN). The terminal transmits data through PDU sessions in the 5G mobile communication network. The DNN is a user plane function (UPF) flag, which identifies different destination networks outside the 5G network.

PDU会话连接建立由终端需要传输数据时发起请求,和网络协同完成。PDU会话连接的释放网络和终端均可发起。PDU session connection establishment is initiated by the terminal when it needs to transmit data, and is completed in collaboration with the network. The release of PDU session connections can be initiated by both the network and the terminal.

在一些实施例中,网络设备触发PDU会话连接释放的原因包括以下内容,其不包括和应用业务相关的释放原因:In some embodiments, the reasons why the network device triggers the release of the PDU session connection include the following, which does not include release reasons related to application services:

运营者决定的闭锁业务(operator determined barring);资源不足(insufficient resources);用户身份验证或授权失败(user authentication orauthorization failed);期停用(regular deactivation);网络故障(network failure);重新激活请求(reactivation requested);LADN服务区外(out of LADN service area);本地数据网络(LADN,Local Area Data Network)特定切片和DNN的资源不足(insufficient resources for specific slice and DNN);特定切片的资源不足(insufficient resources for specific slice)。Operator determined barring; insufficient resources; user authentication or authorization failed; regular deactivation; network failure; reactivation request (reactivation requested); out of LADN service area; local data network (LADN, Local Area Data Network) insufficient resources for specific slice and DNN (insufficient resources for specific slice and DNN); insufficient resources for specific slices (insufficient resources for specific slice).

在一些实施例中,UE发起的PDU会话连接释放请求的原因包括:资源不足(insufficient resources);定期停用(regular deactivation);数据包筛选器中的语义错误(Semantic errors in packet filter(s));数据包筛选器中的语法错误(Syntactical error in packet filter(s));QoS操作中的语义错误(Semantic error inthe QoS operation);QoS(Quality of Service,服务质量)QoS操作中的语法错误(Syntactical error in the QoS operation);无效的强制信息(Invalid mandatoryinformation)。In some embodiments, the reasons for the PDU session connection release request initiated by the UE include: insufficient resources (insufficient resources); regular deactivation (regular deactivation); semantic errors in packet filter(s) ); Syntactical error in packet filter(s); Semantic error in the QoS operation; QoS (Quality of Service, Quality of Service) Syntactic error in the QoS operation (Syntactical error in the QoS operation); Invalid mandatory information.

在目前现网使用的方案中,通常为终端配置一个数据类业务的PDU会话连接(默认PDU会话连接)以及音视频业务(例如网际互连协议多媒体系统(Internet ProtocolMultimedia Subsystem,IMS)的PDU会话连接),每个终端维护的PDU会话连接通常为两个。并且,因为所有的数据业务都走同一个PDU会话连接,而业务心跳包等数据包长期存在,很少涉及到PDU会话的拆除(释放)。In the solution currently used in the existing network, the terminal is usually configured with a PDU session connection for data services (default PDU session connection) and a PDU session connection for audio and video services (such as Internet Protocol Multimedia Subsystem (IMS)). ), each terminal maintains usually two PDU session connections. Moreover, because all data services use the same PDU session connection, and data packets such as business heartbeat packets exist for a long time, they rarely involve the removal (release) of the PDU session.

但是,随着在5G网络中引入切片功能,PDU会话连接和切片存在对应关系,不同应用业务签约不同切片,则终端将为其建立不同的PDU会话连接。一种常见的实现方式为,默认切片(含未开通切片)的业务对应到默认PDU会话连接,其它签约了特定切片服务的应用业务对应的特定的PDU会话连接,则一个终端需要维护多个PDU会话连接。However, with the introduction of slicing functions in 5G networks, there is a corresponding relationship between PDU session connections and slices. If different application services sign up for different slices, the terminal will establish different PDU session connections for them. A common implementation method is that the services of the default slice (including unactivated slices) correspond to the default PDU session connection, and other application services signed up for specific slice services correspond to specific PDU session connections. In this case, a terminal needs to maintain multiple PDUs. Session connection.

在测试中发现存在如下问题:用户使用签约切片的应用业务后(如在手机端打开该业务的APP),终端和网络之间按照正常流程建立PDU会话连接。在用户退出该业务后(如在手机端退出该业务的APP),PDU会话连接仍然存在,没有释放。在连续使用多个签约切片的业务然后退出的场景下,终端维持了多个PDU会话连接,但此时该PDU会话连接上已经没有任何数据传输。该问题引发的后果在于,当某个切片上注册的终端达到最大值,或者某个切片上建立的PDU会话连接达到最大值,将不再允许后续终端接入或者使用该切片。即,终端释放PDU会话连接不及时,将会引起切片拥塞,影响其它订阅该切片的终端正常使用切片。During the test, the following problems were found: after the user uses the application service of the contract slice (such as opening the APP of the service on the mobile phone), the PDU session connection is established between the terminal and the network according to the normal process. After the user exits the service (such as exiting the service APP on the mobile phone), the PDU session connection still exists and is not released. In the scenario where the service of multiple contracted slices is continuously used and then exited, the terminal maintains multiple PDU session connections, but at this time there is no data transmission on the PDU session connection. The consequence of this problem is that when the number of terminals registered on a certain slice reaches the maximum, or the number of PDU session connections established on a certain slice reaches the maximum, subsequent terminals will no longer be allowed to access or use the slice. That is, if the terminal does not release the PDU session connection in time, it will cause slice congestion and affect the normal use of the slice by other terminals subscribing to the slice.

基于此,下面将说明本申请实施例在一个实际的应用场景中的示例性应用。Based on this, the following will describe an exemplary application of the embodiment of the present application in an actual application scenario.

在本申请实施例中,提供了一种自动释放PDU会话连接的方法,可以应用于终端设备和网络设备,在本申请中,终端可以根据一定时间内第一PDU会话连接上传输的数据量判断是否需要释放第一PDU会话连接。具体流程如下:In the embodiment of this application, a method of automatically releasing a PDU session connection is provided, which can be applied to terminal equipment and network equipment. In this application, the terminal can determine based on the amount of data transmitted on the first PDU session connection within a certain period of time. Whether it is necessary to release the first PDU session connection. The specific process is as follows:

在一些实施例中,终端为包括第一PDU会话的每个PDU会话连接启动并维护一个定时器。PDU会话连接和定时器之间存在一一对应关系。In some embodiments, the terminal starts and maintains a timer for each PDU session connection including the first PDU session. There is a one-to-one correspondence between PDU session connections and timers.

在一些实施例中,可以通过方式(1)至方式(3)设置定时器和/或将定时器设置为第一时长:In some embodiments, the timer can be set through methods (1) to (3) and/or the timer can be set to the first duration:

方式(1)为:网络通过信令为每个网络和终端之间的PDU会话连接配置不同的定时器及对应的定时器时长,如在第一PDU会话连接建立过程中通过相关信令为第一PDU会话连接配置定时器和/或配置定时器为第一时长。Method (1) is: the network configures different timers and corresponding timer durations for each PDU session connection between the network and the terminal through signaling. For example, during the establishment process of the first PDU session connection, the network configures the first PDU session connection through relevant signaling. A PDU session connection configures a timer and/or configures the timer to a first duration.

方式(2)为:终端和网络经过协商确定为第一PDU会话连接配置或者不配置定时器。具体为,终端通过信令向网络申请为第一PDU会话连接设置定时器和/或申请将定时器设置为第二时长,网络通过信令告知允许终端配置或者不配置定时器。如果允许配置,终端可以将定时器设置为第一时长,或网络设备将定时器配置为第一时长。比如,UE在第一PDU会话连接建立过程中通过相关信令携带特定IE为第一PDU会话申请配置定时器,网络通过第一PDU会话建立过程中相关信令中的特定IE配置定时器及第一时长,若不携带IE则不配置定时器。Method (2) is: the terminal and the network determine through negotiation whether to configure or not configure a timer for the first PDU session connection. Specifically, the terminal applies to the network through signaling to set a timer for the first PDU session connection and/or applies to set the timer to the second duration, and the network informs the network through signaling that the terminal is allowed to configure or not configure the timer. If configuration is allowed, the terminal can set the timer to the first duration, or the network device configures the timer to the first duration. For example, during the first PDU session connection establishment process, the UE carries a specific IE in the relevant signaling to apply for a configuration timer for the first PDU session, and the network configures the timer and the first PDU session through the specific IE in the relevant signaling during the first PDU session establishment process. One time duration. If IE is not carried, no timer is configured.

方式(3)为:终端内部维护定时器并设定第一时长,网络不知悉该定时器。Method (3) is: the terminal maintains the timer internally and sets the first duration, and the network does not know the timer.

在一些实施例中,网络根据每个PDU会话使用的切片资源占用情况为对应的定时器设定不同的最大值。In some embodiments, the network sets different maximum values for corresponding timers based on the occupancy of slice resources used by each PDU session.

在一些实施例中,“切片资源占用情况”可以用“该切片上已建立的PDU会话数量/该切片可承载的PDU会话数量最大值”的比例表示。In some embodiments, "slice resource occupancy" can be expressed by the ratio of "the number of established PDU sessions on the slice/the maximum number of PDU sessions that the slice can carry".

在一些实施例中,当切片资源占用比例大于第一门限值,将定时器设置第三时长;当切片资源占用比例小于第二门限值,将定时器设置为第三时长;根据第三时长和第四时长确定第一时长。其中第一门限值大于第二门限值,第三时长小于第四时长。In some embodiments, when the slice resource occupancy ratio is greater than the first threshold value, the timer is set to a third duration; when the slice resource occupancy ratio is less than the second threshold value, the timer is set to the third duration; according to the third The duration and the fourth duration determine the first duration. The first threshold value is greater than the second threshold value, and the third duration is less than the fourth duration.

在一些实施例中,终端可以根据终端类型确定第二时长,并请求网络将定时器设置为第二时长;或网络可以根据终端类型设置定时器为第一时长。比如:对于面向企业(TOBusiness,ToB)的终端,数据传输具有一定的规律性,在一次数据传输完成后,突发数据传输可能性较小,定时器可设置为较小值;对于面向消费者(TO Consumer,ToC)的终端,数据传输随意性较大,是适当延长维持第一PDU会话连接的时间,定时器可设置为较大值。In some embodiments, the terminal may determine the second duration based on the terminal type and request the network to set the timer to the second duration; or the network may set the timer to the first duration based on the terminal type. For example: for enterprise-oriented (TOBusiness, ToB) terminals, data transmission has a certain regularity. After a data transmission is completed, the possibility of burst data transmission is small, and the timer can be set to a smaller value; for consumer-oriented terminals (TO Consumer, ToC) terminals have greater randomness in data transmission, so it is appropriate to extend the time to maintain the first PDU session connection, and the timer can be set to a larger value.

在一些实施例中,终端可以根据第一PDU会话连接的业务质量需求确定第二时长,并请求网络将定时器设置为第二时长;或,网络根据第一PDU会话连接的业务质量需求将定时器设置为第一时长。这里“第一PDU会话连接的业务质量需求”指的是第一PDU会话连接的QoS或者该第一PDU会话连接承载的切片类型。例如,第一PDU会话连接承载的切片类型为URLLC,对时延有较大要求,则定时器可在第一数值范围内取值;该PDU会话承载的切片类型为mMTC,使用该切片的终端数量较大,则定时器可在第二数值范围内取值。第一数值范围内的值不小于第二数值范围内的值。In some embodiments, the terminal can determine the second duration based on the service quality requirements of the first PDU session connection, and request the network to set the timer to the second duration; or, the network can set the timer according to the service quality requirements of the first PDU session connection. The device is set to the first duration. Here, the "service quality requirements of the first PDU session connection" refers to the QoS of the first PDU session connection or the slice type carried by the first PDU session connection. For example, if the slice type carried by the first PDU session connection is URLLC, which has greater requirements on delay, the timer can take a value within the first value range; the slice type carried by the PDU session is mMTC, and the terminal using this slice If the number is larger, the timer can take a value within the second value range. The values in the first numerical range are not less than the values in the second numerical range.

在一些实施例中,在第一PDU会话连接建立成功时启动该定时器,在第一PDU会话连接释放后删除该定时器。In some embodiments, the timer is started when the first PDU session connection is successfully established, and the timer is deleted after the first PDU session connection is released.

在一些实施例中,对于每一个已建立的PDU会话,终端监测该PDU会话的数据传输状态,并根据数据传输状态维护定时器。In some embodiments, for each established PDU session, the terminal monitors the data transmission status of the PDU session and maintains a timer according to the data transmission status.

在一些实施例中,终端监测第一PDU会话连接上上行及下行数据传输状态,数据传输状态至少能够区分“有数据传输”和“没有数据传输”。In some embodiments, the terminal monitors the uplink and downlink data transmission status on the first PDU session connection, and the data transmission status can at least distinguish between "data transmission with" and "no data transmission".

在一些实施例中,终端可以通过监测第一PDU会话连接上的所有DRB的数据传输状态来实现对第一PDU会话连接数据传输状态的监测,任何一个DRB上有数据传输,则认为第一PDU会话连接上“有数据传输”;所有DRB上都没有数据传输,则认为第一PDU会话连接上“没有数据传输”,“数据”包含上行或者下行数据。In some embodiments, the terminal can monitor the data transmission status of the first PDU session connection by monitoring the data transmission status of all DRBs on the first PDU session connection. If there is data transmission on any DRB, the first PDU is considered If there is "data transmission" on the session connection; if there is no data transmission on all DRBs, it is considered that there is "no data transmission" on the session connection of the first PDU, and "data" includes uplink or downlink data.

在一些实施例中,在终端监测到第一PDU会话连接上有数据传输后定时器清零并重新启动。In some embodiments, the timer is cleared and restarted after the terminal detects data transmission on the first PDU session connection.

在一些实施例中,定时器超时后,终端判断可以释放第一PDU会话连接,终端发送第一PDU会话连接释放请求信令(即所述第一信令的一种示例),该第一PDU会话连接释放请求信令用于请求网络释放第一PDU会话连接。In some embodiments, after the timer times out, the terminal determines that the first PDU session connection can be released, and the terminal sends the first PDU session connection release request signaling (ie, an example of the first signaling). The first PDU The session connection release request signaling is used to request the network to release the first PDU session connection.

本申请实施例提供一种会话管理方法,该方法可以包括以下步骤401a至步骤406a(图中未示出):This embodiment of the present application provides a session management method, which may include the following steps 401a to 406a (not shown in the figure):

步骤401a,终端通过PDU SESSION ESTABLISHMENT REQUEST信令(即所述第二信令、第六信令或第八信令的一种示例)请求建立第一PDU会话连接,在第一PDU SESSIONESTABLISHMENT REQUEST信令中申请设置定时器。Step 401a: The terminal requests to establish a first PDU session connection through PDU SESSION ESTABLISHMENT REQUEST signaling (that is, an example of the second signaling, sixth signaling, or eighth signaling). In the first PDU SESSIONESTABLISHMENT REQUEST signaling Set the timer in the application.

在一些实施例中,终端通过PDU SESSION ESTABLISHMENT REQUEST信令请求建立第一PDU会话连接,在PDU SESSION ESTABLISHMENT REQUEST信令中申请设置定时器以及申请定时器为第二时长。In some embodiments, the terminal requests to establish the first PDU session connection through PDU SESSION ESTABLISHMENT REQUEST signaling, and applies to set the timer and apply for the second duration of the timer in the PDU SESSION ESTABLISHMENT REQUEST signaling.

在一些实施例中,终端通过PDU SESSION ESTABLISHMENT REQUEST信令请求建立PDU会话,在PDU SESSION ESTABLISHMENT REQUEST信令中不申请设置定时器。在该实施例中,接收所述网络设备发送的第五信令;其中,所述第五信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长;在所述第五信令用于指示设置所述定时器且没有指示设置所述定时器的时长的情况下,将所述定时器设置为所述第一时长;In some embodiments, the terminal requests the establishment of a PDU session through PDU SESSION ESTABLISHMENT REQUEST signaling, and does not apply to set the timer in the PDU SESSION ESTABLISHMENT REQUEST signaling. In this embodiment, the fifth signaling sent by the network device is received; wherein the fifth signaling is used to instruct to set the timer, or to instruct to set the timer and set the timer. The timer is set to the first duration; when the fifth signaling is used to indicate setting the timer and does not indicate the duration of setting the timer, the timer is set to the first duration. ;

步骤402a,网络确认当前已在该切片上建立的PDU会话连接数量和该切片可承载的PDU会话连接数量最大值,通过两者比值判断拥塞程度,设置定时器为第一时长。网络通过下发PDU SESSION ESTABLISHMENT ACCEPT信令(即所述第三信令、第四信令、第五信令、第七信令或第九信令的一种示例)建立第一PDU会话连接,同时PDU SESSIONESTABLISHMENT ACCEPT信令中配置定时器,设置定时器值为第一时长。Step 402a: The network confirms the number of PDU session connections currently established on the slice and the maximum number of PDU session connections that the slice can carry, determines the degree of congestion based on the ratio between the two, and sets the timer to the first duration. The network establishes the first PDU session connection by issuing PDU SESSION ESTABLISHMENT ACCEPT signaling (that is, an example of the third signaling, fourth signaling, fifth signaling, seventh signaling or ninth signaling), At the same time, a timer is configured in the PDU SESSIONESTABLISHMENT ACCEPT signaling, and the timer value is set to the first duration.

步骤403a,终端在完成第一PDU会话连接建立后启动定时器,定时器运行。Step 403a: After completing the establishment of the first PDU session connection, the terminal starts the timer and the timer runs.

步骤404a,终端和网络在第一PDU会话连接上进行数据传输,终端在发送或者接收到至少一个数据包后将该定时器清零重新启动。Step 404a: The terminal and the network perform data transmission on the first PDU session connection. The terminal clears the timer and restarts it after sending or receiving at least one data packet.

步骤405a,终端和网络在第一PDU会话连接上停止数据传输,定时器正常运行。Step 405a: The terminal and the network stop data transmission on the first PDU session connection, and the timer runs normally.

步骤406a,定时器运行到第一时长时后超时,终端发送PDU SESSION RELEASEREQUEST(即所述第一信令的一种示例)请求释放第一连接。Step 406a: When the timer runs to the first duration and then times out, the terminal sends PDU SESSION RELEASEREQUEST (ie, an example of the first signaling) to request to release the first connection.

本申请实施例提供一种会话管理方法,该方法可以包括以下步骤401b至步骤403b(图中未示出):This embodiment of the present application provides a session management method, which may include the following steps 401b to 403b (not shown in the figure):

步骤401b,终端通过PDU SESSION ESTABLISHMENT REQUEST信令请求建立第二PDU会话连接(即所述第二连接的一种示例),在PDU SESSION ESTABLISHMENT REQUEST信令中申请设置定时器。Step 401b: The terminal requests to establish a second PDU session connection (ie, an example of the second connection) through PDU SESSION ESTABLISHMENT REQUEST signaling, and applies to set a timer in the PDU SESSION ESTABLISHMENT REQUEST signaling.

步骤402b,网络通过下发PDU SESSION ESTABLISHMENT ACCEPT信令建立第二PDU会话连接,同时PDU SESSION ESTABLISHMENT ACCEPT信令中不携带定时器相关IE。Step 402b: The network establishes the second PDU session connection by issuing PDU SESSION ESTABLISHMENT ACCEPT signaling. At the same time, the PDU SESSION ESTABLISHMENT ACCEPT signaling does not carry timer-related IEs.

步骤403b,终端在第二PDU会话连接建立后,对于第二PDU会话连接不设置定时器。Step 403b: After the second PDU session connection is established, the terminal does not set a timer for the second PDU session connection.

本申请实施例提供一种会话管理方法,该方法可以包括以下步骤401c至步骤406c(图中未示出):This embodiment of the present application provides a session management method, which may include the following steps 401c to 406c (not shown in the figure):

步骤401c,终端通过PDU SESSION ESTABLISHMENT REQUEST信令请求建立第一PDU会话连接。Step 401c: The terminal requests to establish the first PDU session connection through PDU SESSION ESTABLISHMENT REQUEST signaling.

步骤402c,网络通过下发PDU SESSION ESTABLISHMENT ACCEPT信令建立PDU会话。Step 402c: The network establishes a PDU session by issuing PDU SESSION ESTABLISHMENT ACCEPT signaling.

步骤403c,终端在第一PDU会话建立后启动定时器,设置定时器为第一时长。Step 403c: After the first PDU session is established, the terminal starts the timer and sets the timer to the first duration.

步骤404c,终端和网络在第一PDU会话连接上进行数据传输,终端在发送或者接收到至少一个数据包时将该定时器清零重新启动。Step 404c: The terminal and the network perform data transmission on the first PDU session connection. When the terminal sends or receives at least one data packet, it clears the timer and restarts it.

步骤405c,终端和网络在第一PDU会话连接上停止数据传输,定时器正常运行。Step 405c: The terminal and the network stop data transmission on the first PDU session connection, and the timer runs normally.

步骤406c,定时器运行到第一时长时超时,终端发送PDU SESSION RELEASEREQUEST请求释放第一PDU会话连接。Step 406c: When the timer runs to the first duration and times out, the terminal sends a PDU SESSION RELEASEREQUEST request to release the first PDU session connection.

本申请实施例提供了一种自动释放PDU会话连接的方法和装置,应用于终端和网络,根据一定时间内第一PDU会话连接上传输的数据量判断是否需要释放第一PDU会话连接。Embodiments of the present application provide a method and device for automatically releasing a PDU session connection, which is applied to terminals and networks and determines whether it is necessary to release the first PDU session connection based on the amount of data transmitted on the first PDU session connection within a certain period of time.

在一些实施例中,终端为每一个已建立PDU会话连接设置并维护一个定时器。In some embodiments, the terminal sets and maintains a timer for each established PDU session connection.

在一些实施例中,终端和网络通过信令协商是否设置定时器以及定时器的值。定时器的值可以根据第一PDU会话连接对应的切片资源占用比例,或者终端类型设定,或者根据第一PDU会话连接的业务质量需求设定。In some embodiments, the terminal and the network negotiate whether to set the timer and the value of the timer through signaling. The value of the timer may be set based on the slice resource occupancy ratio corresponding to the first PDU session connection, or the terminal type, or set based on the service quality requirements of the first PDU session connection.

在一些实施例中,终端内部设置定时器以及将定时器设置为第一时长。In some embodiments, the terminal sets the timer internally and sets the timer to the first duration.

在一些实施例中,网络通过信令告知终端第一PDU会话连接是否设置定时器和/或将定时器设置为第一时长。In some embodiments, the network informs the terminal through signaling whether the first PDU session connection sets a timer and/or sets the timer to the first duration.

在一些实施例中,对于每一个已建立的PDU会话连接,终端监测该PDU会话的数据传输状态。In some embodiments, for each established PDU session connection, the terminal monitors the data transmission status of the PDU session.

在一些实施例中,终端在定时器超时后发起第一PDU会话连接释放请求。In some embodiments, the terminal initiates the first PDU session connection release request after the timer times out.

本申请实施例提供的方法能够及时释放已经不需要使用的PDU会话连接,特别是在切片应用场景,容易出现一个终端维护多个PDU会话连接的情况,能够使PDU会话连接资源的使用更加灵活,并且节省IP地址资源。The method provided by the embodiments of this application can promptly release PDU session connections that are no longer needed. Especially in slicing application scenarios, it is easy for one terminal to maintain multiple PDU session connections, and can make the use of PDU session connection resources more flexible. And save IP address resources.

本申请实施例提供的方法能够解决终端释放PDU会话连接不及时导致某切片上建立的PDU会话连接达到上限,从而导致其它订阅该切片的终端无法接入的问题。The method provided by the embodiments of this application can solve the problem of the terminal not releasing the PDU session connection in time, causing the PDU session connection established on a certain slice to reach the upper limit, thus causing other terminals subscribing to the slice to be unable to access.

本申请实施例的方案实现简单,在通信层面即可实现,不涉及应用层和通信层的接口设计,在终端侧较易实现。The solution of the embodiment of this application is simple to implement and can be implemented at the communication level. It does not involve the interface design of the application layer and the communication layer and is easier to implement on the terminal side.

应当注意,尽管在附图中以特定顺序描述了本申请中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等;或者,将不同实施例中步骤组合为新的技术方案。It should be noted that although the various steps of the methods in this application are described in a specific order in the drawings, this does not require or imply that these steps must be performed in that specific order, or that all of the steps shown must be performed to achieve the desired results. the result of. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step for execution, and/or one step can be decomposed into multiple steps for execution, etc.; or, steps in different embodiments can be combined into a new technology. plan.

基于前述的实施例,本申请实施例提供一种会话管理装置,该装置包括所包括的各模块、以及各模块所包括的各单元,可以通过处理器来实现;当然也可通过具体的逻辑电路实现;在实施的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。Based on the foregoing embodiments, embodiments of the present application provide a session management device. The device includes various modules and units included in each module. It can be implemented by a processor; of course, it can also be implemented by specific logic circuits. Implementation; During the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

图5为本申请实施例提供的会话管理装置的结构示意图,如图5所示,所述装置50包括启动模块51和发送模块52,其中:Figure 5 is a schematic structural diagram of a session management device provided by an embodiment of the present application. As shown in Figure 5, the device 50 includes a startup module 51 and a sending module 52, wherein:

启动模块51,用于为建立的第一连接启动定时器;其中,所述定时器设置为第一时长,所述第一连接用于传输PDU数据包;Start module 51, configured to start a timer for the first connection established; wherein the timer is set to a first duration, and the first connection is used to transmit PDU data packets;

第一发送模块52,用于基于确定在所述第一时长所述第一连接上传输的数据量小于或等于第一阈值,向网络设备发送第一信令,所述第一信令用于请求释放所述第一连接。The first sending module 52 is configured to send first signaling to the network device based on determining that the amount of data transmitted on the first connection of the first duration is less than or equal to a first threshold, where the first signaling is used Request release of the first connection.

在一些实施例中,所述启动模块51,还用于当所述第一连接建立成功时,启动所述定时器。In some embodiments, the starting module 51 is also configured to start the timer when the first connection is successfully established.

在一些实施例中,所述会话管理装置50还包括停止模块,所述停止模块,用于停止所述定时器;所述启动模块51,还用于重新启动清零后的所述定时器。In some embodiments, the session management device 50 further includes a stop module, the stop module is used to stop the timer; the start module 51 is also used to restart the cleared timer.

在一些实施例中,所述第一时长是根据以下至少之一确定的:切片资源占用情况;终端类型;所述第一连接的业务质量需求。In some embodiments, the first duration is determined based on at least one of the following: slice resource occupancy; terminal type; and service quality requirements of the first connection.

在一些实施例中,所述第一发送模块52,还用于向所述网络设备发送第二信令,所述第二信令至少用于请求设置所述定时器;所述会话管理装置还包括第二接收模块,所述第二接收模块,用于接收所述网络设备发送的第三信令;其中,所述第三信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长;所述会话管理装置还包括设置模块,所述设置模块,用于在所述第三信令用于指示设置所述定时器且没有指示设置所述定时器的时长的情况下,将所述定时器设置为所述第一时长。In some embodiments, the first sending module 52 is also configured to send second signaling to the network device, where the second signaling is at least used to request setting of the timer; the session management device is also including a second receiving module, the second receiving module being used to receive third signaling sent by the network device; wherein the third signaling is used to indicate setting of the timer, or to indicate setting the timer and setting the timer to the first duration; the session management device further includes a setting module configured to indicate setting of the timer in the third signaling And if there is no instruction to set the duration of the timer, the timer is set to the first duration.

在一些实施例中,所述第二信令还用于请求将所述定时器设置为第二时长;所述第二接收模块,还用于接收所述网络设备发送的第四信令;其中,所述第四信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长;所述设置模块,还用于在所述第四信令用于指示设置所述定时器且没有指示设置所述定时器的时长的情况下,将所述定时器设置为所述第一时长;其中,所述第一时长至少是根据所述第二时长确定的。In some embodiments, the second signaling is also used to request to set the timer to a second duration; the second receiving module is also used to receive the fourth signaling sent by the network device; wherein , the fourth signaling is used to instruct to set the timer, or to instruct to set the timer and set the timer to the first duration; the setting module is also used to set the timer. When the fourth signaling is used to indicate setting of the timer and does not indicate the duration of setting the timer, the timer is set to the first duration; wherein the first duration is at least based on The second duration is determined.

在一些实施例中,所述第二接收模块,还用于在未向所述网络设备请求设置所述定时器的情况下,接收所述网络设备发送的第五信令;其中,所述第五信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长。还用于在所述第五信令用于指示设置所述定时器且没有指示设置所述定时器的时长的情况下,将所述定时器设置为所述第一时长;所述设置模块,还用于在未向所述网络设备请求设置所述定时器以及所述网络设备未指示设置所述定时器的情况下,将所述定时器设置为所述第一时长。In some embodiments, the second receiving module is further configured to receive the fifth signaling sent by the network device without requesting the network device to set the timer; wherein the third Five signaling is used to instruct to set the timer, or to instruct to set the timer and set the timer to the first duration. Also configured to set the timer to the first duration when the fifth signaling is used to indicate setting the timer and does not indicate setting the duration of the timer; the setting module, It is also configured to set the timer to the first duration when the network device is not requested to set the timer and the network device does not indicate setting the timer.

在一些实施例中,所述第一发送模块52,还用于向所述网络设备发送第六信令,其中,所述第六信令用于请求建立所述第一连接以及请求设置所述定时器;所述第二接收模块,还用于接收所述网络设备发送的第七信令,所述第七信令用于指示与所述终端设备建立所述第一连接;在所述第七信令中没有携带与所述定时器相关的IE的情况下,对于所述第一连接不设置所述定时器。In some embodiments, the first sending module 52 is also configured to send a sixth signaling to the network device, where the sixth signaling is used to request establishment of the first connection and request to set the timer; the second receiving module is also used to receive the seventh signaling sent by the network device, the seventh signaling is used to indicate establishing the first connection with the terminal device; in the third If the seven signaling does not carry the IE related to the timer, the timer is not set for the first connection.

在一些实施例中,所述终端类型包括以下至少之一:ToB终端;ToC终端。In some embodiments, the terminal type includes at least one of the following: ToB terminal; ToC terminal.

在一些实施例中,所述第一连接的业务质量需求包括所述第一连接的QoS和/或所述第一连接承载的切片类型。In some embodiments, the service quality requirements of the first connection include QoS of the first connection and/or a slice type carried by the first connection.

图6为本申请实施例提供的会话管理装置的结构示意图,如图6所示,所述装置60包括第一接收模块61和释放模块62,其中:Figure 6 is a schematic structural diagram of a session management device provided by an embodiment of the present application. As shown in Figure 6, the device 60 includes a first receiving module 61 and a releasing module 62, wherein:

第一接收模块,用于接收终端设备发送的第一信令,所述第一信令用于请求释放与所述终端设备建立的第一连接,所述第一连接用于传输PDU数据包;The first receiving module is configured to receive the first signaling sent by the terminal device, the first signaling is used to request the release of the first connection established with the terminal device, and the first connection is used to transmit PDU data packets;

释放模块,用于释放所述第一连接;其中,所述第一信令是在定时器的第一时长所述第一连接上传输的数据量小于或等于第一阈值的情况下发送的,所述定时器是为所述第一连接设置的。a release module, configured to release the first connection; wherein the first signaling is sent when the amount of data transmitted on the first connection is less than or equal to a first threshold during the first duration of the timer, The timer is set for the first connection.

在一些实施例中,所述第一接收模块61,还用于接收所述终端设备发送的第二信令,其中,所述第二信令至少用于请求设置所述定时器。In some embodiments, the first receiving module 61 is also configured to receive second signaling sent by the terminal device, where the second signaling is at least used to request to set the timer.

在一些实施例中,所述装置60还包括第二发送模块,所述第二发送模块,用于向所述终端设备发送第三信令,其中,所述第三信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长。In some embodiments, the apparatus 60 further includes a second sending module, the second sending module being configured to send third signaling to the terminal device, where the third signaling is used to indicate setting the required the timer, or used to indicate setting the timer and setting the timer to the first duration.

在一些实施例中,所述第二信令还用于请求将所述定时器设置为第二时长;所述第二发送模块,还用于向所述终端设备发送第四信令,其中,所述第四信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长。In some embodiments, the second signaling is also used to request to set the timer to a second duration; the second sending module is also used to send fourth signaling to the terminal device, wherein, The fourth signaling is used to instruct to set the timer, or to instruct to set the timer and set the timer to the first duration.

在一些实施例中,所述第二发送模块,还用于在未接收到所述终端设备设置所述定时器的请求的情况下,向终端设备发送第五信令;其中,所述第五信令用于指示设置所述定时器,或者,用于指示设置所述定时器以及将所述定时器设置为所述第一时长。In some embodiments, the second sending module is further configured to send fifth signaling to the terminal device without receiving a request from the terminal device to set the timer; wherein the fifth The signaling is used to indicate setting the timer, or to indicate setting the timer and setting the timer to the first duration.

在一些实施例中,所述第一接收模块61,还用于接收所述终端设备发送的第六信令,所述第六信令用于请求建立所述第二连接;所述第二发送模块,还用于向所述终端设备发送第七信令,所述第七信令用于指示与所述终端设备建立所述第二连接;在所述第七信令中没有携带与所述定时器相关的IE的情况下,终端对于所述第二连接不设置所述定时器。In some embodiments, the first receiving module 61 is also used to receive the sixth signaling sent by the terminal device, where the sixth signaling is used to request the establishment of the second connection; the second sending Module, further configured to send seventh signaling to the terminal device, where the seventh signaling is used to indicate establishing the second connection with the terminal device; the seventh signaling does not carry the In the case of timer-related IE, the terminal does not set the timer for the second connection.

以上装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

需要说明的是,本申请实施例中图5和图6所示的会话管理装置对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。也可以采用软件和硬件结合的形式实现。It should be noted that the division of modules by the session management device shown in Figures 5 and 6 in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods. In addition, each functional unit in various embodiments of the present application may be integrated into one processing unit, may exist independently, or may have two or more units integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units. It can also be implemented by combining software and hardware.

需要说明的是,本申请实施例中,如果以软件功能模块的形式实现上述的方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得终端设备和网络设备执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本申请实施例不限制于任何特定的硬件和软件结合。It should be noted that in the embodiments of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products that are essentially or contribute to related technologies. The computer software product is stored in a storage medium and includes a number of instructions to enable The terminal device and the network device execute all or part of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), magnetic disk or optical disk and other various media that can store program codes. As such, embodiments of the present application are not limited to any specific combination of hardware and software.

本申请实施例提供一种终端设备,图7为本申请实施例的电子设备的硬件实体示意图,如图7所示,所述电子设备70包括存储器71和处理器72,所述存储器71存储有可在处理器72上运行的计算机程序,所述处理器72执行所述程序时实现上述实施例中提供的方法中的步骤。An embodiment of the present application provides a terminal device. Figure 7 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application. As shown in Figure 7, the electronic device 70 includes a memory 71 and a processor 72. The memory 71 stores A computer program that can be run on the processor 72, and when the processor 72 executes the program, the steps in the method provided in the above embodiments are implemented.

需要说明的是,存储器71配置为存储由处理器72可执行的指令和应用,还可以缓存在处理器72以及电子设备70中各模块待处理或已经处理的数据(例如,图像数据、音频数据、语音通信数据和视频通信数据),可以通过闪存(FLASH)或随机访问存储器(RandomAccess Memory,RAM)实现。It should be noted that the memory 71 is configured to store instructions and applications executable by the processor 72, and can also cache data to be processed or processed by each module in the processor 72 and the electronic device 70 (for example, image data, audio data , voice communication data and video communication data), which can be implemented through flash memory (FLASH) or random access memory (RandomAccess Memory, RAM).

本申请实施例提供一种网络设备,图8为本申请实施例的电子设备的硬件实体示意图,如图8所示,所述电子设备80包括存储器81和处理器82,所述存储器81存储有可在处理器82上运行的计算机程序,所述处理器82执行所述程序时实现上述实施例中提供的方法中的步骤。An embodiment of the present application provides a network device. Figure 8 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application. As shown in Figure 8, the electronic device 80 includes a memory 81 and a processor 82. The memory 81 stores A computer program that can be run on the processor 82. When the processor 82 executes the program, the steps in the method provided in the above embodiments are implemented.

需要说明的是,存储器81配置为存储由处理器82可执行的指令和应用,还可以缓存在处理器82以及电子设备80中各模块待处理或已经处理的数据(例如,图像数据、音频数据、语音通信数据和视频通信数据),可以通过闪存(FLASH)或随机访问存储器(RandomAccess Memory,RAM)实现。It should be noted that the memory 81 is configured to store instructions and applications executable by the processor 82, and can also cache data to be processed or processed by each module in the processor 82 and the electronic device 80 (for example, image data, audio data , voice communication data and video communication data), which can be implemented through flash memory (FLASH) or random access memory (RandomAccess Memory, RAM).

本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述实施例中提供的会话管理方法中的步骤。Embodiments of the present application provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the session management method provided in the above embodiments are implemented.

本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述方法实施例提供的会话管理方法中的步骤。Embodiments of the present application provide a computer program product containing instructions that, when run on a computer, cause the computer to perform steps in the session management method provided by the above method embodiments.

这里需要指出的是:以上存储介质和设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质、存储介质和设备实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that the above description of the storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

应理解,说明书通篇中提到的“一个实施例”或“一实施例”或“一些实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”或“在一些实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述。It will be understood that reference throughout this specification to "one embodiment" or "an embodiment" or "some embodiments" means that a particular feature, structure, or characteristic associated with the embodiment is included in at least one embodiment of the present application. . Thus, the appearances of "in one embodiment" or "in an embodiment" or "in some embodiments" in various places throughout this specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation. The above 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 above description of various embodiments tends to emphasize the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described again here.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如对象A和/或对象B,可以表示:单独存在对象A,同时存在对象A和对象B,单独存在对象B这三种情况。The term "and/or" in this article is just an association relationship that describes related objects, indicating that there can be three relationships, such as object A and/or object B, which can mean: object A exists alone, and object A and object exist at the same time. B, there are three cases of object B alone.

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

在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个模块或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或模块的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The above-described embodiments are only illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods, such as: multiple modules or components may be combined, or may be Integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be electrical, mechanical, or other forms. of.

上述作为分离部件说明的模块可以是、或也可以不是物理上分开的,作为模块显示的部件可以是、或也可以不是物理模块;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部模块来实现本实施例方案的目的。The modules described above as separate components may or may not be physically separated; the components shown as modules may or may not be physical modules; they may be located in one place or distributed to multiple network units; Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各实施例中的各功能模块可以全部集成在一个处理单元中,也可以是各模块分别单独作为一个单元,也可以两个或两个以上模块集成在一个单元中;上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional module in each embodiment of the present application can be all integrated into one processing unit, or each module can be separately used as a unit, or two or more modules can be integrated into one unit; the above-mentioned integration The module can be implemented in the form of hardware or in the form of hardware plus software functional units.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed through hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the execution includes: The steps of the above method embodiment; and the aforementioned storage media include: mobile storage devices, read-only memory (Read Only Memory, ROM), magnetic disks or optical disks and other various media that can store program codes.

或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得终端设备和网络设备执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the integrated units mentioned above in this application are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products that are essentially or contribute to related technologies. The computer software product is stored in a storage medium and includes a number of instructions to enable The terminal device and the network device execute all or part of the methods described in various embodiments of this application. The aforementioned storage media include: mobile storage devices, ROMs, magnetic disks or optical disks and other media that can store program codes.

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

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

本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。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 embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application. are covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (21)

1. A session management method applied to a terminal device, the method comprising:
starting a timer for the established first connection; the timer is set to a first duration, and the first connection is used for transmitting PDU data packets;
and based on determining that the amount of data transmitted over the first connection for the first duration is less than or equal to a first threshold, sending first signaling to a network device, the first signaling being used to request release of the first connection.
2. The method of claim 1, wherein the starting a timer for the established first connection comprises:
and when the first connection is established successfully, starting the timer.
3. The method according to claim 2, wherein the method further comprises:
Stopping the timer when at least one data packet is received within the first time period;
restarting the cleared timer.
4. The method of claim 1, wherein the first time period is determined based on at least one of:
slice resource occupation;
a terminal type;
the quality of service requirement of the first connection.
5. The method according to claim 4, wherein the method further comprises:
transmitting a second signaling to the network device, wherein the second signaling is at least used for requesting to set the timer;
receiving a third signaling sent by the network equipment;
the third signaling is used for indicating to set the timer or used for indicating to set the timer and setting the timer to the first duration;
and setting the timer to the first duration in the case that the third signaling is used for indicating to set the timer and the duration of the timer is not indicated to be set.
6. The method of claim 5, wherein the second signaling is further for requesting that the timer be set to a second duration;
receiving a fourth signaling sent by the network equipment;
The fourth signaling is used for indicating to set the timer or used for indicating to set the timer and setting the timer to the first duration;
setting the timer to the first duration in the case that the fourth signaling is used for indicating setting the timer and does not indicate setting the duration of the timer;
wherein the first time period is determined based at least on the second time period.
7. The method according to claim 4, wherein the method further comprises:
receiving fifth signaling sent by the network equipment under the condition that the setting of the timer is not requested to the network equipment; wherein the fifth signaling is used for indicating to set the timer or for indicating to set the timer and setting the timer to the first duration;
setting the timer to the first duration in a case where the fifth signaling is used to indicate setting the timer and does not indicate setting the duration of the timer;
setting the timer to the first duration in the event that the setting of the timer is not requested to the network device and the network device does not indicate the setting of the timer.
8. The method according to claim 1, wherein the method further comprises:
transmitting a sixth signaling to the network device, the sixth signaling being used to request establishment of the second connection and to request setting of the timer;
receiving a seventh signaling sent by the network device, where the seventh signaling is used to instruct the terminal device to establish the second connection;
in case no IE related to the timer is carried in the seventh signaling, the timer is not set for the second connection.
9. The method according to any of claims 4 to 7, wherein the terminal type comprises at least one of:
a ToB terminal;
and (3) ToC terminal.
10. The method according to any of claims 4 to 7, wherein the quality of service requirement of the first connection comprises QoS of the first connection and/or slice type of the first connection bearer.
11. A session management method applied to a network device, the method comprising:
receiving a first signaling sent by a terminal device, wherein the first signaling is used for requesting to release a first connection established with the terminal device, and the first connection is used for transmitting a PDU data packet;
Releasing the first connection;
wherein the first signaling is sent if the amount of data transmitted on the first connection is less than or equal to a first threshold for a first duration of a timer, the timer being set for the first connection.
12. The method according to claim 11, characterized in that the method comprises: the first time period is determined according to at least one of the following:
slice resource occupation;
a terminal type;
the quality of service requirement of the first connection.
13. The method according to claim 12, wherein the method further comprises:
receiving a second signaling sent by the terminal equipment, wherein the second signaling is at least used for requesting to set the timer;
and sending a third signaling to the terminal equipment, wherein the third signaling is used for indicating to set the timer or used for indicating to set the timer and setting the timer to be the first duration.
14. The method of claim 13, wherein the second signaling is further for requesting that the timer be set to a second duration;
sending a fourth signaling to the terminal equipment, wherein the fourth signaling is used for indicating to set the timer or used for indicating to set the timer and setting the timer to the first duration;
Wherein the first time period is determined based at least on the second time period.
15. The method according to claim 12, wherein the method further comprises:
transmitting a fifth signaling to the terminal device under the condition that the request of the terminal device for setting the timer is not received; the fifth signaling is used for indicating to set the timer or used for indicating to set the timer and setting the timer to the first duration.
16. The method of claim 11, wherein the method further comprises:
receiving a sixth signaling sent by the terminal equipment, wherein the sixth signaling is used for requesting to establish the second connection;
transmitting a seventh signaling to the terminal device, where the seventh signaling is used to instruct the terminal device to establish the second connection;
in case no IE related to the timer is carried in the seventh signaling, the terminal device does not set the timer for the second connection.
17. A session management apparatus, comprising:
the starting module is used for starting a timer for the established first connection; the timer is set to a first duration, and the first connection is used for transmitting PDU data packets;
And a first sending module, configured to send a first signaling to a network device, where the first signaling is used to request to release the first connection, based on determining that the amount of data transmitted on the first connection for the first duration is less than or equal to a first threshold.
18. A session management apparatus, comprising:
a first receiving module, configured to receive a first signaling sent by a terminal device, where the first signaling is used to request to release a first connection established with the terminal device, and the first connection is used to transmit a PDU packet;
a release module for releasing the first connection;
wherein the first signaling is sent if the amount of data transmitted on the first connection is less than or equal to a first threshold for a first duration of a timer, the timer being set for the first connection.
19. A terminal device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor implements the method of any of claims 1 to 10 when executing the program.
20. A network device comprising a memory and a processor, the memory storing a computer program executable on the processor, wherein the processor implements the method of any of claims 11 to 16 when the program is executed.
21. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method according to any one of claims 1 to 10, or the computer program, when being executed by a processor, implements the method according to any one of claims 11 to 16.
CN202210726452.2A 2022-06-23 2022-06-23 Session management method and device, equipment and storage medium Pending CN117336896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210726452.2A CN117336896A (en) 2022-06-23 2022-06-23 Session management method and device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210726452.2A CN117336896A (en) 2022-06-23 2022-06-23 Session management method and device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117336896A true CN117336896A (en) 2024-01-02

Family

ID=89281706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210726452.2A Pending CN117336896A (en) 2022-06-23 2022-06-23 Session management method and device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117336896A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117676923A (en) * 2024-01-31 2024-03-08 成都爱瑞无线科技有限公司 Management method, device and storage medium for session establishment in communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117676923A (en) * 2024-01-31 2024-03-08 成都爱瑞无线科技有限公司 Management method, device and storage medium for session establishment in communication system
CN117676923B (en) * 2024-01-31 2024-04-02 成都爱瑞无线科技有限公司 Management method, device and storage medium for session establishment in communication system

Similar Documents

Publication Publication Date Title
KR102479660B1 (en) UE policy update method and device, computer storage medium
US20220248254A1 (en) Method of processing network slice based congestion, device and system thereof
CN111466152B (en) Method for processing resource shortage during protocol data unit session establishment process and user equipment thereof
EP3965440A1 (en) Sidelink communication method and apparatus, and storage medium
CN111919502B (en) Apparatus and method for processing network
CA3120422A1 (en) Service instance indication for resource creation
JP2021520742A (en) Methods for Handling Periodic Radio Access Network Notification Area (RNA) Update Configurations on Rejection
US10477610B2 (en) Data transmission method, access network device, and communication system
US11432355B2 (en) Control plane connection management method and apparatus
WO2019153928A1 (en) Rrc state transition method, terminal, cu, du, and computer-readable storage medium
US12149939B2 (en) Communication system
WO2019029568A1 (en) Communication method, terminal device, and network device
CN105228238A (en) A kind of periodically keep-alive transmission method, equipment and system
CN112840732A (en) Controlling the use and/or access to user plane radio communication resources of a telecommunications network
WO2018028636A1 (en) Method, device and system for controlling radio resource control (rrc) connection
WO2022222753A1 (en) Network congestion processing method and device, terminal, and storage medium
CN117336896A (en) Session management method and device, equipment and storage medium
WO2022206007A1 (en) Relay communication method and apparatus, and storage medium and relay
CN113242585B (en) Network switching method, device, equipment and medium
CN117837265A (en) Method and device for transmitting small data
CN102457976B (en) Business request processing method and equipment
WO2024240085A1 (en) Network and method of handling collision of a ue-requested pdu session modification procedure and a network-requested pdu session modification procedure
CN112770412B (en) Packet data network PDN activation method and device thereof
WO2022022504A1 (en) Resource allocation method and apparatus, network-side device, and readable storage medium
WO2023165387A1 (en) Communication method and device

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