Open Connect: Getting Bytes Inside the ISP
Why / The Problem
Video is huge compared to normal web traffic, and Netflix's traffic has a helpful shape: it's predictable and lopsided. On any given night, a handful of titles account for most of what people are watching, and the catalog barely changes hour to hour — unlike a live sports or breaking-news CDN, where what's hot is invented on the spot. Now try to serve all of that from a few central locations, or from a rented third-party CDN. Every single byte then has to cross out of somebody else's network and into the viewer's own internet provider — a boundary the provider pays real money for, and one that jams up in the evening, exactly when every HD and 4K stream in the country wants it at once.
The first half of this part is about that boundary: who owns each side of it, what crossing it costs, and how Netflix arranged to almost never cross it. The second half is the machinery that makes the arrangement work — fill, steering, and the bookkeeping underneath both.
The Vocabulary First
These roles exist because the internet is not one network — it's tens of thousands of independently owned networks ("autonomous systems") that agree to hand each other traffic. Each player owns a different piece; none owns the whole thing.
| Player | Physically owns | Paid by |
|---|---|---|
| ISP Comcast, Jio, BT, Airtel |
The last mile to each home, plus metro/core routers in its PoPs (points of presence). Reach ends at its border routers. | Households (subscriptions). Pays out for transit and peering ports. |
| CDN Akamai, Cloudflare, Fastly — and Netflix Open Connect |
Caching servers in many locations + the software deciding what each stores and who it serves; the big ones add their own backbone. No last mile. | The content owner, per GB. (Open Connect: Netflix is both, so no invoice.) |
| IXP DE-CIX, AMS-IX, LINX, NIXI |
A layer-2 switch fabric — nothing else. A tenant in neutral colocation buildings ("carrier hotels"); no fibre, no customers. | Members, per port. Often a non-profit or co-op. |
| Transit provider Lumen, Arelion, Cogent, Tata |
Long-haul fibre between cities and continents, and the routers at each end. | Customers, per Mbps at the 95th percentile (unpacked below). |
The Whole Path, in One Picture
Three things to read off it. The thick line is the one that matters — it lives entirely inside the ISP, and it's where the overwhelming majority of Netflix's bytes travel. Everything above it is a once-a-night trickle, drawn dotted, deliberately scheduled for the hours when nobody is watching. And the transit provider sits off to the side, wired to the ISP but never to Netflix — it's on the diagram to show what Open Connect avoids, not what it uses.
Doors Into an ISP, and What Each One Costs
"Crossing into the ISP" isn't one thing. There are four ways in, and Netflix wants them in this order — each strictly cheaper for both sides than the one below:
- Embedded OCA — inside the ISP's rack. Playback crosses no boundary. Only one copy crosses, overnight, through one of the doors below.
- PNI — private network interconnect. A fibre patch cable straight from Netflix's cage to the ISP's cage. The IXP isn't in the path. Where every high-volume relationship ends up.
- Public peering at the IXP. One port reaches every member — right for the long tail of small ISPs, wrong once one of them pulls serious volume.
- Transit — the door nobody wants. Via a third network the ISP pays per Mbps. Netflix never buys it for video; it only happens on the ISP's side (below).
Why the evening peak is what costs money
Every door past the first is priced by the peak, not the total:
| Door | What the ISP pays | What sets the amount |
|---|---|---|
| Transit | An invoice, per Mbps | 95th percentile: a month of 5-minute samples, top 5% (~36 h) dropped, the highest remaining sets the bill. Bursts are free; a nightly peak isn't |
| PNI / peering | No invoice — ports, optics, cross-connects, backhaul | Link sized for its busiest hour, upgraded when that hour saturates it |
A link idle at 4am and jammed at 9pm costs the same as one jammed all day. And with the cache outside the ISP, 10,000 homes watching the same show at 9pm pull 10,000 identical copies across that link at the peak. Hence Open Connect: serve the peak from inside; move the one copy that must cross into the trough, where it doesn't touch the 95th percentile.
Who Owns What, and Why the ISP Says Yes
The load-bearing row: Netflix owns the appliance, the ISP owns the rack it sits in.
| The thing | Owned by | Paid for by |
|---|---|---|
| The video files | Netflix | Netflix |
| Origin → region backbone, and Netflix's router at the exchange | Netflix (its own AS) | Netflix, plus facility rent |
| The OCA caching server | Netflix — built, shipped and managed remotely; the ISP never logs in | Netflix; given to the ISP free |
| Rack space, power, cooling, switch port | The ISP | The ISP — its whole contribution |
| Network from rack to home | The ISP | The ISP, via subscriber bills |
| Home router, Wi-Fi, TV | The viewer | The viewer |
So When Is Each One Actually Involved?
| What's happening | Path | Who pays |
|---|---|---|
| Play — title is on your ISP's OCA the vast majority of bytes | OCA → ISP core → last mile → TV. ISP only | Nobody — internal traffic on wires already paid for |
| Play — no local OCA has it | Netflix's cluster at the exchange, one PNI/IXP hop away | ISP peering capacity, no invoice. The minority case (serving ladder, below) |
| ~3am nightly fill | Origin → Netflix backbone → exchange → PNI/IXP → OCA | One copy in the trough — barely registers. Transit only if the ISP has no direct link |
| Login / browse / press play (API calls, not video) | App → AWS over the ordinary internet | Negligible — kilobytes |
| A small foreign website not Netflix — the everyday transit case | ISP → transit provider | The ISP, per-Mbps invoice — the path peering and CDNs exist to shrink |
Four facts make Netflix's traffic unusually suited to this — and why the strategy doesn't generalize:
| Content is immutable once encoded | A title's segments never change — cache invalidation is nearly a non-problem |
|---|---|
| Demand is predictable a day ahead | Tonight's popular titles look a lot like last night's |
| Working set ≪ catalog | A regional appliance never needs the whole library |
| Read-only, one-way | No writes at the edge — the appliance is a pure serving tier |
How It Works: Topologies and Fill
Open Connect Appliances (OCAs) are Netflix-built caching servers preloaded with part of the catalog, in two topologies. Embedded OCAs sit inside a qualifying ISP's network and serve only its subscribers — zero crossings. Exchange clusters sit in Netflix's own cage in the exchange building and serve every ISP peering there: the permanent home for ISPs too small for embedded boxes, and the fallback for those that have them.
- Fill is scheduled off-peak, not on demand. OCAs fill in each region's low-traffic window (roughly 2am–6am local), so new-title writes never compete with evening reads or move the peak that sets everyone's cost. The key property: an OCA is a scheduled, predicted pre-position — not a demand-filled cache.
- Placement is a prediction, not a mirror. No OCA holds the whole catalog. The control plane predicts each region's demand from its own viewing history and pre-positions for it — a niche regional title lives on that region's OCAs and hardly anywhere else.
- Fill is tiered. A box pulls from a nearby peer or the regional fill cluster before origin. Origin bandwidth is the scarcest resource; tiering stops a regional gap becoming thousands of separate origin fetches.
How It Works: Steering
Routing is Netflix's decision, not the ISP's. On play, Netflix's control plane — not ISP routing, not DNS — picks the OCAs and returns a ranked list of appliance addresses with the manifest. Two stages; only the first is about networks:
Stage 1: eligibility comes from BGP
The question Stage 1 answers: "Which Netflix boxes sit inside this viewer's ISP?" Only those can stream to the viewer without the traffic crossing a link someone pays for. Netflix learns this from the ISP itself:
- The ISP tells the box who its customers are. A box installed in Jio's rack is connected to Jio's router, and the router tells it over BGP: "my subscribers use these address blocks:
203.0.113.0/24,198.51.100.0/22." That is just a list of IP ranges (see the BGP primer above). - The box passes the list to Netflix. It doesn't route anything with the list. It only reports "these are the people behind me." Every box does the same, so Netflix ends up with one list per box.
- On Play, Netflix looks up the viewer's IP. A viewer at
203.0.113.45falls inside203.0.113.0/24, which is on the Jio box's list. That box is eligible. A box in Airtel's network doesn't have that range on its list, so it isn't, even if it sits in the same city.
So "eligibility comes from BGP" just means that the ISP's own customer list decides which boxes can serve you. Netflix doesn't guess from location. Stage 2 then picks the best of the eligible boxes.
BGP decides who is eligible. Content inventory and load decide who wins.
Usual CDN signals can't substitute, because local here means administratively inside — a routing fact, not geography:
| Signal | What it tells you | Why it can't answer the question |
|---|---|---|
| IP geolocation | A city-level registration/billing location | Neighbours can sit behind different ISPs. Geography isn't the boundary that costs money. |
| DNS resolver address | Where the resolver is. Classic CDNs steer through DNS: your device asks a resolver to look up the CDN's hostname, the resolver asks the CDN, and the CDN answers with a server near whoever asked. That's the resolver, not you. | With a public resolver like Google's 8.8.8.8, the request reaches the CDN from Google's network, maybe from another city, and your ISP is invisible. (EDNS Client Subnet passes along part of your IP, but not every resolver sends it.) Netflix avoids the problem: the Play request goes straight from your device to Netflix's API, which sees your real IP. |
| Anycast / path from outside | The shortest path from the internet toward the client | Measures the path to the boundary, not whether an appliance is inside it. |
| Prefixes learned over BGP | Exactly which customer networks are reachable without leaving the ISP | Nothing to fix — ground truth from the ISP's own routing table. |
Stage 2: ranking is content-aware
DNS and anycast know nothing about content, but the nearest box is wrong if it lacks the title and the next is wrong if it's saturated. Owning both client and control plane lets Netflix rank on inventory, health and load, return a list, and have the player fail over mid-session with no DNS TTL in the way.
What happens when the local OCA doesn't have the title
There is no miss at play time. The control plane knows every box's exact contents, so a box lacking the title is simply left off the ranked list and the viewer gets the next rung down:
Side read: how the control plane knows what's on every appliance
Steering needs to know which box holds title X and whether it has room. The twist: the appliance is not in charge of its own contents. It reports what it has; the control plane in AWS tells it what it should have. Inventory, capacity and eviction are all decided centrally, in advance, in a batch.
1. The appliance reports; it does not decide
Each OCA continuously reports the facts only it knows:
| What I hold | Title files on disk, and their versions |
|---|---|
| How full I am | Disk used vs. free — the planner never guesses capacity |
| How I'm doing | Health, throughput, error rates, failed disks |
| Who I can reach | BGP-learned subscriber prefixes — steering's eligibility input (Stage 1) |
These feed two loops: the fast one is steering; the slow one is the fill planner.
2. Nothing is "evicted" — things just fall off the list
Once a day the planner writes the exact list each box should hold; anything not on it is deleted in tonight's quiet window. "Eviction" just means it didn't make the list.
| An ordinary cache (LRU/LFU) | An Open Connect appliance | |
|---|---|---|
| Who decides what to drop | The box itself | The central planner in AWS |
| When | Mid-request, once the disk fills | Once a day, in advance |
| Why | Something new needed the space now | It didn't make tonight's list |
| When bytes move | Whenever traffic shows up, peak included | Only in the overnight window |
| On a miss | Fetch, store, evict something | Nothing. The viewer goes to another box; contents don't change |
An ordinary cache answers a miss by fetching. An OCA answers a miss by not being chosen.
3. The disk can't overflow, because the list was built to fit
The planner scores each title by expected viewing per gigabyte, sorts, and takes from the top until reported capacity is full. Overflow is settled when the list is written.
An appliance is one machine (its own disks, IP, health report); a site is one location — an ISP PoP — with one to dozens of them. At a four-box site the planner does not give each box the same list (four 200 TB boxes would hold only 200 TB of distinct content); it treats them as one 800 TB pool and decides per title how many copies to keep. Popular titles go on several boxes — for bandwidth, not safety, since one box can only push so many streams. Rare titles get one copy. The cost: "does this site have it?" stops being meaningful, so steering ranks individual boxes — which is why each appliance reports its own contents.
4. Deleting is safe, because a file never changes
Encoded files never change; a re-encode makes new files. So there's no staleness or consistency question: deleting is purely a capacity decision, never a correctness one. Three housekeeping rules:
| Delete overnight | It's disk work, so it shares the quiet window with fetching |
|---|---|
| Delete before you fetch | The delete list runs first, so new titles have room |
| Don't yank a file someone is watching | In-flight sessions finish before removal |
A licence expiry needs no special machinery: the title just drops off every list at once.
5. When a box breaks, both loops repair it
A failed disk just means a report with less space and fewer files. The fast loop stops offering the box for titles it lost, so a viewer at worst fails over to the next appliance on their list. The slow loop writes it a smaller list tonight. The changed report is the signal.
The Invariants
- Guarantees: For a correctly predicted, pre-positioned title, nearly all of a viewer's bytes come from inside or right next to their ISP, at near-zero bandwidth cost for both sides.
- Does not guarantee: That a new demand spike is instantly well-served. Placement is a bet on predicted demand; a wrong bet or a spike that outruns the fill cycle costs real (usually brief) quality/latency until the next fill or an emergency re-fill.