CN-122001838-A - Data packet delivery method, terminal device, storage medium, and program product
Abstract
The embodiment of the application provides a data packet submitting method, terminal equipment, a storage medium and a program product. The method comprises the steps of receiving a data packet through a PDCP layer, determining a receiving count identifier of the data packet in the PDCP layer, and if the receiving count identifier is different from a submitting count identifier, detecting whether the accumulated amount of the data packet in a buffer space of the PDCP layer is larger than or equal to a target buffer threshold of the buffer space or not by the terminal equipment, and submitting the data packet stored in the buffer space to a higher layer according to a configured count value sequence under the condition that the accumulated amount is larger than or equal to the target buffer threshold. The method is beneficial to reducing the dependence of the PDCP layer on the configuration of the reordering timer, avoiding the problem of stagnation of a receiving window or cache overflow caused by unreasonable configuration, and being beneficial to ensuring the stability of service operation of the terminal equipment.
Inventors
- LI YUN
- WANG MINGHUI
- GUO SUFANG
- ZHANG LIANG
Assignees
- 中国星网网络应用有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260104
Claims (11)
- 1. A method of data packet delivery, the method comprising: Receiving a data packet through a Packet Data Convergence Protocol (PDCP) layer, and determining a receiving count identifier of the data packet in the PDCP layer, wherein the receiving count identifier is used for indicating the count value of the data packet currently received by the PDCP layer; If the receiving count identifier is different from the submitting count identifier, detecting whether the accumulated quantity of the data packets in the buffer space of the PDCP layer is larger than or equal to a target buffer threshold of the buffer space, wherein the submitting count identifier is used for indicating the count value of the data packets which are waiting and are not submitted to a higher layer in the PDCP layer; And delivering the data packets stored in the buffer memory space to a higher layer according to the configured count value sequence under the condition that the accumulated quantity is larger than or equal to the target buffer memory threshold.
- 2. The method of claim 1, wherein if the received count identification is different from the submitted count identification, the method further comprises: delivering the data packets stored in the cache space to the higher layer according to the configured count value sequence under the condition that one of the following conditions is satisfied: Determining that the reordering timer has run out of time, or Detecting that the accumulated quantity is greater than or equal to the target cache threshold under the condition that the operation of the reordering timer is not overtime; the reordering timer is configured to detect whether a buffering duration of the data packet in the buffering space is overtime.
- 3. The method according to claim 1 or 2, characterized in that the method further comprises: Determining a first cache threshold corresponding to the cache space according to a memory specification of a terminal device, wherein the memory specification and the first cache threshold have a positive correlation, and the PDCP layer is positioned in the terminal device; determining a second buffer threshold corresponding to the buffer space according to service characteristics of the terminal equipment and network environment parameters, wherein the service characteristics comprise a service type and/or a service flow specification currently carried by the PDCP layer, and the network environment parameters comprise wireless channel quality of the terminal equipment; And determining the target cache threshold according to the first cache threshold and the second cache threshold.
- 4. The method of claim 3, wherein after determining the target cache threshold, the method further comprises: After a preset duration, acquiring an updated service characteristic and an updated network environment parameter of the terminal equipment, and determining an updated second cache threshold corresponding to the cache space according to the updated service characteristic and the updated network environment parameter; And updating the target cache threshold according to the first cache threshold and the updated second cache threshold.
- 5. The method of claim 3, wherein determining the second buffer threshold corresponding to the buffer space according to the service characteristics of the terminal device and the network environment parameter comprises at least one of: if one of the following conditions is satisfied, wherein the service type included in the service feature is non-delay sensitive, the service flow specification is a first flow specification, or the wireless channel quality included in the network environment parameter is less than or equal to a first quality threshold, the second buffer threshold is determined to be a first value, or If one of the following conditions is satisfied, wherein the service type included in the service feature is time delay sensitive, the service flow specification is a second flow specification, or the wireless channel quality included in the network environment parameter is greater than or equal to a second quality threshold, determining that the second cache threshold is a second value; wherein the first flow specification is greater than the second flow specification, the first mass threshold is less than the second mass threshold, and the first value is greater than the second value.
- 6. A method according to claim 3, wherein determining the second buffer threshold corresponding to the buffer space according to the service characteristics of the terminal device and the network environment parameter comprises: Inputting the service characteristics and the network environment parameters into a target model to obtain the second cache threshold output by the target model; The target model is trained based on historical data, the historical data comprises a plurality of service characteristics of the terminal equipment in a historical period, at least one network environment parameter corresponding to each service characteristic, and a cache space parameter configured by the terminal equipment for each network environment parameter of each service characteristic, and the cache space parameter comprises a cache capacity and/or the maximum number of cached data packets.
- 7. The method according to claim 1 or 2, wherein after delivering the data packets stored in the buffer space to a higher layer in the configured count value order, the method further comprises: Releasing the storage space occupied by the submitted data packet in the cache space; and updating the submitted count identification according to the count value of the submitted data packet.
- 8. A data packet delivery apparatus, comprising: A transceiver module for receiving data packets through a packet data convergence protocol PDCP layer; A processing module, configured to determine a reception count identifier of the data packet in the PDCP layer, where the reception count identifier is used to indicate a count value of a data packet currently received by the PDCP layer; The processing module is further configured to detect whether an accumulated amount of data packets in a buffer space of the PDCP layer is greater than or equal to a target buffer threshold of the buffer space if the receiving count identifier is different from a delivery count identifier, where the delivery count identifier is used to indicate a count value of a first data packet that is waiting and not delivered to a higher layer in the PDCP layer; And the receiving-transmitting module is further configured to submit the data packets stored in the buffer space to a higher layer according to the configured count value sequence when the accumulated amount is greater than or equal to the target buffer threshold.
- 9. The terminal equipment is characterized by comprising a memory and a processor; The memory stores computer-executable instructions; The processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1-7.
- 10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-7.
- 11. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-7.
Description
Data packet delivery method, terminal device, storage medium, and program product Technical Field The present application relates to the field of communications technologies, and in particular, to a data packet submitting method, a terminal device, a storage medium, and a program product. Background In a wireless communication network, a packet data convergence protocol (PACKET DATA Convergence Protocol, PDCP) layer may be used to handle core operations such as ciphering, integrity protection, reordering, and in-order delivery of data packets. The PDCP protocol data units (Protocol Data Unit, PDUs) received by the receiving end PDCP entity from the bottom layer often have an out-of-order problem, which is affected by factors such as time variability of the radio channel and network congestion. In the related art, the PDCP layer controls packet delivery through a Reordering timer (t-Reordering) mechanism, so as to solve the problem of delivery of out-of-order packets. However, the duration of the reordering timer needs to be manually configured by a user, if the configuration is too long or not (defaults to infinity), the receiving window may be stagnated for a long time, so that the subsequent out-of-order data packet is misjudged as old data and discarded, and further, the traffic abnormality is caused. Disclosure of Invention The embodiment of the application provides a data packet submitting method, terminal equipment, storage medium and program product, which are used for solving the technical problems that the time length configuration of a reordering timer is overlong or unconfigured (default is infinity), a receiving window is possibly stagnated for a long time, and subsequent disordered data packets are misjudged as old data and discarded, so that service abnormality is caused. In a first aspect, an embodiment of the present application provides a data packet submitting method, where the method includes: Receiving the data packet through the PDCP layer, and determining a receiving count identifier of the data packet in the PDCP layer, wherein the receiving count identifier is used for indicating the count value of the data packet currently received by the PDCP layer; if the receiving count identifier is different from the submitting count identifier, detecting whether the accumulated quantity of the data packets in the buffer space of the PDCP layer is larger than or equal to the target buffer threshold of the buffer space, wherein the submitting count identifier is used for indicating the count value of the data packets which are waiting and are not submitted to the higher layer in the PDCP layer; And under the condition that the accumulated quantity is larger than or equal to the target cache threshold, delivering the data packets stored in the cache space to a high layer according to the configured count value sequence. In one possible implementation, if the received count identifier is different from the submitted count identifier, the method further includes: And delivering the data packets stored in the cache space to a higher layer according to the configured count value sequence under the condition that one of the following conditions is satisfied: Determining that the reordering timer has run out of time, or Detecting that the accumulated quantity is greater than or equal to a target cache threshold under the condition that the operation of the reordering timer is not overtime; the reordering timer is used for detecting whether the buffer time length of the data packet in the buffer space is overtime. In one possible embodiment, the method further comprises: Determining a first cache threshold corresponding to the cache space according to the memory specification of the terminal equipment, wherein the memory specification and the first cache threshold have positive correlation, and the PDCP layer is positioned in the terminal equipment; Determining a second buffer threshold corresponding to the buffer space according to service characteristics of the terminal equipment and network environment parameters, wherein the service characteristics comprise the service type and/or service flow specification currently carried by the PDCP layer, and the network environment parameters comprise wireless channel quality of the terminal equipment; and determining a target cache threshold according to the first cache threshold and the second cache threshold. In a possible implementation manner, after determining the target cache threshold, the method further includes: After the preset duration, acquiring updated service characteristics and updated network environment parameters of the terminal equipment, and determining an updated second cache threshold corresponding to the cache space according to the updated service characteristics and the updated network environment parameters; And updating the target cache threshold according to the first cache threshold and the updated second cache threshold. In a pos