[go: up one dir, main page]

CN113472683B - Data discarding method, device, terminal and storage medium - Google Patents

Data discarding method, device, terminal and storage medium Download PDF

Info

Publication number
CN113472683B
CN113472683B CN202110839105.6A CN202110839105A CN113472683B CN 113472683 B CN113472683 B CN 113472683B CN 202110839105 A CN202110839105 A CN 202110839105A CN 113472683 B CN113472683 B CN 113472683B
Authority
CN
China
Prior art keywords
pdcp sdu
timeout
drb
queue
pdcp
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.)
Active
Application number
CN202110839105.6A
Other languages
Chinese (zh)
Other versions
CN113472683A (en
Inventor
白伟华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110839105.6A priority Critical patent/CN113472683B/en
Publication of CN113472683A publication Critical patent/CN113472683A/en
Priority to PCT/CN2022/095927 priority patent/WO2023000827A1/en
Application granted granted Critical
Publication of CN113472683B publication Critical patent/CN113472683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/56Queue scheduling implementing delay-aware scheduling
    • H04L47/564Attaching a deadline to packets, e.g. earliest due date first
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/02Data link layer protocols

Landscapes

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

Abstract

The embodiment of the application discloses a data discarding method, a data discarding device, a terminal and a storage medium, and belongs to the technical field of communication. The method comprises the following steps: setting a timeout timestamp for the PDCP SDU; reading description information of the PDCP SDU in the DRB queue in response to the condition of timeout detection, wherein the description information comprises a timeout time stamp corresponding to the PDCP SDU; and discarding the PDCP SDU in response to the timeout timestamp indicating that the PDCP SDU is overtime. By adopting the scheme provided by the embodiment of the application, the setting of a discarding timer for the PDCP SDU is not needed, a large amount of processing resources occupied by the setting of a large amount of discarding timers are avoided, the overtime discarding process of the PDCP SDU is simplified, and the complexity of detecting and maintaining the problems of a communication system is reduced.

Description

数据丢弃方法、装置、终端及存储介质Data discarding method, device, terminal and storage medium

技术领域Technical Field

本申请实施例涉及通信技术领域,特别涉及一种数据丢弃方法、装置、终端及存储介质。The embodiments of the present application relate to the field of communication technology, and in particular to a data discarding method, device, terminal and storage medium.

背景技术Background Art

分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)实体位于无线接口协议栈的第二层,用于处理控制平面上的无线资源管理(Radio Resource Control,RRC)消息以及用户平面的互联网协议(Internet Protocol,IP)数据包。The Packet Data Convergence Protocol (PDCP) entity is located at the second layer of the radio interface protocol stack and is used to process Radio Resource Control (RRC) messages on the control plane and Internet Protocol (IP) packets on the user plane.

在用户平面上,PDCP实体从上层接收到PDCP服务数据单元(Service Data Unit,SDU)后,需要为每个PDCP SDU配置关联的丢弃定时器(discardTimer)。当丢弃定时器超时时,PDCP实体即丢弃该PDCP SDU。如果PDCP SDU对应的PDCP协议数据单元(Protocol DataUnit,PDU)被发送至底层,PDCP实体还需要通知底层丢弃该PDCP PDU。On the user plane, after the PDCP entity receives the PDCP Service Data Unit (SDU) from the upper layer, it needs to configure the associated discard timer (discardTimer) for each PDCP SDU. When the discard timer times out, the PDCP entity discards the PDCP SDU. If the PDCP Protocol Data Unit (PDU) corresponding to the PDCP SDU is sent to the lower layer, the PDCP entity also needs to notify the lower layer to discard the PDCP PDU.

发明内容Summary of the invention

本申请实施例提供了一种数据丢弃方法、装置、终端及存储介质。所述技术方案如下:The embodiment of the present application provides a data discarding method, device, terminal and storage medium. The technical solution is as follows:

一方面,本申请实施例提供了一种数据丢弃方法,所述方法包括:On the one hand, an embodiment of the present application provides a data discarding method, the method comprising:

为PDCP SDU设置超时时间戳;Set a timeout timestamp for the PDCP SDU;

响应于满足超时检测条件,读取数据无线承载(Data Radio Bearer,DRB)队列中所述PDCP SDU的描述信息,所述描述信息包含所述PDCP SDU对应的所述超时时间戳;In response to satisfying a timeout detection condition, reading description information of the PDCP SDU in a data radio bearer (DRB) queue, the description information including the timeout timestamp corresponding to the PDCP SDU;

响应于所述超时时间戳指示所述PDCP SDU超时,丢弃所述PDCP SDU。In response to the timeout timestamp indicating that the PDCP SDU is timed out, discarding the PDCP SDU.

另一方面,本申请实施例提供了一种数据丢弃装置,所述装置包括:On the other hand, an embodiment of the present application provides a data discarding device, the device comprising:

设置模块,用于为PDCP SDU设置超时时间戳;A setting module, used for setting a timeout timestamp for a PDCP SDU;

读取模块,用于响应于满足超时检测条件,读取DRB队列中所述PDCP SDU的描述信息,所述描述信息包含所述PDCP SDU对应的所述超时时间戳;a reading module, configured to read, in response to satisfying a timeout detection condition, description information of the PDCP SDU in the DRB queue, the description information including the timeout timestamp corresponding to the PDCP SDU;

丢弃模块,用于响应于所述超时时间戳指示所述PDCP SDU超时,丢弃所述PDCPSDU。The discarding module is configured to discard the PDCP SDU in response to the timeout timestamp indicating that the PDCP SDU has timed out.

另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上述方面所述的数据丢弃方法。On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the data discarding method as described in the above aspects.

另一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如上述方面所述的数据丢弃方法。On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one program code is stored, and the program code is loaded and executed by a processor to implement the data discarding method as described in the above aspects.

另一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面的各种可选实现方式中提供的数据丢弃方法。On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the data discarding method provided in various optional implementations of the above aspects.

本申请实施例提供的技术方案可以带来如下有益效果:The technical solution provided in the embodiments of the present application can bring the following beneficial effects:

本申请实施例中,通过为PDCP SDU设置超时时间戳,并在满足超时检测条件时,从DRB队列中获取PDCP SDU的描述信息,从而基于描述信息中的超时时间戳确定PDCP SDU是否超时,进而对超时的PDCP SDU进行丢弃;采用本申请实施例提供的方案,无需为PDCP SDU设置丢弃定时器,避免设置大量丢弃定时器占用大量处理资源,简化了PDCP SDU的超时丢弃流程,并有助于降低通信系统的问题检测以及维护的复杂度。In an embodiment of the present application, a timeout timestamp is set for the PDCP SDU, and when the timeout detection condition is met, the description information of the PDCP SDU is obtained from the DRB queue, so as to determine whether the PDCP SDU has timed out based on the timeout timestamp in the description information, and then the timed out PDCP SDU is discarded; by adopting the solution provided in the embodiment of the present application, there is no need to set a discard timer for the PDCP SDU, thus avoiding setting a large number of discard timers to occupy a large amount of processing resources, simplifying the timeout discard process of the PDCP SDU, and helping to reduce the complexity of problem detection and maintenance of the communication system.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

图1是本申请一个示例性实施例提供的通信系统的系统架构图;FIG1 is a system architecture diagram of a communication system provided by an exemplary embodiment of the present application;

图2是用户平面与控制平面的协议架构的示意图;FIG2 is a schematic diagram of the protocol architecture of the user plane and the control plane;

图3示出了本申请一个示例性实施例提供的数据丢弃方法的流程图;FIG3 shows a flow chart of a data discarding method provided by an exemplary embodiment of the present application;

图4示出了本申请另一个示例性实施例提供的数据丢弃方法的流程图;FIG4 shows a flow chart of a data discarding method provided by another exemplary embodiment of the present application;

图5是图4所示数据丢弃方法实施过程的实施示意图;FIG5 is a schematic diagram of the implementation process of the data discarding method shown in FIG4;

图6是一个示例性实施例示出的上层、PDCP实体与MAC层之间交互过程的示意图;FIG6 is a schematic diagram of an interaction process between an upper layer, a PDCP entity and a MAC layer, showing an exemplary embodiment;

图7示出了本申请另一个示例性实施例提供的数据丢弃方法的流程图;FIG7 shows a flow chart of a data discarding method provided by another exemplary embodiment of the present application;

图8是图7所示数据丢弃方法实施过程的实施示意图;FIG8 is a schematic diagram of the implementation process of the data discarding method shown in FIG7;

图9示出了本申请一个实施例提供的数据丢弃装置的结构框图;FIG9 shows a structural block diagram of a data discarding device provided by an embodiment of the present application;

图10示出了本申请一个示例性实施例提供的终端的结构示意图。FIG. 10 shows a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

请参考图1,其示出了本申请一个实施例提供的通信系统的示意图。该通信系统可以包括:接入网12和终端14。Please refer to FIG1 , which shows a schematic diagram of a communication system provided by an embodiment of the present application. The communication system may include: an access network 12 and a terminal 14 .

接入网12中包括若干个网络设备120。网络设备120可以是基站,所述基站是一种部署在接入网中用以为终端提供无线通信功能的装置。基站可以包括各种形式的宏基站,微基站,中继站,接入点等等。在采用不同的无线接入技术的系统中,具备基站功能的设备的名称可能会有所不同,例如在LTE系统中,称为eNodeB或者eNB;在5G NR-U系统中,称为gNodeB或者gNB。随着通信技术的演进,“基站”这一描述可能会变化。为方便本申请实施例中,上述为终端14提供无线通信功能的装置统称为网络设备。The access network 12 includes several network devices 120. The network device 120 may be a base station, which is a device deployed in the access network to provide wireless communication functions for the terminal. The base station may include various forms of macro base stations, micro base stations, relay stations, access points, and the like. In systems using different wireless access technologies, the names of devices with base station functions may be different. For example, in an LTE system, it is called eNodeB or eNB; in a 5G NR-U system, it is called gNodeB or gNB. With the evolution of communication technology, the description of "base station" may change. For the convenience of the embodiments of the present application, the above-mentioned devices that provide wireless communication functions for the terminal 14 are collectively referred to as network devices.

终端14可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备,移动台(MobileStation,MS),终端(terminal device)等等。为方便描述,上面提到的设备统称为终端。网络设备120与终端14之间通过某种空口技术互相通信,例如Uu接口。The terminal 14 may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment, mobile stations (MS), terminals, etc. For the convenience of description, the above-mentioned devices are collectively referred to as terminals. The network device 120 and the terminal 14 communicate with each other through some air interface technology, such as a Uu interface.

本申请实施例的技术方案可以应用于各种通信系统,例如:全球移动通讯(GlobalSystem of Mobile Communication,GSM)系统、码分多址(Code Division MultipleAccess,CDMA)系统、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)系统、通用分组无线业务(General Packet Radio Service,GPRS)、长期演进(Long TermEvolution,LTE)系统、LTE频分双工(Frequency Division Duplex,FDD)系统、LTE时分双工(Time Division Duplex,TDD)系统、先进的长期演进(Advanced Long Term Evolution,LTE-A)系统、新无线(New Radio,NR)系统、NR系统的演进系统、非授权频段上的LTE(LTE-based access to Unlicensed spectrum,LTE-U)系统、NR-U系统、通用移动通信系统(Universal Mobile Telecommunication System,UMTS)、全球互联微波接入(WorldwideInteroperability for Microwave Access,WiMAX)通信系统、无线局域网(WirelessLocal Area Networks,WLAN)、无线保真(Wireless Fidelity,WiFi)、下一代通信系统或其他通信系统等。The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile Communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD) system, Advanced Long Term Evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-based access to Unlicensed spectrum, LTE-U) system, NR-U system, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, Wireless Local Area Network (WLAN) system. Networks, WLAN), Wireless Fidelity (WiFi), next generation communication systems or other communication systems, etc.

通常来说,传统的通信系统支持的连接数有限,也易于实现,然而,随着通信技术的发展,移动通信系统将不仅支持传统的通信,还将支持例如,设备到设备(Device toDevice,D2D)通信,机器到机器(Machine to Machine,M2M)通信,机器类型通信(MachineType Communication,MTC),车辆间(Vehicle to Vehicle,V2V)通信以及车联网(Vehicleto Everything,V2X)系统等。本申请实施例也可以应用于这些通信系统。Generally speaking, the number of connections supported by traditional communication systems is limited and easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but also support, for example, device to device (Device to Device, D2D) communication, machine to machine (Machine to Machine, M2M) communication, machine type communication (Machine Type Communication, MTC), vehicle to vehicle (V2V) communication and vehicle to everything (V2X) system, etc. The embodiments of the present application can also be applied to these communication systems.

以LTE系统为例,用户平面与控制平面的协议架构如图2所示。Taking the LTE system as an example, the protocol architecture of the user plane and the control plane is shown in Figure 2.

无线资源控制(Radio Resource Control,RRC):用于进行无线资源管理、控制和调度,在满足服务质量的要求下,尽可能充分利用有限的无线网络资源,扩大通信系统容量。Radio Resource Control (RRC): It is used to manage, control and schedule radio resources, making full use of limited radio network resources and expanding the capacity of the communication system while meeting the quality of service requirements.

PDCP:用于进行IP包头压缩,以减少无线接口上传输的比特数。头压缩机制基于稳健的头压缩(ROHC)算法,该算法也可应用于其他移动通信技术的标准化的包头压缩。PDCP还负责控制平面的加密、传输数据的完整性保护,以及针对切换的按序发送和副本删除。在接收端,PDCP协议执行相应的解密和解压缩操作。其中,终端的每个无线承载(RadioBearer,RB)都会配置一个PDCP实体。PDCP: used to perform IP header compression to reduce the number of bits transmitted on the wireless interface. The header compression mechanism is based on the Robust Header Compression (ROHC) algorithm, which can also be applied to the standardized header compression of other mobile communication technologies. PDCP is also responsible for encryption of the control plane, integrity protection of transmitted data, and in-order transmission and duplicate deletion for switching. At the receiving end, the PDCP protocol performs the corresponding decryption and decompression operations. Among them, each radio bearer (RadioBearer, RB) of the terminal is configured with a PDCP entity.

无线链路控制(Radio Link Control,RLC):负责分割/级联、重传控制、重复检测和序列传送到更上层。RLC为PDCP提供服务。终端的每个无线承载都会配置一个RLC实体。Radio Link Control (RLC): Responsible for segmentation/concatenation, retransmission control, duplication detection, and sequence transmission to higher layers. RLC provides services for PDCP. Each radio bearer of the terminal is configured with an RLC entity.

媒体接入控制(Media Access Control,MAC):用于控制逻辑信道的复用、混合自动重传请求(Automatic Repeat-reQuest,ARQ)重传、上行链路和下行链路的调度。对于上行链路和下行链路,调度功能位于基站。混合ARQ协议部分位于MAC协议的发射和接收末尾。MAC以逻辑信道的形式为RLC提供服务。Media Access Control (MAC): It is used to control the multiplexing of logical channels, hybrid automatic repeat-request (ARQ) retransmission, and scheduling of uplink and downlink. For uplink and downlink, the scheduling function is located in the base station. The hybrid ARQ protocol part is located at the transmit and receive end of the MAC protocol. MAC provides services to RLC in the form of logical channels.

物理层(Physicallayer,PHY):用于管理编码/解码、调制/解调、多天线的映射以及其他类型的物理层功能。物理层以传输信道的形式为MAC层提供服务。Physical layer (PHY): used to manage encoding/decoding, modulation/demodulation, multi-antenna mapping and other types of physical layer functions. The physical layer provides services to the MAC layer in the form of transport channels.

相关技术中,PDCP实体从上层接收到PDCP SDU,且自身配置由超时机制时,即需要为PDCP PDU配置关联的丢弃定时器,并启动该丢弃定时器。一旦丢弃定时器超时,PDCP实体即丢弃该丢弃定时器关联的PDCP SDU。若该PDCP SDU对应的PDCP PDU(在PDCP SDU的头部添加PDCP头后得到)被下发至底层,则PDCP实体则需要通知底层对该PDCP PDU进行丢弃。In the related art, when the PDCP entity receives a PDCP SDU from the upper layer and is configured by a timeout mechanism, it is necessary to configure an associated discard timer for the PDCP PDU and start the discard timer. Once the discard timer times out, the PDCP entity discards the PDCP SDU associated with the discard timer. If the PDCP PDU corresponding to the PDCP SDU (obtained after adding a PDCP header to the head of the PDCP SDU) is sent down to the bottom layer, the PDCP entity needs to notify the bottom layer to discard the PDCP PDU.

可见,相关技术通过设置丢弃定时器实现超时管理。然而,由于启动丢弃定时器以及管理定时器需要花费一定的处理资源,因此在存在大量PDCP SDU时,需要耗费大量处理资源以实现超时管理。并且,对于发送至底层的超时PDCP PDU,底层进行超时丢弃的流程较为繁琐,导致通信系统的问题检测以及维护的复杂度较高。It can be seen that the related art implements timeout management by setting a discard timer. However, since starting the discard timer and managing the timer requires a certain amount of processing resources, when there are a large number of PDCP SDUs, a large amount of processing resources are required to implement timeout management. In addition, for the timed-out PDCP PDU sent to the bottom layer, the bottom layer's timeout discard process is relatively cumbersome, resulting in high complexity in problem detection and maintenance of the communication system.

为了简化数据丢弃流程,本申请实施例中,PDCP实体无需为PDCP SDU配置关联的丢弃定时器,而是在PDCP SDU的描述信息中添加超时时间戳,当需要进行超时检测时,即读取DRB队列中PDCP SDU的描述信息,并基于描述信息中的超时时间戳进行超时检测,从而在检测到PDCP SDU超时时,对PDCP SDU进行丢弃。整个数据丢弃流程中,无需为PDCP SDU配置丢弃定时器,避免启动以及管理定时器占用处理资源,简化数据丢弃流程,有利于降低通信系统的问题检测以及维护的复杂度。In order to simplify the data discard process, in the embodiment of the present application, the PDCP entity does not need to configure an associated discard timer for the PDCP SDU, but adds a timeout timestamp to the description information of the PDCP SDU. When a timeout detection is required, the description information of the PDCP SDU in the DRB queue is read, and a timeout detection is performed based on the timeout timestamp in the description information, so that when the PDCP SDU timeout is detected, the PDCP SDU is discarded. In the entire data discard process, there is no need to configure a discard timer for the PDCP SDU, so as to avoid starting and managing timers to occupy processing resources, simplify the data discard process, and help reduce the complexity of problem detection and maintenance of the communication system.

请参考图3,其示出了本申请一个示例性实施例提供的数据丢弃方法的流程图,本实施例以该方法用于图1所示通信系统中的终端为例进行说明,该方法包括:Please refer to FIG. 3, which shows a flow chart of a data discarding method provided by an exemplary embodiment of the present application. This embodiment is described by taking the method used in a terminal in the communication system shown in FIG. 1 as an example. The method includes:

步骤301,为PDCP SDU设置超时时间戳。Step 301, setting a timeout timestamp for a PDCP SDU.

在一种可能的实施方式中,PDCP实体接收到上层发送的PDCP SDU,且PDCP实体设置有超时机制时,即为PDCP SDU设置对应的超时时间戳(expiryTS,expiryTimeStamp),该超时时间戳即用于指示PDCP SDU的超时时间点。In a possible implementation, when the PDCP entity receives a PDCP SDU sent by an upper layer and the PDCP entity is set with a timeout mechanism, a corresponding timeout timestamp (expiryTS, expiryTimeStamp) is set for the PDCP SDU, and the timeout timestamp is used to indicate the timeout time point of the PDCP SDU.

步骤302,响应于满足超时检测条件,读取DRB队列中PDCP SDU的描述信息,描述信息包含PDCP SDU对应的超时时间戳。Step 302: In response to satisfying the timeout detection condition, read the description information of the PDCP SDU in the DRB queue, where the description information includes a timeout timestamp corresponding to the PDCP SDU.

该超时检测条件为触发进行超时检测时所需满足的条件。可选的,该超时检测条件可以由外部设备(比如接入网设备)触发,或者,由终端自身触发。The timeout detection condition is a condition that needs to be satisfied when triggering the timeout detection. Optionally, the timeout detection condition can be triggered by an external device (such as an access network device), or by the terminal itself.

在一种可能的实施方式中,当接入网设备指示可以发送上行数据时,终端确定满足超时检测条件;或者,当达到超期检测周期时,终端确定满足超时检测条件。In a possible implementation, when the access network device indicates that uplink data can be sent, the terminal determines that the timeout detection condition is met; or when the timeout detection period is reached, the terminal determines that the timeout detection condition is met.

本申请实施例中,超时时间戳被添加至PDCP SDU的描述信息中,而PDCP SDU的描述信息则按序(根据接收到PDCP SDU的先后顺序)存储在DRB队列(DRB Queue)中。可选的,终端为PDCP SDU设置超时时间戳后,即将包含超时时间戳的描述信息添加至DRB队列中,完成描述信息入列操作。In the embodiment of the present application, the timeout timestamp is added to the description information of the PDCP SDU, and the description information of the PDCP SDU is stored in the DRB queue in sequence (according to the order in which the PDCP SDU is received). Optionally, after the terminal sets the timeout timestamp for the PDCP SDU, the description information including the timeout timestamp is added to the DRB queue to complete the description information queuing operation.

其中,终端中设置有至少一个DRB队列,不同DRB队列用于存储不同PDCP实体对应PDCP SDU的描述信息。Among them, at least one DRB queue is set in the terminal, and different DRB queues are used to store description information of PDCP SDU corresponding to different PDCP entities.

可选的,描述信息中除了包含超时时间戳外,还可以包含PDCP SDU的数据长度和数据地址。当然,描述信息中还可以包含上述信息以外的其他信息,本实施例并不对描述信息包含的具体内容构成限定。Optionally, the description information may include the data length and data address of the PDCP SDU in addition to the timeout timestamp. Of course, the description information may also include other information in addition to the above information, and this embodiment does not limit the specific content of the description information.

在一些实施例中,各个DRB队列均设置有写索引(write index)和读索引(readindex),写索引用于指示描述信息的写入位置,且向DRB队列中写入描述信息后,写索引的位置发生变化;读索引用于指示描述信息的读取位置,且从DRB队列中读取描述信息后,读索引的位置发生变化。In some embodiments, each DRB queue is provided with a write index and a read index. The write index is used to indicate the write position of the description information, and after the description information is written into the DRB queue, the position of the write index changes; the read index is used to indicate the read position of the description information, and after the description information is read from the DRB queue, the position of the read index changes.

在一种可能的实施方式中,当满足超时检测条件时,终端即根据DRB队列中读索引的位置,读取PDCP SDU的描述信息;为PDCP SDU设置超时时间戳后,终端即根据DRB队列中写索引的位置,向DRB队列中写入描述信息。In one possible implementation, when the timeout detection condition is met, the terminal reads the description information of the PDCP SDU according to the position of the read index in the DRB queue; after setting the timeout timestamp for the PDCP SDU, the terminal writes the description information to the DRB queue according to the position of the write index in the DRB queue.

步骤303,响应于超时时间戳指示PDCP SDU超时,丢弃PDCP SDU。Step 303: In response to the timeout timestamp indicating that the PDCP SDU is timed out, discard the PDCP SDU.

读取到PDCP SDU的超时时间戳后,终端基于超时时间戳检测该PDCP SDU是否超时,若超时,则丢弃PDCP SDU,其中,丢弃后的PDCP SDU将不会被发送至底层。After reading the timeout timestamp of the PDCP SDU, the terminal detects whether the PDCP SDU has timed out based on the timeout timestamp, and if so, discards the PDCP SDU, wherein the discarded PDCP SDU will not be sent to the bottom layer.

在一种可能的实施方式中,终端获取当前时间,并检测超时时间戳是否小于当前时间,若小于,则确定PDCP SDU超时;若大于,则确定PDCP SDU未超时。比如,当超时时间戳为16254747887060(以ms为单位),而当前时间为1625474788759时,终端确定该PDCP SDU超时。In a possible implementation, the terminal obtains the current time and detects whether the timeout timestamp is less than the current time. If so, it is determined that the PDCP SDU has timed out; if so, it is determined that the PDCP SDU has not timed out. For example, when the timeout timestamp is 16254747887060 (in ms) and the current time is 1625474788759, the terminal determines that the PDCP SDU has timed out.

可选的,若超时时间戳指示PDCP SDU未超时,终端则基于PDCP SDU发送上行数据,或者,继续保存PDCP SDU。Optionally, if the timeout timestamp indicates that the PDCP SDU has not timed out, the terminal sends uplink data based on the PDCP SDU, or continues to store the PDCP SDU.

综上所述,本申请实施例中,通过为PDCP SDU设置超时时间戳,并在满足超时检测条件时,从DRB队列中获取PDCP SDU的描述信息,从而基于描述信息中的超时时间戳确定PDCP SDU是否超时,进而对超时的PDCP SDU进行丢弃;采用本申请实施例提供的方案,无需为PDCP SDU设置丢弃定时器,避免设置大量丢弃定时器占用大量处理资源,简化了PDCPSDU的超时丢弃流程,并有助于降低通信系统的问题检测以及维护的复杂度。To summarize, in the embodiments of the present application, a timeout timestamp is set for the PDCP SDU, and when the timeout detection condition is met, the description information of the PDCP SDU is obtained from the DRB queue, thereby determining whether the PDCP SDU has timed out based on the timeout timestamp in the description information, and then discarding the timed out PDCP SDU; by adopting the solution provided in the embodiments of the present application, there is no need to set a discard timer for the PDCP SDU, thus avoiding setting a large number of discard timers to occupy a large amount of processing resources, simplifying the timeout discard process of the PDCP SDU, and helping to reduce the complexity of problem detection and maintenance of the communication system.

在一种可能的实施方式中,为了避免超时的PDCP SDU造成上行数据阻塞,当需要发送上行数据时,终端确定满足超时检测条件,并基于PDCP SDU的超时时间戳进行超时检测。请参考图4,其示出了本申请另一个示例性实施例提供的数据丢弃方法的流程图,本实施例以该方法用于图1所示通信系统中的终端为例进行说明,该方法包括:In a possible implementation, in order to avoid uplink data blocking caused by a timed-out PDCP SDU, when uplink data needs to be sent, the terminal determines that a timeout detection condition is met, and performs a timeout detection based on the timeout timestamp of the PDCP SDU. Please refer to FIG4, which shows a flow chart of a data discarding method provided by another exemplary embodiment of the present application. This embodiment takes the method used in the terminal in the communication system shown in FIG1 as an example for explanation, and the method includes:

步骤401,响应于PDCP实体接收到上层发送的时间戳设置通知,获取配置的超时时长,时间戳设置通知由上层接收到IP数据包时发送。Step 401, in response to the PDCP entity receiving a timestamp setting notification sent by an upper layer, obtaining a configured timeout duration, wherein the timestamp setting notification is sent by the upper layer when receiving an IP data packet.

在一种可能的实施方式中,上层(upperlayer)接收到IP数据包后,将IP数据包写入缓存中,并向PDCP实体发送时间戳设置通知,指示PDCP实体为PDCP SDU(IP数据包在PDCP实体处的表现形式)设置超时时间戳。In one possible implementation, after receiving the IP data packet, the upper layer writes the IP data packet into a cache and sends a timestamp setting notification to the PDCP entity, instructing the PDCP entity to set a timeout timestamp for the PDCP SDU (the representation of the IP data packet at the PDCP entity).

由于终端针对不同的无线承载设置不同的PDCP实体,因此上层需要确定IP数据包所属无线承载对应的PDCP实体,从而向确定出的PDCP实体发送时间戳设置通知。Since the terminal sets different PDCP entities for different radio bearers, the upper layer needs to determine the PDCP entity corresponding to the radio bearer to which the IP data packet belongs, and then send a timestamp setting notification to the determined PDCP entity.

可选的,上层通知PDCP实体设置超时时间戳时,需要确定PDCP实体是否配置超时机制,并在PDCP实体配置超时机制时,向PDCP实体发送时间戳设置通知。相应的,PDCP实体接收到时间戳设置通知后,即获取自身配置的超时时长。Optionally, when the upper layer notifies the PDCP entity to set the timeout timestamp, it needs to determine whether the PDCP entity is configured with a timeout mechanism, and when the PDCP entity configures the timeout mechanism, it sends a timestamp setting notification to the PDCP entity. Accordingly, after the PDCP entity receives the timestamp setting notification, it obtains the timeout duration configured by itself.

其中,不同PDCP实体配置的超时时长可能相同,也可能不同。比如,对于无线承载A,其对应PDCP实体配置的超时时长为500ms,对于无线承载B,其对应PDCP实体配置的超时时长为400ms,本申请实施例中并不对PDCP实体配置的超时时长进行限定。The timeout durations configured by different PDCP entities may be the same or different. For example, for wireless bearer A, the timeout duration configured by the corresponding PDCP entity is 500ms, and for wireless bearer B, the timeout duration configured by the corresponding PDCP entity is 400ms. The timeout duration configured by the PDCP entity is not limited in the embodiments of the present application.

示意性的,如图5所示,上层51接收到IP数据包后,将IP数据包写入L3buffer(缓存)中(以PD形式),并向PDCP实体52发送时间戳设置通知。Schematically, as shown in FIG. 5 , after receiving the IP data packet, the upper layer 51 writes the IP data packet into the L3 buffer (in PD form) and sends a timestamp setting notification to the PDCP entity 52 .

步骤402,基于当前时间以及超时时长,通过PDCP实体为PDCP SDU设置超时时间戳。Step 402: Based on the current time and the timeout duration, a timeout timestamp is set for the PDCP SDU via the PDCP entity.

PDCP实体接收到时间戳设置通知后,即根据自身配置的超时时长以及当前时间,确定PDCP SDU的超时时间点,进而为PDCP SDU设置超时时间戳。其中,该超时时间戳=当前时间+超时时长。After receiving the timestamp setting notification, the PDCP entity determines the timeout time point of the PDCP SDU according to the timeout duration configured by itself and the current time, and then sets a timeout timestamp for the PDCP SDU. The timeout timestamp = current time + timeout duration.

在一个示意性的例子中,若当前时间为1625474788759,且超时时间戳为500ms时,则PDCP SDU的超时时间戳为1625474789259。In an illustrative example, if the current time is 1625474788759 and the timeout timestamp is 500 ms, the timeout timestamp of the PDCP SDU is 1625474789259.

在一种可能的实施方式中,PDCP实体为PDCP SDU设置超时时间戳后,将超时时间戳作为PDCP SDU的描述信息的一部分,并将该描述信息写入至PDCP实体对应的DRB队列中,完成描述信息入列。其中,每完成一次入列,PDCP实体均需要更新DRB队列中写索引的索引位置。In a possible implementation, after the PDCP entity sets a timeout timestamp for the PDCP SDU, the timeout timestamp is used as part of the description information of the PDCP SDU, and the description information is written into the DRB queue corresponding to the PDCP entity to complete the enqueuing of the description information. Each time the enqueuing is completed, the PDCP entity needs to update the index position of the write index in the DRB queue.

示意性的,如图5所示,PDCP实体52接收到通知后,读取L3 buffer,为PDCP SDU设置超时时间戳,并将包含超时时间戳的描述信息写入对应的DRB队列中。图5中,设置有n个DRB队列,PDCP实体52即将描述信息写入n个DRB队列中自身对应的DRB队列。Schematically, as shown in FIG5, after receiving the notification, the PDCP entity 52 reads the L3 buffer, sets a timeout timestamp for the PDCP SDU, and writes the description information including the timeout timestamp into the corresponding DRB queue. In FIG5, n DRB queues are set, and the PDCP entity 52 is about to write the description information into the DRB queue corresponding to itself among the n DRB queues.

步骤403,响应于MAC层接收到上行授权信息,读取DRB队列中PDCP SDU的描述信息,描述信息包含PDCP SDU对应的超时时间戳。Step 403: In response to the MAC layer receiving the uplink authorization information, the description information of the PDCP SDU in the DRB queue is read, where the description information includes a timeout timestamp corresponding to the PDCP SDU.

当网络侧允许终端发送上行数据时,会向终端发送上行授权信息(UL grant),相应的,终端基于该上行授权信息即可进行上行数据发送。为了避免超时数据阻塞上行数据传输,当MAC层接收到上行授权信息,并需要进行PDCP SDU读取处理时,首先对PDCP SDU进行超时检测;若PDCP SDU超时,则进行丢弃处理;若PDCP SDU未超时,则基于PDCP SDU进行上行数据发送。When the network side allows the terminal to send uplink data, it will send uplink grant information (UL grant) to the terminal. Accordingly, the terminal can send uplink data based on the uplink grant information. In order to avoid timeout data blocking uplink data transmission, when the MAC layer receives the uplink grant information and needs to read the PDCP SDU, it first performs a timeout check on the PDCP SDU; if the PDCP SDU times out, it is discarded; if the PDCP SDU does not time out, uplink data is sent based on the PDCP SDU.

由于终端中同时设置有多个DRB队列(对应不同无线承载),因此为了确保超时检测的准确性,接收到上行授权信息后,终端首先需要确定出目标无线承载,确保后续从该目标无线承载对应的DRB队列中准确读取PDCP SDU的描述信息。Since multiple DRB queues (corresponding to different wireless bearers) are set up in the terminal at the same time, in order to ensure the accuracy of timeout detection, after receiving the uplink authorization information, the terminal first needs to determine the target wireless bearer to ensure that the PDCP SDU description information is accurately read from the DRB queue corresponding to the target wireless bearer.

在一种可能的实施方式中,响应于MAC层接收到上行授权信息,终端从至少一个DRB队列中确定目标逻辑信道(logicalchannel)对应的目标DRB队列,该目标逻辑信道为接收上行授权信息的逻辑信道,进而读取目标DRB队列中PDCP SDU的描述信息。In one possible implementation, in response to the MAC layer receiving uplink authorization information, the terminal determines a target DRB queue corresponding to a target logical channel (logical channel) from at least one DRB queue, where the target logical channel is a logical channel for receiving uplink authorization information, and then reads the description information of the PDCP SDU in the target DRB queue.

可选的,目标DRB队列中设置有读索引,终端基于该读索引从目标DRB队列中读取描述信息。Optionally, a read index is set in the target DRB queue, and the terminal reads description information from the target DRB queue based on the read index.

示意性的,如图5所示,MAC层53接收到上行授权信息后,确定目标DRB队列为DRB队列n,进而从DRB队列n中按序读取描述信息(即描述信息出列)。Illustratively, as shown in FIG. 5 , after receiving the uplink authorization information, the MAC layer 53 determines that the target DRB queue is the DRB queue n, and then reads the description information in sequence from the DRB queue n (ie, dequeues the description information).

需要说明的是,由于不同逻辑信道具有不同优先级,因此当通过多个逻辑信道接收到上行授权信息时,终端优先对高优先级逻辑信道对应的DRB队列进行超时检测。在一些实施例中,PDCP实体和MAC层均具有DRB队列的读写权限,MAC层的LCP(LogicalChannelPrioritization,逻辑信道优先级)模块接收到上行授权信息后,基于逻辑信道优先级读取描述信息,并进行超时检测。It should be noted that, since different logical channels have different priorities, when uplink authorization information is received through multiple logical channels, the terminal prioritizes the DRB queue corresponding to the high-priority logical channel for timeout detection. In some embodiments, both the PDCP entity and the MAC layer have read and write permissions for the DRB queue. After receiving the uplink authorization information, the LCP (Logical Channel Prioritization) module of the MAC layer reads the description information based on the logical channel priority and performs timeout detection.

终端基于PDCP SDU的超时时间戳检测是否超时,若超时,则执行步骤404,若未超时,则执行步骤405。The terminal detects whether the timeout has occurred based on the timeout timestamp of the PDCP SDU. If the timeout has occurred, step 404 is executed. If the timeout has not occurred, step 405 is executed.

步骤404,响应于超时时间戳指示PDCP SDU超时,丢弃PDCP SDU。Step 404: In response to the timeout timestamp indicating that the PDCP SDU is timed out, discard the PDCP SDU.

在一种可能的实施方式中,描述信息中除了包含超时时间戳外,还包含PDCP SDU的数据地址和数据长度,终端丢弃PDCP SDU可以包括如下步骤。In a possible implementation manner, the description information includes not only the timeout timestamp but also the data address and data length of the PDCP SDU, and the terminal discarding the PDCP SDU may include the following steps.

一、从描述信息中获取PDCP SDU的数据地址以及数据长度。1. Obtain the data address and data length of the PDCP SDU from the description information.

当确定出PDCP SDU超时时,终端进一步从PDCP SDU的描述信息中获取数据地址以及数据长度,以便后续进行存储空间释放。在一些实施例中,该数据地址为PDCP SDU在缓存中的起始地址,基于该数据地址和数据长度,即可确定出PDCP SDU在缓存中的结束地址。When it is determined that the PDCP SDU has timed out, the terminal further obtains the data address and data length from the description information of the PDCP SDU so as to release the storage space later. In some embodiments, the data address is the starting address of the PDCP SDU in the cache, and based on the data address and data length, the end address of the PDCP SDU in the cache can be determined.

二、基于数据地址以及数据长度,释放PDCP SDU占用的存储空间。2. Based on the data address and data length, the storage space occupied by the PDCP SDU is released.

终端基于数据地址和数据长度,从缓存中删除该PDCP SDU,从而释放存储空间,以便后续写入新的PDCP SDU。The terminal deletes the PDCP SDU from the cache based on the data address and the data length, thereby releasing storage space for subsequent writing of a new PDCP SDU.

三、从DRB队列中移除PDCP SDU的描述信息。3. Remove the description information of the PDCP SDU from the DRB queue.

同时,终端从DRB队列中移除超时PDCP SDU的描述信息,以便后续写入新接收到的PDCP SDU的描述信息。At the same time, the terminal removes the description information of the timed-out PDCP SDU from the DRB queue so as to subsequently write the description information of the newly received PDCP SDU.

由于DRB队列中的描述信息按序排列,因此检测到当前PDCP SDU超时后,终端继续从DRB队列中读取下一条描述信息,并重复执行上述超时检测流程。Since the description information in the DRB queue is arranged in order, after detecting that the current PDCP SDU has timed out, the terminal continues to read the next description information from the DRB queue and repeats the above timeout detection process.

在一些实施例中,当DRB队列中设置有读索引时,终端需要更新读索引的位置,后续超时检测即从更新后读索引的位置开始。In some embodiments, when a read index is set in the DRB queue, the terminal needs to update the position of the read index, and subsequent timeout detection starts from the position of the updated read index.

步骤405,响应于超时时间戳指示PDCP SDU未超时,对PDCP SDU进行数据处理,并发送处理后的数据。Step 405: In response to the timeout timestamp indicating that the PDCP SDU has not timed out, data processing is performed on the PDCP SDU, and the processed data is sent.

当PDCP SDU未超时时,终端则进一步对PDCP SDU进行发送前的数据处理,进而发送处理后的数据。其中,发送前的数据处理包括添加PDCP头(PDCP实体执行)、添加RLC头(RLC实体执行)、添加MAC头(MAC层执行)等等,本实施例对此不作限定。When the PDCP SDU has not timed out, the terminal further performs data processing on the PDCP SDU before sending, and then sends the processed data. The data processing before sending includes adding a PDCP header (performed by the PDCP entity), adding an RLC header (performed by the RLC entity), adding a MAC header (performed by the MAC layer), etc., which is not limited in this embodiment.

示意性的,如图5所示,当PDCP SDU未超时时,终端即对PDCP SDU进行加密等数据处理,从而将处理后的数据发送至发射机缓存(TXbuffer),以便后续数据发送。Schematically, as shown in FIG. 5 , when the PDCP SDU has not timed out, the terminal performs data processing such as encryption on the PDCP SDU, thereby sending the processed data to a transmitter buffer (TXbuffer) for subsequent data transmission.

由于DRB队列中的描述信息按序排列,因此检测到当前PDCP SDU未超时后,终端无需执行上述超时检测流程,直接基于PDCP SDU进行数据发送即可(仍旧需要读取描述信息,并基于描述信息中的数据地址和数据长度读取PDCP SDU)。Since the description information in the DRB queue is arranged in order, after detecting that the current PDCP SDU has not timed out, the terminal does not need to execute the above timeout detection process and can directly send data based on the PDCP SDU (it is still necessary to read the description information and read the PDCP SDU based on the data address and data length in the description information).

在一个示意性的例子中,在实现上述数据丢弃方法时,终端中上层、PDCP实体以及MAC层之间的交互过程如图6所示。In an illustrative example, when implementing the above data discarding method, the interaction process between the upper layer in the terminal, the PDCP entity and the MAC layer is shown in FIG6 .

步骤601,上层将IP数据包写入L3 buffer。Step 601: The upper layer writes the IP data packet into the L3 buffer.

步骤602,上层通知PDCP实体进行时间戳设置。Step 602: The upper layer notifies the PDCP entity to set the timestamp.

步骤603,PDCP实体读取L3 buffer,基于配置的超时时长以及当前时间计算PDCPSDU的超时时间戳。Step 603: The PDCP entity reads the L3 buffer and calculates the timeout timestamp of the PDCP SDU based on the configured timeout duration and the current time.

步骤604,PDCP实体将包含超时时间戳的描述信息写入目标DRB队列,并更新DRB队列的写索引。Step 604: The PDCP entity writes the description information including the timeout timestamp into the target DRB queue and updates the write index of the DRB queue.

步骤605,MAC层接收到UL grant。Step 605: The MAC layer receives the UL grant.

步骤606,MAC层读取目标DRB队列,基于描述信息中的超时时间戳检测PDCP SDU是否超时。若超时执行步骤607,若未超时执行步骤608。Step 606: The MAC layer reads the target DRB queue and detects whether the PDCP SDU has timed out based on the timeout timestamp in the description information. If so, step 607 is executed; if not, step 608 is executed.

步骤607,MAC层丢弃PDCP SDU,释放PDCP SDU占用的L3缓存,并更新读索引。Step 607: The MAC layer discards the PDCP SDU, releases the L3 buffer occupied by the PDCP SDU, and updates the read index.

步骤608,MAC层读取未超时PDCP SDU,并发送至底层进行数据上行传输。Step 608: The MAC layer reads the PDCP SDU that has not timed out and sends it to the bottom layer for uplink data transmission.

本实施例中,当接收到上行授权信息,并准备进行上行数据发送时,通过读取DRB队列中的描述信息,并基于描述信息中的超时时间戳检测PDCP SDU是否超时,实现超时PDCP SDU的自动丢弃以及未超时PDCP SDU的正常上行传输,无需设置丢弃定时器,有助于节省处理资源。In this embodiment, when uplink authorization information is received and uplink data is about to be sent, the description information in the DRB queue is read, and whether the PDCP SDU has timed out is detected based on the timeout timestamp in the description information. This enables automatic discarding of the timed-out PDCP SDU and normal uplink transmission of the non-timed-out PDCP SDU, without setting a discard timer, which helps save processing resources.

在一种可能场景下,因链路质量较差或底层错误等原因,导致终端长时间未收到上行授权信息时,基于上行授权信息进行超时检测的方案无法执行,导致大量超时PDCPSDU无法被及时丢弃,相应的,后续接收到上行授权信息时,需要花费较长时间进行超时检测和丢弃。为了避免在这种场景下出现超时数据积压,在一种可能的实施方式中,终端可以为各个DRB队列设置共用的检查定时器,从而利用该检测定时器触发定时超时检测。下面采用示例性的实施例进行说明。In one possible scenario, when the terminal fails to receive uplink authorization information for a long time due to poor link quality or underlying errors, the solution for timeout detection based on uplink authorization information cannot be executed, resulting in a large number of timed-out PDCP SDUs not being discarded in time. Accordingly, when uplink authorization information is subsequently received, it takes a long time to perform timeout detection and discard. In order to avoid the backlog of timeout data in this scenario, in one possible implementation, the terminal can set a common check timer for each DRB queue, thereby using the detection timer to trigger the timing timeout detection. The following is an exemplary embodiment for illustration.

请参考图7,其示出了本申请另一个示例性实施例提供的数据丢弃方法的流程图,本实施例以该方法用于图1所示通信系统中的终端为例进行说明,该方法包括:Please refer to FIG. 7, which shows a flow chart of a data discarding method provided by another exemplary embodiment of the present application. This embodiment is described by taking the method used in a terminal in the communication system shown in FIG. 1 as an example. The method includes:

步骤701,响应于PDCP实体接收到上层发送的时间戳设置通知,获取配置的超时时长,时间戳设置通知由上层接收到IP数据包时发送。Step 701, in response to the PDCP entity receiving a timestamp setting notification sent by an upper layer, obtaining a configured timeout duration, wherein the timestamp setting notification is sent by the upper layer when receiving an IP data packet.

步骤702,基于当前时间以及超时时长,通过PDCP实体为PDCP SDU设置超时时间戳。Step 702: Based on the current time and the timeout duration, a timeout timestamp is set for the PDCP SDU via the PDCP entity.

步骤701至702的实施方式可以参考步骤401至402,本实施例在此不再赘述。The implementation of steps 701 to 702 may refer to steps 401 to 402, and will not be described in detail in this embodiment.

示意性的,如图8所示,上层81接收到IP数据包后,将IP数据包写入L3buffer中,并向PDCP实体82发送时间戳设置通知。PDCP实体82接收到通知后,读取L3 buffer,为PDCPSDU设置超时时间戳,并将包含超时时间戳的描述信息写入对应的DRB队列中。Schematically, as shown in FIG8 , after receiving the IP data packet, the upper layer 81 writes the IP data packet into the L3 buffer and sends a timestamp setting notification to the PDCP entity 82. After receiving the notification, the PDCP entity 82 reads the L3 buffer, sets a timeout timestamp for the PDCP SDU, and writes the description information including the timeout timestamp into the corresponding DRB queue.

步骤703,响应于检查定时器达到定时器时长,读取DRB队列中PDCP SDU的描述信息,描述信息包含PDCP SDU对应的超时时间戳,定时器时长小于PDCP实体配置的超时时长。Step 703, in response to the check timer reaching the timer duration, read the description information of the PDCP SDU in the DRB queue, the description information includes a timeout timestamp corresponding to the PDCP SDU, and the timer duration is less than the timeout duration configured by the PDCP entity.

本实施例中,配置有超时机制的PDCP实体共享一个公共的检查定时器,该检查定时器即用于触发定期检测PDCP实体对应的DRB队列中是否存在超时数据,并对超时数据进行丢弃。In this embodiment, the PDCP entities configured with a timeout mechanism share a common check timer, which is used to trigger periodic detection of whether there is timeout data in the DRB queue corresponding to the PDCP entity, and discard the timeout data.

在一种可能的实施方式中,检查定时器的定时器时长小于任一PDCP实体配置的超时时长,且为了避免定时检测过于频繁,该定时器时长需要避免设置过小。比如,该定时器时长不小于超时时长的十分之一。In a possible implementation, the timer duration of the check timer is less than the timeout duration configured by any PDCP entity, and in order to avoid too frequent timing detection, the timer duration needs to be set to avoid being too small. For example, the timer duration is not less than one tenth of the timeout duration.

不同于上行授权信息触发的超时检测针对特定DRB,检查定时器触发的超时检测针对所有需要进行超时检测的DRB。因此,在一种可能的实施方式中,响应于检查定时器达到定时器时长,终端确定目标PDCP实体对应的目标DRB列队,该目标PDCP实体为配置超时机制的PDCP实体,进而读取各个目标DRB队列中PDCP SDU的描述信息。Different from the timeout detection triggered by the uplink authorization information for a specific DRB, the timeout detection triggered by the check timer is for all DRBs that need to be timed out. Therefore, in one possible implementation, in response to the check timer reaching the timer duration, the terminal determines the target DRB queue corresponding to the target PDCP entity, which is the PDCP entity configured with the timeout mechanism, and then reads the description information of the PDCP SDU in each target DRB queue.

可选的,终端可以基于逻辑信道优先级,按序读取各个目标DRB队列中的描述信息,本实施例对此不作限定。Optionally, the terminal may read the description information in each target DRB queue in sequence based on the logical channel priority, which is not limited in this embodiment.

示意性的,如图8所示,当终端中设置有n个DRB队列,且各个DRB队列对应的PDCP实体均设置有超时机制时,当检查定时器达到定时器时长时,MAC层83(或者终端中的其他模块)即读取n个DRB队列中的描述信息,并进行超时检测。Schematically, as shown in Figure 8, when n DRB queues are set in the terminal and the PDCP entities corresponding to each DRB queue are set with a timeout mechanism, when the check timer reaches the timer length, the MAC layer 83 (or other modules in the terminal) reads the description information in the n DRB queues and performs a timeout detection.

步骤704,响应于超时时间戳指示PDCP SDU超时,丢弃PDCP SDU。Step 704: In response to the timeout timestamp indicating that the PDCP SDU is timed out, discard the PDCP SDU.

与上述步骤404相似的,当PDCP SDU超时时,终端对PDCP SDU进行丢弃(具体丢弃过程可以参考步骤404)。在一种可能的实施方式中,若当前PDCP SDU超时,终端继续读取DRB队列中的下一条描述信息,并更新DRB队列的读索引,直至当前PDCP SDU未超时时停止超时检测。Similar to the above step 404, when the PDCP SDU times out, the terminal discards the PDCP SDU (the specific discarding process can refer to step 404). In a possible implementation, if the current PDCP SDU times out, the terminal continues to read the next description information in the DRB queue and updates the read index of the DRB queue until the timeout detection is stopped when the current PDCP SDU does not time out.

示意性的,如图8所示,MAC层83对超时的PDCP SDU进行丢弃,而未超时的PDCP SDU则继续保存在DRB队列中,等待UL grant时上行传输。Illustratively, as shown in FIG8 , the MAC layer 83 discards the timed-out PDCP SDU, while the non-timed-out PDCP SDU continues to be stored in the DRB queue, waiting for uplink transmission when a UL grant is made.

步骤705,重启检查定时器。Step 705, restart the inspection timer.

在一种可能的实施方式中,当各个DRB队列均完成超时检测后,终端重启检查定时器,以便进行下一轮定时检测。In a possible implementation, after each DRB queue completes the timeout detection, the terminal restarts the check timer to perform the next round of timing detection.

在一些实施例中,检查定时器的定时器时长为固定值,终端每次根据固定的定时器时长启动检查定时器。比如,定时器时长为50ms。In some embodiments, the timer duration of the check timer is a fixed value, and the terminal starts the check timer each time according to the fixed timer duration. For example, the timer duration is 50 ms.

在另一些实施例中,检查定时器的定时器时长为动态值,终端可以根据实时的数据传输情况动态调整定时器时长。In some other embodiments, the timer duration of the inspection timer is a dynamic value, and the terminal may dynamically adjust the timer duration according to real-time data transmission conditions.

在一种可能的实施方式中,终端基于目标参数调整定时器时长,该目标参数包括上行授权频率、上行发送速率以及数据缓冲大小中的至少一种。In a possible implementation manner, the terminal adjusts the timer duration based on a target parameter, where the target parameter includes at least one of an uplink authorization frequency, an uplink transmission rate, and a data buffer size.

其中,当上行频率越高,或上行发送速率越快时,表明上行数据传输通路状态越好,为了避免频繁进行定期检测,可以设置较长的定时器时长,即定时器时长与上行授权频率以及上行发送速率呈正相关关系;相反的,当终端的数据缓冲越大时,表明数据的上行速度偏慢,容易出现上行数据阻塞,因此可以设置较短的定时器时长,以便及时清理超时数据,即定时器时长与数据缓冲大小呈现负相关关系。Among them, when the uplink frequency is higher or the uplink sending rate is faster, it indicates that the state of the uplink data transmission path is better. In order to avoid frequent periodic detection, a longer timer duration can be set, that is, the timer duration is positively correlated with the uplink authorization frequency and the uplink sending rate; on the contrary, when the terminal data buffer is larger, it indicates that the data uplink speed is slow and uplink data blocking is prone to occur. Therefore, a shorter timer duration can be set to clear the timed out data in time, that is, the timer duration is negatively correlated with the data buffer size.

当然,终端还可以基于上述参数以外的其他参数动态调整定时器时长,本申请实施例并不对此构成限定。Of course, the terminal may also dynamically adjust the timer duration based on other parameters other than the above parameters, and the embodiments of the present application are not limited to this.

本实施例中,通过为PDCP实体设置公共的检查定时器,从而利用该定时器触发对各个DRB队列中的PDCP SDU进行定期超时检查,并丢弃超时数据,避免因链路质量较差或底层错误等原因,导致终端长时间未收到上行授权信息时,大量超时PDCP SDU无法被及时丢弃的问题,进一步保证了上行数据的通畅传输。In this embodiment, a common check timer is set for the PDCP entity, so that the timer is used to trigger a periodic timeout check on the PDCP SDU in each DRB queue, and the timed-out data is discarded, thereby avoiding the problem that a large number of timed-out PDCP SDUs cannot be discarded in time when the terminal fails to receive uplink authorization information for a long time due to poor link quality or underlying errors, thereby further ensuring the smooth transmission of uplink data.

此外,本实施例中,终端基于上行授权频率、上行发送速率以及数据缓冲大小等因素动态调整定时器时长,在防止上行数据阻塞的同时,避免定期检测过于频繁启动造成的处理资源浪费。In addition, in this embodiment, the terminal dynamically adjusts the timer duration based on factors such as uplink authorization frequency, uplink transmission rate, and data buffer size, thereby preventing uplink data blocking and avoiding waste of processing resources caused by too frequent activation of periodic detection.

下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

请参考图9,其示出了本申请一个实施例提供的数据丢弃装置的结构框图。该装置可以包括:Please refer to FIG9 , which shows a structural block diagram of a data discarding device provided by an embodiment of the present application. The device may include:

设置模块901,用于为分组数据汇聚协议的服务数据单元PDCP SDU设置超时时间戳;A setting module 901 is used to set a timeout timestamp for a packet data convergence protocol service data unit PDCP SDU;

读取模块902,用于响应于满足超时检测条件,读取数据无线承载DRB队列中所述PDCP SDU的描述信息,所述描述信息包含所述PDCP SDU对应的所述超时时间戳;A reading module 902 is configured to read, in response to satisfying a timeout detection condition, description information of the PDCP SDU in the data radio bearer DRB queue, wherein the description information includes the timeout timestamp corresponding to the PDCP SDU;

丢弃模块903,用于响应于所述超时时间戳指示所述PDCP SDU超时,丢弃所述PDCPSDU。The discarding module 903 is configured to discard the PDCP SDU in response to the timeout timestamp indicating that the PDCP SDU has timed out.

可选的,所述读取模块902,包括:Optionally, the reading module 902 includes:

第一读取单元,用于响应于媒体接入控制MAC层接收到上行授权信息,读取所述DRB队列中所述PDCP SDU的所述描述信息。The first reading unit is used to read the description information of the PDCP SDU in the DRB queue in response to a media access control MAC layer receiving uplink authorization information.

可选的,所述第一读取单元,具体用于:Optionally, the first reading unit is specifically configured to:

响应于所述MAC层接收到所述上行授权信息,从至少一个DRB队列中确定目标逻辑信道对应的目标DRB队列,所述目标逻辑信道为接收所述上行授权信息的逻辑信道;In response to the MAC layer receiving the uplink grant information, determining a target DRB queue corresponding to a target logical channel from at least one DRB queue, the target logical channel being a logical channel for receiving the uplink grant information;

读取所述目标DRB队列中所述PDCP SDU的所述描述信息。Read the description information of the PDCP SDU in the target DRB queue.

可选的,所述装置还包括:Optionally, the device further comprises:

发送模块,用于响应于所述超时时间戳指示所述PDCP SDU未超时,对所述PDCPSDU进行数据处理,并发送处理后的数据。The sending module is used for processing the PDCP SDU data in response to the timeout timestamp indicating that the PDCP SDU has not timed out, and sending the processed data.

可选的,所述读取模块902,包括:Optionally, the reading module 902 includes:

第二读取单元,用于响应于检查定时器达到定时器时长,读取所述DRB队列中所述PDCP SDU的所述描述信息,所述定时器时长小于PDCP实体配置的超时时长;a second reading unit, configured to read the description information of the PDCP SDU in the DRB queue in response to a check timer reaching a timer duration, wherein the timer duration is less than a timeout duration configured by the PDCP entity;

重启单元,用于重启所述检查定时器。A restart unit is used to restart the inspection timer.

可选的,所述第二读取单元,用于:Optionally, the second reading unit is used to:

响应于所述检查定时器达到所述定时器时长,确定目标PDCP实体对应的目标DRB列队,所述目标PDCP实体为配置超时机制的PDCP实体;In response to the check timer reaching the timer duration, determining a target DRB queue corresponding to a target PDCP entity, the target PDCP entity being a PDCP entity configured with a timeout mechanism;

读取各个所述目标DRB队列中所述PDCP SDU的所述描述信息。Read the description information of the PDCP SDU in each of the target DRB queues.

可选的,所述装置还包括:Optionally, the device further comprises:

调整模块,用于基于目标参数调整所述定时器时长,所述目标参数包括上行授权频率、上行发送速率以及数据缓冲大小中的至少一种;An adjustment module, configured to adjust the timer duration based on a target parameter, wherein the target parameter includes at least one of an uplink authorization frequency, an uplink transmission rate, and a data buffer size;

其中,所述定时器时长与所述上行授权频率以及所述上行发送速率呈正相关关系,所述定时器时长与所述数据缓冲大小呈现负相关关系。The timer duration is positively correlated with the uplink authorization frequency and the uplink transmission rate, and the timer duration is negatively correlated with the data buffer size.

可选的,所述设置模块901,包括:Optionally, the setting module 901 includes:

第一获取单元,用于响应于PDCP实体接收到上层发送的时间戳设置通知,获取配置的超时时长,所述时间戳设置通知由所述上层接收到IP数据包时发送;A first acquisition unit, configured to acquire a configured timeout duration in response to the PDCP entity receiving a timestamp setting notification sent by an upper layer, wherein the timestamp setting notification is sent by the upper layer when receiving an IP data packet;

设置单元,用于基于当前时间以及所述超时时长,通过所述PDCP实体为所述PDCPSDU设置所述超时时间戳。A setting unit is used to set the timeout timestamp for the PDCP SDU through the PDCP entity based on the current time and the timeout duration.

可选的,所述丢弃模块903,用于:Optionally, the discarding module 903 is used to:

响应于所述超时时间戳小于当前时间,确定所述PDCP SDU超时,并丢弃所述PDCPSDU。In response to the timeout timestamp being less than the current time, it is determined that the PDCP SDU is timed out, and the PDCP SDU is discarded.

可选的,所述丢弃模块903,包括:Optionally, the discarding module 903 includes:

第二获取单元,用于从所述描述信息中获取所述PDCP SDU的数据地址以及数据长度;A second acquiring unit, configured to acquire a data address and a data length of the PDCP SDU from the description information;

释放单元,用于基于所述数据地址以及所述数据长度,释放所述PDCP SDU占用的存储空间;a releasing unit, configured to release the storage space occupied by the PDCP SDU based on the data address and the data length;

移除单元,用于从所述DRB队列中移除所述PDCP SDU的所述描述信息。A removing unit is used to remove the description information of the PDCP SDU from the DRB queue.

综上所述,本申请实施例中,通过为PDCP SDU设置超时时间戳,并在满足超时检测条件时,从DRB队列中获取PDCP SDU的描述信息,从而基于描述信息中的超时时间戳确定PDCP SDU是否超时,进而对超时的PDCP SDU进行丢弃;采用本申请实施例提供的方案,无需为PDCP SDU设置丢弃定时器,避免设置大量丢弃定时器占用大量处理资源,简化了PDCPSDU的超时丢弃流程,并有助于降低通信系统的问题检测以及维护的复杂度。To summarize, in the embodiments of the present application, a timeout timestamp is set for the PDCP SDU, and when the timeout detection condition is met, the description information of the PDCP SDU is obtained from the DRB queue, thereby determining whether the PDCP SDU has timed out based on the timeout timestamp in the description information, and then discarding the timed out PDCP SDU; by adopting the solution provided in the embodiments of the present application, there is no need to set a discard timer for the PDCP SDU, thus avoiding setting a large number of discard timers to occupy a large amount of processing resources, simplifying the timeout discard process of the PDCP SDU, and helping to reduce the complexity of problem detection and maintenance of the communication system.

图10示出了本申请一个示例性实施例提供的终端的结构示意图,该终端包括:处理器1001、接收器1002、发射器1003、存储器1004和总线1005。FIG10 shows a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application. The terminal includes: a processor 1001 , a receiver 1002 , a transmitter 1003 , a memory 1004 and a bus 1005 .

处理器1001包括一个或者一个以上处理核心,处理器1001通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。The processor 1001 includes one or more processing cores. The processor 1001 executes various functional applications and information processing by running software programs and modules.

接收器1002和发射器1003可以实现为一个通信组件,该通信组件可以是一块通信芯片。The receiver 1002 and the transmitter 1003 may be implemented as a communication component, which may be a communication chip.

存储器1004通过总线1005与处理器1001相连。The memory 1004 is connected to the processor 1001 via a bus 1005 .

存储器1004可用于存储至少一个指令,处理器1001用于执行该至少一个指令,以实现上述方法实施例中的各个步骤。The memory 1004 may be used to store at least one instruction, and the processor 1001 may be used to execute the at least one instruction to implement each step in the above method embodiment.

此外,存储器1004可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EEPROM),可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM),静态随时存取存储器(StaticRandom Access Memory,SRAM),只读存储器(Read-Only Memory,ROM),磁存储器,快闪存储器,可编程只读存储器(Programmable Read-Only Memory,PROM)。In addition, the memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. The volatile or non-volatile storage device includes but is not limited to: a magnetic disk or an optical disk, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a static random access memory (SRAM), a read-only memory (ROM), a magnetic memory, a flash memory, and a programmable read-only memory (PROM).

本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如上各个实施例所述的数据丢弃方法。An embodiment of the present application further provides a computer-readable storage medium, which stores at least one program code, and the program code is loaded and executed by a processor to implement the data discarding method described in the above embodiments.

根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面的各种可选实现方式中提供的数据丢弃方法。According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the data discarding method provided in various optional implementations of the above aspects.

应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本文中描述的步骤编号,仅示例性示出了步骤间的一种可能的执行先后顺序,在一些其它实施例中,上述步骤也可以不按照编号顺序来执行,如两个不同编号的步骤同时执行,或者两个不同编号的步骤按照与图示相反的顺序执行,本申请实施例对此不作限定。It should be understood that the "multiple" mentioned in this article refers to two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims (13)

1. A method of data discarding, the method comprising:
Setting a timeout time stamp for a service data unit PDCP SDU of a packet data convergence protocol, wherein the timeout time stamp is used for indicating a timeout time point of the PDCP SDU, the timeout time stamp is added into description information of the PDCP SDU, and the description information is added into a data radio bearer DRB queue, and a media access control MAC layer has read-write authority of the DRB queue;
Reading, by the MAC layer, the description information of the PDCP SDU in a DRB queue in response to a timeout detection condition being satisfied;
Discarding the PDCP SDU in response to the timeout timestamp indicating that the PDCP SDU is timeout.
2. The method of claim 1, wherein the reading the description information of the PDCP SDU in the DRB queue in response to the timeout detection condition being met comprises:
And in response to the MAC layer receiving the uplink authorization information, reading the description information of the PDCP SDU in the DRB queue.
3. The method of claim 2, wherein the reading the description information of the PDCP SDUs in the DRB queue in response to the MAC layer receiving uplink grant information comprises:
In response to the MAC layer receiving the uplink grant information, determining a target DRB queue corresponding to a target logical channel from at least one DRB queue, wherein the target logical channel is a logical channel for receiving the uplink grant information;
And reading the description information of the PDCP SDU in the target DRB queue.
4. The method of claim 2, wherein after the reading the description information of the PDCP SDUs in the DRB queue, the method further comprises:
And responding to the overtime time stamp indicating that the PDCP SDU is not overtime, carrying out data processing on the PDCP SDU and transmitting the processed data.
5. The method of claim 1, wherein the reading, by the MAC layer, the description information of the PDCP SDU in the DRB queue in response to the timeout detection condition being met, comprises:
responding to the fact that a checking timer reaches a timer duration, and reading the description information of the PDCP SDU in the DRB queue through the MAC layer, wherein the timer duration is smaller than a timeout duration configured by a PDCP entity;
Restarting the checking timer.
6. The method of claim 5, wherein the reading, by the MAC layer, the description information of the PDCP SDU in the DRB queue in response to a check timer reaching a timer duration comprises:
Determining a target DRB queue corresponding to a target PDCP entity in response to the checking timer reaching the timer duration, wherein the target PDCP entity is a PDCP entity configured with a timeout mechanism;
and reading the description information of the PDCP SDUs in each target DRB queue through the MAC layer.
7. The method of claim 5, wherein the method further comprises:
Adjusting the time length of the timer based on a target parameter, wherein the target parameter comprises at least one of uplink authorized frequency, uplink sending rate and data buffer size;
the timer duration and the uplink grant frequency and the uplink transmission rate are in a positive correlation, and the timer duration and the data buffer size are in a negative correlation.
8. The method according to any of claims 1 to 7, wherein the setting a timeout timestamp for the PDCP SDU comprises:
Acquiring configured timeout duration in response to receiving a timestamp setting notification sent by an upper layer by a PDCP entity, wherein the timestamp setting notification is sent when an IP data packet is received by the upper layer;
And setting the overtime time stamp for the PDCP SDU by the PDCP entity based on the current time and the overtime time.
9. The method of any of claims 1 to 7, wherein discarding the PDCP SDU in response to the timeout timestamp indicating the PDCP SDU to timeout comprises:
and determining that the PDCP SDU is overtime and discarding the PDCP SDU in response to the overtime timestamp being smaller than the current time.
10. The method of any of claims 1 to 7, wherein discarding the PDCP SDU comprises:
acquiring the data address and the data length of the PDCP SDU from the description information;
based on the data address and the data length, releasing the memory space occupied by the PDCP SDU;
And removing the description information of the PDCP SDU from the DRB queue.
11. A data discarding apparatus, the apparatus comprising:
A setting module, configured to set a timeout timestamp for a service data unit PDCP SDU of a packet data convergence protocol, where the timeout timestamp is used to indicate a timeout point of the PDCP SDU, the timeout timestamp is added to description information of the PDCP SDU, and the description information is added to a data radio bearer DRB queue, where a medium access control MAC layer has a read-write authority of the DRB queue;
a reading module, configured to read, by the MAC layer, the description information of the PDCP SDU in the DRB queue in response to satisfaction of a timeout detection condition;
and the discarding module is used for discarding the PDCP SDU in response to the overtime timestamp indicating that the PDCP SDU overtime.
12. A terminal comprising a processor and a memory, wherein the memory has stored therein at least one instruction that is loaded and executed by the processor to implement the data discarding method according to any one of claims 1 to 10.
13. A computer readable storage medium having stored therein at least one program code loaded and executed by a processor to implement the data discarding method according to any one of claims 1 to 10.
CN202110839105.6A 2021-07-23 2021-07-23 Data discarding method, device, terminal and storage medium Active CN113472683B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110839105.6A CN113472683B (en) 2021-07-23 2021-07-23 Data discarding method, device, terminal and storage medium
PCT/CN2022/095927 WO2023000827A1 (en) 2021-07-23 2022-05-30 Data discarding method and apparatus, terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110839105.6A CN113472683B (en) 2021-07-23 2021-07-23 Data discarding method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113472683A CN113472683A (en) 2021-10-01
CN113472683B true CN113472683B (en) 2024-10-29

Family

ID=77882242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110839105.6A Active CN113472683B (en) 2021-07-23 2021-07-23 Data discarding method, device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN113472683B (en)
WO (1) WO2023000827A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472683B (en) * 2021-07-23 2024-10-29 Oppo广东移动通信有限公司 Data discarding method, device, terminal and storage medium
CN115996425A (en) * 2021-10-19 2023-04-21 维沃移动通信有限公司 Data transmission method, device and terminal
CN116017554A (en) * 2021-10-21 2023-04-25 华为技术有限公司 Communication method, communication device and communication system
WO2023130453A1 (en) * 2022-01-10 2023-07-13 Mediatek Singapore Pte. Ltd. Methods and apparatus of packet classification for xr traffic
CN117097435A (en) * 2022-05-09 2023-11-21 维沃移动通信有限公司 Data processing method, device, communication equipment, system and storage medium
WO2024092675A1 (en) * 2022-11-03 2024-05-10 北京小米移动软件有限公司 Information processing method and apparatus, communication device and storage medium
WO2024168688A1 (en) * 2023-02-16 2024-08-22 富士通株式会社 Data processing method and apparatus
CN118741599A (en) * 2023-03-31 2024-10-01 荣耀终端有限公司 Information indication method, device and storage medium
WO2025026127A1 (en) * 2023-07-31 2025-02-06 华为技术有限公司 Communication method, apparatus and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101965705A (en) * 2007-10-01 2011-02-02 交互数字专利控股公司 Method and apparatus for pcdp discard

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045770A (en) * 2011-01-06 2011-05-04 大唐移动通信设备有限公司 Method and equipment for discarding SDUs (service data units) under radio link control (RLC) UM (unacknowledged mode)
EP2830352A1 (en) * 2013-07-24 2015-01-28 Panasonic Intellectual Property Corporation of America Efficient discard mechanism in small cell deployment
CN105337892B (en) * 2014-08-15 2019-05-31 深圳市中兴微电子技术有限公司 A kind of data processing method and device
CN104168214B (en) * 2014-08-21 2018-02-27 京信通信系统(中国)有限公司 A kind of method and device for abandoning grouped data
CN107872396B (en) * 2016-09-26 2021-07-16 华为技术有限公司 Communication method with timeout control, processing device, terminal device and server
CN113472683B (en) * 2021-07-23 2024-10-29 Oppo广东移动通信有限公司 Data discarding method, device, terminal and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101965705A (en) * 2007-10-01 2011-02-02 交互数字专利控股公司 Method and apparatus for pcdp discard

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"R2-074703 Specifying AQM for the UE v2".3GPP tsg_ran\WG2_RL2.2007,全文. *

Also Published As

Publication number Publication date
WO2023000827A1 (en) 2023-01-26
CN113472683A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN113472683B (en) Data discarding method, device, terminal and storage medium
CN109152025B (en) Communication method, terminal and base station
CN102685913B (en) Method for Improving Uplink Transmission in Wireless Communication System
EP2197235B1 (en) Terminal device in a carrier aggregation based mobile communication system and buffer status reporting method thereof
CN113940130B (en) Method, device and system for triggering side link scheduling request
US20200267793A1 (en) Method and system for handling packet duplication and resumption of rbs in wireless communication system
US10542450B2 (en) Techniques for improving discontinuous reception in wideband wireless networks
US10034196B2 (en) Methods, systems and devices for improving discontinuous reception in wideband wireless networks
CN104145503B (en) The methods, devices and systems of state switching
CN103369509B (en) A kind of reporting cached state method and terminal device
WO2018130034A1 (en) Data processing method, apparatus and system
WO2018202037A1 (en) Data transmission method, terminal device, and network device
CN101686574A (en) Method of handling timers for triggering buffer status report and related communication device
CN101730152A (en) Method for resetting parameters in a wireless communication system
WO2021022687A1 (en) Communication method, method for establishing slrb, and communication apparatus
WO2012136087A1 (en) Method and system for scheduling resources and terminal
CN110431894B (en) Resource scheduling method, terminal equipment and network equipment
CN113316175A (en) Terminal strategy configuration method, device, terminal, base station and storage medium
US20240284244A1 (en) Method for data transmission and device
WO2017193948A1 (en) Data transmission method and terminal
CN112825496B (en) Processing method and device for time information transmission and storage medium
CN107018531B (en) Method for processing data service in Long Term Evolution (LTE) base station and base station
CN115699969A (en) Method and device for small data transmission
WO2022233219A1 (en) Ue transmission parameter adjustment method and apparatus
CN115211220B (en) Wireless link reconstruction 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
GR01 Patent grant
GR01 Patent grant