CPC H04W 72/21 (2023.01) [H04W 28/0278 (2013.01); H04W 74/0833 (2013.01); H04W 80/02 (2013.01)] | 10 Claims |
1. A data transmission method, applied to a terminal device, comprising:
receiving first uplink resource allocation information sent by a network side device, wherein the first uplink resource allocation information is used to indicate a first uplink resource; and
sending a first Medium Access Control Protocol Data Unit (MAC PDU) over the first uplink resource when a size of the first uplink resource is greater than a size of a second MAC PDU previously generated and buffered in a MAC layer buffer or configuration information for resource allocation changes,
wherein the first MAC PDU is generated through packet assembly based on target data, wherein the target data comprises data content of the previously generated second MAC PDU obtained from the MAC layer buffer and data transmitted from an upper layer to a MAC layer, wherein the data content of the previously generated second MAC PDU and the data transmitted from the upper layer to the MAC layer come from a same logical channel, wherein the upper layer comprises a Radio Link Control (RLC) layer, a Packet Data Convergence Protocol (PDCP) layer, or a Service Data Adaptation Protocol (SDAP) layer,
wherein before sending the first MAC PDU over the first uplink resource, the method further comprises:
generating a same MAC Service Data Unit (SDU) by combining the data content of the previously generated second MAC PDU obtained from the MAC layer buffer and the data transmitted from the upper layer to the MAC layer that are in the same logical channel; or
generating different MAC SDUs from the data content of the previously generated second MAC PDU obtained from the MAC layer buffer and the data transmitted from the upper layer to the MAC layer that are in the same logical channel.
|