WO2024017369A1 - Data packet processing method and apparatus, electronic device, and readable storage medium - Google Patents
Data packet processing method and apparatus, electronic device, and readable storage medium Download PDFInfo
- Publication number
- WO2024017369A1 WO2024017369A1 PCT/CN2023/108626 CN2023108626W WO2024017369A1 WO 2024017369 A1 WO2024017369 A1 WO 2024017369A1 CN 2023108626 W CN2023108626 W CN 2023108626W WO 2024017369 A1 WO2024017369 A1 WO 2024017369A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data packet
- pdu data
- pdu
- received
- target
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
Definitions
- the present disclosure relates to the field of communication technology, and in particular, to a data packet processing method, device, electronic equipment and readable storage medium.
- the packet data convergence protocol (Packet Data Convergence Protocol, PDCP) layer receiving end will no longer try to receive the corresponding PDCP protocol data unit (Protocol Data Unit, PDU) data packet due to the expiration of the reordering timer (t-Reordering), and Other data packets will be received and saved normally and uploaded to the higher layer.
- PDU Packet Data Unit
- This processing method will receive and save invalid data packets, resulting in a waste of communication resources.
- Embodiments of the present disclosure provide a data packet processing method, device, electronic device, and readable storage medium, which solve the problem of how to avoid unnecessary data packet processing operations.
- embodiments of the present disclosure provide a data packet processing method, including:
- the target PDU data packet is the pair of the PDCP receiving device.
- the data packet processing operation includes at least one of the following:
- an embodiment of the present disclosure provides a data packet processing device, including:
- the judgment module is used to judge whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information when the reordering timer times out, and obtain a judgment result.
- the target PDU data packet is the target PDU data packet.
- a processing module configured to perform data packet processing operations when the judgment result indicates that the target PDU data packet does not exist
- the data packet processing operation includes at least one of the following:
- embodiments of the present disclosure provide an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor.
- the computer program is executed by the processor Implement the steps in the data packet processing method described in the first aspect.
- embodiments of the present disclosure provide a readable storage medium, a program is stored on the readable storage medium, and when the program is executed by a processor, the steps in the data packet processing method as described in the first aspect are implemented. .
- the judgment result is obtained by judging whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information.
- the target PDU data packet is PDCP.
- the receiving device decodes the data packets necessary for the received PDU data packet. If the judgment result indicates that there is no target PDU data packet, discard the received PDU data packet, and/or stop receiving data related to the target PDU data packet. Packet related PDU data packet.
- the target PDU data packet of high importance such as I frame/I slice
- the received PDU data packet of low importance such as P frame/P slice
- Figure 1 is a structural diagram of a system to which embodiments of the present disclosure are applicable;
- Figure 2 is one of the schematic flow diagrams of the data packet processing method provided by an embodiment of the present disclosure
- Figure 3 is a second schematic flowchart of a data packet processing method provided by an embodiment of the present disclosure
- Figure 4 is a third schematic flowchart of the data packet processing method provided by an embodiment of the present disclosure.
- Figure 5 is a schematic structural diagram of a data packet processing device provided by an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- Figure 1 is a structural diagram of a system to which embodiments of the present disclosure are applicable. As shown in Figure 1, it includes a sending device 11 and a receiving device 12. The sending device 11 and the receiving device 12 can communicate with each other.
- the receiving device 12 is a Packet Data Convergence Protocol (Packet Data Convergence Protocol, PDCP) receiving device (also called a PDCP receiving entity), and the sending device 11 can be a lower layer of the PDCP receiving entity (such as a Radio Link Control layer, RLC).
- PDCP Packet Data Convergence Protocol
- RLC Radio Link Control layer
- the PDU data packets received by the PDCP receiving entity from the RLC layer may be out of order. If the corresponding service requires the data packets to be In order to transfer, reordering needs to be performed first. PDU data packets arriving out of order will first be stored in the cache of the PDCP receiving device 12. PDU data packets that have been successfully received before a certain time point can be delivered to the upper layer, and then the PDU data packets received after this time point can be delivered to the upper layer. The PDU data packet is delivered to the upper layer.
- the upper layer refers to the Radio Resource Control layer (Radio Resource Control, RRC).
- the PDCP receiving entity needs to detect whether the lower layer has lost a certain PDU data packet and avoid excessive reordering delay. Simply put, the PDCP receiving entity will only wait for PDU packets that have not yet been received. After a period of time, if the PDU data packet is not received within this period of time, it will no longer wait.
- the reordering timer t-Reordering determines the length of this period. Each PDCP receiving entity has only one reordering timer. If the PDU data packet is not received within the time specified by the reordering timer, the PDCP receiving entity considers that the PDU data packet has been lost, and the PDCP receiving entity will no longer try to receive the lost PDU data packet. That is, the PDCP layer will not attempt to retransmit lost PDU packets.
- GOP group of pictures
- slice-based When encoding video based on GOP, in a GOP, the importance of I frame is higher than that of P frame, and the decoding of P frame depends on I frame. If the high-importance I frame has been lost, the low-importance P frame should also be discarded/no longer received at the receiving end.
- group of pictures in a GOP, the importance of the I slice is higher than that of the P slice, and the decoding of the P slice depends on the I slice. If the high-importance I slice has been lost, the low-importance P slice should also be discarded/no longer received at the receiving end.
- the Packet Data Convergence Protocol (PDCP) layer receiving end no longer attempts to receive a certain PDCP Protocol Data Unit (Protocol Data Unit, PDU) because the reordering timer (t-Reordering) times out.
- PDU Packet Data Convergence Protocol
- t-Reordering reordering timer
- the different importance of different PDCP PDUs and the correlation between different PDCP PDUs were not taken into account. It may cause that when I frames/I slices of high importance have been lost and are no longer received, P frames/P slices of low importance are not discarded and are still transmitted to the upper layer, or P frames of low importance are still received. Frame/P slice. P frames/P slices of low importance are not discarded and are still transmitted to the upper layer, or P frames/P slices of low importance are still received, which are unnecessary packet processing operations and will lead to a waste of communication resources.
- Figure 2 is one of the schematic flow charts of a data packet processing method provided by an embodiment of the present disclosure.
- the data packet processing method shown in FIG. 2 may be executed by the PDCP receiving device 12.
- the PDCP receiving device 12 may be a PDCP receiving entity.
- the packet processing method can include the following steps:
- Step 101 When the reordering timer times out, determine whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information, and obtain the judgment result.
- the target PDU data packet is the PDCP
- the receiving device processes the received PDU data packet. Packets necessary for line decoding.
- a video frame corresponds to a PDU group.
- a slice corresponds to a PDU group, and a PDU group includes multiple PDU data packets.
- the PDU data packet carries a sequence identifier used to indicate the sequence of the PDU data packet.
- the sequence identifier can be a count (Count) value or a sequence number (Sequence Number, SN).
- the PDCP receiving device When the PDCP receiving device sends PDU data packets to the upper layer, they are sent in the order of increasing sequence identifiers, but the PDU data packets received by the PDCP receiving device from the lower layer may be out of order.
- the PDCP receiving device receives out-of-order PDU data packets from the lower layer, it starts the reordering timer and the reordering timer starts counting.
- starting the reordering timer includes at least the following two situations.
- Scenario 1 If the Count value of the PDU data packet currently received by the PDCP receiving device is less than the maximum Count value of the received PDU data packet, the reordering timer is started.
- the reordering timer is started.
- the reordering timer expires, that is, the reordering timer times out, based on the preconfigured information, it is judged whether there is a target PDU data packet in the received protocol data unit PDU data packet, and the judgment result is obtained.
- Scenario 2 If the Count value of the PDU data packet currently received by the PDCP receiving device is greater than the maximum Count value of the received PDU data packet + 1, the reordering timer is started.
- the reordering timer is started.
- the reordering timer expires, that is, the reordering timer times out, based on the preconfigured information, it is judged whether there is a target PDU data packet in the received protocol data unit PDU data packet, and the judgment result is obtained.
- the preconfiguration information is information preconfigured on the PDCP receiving device and is used to indicate which of the received PDU data packets are target PDU data packets.
- the PDCP receiving device While the reordering timer is started and counting, the PDCP receiving device is still in the state of receiving PDU data packets. During this process, the PDCP receiving device may still receive the target PDU data packet.
- Step 102 If the judgment result indicates that the target PDU data packet does not exist, Perform packet processing operations;
- the data packet processing operation includes at least one of the following:
- the specific discarding method is determined according to the actual situation. All received PDU data packets can be discarded, or part of the received PDU data packets can be discarded.
- the PDU data packet carries fourth characteristic information
- the fourth characteristic information is used to indicate the sequence number value of the PDU data packet
- the data packet processing operation includes discarding the The PDU data packet has been received, and the discarding of the PDU data packet that has been received includes:
- the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
- the PDCP receiving device stops receiving PDU data packets that have not yet been received in the PDU group in which the target PDU data packet is located. That is to say, when the target PDU data packet does not exist in the received PDU data packet, the PDU data packet in the PDU group where the target PDU data packet is located and has been received by the PDCP receiving device will be discarded, and the PDU data packet will be discarded. PDU packets that have not yet been received will no longer be attempted to be received.
- the specific diagram is shown in Figure 3.
- the PDU data packet carries fourth characteristic information
- the fourth characteristic information is used to indicate the sequence number value of the PDU data packet
- the data packet processing operation includes stopping receiving and The PDU data packet related to the target PDU data packet, and the stopping of receiving the PDU data packet related to the target PDU data packet include:
- the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
- the judgment result is obtained by judging whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information.
- the target PDU data packet is PDCP.
- the data packet necessary for the receiving device to decode the received PDU data packet is lost if the judgment result indicates that the target PDU data packet does not exist. Discard received PDU data packets/no longer receive PDU data packets. In this way, when the target PDU data packet of high importance (such as I frame/I slice) has been lost, the received PDU data packet of low importance (such as P frame/P slice) will be discarded/the unseen PDU data packet of low importance will be discarded. The received PDU data packet is no longer received, thus avoiding unnecessary processing operations on the data packet and saving communication resources.
- the method provided by the embodiment of the present disclosure can be applied in at least the following three scenarios.
- Scenario 1 There is a key PDU data packet in a PDU group.
- the PDU group can be decoded. That is to say, the target data packet is a key PDU data packet in the PDU group.
- Scenario 2 There are M PDU data packets in a PDU group. M is a positive integer. Only when all M PDU data packets are received can the PDU group be decoded. That is to say, the target data packets are all PDU data packets in the PDU group.
- Scenario 3 One video corresponds to P PDU groups.
- P is a positive integer.
- Q is a positive integer. Only when all Q PDU data packets are received can the PDU group be processed. decoding. That is to say, the target data packets are all PDU data packets in P PDU groups.
- each PDU data packet in the received PDU data packet carries first characteristic information, and the first characteristic information is used to indicate whether the PDU data packet is a critical PDU data packet.
- the configuration information includes first indication information, the first indication information is used to indicate that the key PDU data packet is the target PDU data packet;
- Determining whether there is a target PDU data packet in the received PDU data packet according to the preconfigured information, and obtaining the judgment result including:
- the first feature information may be an identification number.
- the identification number is 1, which means that the PDU data packet is a key PDU data packet.
- Other PDU data packets in the PDU group to which the PDU data packet belongs must rely on this PDU data packet. to decode.
- An identifier of 0 indicates that the PDU data packet is a non-critical PDU data packet.
- key PDU data packets are PDU data packets corresponding to I frames/I slices
- non-critical PDU data packets are PDU data packets corresponding to P frames/P slices.
- the PDCP receiving device can sequentially search whether there is a PDU data packet with an identification number of 1 in the received PDU data packet. If there is a PDU data packet with an identification number of 1, obtain the received PDU data packet. The judgment result is that the target PDU data packet exists in the data packet; if there is no PDU data packet with an identifier of 1, the judgment result that the target PDU data packet does not exist in the received PDU data packet is obtained.
- discarding the received PDU data packet includes:
- the target PDU data packet is a data packet necessary for the PDCP receiving device to decode all the received PDU data packets, discard all the received data packets;
- the target PDU data packet is a data packet necessary for the PDCP receiving device to decode part of the received PDU data packet, discard part of the PDU data in the received PDU data packet.
- the partial PDU data packet must be decoded based on the target PDU data packet.
- the discarded portion of the received PDU data packets refers to the PDU data packets among the received PDU data packets whose sequence identifier is greater than the sequence identifier of the target PDU data packet.
- the PDU data packet carries second characteristic information.
- the second characteristic information is used to indicate whether the PDU data packet belongs to the first PDU group.
- the preconfiguration information includes first quantity information and second Indication information, the first quantity information is the first total number of data packets in the first PDU group, and the second indication information is used to indicate that all data packets in the first PDU group are all Describe the target PDU data packet;
- Determining whether there is a target PDU data packet in the received PDU data packet according to the preconfigured information, and obtaining the judgment result including:
- the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
- the second characteristic information may be a digital identifier.
- a digital identifier of 1 indicates that the PDU data packet belongs to the first PDU group
- a digital identifier of 2 indicates that the PDU data packet belongs to the second PDU group, and so on.
- a second total number of data packets belonging to the first PDU group in the received PDU data packets can be counted.
- the first total number and the second total number are equal, it means that all PDU data packets in the first PDU group have been received, and the judgment result that there is a target PDU data packet in the received PDU data packets is obtained; If the first total number is greater than the second total number, it means that some PDU data packets in the first PDU group have not been received, and a judgment result is obtained that there is no target PDU data packet in the received PDU data packets.
- the target PDU data packets are all PDU data packets in the first PDU group.
- each PDU data packet in the received PDU data packet carries third characteristic information
- the third characteristic information is used to indicate the PDU group to which the PDU data packet belongs among the N PDU groups
- the preconfiguration information includes second quantity information and third indication information.
- the second quantity information includes N third total numbers corresponding to the N PDU groups, and one PDU group corresponds to a third total number, N is a positive integer, and the third indication information is used to indicate that the data packets in the N PDU groups are all the target PDU data packets;
- Determining whether there is a target PDU data packet in the received PDU data packet according to the preconfiguration information, and obtaining the judgment result including:
- N fourth total numbers are determined according to the third characteristic information of the received PDU data packet, wherein a fourth total number is the received PDU data packet. The sum of the number of data packets belonging to one of the N PDU groups in the data packet;
- the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
- the third feature information may also be a digital identifier.
- a digital identifier of 1 indicates that the PDU data packet belongs to the first PDU group
- a digital identifier of 2 indicates that the PDU data packet belongs to the second PDU group
- N indicates that the PDU data packet belongs to the Nth PDU group.
- N fourth total numbers of data packets belonging to N PDU groups in the received PDU data packets can be counted. If the N third total numbers and N fourth total numbers are equal, it means that all PDU data packets in the N PDU groups have been received, and the number of target PDU data packets in the received PDU data packets is obtained. Judgment result; if N third total numbers and N fourth If one of the total numbers is not equal, it means that the PDU data packets in the N PDU groups have not been received, and the judgment result that there is no target PDU data packet in the received PDU data packets is obtained. In this scenario, the target data packets are all PDU data packets in N PDU groups.
- the timeout of the reordering timer refers to the first timeout of the reordering timer.
- Pre-configuration information is used to determine whether the target PDU data packet, that is, the key PDU data packet, exists in the received protocol data unit PDU data packet. If not, the received PDU data packet is discarded.
- the PDU group to which the key PDU data packet belongs usually still contains PDU data packets that the lower layer has not sent to the PDCP receiving entity. If the lower layer continues to send unsent PDU data packets to the PDCP receiving entity, During the process of sending a PDU data packet, there is a possibility that the PDCP entity receives the target PDU data packet.
- the PDU data packet carries fourth characteristic information
- the fourth characteristic information is In order to indicate the sequence number value of the PDU data packet, when the reordering timer times out, it is judged according to the preconfiguration information whether there is a target PDU data packet in the received PDU data packet, and the judgment result is obtained, including:
- the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer, and the first PDU data packet is the last PDU data packet in the PDU group to which the PDU data packet belongs.
- a PDU packet is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer, and the first PDU data packet is the last PDU data packet in the PDU group to which the PDU data packet belongs.
- the sequence number value of the first PDU data packet can be used to determine whether there is a PDU data packet in the PDU group to which the target PDU data packet belongs that the lower layer has not sent to the PDCP receiving entity. If the sequence number value of the first PDU data packet is greater than or equal to The reordering value indicates that the PDU group to which the target PDU data packet belongs contains PDU data packets that the lower layer has not sent to the PDCP receiving entity; if the sequence number value of the first PDU data packet is less than the reordering value, it indicates that the PDU group to which the target PDU data packet belongs There are no PDU data packets sent by the lower layer to the PDCP receiving entity.
- the PDCP receiving entity will continue to try to receive the target PDU data packet until the PDU group to which the target PDU data packet belongs All PDU packets in the reordering timer t-Reordering times out.
- the method further includes: If the judgment result indicates that the target PDU data packet exists, the received PDU data packet is sent.
- the PDCP receiving entity sends the received PDU data packet to the upper layer.
- the target PDU data packet exists, after sending the received PDU data packet to the upper layer, each remaining PDU data packet in the PDU group described in the target PDU data packet is received. Send one to the upper layer.
- the target PDU data packet exists, after all the PDU data packets in the PDU group to which the target PDU data packet belongs are received, they are all sent to the upper layer.
- scenario two if the target PDU data packet exists, after all the PDU data packets in the first PDU group are received, they are all sent to the upper layer.
- an embodiment of the present disclosure also provides a data packet processing device 200, including:
- the judgment module 201 is used to judge whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information when the reordering timer times out, and obtain the judgment result.
- the target PDU data packet is Data packets necessary for the PDCP receiving device to decode the received PDU data packet;
- the processing module 202 is configured to perform a data packet processing operation when the judgment result indicates that the target PDU data packet does not exist;
- the data packet processing operation includes at least one of the following:
- each PDU data packet in the received PDU data packet carries first characteristic information, and the first characteristic information is used to indicate whether the PDU data packet is a key PDU data packet, and the preconfigured The information includes first indication information, the first indication information being used to indicate that the key PDU data packet is the target PDU data packet;
- the judgment module 201 includes:
- the first judgment unit is configured to judge whether there is a target PDU data packet in the received PDU data packet according to the first characteristic information under the instruction of the first indication information, and obtain the judgment result.
- the processing module 202 includes:
- the target PDU data packet is a data packet necessary for the PDCP receiving device to decode all the received PDU data packets, discard all the received data packets;
- the target PDU data packet is a data packet necessary for the PDCP receiving device to decode part of the received PDU data packet, discard part of the PDU data in the received PDU data packet. packet, the partial PDU data packet must be decoded based on the target PDU data packet.
- the PDU data packet carries second characteristic information
- the second characteristic information is used to indicate whether the PDU data packet belongs to the first PDU group
- the preconfiguration information includes first quantity information and a second indication.
- the first quantity information is the first total number of data packets in the first PDU group
- the second indication information is used to indicate that all data packets in the first PDU group are the Target PDU packet;
- the judgment module 201 includes:
- a first determination unit configured to determine, under the instruction of the second indication information, based on the second characteristic information, a second total number of data packets belonging to the first PDU group in the received PDU data packets;
- a second judgment unit configured to compare the first total number and the second total number to obtain the judgment result
- the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
- each PDU data packet in the received PDU data packet carries third characteristic information
- the third characteristic information is used to indicate the PDU group to which the PDU data packet belongs among the N PDU groups, so
- the preconfiguration information includes second quantity information and third indication information.
- the second quantity information includes N third total numbers corresponding to the N PDU groups.
- One PDU group corresponds to a third total number, N is a positive integer, and the third indication information is used to indicate that the data packets in the N PDU groups are all the target PDU data packets;
- the judgment module 201 includes:
- the second determination unit is configured to determine N fourth total numbers according to the third characteristic information of the received PDU data packet under the instruction of the third indication information, wherein a fourth total number is the sum of the number of data packets belonging to one of the N PDU groups in the received PDU data packets;
- a third judgment unit used to judge whether the N third total numbers and the N fourth total numbers are equal to each other, and obtain the judgment result
- the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
- the PDU data packet carries fourth characteristic information
- the fourth characteristic information is used to indicate the sequence number value of the PDU data packet
- the data packet processing operation includes discarding the received PDU data packet
- the discarding of the received PDU data packet includes:
- the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
- the PDU data packet carries fourth characteristic information
- the fourth characteristic information is used to indicate the sequence number value of the PDU data packet
- the data packet processing operation includes stopping receiving data related to the target PDU data packet.
- PDU data packets, the stopping of receiving PDU data packets related to the target PDU data packets includes:
- the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
- the PDU data packet carries fourth characteristic information, and the judgment module 201 includes:
- the fourth judgment unit is used to judge whether the target exists in the received PDU data packet according to the preconfiguration information when the reordering timer times out and the current reordering value is greater than the sequence number value of the first PDU data packet. PDU data packet to obtain the judgment result;
- the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer, and the first PDU data packet is the last PDU data packet in the PDU group to which the PDU data packet belongs.
- a PDU packet is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer, and the first PDU data packet is the last PDU data packet in the PDU group to which the PDU data packet belongs.
- the data packet processing device 200 further includes:
- the received PDU data packet is sent.
- the data packet processing device 200 provided by the embodiment of the present disclosure can implement various processes that can be implemented in the embodiment of the data packet processing method corresponding to FIG. 2 and achieve the same beneficial effects. To avoid duplication, they will not be described again here.
- the electronic device 300 includes: a processor 301 , a memory 302 and a computer program stored on the memory 302 and executable on the processor. Each component in the electronic device 300 is coupled through a bus system 303 together. It can be understood that the bus system 303 is used to implement connection and communication between these components.
- the processor 301 is used to determine whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information when the reordering timer times out, and obtain the judgment result.
- the target PDU data The packet is a data packet necessary for the PDCP receiving device to decode the received PDU data packet;
- the data packet processing operation includes at least one of the following:
- each PDU data packet in the received PDU data packet carries first characteristic information, and the first characteristic information is used to indicate whether the PDU data packet is a key PDU data packet, and the preconfigured The information includes first indication information, the first indication information being used to indicate that the key PDU data packet is the target PDU data packet;
- Processor 301 is also used for:
- processor 301 is also used to:
- the target PDU data packet is a data packet necessary for the PDCP receiving device to decode all the received PDU data packets, discard all the received data packets;
- the target PDU data packet is a data packet necessary for the PDCP receiving device to decode part of the received PDU data packet, discard part of the PDU data in the received PDU data packet. packet, the partial PDU data packet must be decoded based on the target PDU data packet.
- the PDU data packet carries second characteristic information
- the second characteristic information is used to indicate whether the PDU data packet belongs to the first PDU group
- the preconfiguration information includes first quantity information and a second indication.
- the first quantity information is the first total number of data packets in the first PDU group
- the second indication information is used to indicate that all data packets in the first PDU group are the Target PDU packet;
- Processor 301 is also used for:
- the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
- each PDU data packet in the received PDU data packet carries third characteristic information
- the third characteristic information is used to indicate the PDU group to which the PDU data packet belongs among the N PDU groups, so
- the preconfiguration information includes second quantity information and third indication information.
- the second quantity information includes N third total numbers corresponding to the N PDU groups.
- One PDU group corresponds to a third total number, N is a positive integer, and the third indication information is used to indicate that the data packets in the N PDU groups are all the target PDU data packets;
- Processor 301 is also used for:
- N fourth total numbers are determined according to the third characteristic information of the received PDU data packet, wherein a fourth total number is the received PDU data packet. The sum of the number of data packets belonging to one of the N PDU groups in the data packet;
- the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
- the PDU data packet carries fourth characteristic information, and the fourth characteristic information is used to indicate the sequence number value of the PDU data packet.
- the processor 301 is also configured to:
- the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
- the PDU data packet carries fourth characteristic information, and the fourth characteristic information is used to indicate the sequence number value of the PDU data packet.
- the processor 301 is also configured to:
- the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
- the PDU data packet carries fourth characteristic information, and the fourth characteristic information is used to indicate the sequence number value of the PDU data packet.
- the processor 301 is also configured to:
- the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer, and the first PDU data packet is the last PDU data packet in the PDU group to which the PDU data packet belongs.
- a PDU packet is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer, and the first PDU data packet is the last PDU data packet in the PDU group to which the PDU data packet belongs.
- the processor 301 is further configured to: send the received PDU data packet if the judgment result indicates that the target PDU data packet exists.
- the electronic device 300 provided by the embodiment of the present disclosure can implement various processes that can be implemented in the embodiment of the data packet processing method corresponding to FIG. 2 and achieve the same beneficial effects. To avoid duplication, the details are not repeated here.
- Embodiments of the present disclosure also provide a computer-readable storage medium.
- a computer program is stored on the computer-readable storage medium.
- the computer program is executed by a processor, the various processes of the above-mentioned packet processing method embodiments are implemented and the same can be achieved. To avoid repetition, the technical effects will not be repeated here.
- the computer-readable storage medium is such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Communication Control (AREA)
Abstract
Description
相关申请的交叉引用Cross-references to related applications
本公开主张在2022年7月22日在中国提交的中国专利申请号No.202210866872.0的优先权,其全部内容通过引用包含于此。This disclosure claims priority from Chinese Patent Application No. 202210866872.0 filed in China on July 22, 2022, the entire content of which is incorporated herein by reference.
本公开涉及通信技术领域,尤其涉及一种数据包处理方法、装置、电子设备及可读存储介质。The present disclosure relates to the field of communication technology, and in particular, to a data packet processing method, device, electronic equipment and readable storage medium.
分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)层接收端在因为重排序定时器(t-Reordering)超时,会不再尝试接收对应的PDCP协议数据单元(Protocol Data Unit,PDU)数据包,而其他数据包会正常接收保存,并上传至高层,这种处理方式会接收以及保存无效的数据包,导致通信资源浪费。The packet data convergence protocol (Packet Data Convergence Protocol, PDCP) layer receiving end will no longer try to receive the corresponding PDCP protocol data unit (Protocol Data Unit, PDU) data packet due to the expiration of the reordering timer (t-Reordering), and Other data packets will be received and saved normally and uploaded to the higher layer. This processing method will receive and save invalid data packets, resulting in a waste of communication resources.
发明内容Contents of the invention
本公开实施例提供一种数据包处理方法、装置、电子设备及可读存储介质,解决了如何避免进行不必要的数据包处理操作的问题。Embodiments of the present disclosure provide a data packet processing method, device, electronic device, and readable storage medium, which solve the problem of how to avoid unnecessary data packet processing operations.
为达到上述目的,第一方面,本公开实施例提供一种数据包处理方法,包括:To achieve the above objectives, in a first aspect, embodiments of the present disclosure provide a data packet processing method, including:
在重排序定时器超时的情况下,根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包,获得判断结果,所述目标PDU数据包为所述PDCP接收设备对所述已接收的PDU数据包进行解码所必须的数据包;When the reordering timer times out, determine whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information, and obtain the judgment result. The target PDU data packet is the pair of the PDCP receiving device. The data packets necessary for decoding the received PDU data packets;
在所述判断结果指示不存在所述目标PDU数据包的情况下,进行数据包处理操作;If the judgment result indicates that the target PDU data packet does not exist, perform a data packet processing operation;
其中,所述数据包处理操作包括以下至少一项: Wherein, the data packet processing operation includes at least one of the following:
丢弃所述已接收的PDU数据包;Discard the received PDU data packet;
停止接收与所述目标PDU数据包相关的PDU数据包。Stop receiving PDU data packets related to the target PDU data packet.
第二方面,本公开实施例提供一种数据包处理装置,包括:In a second aspect, an embodiment of the present disclosure provides a data packet processing device, including:
判断模块,用于在重排序定时器超时的情况下,根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包,获得判断结果,所述目标PDU数据包为所述PDCP接收设备对所述已接收的PDU数据包进行解码所必须的数据包;The judgment module is used to judge whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information when the reordering timer times out, and obtain a judgment result. The target PDU data packet is the target PDU data packet. The data packets necessary for the PDCP receiving device to decode the received PDU data packet;
处理模块,用于在所述判断结果指示不存在所述目标PDU数据包的情况下,进行数据包处理操作;A processing module, configured to perform data packet processing operations when the judgment result indicates that the target PDU data packet does not exist;
其中,所述数据包处理操作包括以下至少一项:Wherein, the data packet processing operation includes at least one of the following:
丢弃所述已接收的PDU数据包;Discard the received PDU data packet;
停止接收与所述目标PDU数据包相关的PDU数据包。Stop receiving PDU data packets related to the target PDU data packet.
第三方面,本公开实施例提供一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的数据包处理方法中的步骤。In a third aspect, embodiments of the present disclosure provide an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor Implement the steps in the data packet processing method described in the first aspect.
第四方面,本公开实施例提供一种可读存储介质,所述可读存储介质上存储有程序,所述程序被处理器执行时实现如第一方面所述的数据包处理方法中的步骤。In a fourth aspect, embodiments of the present disclosure provide a readable storage medium, a program is stored on the readable storage medium, and when the program is executed by a processor, the steps in the data packet processing method as described in the first aspect are implemented. .
本公开实施例中,通过在重排序定时器超时的情况下,根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包,获得判断结果,目标PDU数据包为PDCP接收设备对已接收的PDU数据包进行解码所必须的数据包,在判断结果指示不存在目标PDU数据包的情况下,丢弃已接收的PDU数据包,和/或停止接收与所述目标PDU数据包相关的PDU数据包。这样,在重要性高的目标PDU数据包(比如I帧/I切片)已经丢失时,重要性低的已接收的PDU数据包(比如P帧/P切片)将被丢弃/不再接收,从而避免了对数据包进行不必要的处理操作,节约了通信资源。In the embodiment of the present disclosure, when the reordering timer times out, the judgment result is obtained by judging whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information. The target PDU data packet is PDCP. The receiving device decodes the data packets necessary for the received PDU data packet. If the judgment result indicates that there is no target PDU data packet, discard the received PDU data packet, and/or stop receiving data related to the target PDU data packet. Packet related PDU data packet. In this way, when the target PDU data packet of high importance (such as I frame/I slice) has been lost, the received PDU data packet of low importance (such as P frame/P slice) will be discarded/no longer received, thus This avoids unnecessary processing operations on data packets and saves communication resources.
为了更清楚的说明本公开实施例中的技术方案,现对说明书附图作如下 说明,显而易见地,下述附图仅是本公开的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据所列附图获得其他附图。In order to explain the technical solutions in the embodiments of the present disclosure more clearly, the accompanying drawings in the description are now as follows: Description: Obviously, the following drawings are only embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on the listed drawings without exerting creative efforts.
图1是本公开实施例可应用的系统的结构图;Figure 1 is a structural diagram of a system to which embodiments of the present disclosure are applicable;
图2是本公开实施例提供的数据包处理方法的流程示意图之一;Figure 2 is one of the schematic flow diagrams of the data packet processing method provided by an embodiment of the present disclosure;
图3是本公开实施例提供的数据包处理方法的流程示意图之二;Figure 3 is a second schematic flowchart of a data packet processing method provided by an embodiment of the present disclosure;
图4是本公开实施例提供的数据包处理方法的流程示意图之三;Figure 4 is a third schematic flowchart of the data packet processing method provided by an embodiment of the present disclosure;
图5是本公开实施例提供的数据包处理装置的结构示意图;Figure 5 is a schematic structural diagram of a data packet processing device provided by an embodiment of the present disclosure;
图6是本公开实施例提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本公开一部分实施例,而不是全部的实施例。在本公开中的实施例的基础上,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, not all of them. On the basis of the embodiments in this disclosure, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of this disclosure.
参见图1,图1是本公开实施例可应用的系统的结构图,如图1所示,包括发送设备11和接收设备12,发送设备11和接收设备12之间可以进行通信。接收设备12为分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)接收设备(也可称为PDCP接收实体),发送设备11可以为PDCP接收实体的下层(比如无线链路控制层(Radio Link Control,RLC)。Referring to Figure 1, Figure 1 is a structural diagram of a system to which embodiments of the present disclosure are applicable. As shown in Figure 1, it includes a sending device 11 and a receiving device 12. The sending device 11 and the receiving device 12 can communicate with each other. The receiving device 12 is a Packet Data Convergence Protocol (Packet Data Convergence Protocol, PDCP) receiving device (also called a PDCP receiving entity), and the sending device 11 can be a lower layer of the PDCP receiving entity (such as a Radio Link Control layer, RLC).
在新空口(New Radio,NR)中,由于RLC层不会对数据包进行重排序,因此PDCP接收实体从RLC层收到的PDU数据包可能是乱序的,如果对应的业务要求数据包按序传输,则需要先进行重排序。乱序到达的PDU数据包会先保存在PDCP接收设备12的缓存中,可将在某个时间点之前都已成功接收到的PDU数据包递送给上层后,再将该时间点之后接收到的PDU数据包递送给上层,对于PDCP接收实体而言,上层指无线资源控制层(Radio Resource Control,RRC)。In the New Radio (NR), since the RLC layer does not reorder data packets, the PDU data packets received by the PDCP receiving entity from the RLC layer may be out of order. If the corresponding service requires the data packets to be In order to transfer, reordering needs to be performed first. PDU data packets arriving out of order will first be stored in the cache of the PDCP receiving device 12. PDU data packets that have been successfully received before a certain time point can be delivered to the upper layer, and then the PDU data packets received after this time point can be delivered to the upper layer. The PDU data packet is delivered to the upper layer. For the PDCP receiving entity, the upper layer refers to the Radio Resource Control layer (Radio Resource Control, RRC).
PDCP接收实体需要检测下层是否丢失了某个PDU数据包,并避免过度的重排序时延。简单地说,PDCP接收实体只会等待还未收到的PDU数据包 一段时间,该段时间内未接收到该PDU数据包,则不再继续等待。重排序定时器t-Reordering决定了在该段时间的时间长度。每个PDCP接收实体只有一个重排序定时器。如果在重排序定时器指定的时间内没有收到该PDU数据包,则PDCP接收实体认为该PDU数据包已经丢失,且PDCP接收实体不会再去尝试接收已经丢失的PDU数据包。也就是说,PDCP层不会尝试重传已丢失的PDU数据包。The PDCP receiving entity needs to detect whether the lower layer has lost a certain PDU data packet and avoid excessive reordering delay. Simply put, the PDCP receiving entity will only wait for PDU packets that have not yet been received. After a period of time, if the PDU data packet is not received within this period of time, it will no longer wait. The reordering timer t-Reordering determines the length of this period. Each PDCP receiving entity has only one reordering timer. If the PDU data packet is not received within the time specified by the reordering timer, the PDCP receiving entity considers that the PDU data packet has been lost, and the PDCP receiving entity will no longer try to receive the lost PDU data packet. That is, the PDCP layer will not attempt to retransmit lost PDU packets.
对视频编码时,主要有基于图片组(Group Of Pictures,GOP)和基于切片这两种方式。基于GOP对视频进行编码时,一个GOP中,I帧的重要性高于P帧的重要性,且P帧的解码依赖于I帧。若重要性高的I帧已经丢失,那么重要性低的P帧也应在接收端被丢弃/不再接收。基于切片组对视频进行编码时,一个切片组中,I切片的重要性高于P切片的重要性,且P切片的解码依赖于I切片。若重要性高的I切片已经丢失,那么重要性低的P切片也应在接收端被丢弃/不再接收。When encoding video, there are two main methods: group of pictures (GOP) and slice-based. When encoding video based on GOP, in a GOP, the importance of I frame is higher than that of P frame, and the decoding of P frame depends on I frame. If the high-importance I frame has been lost, the low-importance P frame should also be discarded/no longer received at the receiving end. When encoding a video based on a slice group, in a slice group, the importance of the I slice is higher than that of the P slice, and the decoding of the P slice depends on the I slice. If the high-importance I slice has been lost, the low-importance P slice should also be discarded/no longer received at the receiving end.
但实际情况中,分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)层接收端在因为重排序定时器(t-Reordering)超时而不再尝试接收某个PDCP协议数据单元(Protocol Data Unit,PDU)时,并未考虑到不同的PDCP PDU的重要性不同以及不同的PDCP PDU之间的相关性。可能会导致重要性高的I帧/I切片已经丢失并不再接收时,重要性低的P帧/P切片未被丢弃,并仍将其向上层传输,或者仍在接收重要性低的P帧/P切片。重要性低的P帧/P切片未被丢弃,并仍将其向上层传输,或者仍在接收重要性低的P帧/P切片都是不必要的数据包处理操作,会导致通信资源浪费。But in actual situations, the Packet Data Convergence Protocol (PDCP) layer receiving end no longer attempts to receive a certain PDCP Protocol Data Unit (Protocol Data Unit, PDU) because the reordering timer (t-Reordering) times out. At this time, the different importance of different PDCP PDUs and the correlation between different PDCP PDUs were not taken into account. It may cause that when I frames/I slices of high importance have been lost and are no longer received, P frames/P slices of low importance are not discarded and are still transmitted to the upper layer, or P frames of low importance are still received. Frame/P slice. P frames/P slices of low importance are not discarded and are still transmitted to the upper layer, or P frames/P slices of low importance are still received, which are unnecessary packet processing operations and will lead to a waste of communication resources.
以下对本公开实施例提供的数据包处理方法进行说明。The following describes the data packet processing method provided by the embodiment of the present disclosure.
参见图2,图2是本公开实施例提供的数据包处理方法的流程示意图之一。图2所示的数据包处理方法可以由PDCP接收设备12执行。PDCP接收设备12可以是PDCP接收实体。Referring to Figure 2, Figure 2 is one of the schematic flow charts of a data packet processing method provided by an embodiment of the present disclosure. The data packet processing method shown in FIG. 2 may be executed by the PDCP receiving device 12. The PDCP receiving device 12 may be a PDCP receiving entity.
如图2所示,数据包处理方法可以包括以下步骤:As shown in Figure 2, the packet processing method can include the following steps:
步骤101,在重排序定时器超时的情况下,根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包,获得判断结果,所述目标PDU数据包为所述PDCP接收设备对所述已接收的PDU数据包进 行解码所必须的数据包。Step 101: When the reordering timer times out, determine whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information, and obtain the judgment result. The target PDU data packet is the PDCP The receiving device processes the received PDU data packet. Packets necessary for line decoding.
具体实现时,一个视频帧(P帧/I帧)对应一个PDU组,同理,一个切片(I切片/P切片)对应一个PDU组,一个PDU组中包括多个PDU数据包。PDU数据包中携带用于指示PDU数据包顺序的顺序标识,顺序标识可以为计数(Count)值,也可以为序列号(Sequence Number,SN)。In specific implementation, a video frame (P frame/I frame) corresponds to a PDU group. Similarly, a slice (I slice/P slice) corresponds to a PDU group, and a PDU group includes multiple PDU data packets. The PDU data packet carries a sequence identifier used to indicate the sequence of the PDU data packet. The sequence identifier can be a count (Count) value or a sequence number (Sequence Number, SN).
PDCP接收设备向上层发送PDU数据包时按顺序标识递增的顺序发送,但PDCP接收设备从下层接收的PDU数据包可能是乱序的。当PDCP接收设备从下层接收到乱序排列的PDU数据包时,启动重排序定时器,重排序定时器开始计时。When the PDCP receiving device sends PDU data packets to the upper layer, they are sent in the order of increasing sequence identifiers, but the PDU data packets received by the PDCP receiving device from the lower layer may be out of order. When the PDCP receiving device receives out-of-order PDU data packets from the lower layer, it starts the reordering timer and the reordering timer starts counting.
举例而言,以PDU数据包中携带Count值为例进行说明,启动重排序定时器至少包括以下两种情形。For example, taking the Count value carried in the PDU data packet as an example, starting the reordering timer includes at least the following two situations.
情形一:PDCP接收设备当前接收的PDU数据包的Count值,小于已接收到的PDU数据包的中的最大Count值,则启动重排序定时器。Scenario 1: If the Count value of the PDU data packet currently received by the PDCP receiving device is less than the maximum Count value of the received PDU data packet, the reordering timer is started.
示例性地,若已接收到Count值为1、2、4、5的PDU数据包,当前接收到Count值为3的PDU数据包,则启动重排序定时器。重排序定时器计时结束即重排序定时器超时,根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包,获得判断结果。For example, if PDU data packets with a Count value of 1, 2, 4, and 5 have been received, and a PDU data packet with a Count value of 3 is currently received, the reordering timer is started. When the reordering timer expires, that is, the reordering timer times out, based on the preconfigured information, it is judged whether there is a target PDU data packet in the received protocol data unit PDU data packet, and the judgment result is obtained.
情形二:PDCP接收设备当前接收的PDU数据包的Count值,大于已接收到的PDU数据包的中的最大Count值+1后得到的值,则启动重排序定时器。Scenario 2: If the Count value of the PDU data packet currently received by the PDCP receiving device is greater than the maximum Count value of the received PDU data packet + 1, the reordering timer is started.
示例性地,若已接收到Count值为1、2、3、4、5、6、7的PDU数据包,当前接收到Count值为10的PDU数据包,则启动重排序定时器。重排序定时器计时结束即重排序定时器超时,根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包,获得判断结果。For example, if PDU data packets with a Count value of 1, 2, 3, 4, 5, 6, and 7 have been received, and a PDU data packet with a Count value of 10 is currently received, the reordering timer is started. When the reordering timer expires, that is, the reordering timer times out, based on the preconfigured information, it is judged whether there is a target PDU data packet in the received protocol data unit PDU data packet, and the judgment result is obtained.
预配置信息为预先配置在PDCP接收设备的信息,用于指示已接收的PDU数据包中哪些为目标PDU数据包。The preconfiguration information is information preconfigured on the PDCP receiving device and is used to indicate which of the received PDU data packets are target PDU data packets.
重排序定时器启动并计时的过程中,PDCP接收设备仍处于接收PDU数据包的状态,在该过程中PDCP接收设备仍可能接收到目标PDU数据包。While the reordering timer is started and counting, the PDCP receiving device is still in the state of receiving PDU data packets. During this process, the PDCP receiving device may still receive the target PDU data packet.
步骤102,在所述判断结果指示不存在所述目标PDU数据包的情况下, 进行数据包处理操作;Step 102: If the judgment result indicates that the target PDU data packet does not exist, Perform packet processing operations;
其中,所述数据包处理操作包括以下至少一项:Wherein, the data packet processing operation includes at least one of the following:
丢弃所述已接收的PDU数据包;Discard the received PDU data packet;
停止接收与所述目标PDU数据包相关的PDU数据包。Stop receiving PDU data packets related to the target PDU data packet.
具体实现时,具体的丢弃方式根据实际情况确定,可以丢弃已接收的全部PDU数据包,也可以丢弃已接收的部分PDU数据包。During specific implementation, the specific discarding method is determined according to the actual situation. All received PDU data packets can be discarded, or part of the received PDU data packets can be discarded.
在本公开一可选的实施例中,所述PDU数据包携带第四特征信息,所述第四特征信息用于指示所述PDU数据包的序号值,所述数据包处理操作包括丢弃所述已接收的PDU数据包,所述丢弃所述已接收的PDU数据包包括:In an optional embodiment of the present disclosure, the PDU data packet carries fourth characteristic information, the fourth characteristic information is used to indicate the sequence number value of the PDU data packet, and the data packet processing operation includes discarding the The PDU data packet has been received, and the discarding of the PDU data packet that has been received includes:
丢弃已接收的PDU数据包中,序号值小于重排序值的PDU数据包。其中,所述重排序值为当前触发所述重排序定时器的PDU数据包的下一个PDU数据包的序号值。Discard the PDU data packets whose sequence number is smaller than the reordering value among the received PDU data packets. Wherein, the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
进一步地,在所述判断结果指示不存在所述目标PDU数据包的情况下,PDCP接收设备停止接收目标PDU数据包所在的PDU组中的还未被接收的PDU数据包。也就是说,在已接收的PDU数据包不存在所述目标PDU数据包的情况下,目标PDU数据包所在的PDU组中已被PDCP接收设备接收的PDU数据包将被丢弃,且该PDU组中还未接收到的PDU数据包也将不再尝试接收。具体示意如图3所示。Further, if the judgment result indicates that the target PDU data packet does not exist, the PDCP receiving device stops receiving PDU data packets that have not yet been received in the PDU group in which the target PDU data packet is located. That is to say, when the target PDU data packet does not exist in the received PDU data packet, the PDU data packet in the PDU group where the target PDU data packet is located and has been received by the PDCP receiving device will be discarded, and the PDU data packet will be discarded. PDU packets that have not yet been received will no longer be attempted to be received. The specific diagram is shown in Figure 3.
在本公开一可选的实施例中,所述PDU数据包携带第四特征信息,所述第四特征信息用于指示所述PDU数据包的序号值,所述数据包处理操作包括停止接收与所述目标PDU数据包相关的PDU数据包,所述停止接收与所述目标PDU数据包相关的PDU数据包,包括:In an optional embodiment of the present disclosure, the PDU data packet carries fourth characteristic information, the fourth characteristic information is used to indicate the sequence number value of the PDU data packet, and the data packet processing operation includes stopping receiving and The PDU data packet related to the target PDU data packet, and the stopping of receiving the PDU data packet related to the target PDU data packet include:
停止接收序号值大于或等于重排序值的PDU数据包。其中,所述重排序值为当前触发所述重排序定时器的PDU数据包的下一个PDU数据包的序号值。Stop receiving PDU data packets with sequence numbers greater than or equal to the reordering value. Wherein, the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
本公开实施例中,通过在重排序定时器超时的情况下,根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包,获得判断结果,目标PDU数据包为PDCP接收设备对已接收的PDU数据包进行解码所必须的数据包,在判断结果指示不存在目标PDU数据包的情况下,丢 弃已接收的PDU数据包/不再接收PDU数据包。这样,在重要性高的目标PDU数据包(比如I帧/I切片)已经丢失时,重要性低的已接收的PDU数据包(比如P帧/P切片)将被丢弃/重要性低的未被接收的PDU数据包也不再被接收,从而避免了对数据包进行不必要的处理操作,节约了通信资源。In the embodiment of the present disclosure, when the reordering timer times out, the judgment result is obtained by judging whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information. The target PDU data packet is PDCP. The data packet necessary for the receiving device to decode the received PDU data packet is lost if the judgment result indicates that the target PDU data packet does not exist. Discard received PDU data packets/no longer receive PDU data packets. In this way, when the target PDU data packet of high importance (such as I frame/I slice) has been lost, the received PDU data packet of low importance (such as P frame/P slice) will be discarded/the unseen PDU data packet of low importance will be discarded. The received PDU data packet is no longer received, thus avoiding unnecessary processing operations on the data packet and saving communication resources.
本公开实施例提供的方法至少可以应用在如下三种场景。The method provided by the embodiment of the present disclosure can be applied in at least the following three scenarios.
场景一:一个PDU组中有一个关键PDU数据包,这个关键PDU数据包被接收到,即可对该PDU组进行解码。即是说,目标数据包为PDU组中的某个关键PDU数据包。Scenario 1: There is a key PDU data packet in a PDU group. When this key PDU data packet is received, the PDU group can be decoded. That is to say, the target data packet is a key PDU data packet in the PDU group.
场景二:一个PDU组中有M个PDU数据包,M为正整数,M个PDU数据包均被接收到,才可对该PDU组进行解码。即是说,目标数据包为PDU组中的全部PDU数据包。Scenario 2: There are M PDU data packets in a PDU group. M is a positive integer. Only when all M PDU data packets are received can the PDU group be decoded. That is to say, the target data packets are all PDU data packets in the PDU group.
场景三:一个视频对应P个PDU组,P为正整数,P个PDU组中共有Q个PDU数据包,Q为正整数,Q个PDU数据包均被接收到,才可对该PDU组进行解码。即是说,目标数据包为P个PDU组中的全部PDU数据包。Scenario 3: One video corresponds to P PDU groups. P is a positive integer. There are Q PDU data packets in the P PDU groups. Q is a positive integer. Only when all Q PDU data packets are received can the PDU group be processed. decoding. That is to say, the target data packets are all PDU data packets in P PDU groups.
在场景一中,所述已接收的PDU数据包中的每个PDU数据包携带第一特征信息,所述第一特征信息用于指示所述PDU数据包是否为关键PDU数据包,所述预配置信息包括第一指示信息,所述第一指示信息用于指示关键PDU数据包为所述目标PDU数据包;In scenario one, each PDU data packet in the received PDU data packet carries first characteristic information, and the first characteristic information is used to indicate whether the PDU data packet is a critical PDU data packet. The configuration information includes first indication information, the first indication information is used to indicate that the key PDU data packet is the target PDU data packet;
所述根据预配置信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得判断结果,包括:Determining whether there is a target PDU data packet in the received PDU data packet according to the preconfigured information, and obtaining the judgment result, including:
在所述第一指示信息的指示下,根据所述第一特征信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得所述判断结果。Under the instruction of the first indication information, it is judged according to the first characteristic information whether there is a target PDU data packet in the received PDU data packet, and the judgment result is obtained.
具体实现时,第一特征信息可以为一个标识符号,比如标识符号为1代表该PDU数据包为关键PDU数据包,该PDU数据包所属的PDU组中的其他PDU数据包需依赖该PDU数据包进行解码。标识符号为0代表该PDU数据包为非关键PDU数据包。在实际应用中,关键PDU数据包为I帧/I切片对应的PDU数据包,非关键PDU数据包为P帧/P切片对应的PDU数据包。During specific implementation, the first feature information may be an identification number. For example, the identification number is 1, which means that the PDU data packet is a key PDU data packet. Other PDU data packets in the PDU group to which the PDU data packet belongs must rely on this PDU data packet. to decode. An identifier of 0 indicates that the PDU data packet is a non-critical PDU data packet. In actual applications, key PDU data packets are PDU data packets corresponding to I frames/I slices, and non-critical PDU data packets are PDU data packets corresponding to P frames/P slices.
PDCP接收设备可依次查找已接收的PDU数据包中是否存在标识符号为1的PDU数据包,若存在标识符号为1的PDU数据包,获得已接收的PDU 数据包中存在目标PDU数据包的判断结果;若不存在标识符号为1的PDU数据包,获得已接收的PDU数据包中不存在目标PDU数据包的判断结果。The PDCP receiving device can sequentially search whether there is a PDU data packet with an identification number of 1 in the received PDU data packet. If there is a PDU data packet with an identification number of 1, obtain the received PDU data packet. The judgment result is that the target PDU data packet exists in the data packet; if there is no PDU data packet with an identifier of 1, the judgment result that the target PDU data packet does not exist in the received PDU data packet is obtained.
场景一中,通常而言,若丢失目标PDU数据包,那么已接收的PDU数据包均不可被解码,但在某些极为特殊的情形下,即使丢失目标PDU数据包,也可对已接收的PDU数据包中,顺序标识小于目标PDU数据包的顺序标识的PDU数据包进行解码。因此,在本公开一可选的实施例中,所述丢弃所述已接收的PDU数据包,包括:In scenario one, generally speaking, if the target PDU data packet is lost, then the received PDU data packet cannot be decoded. However, in some very special circumstances, even if the target PDU data packet is lost, the received PDU data packet can still be decoded. In the PDU data packet, the PDU data packet whose sequence ID is smaller than the sequence ID of the target PDU data packet is decoded. Therefore, in an optional embodiment of the present disclosure, discarding the received PDU data packet includes:
在所述目标PDU数据包为所述PDCP接收设备对全部所述已接收的PDU数据包进行解码所必须的数据包的情况下,丢弃全部所述已接收的数据包;In the case where the target PDU data packet is a data packet necessary for the PDCP receiving device to decode all the received PDU data packets, discard all the received data packets;
或者,在所述目标PDU数据包为所述PDCP接收设备对部分所述已接收的PDU数据包进行解码所必须的数据包的情况下,丢弃所述已接收的PDU数据包中的部分PDU数据包,所述部分PDU数据包必须基于所述目标PDU数据包进行解码。其中,被丢弃的部分所述已接收的PDU数据包指已接收的PDU数据包中,顺序标识大于目标PDU数据包的顺序标识的PDU数据包。Or, when the target PDU data packet is a data packet necessary for the PDCP receiving device to decode part of the received PDU data packet, discard part of the PDU data in the received PDU data packet. packet, the partial PDU data packet must be decoded based on the target PDU data packet. The discarded portion of the received PDU data packets refers to the PDU data packets among the received PDU data packets whose sequence identifier is greater than the sequence identifier of the target PDU data packet.
在场景二中,所述PDU数据包携带第二特征信息,所述第二特征信息用于指示所述PDU数据包是否属于第一PDU组,所述预配置信息包括第一数量信息和第二指示信息,所述第一数量信息为所述第一PDU组中的数据包的第一总个数,所述第二指示信息用于指示所述第一PDU组中的所有数据包均为所述目标PDU数据包;In scenario two, the PDU data packet carries second characteristic information. The second characteristic information is used to indicate whether the PDU data packet belongs to the first PDU group. The preconfiguration information includes first quantity information and second Indication information, the first quantity information is the first total number of data packets in the first PDU group, and the second indication information is used to indicate that all data packets in the first PDU group are all Describe the target PDU data packet;
所述根据预配置信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得判断结果,包括:Determining whether there is a target PDU data packet in the received PDU data packet according to the preconfigured information, and obtaining the judgment result, including:
在所述第二指示信息的指示下,根据所述第二特征信息,确定已接收的PDU数据包中属于第一PDU组的数据包的第二总个数;Under the instruction of the second indication information, determine the second total number of data packets belonging to the first PDU group in the received PDU data packets according to the second characteristic information;
比较所述第一总个数和所述第二总个数,获得所述判断结果;Compare the first total number and the second total number to obtain the judgment result;
其中,在所述第一总个数和所述第二总个数相等的情况下,所述判断结果指示已接收的PDU数据包中存在目标PDU数据包。Wherein, when the first total number and the second total number are equal, the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
具体实现时,第二特征信息可以为数字标识,比如用数字标识1表示PDU数据包属于第一PDU组,用数字标识2表示PDU数据包属于第二PDU组,以此类推。 During specific implementation, the second characteristic information may be a digital identifier. For example, a digital identifier of 1 indicates that the PDU data packet belongs to the first PDU group, a digital identifier of 2 indicates that the PDU data packet belongs to the second PDU group, and so on.
根据第二特征信息,可以统计已接收的PDU数据包中属于第一PDU组的数据包的第二总个数。在第一总个数和第二总个数相等的情况下,说明第一PDU组中的全部PDU数据包均已被接收,获得已接收的PDU数据包中存在目标PDU数据包的判断结果;在第一总个数大于第二总个数的情况下,说明第一PDU组中的存在部分PDU数据包未被接收,获得已接收的PDU数据包中不存在目标PDU数据包的判断结果。在这种场景中,目标PDU数据包为第一PDU组中的全部PDU数据包。According to the second characteristic information, a second total number of data packets belonging to the first PDU group in the received PDU data packets can be counted. When the first total number and the second total number are equal, it means that all PDU data packets in the first PDU group have been received, and the judgment result that there is a target PDU data packet in the received PDU data packets is obtained; If the first total number is greater than the second total number, it means that some PDU data packets in the first PDU group have not been received, and a judgment result is obtained that there is no target PDU data packet in the received PDU data packets. In this scenario, the target PDU data packets are all PDU data packets in the first PDU group.
在场景三中,所述已接收的PDU数据包中每个PDU数据包携带第三特征信息,所述第三特征信息用于指示所述PDU数据包在N个PDU组中所属的PDU组,所述预配置信息包括第二数量信息和第三指示信息,所述第二数量信息包括所述N个PDU组对应的N个第三总个数,一PDU组对应一第三总个数,N为正整数,所述第三指示信息用于指示所述N个PDU组中的数据包均为所述目标PDU数据包;In scenario three, each PDU data packet in the received PDU data packet carries third characteristic information, and the third characteristic information is used to indicate the PDU group to which the PDU data packet belongs among the N PDU groups, The preconfiguration information includes second quantity information and third indication information. The second quantity information includes N third total numbers corresponding to the N PDU groups, and one PDU group corresponds to a third total number, N is a positive integer, and the third indication information is used to indicate that the data packets in the N PDU groups are all the target PDU data packets;
所述根据预配置信息,判断所述已接收的PDU数据包中是否存在目标PDU数据包,获得判断结果,包括:Determining whether there is a target PDU data packet in the received PDU data packet according to the preconfiguration information, and obtaining the judgment result, including:
在所述第三指示信息的指示下,根据所述已接收的PDU数据包的第三特征信息,确定N个第四总个数,其中,一第四总个数为所述已接收的PDU数据包中属于所述N个PDU组中一PDU组的数据包的个数之和;Under the instruction of the third indication information, N fourth total numbers are determined according to the third characteristic information of the received PDU data packet, wherein a fourth total number is the received PDU data packet. The sum of the number of data packets belonging to one of the N PDU groups in the data packet;
判断所述N个第三总个数和所述N个第四总个数是否均对应相等,获得所述判断结果;Determine whether the N third total numbers and the N fourth total numbers are equal to each other, and obtain the judgment result;
其中,在所述N个第三总个数和所述N个第四总个数对应相等的情况下,所述判断结果指示已接收的PDU数据包中存在目标PDU数据包。Wherein, when the N third total numbers and the N fourth total numbers are correspondingly equal, the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
具体实现时,第三特征信息也可以为数字标识,比如用数字标识1表示PDU数据包属于第一PDU组,用数字标识2表示PDU数据包属于第二PDU组,以此类推,用数字标识N表示PDU数据包属于第N PDU组。During specific implementation, the third feature information may also be a digital identifier. For example, a digital identifier of 1 indicates that the PDU data packet belongs to the first PDU group, a digital identifier of 2 indicates that the PDU data packet belongs to the second PDU group, and so on. N indicates that the PDU data packet belongs to the Nth PDU group.
根据第三特征信息,可以统计已接收的PDU数据包中分别属于N个PDU组的数据包的N个第四总个数。若N个第三总个数和N个第四总个数均对应相等,说明N个PDU组中的全部PDU数据包均已被接收,获得已接收的PDU数据包中存在目标PDU数据包的判断结果;若N个第三总个数和N个第四 总个数中有一个不对应相等,说明N个PDU组中的存在PDU数据包未被接收,获得已接收的PDU数据包中不存在目标PDU数据包的判断结果。在该场景中,目标数据包为N个PDU组中的全部PDU数据包。According to the third characteristic information, N fourth total numbers of data packets belonging to N PDU groups in the received PDU data packets can be counted. If the N third total numbers and N fourth total numbers are equal, it means that all PDU data packets in the N PDU groups have been received, and the number of target PDU data packets in the received PDU data packets is obtained. Judgment result; if N third total numbers and N fourth If one of the total numbers is not equal, it means that the PDU data packets in the N PDU groups have not been received, and the judgment result that there is no target PDU data packet in the received PDU data packets is obtained. In this scenario, the target data packets are all PDU data packets in N PDU groups.
参见图4,以场景一为例(不限于场景一,场景二和场景三同理),在前述申请实施例中,重排序定时器超时指重排序定时器第一次超时,此时即刻根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包即关键PDU数据包,若不存在,则丢弃已接收的PDU数据包。Referring to Figure 4, taking scenario one as an example (it is not limited to scenario one, the same applies to scenario two and scenario three). In the aforementioned application embodiment, the timeout of the reordering timer refers to the first timeout of the reordering timer. At this time, according to Pre-configuration information is used to determine whether the target PDU data packet, that is, the key PDU data packet, exists in the received protocol data unit PDU data packet. If not, the received PDU data packet is discarded.
但在实际应用中,在重排序定时器第一次超时时,关键PDU数据包所属的PDU组中通常还有下层未向PDCP接收实体发送的PDU数据包,若下层继续向PDCP接收实体发送未发送的PDU数据包,在该过程中,存在PDCP实体接收到目标PDU数据包的可能。因此,为提高接收到目标PDU数据包的概率,增强本公开实施例提供的数据包处理方法的可靠性,可选地,所述PDU数据包携带第四特征信息,所述第四特征信息用于指示所述PDU数据包的序号值,所述在重排序定时器超时的情况下,根据预配置信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得判断结果,包括:However, in actual applications, when the reordering timer times out for the first time, the PDU group to which the key PDU data packet belongs usually still contains PDU data packets that the lower layer has not sent to the PDCP receiving entity. If the lower layer continues to send unsent PDU data packets to the PDCP receiving entity, During the process of sending a PDU data packet, there is a possibility that the PDCP entity receives the target PDU data packet. Therefore, in order to improve the probability of receiving the target PDU data packet and enhance the reliability of the data packet processing method provided by the embodiment of the present disclosure, optionally, the PDU data packet carries fourth characteristic information, and the fourth characteristic information is In order to indicate the sequence number value of the PDU data packet, when the reordering timer times out, it is judged according to the preconfiguration information whether there is a target PDU data packet in the received PDU data packet, and the judgment result is obtained, including:
在所述重排序定时器超时,且当前重排序值大于第一PDU数据包的序号值的情况下,根据预配置信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得判断结果;When the reordering timer times out and the current reordering value is greater than the sequence number value of the first PDU data packet, determine whether the target PDU data packet exists in the received PDU data packet according to the preconfiguration information, and obtain the judgment result. ;
其中,所述重排序值为当前触发所述重排序定时器的PDU数据包的下一个PDU数据包的序号值,所述第一PDU数据包为所述PDU数据包所属的PDU组中的最后一个PDU数据包。Wherein, the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer, and the first PDU data packet is the last PDU data packet in the PDU group to which the PDU data packet belongs. A PDU packet.
具体实现时,可以通过第一PDU数据包的序号值确定目标PDU数据包所属的PDU组中是否存在下层未向PDCP接收实体发送的PDU数据包,若第一PDU数据包的序号值大于或等于重排序值,说明目标PDU数据包所属的PDU组中存在下层未向PDCP接收实体发送的PDU数据包;若第一PDU数据包的序号值小于重排序值,说明目标PDU数据包所属的PDU组中不存在下层未向PDCP接收实体发送的PDU数据包。During specific implementation, the sequence number value of the first PDU data packet can be used to determine whether there is a PDU data packet in the PDU group to which the target PDU data packet belongs that the lower layer has not sent to the PDCP receiving entity. If the sequence number value of the first PDU data packet is greater than or equal to The reordering value indicates that the PDU group to which the target PDU data packet belongs contains PDU data packets that the lower layer has not sent to the PDCP receiving entity; if the sequence number value of the first PDU data packet is less than the reordering value, it indicates that the PDU group to which the target PDU data packet belongs There are no PDU data packets sent by the lower layer to the PDCP receiving entity.
即是说,若第一PDU数据包的序号值大于或等于重排序值,PDCP接收实体会继续尝试接收目标PDU数据包,直到目标PDU数据包所属的PDU组 中的所有PDU数据包都重排序定时器t-Reordering超时为止。That is to say, if the sequence number value of the first PDU data packet is greater than or equal to the reordering value, the PDCP receiving entity will continue to try to receive the target PDU data packet until the PDU group to which the target PDU data packet belongs All PDU packets in the reordering timer t-Reordering times out.
可选地,所述在重排序定时器超时的情况下,根据预配置信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得判断结果之后,所述方法还包括:在所述判断结果指示存在所述目标PDU数据包的情况下,发送所述已接收的PDU数据包。Optionally, when the reordering timer times out, determine whether the target PDU data packet exists in the received PDU data packet according to the preconfiguration information. After obtaining the judgment result, the method further includes: If the judgment result indicates that the target PDU data packet exists, the received PDU data packet is sent.
具体实现时,在判断结果指示存在所述目标PDU数据包的情况下,PDCP接收实体向上层发送已接收的PDU数据包。在场景一中,在存在所述目标PDU数据包的情况下,可以将已接收的PDU数据包向上层发送之后,将目标PDU数据包所述的PDU组中余下的PDU数据包每接收一个,向上层发送一个。也可以在存在所述目标PDU数据包的情况下,在目标PDU数据包所属的PDU组中的PDU数据包全部接收到后,一并向上层发送。In specific implementation, when the judgment result indicates that the target PDU data packet exists, the PDCP receiving entity sends the received PDU data packet to the upper layer. In scenario one, when the target PDU data packet exists, after sending the received PDU data packet to the upper layer, each remaining PDU data packet in the PDU group described in the target PDU data packet is received. Send one to the upper layer. Alternatively, when the target PDU data packet exists, after all the PDU data packets in the PDU group to which the target PDU data packet belongs are received, they are all sent to the upper layer.
在场景二中,在存在所述目标PDU数据包的情况下,在第一PDU组中的PDU数据包全部接收到后,一并向上层发送。In scenario two, if the target PDU data packet exists, after all the PDU data packets in the first PDU group are received, they are all sent to the upper layer.
在场景三中,在存在所述目标PDU数据包的情况下,在N个PDU组中的PDU数据包全部接收到后,一并向上层发送。In scenario three, if the target PDU data packet exists, after all the PDU data packets in the N PDU groups are received, they are all sent to the upper layer.
参见图5,本公开实施例还提供一种数据包处理装置200,包括:Referring to Figure 5, an embodiment of the present disclosure also provides a data packet processing device 200, including:
判断模块201,用于在重排序定时器超时的情况下,根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包,获得判断结果,所述目标PDU数据包为所述PDCP接收设备对所述已接收的PDU数据包进行解码所必须的数据包;The judgment module 201 is used to judge whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information when the reordering timer times out, and obtain the judgment result. The target PDU data packet is Data packets necessary for the PDCP receiving device to decode the received PDU data packet;
处理模块202,用于在所述判断结果指示不存在所述目标PDU数据包的情况下,进行数据包处理操作;The processing module 202 is configured to perform a data packet processing operation when the judgment result indicates that the target PDU data packet does not exist;
其中,所述数据包处理操作包括以下至少一项:Wherein, the data packet processing operation includes at least one of the following:
丢弃所述已接收的PDU数据包;Discard the received PDU data packet;
停止接收与所述目标PDU数据包相关的PDU数据包。Stop receiving PDU data packets related to the target PDU data packet.
可选地,所述已接收的PDU数据包中的每个PDU数据包携带第一特征信息,所述第一特征信息用于指示所述PDU数据包是否为关键PDU数据包,所述预配置信息包括第一指示信息,所述第一指示信息用于指示关键PDU数据包为所述目标PDU数据包; Optionally, each PDU data packet in the received PDU data packet carries first characteristic information, and the first characteristic information is used to indicate whether the PDU data packet is a key PDU data packet, and the preconfigured The information includes first indication information, the first indication information being used to indicate that the key PDU data packet is the target PDU data packet;
所述判断模块201包括:The judgment module 201 includes:
第一判断单元,用于在所述第一指示信息的指示下,根据所述第一特征信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得所述判断结果。The first judgment unit is configured to judge whether there is a target PDU data packet in the received PDU data packet according to the first characteristic information under the instruction of the first indication information, and obtain the judgment result.
可选地,所述处理模块202包括:Optionally, the processing module 202 includes:
在所述目标PDU数据包为所述PDCP接收设备对全部所述已接收的PDU数据包进行解码所必须的数据包的情况下,丢弃全部所述已接收的数据包;In the case where the target PDU data packet is a data packet necessary for the PDCP receiving device to decode all the received PDU data packets, discard all the received data packets;
或者,在所述目标PDU数据包为所述PDCP接收设备对部分所述已接收的PDU数据包进行解码所必须的数据包的情况下,丢弃所述已接收的PDU数据包中的部分PDU数据包,所述部分PDU数据包必须基于所述目标PDU数据包进行解码。Or, when the target PDU data packet is a data packet necessary for the PDCP receiving device to decode part of the received PDU data packet, discard part of the PDU data in the received PDU data packet. packet, the partial PDU data packet must be decoded based on the target PDU data packet.
可选地,所述PDU数据包携带第二特征信息,所述第二特征信息用于指示所述PDU数据包是否属于第一PDU组,所述预配置信息包括第一数量信息和第二指示信息,所述第一数量信息为所述第一PDU组中的数据包的第一总个数,所述第二指示信息用于指示所述第一PDU组中的所有数据包均为所述目标PDU数据包;Optionally, the PDU data packet carries second characteristic information, the second characteristic information is used to indicate whether the PDU data packet belongs to the first PDU group, and the preconfiguration information includes first quantity information and a second indication. information, the first quantity information is the first total number of data packets in the first PDU group, and the second indication information is used to indicate that all data packets in the first PDU group are the Target PDU packet;
所述判断模块201包括:The judgment module 201 includes:
第一确定单元,用于在所述第二指示信息的指示下,根据所述第二特征信息,确定已接收的PDU数据包中属于第一PDU组的数据包的第二总个数;A first determination unit configured to determine, under the instruction of the second indication information, based on the second characteristic information, a second total number of data packets belonging to the first PDU group in the received PDU data packets;
第二判断单元,用于比较所述第一总个数和所述第二总个数,获得所述判断结果;a second judgment unit, configured to compare the first total number and the second total number to obtain the judgment result;
其中,在所述第一总个数和所述第二总个数相等的情况下,所述判断结果指示已接收的PDU数据包中存在目标PDU数据包。Wherein, when the first total number and the second total number are equal, the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
可选地,所述已接收的PDU数据包中每个PDU数据包携带第三特征信息,所述第三特征信息用于指示所述PDU数据包在N个PDU组中所属的PDU组,所述预配置信息包括第二数量信息和第三指示信息,所述第二数量信息包括所述N个PDU组对应的N个第三总个数,一PDU组对应一第三总个数,N为正整数,所述第三指示信息用于指示所述N个PDU组中的数据包均为所述目标PDU数据包; Optionally, each PDU data packet in the received PDU data packet carries third characteristic information, and the third characteristic information is used to indicate the PDU group to which the PDU data packet belongs among the N PDU groups, so The preconfiguration information includes second quantity information and third indication information. The second quantity information includes N third total numbers corresponding to the N PDU groups. One PDU group corresponds to a third total number, N is a positive integer, and the third indication information is used to indicate that the data packets in the N PDU groups are all the target PDU data packets;
所述判断模块201包括:The judgment module 201 includes:
第二确定单元,用于在所述第三指示信息的指示下,根据所述已接收的PDU数据包的第三特征信息,确定N个第四总个数,其中,一第四总个数为所述已接收的PDU数据包中属于所述N个PDU组中一PDU组的数据包的个数之和;The second determination unit is configured to determine N fourth total numbers according to the third characteristic information of the received PDU data packet under the instruction of the third indication information, wherein a fourth total number is the sum of the number of data packets belonging to one of the N PDU groups in the received PDU data packets;
第三判断单元,用于判断所述N个第三总个数和所述N个第四总个数是否均对应相等,获得所述判断结果;A third judgment unit, used to judge whether the N third total numbers and the N fourth total numbers are equal to each other, and obtain the judgment result;
其中,在所述N个第三总个数和所述N个第四总个数对应相等的情况下,所述判断结果指示已接收的PDU数据包中存在目标PDU数据包。Wherein, when the N third total numbers and the N fourth total numbers are correspondingly equal, the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
可选地,所述PDU数据包携带第四特征信息,所述第四特征信息用于指示所述PDU数据包的序号值,所述数据包处理操作包括丢弃所述已接收的PDU数据包,所述丢弃所述已接收的PDU数据包包括:Optionally, the PDU data packet carries fourth characteristic information, the fourth characteristic information is used to indicate the sequence number value of the PDU data packet, and the data packet processing operation includes discarding the received PDU data packet, The discarding of the received PDU data packet includes:
丢弃已接收的PDU数据包中,序号值小于重排序值的PDU数据包;Discard the PDU data packets whose sequence number value is smaller than the reordering value among the received PDU data packets;
其中,所述重排序值为当前触发所述重排序定时器的PDU数据包的下一个PDU数据包的序号值。Wherein, the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
可选地,所述PDU数据包携带第四特征信息,所述第四特征信息用于指示所述PDU数据包的序号值,所述数据包处理操作包括停止接收与所述目标PDU数据包相关的PDU数据包,所述停止接收与所述目标PDU数据包相关的PDU数据包,包括:Optionally, the PDU data packet carries fourth characteristic information, the fourth characteristic information is used to indicate the sequence number value of the PDU data packet, and the data packet processing operation includes stopping receiving data related to the target PDU data packet. PDU data packets, the stopping of receiving PDU data packets related to the target PDU data packets includes:
停止接收序号值大于或等于重排序值的PDU数据包;Stop receiving PDU data packets with sequence numbers greater than or equal to the reordering value;
其中,所述重排序值为当前触发所述重排序定时器的PDU数据包的下一个PDU数据包的序号值。可选地,所述PDU数据包携带第四特征信息,所述判断模块201包括:Wherein, the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer. Optionally, the PDU data packet carries fourth characteristic information, and the judgment module 201 includes:
第四判断单元,用于在所述重排序定时器超时,且当前重排序值大于第一PDU数据包的序号值的情况下,根据预配置信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得判断结果;The fourth judgment unit is used to judge whether the target exists in the received PDU data packet according to the preconfiguration information when the reordering timer times out and the current reordering value is greater than the sequence number value of the first PDU data packet. PDU data packet to obtain the judgment result;
其中,所述重排序值为当前触发所述重排序定时器的PDU数据包的下一个PDU数据包的序号值,所述第一PDU数据包为所述PDU数据包所属的PDU组中的最后一个PDU数据包。 Wherein, the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer, and the first PDU data packet is the last PDU data packet in the PDU group to which the PDU data packet belongs. A PDU packet.
可选地,所述判断模块201之后,所述数据包处理装置200还包括:Optionally, after the judgment module 201, the data packet processing device 200 further includes:
在所述判断结果指示存在所述目标PDU数据包的情况下,发送所述已接收的PDU数据包。If the judgment result indicates that the target PDU data packet exists, the received PDU data packet is sent.
本公开实施例提供的数据包处理装置200能够实现本公开与图2对应的数据包处理方法实施例中能够实现的各个过程,以及达到相同的有益效果,为避免重复,在此不再赘述。The data packet processing device 200 provided by the embodiment of the present disclosure can implement various processes that can be implemented in the embodiment of the data packet processing method corresponding to FIG. 2 and achieve the same beneficial effects. To avoid duplication, they will not be described again here.
本公开实施例提供一种电子设备。如图6所示,电子设备300包括:处理器301、存储器302及存储在所述存储器302上并可在所述处理器上运行的计算机程序,电子设备300中的各个组件通过总线系统303耦合在一起。可理解,总线系统303用于实现这些组件之间的连接通信。An embodiment of the present disclosure provides an electronic device. As shown in FIG. 6 , the electronic device 300 includes: a processor 301 , a memory 302 and a computer program stored on the memory 302 and executable on the processor. Each component in the electronic device 300 is coupled through a bus system 303 together. It can be understood that the bus system 303 is used to implement connection and communication between these components.
其中,处理器301,用于在重排序定时器超时的情况下,根据预配置信息,判断已接收的协议数据单元PDU数据包中是否存在目标PDU数据包,获得判断结果,所述目标PDU数据包为所述PDCP接收设备对所述已接收的PDU数据包进行解码所必须的数据包;Among them, the processor 301 is used to determine whether there is a target PDU data packet in the received protocol data unit PDU data packet according to the preconfiguration information when the reordering timer times out, and obtain the judgment result. The target PDU data The packet is a data packet necessary for the PDCP receiving device to decode the received PDU data packet;
在所述判断结果指示不存在所述目标PDU数据包的情况下,进行数据包处理操作;If the judgment result indicates that the target PDU data packet does not exist, perform a data packet processing operation;
其中,所述数据包处理操作包括以下至少一项:Wherein, the data packet processing operation includes at least one of the following:
丢弃所述已接收的PDU数据包;Discard the received PDU data packet;
停止接收与所述目标PDU数据包相关的PDU数据包。Stop receiving PDU data packets related to the target PDU data packet.
可选地,所述已接收的PDU数据包中的每个PDU数据包携带第一特征信息,所述第一特征信息用于指示所述PDU数据包是否为关键PDU数据包,所述预配置信息包括第一指示信息,所述第一指示信息用于指示关键PDU数据包为所述目标PDU数据包;Optionally, each PDU data packet in the received PDU data packet carries first characteristic information, and the first characteristic information is used to indicate whether the PDU data packet is a key PDU data packet, and the preconfigured The information includes first indication information, the first indication information being used to indicate that the key PDU data packet is the target PDU data packet;
处理器301还用于:Processor 301 is also used for:
在所述第一指示信息的指示下,根据所述第一特征信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得所述判断结果。Under the instruction of the first indication information, it is judged according to the first characteristic information whether there is a target PDU data packet in the received PDU data packet, and the judgment result is obtained.
可选地,处理器301还用于:Optionally, the processor 301 is also used to:
在所述目标PDU数据包为所述PDCP接收设备对全部所述已接收的PDU数据包进行解码所必须的数据包的情况下,丢弃全部所述已接收的数据包; In the case where the target PDU data packet is a data packet necessary for the PDCP receiving device to decode all the received PDU data packets, discard all the received data packets;
或者,在所述目标PDU数据包为所述PDCP接收设备对部分所述已接收的PDU数据包进行解码所必须的数据包的情况下,丢弃所述已接收的PDU数据包中的部分PDU数据包,所述部分PDU数据包必须基于所述目标PDU数据包进行解码。Or, when the target PDU data packet is a data packet necessary for the PDCP receiving device to decode part of the received PDU data packet, discard part of the PDU data in the received PDU data packet. packet, the partial PDU data packet must be decoded based on the target PDU data packet.
可选地,所述PDU数据包携带第二特征信息,所述第二特征信息用于指示所述PDU数据包是否属于第一PDU组,所述预配置信息包括第一数量信息和第二指示信息,所述第一数量信息为所述第一PDU组中的数据包的第一总个数,所述第二指示信息用于指示所述第一PDU组中的所有数据包均为所述目标PDU数据包;Optionally, the PDU data packet carries second characteristic information, the second characteristic information is used to indicate whether the PDU data packet belongs to the first PDU group, and the preconfiguration information includes first quantity information and a second indication. information, the first quantity information is the first total number of data packets in the first PDU group, and the second indication information is used to indicate that all data packets in the first PDU group are the Target PDU packet;
处理器301还用于:Processor 301 is also used for:
在所述第二指示信息的指示下,根据所述第二特征信息,确定已接收的PDU数据包中属于第一PDU组的数据包的第二总个数;Under the instruction of the second indication information, determine the second total number of data packets belonging to the first PDU group in the received PDU data packets according to the second characteristic information;
比较所述第一总个数和所述第二总个数,获得所述判断结果;Compare the first total number and the second total number to obtain the judgment result;
其中,在所述第一总个数和所述第二总个数相等的情况下,所述判断结果指示已接收的PDU数据包中存在目标PDU数据包。Wherein, when the first total number and the second total number are equal, the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
可选地,所述已接收的PDU数据包中每个PDU数据包携带第三特征信息,所述第三特征信息用于指示所述PDU数据包在N个PDU组中所属的PDU组,所述预配置信息包括第二数量信息和第三指示信息,所述第二数量信息包括所述N个PDU组对应的N个第三总个数,一PDU组对应一第三总个数,N为正整数,所述第三指示信息用于指示所述N个PDU组中的数据包均为所述目标PDU数据包;Optionally, each PDU data packet in the received PDU data packet carries third characteristic information, and the third characteristic information is used to indicate the PDU group to which the PDU data packet belongs among the N PDU groups, so The preconfiguration information includes second quantity information and third indication information. The second quantity information includes N third total numbers corresponding to the N PDU groups. One PDU group corresponds to a third total number, N is a positive integer, and the third indication information is used to indicate that the data packets in the N PDU groups are all the target PDU data packets;
处理器301还用于:Processor 301 is also used for:
在所述第三指示信息的指示下,根据所述已接收的PDU数据包的第三特征信息,确定N个第四总个数,其中,一第四总个数为所述已接收的PDU数据包中属于所述N个PDU组中一PDU组的数据包的个数之和;Under the instruction of the third indication information, N fourth total numbers are determined according to the third characteristic information of the received PDU data packet, wherein a fourth total number is the received PDU data packet. The sum of the number of data packets belonging to one of the N PDU groups in the data packet;
判断所述N个第三总个数和所述N个第四总个数是否均对应相等,获得所述判断结果;Determine whether the N third total numbers and the N fourth total numbers are equal to each other, and obtain the judgment result;
其中,在所述N个第三总个数和所述N个第四总个数对应相等的情况下,所述判断结果指示已接收的PDU数据包中存在目标PDU数据包。 Wherein, when the N third total numbers and the N fourth total numbers are correspondingly equal, the judgment result indicates that the target PDU data packet exists in the received PDU data packet.
可选地,所述PDU数据包携带第四特征信息,所述第四特征信息用于指示所述PDU数据包的序号值,处理器301还用于:Optionally, the PDU data packet carries fourth characteristic information, and the fourth characteristic information is used to indicate the sequence number value of the PDU data packet. The processor 301 is also configured to:
丢弃已接收的PDU数据包中,序号值小于重排序值的PDU数据包;Discard the PDU data packets whose sequence number value is smaller than the reordering value among the received PDU data packets;
其中,所述重排序值为当前触发所述重排序定时器的PDU数据包的下一个PDU数据包的序号值。Wherein, the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
可选地,所述PDU数据包携带第四特征信息,所述第四特征信息用于指示所述PDU数据包的序号值,处理器301还用于:Optionally, the PDU data packet carries fourth characteristic information, and the fourth characteristic information is used to indicate the sequence number value of the PDU data packet. The processor 301 is also configured to:
停止接收序号值大于或等于重排序值的PDU数据包;Stop receiving PDU data packets with sequence numbers greater than or equal to the reordering value;
其中,所述重排序值为当前触发所述重排序定时器的PDU数据包的下一个PDU数据包的序号值。Wherein, the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer.
可选地,所述PDU数据包携带第四特征信息,所述第四特征信息用于指示所述PDU数据包的序号值,处理器301还用于:Optionally, the PDU data packet carries fourth characteristic information, and the fourth characteristic information is used to indicate the sequence number value of the PDU data packet. The processor 301 is also configured to:
在所述重排序定时器超时,且当前重排序值大于第一PDU数据包的序号值的情况下,根据预配置信息,判断已接收的PDU数据包中是否存在目标PDU数据包,获得判断结果;When the reordering timer times out and the current reordering value is greater than the sequence number value of the first PDU data packet, determine whether the target PDU data packet exists in the received PDU data packet according to the preconfiguration information, and obtain the judgment result. ;
其中,所述重排序值为当前触发所述重排序定时器的PDU数据包的下一个PDU数据包的序号值,所述第一PDU数据包为所述PDU数据包所属的PDU组中的最后一个PDU数据包。Wherein, the reordering value is the sequence number value of the next PDU data packet of the PDU data packet that currently triggers the reordering timer, and the first PDU data packet is the last PDU data packet in the PDU group to which the PDU data packet belongs. A PDU packet.
可选地,处理器301还用于:在所述判断结果指示存在所述目标PDU数据包的情况下,发送所述已接收的PDU数据包。Optionally, the processor 301 is further configured to: send the received PDU data packet if the judgment result indicates that the target PDU data packet exists.
本公开实施例提供的电子设备300能够实现本公开与图2对应的数据包处理方法实施例中能够实现的各个过程,以及达到相同的有益效果,为避免重复,在此不再赘述。The electronic device 300 provided by the embodiment of the present disclosure can implement various processes that can be implemented in the embodiment of the data packet processing method corresponding to FIG. 2 and achieve the same beneficial effects. To avoid duplication, the details are not repeated here.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述数据包处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Embodiments of the present disclosure also provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the various processes of the above-mentioned packet processing method embodiments are implemented and the same can be achieved. To avoid repetition, the technical effects will not be repeated here. Among them, the computer-readable storage medium is such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上 述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。 The embodiments of the present disclosure have been described above in conjunction with the accompanying drawings, but the present disclosure is not limited to the above. The above-described specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art, inspired by this disclosure, can make any modifications without departing from the purpose of this disclosure and the scope protected by the claims. It can also be made in many forms, all of which fall within the protection of this disclosure.
Claims (16)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210866872.0A CN117479229A (en) | 2022-07-22 | 2022-07-22 | Data packet processing method, device, electronic equipment and readable storage medium |
| CN202210866872.0 | 2022-07-22 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024017369A1 true WO2024017369A1 (en) | 2024-01-25 |
Family
ID=89617188
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/108626 Ceased WO2024017369A1 (en) | 2022-07-22 | 2023-07-21 | Data packet processing method and apparatus, electronic device, and readable storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN117479229A (en) |
| WO (1) | WO2024017369A1 (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020093915A1 (en) * | 2018-11-06 | 2020-05-14 | Qualcomm Incorporated | Managing packet data convergence protocol (pdcp) protocol data units |
| CN114268991A (en) * | 2021-12-27 | 2022-04-01 | 展讯通信(上海)有限公司 | Data transmission method, device, electronic device, storage medium |
| WO2022094529A1 (en) * | 2020-10-27 | 2022-05-05 | Qualcomm Incorporated | Techniques for packet data convergence protocol and radio link control sequence number synchronization |
-
2022
- 2022-07-22 CN CN202210866872.0A patent/CN117479229A/en active Pending
-
2023
- 2023-07-21 WO PCT/CN2023/108626 patent/WO2024017369A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020093915A1 (en) * | 2018-11-06 | 2020-05-14 | Qualcomm Incorporated | Managing packet data convergence protocol (pdcp) protocol data units |
| WO2022094529A1 (en) * | 2020-10-27 | 2022-05-05 | Qualcomm Incorporated | Techniques for packet data convergence protocol and radio link control sequence number synchronization |
| CN114268991A (en) * | 2021-12-27 | 2022-04-01 | 展讯通信(上海)有限公司 | Data transmission method, device, electronic device, storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117479229A (en) | 2024-01-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101375562B (en) | Method and device for delivering discontinuous data blocks in enhanced uplink transmission | |
| US7613118B2 (en) | Detecting change in a transport protocol window size without data transmission | |
| US9030936B2 (en) | Flow control with reduced buffer usage for network devices | |
| US20090124259A1 (en) | Layer 2 tunneling of data during handover in a wireless communication system | |
| CN110677878B (en) | Data transmission method, device, equipment and system | |
| US8589586B2 (en) | Method and apparatus for managing transmission of TCP data segments | |
| RU2460214C2 (en) | Status message initiation in wireless communication system | |
| US10932159B2 (en) | Data transmission method, data receiving device, and data sending device | |
| CN106470497B (en) | A kind of data transmission method, wireless spread-spectrum technology is sent and receiving entity | |
| KR101578047B1 (en) | Apparatus and method to reorder data packets in a communication system | |
| US20230353285A1 (en) | Data transmission method, data transmission apparatus, computer-readable medium, electronic device, and computer program product | |
| WO2015032048A1 (en) | Method for internal communication of mobile terminal | |
| CN101127715B (en) | Reliability Guarantee Method for Packet Transmission in Simple Network Management Protocol | |
| WO2024017369A1 (en) | Data packet processing method and apparatus, electronic device, and readable storage medium | |
| CN101087171A (en) | A method and system of transmission control of wireless link | |
| EP3609137A1 (en) | Method and apparatus for wireless communication | |
| CN119948835B (en) | Wireless communication method and device | |
| GB2640355A (en) | Method for managing data transmission in a communication network | |
| WO2025210190A1 (en) | Method for managing data transmission in a communication network | |
| WO2025210182A1 (en) | Method for managing data transmission in a communication network | |
| CN117917883A (en) | Method and receiver for managing data traffic in a wireless communication system | |
| GB2640205A (en) | Method for managing data transmission in a communication network | |
| WO2023213202A1 (en) | Communication method and apparatus | |
| CN105656601A (en) | Repeated message determining method and receiver device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23842431 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05.06.2025) |