主权项 |
1. A method for creating one or more logical radio link control (RLC) protocol data units (PDUs) structures corresponding to one or more RLC PDUs for a RLC sub-layer of a first remote network entity for transmission to a medium access control (MAC) sub-layer of the first remote network entity, wherein a RLC PDU includes a first plurality of packet data convergence protocol (PDCP) PDUs, and wherein the first remote network entity is associated with a cellular network, the method comprising:
de-queuing at least one PDCP PDU from a PDCP PDU queue, wherein the PDCP PDU queue includes a second plurality of PDCP PDUs; comparing a length of the at least one PDCP PDU with a remaining length of an allocated length for transmitting the RLC PDU to a second remote network entity by the MAC sub-layer, wherein the allocated length is a count of bytes allocated for transmitting the RLC PDU, wherein lengths of the first plurality of PDCP PDUs are reduced from the allocated length to calculate the remaining length, wherein the second remote network entity is associated with the cellular network; allocating a first buffer for a header corresponding to the RLC PDU; creating the RLC PDU header in the first buffer; storing a first memory address of the first buffer in a first field of a logical RLC PDU structure that corresponds to the RLC PDU; storing a first plurality of memory addresses of a first plurality of buffers that store the first plurality of PDCP PDUs associated with the RLC PDU, in a second field of the logical RLC PDU structure; determining a count of the first plurality of PDCP PDUs; storing the count of the first plurality of PDCP PDUs in a third field of the logical RLC PDU structure; storing a retransmission indication flag in a fourth field of the logical RLC PDU structure, wherein a value of the flag is based on a retransmission status of the RLC PDU; storing one of zero and a first memory address offset corresponding to a second buffer used to store a first PDCP PDU of the first plurality of PDCP PDUs, in a fifth field of the logical RLC PDU structure, wherein the stored value is based on an operating mode of the RLC sub-layer; storing one of zero and a length of the first PDCP PDU in a sixth field of the logical RLC PDU structure, wherein the stored value is based on the operating mode of the RLC sub-layer; storing a third memory address offset corresponding to a third buffer that is used for storing a PDCP PDU of a first terminal, in a seventh field of the logical RLC PDU structure; storing a length of the PDCP PDU of the first terminal in an eighth field of the logical RLC PDU structure; and transmitting the logical RLC PDU structure to the MAC sub-layer. |