Concepts / TCP performance

TCP performance

Bufferbloat

Also called queueing delay, fq_codel, latency under load

Delay added by an oversized queue that TCP fills before any packet is dropped.

A full queue adds delay, not loss
A full queue adds delay, not loss

A router queue of 1000 packets of 1500 bytes in front of a 20 Mbit/s link takes 12,000,000 / 20,000,000 = 0.6 s to drain, so a 40 ms ping behind a big upload takes 640 ms, with nothing lost. fq_codel gives each flow its own queue and serves them in turn, so the ping waits for one packet at most, and drops from a flow whose packets wait over 5 ms so its sender slows down.

During a big transfer, every other packet waits behind the queue: pings jump from tens to hundreds of milliseconds. A short or smart queue (fq_codel, cake) keeps delay low at almost the same throughput.

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