May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
System Design Masterclass · Cloud Infrastructure
Free preview: the first 2 parts of this 8-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$35 once, by card or PayPal
See the System Design courseread the rest of this lesson in
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$35 once, by card or PayPal
See the System Design coursein Cloud Infrastructure
This lesson is part of the full System Design Masterclass. Unlock it along with 769 other lessons for a one-time payment.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime Access18 Foundation lessons are free, no payment needed. Try them now
It is easy and good
“It is really nice and good Please join the course”
was designed in 1981 for networks with kilobit bandwidth and high packet loss. The default settings reflect that era: conservative congestion windows, slow ramp-up, aggressive timeouts. On modern high-bandwidth, low-loss cloud networks, these defaults waste enormous capacity.
A fresh TCP connection starts with an initial congestion window (initcwnd) of 10 segments, roughly 14 KB. That means the first burst of data your server can send is only 14 KB, regardless of whether the link can handle 10 Gbps. It takes multiple round trips to ramp up to full throughput. For a typical request that transfers 50 KB total, the connection finishes before TCP ever reaches cruising speed.
Google quantified this in their 2011 paper "An Argument for Increasing TCP's Initial Congestion Window." They found that increasing initcwnd from 3 to 10 reduced HTTP by 10% on average. For web pages, where the critical rendering path fits in the first few round trips, this is the difference between a 200ms and a 220ms page load.
TCP optimization is not about changing the protocol itself. It is about tuning parameters to match your actual network conditions. Cloud networks between instances in the same region have 0.5ms RTT and near-zero packet loss. The TCP defaults were designed for 200ms RTT links with 2% loss. Closing that gap can improve by 2-10x.