The Plain Picture#
A single-lane road. The truck at the front breaks down. Every car behind it stops — even cars going to completely different places.
The Real Name#
Head-of-line blocking is when one lost packet holds up everything behind it. In TCP, because order is guaranteed (Ch 6), one lost segment stalls the whole connection, even if the data behind it belongs to unrelated things — say, a web page's image and its stylesheet, sent together over one connection.
QUIC is a newer transport protocol, designed at Google and now a standard, that fixes this. It runs on UDP (Ch 3) and builds its own reliability, but keeps separate streams inside one connection: a loss in one stream doesn't block the others. It also combines the connection setup and encryption setup into a single round trip (and zero for repeat visits). HTTP/3 runs on QUIC — explained in Networking 3: DNS, HTTP and HTTPS.
TCP (one lane) ▶ [img][img][✗][css][js] → css and js wait for the lost packet
QUIC (several lanes) ▶ img: [img][img][✗] ... → only the image stream waits
▶ css: [css][css] → keeps going
▶ js: [js][js] → keeps goingWhy not just fix TCP? TCP lives in every operating system kernel and in countless routers and firewalls that inspect it. Changing it would take decades. Building on UDP let QUIC be deployed inside apps and browsers straight away.
Check yourself
3 questionsWhat is head-of-line blocking in TCP?
Show answerHide answer
One lost segment stalls delivery of everything behind it on that connection, because TCP guarantees order.
How does QUIC avoid it?
Show answerHide answer
It has independent streams inside one connection; a loss only stalls its own stream.
Why was QUIC built on UDP rather than by changing TCP?
Show answerHide answer
TCP is built into kernels and network equipment everywhere and is nearly impossible to change quickly; UDP let QUIC ship inside applications.