Concepts / TCP performance

TCP performance

AIMD

Also called additive increase, multiplicative decrease, TCP fairness, fair share

TCP's rule for sharing a link: add a little each round trip, halve on loss.

Add the same, halve together: the gap closes
Add the same, halve together: the gap closes

Every TCP sender adds about one packet per round trip and halves on a loss. Two flows sharing a link both add the same, which keeps the gap between them, and both halve when it overflows, which halves the gap: 17, 8.5, 4.25, 2.1, 1.1 Mbit/s. However unequal they start, they settle near an even share.

Every connection adds the same to its window each round trip and halves it when a packet is lost. Adding keeps the gap between two connections as it is; halving takes more from the bigger one. Loss after loss the gap shrinks, and strangers end up splitting the link evenly with no one coordinating. It needs drops: a queue long enough to hold everything gives no signal, and the first connection keeps the link.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab