In this lesson · topic 7 of 7
Topic 7
Connections in review
3 min read
Predict first
Predict first
Predict first
Take away
- A new TCP and TLS 1.3 connection costs two round trips before a request can start. QUIC costs one.
- Reuse connections from a pool. Size it from the request rate times the time a connection is busy.
- Below that size a queue builds without bound with HTTP/1.1. Above it, the extra connections cost memory.
- HTTP/2 multiplexes streams on one connection and removes the queue for a free connection.
- On TCP, a lost packet stalls every stream on that connection. This is head-of-line blocking.
- QUIC orders each stream on its own, so a loss delays only the stream that lost the packet.
Sources
- Mike Belshe, Roberto Peon and Martin Thomson (eds.), RFC 9113: HTTP/2, IETF, 2022.
- Jana Iyengar and Martin Thomson (eds.), RFC 9000: QUIC, A UDP-Based Multiplexed and Secure Transport, IETF, 2021.
- Eric Rescorla, RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3, IETF, 2018.