Why Did We Build QUIC over UDP?
Why did we build QUIC over UDP when TCP already provides reliable transport?
And perhaps a more interesting question:
If multiplexed streams are so useful, didn’t SCTP already solve that problem years ago?
Understanding these three protocols reveals how transport design shapes application performance.
1. TCP: A reliable, ordered byte stream.
TCP guarantees reliable, in-order delivery of bytes.
This works extremely well for many applications.
But consider HTTP/2, where multiple application streams share a single TCP connection.
If a TCP segment is lost, later bytes cannot be delivered to the application until the missing bytes are recovered.
Even unrelated HTTP/2 streams can be blocked.
This is transport-layer Head-of-Line Blocking.
2. SCTP: Independent streams existed before QUIC.
SCTP provides reliable, message-oriented transport with multiple streams inside a single association.
Ordering can be maintained independently within each stream.
A missing message in one stream does not necessarily block delivery in another.
SCTP also supports multihoming, allowing an association to use alternative network paths for resilience.
However, deploying a transport directly over IP can face compatibility problems with NATs, firewalls, and middleboxes.
Technical capability alone does not guarantee widespread adoption.
3. QUIC: Rethinking transport for deployability.
QUIC combines several important features:
- Reliable, independently ordered streams
- Integrated TLS 1.3 security
- Connection IDs and support for connection migration
- Deployment over UDP
Using UDP allows QUIC implementations to evolve in userspace without requiring every operating system kernel and network middlebox to adopt a new IP transport protocol.
QUIC implements reliability, flow control, loss recovery, and congestion control itself.
It is far more than unreliable datagrams with encryption.
4. But QUIC doesn’t eliminate every kind of blocking.
Independent streams reduce transport-layer Head-of-Line Blocking across streams.
However:
- Streams typically share a congestion controller.
- One lost packet may contain data from multiple streams.
- Connection-level flow control can constrain all streams.
- Application dependencies can still introduce blocking.
A congested network remains a congested network.
The key takeaway:
TCP prioritizes a reliable byte stream.
SCTP introduces message-oriented multistreaming and multihoming.
QUIC combines stream-level transport, integrated security, mobility support, and practical deployability.
Each protocol reflects different assumptions about applications and network infrastructure.
Protocol design is not just about what is technically possible. It’s also about what can actually be deployed.
What transport-level limitations have influenced your architecture decisions?
#Networking #QUIC #TCP #SCTP #DistributedSystems #SoftwareEngineering