How HTTP got faster: reusing connections, multiplexing, and QUIC over UDP.
HTTP has changed three times to get faster. All versions let a browser ask a server for pages and files, but they differ in how they carry many requests over the network.
The meaning of HTTP stays the same in all versions: methods such as GET and POST, URLs, status codes and headers. What changes is the way the messages travel between the browser and the server.
A modern web page needs dozens of files: HTML, CSS, scripts, images, fonts. If each file needs its own slow trip across the network, pages feel slow. Each new HTTP version tries to cut the number of trips and the time wasted waiting.
| HTTP/1.1 | HTTP/2 | HTTP/3 | |
|---|---|---|---|
| Runs on | TCP | TCP | QUIC, over UDP |
| Format | Plain text | Binary frames | Binary frames |
| Requests per connection at once | One (in practice) | Many (multiplexed streams) | Many (independent streams) |
| Header compression | No | Yes (HPACK) | Yes (QPACK) |
| Connection set-up | TCP, then TLS if HTTPS | TCP, then TLS | One combined QUIC and TLS 1.3 handshake |
| Effect of one lost packet | Stalls one connection (the others carry on) | Stalls every stream on the connection | Stalls only the stream it belongs to |
| Changing networks | New connection needed | New connection needed | Connection can migrate |
| Encryption | Optional | Used with TLS in browsers | Always (TLS 1.3 built in) |
On one connection, requests are answered in order.
TCP delivers bytes in order, so it holds everything behind the gap.
QUIC orders each stream on its own.
One TCP connection carries all requests at once (multiplexing). But a lost TCP packet stalls every stream on that connection.
A simplified, illustrative model, not a benchmark. Every request costs one round trip, a new connection costs 2 round trips for TCP plus TLS 1.3 and 1 for QUIC, and a lost packet stalls everything that shares its connection or stream for about one round trip. Real pages also depend on file sizes, congestion control, caching and server time.
| Term | Meaning in easy words |
|---|---|
| Multiplexing | Sending many requests and replies at the same time over one connection |
| Stream | One request and reply pair inside a multiplexed connection |
| Head-of-line blocking | When one slow or lost item holds up everything queued behind it |
| Keep-alive | Reusing a connection for several requests instead of opening a new one |
| HPACK / QPACK | Header compression used by HTTP/2 and HTTP/3 |
| QUIC | A transport protocol over UDP with built-in encryption and independent streams |
| ALPN | A part of the TLS handshake where client and server agree on the HTTP version |
| Alt-Svc | A header where a server says it is also reachable over another protocol, such as HTTP/3 |
| Round trip (RTT) | The time for a message to go to the server and the answer to come back |
| Connection migration | Keeping a QUIC connection alive when the client's network address changes |
| Binary framing | Sending HTTP data as compact binary frames instead of plain text |
| Choice | We gain | We lose |
|---|---|---|
| HTTP/1.1 only | Simple, works everywhere, easy to debug | Slower pages, many connections |
| HTTP/2 | Multiplexing, header compression, one connection | Shared TCP connection suffers on lossy networks |
| HTTP/3 | Independent streams, faster start, migration | UDP may be blocked, more CPU, newer tooling |
| Many parallel connections | Works around HTTP/1.1 limits | More handshakes and server load |
| One shared connection | Fewer handshakes and less server load | One bad moment hits every request on it |
| Fallback to older versions | Always reachable | More configuration to test |