RFC 9000: QUIC: Secure transport over UDP

Summary

In May 2021, Jana Iyengar and Martin Thomson published the transport protocol QUIC in RFC 9000, which runs on UDP and builds in TLS 1.3. Together with RFC 8999, RFC 9001 and RFC 9002 it describes connections with independent streams, encrypted control data and connection IDs that survive a change of IP address. According to the acknowledgements, the design draws significantly on work by Jim Roskind at Google.

Why UDP

New transport protocols often fail because of firewalls and NAT devices that only know TCP and UDP, and because of operating system kernels that are updated slowly. QUIC runs over UDP in userspace and can therefore ship with any application.

Because payload and most control information are encrypted, devices along the path cannot interfere with the protocol logic. This is meant to prevent QUIC from ossifying like TCP, whose extensions often fail at middleboxes.

Protection and measurability

Against amplification attacks, a server may send at most three times as much data to an unvalidated address as it received from there. The client's first packets must therefore be at least 1200 bytes.

For network operators there is an optional spin bit that lets observers estimate the round-trip time of a connection. Administrators must be able to disable it globally or per connection.

Ideas

  • QUIC runs over UDP and can be rolled out without a kernel update.
  • Streams do not block each other on packet loss.
  • Connection IDs survive the switch from Wi-Fi to mobile.
  • Packet numbers are never reused, not even for retransmissions.
  • Servers send at most three times as much to unvalidated addresses.
  • An optional spin bit allows passive latency measurement.

Insights

  • In QUIC, encryption also serves to protect the protocol against ossification by middleboxes.
  • What operators lose in visibility, QUIC gives back selectively and switchably, for example with the spin bit.

Facts

  • RFC 9000 appeared in May 2021 together with RFC 8999, RFC 9001 and RFC 9002.
  • The document is 151 pages long.
  • The anti-amplification limit is three times the amount of data received.
  • First client packets must be padded to at least 1200 bytes.

References

Remarks

  • Roskind's early design document from 2013 is linked in the RFC as reference EARLY-DESIGN.

Recommendations

  • Treat UDP port 443 deliberately in firewalls, because browsers otherwise silently fall back to TCP.
  • With load balancers, route by connection ID rather than IP address.
  • Update QUIC libraries regularly, since they ship with the application rather than the system.

Read the RFC at the RFC Editor

Search the Web Archive

Found a mistake or have something to add? Get in touch.