5G Architecture and Protocol Stack Overview

arch_and_proto_stackhttps://www.sharetechnote.com/html/5G/5G_RadioProtocolStackArchitecture.html

User Plane Protocol Stack in 5G

5G Architecture and Protocol Stack Overview

Application Data Flow in 5G User Plane Protocol Stack

5g_data_flow

The following diagram illustrates the Uplink Message Flow in the 5G system:

ul_message_flowhttps://www.sharetechnote.com/html/5G/5G_RadioProtocolStackArchitecture.html

  1. Application Layer
    • The data generation phase.
    • When a user executes an application and requests data, the application layer generates data corresponding to that request .(e.g., HTTP requests or video files)
  2. Application Processor
    • Ensures data reliability and routing.
    • Encapsulates application data into TCP/UDP segments.
    • Creates IP packets and delivers them to the modem.
  3. Modem
    • The SDAP layer maps IP packets to the appropriate QoS Flow.
    • Processes data through the PDCP → RLC → MAC → PHY layers for physical transmission.
  4. RF Frontend
    • Converts PHY-layer processed data into wireless signals for transmission through the RF frontend.
    • Sends the wireless signal to the base station (gNB).
  5. Base Station (gNB)
    • Processes received data through the PHY → MAC → RLC → PDCP → SDAP layers.
    • Forwards the processed data to the Core Network.
  6. Core Network
    • The UPF (User Plane Function) manages data flows
    • TCP ensures reliability by:
      • Verifying packet integrity via ACK responses.
      • Reassembling TCP segments into application data.
    • Routes IP packets to the Data Server.
  7. Internet → Data Server
    • The final destination.
    • Processes the data at the server’s Application Layer.

Data Flow: Sender Perspective

1. Application Layer

2. TCP Layer

3. IP Layer

4. SDAP (Service Data Adaptation Protocol) Layer

QoS Flow Mapping

SDAP Header Addition

DRB Mapping

Data Forwarding

5. PDCP (Packet Data Convergence Protocol) Layer

Header Compression

Data Encryption and Integrity Protection

PDCP Header Addition

PDCP PDU Structure

After processing, the PDCP PDU is delivered to the RLC layer for further segmentation and transmission.

Transmission Modes

Segmentation and Concatenation

Acknowledgment Mechanism (AM Mode)

RLC Header

Interaction with MAC Layer

Final Output

7. MAC (Medium Access Control) Layer

Resource Scheduling

Interaction with PHY for TBS

Segmentation and Padding

MAC Header

Final Interaction with PHY

8. PHY (Physical) Layer

Resource Allocation and Mapping

Transport Block Size (TBS) Calculation

Modulation and Channel Coding

Beamforming and MIMO

Interaction with MAC

Transmission

Data Flow: Receiver Perspective

1. PHY Layer

Signal Reception

OFDM Signal Restoration

Demodulation and Decoding

HARQ Processing

Passes the decoded Transport Block (TB) to the MAC layer.

2. MAC Layer

3. RLC Layer

RLC PDU Reception and Processing

Reassembly Mechanism

Sequence Management and Alignment

Behavior Based on Transmission Mode

Final Data Handling

4. PDCP Layer

Sequence Reordering

Header Decompression

Decryption and Integrity Verification

Delivery to SDAP Layer

5. SDAP Layer

QoS Flow Identification

Mapping Data to QoS Flows

Reordering Across DRBs

Handling QoS Policies

Delivery to IP Layer

6. IP Layer

7. TCP Layer

8. Application Layer

Retransmission Mechanisms Across Layers

1. PHY/MAC Layers

Sender Perspective

Receiver Perspective

2. RLC Layer

Sender Perspective

Receiver Perspective

3. PDCP Layer

Sender Perspective

Receiver Perspective

4. TCP Layer

Sender Perspective

Receiver Perspective

Potential Overlaps Between Layers

PHY/MAC vs. RLC

Polling PDU Scenario

Why Overlap Does Not Occur

  1. The second MAC PDU, containing part of the RLC Polling PDU, fails and triggers a NACK at the PHY layer.
  2. HARQ retransmits the failed MAC PDU before RLC’s t-PollRetransmit timer expires.
  3. RLC processes a complete RLC PDU only after all associated MAC PDUs are successfully received.
  4. RLC generates a Status PDU in response to a Polling PDU only after the Polling PDU has been fully received at the PHY/MAC layer.

RLC vs. PDCP

Case 1: PDCP STATUS REPORT First

Case 2: RLC STATUS PDU First

PDCP vs. TCP

Detailed Explanation

  1. How Each Layer Handles Retransmissions:
    • PDCP:
      • Ensures reliability in the wireless environment by allowing the receiver to request retransmissions via STATUS REPORTs.
      • Decisions are localized to the wireless segment of the network and focus on compensating for radio link errors.
    • TCP:
      • Provides end-to-end reliability by retransmitting segments based on:
        1. Retransmission Timeout (RTO) if ACKs are delayed or missing.
        2. Fast Retransmission upon receiving multiple duplicate ACKs.
  2. Independent Judgment:
    • PDCP Receiver:
      • Detects missing PDUs and requests retransmissions.
    • TCP Sender:
      • Observes end-to-end conditions and retransmits based on segment-level acknowledgment failures.
  3. Why Overlap Risk is High:
    • Receiver-Side (PDCP) vs. Sender-Side (TCP):
      • PDCP retransmissions are decided by the receiver (localized to the wireless link).
      • TCP retransmissions are decided by the sender (based on global, end-to-end feedback).
      • These independent layers cannot coordinate or cancel duplicate retransmission requests.

Issues with Overlap

  1. Resource Wastage:
    • Both layers retransmit the same data redundantly, consuming unnecessary network and processing resources.
  2. Increased Latency:
    • Redundant retransmissions delay overall delivery of data to the application.

Solutions

  1. Disable PDCP Retransmissions for TCP Traffic:
    • For TCP-based services (e.g., eMBB), rely solely on TCP retransmissions.
  2. Enable PDCP Retransmissions for UDP Traffic:
    • For latency-sensitive applications (e.g., VoIP), enable PDCP retransmissions to compensate for UDP’s lack of reliability.
  3. Timer Adjustment (Hybrid):
    • For services like URLLC, configure PDCP timers (e.g., T-Status-Prohibit) to expire faster than TCP timeouts, ensuring efficient retransmissions without overlap.

References

  1. 3GPP TS 38.322: Radio Link Control (RLC) Protocol Specification, 3GPP Release 17, 3rd Generation Partnership Project (3GPP). Available at: https://www.3gpp.org/ftp/Specs/archive/38_series/38.322/
    • Key Sections Referenced:
      • Section 5.3: Data Transfer Services and Functions (segmentation and reassembly).
      • Section 6.1: Protocol Data Units (PDUs) (ACK/NACK handling, Polling mechanism).
      • Section 6.1.3: Timers (t-PollRetransmit and reassembly logic).
  2. 3GPP TS 38.323: Packet Data Convergence Protocol (PDCP) Specification, 3GPP Release 17, 3rd Generation Partnership Project (3GPP). Available at: https://www.3gpp.org/ftp/Specs/archive/38_series/38.323/
    • Key Sections Referenced:
      • Section 5.2: Sequence Number Management (STATUS REPORT-based retransmissions).
      • Section 6.2: PDCP PDU Formats (handling retransmissions and STATUS REPORTs).
      • Section 6.3: Timers (e.g., T-Status-Prohibit).
  3. 3GPP TS 38.331: Radio Resource Control (RRC) Protocol Specification, 3GPP Release 17, 3rd Generation Partnership Project (3GPP). Available at: https://www.3gpp.org/ftp/Specs/archive/38_series/38.331/
    • Key Sections Referenced:
      • Section 5.3.3: RRC Procedures for Configuration (retransmission-related parameter settings).
      • Section 6.3: RRC Messages (interaction between RRC and retransmission mechanisms).
  4. 3GPP TS 36.300: Evolved Universal Terrestrial Radio Access (E-UTRA) and Evolved Universal Terrestrial Radio Access Network (E-UTRAN); Overall Description, 3GPP Release 15, 3rd Generation Partnership Project (3GPP). Available at: https://www.3gpp.org/ftp/Specs/archive/36_series/36.300/
    • Key Sections Referenced:
      • Section 6.5: HARQ Operations in LTE (conceptual references for HARQ in NR).
      • Section 10.1: Retransmission Mechanisms in LTE (framework carried forward to 5G NR).
  5. RFC 793: Transmission Control Protocol (TCP) Specification, Internet Engineering Task Force (IETF), September 1981. Available at: https://www.rfc-editor.org/rfc/rfc793
    • Key Sections Referenced:
      • Section 3.2: Retransmission Timeout (RTO) and acknowledgment mechanisms.
      • Section 3.7: Sliding Window and Data Sequencing (basis for TCP retransmissions).
  6. RFC 1191: Path MTU Discovery, Internet Engineering Task Force (IETF), November 1990. Available at: https://www.rfc-editor.org/rfc/rfc1191
    • Key Sections Referenced:
      • Section 4: Fragmentation Avoidance with MTU Discovery (dynamic MSS adjustment).
      • Section 6: PMTUD Mechanism Details (protocol-level adaptation).
  7. RFC 4821: Packetization Layer Path MTU Discovery, Internet Engineering Task Force (IETF), March 2007. Available at: https://www.rfc-editor.org/rfc/rfc4821
    • Key Sections Referenced:
      • Section 3: Dynamic Path MTU Updates (integrated PMTUD for modern networks).
      • Section 5: Interaction with TCP and UDP (layer-specific PMTUD strategies).