Communication Networks · Visualized
Selective Repeat
Transport Reliability
TCP connections, retransmission timers and sliding windows that make lossy links behave.
6 interactive subtopics — each one animated, step-through and explained.
Selective Repeat
Transport ReliabilitySelective Repeat upgrades reliability economics: the receiver buffers out-of-order frames instead of discarding them and individually acknowledges each one. Only genuinely lost frames are retransmitted, then the buffer releases everything in order. Maximum efficiency, at the cost of buffering and bookkeeping on both sides.
How Selective Repeat Works
- Sender keeps a timer per outstanding frame; window of N spans [base, base+N−1].
- Receiver accepts any in-window frame and buffers it, marking holes explicitly.
- Every correctly received frame gets an individual ACK.
- A hole (timeout on that one frame) triggers retransmission of just that frame.
- Once the hole fills, buffered frames flush upward in order and both windows slide together.
Selective Repeat Worked Example
Try it: Play — frame 2 vanishes while 3 lands in the receive buffer; only frame 2 is ever resent, then 2·3·4 deliver together.
Compare with Go-Back-N on the same loss: here exactly one frame crosses the wire twice. The receive-buffer strip shows held frames waiting for the gap to close.
Selective Repeat: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.