Sequence Numbers, ACKs & Retransmission
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
TCP reliability is built on numbering bytes and acknowledging contiguous progress, not on naming individual packets. That distinction explains why one ACK can confirm several segments and why a gap blocks later data.
On the wire
Each segment carries a sequence number for its first data byte and an acknowledgment number that is the next byte the receiver expects, so ACKs are cumulative. A receiver that gets an out-of-order segment buffers it and repeats an ACK for the missing byte.
When it breaks
Three duplicate ACKs signal a likely single-segment loss and trigger fast retransmit without waiting for a timer. If an acknowledged sequence number is spoofed, the sender either retransmits unnecessarily or accepts data it should have rejected.
Timers & acknowledgments
Advance the event timeline to see RTT samples, duplicate ACKs and retransmission behavior.
SRTT is updated with exponential weighting
Caps bytes in flight regardless of congestion window
The gap is reported by repeated ACKs for the missing byte until the sender reacts.