In this lesson · topic 3 of 7
Topic 3
Pool size, protocol and packet loss
8 min read
What the lab runs
Requests arrive at a rate you choose. A tick is 10 ms. Each request needs one round trip plus 40 ms of server work and sending ten packets. You choose the protocol, the pool size, the round trip time and the chance that any one packet is lost.
With HTTP/1.1 a connection carries one request at a time. With HTTP/2 and HTTP/3 a connection carries many at once. On a loss, TCP stalls every stream on that connection until the retransmit arrives. QUIC stalls only the stream that lost the packet.
The lab reports median and 99th percentile latency, the queue of requests waiting for a connection, how many connections were opened, and the share of requests that finished late because of another stream’s loss.
Predict before you press play
Things to try
- Switch to a new connection per request, with HTTP/2 and no loss.
- Choose HTTP/1.1, no loss, and a pool of 8.
- Choose HTTP/2 with no loss and a pool of 4.
- Choose HTTP/2 with a pool of 1 and 2 percent loss.
- Keep that and choose HTTP/3.
The full-page lab has a guided experiment for each of these.