← Back to Napkin Math

problem 15

https://sirupsen.com/napkin/problem-15

Initial TCP congestion window:

Why?

So sender could send 10 packets small packets very quickly. If sending coast-to-coast, the fastest possible ACK would be 60 ms (RTT, round trip time).

So how much data in the initial window?

So if the sender could packet an entire website in that window, the receiver would be able to load the website in 120 ms rather than 180 ms or more (saving at least one round trip time).

I think that’s reasonable for a small static blog:

Let’s check the math by looking at the size of my blog:

I’m very happy to send imagines and JavaScript animations, but the font is way more than I thought! I might have to go through some of the standard fonts again.

Solution

5 round trips for client to receive first HTML byte from server:

Example: at 60 ms RTT from US coast-to-coast: that’s 300 ms to first HTML byte. And you can only receive 14.4 KB of data until you have to send the first ACK, which is another 60 ms RTT for set of data (assuming no congestion, the server should sent 28.8 KB, doubling each round trip according to it’s congestion control algorithm).