The Pipe That Couldn't Get Bigger: How Netflix Built 100,000 Servers Inside Your ISP to Beat the Laws of Physics
In 2010, Netflix did the math and realized its video streams were about to eat more American internet bandwidth than every other service combined โ and the internet simply wasn't built to survive it. So they built their own.
The Spreadsheet That Should Have Been Impossible
It was late 2010, somewhere inside a nondescript Netflix office in Los Gatos, California, and a small team of engineers was staring at a traffic projection that didn't seem physically plausible. Netflix had just crossed 20 million streaming subscribers. The DVD-by-mail business, still the company's cash cow, was being quietly eclipsed by something stranger and hungrier: millions of people streaming Mad Men and Breaking Bad directly to their living rooms, every single night, at the exact same hours.
The numbers kept compounding. By 2013, Sandvine's Global Internet Phenomena Report would confirm what Netflix's engineers already feared: Netflix alone accounted for roughly a third of all downstream internet traffic in North America during peak evening hours. Not a third of video traffic. A third of all traffic โ email, web browsing, gaming, everything.
At the time, Netflix did what every growing streaming company did: it rented capacity from Akamai, Limelight, and Level 3, the established content delivery networks (CDNs) that cached content closer to users. But CDN bills scale with bytes delivered, and Netflix's byte count was about to go vertical. Reed Hastings and his infrastructure chiefs faced a choice that would define the next decade of the company: keep paying rent forever, or build the landlord's building themselves.
They chose to build. The result was Open Connect โ and today, more than 100,000 Netflix-branded servers sit quietly inside ISP data centers on six continents, delivering the overwhelming majority of Netflix's traffic from literally inside the networks of Comcast, AT&T, Deutsche Telekom, and hundreds of other providers. This is the story of how that machine actually works โ five layers deep, from the moment a studio delivers a movie master to the moment a photon hits your retina.
Layer One: One Movie, 1,200 Versions
Here's something most people never think about: when Netflix receives a finished film, it doesn't store "the movie." It stores the raw master and then detonates it into over 1,200 different encoded versions. Different resolutions โ from 240p for a train commute on spotty LTE, up to 4K HDR for a living room with a fiber connection. Different codecs. Different bitrate ladders.
This encoding happens on a massive custom farm running on AWS, and for years it followed a one-size-fits-all logic: every title at 1080p got the same bitrate, whether it was a static dialogue-heavy drama or a Michael Bay explosion reel. Then, in 2015, Netflix's encoding team published a breakthrough they called per-title encoding. The insight was almost embarrassingly simple once stated out loud: a hand-drawn cartoon with flat colors and simple motion needs dramatically less bandwidth than a live-action concert film full of grain, fast cuts, and complex lighting โ even at identical resolution. So why encode both the same way?
Netflix built machine-learning-tuned encoding profiles per title, analyzing the complexity of each piece of content and finding the minimum bitrate needed to preserve perceptual quality. The savings were enormous โ 20% average bitrate reduction with no visible quality loss, which at Netflix's scale meant exabytes of traffic avoided.
The codec war underneath all this has its own decade-long arc. H.264/AVC, standardized in 2003, is still the universal baseline every device supports. HEVC (H.265) arrived offering roughly double the compression โ but a tangled web of patent royalties scared off browser makers and slowed adoption. So Netflix co-founded the Alliance for Open Media in 2015 alongside Google, Amazon, and Mozilla, and became the single biggest driver behind AV1, a royalty-free codec roughly 30% smaller than HEVC at equivalent quality. AV1 now streams by default to compatible devices. The next generation, VVC (H.266), began limited rollout in 2025 โ the cycle never stops, because every 1% of compression gained is petabytes of cost saved at Netflix's scale.
Layer Two: The Servers Living Inside Your ISP
This is where Open Connect gets physical. Netflix builds and ships its own hardware appliances โ Open Connect Appliances, or OCAs โ directly to internet service providers, for free, and asks them to plug them into their own networks. Each OCA is a dual-Xeon server stuffed with roughly 280 terabytes of flash storage, running a stripped-down, hardened version of FreeBSD, with one job: cache Netflix content as close to the end user as physically possible.
The architecture splits cleanly into two planes. The data plane lives on the OCAs, sitting inside thousands of ISP facilities and internet exchange points worldwide, holding the actual video bytes. The control plane โ your login, your profile, your recommendations, your billing, the decision of which specific bitrate chunks you need next โ runs centrally on AWS.
Every night, during what Netflix calls the fill window โ the low-traffic hours, typically after midnight local time โ OCAs quietly pull fresh and popular content from Netflix's AWS S3-hosted master library. A predictive popularity model decides what to push to which server, in which region, so that a Seoul OCA stocks different priorities than one in rural Idaho. By the time primetime hits, the OCA already has the night's most-watched titles pre-loaded, ready to serve without ever touching the public internet backbone.
Layer Three: The Algorithm That Makes Buffering (Mostly) Disappear
Here's the part that actually touches your screen. Netflix doesn't send you one continuous video file. It chops every title into short segments โ typically 2 to 10 seconds each โ and encodes every segment at every bitrate in that 1,200-version ladder. Your player downloads a manifest file (either an HLS .m3u8 playlist, Apple's standard, or an MPEG-DASH .mpd file, the open ISO standard) that lists every available version of every segment.
Then, second by second, your player makes a decision: given my current measured bandwidth and how full my buffer is right now, which bitrate segment should I request next? This is adaptive bitrate streaming (ABR), and it's the reason your stream can survive your Wi-Fi dropping from fiber-speed to barely-there without you ever seeing a spinning wheel โ it just quietly drops from 4K to 1080p to 480p and climbs back up as conditions improve.
The algorithms behind that decision are a genuine research field. Buffer-based approaches like BOLA decide purely on how much buffered video you have in reserve. Throughput-based approaches try to predict your near-future bandwidth. MPC (Model Predictive Control), developed at Stanford, and Pensieve, MIT's reinforcement-learning-based predictor, combine both signals and learn from millions of real sessions which strategy minimizes rebuffering while maximizing quality. Netflix runs its own proprietary variant of this logic, tuned over a decade of A/B tests on hundreds of millions of real playback sessions.
Layer Four: Finding the Nearest Server on Earth
When you hit play, your device doesn't just connect to "Netflix." Anycast DNS and BGP routing resolve your request to the physically closest, healthiest OCA โ often one sitting in your own ISP's local facility, sometimes just a few network hops from your router. If that OCA is overloaded, offline, or missing the content, the system transparently falls back to the next-nearest one. This routing decision happens in milliseconds, invisibly, every single time you press play.
Layer Five: The Brain Behind the Stream
Above all of this sits the control plane: the playback session manager that remembers the exact frame you paused on last night, the recommendation engine (descended from the original Cinematch algorithm, now deep-learning-based) deciding what thumbnail to even show you, and the DRM layer โ Widevine for Android and Chrome, FairPlay for Apple devices, PlayReady for Windows and Xbox โ silently encrypting every segment so it can't be pirated in transit.
The Bandwidth Math That Makes This All Necessary
Do the arithmetic: a single 4K stream runs around 15 Mbps. Netflix now regularly hits over 250 million concurrent streams worldwide during peak hours. Served naively from centralized origin servers, that's roughly 3.75 terabits per second trying to cross the public internet backbone simultaneously โ a volume that would collapse transit links and peering points across entire countries. Because Open Connect caches over 90% of that traffic inside the ISP's own network, it never has to cross that fragile public backbone at all. The ISP's expensive upstream bandwidth barely feels it.
YouTube solved a similar problem with Google's own planet-spanning CDN and custom transcoding pipelines; Twitch built sub-second-latency live streaming using LL-HLS and custom transmuxers that skip redundant encoding steps entirely; Disney+ leans on AWS MediaTailor and CloudFront for personalized, ad-inserted streams. Each company independently arrived at the same underlying truth.
The Legacy
The real lesson of Open Connect isn't about video at all. It's that the internet doesn't scale by building bigger pipes to bigger datacenters โ it scales by refusing to make data travel far in the first place. Netflix didn't out-engineer physics. It just moved the content so close to you that physics stopped being the problem.
Keep Reading
The $400 Database That Charged You to Sleep: How Neon and PlanetScale Finally Split Postgres From Its Own Hard Drive
For 50 years, a database was a machine โ you provisioned it, paid for it 24/7, and prayed it didn't fall over on Black Friday. Then a handful of engineers asked a heretical question: what if storage and compute didn't have to live in the same box?
The Green Dashboard That Lied: How OpenTelemetry Killed the Logging Era and Taught Us to Ask Questions We Never Thought to Ask
Your dashboard says p99 latency is 800ms. Your customer says checkout took 45 seconds. Both are true. This is the story of how a messy 2019 merger of two rival projects quietly ended the vendor lock-in wars and rewired how the internet debugs itself.
5.26 Minutes a Year: The Brutal Math Behind 'Five Nines' โ And Why Almost Nobody Actually Hits It
In 1983, AT&T engineers built a phone switch that could fail for only 5 minutes a year โ and it worked, for decades. Here's the ruthless arithmetic of uptime, and why every extra 'nine' costs ten times more than the last.