📡 MAC Layer TS 38.321

⚙️ Build MAC PDU with various subheader formats, CEs, and see the byte‑level structure!

🧠 Concept & interactive simulation

📐 MAC PDU Structure – full byte layout ⏺️ real‑time animation

📘 3GPP references

📋 LAB Configuration Guideline

1. How to configure:
- Select element type: SDU (user data) or CE (control).
- Choose subheader format: 1‑byte (R/R/LCID), 2‑byte (R/F/LCID/L) with variable length, or eLCID (extended).
- For 2‑byte format, set Length (L) field (0‑32767).
- For eLCID, choose eLCID value (0‑32767) and optional length.
- Click Add Element to append to PDU.
- The list shows current elements; Remove Last deletes last.

2. What will be the flow:
- Each element adds a subheader and payload (if any).
- Subheader size depends on format: 1 byte (LCID only), 2 bytes (LCID + L), or 3+ bytes for eLCID.
- The canvas shows a byte‑accurate diagram with fields labelled.

3. What student can expect:
- A horizontal bar representing the MAC PDU with coloured segments.
- Each segment is labelled with its byte count and field values.
- Total size updates in real time.

4. Recommended button sequence:
- First: Add an SDU with 1‑byte subheader (LCID=5). Observe subheader and SDU.
- Then: Add a CE with 2‑byte subheader (e.g., Short BSR, L=1). See longer subheader.
- Then: Add an eLCID element to see extended format.
- Finally: Remove elements and experiment.