TCP performance
Packet loss
Packets that never arrive: TCP resends them and halves its window, so a small loss rate caps its speed.
TCP sees a gap when the receiver keeps acknowledging the same byte: at the third duplicate acknowledgement it resends the missing segment (fast retransmit), or else its retransmission timer fires. Either way it reads the loss as congestion and halves its window. Under a steady loss rate p the window saws around √(8 / 3p) packets, so TCP moves about 1.22 × packet size ÷ (round trip × √p), whatever the link could do: the longer the round trip, the more a little loss costs. UDP resends nothing; what is lost is gone.
Read next
- Congestion window The sender's own limit on data in flight, grown while all goes well and cut on loss.
- AIMD TCP's rule for sharing a link: add a little each round trip, halve on loss.
- UDP Independent datagrams with ports and nothing else: no connection, no acknowledgement, no retries.
- TCP Reliable, ordered byte streams between programs: handshake, acknowledgements, retransmission.
- Interface counters What a card has counted since it started: packets and bytes each way, and every frame it dropped or found damaged.