QUIC and HTTP/3
Why QUIC is not ordinary UDP
QUIC is a secure transport protocol carried in UDP datagrams. It adds connection management, reliable ordered byte streams within each stream, loss recovery, congestion control and flow control. QUIC version 1 integrates TLS 1.3 for handshake and key establishment; HTTP/3 maps HTTP messages onto QUIC streams. UDP alone does not supply these guarantees. A typical HTTPS HTTP/3 endpoint uses UDP 443, whereas HTTPS over HTTP/2 commonly uses TCP 443. A shared port number does not make the transports interchangeable.
HTTP/2 -> TLS -> TCP -> IPHTTP/3 -> QUIC (TLS 1.3 integrated) -> UDP -> IPCompare streams during loss
HTTP/2 multiplexes exchanges over a single TCP connection. If missing TCP bytes occur before bytes belonging to another HTTP/2 stream, TCP cannot deliver those later bytes until the gap is repaired. In QUIC, an independent stream can deliver its contiguous bytes despite a gap on another stream. Imagine stream A missing bytes 100–199 and stream B having its entire 0–99 range available. In our toy model with no other dependencies, B can finish in QUIC while A waits. Shared congestion control, connection-level flow limits, and HTTP/3 header compression dependencies may still affect several streams. Loss can also affect multiple streams in one packet.
A: bytes 0–99 ready; bytes 100–199 missingB: bytes 0–99 readyTCP ordered delivery (A gap precedes B): B waitsQUIC independent streams: B can finishSetup, fallback and migration
QUIC can combine transport and cryptographic setup, reducing round trips in some circumstances. Resumed sessions may support early data, but replay risk limits what can safely be sent; early data is not guaranteed. QUIC connection identifiers can help maintain a connection when a network path changes, subject to endpoint policy and path validation. A client may discover HTTP/3 availability through advertised alternatives or DNS service information. If UDP fails, a client may try HTTPS over TCP when both endpoints support it. This is implementation-dependent; do not assume fallback always occurs or that HTTP/3 always outperforms HTTP/2.
WebSocket and application choices
WebSocket enables a long-lived two-way message exchange after an opening handshake. A typical HTTP/1.1 WebSocket uses an Upgrade request; HTTP/2 and HTTP/3 have distinct extended CONNECT mechanisms when supported. Secure WebSocket uses wss and TLS protection. This is useful for interactive applications, but reconnect behavior, authorization and application messages still need design. It is not a synonym for HTTP/3 or a replacement for every HTTP request. A static document can use ordinary HTTP while an authorized collaborative session can use WebSocket.
Practice a protocol decision
A fictional client supports HTTP/2 and HTTP/3. Its UDP path is unavailable, TCP works, and the server supports both. A configured fallback can attempt HTTP/2 over TCP with normal certificate checks. If TCP also fails, neither of those two options is usable along that path. No speed measurement follows from these facts. References: RFC 9113, 9114, 9000 and 6455.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
QUIC and HTTP/3 — knowledge check
Apply concepts to fictional application protocol scenarios.
What carries QUIC packets?
A missing TCP byte precedes data for HTTP/2 stream B. What happens to that later data?
In the independent QUIC stream model, only A has a gap and B is complete. What is possible?
UDP is unavailable, TCP works, and both endpoints support HTTP/2. What may a fallback-enabled client attempt?
Which protocol suits a long-lived two-way message exchange after a handshake?