1. How to configure:
- Set loss probability (0β1) β probability that a transmission fails (NACK).
- Set RTT (slots) β delay before a NACK is received and retransmission is sent.
- Set maxRetxThreshold β maximum number of retransmissions allowed for a PDU (excluding the first transmission).
- Use Send Next PDU to transmit the next sequence number.
- Use Advance Slot to move time forward (triggers retransmissions).
2. What will be the flow:
- Each PDU is transmitted; if lost (according to loss probability), it will be scheduled for retransmission after RTT slots.
- Each retransmission counts towards the PDU's retransmission count. If the count exceeds maxRetxThreshold, the PDU is discarded (and not delivered).
- Successful PDUs are marked as received and eventually delivered.
3. What student can expect:
- Visual timeline of transmissions (first in blue, retransmissions in orange).
- Receiver buffer shows which PDUs have been received.
- Discarded PDUs are shown in red and not delivered.
- Statistics: total PDUs sent, discarded, delivered.
4. Recommended exploration:
- Set maxRetxThreshold = 1, loss high β observe PDUs discarded after first retransmission.
- Increase maxRetxThreshold to 3, see more retransmissions before discard.
- Adjust RTT to see timing of retransmissions.