Description
The Medium Access Control (MAC) layer is a critical component of the 3GPP radio interface protocol stack, situated within Layer 2 (the data link layer). It sits between the Radio Link Control (RLC) sub-layer above and the Physical (PHY) layer below. The MAC layer is responsible for providing unacknowledged data transfer services on logical channels and for managing access to the transport channels offered by the physical layer. Its primary functions include multiplexing logical channels onto transport channels, scheduling radio resources, handling hybrid automatic repeat request (HARQ) retransmissions, and managing random access procedures. The MAC layer is defined in specification 21.905 and has been a fundamental part of 3GPP networks since Release 4, evolving through subsequent releases to support increasingly complex radio access technologies.
The architecture of the MAC layer involves several key components. It manages a set of logical channels, each associated with a specific type of data or control information (e.g., signaling radio bearers, data radio bearers). These logical channels are mapped to transport channels, which are then mapped to physical channels by the physical layer. The MAC layer performs multiplexing and demultiplexing of data from multiple logical channels into transport blocks for transmission over the physical layer. It also handles priority handling between different logical channels, ensuring that higher-priority data is transmitted first. The scheduler, often located in the MAC layer of the base station (e.g., eNodeB or gNB), allocates radio resources to user equipments (UEs) in both uplink and downlink directions. This scheduling is dynamic and takes into account factors such as channel quality, QoS requirements, and buffer status.
In operation, the MAC layer receives data from the RLC layer in the form of RLC PDUs (Protocol Data Units) and encapsulates them into MAC PDUs. These MAC PDUs are then passed to the physical layer for transmission. The MAC layer adds headers that include information such as the logical channel ID, length indicators, and possibly HARQ-related information. For HARQ, the MAC layer manages the retransmission of erroneous transport blocks, combining them with previous transmissions to improve reliability. The random access procedure, used by UEs to request access to the network, is also controlled by the MAC layer. This procedure involves the transmission of preambles and the reception of responses, and is essential for initial access, handover, and recovery from radio link failures.
The MAC layer plays a crucial role in achieving the performance targets of 3GPP networks, including high throughput, low latency, and high reliability. In 5G NR, the MAC layer supports flexible numerology, which allows for different subcarrier spacings and slot durations, enabling adaptation to various services and deployment scenarios. It also supports advanced features such as beamforming and massive MIMO, which require tight coordination between the MAC and physical layers. The MAC layer's scheduling decisions are central to the overall efficiency of the radio access network, as they determine how radio resources are shared among users.
Overall, the MAC layer is a cornerstone of the 3GPP radio protocol stack. Its definition has remained unchanged from Release 4 through Release 19, underscoring its stable and well-understood role. Despite the lack of definitional changes, the MAC layer has continuously evolved in terms of functionality and complexity to meet the demands of new generations of cellular technology.
Purpose & Motivation
The Medium Access Control (MAC) layer exists to manage access to the shared radio medium in a cellular network. Radio spectrum is a scarce and shared resource, and multiple users need to transmit and receive data simultaneously. The MAC layer provides the mechanisms for coordinating this access, ensuring that transmissions are scheduled efficiently and that collisions are minimized. It solves the problem of how to multiplex data from different users and services onto the available radio resources while meeting diverse QoS requirements. Without a MAC layer, the radio interface would be chaotic, with users interfering with each other and no guarantee of service quality.
Historically, the MAC layer has been a part of cellular standards since the early days of GSM and UMTS, but its role has expanded significantly with the advent of LTE and 5G. In earlier systems, the MAC layer was primarily responsible for mapping logical channels to transport channels and handling random access. With LTE, the MAC layer took on a more central role in scheduling and HARQ, enabling higher spectral efficiency and lower latency. In 5G NR, the MAC layer supports even more advanced features, such as dynamic TDD, flexible numerology, and integrated access and backhaul (IAB). The MAC layer's evolution reflects the increasing demands for higher data rates, lower latency, and greater flexibility in cellular networks.
The MAC layer also addresses the need for reliable data transfer over an unreliable radio channel. By implementing HARQ, the MAC layer can recover from transmission errors quickly and efficiently, reducing the need for higher-layer retransmissions and improving overall throughput. This is particularly important for services that require high reliability, such as URLLC. Additionally, the MAC layer's scheduling function enables the network to prioritize traffic based on QoS, ensuring that critical data is delivered promptly. This is essential for supporting a wide range of applications, from mobile broadband to industrial IoT.
In summary, the MAC layer is indispensable for the operation of 3GPP radio access networks. It provides the essential functions of medium access, scheduling, and error correction, enabling efficient and reliable communication over the radio interface. Its continued evolution ensures that it remains fit for purpose as networks advance towards 6G and beyond.
Release Timeline
Evolution Across Releases
Defining Specifications
3GPP specifications that define or reference Medium Access Control, with the latest known release. Sourced from the 3GPP document catalog — see methodology.
| Specification | Title | Release |
|---|---|---|
| TR 21.905 vj20 | 3GPP Terminology and Definitions | Rel-19 read |