NelworksNelworks

Tech / Season 1 / EP05

Netflix CDN

Tweet coming soon
Shez

Whoa. That was faster than turning on a light bulb.

Shez

My internet plan is the cheap one! How is this possible?

Kurumi

It's not your internet. It's **Open Connect**.

Shez

Kurumi? Why are you here? What happened to your Uber side hustle?!

Kurumi

Is this like the Spotify thing? Did my TV download the movie while I was sleeping?

Kurumi

Close. Spotify caches on your **Device**. Netflix caches at your **ISP**.

Kurumi

Your TV didn't have the movie. But the box down the street did.

Kurumi

A 4K movie is tens of GB. You can't pre-download that on every user's phone. The storage cost would be trillions.

Kurumi

So Netflix built their own internet.

Shez

Their own internet?

Kurumi

It's called the **Open Connect Appliance (OCA)**. Big red boxes.

Kurumi

Netflix doesn't stream video from 'The Cloud' (AWS). AWS is too expensive and too far away.

Kurumi

Netflix gives these red boxes to ISPs—Comcast, Verizon, major telecommunication partners—for free.

Shez

Why would the ISP agree? That costs electricity.

Kurumi

So... is OCA just another CDN? Why not just use Cloudflare or Akamai instead of building their own?

Kurumi

Normal CDNs, like Cloudflare, are 'for rent'. Netflix wanted absolute control.

Kurumi

They custom built hardware, optimized for video, storage density, even the network stack. It's tuned end-to-end for pushing 4K video, not generic web files.

Shez

So OCA lets Netflix take responsibility and guarantee user quality?

Kurumi

Exactly. They don't trust the middleman. If a movie buffers, it's their hardware. Users don't need to complain to their ISP.

Shez

But doesn't it take ages and $$$ to ship all those red boxes around the world?

Kurumi

Not always. In big markets, Netflix ships Open Connect boxes early for the real launch.

Kurumi

But it's not mandatory. Netflix can roll out just using backbone networks or third-party CDNs at first.

Shez

So OCA is like a VIP upgrade?

Kurumi

Close. No OCA usually means you watch at 1080p, not 4K. Higher chance of buffering too, especially at peak times.

Kurumi

When you clicked 'Play', the signal didn't go to California. It went to the unwashed server rack five miles from here.

Shez

Okay, so the box is close. But I hadn't clicked 'Play' yet. How was it ready *instantly*?

Shez

Even a fast download takes a second to shake hands.

Kurumi

Remember Spotify's 'Heuristic Prefetching'?

Kurumi

Netflix does the same, but smarter. They predict what you will watch before you click.

Kurumi

Is it the 'Top 10'? Is it the show you were watching yesterday?

Kurumi

The moment your app loaded the menu, it quietly shook hands (TCP Handshake) with the nearest Red Box.

Kurumi

It might even pre-fetch the first 10 seconds of the top 3 likely movies.

Shez

Sneaky.

Shez

But look at the quality! It's 4K immediately. Usually, YouTube starts blurry and then gets sharp.

Kurumi

That is the **Manifest Manipulator**.

Shez

Sounds evil.

Kurumi

Video isn't one file. It's thousands of 4-second chunks.

Kurumi

And every chunk exists in 10 different versions. 4K, 1080p, 720p...

Kurumi

Your TV asks for a 'Menu' (The Manifest). It lists all the chunks.

Kurumi

Netflix's server looks at your connection speed history. It knows you usually get 50Mbps.

Kurumi

It forces the player to start at a higher bitrate if it's confident the OCA can deliver it.

Kurumi

It gambles on your bandwidth.

Shez

So it's just raw power? Sending huge 4K files?

Kurumi

More precisely, efficiency. Have you noticed that a cartoon looks sharp, but a gritty action movie sometimes looks blocky?

Shez

Yeah. Why is that?

Kurumi

Because Netflix doesn't encode everything equally. It's called **Per-Title Encoding**.

Kurumi

Old streaming used fixed rules: '4K must be 15 Megabits per second'.

Kurumi

But *My Little Pony* looks perfect at 2 Megabits. Sending 15 is a waste.

Kurumi

Netflix analyzes every single shot. They compute the 'Convex Hull' of quality vs. file size.

Kurumi

They shrink the cartoon to almost nothing. They give the extra space to the action movie.

Shez

So they squeeze the easy stuff to afford the hard stuff?

Kurumi

Exactly. This saves them 20% of their total internet traffic.

Shez

That's smart. But what happens if the Red Box breaks? Or my internet dies?

Kurumi

If the local OCA fails, the Manifest updates instantly.

Kurumi

It points you to the *next* closest OCA. Maybe the one in the next town.

Kurumi

It fails over gracefully. You just might drop to 1080p.

Shez

You know, between Spotify and Netflix, my devices are doing a lot of lying to me.

Shez

Spotify lies about streaming (it's caching). Netflix lies about the cloud (it's local hardware).

Kurumi

Great engineering tries to make things feel like magic.