0% found this document useful (0 votes)
59 views16 pages

5G NR MAC Layer Functions Explained

The document summarizes the key functions and operations of the 5G NR MAC layer as defined in 3GPP specifications. The MAC layer manages radio resources and scheduling between the physical layer and higher layers like RLC and PDCP. It is responsible for functions like resource allocation, HARQ, multiplexing/demultiplexing of logical channels, and dynamic adaptation to network conditions. The MAC layer architecture and protocol interactions are also described for 5G NR networks.

Uploaded by

gajendra5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views16 pages

5G NR MAC Layer Functions Explained

The document summarizes the key functions and operations of the 5G NR MAC layer as defined in 3GPP specifications. The MAC layer manages radio resources and scheduling between the physical layer and higher layers like RLC and PDCP. It is responsible for functions like resource allocation, HARQ, multiplexing/demultiplexing of logical channels, and dynamic adaptation to network conditions. The MAC layer architecture and protocol interactions are also described for 5G NR networks.

Uploaded by

gajendra5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Skip to content
October 30, 2023
Newsletter
Random News

TechLTEworld

Learn Share Grow

Menu

5G-NR
LTE and LTE-A
ORAN

Search for: Search … Search


Advertisements

Advertisements

[Link] 1/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Advertisements

Home
LTE-5G-ORAN
5G-NR MAC Layer Overview

LTE-5G-ORAN

5G-NR MAC Layer Overview


techlteworld1 month ago1 month ago017 mins

[Link] 2/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Advertisements

The 5G MAC (Medium Access Control) layer, as defined in 3GPP Technical Specification 38.321, plays a crucial
role in managing radio resources and ensuring efficient communication within 5G networks. It operates just above
the physical layer (PHY) and below the radio link control (RLC) and packet data convergence protocol (PDCP)
layers. Here is an introduction to the 5G MAC layer based on 3GPP TS 38.321:

Overview of the MAC Layer:

The MAC layer is responsible for controlling access to the shared radio resources, scheduling transmissions, and
managing various services and functions within the 5G network.

Simplified Protocol Architecture:

[Link] 3/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

In 5G, the MAC layer features a simplified protocol architecture compared to previous generations. It interacts
closely with the PHY layer to optimize resource utilization.

Key Functions:

Resource Allocation: The MAC layer allocates resources (e.g., time, frequency, and code resources) to
connected User Equipment (UEs) to facilitate efficient data transmission.
Scheduling: It determines which UEs can transmit data and when, taking into account various factors like
Quality of Service (QoS) requirements, traffic types, and channel conditions.
HARQ (Hybrid Automatic Repeat reQuest): The MAC layer handles HARQ processes, enabling
retransmissions of data packets in case of errors.
Logical Channels: It manages logical channels for control information exchange between the MAC layer and
higher-layer protocols.
Multiplexing and De-Multiplexing: MAC layer multiplexes and de-multiplexes data flows from different
UEs onto the shared radio resources.
PDCCH (Physical Downlink Control Channel): MAC plays a role in the allocation and signaling of PDCCH
resources for control information transmission.

User Plane and Control Plane MAC Functions:

MAC functions are divided into User Plane (UP) and Control Plane (CP) categories, each serving specific
purposes.
The UP MAC manages the transmission and reception of user data, while the CP MAC handles control
signalling and coordination between the UE and the network.

Dynamic Adaptation:

The MAC layer adapts dynamically to changing radio conditions, traffic patterns, and network requirements,
ensuring efficient resource utilization and QoS provision.

Interactions with Higher Layers:

The MAC layer interacts with higher layers, such as the RLC and PDCP layers, to ensure end-to-end data
delivery and protocol convergence.

Efficiency and Low Latency:

5G MAC is designed for low-latency communication, making it suitable for applications like IoT,
autonomous vehicles, and augmented reality, where timely data transmission is critical.

Enhancements in 5G:

3GPP 5G specifications introduce several enhancements to the MAC layer, including support for massive
MIMO, beamforming, and advanced scheduling techniques.

Shows a potential arrangement of the MAC entity when SCG remains unconfigured and when MCG and
SCG are configured.

When the UE is configured with SCG, it involves the setup of two distinct MAC entities within the UE: one
dedicated to the MCG and another for the SCG. These MAC entities function independently unless otherwise
specified. Additionally, the timers and parameters for each of these MAC entities are configured independently
unless there are specific instructions to the contrary. The characteristics of each MAC entity, including Serving
Cells, CRNTI, radio bearers, logical channels, upper- and lower-layer entities, LCGs, and HARQ entities, pertain
exclusively to those assigned to that particular MAC entity unless there are specific instructions to alter this
arrangement.

[Link] 4/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Figure: 4.2.2-1 (3gpp 38.321) MAC structure overview

Furthermore, if the MAC entity is configured with one or more SCells, it introduces the possibility of multiple DL-
SCHs, potentially multiple ULSCHs, and the potential for multiple RACHs per MAC entity. Specifically, there
would be one DL-SCH, one UL-SCH, and one RACH designated for the SpCell, and for each additional SCell,
there would be one DLSCH, a possibility of zero or one UL-SCH, and the possibility of zero or one RACH.

On the other hand, if the MAC entity is not configured with any SCell, each MAC entity will consist of a single
DL-SCH, a single UL-SCH, and a single RACH.

Figure: 4.2.2-2 (3gpp 38.321) MAC structure overview with two MAC entities

MAC functions for uplink and downlink

Table 4.4-1 in 3GPP Technical Specification 38.321 provides an overview of the MAC (Medium Access Control)
functions for both the uplink (UL) and downlink (DL) directions in a 5G NR (New Radio) network. Here are the
MAC functions for UL and DL, as per 3GPP 38.321:
[Link] 5/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Uplink (UL) MAC Functions:

Buffer Management:

Manages the data buffers for Uplink Shared Channel (UL-SCH) transmissions from the UE.

Multiplexing:

Multiplexes Logical Channels onto one or more UL-SCH transport channels for transmission.

PUSCH Transport Channel Processing:

Handles the processing of the Physical Uplink Shared Channel (PUSCH), including encoding, modulation, and
resource allocation.

Activation/Deactivation of SCells

When the MAC entity is set up with one or more SCells, the network has the capability to enable or disable these
configured SCells. Initially, upon configuring an SCell, it is in a deactivated state.

PUCCH Transport Channel Processing:

Manages the Physical Uplink Control Channel (PUCCH) transport channel for control signalling.

Harq-ACK Processing:

Handles the acknowledgment (ACK) or negative acknowledgment (NACK) signaling for uplink HARQ processes.

Random Access Handling:

Manages the Random-Access Channel (RACH) for initial access and contention resolution.

UL Grant Reception:

Receives UL grant information from the network for resource allocation.

Scheduling Request Handling:

Manages scheduling requests from the UE to request UL resources for uplink transmissions.

Downlink (DL) MAC Functions:

Buffer Management:

Manages the data buffers for Downlink Shared Channel (DL-SCH) receptions at the UE.

Power Headroom Reporting

[Link] 6/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

The Power Headroom reporting procedure provides the serving gNB with information about three types of power
headroom: Type 1 for UL-SCH transmission on the activated Serving Cell, Type 2 for UL-SCH and PUCCH
transmission on the other MAC entity (in EN-DC case), and Type 3 for SRS transmission on the activated Serving
Cell

Logical Channel Demultiplexing:

De-multiplexes incoming data streams from one or more DL-SCH transport channels onto corresponding logical
channels.

Bandwidth Part (BWP) operation

A Serving Cell can be equipped with one or multiple BWPs, with the maximum allowable number outlined in TS
38.213. BWP switching within a Serving Cell serves the purpose of enabling an inactive BWP while
simultaneously deactivating an active one. This switching process is managed through various mechanisms,
including PDCCH signals indicating downlink assignments or uplink grants, the bwpInactivityTimer, RRC
signalling, or initiation by the MAC entity itself during Random Access procedures.

SUL operation

The Supplementary UL (SUL) carrier can be set up to enhance the normal UL (NUL) carrier. If, during an ongoing
Random Access procedure, the MAC entity receives a UL grant that indicates a SUL switch, it is required to
disregard the UL grant.

Beam Failure Detection and Recovery procedure:

RRC configuration can include a beam failure recovery procedure for the MAC entity, which signals the serving
gNB about a new SSB or CSI-RS in the event of detected beam failure on the serving SSB(s)/CSI-RS(s). Detection
of beam failure is accomplished by tallying instances of beam failure indications received by the MAC entity from
the lower layers.

DL-SCH Transport Channel Processing:

Handles the processing of the Physical Downlink Shared Channel (DL-SCH), including decoding, demodulation,
and resource allocation.

DL Grant Reception:

Receives DL grant information from the network for resource allocation.

DL-SCH Harq Processing:

Manages HARQ processes for DL-SCH retransmissions and acknowledgments.

PDSCH Transport Channel Processing:

Processes the Physical Downlink Shared Channel (PDSCH) for user data transmission.

PDCCH Processing:

Handles the Physical Downlink Control Channel (PDCCH) for control signalling and resource allocation.

Broadcast Control Channel (BCCH) Handling:

Manages the BCCH for broadcast information, such as system information.

[Link] 7/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Multicast/Broadcast Single-Frequency Network (MBSFN) Handling:

Handles MBSFN subframes for multicast and broadcast services.

MAC PDU / Headers between NR and LTE

LTE MAC PDU

The MAC PDU (Protocol Data Unit) format in LTE varies depending on the specific transmission scenario, such as
DL-SCH (Downlink Shared Channel), UL-SCH (Uplink Shared Channel), or control signaling. Here is a general
overview of the MAC PDU format:

[Link] 8/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

5G-NR MAC PDU

MAC Control Elements (CEs) are grouped together.


In the downlink (DL), DL MAC subPDU(s) containing MAC CE(s) are positioned prior to any MAC
subPDU with MAC SDU or MAC subPDU with padding, as illustrated in Figure 6.1.2-4.
In the uplink (UL), UL MAC subPDU(s) featuring MAC CE(s) are situated after all MAC subPDU(s)
containing MAC SDU and before the MAC subPDU with padding within the MAC PDU, as shown in Figure
6.1.2-5.
It’s important to note that the padding size has the flexibility to be zero.
A maximum of one MAC PDU can be transmitted per TB per MAC entity.

MAC Sub header:

A MAC PDU is composed of multiple MAC subPDUs.

Each MAC subPDU can take one of the following forms:

Solely a MAC subheader (inclusive of padding).


A MAC subheader along with a MAC SDU.
A MAC subheader alongside a MAC Control Element (CE).
[Link] 9/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

A MAC subheader along with padding.


The MAC SDUs are of variable sizes.
Each MAC subheader corresponds to either a MAC SDU, a MAC CE, or padding.

R/LCID MAC subheader

R/F/LCID/L MAC subheader with 8-bit L field

R/F/LCID/L MAC subheader with 16-bit L field

In Above figure we can see subheader of L filed 7 and 15 bits.

Where,

R=Reserved bit (1 bit) set to 0.

LCID= Length is 6 bits

F= Format (1 bit)
[Link] 10/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

L= Length 8/16 bits (size of SDU)

A MAC subheader, with the exception of fixed-sized MAC Control Elements (CEs), padding, and a MAC
SDU that contains UL CCCH, comprises four distinct header fields: R, F, LCID, and L.
Conversely, for a MAC subheader associated with fixed-sized MAC CEs, padding, and a MAC SDU
containing UL CCCH, it is comprised of two header fields: R and LCID.

LCID:

As per 3GPP TS 38.321, the MAC (Medium Access Control) LCID (Logical Channel ID) is used to identify logical
channels within the MAC layer.

The format and specific values of LCID can vary depending on the type of logical channel and the corresponding
transport block size. Different LCID values are assigned to different logical channels to enable proper processing
and mapping of data within the MAC layer. The LCID values and their meanings are defined in the 3GPP
specifications and are used to efficiently manage and transmit data in 5G networks.

Values of LCID for DL-SCH

[Link] 11/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Values of LCID for UL-SCH

Share this:

Tagged: 38.321 3gpp 5G LCID MAC MAC CE MAC PDU NR subPDU techlteworld

Post navigation
Previous: Secondary Synchronization Signal (SSS) in 5G-NR
Next: SIB (System Information Block) in LTE

Leave a Reply

Write a Comment...

Reply

[Link] 12/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Related Topics

7-2x Split O-RAN Fronthaul


techlteworld4 days ago4 days ago 0

[Link] 13/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

S1 Handover Call flow


techlteworld5 days ago5 days ago 0
Search
Search

Realtime Website Traffic

Realtime Website Traffic

Website CounterWebsite Counter

[Link] 14/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Advertisements

Advertisements

[Link] 15/16
10/30/23, 3:08 PM 5G-NR MAC Layer Overview - TechLTEworld

Exit mobile version

[Link] 16/16

You might also like