Data transmission method and apparatus, device, and storage medium
Patent Information
- Application Number
- CN202111277603.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2041-10-29
AI Technical Summary
[0077] The data transmission method, apparatus, device, and storage medium provided in this application include: determining the data type of a data packet to be transmitted; determining a corresponding data transmission operation type to be performed on the data packet based on the data type; and transmitting the data packet according to the corresponding data transmission operation type. In this application, when a terminal device performs data transmission, it can first determine the data type of the data packet. Different types of data packets correspond to different transmission methods, including repeated transmission and non-repeated transmission. Therefore, for the data transmission requirements of different types of data packets, appropriate transmission methods can be used to ensure data reliability while avoiding resource waste.
Smart Images

Figure CN116074856B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a data transmission method, apparatus, device and storage medium. Background Technology
[0002] Extended Reality (XR) and Cloud Gaming (CG), as some of the most important 5G media applications, have requirements for low latency, high throughput and high reliability, requiring the transmission of large amounts of data in a short period of time. This means that their burst throughput may be much higher than the average throughput in a short period of time.
[0003] XR includes various data frames, each with its own transmission characteristics and requirements. For example, an I-frame (Intra-coded picture) is intra-frame coded and can represent the entire picture; a P-frame (Predicted picture) is inter-frame coded and only needs to carry information that differs from the previous frame. Therefore, I-frames have a large data volume and high reliability requirements, while P-frames have a small data volume and relatively lower reliability requirements compared to I-frames.
[0004] Currently, existing technologies use the same data transmission method for both I-frames and P-frames, which easily leads to resource waste.
[0005] The information disclosed in the background section is only intended to enhance the understanding of the background of this application, and therefore may contain information that is not part of the prior art known to those skilled in the art. Summary of the Invention
[0006] This application provides a data transmission method, apparatus, device, and storage medium to solve the problems existing in the prior art.
[0007] In a first aspect, this application provides a data transmission method applied to a terminal device, the method comprising:
[0008] Determine the data type of the data packet to be transmitted;
[0009] The type of data transmission operation to be performed on the data packet is determined based on the data packet's data type.
[0010] Transmit the data packet according to the data transmission operation type corresponding to the data packet.
[0011] In some embodiments, it also includes:
[0012] Get configuration information;
[0013] Transmit the data packet according to the data transmission operation type corresponding to the data packet, including:
[0014] Based on the configuration information, the data packet is transmitted according to the data transmission operation type corresponding to the data packet.
[0015] In some embodiments, the data type of the data packet includes a first type of data frame and a non-first type of data frame;
[0016] Wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet;
[0017] When the data type of the data packet is not a first type of data frame, the data transmission operation type corresponding to the data packet is to perform non-repeated transmission of the data packet.
[0018] In some embodiments, the first type of data frame includes intra-coded I-frames;
[0019] The non-first-class data frames include inter-frame coded P-frames.
[0020] In some embodiments, the data packet to be transmitted is the data packet corresponding to the data frame sent from the upper layer of the terminal device to the AS layer;
[0021] Determine the data type of the data packet to be transmitted, including:
[0022] The data type of the data packet is determined based on the data type label of the data frame corresponding to the data packet;
[0023] Alternatively, the data type of the data packet can be determined based on the number of data frames of different data types and the data position of the data frame corresponding to the data packet;
[0024] Alternatively, the data type of the data packet can be determined based on the data size threshold corresponding to different data types and the data size of the data packet.
[0025] In some embodiments, the quantity information of data frames of different data types includes: a first quantity of first type data frames and a second quantity of non-first type data frames;
[0026] The data type of the data packet is determined based on the number of data frames of different data types and the data position of the corresponding data frame, including:
[0027] If the counter value is less than or equal to the first quantity, the data type of the data packet is determined to be a first type of data frame;
[0028] If the counter value is greater than the first quantity, less than or equal to the sum of the first quantity and the second quantity, the data packet is determined to be a non-first type data frame.
[0029] When the counter value equals the sum of the first quantity and the second quantity, the counter value is reset to zero.
[0030] The counter's count value is used to characterize the data position of the data frame corresponding to the data packet among all data frames.
[0031] In some embodiments, determining the data transmission operation type corresponding to the data packet based on the data packet data type includes:
[0032] Receive indication information sent by network devices, the indication information being used to indicate the data transmission operation type corresponding to different types of data;
[0033] Based on the indication information and the data type of the data packet, determine the data transmission operation type corresponding to the data packet.
[0034] In some embodiments, determining the data transmission operation type corresponding to the data packet based on the data packet data type includes:
[0035] Based on preset data transmission rules and the data type of the data packet, the data transmission operation type corresponding to the data packet is determined, wherein the preset data transmission rules include data transmission operation types corresponding to different types of data.
[0036] In some embodiments, the method further includes:
[0037] Check whether the current data packet has been successfully received by the network device;
[0038] When it is detected that the current data packet has not been successfully received by the network device, if the data type of the current data packet is a first type of data frame, the transmission of the remaining data packets of the current data frame corresponding to the current data packet is stopped, and the remaining data packets are the untransmitted data packets corresponding to the current data frame.
[0039] In some embodiments, detecting whether the current data packet has been successfully received by the network device includes:
[0040] The terminal device detects whether the current data packet has been successfully received by the network device at a lower layer.
[0041] Alternatively, the success of the current data packet reception by the network device can be determined by whether a status report information sent by the network device is received, wherein the status report information indicates that the current data packet was not successfully received by the network device.
[0042] Secondly, this application provides a data transmission method applied to a network device, the method comprising:
[0043] The terminal device receives a data packet sent by the terminal device, wherein the data packet is transmitted to the network device by the terminal device according to the data transmission operation type corresponding to the data packet, and the data transmission operation type corresponding to the data packet is determined by the terminal device based on the data type of the data packet.
[0044] In some embodiments, it also includes:
[0045] Determine the configuration information for data transmission on the terminal device;
[0046] Configuration information is sent to the terminal device, the configuration information being used to instruct the terminal device to transmit the data packet according to the data transmission operation type corresponding to the data packet, based on the configuration information.
[0047] In some embodiments, the data type of the data packet includes a first type of data frame and a non-first type of data frame;
[0048] Wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet;
[0049] When the data type of the data packet is not a first type of data frame, the data transmission operation type corresponding to the data packet is to perform non-repeated transmission of the data packet.
[0050] In some embodiments, the first type of data frame includes intra-coded I-frames;
[0051] The non-first-class data frames include inter-frame coded P-frames.
[0052] In some embodiments, it also includes:
[0053] The terminal device is sent an instruction message, which includes the data transmission operation type corresponding to different types of data. The instruction message is used to instruct the terminal device to determine the data transmission operation type corresponding to the data packet based on the instruction message and the data type of the data packet.
[0054] In some embodiments, it also includes:
[0055] Check whether the current data packet was successfully received;
[0056] When it is detected that the current data packet has not been successfully received, a status report information is sent to the terminal device, the status report information indicating that the current data packet has not been successfully received by the network device.
[0057] In some embodiments, detecting whether the current data packet has been successfully received includes:
[0058] Configure a packet timer, which includes a first timer corresponding to a first type of data frame and a second timer corresponding to a non-first type of data frame;
[0059] If the sequence number (SN) of the delivered data packet of the first type of data frame is not equal to the SN of the protocol data unit (PDU) of the first type of data frame that is about to be received, start the first timer;
[0060] If the SN number of the received non-first type data frame delivery data packet is not equal to the SN number of the non-first type data frame PDU, start the second timer;
[0061] After the first timer or the second timer expires, it is determined that the current data packet was not successfully received.
[0062] Thirdly, this application provides a terminal device, including a memory, a transceiver, and a processor:
[0063] A memory for storing computer programs; a transceiver for sending and receiving data under the control of the processor; and a processor for reading the computer programs from the memory and performing the following operations:
[0064] Determine the data type of the data packet to be transmitted;
[0065] The type of data transmission operation to be performed on the data packet is determined based on the data packet's data type.
[0066] Transmit the data packet according to the data transmission operation type corresponding to the data packet.
[0067] Fourthly, this application provides a network device, including a memory, a transceiver, and a processor:
[0068] A memory for storing computer programs; a transceiver for sending and receiving data under the control of the processor; and a processor for reading the computer programs from the memory and performing the following operations:
[0069] The terminal device receives a data packet sent by the terminal device, wherein the data packet is transmitted to the network device by the terminal device according to the data transmission operation type corresponding to the data packet, and the data transmission operation type corresponding to the data packet is determined by the terminal device based on the data type of the data packet.
[0070] Fifthly, this application provides a data transmission apparatus for use in a terminal device, comprising:
[0071] The first determining module is used to determine the data type of the data packet to be transmitted;
[0072] The second determining module is used to determine the type of data transmission operation to be performed on the data packet based on the data packet's data type;
[0073] The transmission module is used to transmit the data packet according to the data transmission operation type corresponding to the data packet.
[0074] Sixthly, this application provides a data transmission apparatus for use in network devices, comprising:
[0075] A receiving module is used to receive data packets sent by a terminal device, wherein the data packets are transmitted by the terminal device to the network device according to the data transmission operation type corresponding to the data packets, and the data transmission operation type corresponding to the data packets is determined by the terminal device based on the data type of the data packets.
[0076] In a seventh aspect, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the above-described data transmission method.
[0077] The data transmission method, apparatus, device, and storage medium provided in this application include: determining the data type of a data packet to be transmitted; determining a corresponding data transmission operation type to be performed on the data packet based on the data type; and transmitting the data packet according to the corresponding data transmission operation type. In this application, when a terminal device performs data transmission, it can first determine the data type of the data packet. Different types of data packets correspond to different transmission methods, including repeated transmission and non-repeated transmission. Therefore, for the data transmission requirements of different types of data packets, appropriate transmission methods can be used to ensure data reliability while avoiding resource waste. Attached Figure Description
[0078] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0079] Figure 1 This is a schematic diagram illustrating how a single XR service data packet can be mapped to multiple 5G system air interface IP packets in existing technologies.
[0080] Figure 2 A schematic diagram illustrating a data transmission method applied to a terminal device according to an embodiment of this application;
[0081] Figure 3 This is a schematic diagram illustrating how a terminal device transmits different types of data packets.
[0082] Figure 4 A schematic diagram illustrating a data transmission method applied to a network device according to an embodiment of this application;
[0083] Figure 5 A schematic diagram of the terminal device provided in the embodiments of this application;
[0084] Figure 6 A schematic diagram of a network device provided in an embodiment of this application;
[0085] Figure 7 This is a schematic diagram of a data transmission device applied to a terminal device, as provided in an embodiment of this application.
[0086] Figure 8 This is a schematic diagram of a data transmission device applied to a network device, as provided in an embodiment of this application.
[0087] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0088] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0089] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms "a" and "the" as used in the embodiments of this application are also intended to include the plural forms unless the context clearly indicates otherwise.
[0090] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three cases: A exists alone, A and B exist simultaneously, and B exists alone.
[0091] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”
[0092] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a product or system comprising a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a product or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the product or system that includes said element.
[0093] Extended Reality (XR) and Cloud Gaming (CG), as some of the most important 5G media applications, have requirements for low latency, high throughput, and high reliability. They require the transmission of large amounts of data in short periods, meaning that their burst throughput can be far higher than the average throughput within a short timeframe. For example, an XR service with an average throughput of 100 Mbps can achieve a burst throughput of 300 Mbps within a short measurement window, while simultaneously maintaining high reliability.
[0094] XR is a general term for different types of reality, referring to all environments and human-computer interactions that combine the real and virtual worlds, generated by computer technology and devices. It includes representative forms such as Augmented Reality (AR), Mixed Reality (MR), and Virtual Reality (VR).
[0095] XR includes various data frames, each with its own transmission characteristics and requirements. For example, an I-frame (Intra-coded picture) is intra-frame coded and can represent the complete picture; a P-frame (Predicted picture) is inter-frame coded and only needs to carry information that is different from the previous frame.
[0096] Therefore, I-frames have a large data volume and high reliability requirements, while P-frames have a small data volume and relatively lower reliability requirements compared to I-frames.
[0097] In XR services, service characteristics requirements are for data frames. For example, for mixed scene and video streams, the service characteristics requirements are: 60fps (frames per second); data rate 10Mbps / 20Mbps; PDB (packet delay budget) 30ms (mandatory) or 10 / 15 / 60ms (optional).
[0098] Figure 1 This is a diagram illustrating how a single XR service data packet can be mapped to multiple 5G system air interface IP packets in existing technologies, such as... Figure 1 As shown, a data frame of an XR service can be divided into multiple IP packets, which are data packets that reach the access layer AS layer in the figure. Each IP packet is transmitted independently on the air interface. Specifically, an IP packet is mapped to multiple Packet Data Convergence Protocol (PDCP) Service Data Units (SDUs) on the air interface.
[0099] Because data frames are divided into multiple IP packets at the access layer (AS layer), currently I-frame packets and P-frame packets are configured in a Quality of Service (QoS) stream. Currently, packets in the same QoS stream are mapped to the same Data Radio Bearer (DRB).
[0100] On the terminal side, the terminal processes data according to the DRB (Data Replication Rule), such as for data duplication transmission or reliable transmission, such as Radio Link Control AM (RLC AM) mode or Radio Link Control UM (RLC UM) mode. RLC AM mode means that RLC provides full-featured processing and has retransmission capabilities; RLC UM mode means that RLC does not perform retransmission processing.
[0101] However, in order to ensure the reliable transmission of I-frames, the DRB containing I-frames may be configured in RLC AM mode and repeated transmission will be performed. However, for P-frames, they will be configured in the same DRB as I-frames and repeated transmission will also be performed, but this will result in a waste of resources.
[0102] The technical solution provided in this application aims to solve the above-mentioned technical problems in the prior art.
[0103] The main concept of this application is that when a terminal device transmits data, it can first determine the data type of the data packet. Different types of data packets correspond to different transmission methods, including repeated transmission and non-repeated transmission. Therefore, for the data transmission requirements of different types of data packets, the corresponding transmission method can be used in a targeted manner to avoid resource waste.
[0104] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0105] It is understood that the processing steps of the data transmission method in this application can be implemented by a terminal device or a network device.
[0106] The network equipment can be a base station, specifically a base transceiver station (BTS) and / or base station controller in Global System for Mobile communication (GSM) or Code Division Multiple Access (CDMA), a base station (NodeB, NB) and / or radio network controller (RNC) in Wideband Code Division Multiple Access (WCDMA), an evolved Node B (eNB or eNodeB) in Long Term Evolution (LTE), a relay station or access point, or a base station (gNB) in a 5G network / future other networks (such as 6G networks), etc. The embodiments of this application are not limited to this.
[0107] Terminal devices can be either wireless or wired. Wireless terminal devices can be devices that provide voice and / or other service data connectivity to users, handheld devices with wireless connectivity, or other processing devices connected to a wireless modem. Wireless terminal devices can communicate with one or more core network devices via a Radio Access Network (RAN). Wireless terminal devices can be mobile terminal devices, such as mobile phones (or "cellular" phones) and computers with mobile terminal devices, for example, portable, pocket-sized, handheld, computer-embedded, or vehicle-mounted mobile devices, exchanging voice and / or data with the RAN. Furthermore, wireless terminal devices can also be Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs), and other similar devices. Wireless terminal equipment can also be referred to as a system, subscriber unit, subscriber station, mobile station, mobile, remote station, remote terminal, access terminal, user terminal, user agent, user device, or user equipment, without limitation. Optionally, the aforementioned terminal equipment can also be devices such as smartwatches and tablets.
[0108] In some embodiments, a data transmission method is provided, applied to a terminal device.
[0109] Figure 2 This is a schematic diagram of a data transmission method applied to a terminal device provided in an embodiment of this application, as shown below. Figure 2 As shown, the method mainly includes the following steps:
[0110] S210. Determine the data type of the data packet to be transmitted;
[0111] Specifically, when a terminal device has a data packet to be transmitted, the terminal device does not immediately transmit the data packet, but first determines the data type corresponding to the data packet.
[0112] The data packets to be transmitted can be multiple data packets corresponding to a single data frame, for example... Figure 1 The data packet arriving at the AS layer. This data frame could be, for example, a data frame from an XR service, such as... Figure 1 The XR service data frame in the data packet. Correspondingly, the data type of the data packet is the data frame type of the corresponding data frame.
[0113] It is understandable that different types of data packets have different data transmission requirements. For example, data with high reliability requirements can be divided into one category, and data with low reliability requirements can be divided into another category.
[0114] S220. Determine the type of data transmission operation to be performed on the data packet based on the data packet's data type;
[0115] After determining the data type of the data packet to be transmitted, the terminal device determines the corresponding data transmission operation type to be performed on the data packet based on the data type.
[0116] Specifically, data transmission operations include duplication and non-duplication. For data with high reliability requirements, duplication can be performed; while for data with lower reliability requirements, non-duplication can be performed. This ensures data reliability while reducing resource waste by avoiding duplicate transmission of all data.
[0117] It should be noted that, in this embodiment, duplication transmission specifically refers to repeated transmission through different carriers or base stations. One approach is to copy the data packets at the PDCP layer and then transmit each copy version through different carriers or gNBs.
[0118] S230. Transmit the data packet according to the data transmission operation type corresponding to the data packet.
[0119] After determining the data transmission operation type corresponding to the data packet, the terminal device performs data transmission processing on the data packet based on the data transmission operation type and transmits the data packet to the network device. After receiving the data packet, the network device performs corresponding processing according to the data packet.
[0120] For example, for data with high reliability requirements, the corresponding data transmission operation type is repeated transmission. In this case, the terminal device performs repeated transmission processing on the data with high reliability requirements to ensure data reliability.
[0121] For example, for data with low reliability requirements, the corresponding data transmission operation type is non-repeating transmission. In this case, the terminal device performs non-repeating transmission processing on the data with low reliability requirements to avoid wasting resources.
[0122] This embodiment provides a data transmission method. When a terminal device transmits data, it can first determine the data type of the data packet. Different types of data packets correspond to different transmission methods, including repeated transmission and non-repeated transmission. Therefore, for the data transmission requirements of different types of data packets, the corresponding transmission method can be used for transmission in a targeted manner, thereby ensuring data reliability and avoiding resource waste.
[0123] In some embodiments, the method further includes: obtaining configuration information;
[0124] Optionally, the terminal device receives configuration information sent by the network device, the configuration information including configuration parameters for data transmission by the terminal device;
[0125] Optionally, the terminal device may also obtain configuration information in a manner agreed upon in the protocol.
[0126] Correspondingly, the terminal device transmits data packets according to the data transmission operation type corresponding to the data packet, including: the terminal device transmits data packets based on configuration information according to the data transmission operation type corresponding to the data packet.
[0127] Specifically, taking the network device sending configuration information to the terminal device as an example, in order to ensure that the terminal device can transmit data correctly, the network device also sends corresponding configuration information to the terminal device. The network device can carry the configuration information in QoS and / or DRB. This configuration information includes the configuration parameters for the terminal device to transmit data, such as the sequence number (SN) length, RLC mode, timer size, etc.
[0128] After receiving the configuration information sent by the network device, the terminal device transmits data packets according to the data transmission operation type corresponding to the data packet, based on the configuration parameters in the configuration information.
[0129] In some embodiments, the data type of the data packet includes a first type of data frame and a non-first type of data frame; wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet; when the data type of the data packet is a non-first type of data frame, the data transmission operation type corresponding to the data packet is to non-repeatedly transmit the data packet.
[0130] Specifically, the first type of data frame can be data with high reliability requirements. For data with high reliability requirements, repeated transmission can ensure data reliability. For example, when the data packet to be transmitted is a data packet in an XR service, the first type of data frame can be an intra-frame encoded I-frame. I-frames have a large data volume and high reliability requirements, so they need to be transmitted repeatedly.
[0131] Furthermore, non-Category I data frames can specifically be data with lower reliability requirements. For data with lower reliability requirements, resource waste can be avoided by performing non-repeated transmission. For example, when the data packet to be transmitted is a data packet in an XR service, the non-Category I data frame can be an inter-frame encoded P frame. The reliability requirements of P frames are relatively lower than those of I frames, so resource waste can be avoided by performing non-repeated transmission of P frames.
[0132] Figure 3 This is a diagram illustrating how a terminal device transmits different types of data packets, such as... Figure 3 As shown, for the first type of data frame, the data frame arriving at the terminal AS layer includes N data packets, and the terminal device repeatedly transmits the N data packets of the first type of data frame; for non-first type data frames, the data frame arriving at the terminal AS layer includes M data packets, and the terminal device non-repeatedly transmits the M data packets of the non-first type data frame.
[0133] In some embodiments, the data packet to be transmitted is the data packet corresponding to the data frame sent from the upper layer of the terminal device to the AS layer; wherein the upper layer may be, for example, the network (IP) layer. When the data from the IP layer reaches the AS layer, the terminal device determines that there is a data packet to be transmitted.
[0134] Specifically, the data type of the data packet can be determined by the AS layer (such as the PDCP layer, RLC layer, etc.) in the terminal device. The AS layer uses deep packet inspection to detect the data format within the IP data packet, thereby determining the corresponding data type of the data packet.
[0135] Furthermore, the terminal device determines the data type of the data packet to be transmitted, including the following three methods:
[0136] (1) Determine the data type of the data packet based on the data type label of the data frame corresponding to the data packet;
[0137] Specifically, when the upper layer (such as the IP layer) sends data, it adds type tags to the data frames being sent, so that the AS layer can determine the data type of the data packet corresponding to the data frame based on the data type tag of the data frame.
[0138] For example, the IP layer may add corresponding tags to both Type I data frames and non-Type I data frames to characterize the specific type of data packet corresponding to the data frame; or, the IP layer may only add tags to Type I data frames and not add tags to non-Type I data frames, so that the AS layer can determine the corresponding data type by whether the data packet has a tag.
[0139] (2) Determine the data type of the data packet based on the number of data frames of different data types and the data position of the data frame corresponding to the data packet;
[0140] Optionally, the quantity information of data frames of different data types includes: a first quantity of first type data frames and a second quantity of non-first type data frames;
[0141] The data type of the data packet is determined based on the number of data frames of different data types and the data position of the corresponding data frame. This includes: resetting a counter to zero and incrementing the counter by one when a data frame sent from the upper layer is received; determining the data type of the data packet based on the counter's count; wherein, when the counter's count is less than or equal to the first quantity, the data packet is determined to be a first-type data frame; when the counter's count is greater than the first quantity and less than or equal to the sum of the first quantity and the second quantity, the data packet is determined to be a non-first-type data frame; and when the counter's count is equal to the sum of the first quantity and the second quantity, the counter's count is reset to zero. The counter's count is used to characterize the data position of the data frame corresponding to the data packet among all data frames.
[0142] Specifically, when the upper layer (such as the IP layer) sends data, the AS layer obtains the number of different types of data frames transmitted by the IP layer through notification messages. Based on the number of data frames of different data types, the AS layer can determine the data type arrangement rules of all data frames. Thus, based on the data position of the data frames and the data type arrangement rules of all data frames, the AS layer can determine the data type of the data packet.
[0143] For example, the AS layer obtains, through a notification message, that the first number of first-type data frames is X frames, where X is an integer greater than or equal to 0, and the second number of non-first-type data frames is Y frames, where Y is an integer greater than or equal to 0. If the transmitted data is arranged such that the first-type data frames come before the non-first-type data frames, the AS layer can determine that the first X frames (i.e., from the first data frame to the X-th data frame) are first-type data frames, that is, the data type of the data packets corresponding to the first X data frames is the first-type data frame, and the last Y frames (i.e., from the (X+1)-th data frame to the (X+Y)-th data frame) are non-first-type data frames, that is, the data type of the data packets corresponding to the last Y data frames is the non-first-type data frame.
[0144] Starting from data transmission, the AS layer sets the count value of the counter to zero. Assuming that the AS layer receives a data frame sent by the upper layer in order, it increments the count value of the counter by 1. If the counter is less than or equal to X, for example, it is x1 (x1 < X, and x1 is a positive integer), it indicates that the data frame corresponding to the data packet is the x1-th data frame among all data frames, and the data type corresponding to the x1-th data frame is the first-type data frame. Therefore, the AS layer determines that the data type of the received data packet is the first-type data frame, and performs repeated transmission on the data packet;
[0145] If the counter is greater than X and less than or equal to (X+Y), for example, it is x2 (X < x2 ≤ X+Y, and x2 is a positive integer), it indicates that the data frame corresponding to the data packet is the x2-th data frame among all data frames, and the data type corresponding to the x2-th data frame is the non-first-type data frame. Therefore, the AS layer determines that the data type of the received data packet is the non-first-type data frame, and performs non-repeated transmission on the data packet; furthermore, when the counter is equal to (X+Y), the AS layer resets the counter to zero.
[0146] Optionally, the notification message may be sent by the network side to the terminal.
[0147] (3) Determining the data type of the data packet according to the data size thresholds corresponding to different types of data sent by the upper layer and the data size of the data packet.
[0148] Specifically, when the upper layer (e.g., the IP layer) transmits data, the AS layer obtains the data size thresholds corresponding to different types of data through the notification message, which specifically includes a first data size threshold corresponding to first-type data frames, and / or a second data size threshold corresponding to non-first-type data frames. Therefore, the AS layer determines the data type of the data packet according to the data size thresholds corresponding to different types of data sent by the upper layer in combination with the data size of the received data packet.
[0149] The first and second data size thresholds can be specific data sizes, for example, the first data size threshold is 'a' bits and the second data size threshold is 'b' bits. When the AS layer simultaneously obtains the first data size threshold corresponding to the first type of data frame and the second data size threshold corresponding to the non-first type of data frame, if the AS layer determines that the current data size meets the first data size threshold corresponding to the first type of data frame (e.g., the current data size is 'a' bits), then the current data is determined to be a first type of data frame; if the AS layer determines that the current data size meets the second data size threshold corresponding to the non-first type of data frame (e.g., the current data size is 'b' bits), then the current data is determined to be a non-first type of data frame. 'a' and 'b' are both integers greater than or equal to zero.
[0150] Optionally, the notification message can be sent from the network side to the terminal.
[0151] In some embodiments, the terminal device determines the data transmission operation type corresponding to the data packet based on the data packet data type, including:
[0152] The terminal device receives indication information sent by the network device. The indication information is used to indicate the data transmission operation type corresponding to different types of data.
[0153] The terminal device determines the data transmission operation type corresponding to the data packet based on the instruction information and the data packet data type.
[0154] Specifically, network devices can send indication information to terminal devices. This indication information is used to indicate the data transmission operation type corresponding to different types of data. For example, the indication information is used to indicate that the first type of data frames should be repeatedly transmitted and the non-first type of data frames should be non-repeatedly transmitted.
[0155] After receiving the instruction information sent by the network device, the terminal device determines the data transmission operation type corresponding to the data packet based on the data transmission operation type corresponding to the different types of data indicated by the instruction information and the data type of the data packet to be transmitted.
[0156] In some embodiments, determining the data transmission operation type corresponding to the data packet based on the data packet data type includes:
[0157] The terminal device determines the data transmission operation type corresponding to the data packet based on the preset data transmission rules and the data packet data type. The preset data transmission rules include the data transmission operation types corresponding to different types of data.
[0158] Specifically, the terminal device and the network device may also adopt a pre-agreed method, for example, through agreement by a protocol, and set data transmission operation types corresponding to different types of data through preset data transmission rules. For example, it is preset that repeated transmission is performed on first-type data frames, and non-repeated transmission is performed on non-first-type data frames.
[0159] After determining the data type of the data packet, the terminal device can directly determine the data transmission operation type corresponding to the data packet according to the preset data transmission rule and the data type of the data packet, so that the network device does not need to send indication information to the terminal device, thereby saving resources.
[0160] In some embodiments, the method further comprises: the terminal device detects whether the current data packet is successfully received by the network device; when it is detected that the current data packet is not successfully received by the network device, if the data type of the current data packet is a first-type data frame, stopping sending the remaining data packets of the current data frame corresponding to the current data packet, wherein the remaining data packets are unsent data packets corresponding to the current data frame.
[0161] Specifically, after transmitting the data packet, the terminal device further detects whether the current data packet is successfully received by the network device.
[0162] Wherein, if the data type of the current data packet is a first-type data frame, when the terminal device detects that the current data packet is not successfully received by the network device, the terminal device stops sending the remaining data packets of the current data frame corresponding to the current data packet.
[0163] For example, assuming that data frame z is a first-type data frame, and the data frame z correspondingly comprises N data packets, when the terminal device transmits the c-th (c<N) data packet of the data frame z, if the terminal device detects that the c-th data packet is not successfully received by the network device, the terminal device no longer sends the remaining data packets of the data frame z (that is, the (c+1)-th to the N-th data packets). Both c and N are integers greater than or equal to zero.
[0164] Optionally, if the data type of the current data packet is a non-first-type data frame, when the terminal device detects that the current data packet is not successfully received by the network device, the terminal device still continues to send the remaining data packets of the current data frame corresponding to the current data packet.
[0165] In some embodiments, the detecting, by the terminal device, whether the current data packet is successfully received by the network device comprises:
[0166] Detecting, by a lower layer of the terminal device, for example, an RLC or MAC layer, whether the current data packet is successfully received by the network device; or determining, by whether status report information sent by the network device is received, whether the current data packet is successfully received by the network device, wherein the status report information indicates that the current data packet is not successfully received by the network device.
[0167] Specifically, the terminal device can detect whether the current data packet has been successfully received by the network device through the lower layer. The method by which the lower layer detects whether the current data packet has been successfully received can be implemented through existing technologies, and is not limited here.
[0168] Additionally, when a data packet is not successfully received by the network device, the network device sends a status report to the terminal device. This status report indicates that the data packet was not successfully received by the network device. Therefore, the terminal device can also determine whether the data packet was successfully received by the network device by whether it receives the status report. Specifically, if the terminal device receives the status report from the network device, it determines that the data packet was not successfully received by the network device.
[0169] In some embodiments, a data transmission method is provided, applied to a network device.
[0170] Figure 4 This is a schematic diagram of a data transmission method applied to a network device according to an embodiment of this application, such as... Figure 4 As shown, the method mainly includes the following steps:
[0171] S410. Receive data packets sent by the terminal device, wherein the data packets are transmitted by the terminal device to the network device according to the data transmission operation type corresponding to the data packets, and the data transmission operation type corresponding to the data packets is determined by the terminal device based on the data type of the data packets.
[0172] Specifically, the data packets received by network devices may include various types, such as Type I data frames and non-Type I data frames. Different types of data packets are transmitted to the network device by the terminal device using different data transmission operation types.
[0173] For example, if the data packet is a Type I data frame, the terminal device transmits the data packet to the network device through repeated transmission to ensure data reliability; if the data packet is a non-Type I data frame, the terminal device transmits the data packet to the network device through non-repeated transmission to avoid resource waste.
[0174] In some embodiments, the method further includes: S420, the network device determines configuration information for the terminal device to perform data transmission; the network device sends the configuration information to the terminal device; the configuration information is used to instruct the terminal device to transmit data packets according to the data transmission operation type corresponding to the data packets based on the configuration information.
[0175] Configuration parameters include, for example, serial number (SN) length, RLC mode, timer size, etc.
[0176] In some embodiments, the data type of the data packet includes a first type of data frame and a non-first type of data frame; wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet; when the data type of the data packet is a non-first type of data frame, the data transmission operation type corresponding to the data packet is to non-repeatedly transmit the data packet.
[0177] In some embodiments, the first type of data frame includes intra-coded I-frames; the non-first type of data frame includes inter-coded P-frames.
[0178] In some embodiments, the method further includes: S430, the network device sends indication information to the terminal device, the indication information including the data transmission operation type corresponding to different types of data; the indication information is used to instruct the terminal device to determine the data transmission operation type corresponding to the data packet according to the indication information and the data packet data type.
[0179] In some embodiments, the method further includes: S440, the network device detects whether the current data packet has been successfully received; when it detects that the current data packet has not been successfully received, it sends a status report information to the terminal device, the status report information indicating that the current data packet has not been successfully received by the network device.
[0180] Optionally, detecting whether the current data packet has been successfully received includes: configuring a packet assembly timer, wherein the packet assembly timer includes a first timer corresponding to a first type of data frame and a second timer corresponding to a non-first type of data frame; when data reception begins, if the sequence number (SN) of the received first type of data frame delivery data packet is not equal to the SN of the protocol data unit (PDU) of the soon-to-be-received first type of data frame, the first timer is activated; if the SN of the received non-first type of data frame delivery data packet is not equal to the SN of the non-first type of data frame PDU, the second timer is activated; when either the first timer or the second timer times out, it is determined that the current data packet has not been successfully received.
[0181] Specifically, network devices can detect whether the current data packet has been successfully received in the following ways:
[0182] The network device first configures the packet assembly timer, including the first timer T1 corresponding to the first type of data frame. assemb And the second timer T2 corresponding to non-first type data frames. assemb .
[0183] When the network device begins receiving data, if there is packet loss in the first type of data frame received, i.e., SN... deliv1 Not equal to SN next1 When this happens, the network device starts the first timer T1. assemb Among them, SNdeliv1 This indicates the SN number of the data packet submitted for the first type of data frame. next1 This indicates the SN number of the first type of data frame PDU that will be received soon.
[0184] If the network device receives non-Type 1 data frames and experiences packet loss, i.e., SN... deliv2 Not equal to SN next2 When this happens, the network device starts the second timer T2. assemb Among them, SN deliv2 The SN indicates the serial number of the data packet submitted for a non-Type 1 data frame. next2 This indicates the SN number of the non-Type 1 data frame PDU that is about to be received.
[0185] When the first or second timer expires, the network device triggers a status report and sends it to the terminal device, causing the terminal device to perform data retransmission processing based on the status report.
[0186] Optionally, the duration of the first timer is shorter than that of the second timer. In other words, it is easier to trigger status report information for the first type of data frame so that the terminal device can perform data retransmission processing, thereby ensuring the data reliability of the first type of data frame.
[0187] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0188] In some embodiments, a terminal device is provided.
[0189] Figure 5 This is a schematic diagram of the terminal device provided in the embodiments of this application, such as... Figure 5 As shown, the terminal device includes: a memory 51, a transceiver 52, and a processor 53.
[0190] The system includes a memory for storing computer programs, a transceiver for sending and receiving data under the control of the processor, and a processor for reading the computer programs from the memory and performing the following operations:
[0191] Determine the data type of the data packet to be transmitted;
[0192] The type of data transmission operation to be performed on the data packet is determined based on the data packet's data type.
[0193] Transmit the data packet according to the data transmission operation type corresponding to the data packet.
[0194] In some embodiments, it also includes:
[0195] Get configuration information;
[0196] Transmit the data packet according to the data transmission operation type corresponding to the data packet, including:
[0197] Based on the configuration information, the data packet is transmitted according to the data transmission operation type corresponding to the data packet.
[0198] In some embodiments, the data type of the data packet includes a first type of data frame and a non-first type of data frame;
[0199] Wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet;
[0200] When the data type of the data packet is not a first type of data frame, the data transmission operation type corresponding to the data packet is to perform non-repeated transmission of the data packet.
[0201] In some embodiments, the first type of data frame includes intra-coded I-frames;
[0202] The non-first-class data frames include inter-frame coded P-frames.
[0203] In some embodiments, the data packet to be transmitted is the data packet corresponding to the data frame sent from the upper layer of the terminal device to the AS layer;
[0204] Determine the data type of the data packet to be transmitted, including:
[0205] The data type of the data packet is determined based on the data type label of the data frame corresponding to the data packet;
[0206] Alternatively, the data type of the data packet can be determined based on the number of data frames of different data types and the data position of the data frame corresponding to the data packet;
[0207] Alternatively, the data type of the data packet can be determined based on the data size threshold corresponding to different data types and the data size of the data packet.
[0208] In some embodiments, the quantity information of data frames of different data types includes: a first quantity of first type data frames and a second quantity of non-first type data frames;
[0209] The data type of the data packet is determined based on the number of data frames of different data types and the data position of the corresponding data frame, including:
[0210] If the counter value is less than or equal to the first quantity, the data type of the data packet is determined to be a first type of data frame;
[0211] If the counter value is greater than the first quantity, less than or equal to the sum of the first quantity and the second quantity, the data packet is determined to be a non-first type data frame.
[0212] When the counter value equals the sum of the first quantity and the second quantity, the counter value is reset to zero.
[0213] The counter's count value is used to characterize the data position of the data frame corresponding to the data packet among all data frames.
[0214] In some embodiments, determining the data transmission operation type corresponding to the data packet based on the data packet data type includes:
[0215] Receive indication information sent by network devices, the indication information being used to indicate the data transmission operation type corresponding to different types of data;
[0216] Based on the indication information and the data type of the data packet, determine the data transmission operation type corresponding to the data packet.
[0217] In some embodiments, determining the data transmission operation type corresponding to the data packet based on the data packet data type includes:
[0218] Based on preset data transmission rules and the data type of the data packet, the data transmission operation type corresponding to the data packet is determined, wherein the preset data transmission rules include data transmission operation types corresponding to different types of data.
[0219] In some embodiments, the method further includes:
[0220] Check whether the current data packet has been successfully received by the network device;
[0221] When it is detected that the current data packet has not been successfully received by the network device, if the data type of the current data packet is a first type of data frame, the transmission of the remaining data packets of the current data frame corresponding to the current data packet is stopped, and the remaining data packets are the untransmitted data packets corresponding to the current data frame.
[0222] In some embodiments, detecting whether the current data packet has been successfully received by the network device includes:
[0223] The terminal device detects whether the current data packet has been successfully received by the network device at a lower layer.
[0224] Alternatively, the success of the current data packet reception by the network device can be determined by whether a status report information sent by the network device is received, wherein the status report information indicates that the current data packet was not successfully received by the network device.
[0225] In some embodiments, a network device is provided.
[0226] Figure 6 A schematic diagram of the network device provided in the embodiments of this application, such as... Figure 6 As shown, the network device includes a memory 61, a transceiver 62, and a processor 63.
[0227] Memory is used to store computer programs; transceiver is used to send and receive data under the control of the processor; processor is used to read the computer programs from memory and perform the following operations:
[0228] Receive data packets sent by the terminal device, wherein the data packets are transmitted by the terminal device to the network device according to the data transmission operation type corresponding to the data packets, and the data transmission operation type corresponding to the data packets is determined by the terminal device based on the data type of the data packets.
[0229] In some embodiments, it also includes:
[0230] Determine the configuration information for data transmission on the terminal device;
[0231] Configuration information is sent to the terminal device, the configuration information being used to instruct the terminal device to transmit the data packet according to the data transmission operation type corresponding to the data packet, based on the configuration information.
[0232] In some embodiments, the data type of the data packet includes a first type of data frame and a non-first type of data frame;
[0233] Wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet;
[0234] When the data type of the data packet is not a first type of data frame, the data transmission operation type corresponding to the data packet is to perform non-repeated transmission of the data packet.
[0235] In some embodiments, the first type of data frame includes intra-coded I-frames;
[0236] The non-first-class data frames include inter-frame coded P-frames.
[0237] In some embodiments, it also includes:
[0238] The terminal device is sent an instruction message, which includes the data transmission operation type corresponding to different types of data. The instruction message is used to instruct the terminal device to determine the data transmission operation type corresponding to the data packet based on the instruction message and the data type of the data packet.
[0239] In some embodiments, it also includes:
[0240] Check whether the current data packet was successfully received;
[0241] When it is detected that the current data packet has not been successfully received, a status report information is sent to the terminal device, the status report information indicating that the current data packet has not been successfully received by the network device.
[0242] In some embodiments, detecting whether the current data packet has been successfully received includes:
[0243] Configure a packet timer, which includes a first timer corresponding to a first type of data frame and a second timer corresponding to a non-first type of data frame;
[0244] If the sequence number (SN) of the delivered data packet of the first type of data frame is not equal to the SN of the protocol data unit (PDU) of the first type of data frame that is about to be received, start the first timer;
[0245] If the SN number of the received non-first type data frame delivery data packet is not equal to the SN number of the non-first type data frame PDU, start the second timer;
[0246] When either the first timer or the second timer times out, it is determined that the current data packet was not successfully received.
[0247] In some embodiments, a data transmission apparatus is provided, which is applied to a terminal device.
[0248] Figure 7 This is a schematic diagram of a data transmission device applied to a terminal device provided in an embodiment of this application, such as... Figure 7 As shown, the device includes:
[0249] The first determining module 71 is used to determine the data type of the data packet to be transmitted;
[0250] The second determining module 72 is used to determine the data transmission operation type corresponding to the data packet based on the data packet's data type;
[0251] The transmission module 73 is used to transmit data packets according to the data transmission operation type corresponding to the data packets.
[0252] In some embodiments, it also includes:
[0253] Get configuration information;
[0254] Transmit the data packet according to the data transmission operation type corresponding to the data packet, including:
[0255] Based on the configuration information, the data packet is transmitted according to the data transmission operation type corresponding to the data packet.
[0256] In some embodiments, the data type of the data packet includes a first type of data frame and a non-first type of data frame;
[0257] Wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet;
[0258] When the data type of the data packet is not a first type of data frame, the data transmission operation type corresponding to the data packet is to perform non-repeated transmission of the data packet.
[0259] In some embodiments, the first type of data frame includes intra-coded I-frames;
[0260] The non-first-class data frames include inter-frame coded P-frames.
[0261] In some embodiments, the data packet to be transmitted is the data packet corresponding to the data frame sent from the upper layer of the terminal device to the AS layer;
[0262] Determine the data type of the data packet to be transmitted, including:
[0263] The data type of the data packet is determined based on the data type label of the data frame corresponding to the data packet;
[0264] Alternatively, the data type of the data packet can be determined based on the number of data frames of different data types and the data position of the data frame corresponding to the data packet;
[0265] Alternatively, the data type of the data packet can be determined based on the data size threshold corresponding to different data types and the data size of the data packet.
[0266] In some embodiments, the quantity information of data frames of different data types includes: a first quantity of first type data frames and a second quantity of non-first type data frames;
[0267] The data type of the data packet is determined based on the number of data frames of different data types and the data position of the corresponding data frame, including:
[0268] If the counter value is less than or equal to the first quantity, the data type of the data packet is determined to be a first type of data frame;
[0269] If the counter value is greater than the first quantity, less than or equal to the sum of the first quantity and the second quantity, the data packet is determined to be a non-first type data frame.
[0270] When the counter value equals the sum of the first quantity and the second quantity, the counter value is reset to zero.
[0271] The counter's count value is used to characterize the data position of the data frame corresponding to the data packet among all data frames.
[0272] In some embodiments, determining the data transmission operation type corresponding to the data packet based on the data packet data type includes:
[0273] Receive indication information sent by network devices, the indication information being used to indicate the data transmission operation type corresponding to different types of data;
[0274] Based on the indication information and the data type of the data packet, determine the data transmission operation type corresponding to the data packet.
[0275] In some embodiments, determining the data transmission operation type corresponding to the data packet based on the data packet data type includes:
[0276] Based on preset data transmission rules and the data type of the data packet, the data transmission operation type corresponding to the data packet is determined, wherein the preset data transmission rules include data transmission operation types corresponding to different types of data.
[0277] In some embodiments, the method further includes:
[0278] Check whether the current data packet has been successfully received by the network device;
[0279] When it is detected that the current data packet has not been successfully received by the network device, if the data type of the current data packet is a first type of data frame, the transmission of the remaining data packets of the current data frame corresponding to the current data packet is stopped, and the remaining data packets are the untransmitted data packets corresponding to the current data frame.
[0280] In some embodiments, detecting whether the current data packet has been successfully received by the network device includes:
[0281] The terminal device detects whether the current data packet has been successfully received by the network device at a lower layer.
[0282] Alternatively, the success of the current data packet reception by the network device can be determined by whether a status report information sent by the network device is received, wherein the status report information indicates that the current data packet was not successfully received by the network device.
[0283] In some embodiments, a data transmission apparatus is provided, applied to a network device.
[0284] Figure 8 This is a schematic diagram of a data transmission apparatus applied to a network device according to an embodiment of this application, such as... Figure 8 As shown, the device includes:
[0285] The receiving module 81 is used to receive data packets sent by the terminal device. The data packets are transmitted by the terminal device to the network device according to the data transmission operation type corresponding to the data packets. The data transmission operation type corresponding to the data packets is determined by the terminal device based on the data type of the data packets.
[0286] In some embodiments, it also includes:
[0287] Determine the configuration information for data transmission on the terminal device;
[0288] Configuration information is sent to the terminal device, the configuration information being used to instruct the terminal device to transmit the data packet according to the data transmission operation type corresponding to the data packet, based on the configuration information.
[0289] In some embodiments, the data type of the data packet includes a first type of data frame and a non-first type of data frame;
[0290] Wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet;
[0291] When the data type of the data packet is not a first type of data frame, the data transmission operation type corresponding to the data packet is to perform non-repeated transmission of the data packet.
[0292] In some embodiments, the first type of data frame includes intra-coded I-frames;
[0293] The non-first-class data frames include inter-frame coded P-frames.
[0294] In some embodiments, it also includes:
[0295] The terminal device is sent an instruction message, which includes the data transmission operation type corresponding to different types of data. The instruction message is used to instruct the terminal device to determine the data transmission operation type corresponding to the data packet based on the instruction message and the data type of the data packet.
[0296] In some embodiments, it also includes:
[0297] Check whether the current data packet was successfully received;
[0298] When it is detected that the current data packet has not been successfully received, a status report information is sent to the terminal device, the status report information indicating that the current data packet has not been successfully received by the network device.
[0299] In some embodiments, detecting whether the current data packet has been successfully received includes:
[0300] Configure a packet timer, which includes a first timer corresponding to a first type of data frame and a second timer corresponding to a non-first type of data frame;
[0301] If the sequence number (SN) of the delivered data packet of the first type of data frame is not equal to the SN of the protocol data unit (PDU) of the first type of data frame that is about to be received, start the first timer;
[0302] If the SN number of the received non-first type data frame delivery data packet is not equal to the SN number of the non-first type data frame PDU, start the second timer;
[0303] When either the first timer or the second timer times out, it is determined that the current data packet was not successfully received.
[0304] Specific limitations regarding the data transmission device can be found in the limitations regarding the data transmission method above, and will not be repeated here. Each module in the aforementioned data transmission device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0305] In the aforementioned devices, the memory and processor are electrically connected directly or indirectly to enable data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines, such as a bus connection. The memory stores computer-executable instructions that implement data access control methods, including at least one software functional module that can be stored in the memory in the form of software or firmware. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory.
[0306] The memory can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), and Electrically Erasable Programmable Read-Only Memory (EEPROM). The memory stores programs, which the processor executes upon receiving execution instructions. Furthermore, the software programs and modules within the memory may include an operating system, which can include various software components and / or drivers for managing system tasks (e.g., memory management, storage device control, power management), and can communicate with various hardware or software components to provide an operating environment for other software components.
[0307] The processor can be an integrated circuit chip with signal processing capabilities. The aforementioned processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor.
[0308] In some embodiments, a computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, are used to implement the steps of various method embodiments of the present application.
[0309] In some embodiments, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of various method embodiments of the present application.
[0310] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0311] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0312] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A data transmission method, characterized in that, Applied to a terminal device, the method includes: The data type of the data packet to be transmitted is determined; the data packet to be transmitted is the data packet corresponding to the data frame sent from the upper layer of the terminal device to the AS layer; the data type of the data packet includes first-type data frames and non-first-type data frames; different data transmission requirements correspond to different types of data packets; The determination of the data type of the data packet to be transmitted includes: The data type of the data packet is determined based on the data type tag of the data frame corresponding to the data packet; or, the data type of the data packet is determined based on the number of data frames of different data types and the data position of the data frame corresponding to the data packet; or, the data type of the data packet is determined based on the data size threshold corresponding to different data types and the data size of the data packet. The data transmission operation type for the data packet is determined based on its data type; wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type for the data packet is to repeatedly transmit the data packet; when the data type of the data packet is not a first type of data frame, the data transmission operation type for the data packet is to non-repeatedly transmit the data packet; the repeated transmission refers to repeated transmission through different carriers or base stations; Transmit the data packet according to the data transmission operation type corresponding to the data packet; The terminal device checks whether the current data packet has been successfully received by the network device at a lower layer. Alternatively, the success of the current data packet being received by the network device can be determined by whether a status report information sent by the network device is received, wherein the status report information indicates that the current data packet was not successfully received by the network device. When it is detected that the current data packet has not been successfully received by the network device, if the data type of the current data packet is a first type of data frame, the transmission of the remaining data packets of the current data frame corresponding to the current data packet is stopped, and the remaining data packets are the untransmitted data packets corresponding to the current data frame.
2. The method according to claim 1, characterized in that, Also includes: Get configuration information; Transmit the data packet according to the data transmission operation type corresponding to the data packet, including: Based on the configuration information, the data packet is transmitted according to the data transmission operation type corresponding to the data packet.
3. The method according to claim 1, characterized in that, The first type of data frame includes intra-coded I-frames; The non-first-class data frames include inter-frame coded P-frames.
4. The method according to claim 1 or 3, characterized in that, The quantity information of data frames of different data types includes: a first quantity of data frames of the first type and a second quantity of data frames of non-first type; The data type of the data packet is determined based on the number of data frames of different data types and the data position of the corresponding data frame, including: If the counter value is less than or equal to the first quantity, the data type of the data packet is determined to be a first type of data frame; If the counter value is greater than the first quantity, less than or equal to the sum of the first quantity and the second quantity, the data packet is determined to be a non-first type data frame. When the counter value equals the sum of the first quantity and the second quantity, the counter value is reset to zero. The counter's count value is used to characterize the data position of the data frame corresponding to the data packet among all data frames.
5. The method according to any one of claims 1-3, characterized in that, Determining the data transmission operation type corresponding to the data packet based on its data type includes: Receive indication information sent by network devices, the indication information being used to indicate the data transmission operation type corresponding to different types of data; Based on the indication information and the data type of the data packet, determine the data transmission operation type corresponding to the data packet.
6. The method according to any one of claims 1-3, characterized in that, Determining the data transmission operation type corresponding to the data packet based on its data type includes: Based on preset data transmission rules and the data type of the data packet, the data transmission operation type corresponding to the data packet is determined, wherein the preset data transmission rules include data transmission operation types corresponding to different types of data.
7. A data transmission method, characterized in that, Applied to network devices, the method includes: The terminal device receives a data packet sent by a terminal device, wherein the data packet is transmitted by the terminal device to the network device according to the data transmission operation type corresponding to the data packet, and the data transmission operation type corresponding to the data packet is determined by the terminal device based on the data type of the data packet; wherein the data packet is the data packet corresponding to the data frame sent by the upper layer of the terminal device to the AS layer; The data types of the data packets include first-type data frames and non-first-type data frames; different data transmission requirements correspond to different types of data packets; the data type of the data packets is determined by: the data type label of the data frame corresponding to the data packet; or, the number of data frames of different data types and the data position of the data frame corresponding to the data packet; or, the data size threshold corresponding to different types of data and the data size of the data packet. Wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet; when the data type of the data packet is not a first type of data frame, the data transmission operation type corresponding to the data packet is to non-repeatedly transmit the data packet; the repeated transmission refers to repeated transmission through different carriers or base stations; The system detects whether the current data packet has been successfully received. If the data type of the current data packet is a first type of data frame, the terminal device stops sending the remaining data packets of the current data frame corresponding to the current data packet, where the remaining data packets are the unsent data packets corresponding to the current data frame. Furthermore, if the system detects that the current data packet has not been successfully received, it also sends a status report to the terminal device, indicating that the current data packet has not been successfully received by the network device.
8. The method according to claim 7, characterized in that, Also includes: Determine the configuration information for data transmission on the terminal device; Configuration information is sent to the terminal device, the configuration information being used to instruct the terminal device to transmit the data packet according to the data transmission operation type corresponding to the data packet, based on the configuration information.
9. The method according to claim 7, characterized in that, The first type of data frame includes intra-coded I-frames; The non-first-class data frames include inter-frame coded P-frames.
10. The method according to any one of claims 7-9, characterized in that, Also includes: Send indication information to the terminal device, the indication information including the data transmission operation type corresponding to different types of data; The indication information is used to instruct the terminal device to determine the data transmission operation type corresponding to the data packet based on the indication information and the data packet data type.
11. The method according to claim 7, characterized in that, Checking whether the current data packet was successfully received includes: Configure a packet timer, which includes a first timer corresponding to a first type of data frame and a second timer corresponding to a non-first type of data frame; If the sequence number (SN) of the delivered data packet of the first type of data frame is not equal to the SN of the protocol data unit (PDU) of the first type of data frame that is about to be received, start the first timer; If the SN number of the received non-first type data frame delivery data packet is not equal to the SN number of the non-first type data frame PDU, start the second timer; After the first timer or the second timer expires, it is determined that the current data packet was not successfully received.
12. A terminal device, characterized in that, Includes memory, transceiver, and processor: A memory for storing computer programs; a transceiver for sending and receiving data under the control of the processor; and a processor for reading the computer programs from the memory and performing the following operations: The data type of the data packet to be transmitted is determined; the data packet to be transmitted is the data packet corresponding to the data frame sent from the upper layer of the terminal device to the AS layer; the data type of the data packet includes first-type data frames and non-first-type data frames; Different types of data packets have different data transmission requirements; The determination of the data type of the data packet to be transmitted includes: The data type of the data packet is determined based on the data type tag of the data frame corresponding to the data packet; or, the data type of the data packet is determined based on the number of data frames of different data types and the data position of the data frame corresponding to the data packet; or, the data type of the data packet is determined based on the data size threshold corresponding to different data types and the data size of the data packet. The data transmission operation type for the data packet is determined based on its data type; wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type for the data packet is to repeatedly transmit the data packet; when the data type of the data packet is not a first type of data frame, the data transmission operation type for the data packet is to non-repeatedly transmit the data packet; the repeated transmission refers to repeated transmission through different carriers or base stations; Transmit the data packet according to the data transmission operation type corresponding to the data packet; The terminal device checks whether the current data packet has been successfully received by the network device at a lower layer. Alternatively, the success of the current data packet being received by the network device can be determined by whether a status report information sent by the network device is received, wherein the status report information indicates that the current data packet was not successfully received by the network device. When it is detected that the current data packet has not been successfully received by the network device, if the data type of the current data packet is a first type of data frame, the transmission of the remaining data packets of the current data frame corresponding to the current data packet is stopped, and the remaining data packets are the untransmitted data packets corresponding to the current data frame.
13. A network device, characterized in that, Includes memory, transceiver, and processor: A memory for storing computer programs; a transceiver for sending and receiving data under the control of the processor; and a processor for reading the computer programs from the memory and performing the following operations: The terminal device receives a data packet sent by a terminal device, wherein the data packet is transmitted by the terminal device to the network device according to the data transmission operation type corresponding to the data packet, and the data transmission operation type corresponding to the data packet is determined by the terminal device based on the data type of the data packet; wherein the data packet is the data packet corresponding to the data frame sent by the upper layer of the terminal device to the AS layer; The data types of the data packets include first-type data frames and non-first-type data frames; different data transmission requirements correspond to different types of data packets; the data type of the data packets is determined by: the data type label of the data frame corresponding to the data packet; or, the number of data frames of different data types and the data position of the data frame corresponding to the data packet; or, the data size threshold corresponding to different types of data and the data size of the data packet. Wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet; when the data type of the data packet is not a first type of data frame, the data transmission operation type corresponding to the data packet is to non-repeatedly transmit the data packet; the repeated transmission refers to repeated transmission through different carriers or base stations; The system detects whether the current data packet has been successfully received. If the data type of the current data packet is a first type of data frame, the terminal device stops sending the remaining data packets of the current data frame corresponding to the current data packet, where the remaining data packets are the unsent data packets corresponding to the current data frame. Furthermore, if the system detects that the current data packet has not been successfully received, it also sends a status report to the terminal device, indicating that the current data packet has not been successfully received by the network device.
14. A data transmission device, characterized in that, Applied to terminal devices, including: The first determining module is used to determine the data type of the data packet to be transmitted; the data packet to be transmitted is the data packet corresponding to the data frame sent from the upper layer of the terminal device to the AS layer; the data type of the data packet includes first-type data frames and non-first-type data frames; different data transmission requirements correspond to different types of data packets; wherein, determining the data type of the data packet to be transmitted includes: determining the data type of the data packet according to the data type tag of the data frame corresponding to the data packet; or, determining the data type of the data packet according to the number of data frames of different data types and the data position of the data frame corresponding to the data packet; or, determining the data type of the data packet according to the data size threshold corresponding to different types of data and the data size of the data packet; The second determining module is used to determine the type of data transmission operation to be performed on the data packet according to the data type of the data packet; wherein, when the data type of the data packet is a first type of data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet; when the data type of the data packet is not a first type of data frame, the data transmission operation type corresponding to the data packet is to non-repeatedly transmit the data packet; the repeated transmission refers to repeated transmission through different carriers or base stations; The transmission module is used to transmit the data packet according to the data transmission operation type corresponding to the data packet; The terminal device detects whether the current data packet has been successfully received by the network device at a lower layer; or, it determines whether the current data packet has been successfully received by the network device by whether it receives a status report information sent by the network device, wherein the status report information indicates that the current data packet has not been successfully received by the network device; when it is detected that the current data packet has not been successfully received by the network device, if the data type of the current data packet is a first type of data frame, the transmission of the remaining data packets of the current data frame corresponding to the current data packet is stopped, and the remaining data packets are the untransmitted data packets corresponding to the current data frame.
15. A data transmission device, characterized in that, Applied to network devices, including: A receiving module is used to receive data packets sent by a terminal device. The data packets are transmitted by the terminal device to the network device according to the data transmission operation type corresponding to the data packets. The data transmission operation type corresponding to the data packets is determined by the terminal device based on the data type of the data packets. The data packets are data packets corresponding to data frames sent from the upper layer of the terminal device to the AS layer. The data types of the data packets include first-type data frames and non-first-type data frames. Different types of data packets have different data transmission requirements. The data type of the data packets is determined by: the data type tag of the data frame corresponding to the data packet; or, the number of data frames of different data types and the data position of the data frame corresponding to the data packet; or, the data size threshold corresponding to different data types and the data size of the data packet. When the data... When the data type of the packet is a first-type data frame, the data transmission operation type corresponding to the data packet is to repeatedly transmit the data packet; when the data type of the data packet is not a first-type data frame, the data transmission operation type corresponding to the data packet is to non-repeatedly transmit the data packet; repeated transmission refers to repeated transmission through different carriers or base stations; detecting whether the current data packet has been successfully received; wherein, when it is detected that the current data packet has not been successfully received, if the data type of the current data packet is a first-type data frame, the terminal device stops sending the remaining data packets of the current data frame corresponding to the current data packet, the remaining data packets being the unsent data packets corresponding to the current data frame; wherein, when it is detected that the current data packet has not been successfully received, a status report information is also sent to the terminal device, the status report information indicating that the current data packet has not been successfully received by the network device.
16. A processor-readable storage medium, characterized in that, The processor-readable storage medium stores a computer program that causes the processor to perform the method according to any one of claims 1-11.
Citation Information
Patent Citations
Data transmission processing method and device
CN108809542A
Chip, device and method for adjusting data transmission strategy based on service type
CN113498108A