Search

CN-122027576-A - Packet control method, storage medium and electronic device for data packets

CN122027576ACN 122027576 ACN122027576 ACN 122027576ACN-122027576-A

Abstract

The embodiment of the application provides a packet control method, a storage medium and electronic equipment of a data packet, wherein the method comprises the steps of extracting a current sequence number of a received current data packet, updating a second sequence number based on the current sequence number, wherein the current sequence number is different from a first sequence number, the difference value between the current sequence number and the first sequence number is smaller than a preset threshold value, the first sequence number is the minimum sequence number of the data packet to be recombined and is the next sequence number of the maximum sequence number of the received data packet, updating the count value of a preset counter to the difference value between the second sequence number and the first sequence number, executing packet grouping operation on at least one first data packet in response to the count value of the preset counter being larger than or equal to a count threshold value, and updating the first sequence number to the second sequence number, wherein the at least one first data packet comprises all the received and not recombined data packets, and the count threshold value is larger than or equal to the number of the data packets scheduled in a single transmission time interval.

Inventors

  • LI QIANG
  • HUO NING
  • LI YUN
  • ZHANG LIANG
  • ZHAO RUI
  • LI XI
  • Xing Danyang

Assignees

  • 中国星网网络应用研究院有限公司

Dates

Publication Date
20260512
Application Date
20260414

Claims (10)

  1. 1. A packet control method for a data packet, comprising: extracting the current serial number of the received current data packet; Updating a second sequence number based on the current sequence number in response to the current sequence number being different from a first sequence number, wherein the difference between the current sequence number and the first sequence number is smaller than a preset threshold value, the first sequence number is the minimum sequence number of a data packet to be recombined, and the second sequence number is the next sequence number of the maximum sequence number of the received data packet; Updating the count value of a preset counter to be the difference value between the second serial number and the first serial number; and responding to the count value of the preset counter to be larger than or equal to a count threshold, performing packet grouping operation on at least one first data packet, and updating the first sequence number to the second sequence number, wherein the at least one first data packet comprises all received and unrecombinable data packets, and the count threshold is larger than or equal to the number of data packets scheduled in a single transmission time interval.
  2. 2. The method of claim 1, wherein the updating the second sequence number based on the current sequence number comprises: updating the second serial number to be the next serial number of the current serial number under the condition that the current serial number is larger than or equal to the second serial number; And under the condition that the current sequence number is smaller than the second sequence number, the second sequence number is kept unchanged.
  3. 3. The method of claim 1, wherein the performing a packetizing operation on at least one first data packet in response to the count value of the preset counter being greater than or equal to a count threshold comprises: searching the at least one first data packet with a sequence number in a sequence number interval from a target buffer area in response to the count value of the preset counter being greater than or equal to the count threshold, wherein the target buffer area is used for storing received and unrecombinated data packets, and the sequence number interval is an interval which is opened before and after the first sequence number is taken as a lower boundary and the second sequence number is taken as an upper boundary; and performing a grouping operation on the at least one first data packet.
  4. 4. A method according to claim 3, wherein prior to searching from within the destination buffer for the at least one first data packet having a sequence number within a sequence number interval, the method further comprises: Updating the first sequence number to the minimum sequence number of the received and unrecombinated data packet.
  5. 5. A method according to claim 3, wherein after said extracting the current sequence number of the received current data packet, the method further comprises: And storing the current data packet to the target cache area in response to the current sequence number being different from the first sequence number and the difference value between the current sequence number and the first sequence number being smaller than the preset threshold value.
  6. 6. The method of claim 1, wherein after said extracting the current sequence number of the received current data packet, the method further comprises: Responding to the fact that the current sequence number is the same as the first sequence number, taking the first sequence number as a starting point, and sequentially taking the sequence number after the first sequence number as a sequence number to be searched for a data packet searching operation until the searched data packet is empty, so as to obtain at least one second data packet, wherein the data packet searching operation is used for searching the received and unrecombinated data packet with the sequence number to be searched for, and the at least one second data packet comprises the current data packet; And performing a grouping operation on the at least one second data packet, and updating the first sequence number to be the sequence number next to the maximum sequence number of the second data packet in the at least one second data packet.
  7. 7. The method of claim 6, wherein after said extracting the current sequence number of the received current data packet, the method further comprises: and in response to the current sequence number being the same as the first sequence number, updating the second sequence number to be the next sequence number of the second sequence number in the case that the current sequence number is the same as the second sequence number.
  8. 8. The method according to any of claims 1 to 7, characterized in that after said extracting the current sequence number of the received current data packet, the method further comprises: And discarding the current data packet in response to the difference between the current sequence number and the first sequence number being greater than or equal to the preset threshold.
  9. 9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program, wherein the computer program, when executed by a processor, implements the steps of the method of any of claims 1 to 8.
  10. 10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 8 when the computer program is executed.

Description

Packet control method, storage medium and electronic device for data packets Technical Field The embodiment of the application relates to the technical field of wireless communication, in particular to a packet control method of a data packet, a storage medium and electronic equipment. Background Currently, in a wireless communication process, a radio link control (Radio Link Control, abbreviated RLC) layer is configured to adapt a data packet transmitted from an upper layer to a size and a format suitable for a lower layer transmission, and an operation mode of the radio link control layer includes a transparent mode (TRANSPARENT MODE, abbreviated TM), an acknowledged mode (Acknowledged Mode, abbreviated AM) and a non-acknowledged mode (Unacknowledged Mode, abbreviated UM). In unacknowledged mode, the radio link control layer segments, concatenates, reassembles, and detects errors for the data packets. In the related art, when the radio link control layer receives the out-of-order data packet, the timer can be set for waiting for the out-of-order data packet, and the out-of-order data packet can be reorganized under the condition that the timer is overtime. However, in the multi-carrier mode, the out-of-order packets may already occupy the buffer before the timer expires, resulting in the correct packet being discarded, thereby reducing the reliability of the packet. As can be seen from the above, the packet control method of the related art has a problem of poor reliability of the packet due to improper timing time setting of the timer. Disclosure of Invention The embodiment of the application provides a packet control method, a storage medium and electronic equipment for data packets, which at least solve the problem of poor reliability of the data packets caused by improper timing time setting of a timer in the packet control method for the data packets in the related technology. According to one aspect of the embodiment of the application, a packet control method of a data packet is provided, which comprises the steps of extracting a current sequence number of a received current data packet, updating a second sequence number based on the current sequence number in response to the fact that the current sequence number is different from a first sequence number and the difference value between the current sequence number and the first sequence number is smaller than a preset threshold value, wherein the first sequence number is the smallest sequence number of the data packet to be recombined and the second sequence number is the next sequence number of the largest sequence number of the received data packet, updating the count value of a preset counter to the difference value between the second sequence number and the first sequence number, and executing a packet grouping operation on at least one first data packet in response to the count value of the preset counter being larger than or equal to the count threshold value and updating the first sequence number to the second sequence number, wherein the at least one first data packet comprises all received and not recombined data packets, and the count threshold value is larger than or equal to the number of data packets scheduled in a single transmission time interval. According to a further aspect of embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when being executed by a processor. According to yet another aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium and executes the computer instructions to cause the computer device to perform the steps of any of the method embodiments described above. According to a further aspect of embodiments of the present application there is also provided an electronic device comprising a memory having a computer program stored therein and a processor arranged to perform the steps of any of the method embodiments described above by means of the computer program. According to the application, the minimum sequence number of the data packet to be recombined is recorded through the first sequence number, the next sequence number of the maximum sequence number of the received data packet is recorded through the second sequence number, a disorder counter is set to replace a timer to carry out packet grouping control, the sequence number of the current data packet, namely, the current sequence number, can be extracted for the received current data packet, if the current sequence number is different from the first sequence number and the difference value between the current sequence