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.

PlayerPhysically ownsPaid 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

Who owns what. Netflix owns the origin in AWS and the Open Connect backbone, its own fibre with no transit bill. Once a night, around 3am, one copy travels dotted to Netflix's router in a carrier hotel, where every cable between cages is a monthly cross-connect. From there it crosses either the IXP's shared switch, for a port fee, or a private PNI cable, into the OCA inside your ISP. Every play then runs, drawn thick, from the OCA through the ISP's core and last mile to your TV with zero billed crossings. A transit provider, billed per Mbps at the 95th percentile, connects only to the ISP core and carries everything that isn't Netflix.
Who owns what, and which crossing costs money. Almost every Netflix byte reaches you without crossing a boundary anyone bills for; the only crossing is one copy, once a night, in the cheapest hour of the day.

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:

Four doors into an ISP, ranked from cheapest to most expensive. 1, embedded OCA: nothing crosses at play time, free. 2, PNI: a flat monthly cross-connect fee to the building, never per byte. 3, public peering: cross-connect plus an IXP port fee. 4, transit: a real invoice per Mbps at the 95th percentile, set by the 9pm peak; Netflix video and fill essentially never go below door 3.
Four doors into an ISP, in order of preference. Every level of Open Connect's design exists to keep bytes on rung 1 — each rung down is strictly more expensive for both sides.
  1. Embedded OCA — inside the ISP's rack. Playback crosses no boundary. Only one copy crosses, overnight, through one of the doors below.
  2. 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.
  3. 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.
  4. 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:

DoorWhat the ISP paysWhat sets the amount
TransitAn invoice, per Mbps95th 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 / peeringNo invoice — ports, optics, cross-connects, backhaulLink 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 thingOwned byPaid for by
The video filesNetflixNetflix
Origin → region backbone, and Netflix's router at the exchangeNetflix (its own AS)Netflix, plus facility rent
The OCA caching serverNetflix — built, shipped and managed remotely; the ISP never logs inNetflix; given to the ISP free
Rack space, power, cooling, switch portThe ISPThe ISP — its whole contribution
Network from rack to homeThe ISPThe ISP, via subscriber bills
Home router, Wi-Fi, TVThe viewerThe viewer

So When Is Each One Actually Involved?

What's happeningPathWho pays
Play — title is on your ISP's OCA
the vast majority of bytes
OCA → ISP core → last mile → TV. ISP onlyNobody — internal traffic on wires already paid for
Play — no local OCA has itNetflix's cluster at the exchange, one PNI/IXP hop awayISP peering capacity, no invoice. The minority case (serving ladder, below)
~3am nightly fillOrigin → Netflix backbone → exchange → PNI/IXP → OCAOne 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 internetNegligible — kilobytes
A small foreign website
not Netflix — the everyday transit case
ISP → transit providerThe 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 encodedA title's segments never change — cache invalidation is nearly a non-problem
Demand is predictable a day aheadTonight's popular titles look a lot like last night's
Working set ≪ catalogA regional appliance never needs the whole library
Read-only, one-wayNo 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.

Two Open Connect topologies and the fill ladder that feeds them. An OCA missing a title tries, in order: 1, a nearby peer OCA that already has it; 2, the regional fill cluster; 3, origin in AWS, the last resort, once per region. Topology 1, embedded: OCAs in city A and city B inside one large ISP serve that ISP's viewers with zero crossings. Topology 2: an OCA cluster at an exchange, also filled from the regional cluster, serves viewers on small ISPs with one crossing, over peering.
Two topologies, and the fill ladder that feeds them. A box pulls from the nearest source that already has the content — origin is the last resort, so an ocean is crossed once per region, not once per appliance.
  1. 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.
  2. 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.
  3. 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:

Steering in two stages. A client asks to play title X from source IP 203.0.113.45. Stage 1, eligibility, is a routing fact: the client IP is longest-prefix-matched against the subscriber prefixes each appliance learns over BGP from the ISP's routers, which narrows every appliance down to the ones inside this member's ISP. Stage 2, ranking, is a content fact: among those survivors only, using each appliance's reported title files, health, throughput and load, boxes are ranked and any lacking title X are dropped. The output is a ranked list of concrete OCA addresses handed to the client with the manifest. Stage 1 cannot use IP geolocation, the resolver's address, or the anycast path: all measure nearness, and none can tell whether a box is inside the boundary that costs money.
Steering, in two stages — and only the first one is routing. BGP-learned prefixes decide which appliances are eligible; content, health and load decide which one wins. No generic CDN signal can answer the first question.

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:

  1. 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).
  2. 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.
  3. On Play, Netflix looks up the viewer's IP. A viewer at 203.0.113.45 falls inside 203.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:

SignalWhat it tells youWhy it can't answer the question
IP geolocationA city-level registration/billing locationNeighbours can sit behind different ISPs. Geography isn't the boundary that costs money.
DNS resolver addressWhere 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 outsideThe shortest path from the internet toward the clientMeasures the path to the boundary, not whether an appliance is inside it.
Prefixes learned over BGPExactly which customer networks are reachable without leaving the ISPNothing 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:

The serving ladder. The nearest OCA lacks title X, so it is never asked: it is left off the ranked list before the request exists. Rung 1, another embedded OCA in the same ISP: zero crossings, commercially identical, a little further from the viewer. Rung 2, the IX-peered cluster at the exchange: one crossing over peering, still no invoice; the ISP spends port capacity. Rung 3, a larger regional cluster further out: one crossing over peering, worse latency, more capacity, same commercial shape. Below a hard architectural line, origin in AWS is not a rung: it serves fills, never viewers, under any failure.
The serving ladder — where a viewer goes when the nearest box lacks the title. Every rung is picked before the request is made — and origin is not on this ladder at any rung.

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 holdTitle files on disk, and their versions
How full I amDisk used vs. free — the planner never guesses capacity
How I'm doingHealth, throughput, error rates, failed disks
Who I can reachBGP-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.

Two control loops running through the same appliance, which reports what it has and never decides what to keep. Fast loop, in milliseconds: the appliance reports health and load; steering re-ranks the eligible boxes; the client switches to another box from the list it already holds; the traffic change shows up in the appliance's next report. It protects the next request. Slow loop, once a day: the appliance reports contents and free space; the planner, also fed regional popularity, computes desired minus actual; an add and delete list runs in the off-peak window, deleting first then fetching; the changed contents show up in the next report. It repairs the inventory. Both loops close the same way: the changed report is the signal.
Two control loops, running at two speeds. The appliance reports; it never decides. One loop protects your next request in milliseconds; the other repairs the inventory overnight.

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 dropThe box itselfThe central planner in AWS
WhenMid-request, once the disk fillsOnce a day, in advance
WhySomething new needed the space nowIt didn't make tonight's list
When bytes moveWhenever traffic shows up, peak includedOnly in the overnight window
On a missFetch, store, evict somethingNothing. 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 overnightIt's disk work, so it shares the quiet window with fetching
Delete before you fetchThe delete list runs first, so new titles have room
Don't yank a file someone is watchingIn-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.