Data packet discarding method and related equipment
Patent Information
- Application Number
- CN202380069183.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-09-26
- Filing Date
- 2023-08-31
- Publication Date
- 2025-05-06
AI Technical Summary
In the extended reality (XR) technology scenario, the packet loss problem of data units causes the receiving end to be unable to obtain complete information, and resources are wasted, which is difficult to effectively solve with existing technology.
By determining whether to discard the protocol data unit set or the data packets it contains based on the number of packets lost, packet loss timer, attribute information and dependencies of the protocol data packet unit set, it avoids the continued transmission of invalid data and saves air interface resources.
It effectively avoids the transmission of invalid data, saves resources, and ensures that the receiving end obtains complete information units.
Smart Images

Figure CN119948932A_ABST
Abstract
Description
A method for discarding data packets and related equipment This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on September 26, 2022, with application number 202211176858.4 and application name “A method for discarding data packets and related equipment”, the entire contents of which are incorporated by reference in this application. Technical Field The present application relates to the field of data processing, and in particular to a method for discarding data packets and related equipment. Background Art Extended reality (XR) technology refers to the combination of display and virtuality through computers to create a virtual environment that can interact with humans and machines, including virtual reality (VR), augmented reality (AR), mixed reality (MR), and cloud games (CG). The services involved in XR technology are usually audio or video. Therefore, in the XR scenario, the data streams exchanged between user equipment (user equipment, the sending device) and network devices are usually audio data streams or video data streams. Taking the video service as an example, the data unit (such as a frame or a video slice) exchanged between the sending device and the network device may include multiple Internet Protocol (IP) data packets, and an IP data packet will include at least one protocol data unit set (PDU). Therefore, in the video service, the data unit transmitted between the sending device and the network device can actually be regarded as a PDU set (protocol data unit set) including multiple PDUs. In the actual data unit transmission process, packet loss is inevitable due to the influence of various factors. For data units transmitted in the form of protocol data unit sets, if one or more protocol data unit sets are discarded, or some PDUs in the protocol data unit set are discarded, the receiving end will not be able to obtain the complete information unit carried by the protocol data unit set. At this time, even if the remaining other protocol data unit sets are obtained, it may still be impossible to obtain complete information. Therefore, in the case of packet loss in some protocol data unit sets, if the receiving end insists on receiving all protocol data unit sets, not only will it be unable to obtain complete information, but it will also cause the resources used to transmit other protocol data unit sets to be wasted. Summary of the invention An embodiment of the present application provides a method and related equipment for discarding data packets. By judging whether to perform packet discard processing on the protocol data unit set or the data packets included therein based on at least one of the packet loss number, packet loss timer, attribute information, and dependency relationship corresponding to the protocol data unit set, the method can avoid the continued transmission of useless data and save air interface resources. In a first aspect, a method for discarding a data packet is provided, which is applied to a sending end, and the method comprises: Determine whether to discard a protocol data unit set or a data packet included in the protocol data unit set according to a preset judgment method, wherein the judgment basis adopted by the preset judgment method includes at least one of the number of packet losses corresponding to the protocol data unit set, the packet loss timer of the protocol data unit set, the first attribute information corresponding to the protocol data unit set, the second attribute information corresponding to the data packet, and the dependency relationship between the protocol data unit set and other protocol data unit sets; the attribute information is associated with whether to allow discarding or not to allow discarding, and the protocol data unit set includes one or more of the data packets; If it is determined according to a preset judgment method to discard the protocol data unit set or the data packet included in the protocol data unit set, the protocol data unit set or the data packet is discarded. In one implementation, the data packet may include a PDU data packet or an SDU data packet, but the present application does not limit this. The protocol data unit set may, for example, refer to a set of multiple data packets, which may include one or more data packets. Exemplarily, the protocol data unit set may correspond to a PDU set, but is not limited thereto. In one implementation, discarding the protocol data unit set or the data packet may include: discarding the data packets in the protocol data unit set that have not been discarded. The data packets that have not been discarded may refer to data packets that have been received but not discarded by the sender; or, may refer to data packets in the protocol data unit set that have not been received, that is, if it is determined that the data packets in the protocol data unit set need to be discarded, the data packets in the protocol data unit set may be directly discarded after being received. In one implementation, allowing to discard means that a set of protocol data units or data packets can be discarded without causing packet loss processing for the set of protocol data units or data packets in the set of protocol data units. Not allowing to discard means that a set of protocol data units or data packets cannot be discarded, and if discarded, it will cause packet loss processing for the set of protocol data units or data packets in the set of protocol data units. In one implementation, the association of attribute information with whether to allow discarding or not to allow discarding means that a data packet or a set of protocol data units having the attribute information belongs to a type of data packet or a set of protocol data units that are allowed to be discarded; or a data packet or a set of protocol data units having the attribute information belongs to a type of data packet or a set of protocol data units that are not allowed to be discarded. For example, if a high priority attribute is associated with not allowing discarding, then a set of high priority data packets or protocol data units belongs to a set of data packets or protocol data units that are not allowed to be discarded, and if discarding occurs, the corresponding set of protocol data units or other data packets in the set of protocol data units need to be discarded. In one implementation, the sending end may be a user equipment, but is not limited thereto. In one implementation, determining whether to discard a protocol data unit set or a data packet included in the protocol data unit set according to a preset judgment method may also refer to determining whether a protocol data unit set or a data packet included in the protocol data unit set meets a discarding condition according to a preset judgment method, and when the discarding condition is met, discarding the protocol data unit set or the data packet included in the protocol data unit set. It is worth noting that in the present application, the number of packet losses or the discarded data packets corresponding to the packet loss counter count in the judgment basis refer to data packets discarded by other means, and the other means here refer to the means other than the data packet discarding method provided in the embodiments of the present application, such as: data packets discarded due to network status, communication status, etc.; or data packets discarded due to discard timer timeout; or data packets discarded after the data packet or protocol data unit set is transmitted, etc. The embodiments of the present application are not limited to this. The data packets discarded in the protocol data unit set mentioned in the present application can refer to the above explanation, and no special explanation will be given later. According to the method provided by the present implementation, by judging whether to perform packet loss processing on the protocol data packet unit set based on at least one of the packet loss number, packet loss timer, attribute information, and dependency relationship corresponding to the protocol data packet unit set, this method can avoid the continued transmission of useless data and save air interface resources. In combination with the first aspect, in some implementations of the first aspect, the first attribute information includes at least one of a sequence number corresponding to the protocol data unit set, a total number of the data packets included in the protocol data unit set, an importance level of the protocol data unit set, a priority of the protocol data unit set, and a dependency relationship of the protocol data unit set; The second attribute information includes at least one of a data packet sequence number corresponding to the data packet, a position of the data packet in the protocol data unit set, an importance level of the data packet, and a priority level of the data packet. In one implementation, the second attribute information of the data packet may further include a discard type corresponding to the data packet, and the discard type may include allowing discard or not allowing discard. In combination with the first aspect, in some implementations of the first aspect, when the judgment basis adopted by the preset judgment method is the number of packet losses corresponding to the protocol data unit set, the method specifically includes: Obtaining a packet loss threshold corresponding to the protocol data unit set; Obtaining the number of packet losses corresponding to the protocol data unit set; If the number of packet losses reaches or exceeds the packet loss threshold, the protocol data unit set or the data packet is discarded. In one implementation, the packet loss threshold refers to the maximum number threshold of packets that can be discarded in a protocol data unit set. When it is determined that the number of packet losses in a protocol data unit set reaches or exceeds the packet loss threshold, the packets in the protocol data unit set can be directly discarded. In one implementation, the packet loss threshold is configured in a confirmation mode. The confirmation mode includes receiving indication information fed back by the receiving end after transmitting a data packet, and the indication information indicates whether the data packet is successfully transmitted or needs to be retransmitted. The confirmation mode includes an AM mode or a HARQ transmission mode or an SN status report, which is not limited in this application. In an implementation manner, the acquired number of lost packets does not include data packets discarded due to successful transmission, or the acquired number of lost packets only includes data packets discarded due to the timeout of a discard timer. In one implementation, when it is determined that the number of packet losses of a protocol data unit set reaches a packet loss threshold, the data packets in the protocol data unit set can be directly discarded. For example, assuming that the packet loss threshold is 10, if the number of packet losses of the protocol data unit set reaches 10, that is, the number of packet losses is equal to the packet loss threshold, the data packets in the protocol data unit set can be directly discarded. In one implementation, when it is determined that the number of packet losses of a protocol data unit set exceeds a packet loss threshold, the data packets in the protocol data unit set can be directly discarded. For example, assuming that the packet loss threshold is 10, if the number of packet losses of the protocol data unit set increases from 10 to 11, that is, the number of packet losses is greater than the packet loss threshold, the data packets in the protocol data unit set can be directly discarded. In combination with the first aspect, in some implementations of the first aspect, obtaining the packet loss threshold corresponding to the protocol data unit set specifically includes: receiving first configuration information sent by a receiving end, where the first configuration information is used to indicate the packet loss threshold, and the receiving end is used to receive the data packet; or, Acquire the packet loss threshold pre-configured by the sending end itself; or, Receiving the packet loss threshold sent by the high layer of the sending end through the protocol layer of the sending end itself; or Receive second configuration information sent by the core network, where the second configuration information is used to indicate the packet loss threshold. The receiving end may be used to receive the data packet. In one implementation, the packet loss threshold pre-configured by the transmitting end itself may be a statically configured packet loss threshold; the packet loss threshold sent by a high-level layer of the transmitting end may be a dynamically configured packet loss threshold. In one implementation, the high layer may refer to an application layer or a transport layer. In combination with the first aspect, in some implementations of the first aspect, when the packet loss threshold is configured by the transmitting end itself, the method further includes: The packet loss threshold is configured at the granularity of a protocol layer entity; or, The packet loss threshold is configured with a data radio bearer (DRB) as a granularity; or, The packet loss threshold is configured based on the protocol data unit set as the granularity; or, The packet loss threshold is configured based on the granularity of the type of the protocol data unit set, wherein the type of the protocol data unit set is at least one of the priority of the protocol data unit set, the importance level of the protocol data unit set, and the sequence number of the protocol data unit set. In one implementation, configuring the packet loss threshold with the protocol layer entity as the granularity may refer to configuring the packet loss threshold with each protocol layer entity as the object, that is, configuring different packet loss thresholds for different protocol layer entities. For example, for the PDCP layer entity, one PDCP protocol layer entity is configured with 9 as the packet loss threshold, and another PDCP protocol layer entity is configured with 10 as the packet loss threshold. Configuring the packet loss threshold with the data radio bearer DRB as the granularity may refer to configuring the packet loss threshold with each DRB as the object, that is, different packet loss thresholds may be configured for different DRBs. Configuring the packet loss threshold with the protocol data unit set as the granularity may refer to configuring the packet loss threshold with each protocol data unit set as the object, and different protocol data unit sets may correspond to different packet loss thresholds. Configuring the packet loss threshold with the type of the protocol data unit set as the granularity may refer to configuring the packet loss threshold with the type of each protocol data unit set as the object, and different types of protocol data unit sets may correspond to different packet loss thresholds. In combination with the first aspect, in some implementations of the first aspect, when the judgment basis adopted by the preset judgment method is the number of packet losses corresponding to the protocol data unit set, the method specifically includes: Obtaining a packet loss ratio threshold corresponding to the protocol data unit set; Obtaining the number of packet losses corresponding to the protocol data unit set; Obtaining a packet loss ratio corresponding to the protocol data unit set according to a ratio of the number of packet losses to the total number of data packets included in the protocol data unit set; If the packet loss ratio reaches or exceeds the packet loss ratio threshold, the protocol data unit set or the data packet is discarded. Discarding the data packet may specifically refer to discarding the data packet in the protocol data unit set. In one implementation, the packet loss ratio is a ratio of the number of packet losses in a protocol data unit set to the total number of data packets included in the protocol data unit set. In combination with the first aspect, in some implementations of the first aspect, obtaining a packet loss ratio threshold corresponding to the protocol data unit set specifically includes: receiving third configuration information sent by a receiving end, wherein the third configuration information is used to indicate the packet loss ratio threshold, and the receiving end is used to receive the data packet; or, Acquire the packet loss ratio threshold pre-configured by the sending end itself; or, Receiving the packet loss ratio threshold sent by the high layer of the sending end through the protocol layer of the sending end itself; or, Receive fourth configuration information sent by the core network, where the fourth configuration information is used to indicate the packet loss ratio threshold. The data packet received by the receiving end may refer to a data packet in a protocol data unit set transmitted by the receiving sending end. In one implementation, the packet loss ratio threshold pre-configured by the transmitting end itself may be a statically configured packet loss ratio threshold; the packet loss threshold sent by a high-level layer of the transmitting end may be a dynamically configured packet loss ratio threshold. In one implementation, the packet loss ratio threshold pre-configured by the transmitting end itself may refer to the packet loss ratio threshold configured when the transmitting end is powered on. In one implementation, the high layer may refer to an application layer or a transport layer. In combination with the first aspect, in some implementations of the first aspect, when the packet loss ratio threshold is configured by the transmitting end itself, the method further includes: The packet loss ratio threshold is configured at the granularity of the protocol layer entity; or, The packet loss ratio threshold is configured with DRB as the granularity; or, The packet loss ratio threshold is configured based on the protocol data unit set as the granularity; or, The packet loss ratio threshold is configured based on the granularity of the type of the protocol data unit set, wherein the type of the protocol data unit set is at least one of the priority of the protocol data unit set, the importance level of the protocol data unit set, and the sequence number of the protocol data unit set. In one implementation, configuring the packet loss ratio threshold with the protocol layer entity as the granularity may refer to configuring the packet loss ratio threshold with each protocol layer as the object, that is, configuring different packet loss ratio thresholds for different protocol layer entities. For example, for the PDCP layer entity, one PDCP protocol layer entity is configured with 20% as the packet loss ratio threshold, and another PDCP protocol layer entity is configured with 10% as the packet loss ratio threshold. Configuring the packet loss ratio threshold with the data radio bearer DRB as the granularity may refer to configuring the packet loss ratio threshold with each DRB as the object, that is, different packet loss ratio thresholds may be configured for different DRBs. Configuring the packet loss ratio threshold with the protocol data unit set as the granularity may refer to configuring the packet loss ratio threshold with each protocol data unit set as the object, and different write data unit sets may correspond to different packet loss ratio thresholds. Configuring the packet loss ratio threshold with the type of the protocol data unit set as the granularity may refer to configuring the packet loss ratio threshold with the type of each protocol data unit set as the object, and different types of protocol data unit sets may correspond to different packet loss ratio thresholds. In combination with the first aspect, in some implementations of the first aspect, obtaining the number of packet losses corresponding to the protocol data unit set specifically includes: Setting a packet loss counter, wherein the packet loss counter is used to count the number of the data packets discarded in the protocol data unit set; Each time a packet in the protocol data unit set is obtained to be discarded, the count value of the packet loss counter is increased by 1; The number of packet losses corresponding to the protocol data unit set is obtained according to the count value of the packet loss counter. In combination with the first aspect, in some implementations of the first aspect, when the packet loss counter counts the number of the data packets discarded in the protocol data unit set, the method further includes: The packet loss counter does not count the data packets that are successfully transmitted and discarded. It should be understood that the successfully transmitted and discarded data packets may refer to data packets that are discarded in the cache after the sending end receives a message from the receiving end indicating that a certain data packet has been successfully transmitted. In combination with the first aspect, in some implementations of the first aspect, the method further includes: When the protocol data unit set or the data packet is discarded, the packet loss counter is released or cleared; or, When the number of packet losses corresponding to the protocol data unit set does not reach or exceed the packet loss threshold, and the transmission of the protocol data unit set and / or the data packet is completed, the packet loss counter is released or cleared; or, When the ratio of the number of packet losses corresponding to the protocol data unit set to the total number of data packets included in the protocol data unit set does not reach or exceed the packet loss ratio threshold, and the transmission of the protocol data unit set and / or the data packets is completed, the packet loss counter is released or cleared; or, When the ratio of the count value of the counter to the total number of the data packets included in the protocol data unit set reaches or exceeds the corresponding packet loss ratio threshold, the packet loss counter is released or cleared; or, When the count value of the counter reaches or exceeds the packet loss threshold, the packet loss counter is released or cleared. In one implementation, the completion of the transmission of the protocol data unit set and / or the data packet may refer to: in confirmation mode, determining that the last data packet (such as End PDU) has been received or determining that all data packets of the protocol data unit set have been received, and all data packets in the protocol data unit set have been transmitted. The completion of all data packet transmission here may include two parts of data packets: (1) the sending end receives a message fed back by the receiving end, thereby determining that the data packet is successfully transmitted; (2) the sending end does not receive a feedback message, and the data packet is discarded when the timer (discard timer) corresponding to the data packet times out. In non-confirmation mode, it is determined that the last data packet in the protocol data unit set is transmitted to the next layer or it is determined that all data packets of the protocol data unit set have been received. In combination with the first aspect, in some implementations of the first aspect, the method further includes: When the data packet is successfully transmitted, the packet loss counter is set. In one implementation, when the data packet is successfully transmitted, setting the packet loss counter means configuring the counter in a mode where there is a data packet confirming successful transmission. In combination with the first aspect, in some implementations of the first aspect, when the judgment basis adopted by the preset judgment method is the packet loss timer of the protocol data unit set, the method specifically includes: Obtaining a packet loss timer corresponding to the protocol data unit set; When the packet loss timer times out, the protocol data unit set or the data packet is discarded; or, When the packet loss timer times out, if the protocol data unit set or the data packet has not been completely transmitted, the protocol data unit set or the data packet is discarded. In combination with the first aspect, in some implementations of the first aspect, when the first data packet in the protocol data unit set is received, the packet loss timer is started. In one implementation, the first data packet in the protocol data unit set may include: a data packet with a sequence number of 1 in the protocol data unit set, or a STRAT data packet in the protocol data unit set, such as a data packet with a START identifier. In combination with the first aspect, in some implementations of the first aspect, the method further includes: When the transmission time of the protocol data unit set exceeds the packet loss timing time of the packet loss timer, the protocol data unit set or the data packet is discarded. In combination with the first aspect, in some implementations of the first aspect, the protocol data unit set or the data packet is not completely transmitted, specifically including: When the packet loss timer times out, the transmitting end has the data packet in the protocol data unit set. It should be understood that the existence of a data packet at the sending end here means that the data packet is cached in the protocol layer of the sending end. In one implementation, the protocol data unit set that has not been completely transmitted may include: (1) the protocol layer entity did not receive the feedback message sent by the receiving end, and therefore did not discard the relevant data packet, which means that the receiving end may not have received the data packet, that is, the data packet has not been completely transmitted; (2) there are still data packets in the protocol layer entity that have not been transmitted to the next layer, which also means that the data packet has not been completely transmitted; (3) the data packets of the protocol data unit set are cached in the protocol layer entity. In combination with the first aspect, in some implementations of the first aspect, obtaining a packet loss timer corresponding to the protocol data unit set specifically includes: receiving fifth configuration information sent by a receiving end, where the fifth configuration information is used to indicate the packet loss timer, and the receiving end is used to receive the data packet; or, Acquire the packet loss timer pre-configured by the sending end itself; or, Receiving the packet loss timer sent by the high layer of the sending end through the protocol layer of the sending end itself; or Receive sixth configuration information sent by the core network, where the sixth configuration information is used to indicate the packet loss timer. In one implementation, the high layer may refer to an application layer or a transport layer. In combination with the first aspect, in some implementations of the first aspect, the method further includes: When the protocol data unit set or the data packet is discarded, the packet loss timer is released or cleared; or, When the packet loss timer has not timed out and the transmission of the protocol data unit set and / or data packet is completed, the packet loss timer is released or cleared; or, When the packet loss timer times out, the packet loss timer is released or cleared. In combination with the first aspect, in some implementations of the first aspect, when the judgment basis adopted by the preset judgment method is the number of packet losses corresponding to the protocol data unit set and the packet loss timer, the method specifically includes: Obtaining a packet loss threshold corresponding to the protocol data unit set and a packet loss timer corresponding to the protocol data unit set; Obtaining the number of packet losses corresponding to the protocol data unit set; If the number of packet losses exceeds the packet loss threshold, and / or if the protocol data unit set or the data packet is not completely transmitted when the packet loss timer times out, discard the protocol data unit set or the data packet; or, If the number of packet losses exceeds a packet loss threshold, and / or if the packet loss timer times out, the protocol data unit set or the data packet is discarded. In one implementation, the protocol data unit set or the data packet is not completely transmitted, specifically including: when the packet loss timer times out, the sending end has the data packet in the protocol data unit set. In combination with the first aspect, in some implementations of the first aspect, the protocol data unit set or the data packet is not completely transmitted, specifically including: The transmitting end stores the data packet in the protocol data unit set. In combination with the first aspect, in some implementations of the first aspect, when the judgment basis adopted by the preset judgment method is the first attribute information corresponding to the protocol data unit set and / or the second attribute information corresponding to the data packet, the method specifically includes: When the first attribute information corresponding to the protocol data unit set is associated with the not-allowed-discarding, if the protocol data unit set with the first attribute information is discarded, the protocol data unit set or the data packet is discarded; or, When the second attribute information corresponding to the data packet is associated with the not-allowed-discarding, if the data packet with the second attribute information is discarded, the protocol data unit set or the data packet is discarded. In combination with the first aspect, in some implementations of the first aspect, the method further includes: Acquire seventh configuration information sent by a receiving end, wherein the seventh configuration information is used to indicate the first attribute information corresponding to the protocol data unit set and / or the second attribute information corresponding to the data packet, and the receiving end is used to receive the data packet; or, Acquire the first attribute information corresponding to the protocol data unit set pre-configured by the sender itself, and / or the second attribute information corresponding to the data packet; or, receiving, through the protocol layer of the sender itself, the first attribute information corresponding to the protocol data unit set sent by the high layer of the sender, and / or the second attribute information corresponding to the data packet; or Receive eighth configuration information sent by the core network, where the eighth configuration information is used to indicate the first attribute information corresponding to the protocol data unit set and / or the second attribute information corresponding to the data packet. In combination with the first aspect, in some implementations of the first aspect, when the judgment basis adopted by the preset judgment method is the dependency relationship between the protocol data unit set and other protocol data unit sets, the method specifically includes: Acquire that the first protocol data unit set has a dependency relationship with at least one second protocol data unit set; Based on the dependency, if the acquisition of the second protocol data unit set is discarded, the first protocol data unit set or the data packet included in the first protocol data unit set is discarded; or, Based on the dependency, if the number of the second protocol data unit sets that are discarded reaches a preset threshold, the first protocol data unit set or the data packet included in the first protocol data unit set is discarded. In combination with the first aspect, in some implementations of the first aspect, obtaining at least one second protocol data unit set having a dependency relationship with the first protocol data unit set specifically includes: receiving ninth configuration information sent by a receiving end, wherein the ninth configuration information is used to indicate a dependency identifier, and the receiving end is used to receive the data packet transmitted by the sending end; or, Obtaining a dependency identifier pre-configured by the sending end itself; or, Receiving, through the protocol layer of the sending end itself, a dependency identifier sent by a high-level layer of the sending end; or, Receive tenth configuration information sent by the core network, where the tenth configuration information is used to indicate a dependency identifier; wherein the dependency identifier is used to indicate other protocol data unit sets that are mutually dependent on the protocol data unit set. In combination with the first aspect, in some implementations of the first aspect, the method further includes: Receiving packet loss indication information sent by a higher layer of the receiving end or the sending end, wherein the packet loss indication information is used to instruct the sending end to trigger the discarding of a set of protocol data units or the discarding of the data packet; The protocol data unit set or the data packet of the triggering protocol layer is discarded. In combination with the first aspect, in some implementations of the first aspect, if it is determined according to a preset judgment method to discard the protocol data unit set or the data packet included in the protocol data unit set, then discarding the protocol data unit set or the data packet included in the protocol data unit set specifically includes: If the protocol layer of the sending end device determines to discard the protocol data unit set or the data packet included in the protocol data unit set according to a preset judgment method, the protocol data unit set or the data packet is discarded. In combination with the first aspect, in some implementations of the first aspect, the method further includes: When the protocol layer entity of the sending device determines to discard the protocol data unit set or the data packet, if the data packet of the protocol data unit set has been transmitted to the next layer corresponding to the protocol layer, the protocol layer entity sends a notification message to the protocol layer entity of the next layer, and the notification message is used to instruct the protocol layer entity of the next layer to discard the data packet. In a second aspect, a method for discarding a data packet is provided, which is applied to a sending end, and the method includes: Receiving packet loss indication information sent by the receiving end or the sending end high layer, wherein the packet loss indication information is used to indicate the discarding of a protocol data unit set or the discarding of the data packet; The protocol data unit set of the triggering protocol layer or a data packet in the protocol data unit set is discarded, and the protocol data unit set includes at least one of the data packets. In one implementation, triggering the protocol data unit set of the protocol layer or discarding a data packet in the protocol data unit set may refer to triggering a packet loss processing function of the protocol layer. Under this triggering, the protocol layer may execute the method in any implementation of the first aspect. In a third aspect, a method for discarding a data packet is provided, which is applied to a sending end, and the method includes: Receiving packet loss indication information sent by the receiving end, where the packet loss indication information is used to indicate the discarding of a protocol data unit set or the discarding of the data packet; Trigger the protocol layer to execute the method for discarding data packets as described in any implementation of the first aspect above. In a fourth aspect, a method for discarding a data packet is provided, which is applied to a receiving end, and the method includes: The configuration information is sent to the sending end, so that the sending end determines whether to discard the protocol data unit set or the data packet included in the protocol data unit set according to a preset judgment method based on at least one item in the configuration information; the configuration information includes at least one of a packet loss threshold, a packet loss ratio threshold, a packet loss timer, the first attribute information corresponding to the protocol data unit set, the second attribute information corresponding to the data packet, and a dependency identifier. In conjunction with the fourth aspect, in some implementations of the fourth aspect, the method further includes: The configuration information is configured at the granularity of a protocol layer entity; or, The configuration information is configured at a DRB granularity; or, The configuration information is configured with the protocol data unit set as the granularity; or, The configuration information is configured with the type of the protocol data unit set as the granularity, wherein the type of the protocol data unit set is at least one of the priority of the protocol data unit set, the importance level of the protocol data unit set, and the sequence number of the protocol data unit set. In combination with the fourth aspect, in certain implementations of the fourth aspect, the data structure of the configuration information is a sequence structure. In a fifth aspect, a transmitting end device is provided, including: one or more processors; one or more memories; The one or more memories store one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by the one or more processors, the terminal device executes the method described in any one of the implementation methods of the first to third aspects above. In a sixth aspect, a communication system is provided, comprising a transmitting device and a receiving device, wherein the transmitting device is used to execute a method as described in any implementation manner in the first to third aspects above, and the receiving device is used to execute a method as described in any implementation manner in the fourth aspect above. In the seventh aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable program instructions, and when the computer-executable program instructions are executed on a computer, the computer executes a method as described in any one of the implementation methods of the first to fourth aspects above. In an eighth aspect, a computer program product is provided, the computer program product comprising a computer program code, and when the computer program code is run on a computer, the computer is caused to execute the method as described in any one of the implementation modes of the first to fourth aspects above. BRIEF DESCRIPTION OF THE DRAWINGS FIG1 is a schematic diagram of the structure of a protocol data unit set provided in an embodiment of the present application. FIG2A is a schematic diagram of a system architecture applicable to a method for discarding data packets provided in an embodiment of the present application. FIG2B is a schematic diagram of the structure of a transmitting end device 100 provided in an embodiment of the present application. FIG3 is a schematic diagram of a protocol data unit set transmission process provided in an embodiment of the present application. FIG4 is a schematic flowchart of a method for discarding data packets provided in an embodiment of the present application. FIG5 is a schematic flowchart of another method for discarding data packets provided in an embodiment of the present application. FIG6 is a schematic flowchart of another method for discarding data packets provided in an embodiment of the present application. FIG. 7 is a schematic flowchart of another method for discarding data packets provided in an embodiment of the present application. FIG8 is a schematic flowchart of another method for discarding data packets provided in an embodiment of the present application. FIG. 9 is a schematic flowchart of another method for discarding data packets provided in an embodiment of the present application. FIG. 10 is a schematic diagram of a triggering flow of discard processing in a method for discarding data packets provided in an embodiment of the present application. FIG. 11 is a schematic flowchart of another method for discarding data packets provided in an embodiment of the present application. DETAILED DESCRIPTION It should be noted that the terms used in the implementation method part of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated obstacles, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two, "at least one" and "one or more" mean one, two or more than two. In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, it is defined that the "first" and "second" features may explicitly or implicitly include one or more of the features. References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing at different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. In order to facilitate understanding of the method for discarding data packets provided in the present application, firstly, the concepts or attributes that may be involved in the following embodiments are introduced. 1. Protocol Data Unit Collection According to the definition of SA, a protocol data unit set can be used as a data unit in the data transmission process. A protocol data unit set consists of one or more data packets, each of which can carry a payload that constitutes an information unit. The application layer at the receiving end can obtain a complete information unit based on the payload carried by all PDUs in a protocol data unit set, such as information corresponding to a video frame or a picture frame. In an embodiment of the present application, the data unit may include frames and video slices. Among them, a frame can be understood as a carrier of transmitted data, and a video slice can be understood as a specific type of data unit in a video service. From the perspective of the carrier of transmitted data, in some cases, a protocol data unit set can correspond to a frame; from the perspective of the type of transmitted data, in some cases, in a video service, the data carried by a protocol data unit set can correspond to a video slice. Generally speaking, the application layer at the receiving end needs to receive all the data packets in the protocol data unit set to obtain a complete information unit. Discarding one or more data packets may cause the receiving end to be unable to obtain the entire information unit. However, in some cases, the application layer at the receiving end can also calculate the discarded part of the data based on the acquired PDU data through certain algorithms, so that even if some (such as a small number or less important) PDUs are discarded, the application layer at the receiving end can still recover all or part of the information unit. SA proposed the concept of PDU set, which is defined as follows: PDU set:A PDU set is composed of one or more PDUs carrying the payload of one unit of information generated at the application level(ega frame or video slice for XRM Services,as used in TR 26.926
[0027] ).In some implementations all PDUs in a PDU set are needed by the application layer to use the corresponding unit of information.In other implementations,the application layer can still recover parts all or of the information unit,when some PDUs are missing. That is, a PDU set consists of one or more PDUs, which carry the payload of an information unit generated by the application layer, such as a frame or a video slice. The above definition shows that in some implementations, the application layer needs to receive all PDUs in the PDU set to obtain the information unit; in another implementation, the application layer can still recover all or part of the information unit when some PDUs are discarded. 2. Attribute information of protocol data unit set SA defines a variety of attribute information about protocol data unit sets and / or data packets, including, for example: the sequence number of the protocol data unit set, the total number of data packets included in the protocol data unit set, the importance level of the protocol data unit set, the priority of the protocol data unit set, the dependency / dependency relationship of the protocol data unit set; the sequence number of the data packet in the protocol data unit set, the position of the data packet in the protocol data unit set (such as the start data packet / end data packet, etc.), the importance level of the data packet, the priority of the data packet, etc. For example, taking the protocol data unit set as a PDU set, its corresponding attribute information can be expressed as: (1) PDU set sequence number (PDU Sequence number, SN); (2) Start / End PDU of the PDU set; (3) PDU sequence number within a PDU set; (4) Number of PDUs within a PDU set; (5) PDU set importance; (6) PDU set dependency. The above attribute information may be configured by the receiving end, or may be configured by the sending end itself, such as by the application layer, transport layer or high layer of the sending end, or by the core network. Exemplarily, the importance level of a data packet may mean that each PDU in the same protocol data unit set may have different importance levels. Generally speaking, the importance of the first data packet (i.e., the start data packet) in the protocol data unit set is higher than the importance of the last data packet (i.e., the last or end data packet). Exemplarily, the dependency of a protocol data unit set may mean that some protocol data unit sets may depend on other protocol data unit sets. For example, when a protocol data unit set corresponds to a video slice, the dependency of the protocol data unit set may be expressed as whether a video slice has use value depends on whether the previous video slice is successfully received. For another example, when a protocol data unit set corresponds to a video slice, the dependency of the protocol data unit set may be expressed as two video slices belong to the same frame, and the frame can only be correctly decoded after all the video slices in a frame are successfully decoded. In this case, only when the previous video slice (protocol data unit set) is successfully transmitted, the transmission of the next video slice (protocol data unit set) is meaningful. In addition, SA also defines related QoS requirements, including: (1) protocol data unit set delay budget, for example, for PDU set, it can be expressed as PDU set Delay Budget (PSDB); (2) protocol data unit set error rate, for example, for PDU set, it can be expressed as PDU set Error Rate (PSER). Combined with the above introduction, the protocol data unit set can be understood as a new transmission form for transmitting XR data streams (or other types of video / audio data streams). Based on the existing XR data streams that can be transmitted through QoS streams, the reason for proposing the protocol data unit set is mainly based on the following two reasons: Aspect 1: In the current XR topic discussion, the XR data stream may include different types of frames. Since different types of frames have different corresponding importance, there may be frames of different importance in an XR data stream (such as I frames, P frames, and B frames). Based on the current protocol, an XR data stream is transmitted in a QoS stream, and the current QoS processing is based on the QoS stream, so frames of different importance transmitted in a QoS stream may be subjected to the same QoS processing. But in fact, frames with lower importance may not require the same QoS processing as frames with higher importance. In view of this, it is necessary to propose a more fine-grained data stream transmission method to transmit frames of different importance separately. Aspect 2: For video streaming services, a data unit (such as a frame or video slice) that needs to be transmitted by the application layer or the transport layer usually includes multiple IP data packets, and an IP data packet may include at least one data packet (such as a PDU). Therefore, when transmitting a video frame, multiple data packets are actually transmitted. Therefore, based on the characteristics of the data units introduced in the second aspect and the requirements in the first aspect, SA proposes the concept of a protocol data unit set. A protocol data unit set can be used as a data unit, which can specifically correspond to a frame or a video slice. A protocol data unit set includes multiple data packets, each of which has a sequence number (such as PDU SN) that is different from other data packets, and the payloads carried by the multiple data packets can constitute information units (such as a video frame, a picture, etc.). Different protocol data unit sets can be set with different importance levels. For example, a protocol data unit set with a high importance level can be used to transmit frames of high importance, and a protocol data unit set with a low importance level can be used to transmit frames of lower importance, thereby realizing the separate transmission of frames of different importance so that these frames can be processed differently later. For example, taking the protocol data unit set as a PDU set and the data packet as a PDU as an example, the structure of a protocol data unit set can be shown in Figure 1, and the PDU set includes 8 PDUs, that is, the number of PDUs within the PDU set (Number of PDUs within a PDU set) is 8, and the PDU sequence numbers (PDU SN) of these 8 PDUs can be recorded as: PDU SN1, PDU SN2, ..., PDU SN8. It should be understood that the number of PDUs included in the protocol data unit set shown in Figure 1 and the representation of the PDU sequence number are only examples, and the embodiments of the present application are not limited to this. Combined with the introduction in the background technology, during the transmission process, due to the influence of network status or other factors, the protocol data unit set as a whole or some data packets in the protocol data unit set may be discarded. Different packet loss situations may have different effects on the application layer of the receiving end to obtain information units. For example, it can be divided into the following situations: Scenario 1: If one or more protocol data unit sets are discarded during the transmission process, the application layer at the receiving end cannot obtain the information units carried by the protocol data unit sets. Scenario 2: If some data packets in a protocol data unit set are discarded during the transmission process, and the application layer at the receiving end cannot obtain the information units carried by the protocol data unit set through the remaining data packets, then the remaining data packets in the protocol data unit set are no longer of use value and lose their function. Scenario 3: If a small number of packets or packets with a lower importance level in the protocol data unit set are discarded during the transmission process, but the application layer at the receiving end can calculate the data content carried by the discarded packets based on other PDUs received in the protocol data unit set, then discarding the packets will not affect the application layer's acquisition of the information units carried by the protocol data unit set. However, if the number of discarded PDUs reaches a certain number, or the importance level of the discarded packets is relatively high, the application layer at the receiving end still cannot obtain the information units carried by the protocol data unit set. It should be noted that the discarded data packets mentioned in the above three situations and similar situations below may refer to data packets discarded by other means. The other means here refer to the methods other than the data packet discarding method provided in the embodiments of the present application, such as: data packets discarded due to network status, communication status, etc.; or data packets discarded due to discard timer timeout; or data packets discarded after the transmission of data packets or protocol data unit sets is completed, etc. The embodiments of the present application are not limited to this. The data packets discarded in the protocol data unit set mentioned in this application can refer to the above explanation, and no special explanation will be given later. According to the exemplary situations listed above, it can be concluded that if data packets in one or more protocol data unit sets are discarded, or if one or more protocol data unit sets in multiple protocol data unit sets with dependencies are discarded, the entire protocol data unit set or multiple protocol data unit sets may fail to be transmitted. In this case, if the remaining data packets or protocol data unit sets are continuously transmitted, it will only lead to a waste of resources, and will not help in obtaining information units. In view of this, the present application provides a method for discarding data packets. When packet loss occurs during the transmission of a protocol data unit set, whether to discard the remaining data packets or protocol data unit sets is calculated based on information about the number of lost packets, time information about the arrival of data packets, and dependencies between protocol data unit sets. When the judgment result is to discard the protocol data unit set or data packet, the method can avoid the transmission of invalid data packets or protocol data unit sets for the protocol data unit set or data packet, thereby saving air interface resources. The method for discarding data packets provided in the embodiment of the present application can be applied to scenarios where audio stream data, video stream data or picture data are transmitted between the sender and the receiver under audio, video, picture and other services, such as XR scenarios. The method for discarding data packets provided in the embodiment of the present application can be applied to various types of communication systems, such as the fifth generation (5 th In addition, it can also be applied to universal mobile telecommunications system (UMTS), wireless local area network (WLAN), wireless fidelity (Wi-Fi) system, wired system, vehicle to everything (V2X) communication system, device-to-device (D2D) communication system, fourth generation (4G) communication system, and wireless communication system. th generation, 4G) mobile communication systems, satellite communication systems, and future communication systems, such as the sixth generation (6 th Generation, 6G) mobile communication system, etc. The embodiments of the present application are not limited to this. 2A is a schematic diagram of a system architecture 10 applicable to a method for discarding data packets provided in an embodiment of the present application. The system architecture includes a transmitting end device 100 and a receiving end device 200 (or a transmitting end and a receiving end). In some embodiments, the transmitting end device 100 can be used as a transmitting end of data packet transmission, and the receiving end device 200 can be used as a receiving end of data packet transmission. In the method for discarding data packets provided in the embodiment of the present application, the discarding process can be mainly performed by the transmitting end. In some embodiments, the transmitting device 100 can be various types of electronic devices, such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, cloud gaming (CG) devices, mixed reality (MR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), and other devices with audio / video and communication functions. The embodiment of the present application does not limit the type of the transmitting device. In some embodiments, the receiving device 200 may be a network device / core network device, for example, an access device for the transmitting device 100 to access the wireless communication system by wireless means. The receiving device 200 may be an entity on the network side for transmitting or receiving signals, such as a base station. The base station may broadly cover various names as follows, or be replaced with the following names, such as: NodeB, evolved NodeB (eNB), next generation NodeB (gNB), relay station, access point, transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), master station MeNB, secondary station SeNB, multi-standard radio (MSR) node, home base station, network controller, access node, access point (AP), transmission node, transceiver node, baseband unit (BBU), remote radio unit (RRU), active antenna unit (AAU), radio head (RRH), central unit (CU), distribution unit (DU), positioning node, etc. The base station may be a macro base station, a micro base station, a relay node, a donor node, or the like. The base station may also be used for a communication module, a modem, or a chip disposed in the aforementioned device or apparatus. The base station may also be a mobile switching center and a device that performs the base station function in device-to-device (D2D), vehicle-to-everything (V2X), and machine-to-machine (M2M) communications. The embodiments of the present application do not limit the specific technology and specific device form used by the network device. The following, in conjunction with the accompanying drawings, introduces the transmission process of the protocol data unit set involved in the method for discarding data packets provided in an embodiment of the present application. Exemplarily, as shown in FIG2B , it is a schematic diagram of the structure of a transmitting end device 100 provided in an embodiment of the present application. The sending device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the transmitting end device 100. In other embodiments of the present application, the transmitting end device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. In addition, the interface connection relationship between the modules illustrated in the embodiments of the present application is a schematic illustration and does not constitute a structural limitation on the transmitting end device 100. In other embodiments of the present application, the transmitting end device 100 may also adopt an interface connection method different from that in the above-mentioned embodiments, or a combination of multiple interface connection methods. The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors. The controller may be the nerve center and command center of the transmitting device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions. The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device. The wireless communication function of the transmitting device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the transmitting end device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch. The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the transmitting end device 100 . The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the sending end device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, the antenna 1 of the transmitting device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the transmitting device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS). The transmitting end device 100 implements the display function through the GPU, the display screen 194, and the application processor, etc. The display screen 194 is used to display images, videos, etc. The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the transmitting end device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external memory card. The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the sending end device 100 (such as audio data, a phone book, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device. Flash memory devices, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the sending end device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor. The transmitting end device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Exemplarily, as shown in FIG3 , a schematic diagram of a protocol data unit set transmission process provided in an embodiment of the present application is provided. In some embodiments, the process of transmitting a data packet in a protocol data unit set at the transmitting end may involve the following layers: service data adaptation protocol (SDAP) layer, packet data convergence protocol (PDCP) layer, radio link control protocol (RLC) layer and medium access control layer (MAC). However, it should be understood that in actual applications, the layers involved in the process of transmitting a data packet in a protocol data unit set at the transmitting end are not limited to the aforementioned ones. It should be noted that the protocol data unit set data packet mentioned in the embodiment of the present application can be an SDU data packet or a PDU data packet. The effective load carried by the SDU data packet and the PDU data packet can be the same, and the relationship between the two can be understood as follows: in the protocol layer, the PDU of this layer is the SDU of the lower layer, and the SDU of this layer is the PDU of the upper layer. In some embodiments, the process of transmitting a data packet of a protocol data unit set by the transmitting end may include: the SDAP layer obtains the IP data packet transmitted by its upper layer (application layer or transport layer), performs radio bearer (RB) processing on the basis of the IP data packet, and generates a data packet including a header and a physical part SDAP SDU (i.e., a payload), and the data packet can be marked as an SDAP PDU data packet. Afterwards, the SDAP layer transmits the SDAP PDU data packet to the PDCP layer. After the PDCP layer obtains the SDAP PDU data packet, it processes the data packet according to the PDCP protocol to generate a data packet including a header H and a physical part PDCP PDU, and the data packet can be marked as a PDCP PDU data packet. Afterwards, the PDCP layer further transmits the PDCP PDU data packet to the PLC layer. After the RLC layer obtains the PDCP PDU data packet, it processes the PDCP PDU data packet according to the RLC protocol to generate a data packet including a header H and a physical part RLC PDU, and the data packet can be marked as an RLC PDU data packet. Afterwards, the RLC layer further transmits the RLC PDU data packet to the MAC layer. After the MAC layer obtains the RLC PDU data packet, it processes the RLC PDU data packet according to the MAC protocol to generate a data packet including a header H and a physical part MAC PDU. The data packet can be marked as a MAC PDU data packet. According to the above process, the MAC layer can obtain multiple MAC PDU data packets corresponding to a data unit, and based on these MAC PDU data packets, the MAC can finally obtain a MAC PDU transport block (MAC PDU transport block) including multiple data packets. Afterwards, the MAC layer can transmit the generated MAC PDU transport block to the receiving end through air interface resources. In some embodiments, after receiving the protocol data unit, the receiving end may parse the protocol data unit according to the reverse process of generating the protocol data unit, so that the application layer of the receiving end can obtain the data carried by all PDUs in the protocol data unit set based on the parsed result, and then obtain the information unit according to the payload carried by all PDUs. The specific manner and process of parsing the data in the protocol data unit set by the receiving end can be set according to the relevant protocol or actual needs, and the embodiments of the present application are not limited to this. It should be noted that the method of parsing the protocol data unit set by the network device described in the embodiment of Figure 3 of the present application is only an example. In actual applications, the application layer of the receiving end can also obtain the data carried by the PDU in other ways, and the embodiment of the present application does not limit this. In addition, in the process of generating the protocol data unit set described in the embodiment of Figure 3 above, the specific method and processing content of the SDAP layer, PDCP layer, RLC layer and MAC layer processing the data packet can refer to the provisions in the relevant protocol, and the embodiment of the present application will not be described in detail. It is worth noting that in the method for discarding data packets provided in the embodiment of the present application, before performing discard processing on the protocol data unit set or PDU, it can be first determined whether to discard the protocol data unit set or the data packets included in the protocol data unit set according to one or more judgment methods. If it is determined to discard the protocol data unit set or the data packets included therein (that is, the judgment result is discard), then the protocol data unit set or the data packets included in the protocol data unit set will be discarded; if it is determined not to discard the protocol data unit set or the data packets included therein (that is, the judgment result is not discarded), then even if there is a discard phenomenon of the protocol data unit set, the protocol data unit set and the data packets included in the protocol data unit set will not be discarded. In some embodiments, the present application may have multiple judgment methods for judging whether a protocol data unit set or a data packet needs to be discarded. For example, the judgment may be made based on the following judgment basis: the number of data packets discarded in the protocol data unit set, the packet loss timer of the protocol data unit set, the first attribute information corresponding to the protocol data unit set, the second attribute information corresponding to the data packet, and the dependency between the protocol data unit set and other protocol data unit sets, wherein the attribute information is associated with whether the discard is allowed or not. The specific judgment process and discard process of each judgment method will be described in detail below and will not be described in detail here. In some embodiments, when it is determined to discard a protocol data unit set or a data packet included in the protocol data unit set, an operation of discarding the protocol data unit set or the data packet included in the protocol data unit set may also be performed in the protocol layer. Exemplarily, the protocol layer here may specifically be any one of the SDAP layer, the PDCP layer, the RLC layer or the MAC layer, which is not limited in the embodiments of the present application. In order to realize the judgment of whether to discard the protocol data unit set or the data packet included in the protocol data unit set, the protocol layer needs to perceive which protocol data unit set (or sub-QoS flow) the data packet in the protocol layer belongs to. Exemplarily, the above-mentioned perception purpose can be achieved by: the protocol layer obtains the attribute information of the data packet from the high layer, and then determines which protocol data unit set the data packet in the protocol layer belongs to based on the attribute information. Among them, the high layer here can include the application layer or the transport layer. The attribute information here can include the information defined by SA for the protocol data unit set, such as: the protocol data unit set sequence number, the start data packet and the end data packet in the protocol data unit set, the sequence number of each data packet in the protocol data unit set, the importance level of the data packet, the priority of the data packet, the total number of data packets in the protocol data unit set, the importance level of the protocol data unit set, the priority of the protocol data unit set, the dependency of the protocol data unit set, etc. In addition, the protocol layer can also obtain QoS requirement information from the high layer, such as: the delay budget of the protocol data unit set, the fault tolerance rate of the protocol data unit set, etc. Among them, the QoS requirement information can be the requirement information corresponding to the QoS flow for transmitting the protocol data unit set. In some embodiments, the protocol layer may obtain the above attribute information in a variety of ways, such as: Mode 1, the upper layer of the protocol layer may carry the above attribute information in a data packet and transmit it to the protocol layer; Mode 2, the upper layer of the protocol layer may transmit the data packet corresponding to the above attribute information to the protocol layer when or after transmitting the data packet. This application does not limit the specific way in which the protocol layer obtains the above attribute information. Considering that in this application, the protocol layer can be any one of the SDAP layer, the PDCP layer, the RLC layer or the MAC layer, the manner in which the protocol layer obtains the protocol data unit set attribute information can be divided into the following types: 1. If the SDAP layer is used for perception, the upper layer of the SDAP layer (such as the application layer or the transport layer or the upper protocol layer of the SDAP layer, which is not limited in this application) can indicate the above-mentioned attribute information corresponding to the protocol data unit set and / or the data packet to the SDAP layer. After the SDAP layer obtains the attribute information of the protocol data unit set and / or the data packet, it can encapsulate the attribute information in the SDAP PDU or notify the next protocol layer. 2. If the PDCP layer senses, the SDAP layer or the protocol layer above the PDCP layer can indicate the above attribute information corresponding to the protocol data unit set and / or data packet to the PDCP layer. After the PDCP layer obtains the attribute information of the protocol data unit set and / or data packet, it can encapsulate the attribute information in the PDCP PDU or notify the next protocol layer. 3. If the RLC layer perceives the packet, the PDCP layer may instruct the RLC layer to receive the above-mentioned attribute information corresponding to the protocol data unit set and / or the data packet. After the RLC layer obtains the attribute information of the protocol data unit set, it may encapsulate the attribute information in the RLC PDU or notify the next protocol layer. The following is an introduction to the process of determining whether a protocol data unit set or a data packet needs to be discarded by different judgment methods in combination with specific examples. For ease of understanding, the following takes the method for discarding a data packet provided in an embodiment of the present application as an example at the PDAC layer of the protocol layer. Exemplarily, the method for discarding data packets provided in the embodiment of the present application can judge the discarding condition from one or more aspects of the number of packet losses corresponding to the protocol data unit set, the packet loss timer of the protocol data unit set, the first attribute information corresponding to the protocol data unit set, the second attribute information corresponding to the data packet, and the dependency relationship between the protocol data unit set and other protocol data unit sets. Exemplarily, the specific judgment methods can be divided into the following: Judgment method 1: determine whether to discard the protocol data unit set or the data packets included therein according to the number of lost packets of the protocol data unit set. Judgment method 2: determining whether to discard the protocol data unit set or the data packets included therein according to the packet loss ratio of the protocol data unit set. Judgment method 3: determining whether to discard the protocol data unit set or the data packets included therein according to whether the packet loss timer set for the protocol data unit set times out. Judgment method 4: comprehensively determine whether to discard the protocol data unit set or the data packets included therein according to the number of packet losses for the protocol data unit set and the corresponding packet loss timer of the protocol data unit set. Judgment method 5: Determine whether to discard the protocol data unit set or the data packets included therein according to whether the data packet with specific attribute information in the protocol data unit set is discarded, and the specific attribute information is associated with not allowing discarding. Judgment method 6: for a protocol data unit set with dependency (or dependency relationship), determine whether to discard the protocol data unit set or the data packets included therein according to whether the associated protocol data unit set is lost or the number of lost packets. For ease of understanding, the following embodiments are described by taking the transmitting end as a user equipment (UE) and the receiving end as a network device as an example. For example, please refer to FIG. 4, which is a schematic flow chart of a method for discarding a data packet provided in an embodiment of the present application. The method for determining whether a packet is lost in the process may correspond to the above-mentioned determination method 1, that is, determining whether to discard the protocol data unit set or the data packets included therein according to the number of packet losses of the protocol data unit set. The process may include the following steps: S401: The network device sends a packet loss threshold to the UE. Here, the network device sending the packet loss threshold to the UE can also be understood as the network device configuring the packet loss threshold to the UE. Among them, the packet loss threshold is used to indicate the maximum threshold of the number of data packets that the protocol data unit set can allow to be discarded. The maximum threshold of the number of data packets that the protocol data unit set can allow to be discarded here means that when the number of discarded data packets in the protocol data unit set is less than the threshold, it may not affect the network device application layer to obtain the information unit carried by the protocol data unit set. For example, the number of discarded data packets is small, and the network device can calculate the content carried by the discarded data packets based on the content of the data packets that have not been discarded, thereby obtaining the complete information unit. When the number of discarded data packets in the protocol data unit set is greater than or equal to the threshold, the network device may not be able to obtain the complete information unit based on the payload carried by the remaining data packets. It should be noted that for judgment method 1, the embodiment of Figure 4 of the present application shows the process of configuring the packet loss threshold by the network device, but in actual applications, the packet loss threshold can also be configured by the higher layer of the UE (such as the application layer or the transport layer), or it can also be configured by the core network device, and the embodiment of the present application does not limit this. In some embodiments, the configuration granularity of the packet loss threshold is to configure each data radio bearer (DRB) separately, that is, the configuration granularity is per DRB, that is, the DRB configuration includes the packet loss threshold, and different DRBs may correspond to different packet loss thresholds; or, the configuration granularity of the packet loss threshold is to configure each protocol layer entity, that is, the protocol layer entity configuration includes the packet loss threshold, and different types of protocol layer entities (such as SDAP, PDCP, RLC, etc.) may correspond to different packet loss thresholds; or, the configuration granularity of the packet loss threshold is to configure each protocol data unit set separately, for example, the configuration granularity is per protocol data unit set, that is, the protocol data unit set configuration includes the packet loss threshold, and different protocol data unit sets may correspond to different packet loss thresholds; or, the configuration granularity of the packet loss threshold is to configure each type of protocol data unit set separately, that is, the protocol data unit set type configuration includes the packet loss threshold, and different types of protocol data unit sets may correspond to different packet loss thresholds. The embodiment of the present application does not specifically limit the configuration granularity of the packet loss threshold. It should be noted that the type of the protocol data unit set mentioned above may be the importance level of the protocol data unit set, the priority of the protocol data unit set, and the sequence number of the protocol data unit set, which is not limited in the embodiments of the present application. In some embodiments, if the configuration granularity of the packet loss threshold is per protocol data unit set or per protocol data unit set type, the packet loss thresholds corresponding to the protocol data unit set or the protocol data unit set type respectively may be a sequence structure. In some embodiments, the data type of the packet loss threshold configured by the network device may be an enumeration type or an integer type. In some embodiments, the network device may configure the packet loss threshold through Radio Resource Control (RRC) signaling, MAC Control Element (MAC CE), and downlink control information (DCI). In some embodiments, the packet loss threshold configured by the network device may be included in a data radio bearer (DRB) or a protocol layer entity configuration. S402, obtaining the number of lost packets of data packets in a protocol data unit set, and when the number of lost packets of data packets in the protocol data unit set reaches or exceeds a packet loss threshold, discarding the protocol data unit set or the data packets included therein. In some embodiments, the UE may determine the maximum number of data packets allowed to be discarded by the current protocol data unit set based on the packet loss threshold sent by the network device. In some embodiments, the UE may determine the number of packet losses of the current protocol data unit set based on the count value in the packet loss counter, and when the number of packet losses reaches the packet loss threshold, the protocol data unit set is discarded. Exemplarily, the process may include: the UE may maintain a packet loss counter for the current protocol data unit set, and when the protocol data unit set discards a data packet, the count value of the packet loss counter is increased by 1; when the count value of the packet loss counter is equal to the packet loss threshold or equal to (packet loss threshold + 1), the UE may discard the protocol data unit set or the data packets included therein. When the protocol data unit set has been transmitted and the count value of the packet loss counter corresponding to the protocol data unit set has not reached the packet loss threshold, the protocol data unit set is not discarded. It should be noted that discarding the protocol data unit set or the data packets included therein may refer to discarding the data packets in the protocol data unit set that are not discarded. Among them, the above-mentioned discarding of the data packets that are not discarded in the protocol data unit set may include two types: (1) refers to the client (such as the protocol layer of the client) discarding the data packets in the protocol data unit set that have been received; (2) the client (such as the protocol layer of the client) discards the data packets in the protocol data unit set that have not been received, that is, once it is determined that the protocol data unit set needs to be discarded, then when the data packets after the protocol data unit set are received, they can be directly discarded. In some embodiments, when the count value of the packet loss counter reaches the packet loss threshold, the UE can release the count value in the packet loss counter, or clear the count value in the packet loss counter. When the protocol data unit set has been transmitted and the count value of the packet loss counter corresponding to the protocol data unit set has not reached the packet loss threshold, the UE can also release the count value in the packet loss counter, or clear the count value in the packet loss counter. In some embodiments, for a data packet that has been successfully transmitted to the network device (e.g., the UE receives a status report for the data packet, indicating that the data packet has been successfully transmitted), if it is discarded, since the packet loss in this case will not affect the network device's acquisition of the information unit, the packet loss will not be counted in the packet loss counter. In other words, the packet loss counter will not count the data packets that are discarded after successful transmission. In some embodiments, there are multiple ways to determine whether a protocol data unit set has been transmitted, such as: Method 1, based on whether the last data packet in the protocol data unit set has been received or transmitted to the next layer, if so, determining that the transmission is complete; Method 2, based on the received data packet belonging to the protocol data unit set, determining whether the last data packet in the protocol data unit set has been received and all data packets in the protocol data unit set have been transmitted, all of which include data packets that have been successfully transmitted and actively discarded after receiving a feedback message from a network device, and data packets that have been discarded according to a discard timer, or all of which include data packets that have been successfully transmitted and actively discarded after receiving a feedback message from a network device, and data packets that have been transmitted to the next layer. In some embodiments, it should be noted that the packet loss counter is configured in confirmation mode. The confirmation mode includes receiving indication information (or status report) fed back by the receiving end after transmitting the data packet, and the indication information indicates whether the data packet is successfully transmitted or whether retransmission is required. The confirmation mode includes AM mode or HARQ transmission mode or SN status report, which is not limited in this application. Taking the entity being a PDCP entity and the protocol data unit set being a PDU set as an example, the discarding process corresponding to the above-mentioned judgment method 1 is further introduced by way of example. For example, for AM DRB, after the PDCP entity of the UE receives the PDCP SDU, it can determine that the PDU set to which the PDCP SDU belongs is PDU set 1 according to the PDU set sequence number (assuming it is 1) corresponding to the PDCP SDU, and can determine that the PDCP SDU is the first data packet of PDU set 1 according to the PDU SN (assuming it is 1) corresponding to the PDCP SDU. After that, the UE starts the discard timer corresponding to the PDCP SDU. (discard timer), and maintain a packet loss counter for the PDU set 1. The PDCP entity of the UE will continue to receive other PDCP SDUs of the PDU set 1, and the PDCP entity will start the corresponding discard timer (discard timer) for each PDCP SDU. It should be noted that the discard timer here can be timed for the UE to receive the status report fed back by the network device for the data packet, or it can be timed for the time when the UE discards the cached data packet. Among them, when the network device receives the data packet (that is, the data packet is successfully transmitted to the network device), the network device will feedback the status report (or feedback message) corresponding to the data packet to the UE, informing the UE that the data packet has been successfully transmitted; after the UE obtains the information, it will discard the cached data packet. If the UE discards the corresponding data packet when the discard timer (discard timer) times out, it means that the data packet has not been successfully transmitted. In some embodiments, if the PDCP receives a status report corresponding to the PDCP SDU and indicates that the PDCP SDU is successfully transmitted, the PDCP SDU is discarded; in this case, the packet loss occurs after the data packet is successfully transmitted, and thus the packet loss will not be counted by the packet loss counter. In other words, the counter in the embodiment of the present application will count the packet loss in the case of unsuccessful transmission. In some embodiments, if the discard timer corresponding to the PDCP SDU times out, the PDCP SDU is discarded. It can be explained that when the discard timer times out, the PDCP entity does not receive a status report fed back by the network device for the PDCP SDU, then the PDCP entity can determine that the PDCP SDU is discarded in the case of unsuccessful transmission. Based on this, if the PDCP SDU is discarded because its corresponding discard timer times out, in another case, if the protocol introduces other packet discarding methods and the method does not include discarding due to successful transmission of the packet, then the method generates a discarded packet, and the packet loss counter counts, and the count value increases by 1. When the packet loss counter maintained by the PDCP entity for the PDU set 1 exceeds the packet loss threshold, it is considered that the data packet of the PDU set 1 needs to be discarded, wherein the discarding process may include: 1) discarding the data packet of the PDU set 1 that has been received and not discarded; 2) for the subsequently received data packet, judging whether it belongs to the data packet of the PDU set 1, if it belongs to the data packet of the PDU set 1, discarding the data packet. In other embodiments, if the data packets of the PDU set 1 have been completely transmitted and the discarded data packets do not exceed the packet loss threshold, the UE may release or clear the packet loss counter. According to the method for discarding data packets provided in the present application, when packet loss occurs during the transmission of a protocol data unit set, whether it is necessary to transmit the remaining data packets or protocol data unit sets is calculated based on information on the number of lost packets, time information on the arrival of data packets, and dependencies between protocol data unit sets. If there is no need to continue transmitting, the protocol data unit set or data packet is discarded. This method can avoid the transmission of invalid data packets or protocol data unit sets, thereby saving air interface resources. For example, please refer to FIG. 5, which is a schematic flow chart of another method for discarding data packets provided in an embodiment of the present application. The method for determining whether a packet is lost in the process may correspond to the above-mentioned determination method 2, that is, determining whether to discard the protocol data unit set or the data packets included therein according to the packet loss ratio of the protocol data unit set. The process may include the following steps: S501: The network device sends a packet loss ratio threshold to the UE. Here, the network device sending the packet loss ratio threshold to the UE can also be understood as the network device configuring the packet loss ratio threshold to the UE. Among them, the packet loss ratio threshold is used to indicate the maximum ratio of data packets that can be discarded in the protocol data unit set. The maximum ratio of data packets that can be discarded in the protocol data unit set mentioned here means that when the ratio of the number of discarded data packets in the protocol data unit set to the total number of data packets in the protocol data unit set is less than the packet loss ratio threshold, it may not affect the network device application layer to obtain the information unit carried by the protocol data unit set. For example, the number of discarded data packets is small, and the network device can calculate the content carried by the discarded data packets based on the content of the data packets that have not been discarded, thereby obtaining the complete information unit. When the ratio of the number of discarded data packets in the protocol data unit set to the total number of data packets in the protocol data unit set is greater than or equal to the packet loss ratio threshold, the network device may not be able to obtain the complete information unit based on the payload carried by the remaining data packets. It should be noted that for judgment method 2, the embodiment of Figure 5 of the present application shows the process of configuring the packet loss ratio threshold by the network device, but in actual applications, the packet loss ratio threshold can also be configured by the higher layer of the UE (such as the application layer or the transport layer), or it can also be configured by the core network, and the embodiment of the present application does not limit this. In some embodiments, the configuration granularity of the packet loss ratio threshold is to configure each data radio bearer (DRB) separately, that is, the configuration granularity is per DRB, that is, the DRB configuration includes the packet loss ratio threshold, and different DRBs may correspond to different packet loss ratio thresholds; or, the configuration granularity of the packet loss ratio threshold is to configure each protocol layer entity, that is, the protocol layer entity configuration includes the packet loss ratio threshold, and different types of protocol layer entities (such as SDAP, PDCP, RLC, etc.) may correspond to different packet loss ratio thresholds; or, the configuration granularity of the packet loss ratio threshold is to configure each protocol data unit set separately, that is, the configuration granularity is per protocol data unit set, that is, the protocol data unit set configuration includes the packet loss ratio threshold, and different protocol data unit sets may correspond to different packet loss ratio thresholds; or, the configuration granularity of the packet loss ratio threshold is to configure each type of protocol data unit set separately, that is, the protocol data unit set type configuration includes the packet loss ratio threshold, and different types of protocol data unit sets may correspond to different packet loss ratio thresholds. The embodiment of the present application does not specifically limit the configuration granularity of the packet loss ratio threshold. It should be noted that the type of the protocol data unit set mentioned above may be the importance level of the protocol data unit set, the priority of the protocol data unit set, the sequence number of the protocol data unit set, etc. This embodiment of the present application does not limit this. In some embodiments, the network device may configure the packet loss threshold through RRC signaling, MAC CE, or DCI. In some embodiments, the packet loss ratio threshold configured by the network device may be included in a data radio bearer (DRB) or a protocol layer entity configuration. S502: Obtain a packet loss ratio corresponding to a protocol data unit set, and when the packet loss ratio of the protocol data unit set reaches or exceeds a packet loss ratio threshold, discard the protocol data unit set or data packets included therein. In some embodiments, the UE may determine a packet loss ratio threshold corresponding to the current protocol data unit set according to a packet loss threshold sent by a network device. In some embodiments, the UE may determine the number of packet losses of the current protocol data unit set according to the count value in the packet loss counter, and determine the packet loss ratio according to the ratio of the number of packet losses to the total number of data packets in the protocol data unit set. When the packet loss ratio reaches or exceeds the packet loss ratio threshold, the protocol data unit set or the data packets included therein are discarded. Exemplarily, the process may include: the UE may maintain a packet loss counter for the current protocol data unit set. When the UE determines that the protocol data unit set discards a data packet, the count value of the packet loss counter is increased by 1, and the packet loss ratio of the protocol data unit set is obtained; as the number of packet losses increases, the packet loss ratio will also increase. When the packet loss ratio is equal to or greater than the packet loss ratio threshold, the UE may discard the data packets in the protocol data unit set that have not been discarded. When the protocol data unit set has been transmitted and the packet loss ratio corresponding to the protocol data unit set has not reached the packet loss ratio threshold, the protocol data unit set will not be discarded. Among them, the data packets that are not discarded in the protocol data unit set that can be discarded by the UE mentioned above may include: (1) data packets in the protocol data unit set that have been received by the protocol layer; (2) data packets in the protocol data unit set that have not been received by the protocol layer, that is, once it is determined that the protocol data unit set needs to be discarded, the protocol layer can directly discard the data packets after receiving the protocol data unit set. In some embodiments, when the packet loss ratio reaches the packet loss ratio threshold, the UE may release the count value in the packet loss counter, or clear the count value in the packet loss counter. When the protocol data unit set has been transmitted and the packet loss ratio corresponding to the protocol data unit set has not reached the packet loss ratio threshold, the UE may also release the count value in the packet loss counter, or clear the count value in the packet loss counter. In some embodiments, for a data packet that has been successfully transmitted to the network device (e.g., the UE receives a status report for the data packet, indicating that the data packet has been successfully transmitted), if the protocol layer actively discards it, then since the packet loss in this case will not affect the network device's acquisition of the information unit, the packet loss will not be counted in the packet loss counter. In other words, the packet loss counter will not count the data packets that are discarded after successful transmission. In some embodiments, there are multiple ways to determine whether a protocol data unit set has been transmitted, such as: Method 1, based on whether the last data packet in the protocol data unit set has been received or transmitted to the next layer, if so, determining that the transmission is complete; Method 2, based on the received data packet belonging to the protocol data unit set, determining whether the last data packet in the protocol data unit set has been received and all data packets in the protocol data unit set have been transmitted, all of which include data packets that have been successfully transmitted and actively abandoned after receiving a feedback message from a network device, and data packets that have been discarded according to a discard timer, or all of which include data packets that have been successfully transmitted and actively discarded after the protocol layer receives a feedback message from a network device, and data packets that have been transmitted to the next layer. Taking the entity being a PDCP entity and the protocol data unit set being a PDU set as an example, the discarding process corresponding to the above-mentioned judgment method 2 is further introduced by way of example. Exemplarily, for AM DRB, after the PDCP entity of the UE receives the PDCP SDU, it can determine that the PDU set to which the PDCP SDU belongs is PDU set 1 according to the PDU set sequence number (assuming it is 1) corresponding to the PDCP SDU, and can determine that the PDCP SDU is the first data packet of PDU set 1 according to the PDU SN (assuming it is 1) corresponding to the PDCP SDU. Afterwards, the UE starts the discard timer corresponding to the PDCP SDU, and maintains the packet loss counter for the PDU set 1. Subsequently, the PDCP entity of the UE will continue to receive other PDCP SDUs of the PDU set 1, and the PDCP entity will start the corresponding discard timer for each PDCP SDU. It should be noted that the discard timer here can be timed for the UE to receive the status report fed back by the network device for the data packet, or it can be timed for the UE to discard the cached data packet. Among them, when the network device receives the data packet (that is, the data packet is successfully transmitted to the network device), the network device will feedback the status report (or feedback message) corresponding to the data packet to the UE, informing the UE that the data packet has been successfully transmitted; after the UE obtains the information, it will discard the cached data packet. If the UE discards the corresponding data packet when the discard timer times out, it means that the data packet has not been successfully transmitted. In some embodiments, if the PDCP receives a status report corresponding to the PDCP SDU and indicates that the PDCP SDU is successfully transmitted, the PDCP SDU is discarded; in this case, the packet loss occurs after the data packet is successfully transmitted, and thus the packet loss will not be counted by the packet loss counter. In other words, the counter in the embodiment of the present application will count the packet loss in the case of unsuccessful transmission. In some embodiments, if the discard timer corresponding to the PDCP SDU times out, the PDCP SDU is discarded. It can be explained that when the discard timer times out, the PDCP does not receive a status report fed back by the network device for the PDCP SDU, then the PDCP entity can determine that the PDCP SDU is discarded in the case of unsuccessful transmission. Based on this, if the PDCP SDU is discarded because its corresponding discard timer times out, in another case, if the protocol introduces other data packet discarding methods and the method does not include discarding due to successful data packet transmission, then the method generates a discarded data packet, and the packet loss counter counts, and the count value increases by 1. When the ratio of the count value of the packet loss counter maintained by the PDCP entity for the PDU set 1 to the total number of PDCP SDUs included in the PDU set exceeds the corresponding packet loss ratio threshold, it is considered that the data packets of the PDU set 1 need to be discarded, wherein the discarding process may include: 1) discarding the data packets of the PDU set 1 that have been received and not yet discarded; 2) judging whether the subsequently received data packets belong to the data packets of the PDU set 1, and if they belong to the data packets of the PDU set 1, discarding the data packets. In other embodiments, if the data packets of the PDU set 1 have been transmitted, and the ratio of the corresponding number of packet losses to the total number of PDCP SDUs included in the PDU set does not exceed the packet loss threshold, the UE may release or clear the packet loss counter. It should be noted that, before configuring the packet loss counter, the UE may first determine whether at least one data packet of the protocol data unit set has been successfully received. Only after determining that one or more data packets in the protocol data unit set have been successfully received by the UE, will the UE configure the packet loss counter. Alternatively, before configuring the packet loss counter, the UE may first determine whether at least one data packet of the protocol data unit set has been successfully transmitted to the network device (such as determining whether a feedback message of successful data packet transmission sent by the network device has been received). Only after determining that one or more data packets in the protocol data unit set have been successfully transmitted to the network device, will the UE configure the packet loss counter. According to the method for discarding data packets provided in the present application, when packet loss occurs during the transmission of a protocol data unit set, whether it is necessary to transmit the remaining data packets or protocol data unit sets is calculated based on information on the number of lost packets, time information on the arrival of data packets, and dependencies between protocol data unit sets. If there is no need to continue transmitting, the protocol data unit set or data packet is discarded. This method can avoid the transmission of invalid data packets or protocol data unit sets, thereby saving air interface resources. For example, please refer to FIG. 6, which is a schematic flow chart of another method for discarding data packets provided in an embodiment of the present application. The method for determining whether a packet is lost in the process may correspond to the above-mentioned determination method 3, that is, determining whether to discard the protocol data unit set or the data packets included therein according to whether the packet loss timer set for the protocol data unit set has timed out. The process may include the following steps: S601: The network device sends a packet loss timer to the UE. Here, the network device sending the packet loss timer to the UE can also be understood as the network device configuring the packet loss timer to the UE. The packet loss timer is used to indicate the packet loss time of the protocol data unit set. In one implementation, the packet loss time can be understood as the allowable transmission time of the protocol data unit set. It should be noted that for method 3 of determining whether a packet is lost, the embodiment of Figure 6 of the present application shows the process of configuring the packet loss timer by the network device, but in actual applications, the packet loss timer can also be configured by the higher layer of the UE (such as the application layer or the transport layer), or it can also be configured by the core network. The embodiment of the present application does not limit this. In some embodiments, the configuration granularity of the packet loss timer is configured for each data radio bearer (DRB), that is, the configuration granularity is per DRB, that is, the DRB configuration includes a packet loss timer, and different DRBs may correspond to different packet loss timers; or, the configuration granularity of the packet loss timer is configured for each protocol layer entity, that is, the protocol layer entity configuration includes a packet loss timer, and different types of protocol layer entities (such as SDAP, PDCP, RLC, etc.) may correspond to different packet loss timers; or, the configuration granularity of the packet loss timer is configured for each protocol data unit set, that is, the configuration granularity is per protocol data unit set, that is, the protocol data unit set configuration includes a packet loss timer, and different protocol data unit sets may correspond to different packet loss timers; or, the configuration granularity of the packet loss timer is configured for each type of protocol data unit set, that is, the protocol data unit set type configuration includes a packet loss timer, and different types of protocol data unit sets may correspond to different packet loss timers. The embodiment of the present application does not specifically limit the configuration granularity of the packet loss timer. In some embodiments, the network device may configure the packet loss timer via RRC signaling, MAC CE, or DCI. In some embodiments, the packet loss timer configured by the network device may be included in a data radio bearer (DRB) or a protocol layer entity configuration. S602, when the first data packet of the protocol data unit set is received, a packet loss timer is started; when the packet loss timer times out and the data packet of the protocol data unit set has not been transmitted, or the packet loss timer times out, the protocol data unit set or the data packets included therein are discarded. In some embodiments, when the first data packet of a protocol data unit set is received, a packet loss timer is started. Among them, the method of determining that the received data packet is the first data packet in the protocol data unit set may include: after receiving the data packet, judging whether the data packet is the starting data packet of the protocol data unit set, and if so, indicating that the data packet is the first data packet in the protocol data unit set. Alternatively, after receiving the data packet, judging whether the data packet sequence number corresponding to the data packet is the first data packet in the protocol data unit set. Alternatively, after the protocol layer entity receives the data packet, it judges that it has not received a data packet of the protocol data unit set before, then the data packet is the first data packet in the protocol data unit set. This application is not limited. In some embodiments, when the packet loss timer times out and the data packet of the protocol data unit set has not been completely transmitted, the protocol data unit set or the data packet included therein is discarded. Alternatively, in other embodiments, when the packet loss timer times out, the protocol data unit set or the data packet included therein is discarded. Among them, the manner of determining that the data packet of the protocol data unit set has not been completely transmitted may include the following: In some embodiments, there are multiple ways to determine whether a protocol data unit set has been transmitted, such as: Method 1, based on whether the last data packet in the protocol data unit set has been received or transmitted to the next layer, if so, determining that the transmission is complete; Method 2, based on the received data packet belonging to the protocol data unit set, determining whether the last data packet in the protocol data unit set has been received and all data packets in the protocol data unit set have been transmitted, all of which include data packets that have been successfully transmitted and actively discarded after receiving a feedback message from a network device, and data packets that have been discarded according to a discard timer, or all of which include data packets that have been successfully transmitted and actively discarded after the protocol layer receives a feedback message from a network device, and data packets that have been transmitted to the next layer. It is worth noting that the packet loss timer and the discard timer in the embodiments of the present application are two different concepts and need to be understood separately. In some embodiments, if the transmission of the data packet of the protocol data unit set is completed before the packet loss timer times out, the packet loss timer may be stopped, or the packet loss timer may be released, or the packet loss timer may be cleared. In some embodiments, if the packet loss timer expires, the protocol data unit set may be discarded. In some embodiments, discarding a protocol data unit set may specifically refer to discarding the data packets in the protocol data unit set that have not been discarded. The data packets in the protocol data unit set that have not been discarded may include: (1) data packets in the protocol data unit set that have been received by the client (such as the client's protocol layer); (2) data packets in the protocol data unit set that have not been received by the client, that is, once it is determined that the protocol data unit set needs to be discarded, the client (such as the client's protocol layer) may directly discard the data packets after receiving the protocol data unit set. Taking the PDCP entity as an example, the discard processing process corresponding to the above-mentioned method 3 for determining whether a packet is lost is further introduced by way of example. Exemplarily, after the PDCP entity of the UE receives the PDCP SDU, it can determine that the protocol data unit set to which the PDCP SDU belongs is protocol data unit set 1 according to the protocol data unit set sequence number (assuming it is 1) corresponding to the PDCP SDU, and can determine that the protocol data unit set to which the PDCP SDU belongs is protocol data unit set 1 according to the PDU SN (assuming it is 1) corresponding to the PDCP SDU. It is determined that the PDCP SDU is the first data packet of protocol data unit set 1. After that, the UE starts the discard timer corresponding to the PDCP SDU, and at the same time starts the corresponding packet loss timer for the protocol data unit set 1. The PDCP entity of the UE will continue to receive other PDCP SDUs of the protocol data unit set 1, and the PDCP entity will also start the corresponding discard timer for each PDCP SDU. In some embodiments, if the packet loss timer times out and there are data packets of the protocol data unit set 1 that have not been discarded at the PDCP layer, the protocol data unit set 1 is discarded and the data packets in the protocol data unit set 1 that have not been discarded are directly discarded. In some embodiments, in the mode of data packet confirmation transmission (that is, the network device will feedback to the UE after receiving the data packet), if all data packets of the protocol data unit set 1 have been transmitted (including data packets that have been discarded by the PDCP entity or data packets that have been successfully transmitted), the packet loss timer is stopped. In the mode of data packet non-confirmation, if all data packets of the protocol data unit set 1 have been transmitted (transmitted to the next layer or discarded), the packet loss timer is stopped. According to the method for discarding data packets provided in the present application, when packet loss occurs during the transmission of a protocol data unit set, whether it is necessary to transmit the remaining data packets or protocol data unit sets is calculated based on information on the number of lost packets, time information on the arrival of data packets, and dependencies between protocol data unit sets. If there is no need to continue transmitting, the protocol data unit set is discarded. This method can avoid the transmission of invalid data packets or protocol data unit sets, thereby saving air interface resources. Exemplarily, please refer to FIG. 7, which is a schematic flow chart of another method for discarding data packets provided in an embodiment of the present application. The method for determining whether a packet is lost in the process may correspond to the above-mentioned determination method 4, that is, whether to discard the protocol data unit set or the data packets included therein is determined comprehensively based on the number of packet losses for the protocol data unit set and the corresponding packet loss timer of the protocol data unit set. The process may include the following steps: S701: The network device sends a packet loss threshold and a packet loss timer to a UE. Here, the network device sending the packet loss threshold and the packet loss timer to the UE can also be understood as the network device configuring the packet loss threshold and the packet loss timer to the UE. The meanings of the packet loss threshold and the packet loss timer can be referred to the introduction in the embodiment of FIG. 4 and the embodiment of FIG. 6 above, and will not be repeated here. It should be noted that for method 4 of determining whether packet loss occurs, the embodiment of Figure 7 of the present application shows the process of configuring the packet loss threshold by the network device, but in actual applications, the packet loss threshold can also be configured by the higher layer of the UE (such as the application layer or the transport layer), or it can also be configured by the core network device, and the embodiment of the present application does not limit this. The configuration granularity of the packet loss threshold and the packet loss timer can be found in the description of the embodiments of FIG. 4 and FIG. 6 above, and will not be described in detail here. Among them, the way in which the network device sends the packet loss threshold and the packet loss timer to the UE can be respectively referred to the introduction in the above-mentioned embodiments of Figure 4 and Figure 6, and will not be repeated here. S702, when the packet loss timer times out and the protocol data unit set or the data packet has not been transmitted; and / or when the number of packet losses of the protocol data unit set reaches or exceeds the packet loss threshold, discard the protocol data unit set or the data packet included therein. It should be noted that the main difference between the embodiment of the present application and the above-mentioned embodiments of Figure 4 and Figure 6 is that the UE will simultaneously use a packet loss counter to count whether the number of packet losses in the protocol data unit set reaches the packet loss threshold, and use a packet loss timer to count whether the data packet of the protocol data unit set is transmitted within the timing time. These two methods are used to comprehensively determine whether to discard the protocol data unit set. In some embodiments, when it is determined that the number of packet losses in a protocol data unit set reaches or exceeds the packet loss threshold, and / or it is determined that the data packets of the protocol data unit set have not been transmitted when the packet loss timer times out, the protocol data unit set or the data packets included therein may be discarded. Alternatively, when it is determined that the number of packet losses in a protocol data unit set reaches or exceeds the packet loss threshold, and / or the packet loss timer times out, the protocol data unit set or the data packets included therein may be discarded. That is, only at least one of the two discard conditions needs to be met to discard the protocol data unit set. Specifically, if the packet loss timer times out, but the count value counted by the packet loss counter does not reach the packet loss threshold, the protocol data unit set or the data packets included therein are discarded. If the count value counted by the packet loss counter reaches or exceeds the packet loss threshold, but the packet loss timer does not time out, the protocol data unit set or the data packets included therein are also discarded. If the count value counted by the packet loss counter reaches the packet loss threshold and the packet loss timer times out, the protocol data unit set or the data packets included therein are also discarded. It should be understood that the discard processing in the embodiments of the present application may refer to discarding the protocol data unit set or the data packets included therein. As an example, taking the protocol data unit set as a PDU set and the data packet as a PDU, in the method for discarding data packets corresponding to the judgment method 4, an exemplary process may include the following: (1) determining the packet loss threshold and packet loss timer of the PDU set. When the number of data packets discarded in the PDU set (that is, the number of packet losses in the PDU set) reaches (or exceeds) the packet loss threshold, the data packets of the PDU set can be directly discarded; or when the packet loss timer times out, the data packets of the PDU set that have not been discarded are discarded; (2) after receiving the first data packet of the PDU set, starting the packet loss timer; the first data packet is determined by receiving a start PDU (a data packet indicating the start) in the PDU set, or receiving the first data packet belonging to the PDU set; (3) maintaining a packet loss counter for the PDU set during the start time of the packet loss timer. When a data packet of the PDU set is discarded, the packet loss counter is incremented by 1. When the packet loss counter exceeds the packet loss threshold (the timer has not timed out), the PDU can be directly discarded. (4) when the packet loss timer times out, but the packet loss counter does not exceed the packet loss threshold, discard the data packets of the PDU set that have not been discarded; (5) as described above, when one of the two conditions is met, discard the PDU set; or both conditions must be met at the same time, discard the PDU set. Among them, for the detailed process of implementing the embodiments of the present application, such as the configuration method of the packet loss threshold, the activation method of the packet loss timer, the discard processing method, etc., please refer to the relevant introduction in the embodiments of Figure 4 and Figure 6 above, and will not be repeated here. It should be noted that the embodiment of Figure 7 only takes the example of determining whether to discard the protocol data unit set or the data packets included therein based on the packet loss timer and the packet loss threshold. In other embodiments, it can also be determined whether to discard the protocol data unit set or the data packets included therein based on the packet loss timer and the packet loss ratio threshold, or it can be determined whether to discard the protocol data unit set or the data packets included therein by a combination of the other two judgment bases. The embodiments of the present application are not limited to this. According to the method for discarding data packets provided in the present application, when packet loss occurs during the transmission of a protocol data unit set, whether it is necessary to transmit the remaining data packets or protocol data unit sets is calculated based on information on the number of lost packets, time information on the arrival of data packets, and dependencies between protocol data unit sets. If there is no need to continue transmitting, the protocol data unit set is discarded. This method can avoid the transmission of invalid data packets or protocol data unit sets, thereby saving air interface resources. Exemplarily, please refer to FIG. 8, which is a schematic flow chart of another method for discarding data packets provided in an embodiment of the present application. The method for determining whether a packet is lost in the process may correspond to the above-mentioned determination method 5, that is, whether to discard the protocol data unit set or the data packets included therein is determined based on whether a data packet with specific attribute information in the protocol data unit set is discarded, and the specific attribute is associated with not allowing discarding. The process may include the following steps: S801, the network device sends first attribute information of a protocol data unit set and / or second attribute information corresponding to a data packet to a UE. The first attribute information is associated with allowing discarding or not allowing discarding, and the second attribute information is associated with allowing discarding or not allowing discarding. Here, the network device sends the first attribute information of the protocol data unit set to the UE, and / or the second attribute information corresponding to the data packet, which can also be understood as the network device configuring the first attribute information of the protocol data unit set and / or the second attribute information corresponding to the data packet to the UE. In some embodiments, the network device may configure a protocol data unit set and / or a data packet with attribute information associated with allowable discard in a variety of ways, including: (1) the network device may set the protocol data unit set and / or the data packet according to the priority and importance of the protocol data unit set and / or the data packet, such as associating a higher priority or a higher importance with not allowing discard, that is, setting a data packet with a higher priority or a higher importance as a protocol data unit set and / or a data packet that is not allowed to be discarded; (2) the network device may also set the data packet according to the position of the data packet in the protocol data unit set, such as associating a strat PDU with not allowing discard, that is, setting a data packet as a strat PDU as a data packet that is not allowed to be discarded; (3) the network device may also set the protocol data unit set and / or the data packet according to the sequence number of the protocol data unit set and / or the data packet, such as associating a PDU SN of 1 to m (m is an integer greater than 1) with not allowing discard, that is, setting a data packet with a PDU SN of 1 to m as a data packet that is not allowed to be discarded, etc. Similarly, the network device may also set the protocol data unit set and / or the data packet that is allowed to be discarded in the protocol data unit set according to the priority, importance, sequence number, etc. of the protocol data unit set and / or the data packet. Optionally, when the network device is configured with packets that are allowed to be discarded in the protocol data unit set, then the packets in the protocol data unit set that are not configured to be allowed to be discarded can be regarded as packets that are not allowed to be discarded. For example, if the network device configures the PDUs in the protocol data unit set whose PDU SNs are a to b (a and b are both integers greater than or equal to 1, and b is greater than a) as discardable packets, then the other PDUs in the protocol data unit set whose PDU SNs are not any of the sequence numbers from a to b can be regarded as packets that are not allowed to be discarded. It should be noted that for judgment method 5, the embodiment of Figure 8 of the present application shows the process of configuring the packet loss threshold by the network device, but in actual applications, the packet loss threshold can also be configured by the higher layer of the UE (such as the application layer or the transport layer), or it can also be configured by the core network, and the embodiment of the present application does not limit this. S802: After the UE determines that a data packet in a protocol data unit set having attribute information associated with not allowing discarding is discarded, the UE discards the protocol data unit set or the data packets included therein. In some embodiments, if the UE obtains discardable data packets sent by a network device, then when the UE detects that one or more data packets that do not belong to these discardable data packets are discarded, the protocol data unit set can be discarded. Alternatively, if the UE obtains discardable data packets sent by a network device, the UE can determine which non-discardable data packets are based on all PDUs included in the protocol data unit set, and then when the UE detects that one or more non-discardable data packets are discarded, the protocol data unit set can be discarded. Alternatively, if the EU obtains non-discardable data packets sent by a network device, when the UE detects that one or more non-discardable data packets are discarded, the protocol data unit set can be directly discarded. Among them, the manner in which the UE discards the protocol data unit set can refer to the relevant introduction in the embodiments of Figures 4 to 6 above, and will not be repeated here. According to the method for discarding data packets provided in the present application, when packet loss occurs during the transmission of a protocol data unit set, whether it is necessary to transmit the remaining data packets or protocol data unit sets is calculated based on information on the number of lost packets, time information on the arrival of data packets, and dependencies between protocol data unit sets. If there is no need to continue transmitting, the protocol data unit set is discarded. This method can avoid the transmission of invalid data packets or protocol data unit sets, thereby saving air interface resources. For example, please refer to FIG. 9, which is a schematic flow chart of another method for discarding data packets provided in an embodiment of the present application. The method for determining whether a packet is lost in the process may correspond to the above-mentioned determination method 6, that is, for a set of protocol data units with dependencies, whether to discard the set of protocol data units or the data packets included therein is determined based on whether the associated set of protocol data units is lost or the number of lost packets. The process may include the following steps: S901: A network device sends a dependency identifier of a first protocol data unit set to a UE. The protocol data unit set that the first protocol data unit set depends on is recorded as the second protocol data unit set. The network device sending the dependency identifier of the first protocol data unit set to the UE can also be understood as the network device configuring the dependency identifier of the first protocol data unit set to the UE. The dependency relationship here can also be described as dependency, and two or more protocol data unit sets with a dependency relationship can have the same dependency identifier, which is used to indicate other protocol data unit sets that are mutually dependent on the protocol data unit set. The first protocol data unit set and the second protocol data unit set here are only distinguished from each other, and the first and second do not represent the order or quantity of the protocol data unit sets. Specifically, the dependency between the first protocol data unit set and the second protocol data unit set can be understood as: the application or role of the first protocol data unit set depends on the successful transmission of the second protocol data unit set. When the second protocol data unit set is successfully transmitted, the first protocol data unit set is necessary to be transmitted; and if the second protocol data unit set is not successfully transmitted, the first protocol data unit set is no longer valuable to be used even if it is successfully transmitted. For example, taking I frames and P frames as an example, the application of P frames needs to be implemented on the basis of I frame data, that is, only when I frames are successfully transmitted, P frames are necessary to be transmitted. If I frames are not successfully transmitted, there is no need for P frames to continue to be transmitted. Optionally, the first protocol data unit set may depend on one or more second protocol data unit sets. When the first protocol data unit set depends on more than one second protocol data unit set, if any second protocol data unit set is discarded, there is no need to continue transmitting the first protocol data unit set, and the first protocol data unit set may be discarded. In some embodiments, there may be multiple ways for a network device to configure dependencies between protocol data unit sets, such as: (1) configuring dependency identification (ID) for dependent protocol data unit sets, and the protocol data unit sets configured with the same dependency ID are mutually dependent; (2) configuring a certain protocol data unit set (such as a first protocol data unit set) with the identification of the protocol data unit set (such as a second protocol data unit set) on which it depends, such as carrying the ID of the second protocol data unit set in the first protocol data unit set; (3) configuring the number of protocol data unit sets with dependencies that are allowed to be discarded. It should be understood that the three dependency configuration methods introduced above can be configured in the protocol data unit set at the same time, or can be configured in the protocol data unit set partially. The embodiments of the present application do not limit this. S902: After the UE determines that packet loss occurs in the second protocol data unit set, the UE discards the first protocol data unit set. In some embodiments, the UE may determine that the first protocol data unit set has a dependency relationship with the second protocol data unit set based on the dependency relationship (such as a dependency identifier) of the received first protocol data unit set, and then determine whether to discard the first protocol data unit set based on the dependency relationship. Exemplarily, the UE may determine whether to discard the first protocol data unit set based on the dependency relationship in a variety of ways, such as: (1) When the UE determines that the second protocol data unit set has been discarded (the determination method can be referred to the above related embodiments), based on the dependency identifier of the second protocol data unit set, the subsequent first protocol data unit set with the corresponding dependency identifier is discarded. (2) When the UE receives the first protocol data unit set, it determines that the first protocol data unit set depends on the second protocol data unit set based on its corresponding dependency identifier. If it is determined that the second protocol data unit set has been discarded, the first protocol data unit set is discarded. (3) Based on the dependency identifier of the first protocol data unit set, it is determined whether the number of packet loss of the protocol data unit set with the same dependency identifier has exceeded a preset threshold. If exceeded, the first protocol data unit set is discarded. Among them, the manner in which the UE discards the protocol data unit set can refer to the relevant introduction in the embodiments of Figures 4 to 6 above, and will not be repeated here. According to the method for discarding data packets provided in the present application, when packet loss occurs during the transmission of a protocol data unit set, whether it is necessary to transmit the remaining data packets or protocol data unit sets is calculated based on information on the number of lost packets, time information on the arrival of data packets, and dependencies between protocol data unit sets. If there is no need to continue transmitting, the protocol data unit set is discarded. This method can avoid the transmission of invalid data packets or protocol data unit sets, thereby saving air interface resources. It should be noted that, after the protocol layer (such as the PDCP layer) discards a certain protocol data unit set, the protocol layer needs to notify the lower layer to also discard the data packets of the protocol data unit set. For example, after the PDCP layer discards the protocol data unit set, it notifies the RLC layer to discard the data packets related to the protocol data unit set cached by the RLC layer. However, in some embodiments, if the data packets of the protocol data unit set have been transmitted to the next layer (MAC layer) by RLC, then RLC can notify the MAC layer of the attribute information of the protocol data unit set (such as the sequence number of the protocol data unit set, the sequence number of the PDU in the protocol data unit set, the start PDU / end PDU in the protocol data unit set, etc.), and can notify the MAC layer that if the data packets related to the protocol data unit set have not been transmitted on the air interface, then there is no need to schedule the protocol data unit set, or there is no need to wait for the scheduling resources corresponding to the protocol data unit set. In response to the notification of the RLC layer, the MAC can determine whether the protocol data unit set has been transmitted on the air interface. If the protocol data unit set has not been transmitted on the air interface, the MAC will no longer wait for the scheduling resources corresponding to the protocol data unit set, or will no longer schedule the protocol data unit set. In other embodiments, if the data packets of the protocol data unit set have been transmitted by RLC to the next layer (MAC layer), the MAC layer may not discard the relevant data packets. For example, when the protocol data unit set in the MAC layer has been transmitted over the air interface, the protocol data unit set is no longer discarded. It should be noted that the discard processing flow shown in the embodiments of Figures 4 to 9 above is only a schematic example. In actual application, the discard processing flow may also include more or fewer steps, and the embodiments of the present application are not limited to this. The following is an introduction to the process of triggering the discarding of a protocol data unit set in conjunction with the accompanying drawings. As an example, as shown in FIG10 , a schematic diagram of the triggering process of discarding processing in a method for discarding a data packet provided in an embodiment of the present application is provided. The process may include the following steps: S1001, a network device sends discard indication information of a protocol data unit set to a sending end device. Among them, the network device here sends the discard indication information of the protocol data unit set to the UE, which can also be understood as the network device configuring the discard indication information of the protocol data unit set to the UE. Exemplarily, the discard indication information of the protocol data unit set configured by the network device, and its corresponding data structure can be an enumeration type or a Boolean type. Among them, the enumeration content can be true, for example, it can be expressed as: PDUsetDiscard ENUMERATED{true}. However, the embodiment of the present application does not limit the specific data structure of the discard indication information. Exemplarily, the discard indication information may be carried in a variety of messages sent by the network device to the sending end device, or may be sent to the sending end device as a separate message. This embodiment of the present application does not limit this. S1002: The sending end device receives discard indication information of a protocol data unit set or a data packet, triggering discard of the protocol data unit set or the data packet. In some embodiments, when the transmitting end device receives the discard indication information, it can start the service of discarding the protocol data unit set in response to the discard indication information. When it is determined that the protocol data unit set meets the discard processing conditions during the transmission of the protocol data unit set, the protocol layer can be triggered to discard the protocol data unit set. Among them, the method of determining whether the protocol data unit set meets the discard processing conditions and the process of discarding the protocol data unit set can refer to the relevant introduction above, which will not be repeated here. According to the method for discarding data packets provided in the present application, when packet loss occurs during the transmission of a protocol data unit set, whether it is necessary to transmit the remaining data packets or protocol data unit sets is calculated based on information on the number of lost packets, time information on the arrival of data packets, and dependencies between protocol data unit sets. If there is no need to continue transmitting, the protocol data unit set is discarded. This method can avoid the transmission of invalid data packets or protocol data unit sets, thereby saving air interface resources. It should be noted that the discard processing flow shown in the embodiment of Figure 10 above is only an illustrative example. In actual application, the discard processing flow may also include more or fewer steps, and the embodiment of the present application does not limit this. As shown in Figure 11, it is a schematic flow chart of a method for discarding a data packet provided in an embodiment of the present application. The execution subject of the process may be a sending end device, and specifically may include the following steps: S1101, judging whether to discard a protocol data unit set or a data packet included in the protocol data unit set according to a preset judgment method, wherein the judgment basis adopted by the preset judgment method includes the number of packet losses corresponding to the protocol data unit set, the packet loss timer of the protocol data unit set, the first attribute information corresponding to the protocol data unit set, the second attribute information corresponding to the data packet, and at least one of the dependencies between the protocol data unit set and other protocol data unit sets; the attribute information is associated with whether to allow discarding or not, and the protocol data unit set includes one or more of the data packets. In one implementation, the data packet may include a PDU data packet or an SDU data packet, but this application is not limited to this. In one implementation, discarding the protocol data unit set or the data included in the protocol data unit set may include: discarding the data packets in the protocol data unit set that have not been discarded. The data packets that have not been discarded may refer to data packets that have been received but not discarded by the sender; or, may refer to data packets in the protocol data unit set that have not been received, that is, if it is determined that the data packets in the protocol data unit set need to be discarded, the data packets in the protocol data unit set may be directly discarded after being received. In some embodiments, the protocol data unit set may correspond to a PDU set, but is not limited thereto. In some embodiments, allowing to discard means that a set of protocol data units or data packets can be discarded, which will not cause the set of protocol data units or data packets in the set of protocol data units to be discarded. Not allowing to discard means that a set of protocol data units or data packets are not allowed to be discarded, and if discarded, it will cause the set of protocol data units or data packets in the set of protocol data units to be discarded. In some embodiments, the association of attribute information with allowing discarding or not allowing discarding means that the data packet or protocol data unit set with the attribute information belongs to the type of data packet or protocol data unit set that is allowed to be discarded; or the data packet or protocol data unit set with the attribute information belongs to the type of data packet or protocol data unit set that is not allowed to be discarded. For example, if the high priority attribute is associated with not allowing discarding, then the data packet protocol data unit set with a high priority belongs to the data packet or protocol data unit set that is not allowed to be discarded. If discarding occurs, it needs to be discarded, and the corresponding protocol data unit set or other data packets in the protocol data unit set will be discarded. In some embodiments, the transmitting end may be a user equipment, but is not limited thereto. In some embodiments, determining whether to discard a protocol data unit set or a data packet included in the protocol data unit set according to a preset judgment method may also mean determining whether a protocol data unit set or a data packet included in the protocol data unit set meets a discarding condition according to a preset judgment method, and when the discarding condition is met, discarding the protocol data unit set or the data packet included in the protocol data unit set. S1102: If it is determined according to a preset judgment method that a protocol data unit set or a data packet included in the protocol data unit set is to be discarded, the protocol data unit set or the data packet is discarded. As an embodiment, the first attribute information includes at least one of the sequence number corresponding to the protocol data unit set, the total number of the data packets included in the protocol data unit set, the importance level of the protocol data unit set, the priority of the protocol data unit set, and the dependency relationship of the protocol data unit set; the second attribute information includes at least one of the data packet sequence number corresponding to the data packet, the position of the data packet in the protocol data unit set, the importance level of the data packet, and the priority of the data packet. As an embodiment, when the judgment basis adopted by the preset judgment method is the number of packet losses corresponding to the protocol data unit set, the method specifically includes: obtaining the packet loss threshold corresponding to the protocol data unit set; obtaining the number of packet losses corresponding to the protocol data unit set; if the number of packet losses reaches or exceeds the packet loss threshold, discarding the protocol data unit set or the data packet. As an embodiment, obtaining the packet loss threshold corresponding to the protocol data unit set specifically includes: receiving first configuration information sent by a receiving end, the first configuration information is used to indicate the packet loss threshold, and the receiving end is used to receive the data packet; or, obtaining the packet loss threshold pre-configured by the sending end itself; or, receiving the packet loss threshold sent by the high layer of the sending end through the protocol layer of the sending end itself; or, receiving second configuration information sent by a core network, the second configuration information is used to indicate the packet loss threshold. In one implementation, the packet loss ratio threshold pre-configured by the transmitting end itself may be a statically configured packet loss ratio threshold; the packet loss threshold sent by the transmitting end high layer may be a dynamically configured packet loss ratio threshold. As an embodiment, when the packet loss threshold is configured by the transmitting end itself, the method further includes: configuring the packet loss threshold with a protocol layer entity as the granularity; or, configuring the packet loss threshold with a data radio bearer DRB as the granularity; or, configuring the packet loss threshold with a protocol data unit set as the granularity; or, configuring the packet loss threshold with a type of the protocol data unit set as the granularity, wherein the type of the protocol data unit set is at least one of the priority of the protocol data unit set, the importance level of the protocol data unit set, and the sequence number of the protocol data unit set. As an embodiment, when the judgment basis adopted by the preset judgment method is the number of packet losses corresponding to the protocol data unit set, the method specifically includes: obtaining a packet loss ratio threshold corresponding to the protocol data unit set; obtaining the number of packet losses corresponding to the protocol data unit set; obtaining the packet loss ratio corresponding to the protocol data unit set based on the ratio of the number of packet losses to the total number of the data packets included in the protocol data unit set; if the packet loss ratio reaches or exceeds the packet loss ratio threshold, discarding the protocol data unit set or the data packet. As an embodiment, the obtaining of the packet loss ratio threshold corresponding to the protocol data unit set specifically includes: receiving third configuration information sent by a receiving end, the third configuration information being used to indicate the packet loss ratio threshold, and the receiving end being used to receive the data packet; or, obtaining the packet loss ratio threshold pre-configured by the sending end itself; or, receiving the packet loss ratio threshold sent by the high layer of the sending end through the protocol layer of the sending end itself; or, receiving fourth configuration information sent by a core network, the fourth configuration information being used to indicate the packet loss ratio threshold. As an embodiment, when the packet loss ratio threshold is configured by the sending end itself, the method also includes: configuring the packet loss ratio threshold with the protocol layer entity as the granularity; or, configuring the packet loss ratio threshold with the DRB as the granularity; or, configuring the packet loss ratio threshold with the protocol data unit set as the granularity; or, configuring the packet loss ratio threshold with the type of the protocol data unit set as the granularity, wherein the type of the protocol data unit set is at least one of the priority of the protocol data unit set, the importance level of the protocol data unit set, and the sequence number of the protocol data unit set. As an embodiment, the obtaining of the number of packet losses corresponding to the protocol data unit set specifically includes: setting a packet loss counter, the packet loss counter being used to count the number of the data packets discarded in the protocol data unit set; adding 1 to the count value of the packet loss counter each time a data packet in the protocol data unit set is discarded; and obtaining the number of packet losses corresponding to the protocol data unit set according to the count value of the packet loss counter. As an embodiment, when the packet loss counter counts the number of the data packets discarded in the protocol data unit set, the method further includes: the packet loss counter does not count the data packets that are successfully transmitted and discarded. As an embodiment, the method also includes: when the protocol data unit set or the data packet is discarded, releasing or clearing the packet loss counter; or, when the number of packet losses corresponding to the protocol data unit set does not reach or exceed the packet loss threshold, and the transmission of the protocol data unit set and / or the data packet is completed, releasing or clearing the packet loss counter; or, when the ratio of the number of packet losses corresponding to the protocol data unit set to the total number of data packets included in the protocol data unit set does not reach or exceed the packet loss ratio threshold, and the transmission of the protocol data unit set and / or the data packet is completed, releasing or clearing the packet loss counter; or, when the ratio of the count value of the counter to the total number of data packets included in the protocol data unit set reaches or exceeds the corresponding packet loss ratio threshold, releasing or clearing the packet loss counter; or, when the count value of the counter reaches or exceeds the packet loss threshold, releasing or clearing the packet loss counter. As an embodiment, the method further includes: when the data packet is successfully transmitted, setting the packet loss counter. As an embodiment, when the judgment basis adopted by the preset judgment method is the packet loss timer of the protocol data unit set, the method specifically includes: obtaining the packet loss timer corresponding to the protocol data unit set; when the packet loss timer times out, discarding the protocol data unit set or the data packet; or, when the packet loss timer times out, if the protocol data unit set or the data packet has not been transmitted, discarding the protocol data unit set or the data packet. As an embodiment, the method further includes: when the first data packet in the protocol data unit set is received, starting the packet loss timer. As an embodiment, the method further includes: when the transmission time of the protocol data unit set exceeds the packet loss timing time of the packet loss timer, discarding the protocol data unit set or the data packet. As an embodiment, obtaining the packet loss timer corresponding to the protocol data unit set specifically includes: receiving the fifth configuration information sent by the receiving end, the fifth configuration information is used to indicate the packet loss timer, and the receiving end is used to receive the data packet; or, obtaining the packet loss timer pre-configured by the sending end itself; or, receiving the packet loss timer sent by the high layer of the sending end through the protocol layer of the sending end itself; or, receiving the sixth configuration information sent by the core network, and the sixth configuration information is used to indicate the packet loss timer. As an embodiment, the method also includes: when the protocol data unit set or the data packet is discarded, the packet loss timer is released or cleared; or, when the packet loss timer has not timed out and the transmission of the protocol data unit set and / or data packet is completed, the packet loss timer is released or cleared; or, when the packet loss timer times out, the packet loss timer is released or cleared. As an embodiment, when the judgment basis adopted by the preset judgment method is the number of packet losses corresponding to the protocol data unit set and the packet loss timer, the method specifically includes: obtaining the packet loss threshold corresponding to the protocol data unit set and the packet loss timer corresponding to the protocol data unit set; obtaining the number of packet losses corresponding to the protocol data unit set; if the number of packet losses exceeds the packet loss threshold, and / or if the packet loss timer times out, the protocol data unit set or the data packet is not transmitted, discarding the protocol data unit set or the data packet; or, if the number of packet losses exceeds the packet loss threshold, and / or if the packet loss timer times out, discarding the protocol data unit set or the data packet. As an embodiment, the protocol data unit set or the data packet is not completely transmitted, which specifically includes: the sending end has the data packet in the protocol data unit set. As an embodiment, when the judgment basis adopted by the preset judgment method is the first attribute information corresponding to the protocol data unit set and / or the second attribute information corresponding to the data packet, the method specifically includes: when the first attribute information corresponding to the protocol data unit set is associated with the not allowed discard, if the protocol data unit set with the first attribute information is discarded, then the protocol data unit set or the data packet is discarded; or, when the second attribute information corresponding to the data packet is associated with the not allowed discard, if the data packet with the second attribute information is discarded, then the protocol data unit set or the data packet is discarded. As an embodiment, the method also includes: obtaining the seventh configuration information sent by the receiving end, the seventh configuration information is used to indicate the first attribute information corresponding to the protocol data unit set, and / or the second attribute information corresponding to the data packet, and the receiving end is used to receive the data packet; or, obtaining the first attribute information corresponding to the protocol data unit set pre-configured by the sending end itself, and / or the second attribute information corresponding to the data packet; or, receiving the first attribute information corresponding to the protocol data unit set sent by the high layer of the sending end through the protocol layer of the sending end itself, and / or the second attribute information corresponding to the data packet; or, receiving the eighth configuration information sent by the core network, the eighth configuration information is used to indicate the first attribute information corresponding to the protocol data unit set, and / or the second attribute information corresponding to the data packet. As an embodiment, when the judgment basis adopted by the preset judgment method is the dependency relationship between the protocol data unit set and other protocol data unit sets, the method specifically includes: obtaining a first protocol data unit set and having a dependency relationship with at least one second protocol data unit set; based on the dependency relationship, if the second protocol data unit set is obtained and discarded, discarding the first protocol data unit set or the data packet included in the first protocol data unit set; or, based on the dependency relationship, if the number of the second protocol data unit sets that are discarded reaches a preset threshold, discarding the first protocol data unit set or the data packet included in the first protocol data unit set. As an embodiment, the acquisition of at least one second protocol data unit set having a dependency relationship with the first protocol data unit set specifically includes: receiving ninth configuration information sent by a receiving end, the ninth configuration information being used to indicate a dependency identifier, the receiving end being used to receive the data packet transmitted by the sending end; or, acquiring a dependency identifier pre-configured by the sending end itself; or, receiving a dependency identifier sent by a high layer of the sending end through the protocol layer of the sending end itself; or, receiving the tenth configuration information sent by a core network, the tenth configuration information being used to indicate a dependency identifier; wherein the dependency identifier is used to indicate other protocol data unit sets that are mutually dependent on the protocol data unit set. As an embodiment, the method also includes: receiving packet loss indication information sent by the receiving end or the high layer of the sending end, the packet loss indication information is used to instruct the sending end to trigger the discarding of a set of protocol data units or the discarding of the data packet; triggering the discarding of the set of protocol data units or the discarding of the data packet at the protocol layer. As an embodiment, if it is determined according to a preset judgment method to discard a protocol data unit set or a data packet included in the protocol data unit set, then the protocol data unit set or the data packet included in the protocol data unit set is discarded, specifically including: if the protocol layer of the sending end device determines according to a preset judgment method to discard a protocol data unit set or a data packet included in the protocol data unit set, then the protocol data unit set or the data packet is discarded. As an embodiment, the method also includes: when the protocol layer entity of the sending device determines to discard the protocol data unit set or the data packet, if the data packet of the protocol data unit set has been transmitted to the next layer corresponding to the protocol layer, then the protocol layer entity sends a notification message to the protocol layer entity of the next layer, and the notification message is used to instruct the protocol layer entity of the next layer to discard the data packet. Based on the same technical concept, an embodiment of the present application also provides a method for discarding data packets, which is applied to a receiving end, and the method includes: sending the configuration information to the sending end, so that the sending end determines whether to discard the protocol data unit set or the data packet included in the protocol data unit set according to a preset judgment method based on at least one item in the configuration information; the configuration information includes a packet loss threshold, a packet loss ratio threshold, a packet loss timer, the first attribute information corresponding to the protocol data unit set, the second attribute information corresponding to the data packet, and at least one of a dependency identifier. As an example, the method also includes: configuring the configuration information with a protocol layer entity as the granularity; or, configuring the configuration information with a DRB as the granularity; or, configuring the configuration information with a protocol data unit set as the granularity; or, configuring the configuration information with a type of the protocol data unit set as the granularity, wherein the type of the protocol data unit set is at least one of the priority of the protocol data unit set, the importance level of the protocol data unit set, and the sequence number of the protocol data unit set. As an example, the data structure of the configuration information is a sequence structure. Based on the same technical concept, an embodiment of the present application also provides a method for discarding data packets, which is applied to a sending end, and the method includes: receiving packet loss indication information sent by the receiving end, and the packet loss indication information is used to indicate that the sending end triggers the discarding of a protocol data unit set or the discarding of the data packet; triggering the discarding of the protocol data unit set of the protocol layer or the data packet in the protocol data unit set, and the protocol data unit set includes at least one of the data packets. Based on the same technical concept, an embodiment of the present application also provides a method for discarding data packets, which is applied to a sending end, and the method includes: receiving packet loss indication information sent by the receiving end, and the packet loss indication information is used to instruct the sending end to trigger the discarding of a set of protocol data units or the discarding of the data packet; triggering the protocol layer to execute the method for discarding data packets as described in any of the above embodiments. Based on the same technical concept, an embodiment of the present application also provides a sending end device, including one or more processors; one or more memories; the one or more memories store one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by the one or more processors, the sending end device executes one or more steps in any of the above methods. Based on the same technical concept, an embodiment of the present application also provides a communication system, including a sending end device and a receiving end device, wherein the sending end device is used to execute one or more steps in any one of the above methods, and the receiving end is used to receive the data packet in the protocol data unit set transmitted by the sending end. Based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable program instructions. When the computer-executable program instructions are executed on a computer, the computer or processor executes one or more steps in any of the above methods. Based on the same technical concept, an embodiment of the present application also provides a computer program product comprising instructions, wherein the computer program product includes computer program code. When the computer program code runs on a computer, the computer or processor executes one or more steps in any of the above methods. In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc. Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes. The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
Claims
1. A method for discarding a data packet, characterized in that: Applied to the sending end, the method includes: Determine whether to discard a protocol data unit set or a data packet included in the protocol data unit set according to a preset judgment method, wherein the judgment basis adopted by the preset judgment method includes at least one of the number of packet losses corresponding to the protocol data unit set, the packet loss timer of the protocol data unit set, the first attribute information corresponding to the protocol data unit set, the second attribute information corresponding to the data packet, and the dependency relationship between the protocol data unit set and other protocol data unit sets; the attribute information is associated with whether to allow discarding or not to allow discarding, and the protocol data unit set includes one or more of the data packets; If it is determined according to a preset judgment method to discard the protocol data unit set or the data packet included in the protocol data unit set, the protocol data unit set or the data packet is discarded.
2. The method according to claim 1, characterized in that The first attribute information includes at least one of a sequence number corresponding to the protocol data unit set, a total number of the data packets included in the protocol data unit set, an importance level of the protocol data unit set, a priority of the protocol data unit set, and a dependency relationship of the protocol data unit set; The second attribute information includes at least one of a data packet sequence number corresponding to the data packet, a position of the data packet in the protocol data unit set, an importance level of the data packet, and a priority level of the data packet.
3. The method according to claim 1, characterized in that When the judgment basis adopted by the preset judgment method is the number of packet losses corresponding to the protocol data unit set, the method specifically includes: Obtaining a packet loss threshold corresponding to the protocol data unit set; Obtaining the number of packet losses corresponding to the protocol data unit set; If the number of packet losses reaches or exceeds the packet loss threshold, the protocol data unit set or the data packet is discarded.
4. The method according to claim 3, characterized in that The obtaining the packet loss threshold corresponding to the protocol data unit set specifically includes: receiving first configuration information sent by a receiving end, where the first configuration information is used to indicate the packet loss threshold, and the receiving end is used to receive the data packet; or, Acquire the packet loss threshold pre-configured by the sending end itself; or, Receiving the packet loss threshold sent by the high layer of the sending end through the protocol layer of the sending end itself; or Receive second configuration information sent by the core network, where the second configuration information is used to indicate the packet loss threshold.
5. The method according to claim 3 or 4, characterized in that: When the packet loss threshold is configured by the transmitting end itself, the method further includes: The packet loss threshold is configured at the granularity of a protocol layer entity; or, The packet loss threshold is configured with a data radio bearer (DRB) as a granularity; or, The packet loss threshold is configured based on the protocol data unit set as the granularity; or, The packet loss threshold is configured based on the granularity of the type of the protocol data unit set, wherein the type of the protocol data unit set is at least one of the priority of the protocol data unit set, the importance level of the protocol data unit set, and the sequence number of the protocol data unit set.
6. The method according to claim 1, characterized in that When the judgment basis adopted by the preset judgment method is the number of packet losses corresponding to the protocol data unit set, the method specifically includes: Obtaining a packet loss ratio threshold corresponding to the protocol data unit set; Obtaining the number of packet losses corresponding to the protocol data unit set; Obtaining a packet loss ratio corresponding to the protocol data unit set according to a ratio of the number of packet losses to the total number of data packets included in the protocol data unit set; If the packet loss ratio reaches or exceeds the packet loss ratio threshold, the protocol data unit set or the data packet is discarded.
7. The method according to claim 6, characterized in that The obtaining of the packet loss ratio threshold corresponding to the protocol data unit set specifically includes: receiving third configuration information sent by a receiving end, wherein the third configuration information is used to indicate the packet loss ratio threshold, and the receiving end is used to receive the data packet; or, Acquire the packet loss ratio threshold pre-configured by the sending end itself; or, Receiving the packet loss ratio threshold sent by the high layer of the sending end through the protocol layer of the sending end itself; or, Receive fourth configuration information sent by the core network, where the fourth configuration information is used to indicate the packet loss ratio threshold.
8. The method according to claim 6 or 7, characterized in that: When the packet loss ratio threshold is configured by the transmitting end itself, the method further includes: The packet loss ratio threshold is configured at the granularity of the protocol layer entity; or, The packet loss ratio threshold is configured with DRB as the granularity; or, The packet loss ratio threshold is configured based on the protocol data unit set as the granularity; or, The packet loss ratio threshold is configured based on the granularity of the type of the protocol data unit set, wherein the type of the protocol data unit set is at least one of the priority of the protocol data unit set, the importance level of the protocol data unit set, and the sequence number of the protocol data unit set.
9. The method according to any one of claims 3 to 8, characterized in that: The obtaining the number of packet losses corresponding to the protocol data unit set specifically includes: Setting a packet loss counter, wherein the packet loss counter is used to count the number of the data packets discarded in the protocol data unit set; Each time a packet in the protocol data unit set is obtained to be discarded, the count value of the packet loss counter is increased by 1; The number of packet losses corresponding to the protocol data unit set is obtained according to the count value of the packet loss counter.
10. The method according to claim 9, characterized in that When the packet loss counter counts the number of the data packets discarded in the set of protocol data units, the method further comprises: The packet loss counter does not count the data packets that are successfully transmitted and discarded.
11. The method according to claim 9 or 10, characterized in that: The method further comprises: When the protocol data unit set or the data packet is discarded, the packet loss counter is released or cleared; or, When the number of packet losses corresponding to the protocol data unit set does not reach or exceed the packet loss threshold, and the transmission of the protocol data unit set and / or the data packet is completed, the packet loss counter is released or cleared; or, When the ratio of the number of packet losses corresponding to the protocol data unit set to the total number of data packets included in the protocol data unit set does not reach or exceed the packet loss ratio threshold, and the transmission of the protocol data unit set and / or the data packets is completed, the packet loss counter is released or cleared; or, When the ratio of the count value of the counter to the total number of the data packets included in the protocol data unit set reaches or exceeds the corresponding packet loss ratio threshold, the packet loss counter is released or cleared; or, When the count value of the counter reaches or exceeds the packet loss threshold, the packet loss counter is released or cleared.
12. The method according to any one of claims 9 to 11, characterized in that: The method further comprises: When the data packet is successfully transmitted, the packet loss counter is set.
13. The method according to claim 1 or 2, characterized in that: When the judgment basis adopted by the preset judgment method is the packet loss timer of the protocol data unit set, the method specifically includes: Obtaining a packet loss timer corresponding to the protocol data unit set; When the packet loss timer times out, the protocol data unit set or the data packet is discarded; or, When the packet loss timer times out, if the protocol data unit set or the data packet has not been completely transmitted, the protocol data unit set or the data packet is discarded.
14. The method according to claim 1 or 2, characterized in that: The method further comprises: When the first data packet in the protocol data unit set is received, the packet loss timer is started.
15. The method according to claim 13 or 14, characterized in that The method further comprises: When the transmission time of the protocol data unit set exceeds the packet loss timing time of the packet loss timer, the protocol data unit set or the data packet is discarded.
16. The method according to any one of claims 13 to 15, characterized in that The obtaining of a packet loss timer corresponding to the protocol data unit set specifically includes: receiving fifth configuration information sent by a receiving end, where the fifth configuration information is used to indicate the packet loss timer, and the receiving end is used to receive the data packet; or, Acquire the packet loss timer pre-configured by the sending end itself; or, Receiving the packet loss timer sent by the high layer of the sending end through the protocol layer of the sending end itself; or Receive sixth configuration information sent by the core network, where the sixth configuration information is used to indicate the packet loss timer.
17. The method according to claim 1 or 2, characterized in that: The method further comprises: When the protocol data unit set or the data packet is discarded, the packet loss timer is released or cleared; or, When the packet loss timer has not timed out and the transmission of the protocol data unit set and / or data packet is completed, the packet loss timer is released or cleared; or, When the packet loss timer times out, the packet loss timer is released or cleared.
18. The method according to claim 1 or 2, characterized in that: When the judgment basis adopted by the preset judgment method is the number of packet losses corresponding to the protocol data unit set and the packet loss timer, the method specifically includes: Obtaining a packet loss threshold corresponding to the protocol data unit set and a packet loss timer corresponding to the protocol data unit set; Obtaining the number of packet losses corresponding to the protocol data unit set; If the number of packet losses exceeds the packet loss threshold, and / or if the protocol data unit set or the data packet is not completely transmitted when the packet loss timer times out, discard the protocol data unit set or the data packet; or, If the number of packet losses exceeds a packet loss threshold, and / or if the packet loss timer times out, the protocol data unit set or the data packet is discarded.
19. The method according to any one of claims 13 to 18, characterized in that: The protocol data unit set or the data packet is not completely transmitted, specifically including: The transmitting end stores the data packet in the protocol data unit set.
20. The method according to claim 1 or 2, characterized in that: When the judgment basis adopted by the preset judgment method is the first attribute information corresponding to the protocol data unit set and / or the second attribute information corresponding to the data packet, the method specifically includes: When the first attribute information corresponding to the protocol data unit set is associated with the not-allowed-discarding, if the protocol data unit set with the first attribute information is discarded, the protocol data unit set or the data packet is discarded; or, When the second attribute information corresponding to the data packet is associated with the not-allowed-discarding, if the data packet with the second attribute information is discarded, the protocol data unit set or the data packet is discarded.
21. The method according to claim 20, characterized in that The method further comprises: Acquire seventh configuration information sent by a receiving end, wherein the seventh configuration information is used to indicate the first attribute information corresponding to the protocol data unit set and / or the second attribute information corresponding to the data packet, and the receiving end is used to receive the data packet; or, Acquire the first attribute information corresponding to the protocol data unit set pre-configured by the sender itself, and / or the second attribute information corresponding to the data packet; or, receiving, through the protocol layer of the sender itself, the first attribute information corresponding to the protocol data unit set sent by the high layer of the sender, and / or the second attribute information corresponding to the data packet; or Receive eighth configuration information sent by the core network, where the eighth configuration information is used to indicate the first attribute information corresponding to the protocol data unit set and / or the second attribute information corresponding to the data packet.
22. The method according to claim 1 or 2, characterized in that When the judgment basis adopted by the preset judgment method is the dependency relationship between the protocol data unit set and other protocol data unit sets, the method specifically includes: Acquire that the first protocol data unit set has a dependency relationship with at least one second protocol data unit set; Based on the dependency, if the second protocol data unit set is obtained and discarded, the first protocol data unit set or the data packet included in the first protocol data unit set is discarded; or, Based on the dependency, if the number of the second protocol data unit sets that are discarded reaches a preset threshold, the first protocol data unit set or the data packet included in the first protocol data unit set is discarded.
23. The method according to claim 22, characterized in that The acquiring at least one second protocol data unit set having a dependency relationship with the first protocol data unit set specifically includes: receiving ninth configuration information sent by a receiving end, wherein the ninth configuration information is used to indicate a dependency identifier, and the receiving end is used to receive the data packet transmitted by the sending end; or, Obtaining a dependency identifier pre-configured by the sending end itself; or, Receiving, through the protocol layer of the sending end itself, a dependency identifier sent by a high-level layer of the sending end; or, Receive tenth configuration information sent by the core network, where the tenth configuration information is used to indicate a dependency identifier; wherein the dependency identifier is used to indicate other protocol data unit sets that are mutually dependent on the protocol data unit set.
24. The method according to any one of claims 1 to 23, characterized in that The method further comprises: Receiving packet loss indication information sent by a higher layer of the receiving end or the sending end, wherein the packet loss indication information is used to instruct the sending end to trigger the discarding of a set of protocol data units or the discarding of the data packet; The protocol data unit set or the data packet of the triggering protocol layer is discarded.
25. The method according to any one of claims 1 to 24, characterized in that If it is determined according to a preset judgment method to discard the protocol data unit set or the data packet included in the protocol data unit set, then discarding the protocol data unit set or the data packet included in the protocol data unit set specifically includes: If the protocol layer of the sending end device determines to discard the protocol data unit set or the data packet included in the protocol data unit set according to a preset judgment method, the protocol data unit set or the data packet is discarded.
26. The method according to claim 25, characterized in that The method further comprises: When the protocol layer entity of the sending device determines to discard the protocol data unit set or the data packet, if the data packet of the protocol data unit set has been transmitted to the next layer corresponding to the protocol layer, the protocol layer entity sends a notification message to the protocol layer entity of the next layer, and the notification message is used to instruct the protocol layer entity of the next layer to discard the data packet.
27. A method for discarding a data packet, characterized in that: Applied to the sending end, the method includes: Receiving packet loss indication information sent by a higher layer of the receiving end or the sending end, wherein the packet loss indication information is used to indicate the discarding of a protocol data unit set or the discarding of a data packet included in the protocol data unit set; The protocol data unit set or the data packet is triggered to be discarded, wherein the protocol data unit set includes at least one of the data packets.
28. A method for discarding a data packet, characterized in that: Applied to the sending end, the method includes: Receiving packet loss indication information sent by the receiving end, where the packet loss indication information is used to indicate the discarding of a protocol data unit set or the discarding of a data packet included in the protocol data unit set; The method of triggering the protocol layer to discard a data packet as described in any one of claims 1-26.
29. A method for discarding a data packet, characterized in that: Applied to the receiving end, the method includes: The configuration information is sent to the sending end, so that the sending end determines whether to discard the protocol data unit set or the data packet included in the protocol data unit set according to a preset judgment method based on at least one item in the configuration information; the configuration information includes at least one of a packet loss threshold, a packet loss ratio threshold, a packet loss timer, the first attribute information corresponding to the protocol data unit set, the second attribute information corresponding to the data packet, and a dependency identifier.
30. The method according to claim 29, characterized in that The method further comprises: The configuration information is configured at the granularity of a protocol layer entity; or, The configuration information is configured at a DRB granularity; or, The configuration information is configured with the protocol data unit set as the granularity; or, The configuration information is configured with the type of the protocol data unit set as the granularity, wherein the type of the protocol data unit set is at least one of the priority of the protocol data unit set, the importance level of the protocol data unit set, and the sequence number of the protocol data unit set.
31. The method according to claim 29 or 30, characterized in that The data structure of the configuration information is a sequence structure.
32. A transmitting end device, characterized in that: include: one or more processors; one or more memories; The one or more memories store one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by the one or more processors, the sending device executes the method as described in any one of claims 1 to 28.
33. A receiving device, characterized in that: include: one or more processors; one or more memories; The one or more memories store one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by the one or more processors, the receiving device executes the method as described in any one of claims 29-30.
34. A communication system, characterized in that: It comprises a sending end device and a receiving end device, the sending end device is used to execute the method as described in any one of claims 1 to 28, and the receiving end is used to execute the method as described in any one of claims 29-31.
35. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable program instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 31.