LTE: Resource Allocation Calculator

Resource Allocation

RAtype             Direction              Bandwidth(MHz)          

RIV (Decimal)                                      


Resource Allocation is explained in detail in the post ‘Resource Allocation’.

Uplink Resource Allocation Type 0 indicates to a scheduled UE a set of contiguously allocated virtual resource block indices. This type is explained in the post ‘UplinkResource Allocation Type 0’.

Uplink Resource Allocation Type 1 introduced in Release – 10 is used to indicate a scheduled UE, two sets of resource blocks with each set including one or more consecutive resource block groups.

In the Downlink, Resource AllocationType 0 and Resource Allocation Type 1 are used for non-contiguous resource allocation which uses bit-map based signaling.

Similar to Uplink Type 0, there exists a resource allocation type in Downlink which is Type2.

Limitations:
  •     Uplink Resource Allocation Type 1 is not supported yet…


Reference: 3GPP TS 36.213 and 36.212

LTE: Random Access Response MAC PDU Decoder

RAR MAC PDU Decoder

MAC PDU (RAR)                      


Notes

A MAC PDU which is part of Random Access Response (RAR) consists of a MAC header and zero or more MAC Random Access Responses (MAC RAR) and optionally padding.
The MAC header is of variable size.

A MAC PDU (RAR) header consists of one subheader for each MAC RAR and only on subheader for Backoff Indicator.
The subheader for Backoff Indicator, if included, is always the first subheader.

There can be one or more MAC RARs in the MAC PDU (RAR).


Each MAC RAR has a fixed size of 6 Bytes which consists of 1 reserved bit, 11-bit Timing Advance Command, 20-bit UL Grant, and 16-bit Temporary C-RNTI.
Padding may occur after the last MAC RAR. Presence and length of padding is implicit based on TB size, size of MAC header and number of RARs.

Reference: 3GPP TS 36.321 and 36.213

LTE: MAC PDU Decoder

MAC PDU Decoder

MAC PDU         UL or DL

                                                 


Notes
A MAC PDU is a bit string that is byte aligned (i.e. multiple of 8 bits) in length. Similarly, MAC SDUs are bit strings that are byte aligned (i.e. multiple of 8 bits) in length.

A MAC PDU consists of a MAC header, zero or more MAC SDUs, zero, or more MAC control elements (MAC CE), and optionally padding.

Both the MAC header and the MAC SDUs are of variable sizes.
A MAC PDU header consists of one or more MAC PDU subheaders; each subheader corresponds to a MAC SDU, a MAC CE or padding.

MAC control elements are always placed before any MAC SDU.
Padding occurs at the end of the MAC PDU, except when single-byte or two-byte padding is required. Padding may have any value and the UE shall ignore it. When padding is performed at the end of the MAC PDU, zero or more padding bytes are allowed.

When single-byte or two-byte padding is required, one or two MAC PDU subheaders corresponding to padding are placed at the beginning of the MAC PDU before any other MAC PDU subheader.
Limitations of this Decoder:

1.    Extended PHR and MCH Scheduling Information MAC CEs are not yet supported.


Reference: 3GPP TS 36.321