📡 MAC Layer TS 38.321

⚙️ Configure priorities, PBR, bucket size; run scheduling for one TTI or step through multiple TTIs.

🧠 Concept & interactive simulation

📐 Logical Channel Prioritization (LCP) ⏺️ real‑time animation

📘 3GPP references

📋 LAB Configuration Guideline

1. How to configure:
- For each logical channel, set priority (1 = highest), PBR (bytes per TTI), and pending data.
- Adjust the total UL grant (bytes) for the TTI.
- Click Run LCP (one TTI) to see allocation for the current TTI.
- Use Step TTI to advance time: buckets refill by PBR each step.

2. What will be the flow:
- In each TTI, LCP runs: first serve PBR (up to bucket) in priority order, then serve remaining data in strict priority.
- Buckets accumulate PBR each TTI (capped at bucket size = PBR in this simulation).
- Allocated bytes are shown per channel; remaining data updates.

3. What student can expect:
- Table shows channel parameters, allocated bytes, and remaining data.
- Bar chart visualises allocation vs. total grant.
- After stepping, bucket values adjust (not shown directly, but effect visible in allocation).

4. Recommended button sequence:
- First: Adjust sliders, click Run LCP to see one allocation.
- Then: Click Step TTI multiple times – observe how channels with data get served each TTI.
- Reset restores default values.