πŸ“‘ RLC Layer TS 38.322

βš™οΈ Configure timers, maxRetx; trigger discard via timer, maxRetx, explicit, or reconfiguration.

🧠 Concept & interactive simulation

πŸ“ RLC SDU Discard – Triggers & Procedure ⏺️ step‑by‑step animation

πŸ“˜ 3GPP references

πŸ“‹ LAB Configuration Guideline

1. How to configure:
- Set t-Discard (slots) – per‑SDU discard timer.
- Set maxRetxThreshold – maximum retransmissions per SDU (global).
- Use Send New SDU to create an SDU (segments will be transmitted over time).
- Use Advance Slot to progress time (decrements timers, processes retransmissions).
- Explicit Discard SDU – enter an SDU ID and click to simulate upper layer request.
- Reconfigure RLC – discards all SDUs (simulates reconfiguration).
- Loss probability determines whether a PDU is lost and needs retransmission.

2. What will be the flow:
- Each SDU has its own discard timer; if it expires before all its PDUs are acknowledged, the SDU is discarded (and all its PDUs removed).
- Each PDU tracks retransmissions; if a PDU's retransmission count reaches maxRetxThreshold, its entire SDU is discarded.
- Explicit discard immediately removes the SDU.
- Reconfiguration removes all SDUs.
- On discard: timer stopped, associated PDUs removed from tx/retx buffers, upper layer notified (log).

3. What student can expect:
- Transmitter shows active SDUs with progress, discard timer, and retransmission count.
- Receiver shows received PDUs; gaps appear when PDUs are lost.
- Retransmission queue shows pending retransmissions.
- Log area records discard events and notifications.

4. Recommended exploration:
- Set t-Discard short, send SDU, advance slots – observe discard.
- Set maxRetxThreshold low, increase loss – see discard due to max retx.
- Use explicit discard and reconfiguration buttons.