Sheldon Wang.
Tech Blog

The CDN That Fills While You Sleep: How Netflix Open Connect Serves Video From Inside Your ISP

A normal CDN waits for the first viewer to miss, then fetches. Netflix Open Connect does the opposite: 18,000 free appliances inside ISP networks, filled overnight at a capped rate with tomorrow's predicted viewing, steered by a control plane in AWS that already knows which disk holds which file — and a single box pushed toward 400 Gb/s once TLS stopped touching the CPU. The mechanisms, the loops each one breaks, and what none of them can fix.

中文版 Chinese version

This is the seventh entry in the 🚀 Extreme Scale series.

Start with the inversion. A conventional CDN is demand-driven: a viewer presses play, the nearest edge discovers it does not have the file, fetches it across the upstream network at the busiest moment of the day, and only then starts serving. Netflix’s own Open Connect overview states the opposite design in one sentence: a solution customized for Netflix could be a proactive, directed cache, “much more efficient than the standard demand-driven CDN solution, reducing the overall demand on upstream network capacity by several orders of magnitude.” By December 2022 that design was 18,000 servers in 6,000 locations across 175 countries, most of them sitting inside ISP networks on hardware Netflix gives away for free — and Netflix estimated the program helped ISPs avoid $1.25 billion in spending in 2021 alone.

The interesting question is not the footprint. It is why the inversion works, mechanism by mechanism: each part of Open Connect breaks a specific loop that makes a normal CDN expensive or slow at peak, and each part has a stated boundary.

Background: when you are the peak, renting the peak stops working

Netflix began Open Connect in 2011, and its overview gives exactly two reasons. First, Netflix had grown to be a significant portion of overall traffic on consumer ISP networks, so it needed to work with those ISPs directly and collaboratively. Second, the customized, proactive design above. Both reasons are the same fact seen from two sides: at evening peak, Netflix traffic is a large share of the load the network was built for. A per-gigabyte commercial CDN bill scales with exactly the bytes that hurt most, and every one of those bytes crosses transit and peering links at the moment those links are most contended.

So Netflix split the system in two, along the line where the scaling units differ. The control plane lives in AWS: playback authorization, licensing, which files a given device needs, and the steering decision. It scales in requests per second and moves almost no bytes. The data plane is Open Connect itself: appliances whose sole responsibility, in Netflix’s words, is “delivering playable bits to client devices as fast as possible.” It scales in bits per second. OCAs store no client data — no viewing history, no DRM state, no member data. An appliance does exactly two things: report itself to the control plane, and serve files over HTTP/HTTPS when a client asks.

Deployment comes in two forms with the same hardware. At internet exchange points, Netflix installs OCA clusters and interconnects with the ISPs present via settlement-free peering. Inside ISP networks, Netflix provides the appliances free of charge to qualifying ISPs; the ISP provides power, space, and connectivity, and — this detail matters — the ISP directly controls which of its customers are routed to its embedded OCAs. Netflix’s 2018 account put it at close to 95% of global traffic delivered via direct connections between Open Connect and the residential ISPs members use.

graph TD;
    A["Viewer - presses play"] -->|"playback request - small"| B["Playback apps - AWS control plane"];
    B -->|"authorization and file list"| C["Steering service - AWS"];
    D["Embedded OCA - inside ISP"] -->|"health and BGP routes and file list"| E["Cache control service - AWS"];
    F["IXP OCA cluster - peering site"] -->|"health and BGP routes and file list"| E;
    E -->|"inventory and proximity data"| C;
    C -->|"ranked OCA URLs"| A;
    A -->|"video bytes - HTTPS"| D;
    A -->|"fallback if local cannot serve"| F;
    G["Nightly fill - off peak"] -->|"predicted files - capped rate"| D;
    G -->|"predicted files - capped rate"| F;

That is the whole topology: a brain in AWS that moves no video, and thousands of deliberately dumb, deliberately local boxes that move nothing else. Now the mechanisms.

Mechanism 1: push fill — move the bytes before the peak exists

The first failure loop of a demand-driven CDN is temporal: the cache fills itself from the peak. The first viewer of a new episode at 8 p.m. triggers a fetch across upstream links that are already carrying everyone else’s 8 p.m. traffic; the fetch competes with the playback it is supposed to enable, and a simultaneous launch multiplies the fetch across every edge that lacks the file.

Open Connect breaks the loop by moving fill to when the network is idle, and deciding the fill in advance. Netflix’s partner documentation is explicit: OCAs follow a push fill methodology, filling daily during a window set with the ISP’s network planning team so that it “occurs during the trough of your Netflix traffic” and “does not disrupt your inbound traffic peaks.” The default window is 12 hours, 2 a.m. to 2 p.m. local time (shiftable by two hours), with a hard rate cap per appliance — for a storage appliance, a maximum of 1.2 Gb/s and up to 6.5 TB per window. The control plane computes what each appliance should hold from popularity — the overview describes “ever-evolving popularity algorithms” that maximize offload efficiency while “minimizing churn in the form of updates to the content that is stored” — and the vast majority of content and software updates ride that window, because Netflix says it can “predict with high accuracy what our members will watch and what time of day they will watch it.”

Fill sourcing is hierarchical, and the hierarchy is the second half of the mechanism. Appliances peer fill from each other when clustered or on the same subnet: if one OCA in a cluster downloads a title by a regular fill, its neighbor takes the copy from it instead of via transit or peering. Failing that, tier fill: appliances that can see each other in their BGP feeds fill from each other rather than from further upstream. Only after local copies are exhausted does fill fall back toward the origin side. The causal chain is: prediction decides what, the trough decides when, the cap decides how fast it may hurt (it may not), and peer-then-tier sourcing decides how far each byte travels — ideally a rack, not a backbone.

What push fill does not fix: it is a bet on predictability, and the documentation names the losing cases itself. Out-of-cycle fills exist precisely because the bet sometimes fails — a re-encode needed to repair a viewing problem, a day-of-broadcast title, and live events all force fill traffic outside the window, at whatever the network then costs. An appliance also stores only “a portion of the Netflix catalog, in general less than the complete content library for a given region,” so the long tail is structurally not local: unpopular or unpredicted content is served from a more distant site by design. And the cap cuts both ways — a partner FAQ answer confirms the fill rate cannot simply be raised on request; the trough discipline is the product, not a default to override.

Mechanism 2: directed steering — the control plane already knows where every file is

The second failure loop is informational. A conventional edge discovers a miss by having one. Open Connect’s steering is built so that a miss, in that sense, mostly cannot be handed to a client: the control plane only offers appliances it already knows hold the file.

The reporting loop is continuous and independent of any request. Every OCA periodically reports three things to the Cache Control Service in AWS, in the 2025 Netflix Tech Blog’s words: its capacity and health, learned BGP routes, and current list of stored files. When a member presses play, the Playback Apps service determines which files the title and device require, then asks the Steering Service to steer. Steering intersects the reported inventory and health with client information such as geo location, and returns a rank-ordered list of OCA URLs; the client connects to the top-ranked OCA and streams.

BGP is not decoration here; it is the definition of “local.” OCAs are directed-cache appliances: an embedded OCA serves only clients at IP addresses advertised to it over its BGP session with the ISP’s router, so the ISP — not Netflix, not the appliance — controls which customer prefixes the box may serve. Netflix’s cache-miss framework defines proximity the same way: the most proximal site is the one that advertised the longest, most specific matching prefix for the client’s IP address. Steering is therefore grounded in the routing reality the ISP itself declared, not in a geographic guess about where an IP address lives.

The health half of the loop is what keeps “local” from becoming “local and melting.” Each OCA runs a control loop over its bottleneck metrics — CPU, disk usage, and similar — and reports its ability to take more traffic. Netflix’s 2025 framework splits every byte not served from the best local site into exactly two named causes. A content miss: the files were not on the local OCAs — a prediction, placement, or storage-capacity failure. A health miss: the local hardware was saturating, so clients were deliberately directed elsewhere — a capacity or load-balancing failure. The distinction is operational, not taxonomic: the two misses have different owners and different fixes, and Netflix joins steering-manifest logs with OCA server logs in near real time specifically so each miss arrives already labeled with its cause.

What steering does not fix: it can only choose among copies that exist and capacity that was provisioned. A content miss caused by a genuinely unpredictable hit cannot be steered away — there is no local copy to rank first — and a health miss on a launch night is a provisioning bill that arrives as degraded locality, not as an error anyone can retry away. Steering also inherits BGP’s view of the world: proximity is prefix specificity as advertised by partners, and where advertisements are coarse or a client’s apparent address misrepresents its network location, the “closest” site is closest in routing space, which is usually but not always closest in experience.

Mechanism 3: one box, 400 Gb/s — stop touching the data

The third failure loop is inside a single server, and it is a memory-bandwidth loop, not a CPU loop. Netflix’s workload is unusually pure: static, pre-encoded files, served with FreeBSD’s sendfile(2), whose entire point is that bulk data moves from disk to network without the CPU copying it through user space. Then TLS arrived as a requirement, and naive TLS breaks sendfile: if user-space software must encrypt the bytes, the bytes must be touched — read, encrypted, written — and every touch spends the scarcest resource in the machine.

Drew Gallatin’s EuroBSDCon 2021 talk puts numbers on the wall. Since 2020 a single Netflix server had served 200 Gb/s of TLS-encrypted video; the question was how to reach roughly 400 Gb/s from the same class of machine: an AMD EPYC 7502P (32 cores), 256 GB of DDR4-3200 across eight channels for roughly 150 GB/s of memory bandwidth, two Mellanox ConnectX-6 Dx cards (four 100 GbE ports in total), and 18 NVMe drives. Serving 400 Gb/s means emitting 50 GB/s — but with software kernel TLS, where the host CPU encrypts as part of the sendfile pipeline, the talk’s data-flow accounting needs about 200 GB/s of memory bandwidth, because the payload crosses memory repeatedly. That exceeds the machine’s roughly 150 GB/s. Measured result for the software path: about 240 Gb/s, limited by memory bandwidth.

The fix is to remove touches, in order. Kernel TLS (in the stack since 2016) moved bulk crypto into the kernel so the sendfile pipeline survives: handshakes stay in user space, bulk encryption happens where the data already is, and the user-space copies disappear. NUMA discipline came next: on a multi-node EPYC, bulk data that crosses the Infinity Fabric (about 47 GB/s per link in the talk’s accounting) congests the fabric and stalls CPUs, so Netflix’s strategy is to keep as much bulk data off the fabric as possible — serve each flow from the NUMA node that holds its disk and its network interface. Finally, inline NIC kTLS offload: the ConnectX-6 encrypts on the card, the host CPU never touches the payload for crypto at all, and the talk reports about 190 Gb/s per NIC — roughly 380 Gb/s across both — with CPU utilization falling to roughly 50–60%. The 2022 follow-up reported initial results toward 800 Gb/s on the same trajectory.

What this does not fix: the wall is still memory bandwidth; offload moves the crypto touch off the CPU but the bytes still cross memory from NVMe to NIC, which is why the published production appliance classes are rated far below the lab peak — Netflix’s current Open Connect specifications list roughly 200 Gb/s operational throughput for a storage appliance and about 80 Gb/s for a global appliance. The 400 Gb/s figure is what a tuned test system approached, not what a partner should expect from a rack unit, and conflating the two is exactly how CDN numbers become marketing. The mechanism’s real lesson is narrower and more transferable: at hundreds of gigabits, throughput is a budget of data touches, and every copy you delete is capacity you buy back without new hardware.

The economics are a mechanism too

It is tempting to treat “free appliances” as marketing. It is load-bearing. An ISP’s costs are dominated by peak capacity on transit, peering, and long-haul links; Open Connect removes Netflix bytes from those links at peak (served locally) and moves the replacement bytes to the trough (fill), which is capacity the ISP has already paid for and is not using. Netflix’s estimate — $1.25 billion in ISP spending avoided in 2021 — is self-reported and aimed at partners, so treat it as Netflix’s claim, not an audit. But the direction of the incentive does not depend on the exact figure: the ISP hosts the box because the box deletes the ISP’s most expensive traffic, and Netflix gives the box away because owning the last mile of delivery is worth more than the hardware. The same logic explains the compression footnote in the decade post: delivering the same picture at half the bitrate of five years earlier shrinks every term in the system at once — fewer peak bytes, smaller fills, more titles per appliance.

What Open Connect cannot do

The boundaries are structural. It is a single-catalog CDN: the prediction, the file-level inventory, and the appliance design all assume one owner who knows the entire corpus in advance; a multi-tenant CDN serving arbitrary origins cannot pre-position what it cannot enumerate. It is built for pre-encoded, on-demand files: live events are the named exception that forces out-of-cycle fill and a different delivery problem, not the case the design optimizes. Locality is bounded by partnership: a viewer whose ISP has no embedded OCAs and no nearby peering gets a longer path, and no steering algorithm creates a copy in a network that never took a box. And the whole edifice rests on the popularity distribution staying skewed — if viewing were uniform across the catalog, no portion-sized appliance could hold the working set, and push fill would degenerate into shipping the library nightly.

Lessons worth stealing

  1. Separate the planes by their scaling unit. Authorization and steering scale in requests; video scales in bits. Netflix put the first in AWS and the second in 18,000 local boxes, and neither side’s growth taxes the other’s bottleneck. If one component of your system scales in a different unit than the rest, that is a seam — cut there.
  2. Move work to the trough, and cap it there. Push fill works because the window, the rate cap (1.2 Gb/s, 6.5 TB), and the peer-then-tier sourcing are all designed together: prediction without a cap would still hurt, and a cap without prediction would just be slow. Off-peak capacity is only free if you refuse to let it become peak capacity.
  3. Never hand a client a guess. Steering returns only appliances already known — by continuous inventory reporting — to hold the file and to have health headroom. A cache that knows its contents globally does not have cold misses in the demand-driven sense; it has placement failures, which are measurable in advance. Instrument the difference: content miss and health miss have different owners.
  4. Count data touches, not just CPU. The road from 200 to roughly 380 Gb/s was not more cores; it was deleting copies — user-space to kernel, kernel to CPU crypto, fabric crossings — until memory bandwidth sufficed. At high throughput, profile where the bytes travel, not only where cycles burn.
  5. Align the neighbor’s incentives, then give away the hardware. Embedded caching works because the ISP’s peak bill falls. When your architecture needs to live inside someone else’s network, the deployment mechanism is an economic argument with a server attached.

Open Connect’s real lesson is not “build your own CDN” — almost nobody should. It is that Netflix identified the three loops that made rented delivery expensive — fill competing with the peak it serves, steering blind to inventory, and per-byte data touches inside the box — and broke each one with a mechanism whose price is stated in its own documentation: prediction that sometimes misses, locality bounded by partnership, and a lab peak the production fleet does not claim. The video starts instantly because almost everything that could go wrong was moved to 2 a.m.

Sources

  • Netflix, “Open Connect Overview,” 2016, updated 2019. https://comp3331-21t3.netlify.app/files/Open-Connect-Overview.pdf (Netflix’s official overview document, mirrored for a university course) — program begun in 2011 and its two stated reasons; proactive directed caching “much more efficient than the standard demand-driven CDN solution, reducing the overall demand on upstream network capacity by several orders of magnitude”; OCAs store encoded video/image files and serve via HTTP/HTTPS, with the sole responsibility of delivering playable bits as fast as possible; two deployment forms (IXP clusters with settlement-free peering; embedded appliances free to qualifying ISPs, ISP provides power, space, and connectivity and controls which customers are routed to them); OCAs store no client data and do exactly two things (report health, learned BGP routes, and stored files to the AWS control plane; serve content on request); the five-step playback and steering flow; the majority of content and software updates delivered proactively in off-peak fill windows; peer downloading between OCAs minimizing backbone use; popularity algorithms maximizing offload while minimizing churn.
  • Gina Haspilaire (Netflix), “Open Connect: Celebrating a Decade of Smooth and Efficient Streaming,” Netflix, December 15, 2022. https://www.webwire.com/ViewPressRel.asp?aId=298045 — 18,000 servers in 6,000 locations across 175 countries; an estimated $1.25 billion in ISP spending avoided in 2021 (Netflix’s estimate); content delivered at half the bitrate of five years earlier; pre-positioning popular content on local servers ahead of anticipated demand.
  • Netflix Open Connect Partner Help Center, “Fill patterns.” https://openconnect.zendesk.com/hc/en-us/articles/360035618071-Fill-patterns — push fill methodology; fill window set with the ISP’s network planning team to occur at the traffic trough without disrupting inbound peaks; 12-hour window, default 2 a.m. to 2 p.m. local time, shiftable by two hours; storage appliance cap of 1.2 Gb/s and up to 6.5 TB per window (global appliance 0.4 Gb/s, 2.1 TB); each OCA stores a portion of the regional catalog; peer filling within a cluster or subnet; tier filling between OCAs visible in each other’s BGP feeds; out-of-cycle fills for re-encodes, day-of-broadcast titles, and live events.
  • Dave Temkin / Netflix via APNIC Blog, “Netflix content distribution through Open Connect,” June 20, 2018. https://blog.apnic.net/2018/06/20/netflix-content-distribution-through-open-connect/ — Open Connect serves 100% of Netflix video traffic; close to 95% of global traffic delivered via direct connections with residential ISPs; OCAs as directed-cache appliances serving only client prefixes advertised over the BGP session, with the ISP in full control of which networks an appliance serves.
  • Vipul Marlecha, Lara Deek, and Thiara Ortiz, “Driving Content Delivery Efficiency Through Classifying Cache Misses,” Netflix Technology Blog, July 2, 2025. https://netflixtechblog.com/driving-content-delivery-efficiency-through-classifying-cache-misses-ffcf08026b6c — every OCA periodically reports capacity and health, learned BGP routes, and its stored-file list to the Cache Control Service; Playback Apps and the Steering Service returning rank-ordered OCA URLs; proximity rank defined by the longest, most specific matching BGP prefix; the content miss versus health miss taxonomy; each OCA’s health control loop over bottleneck metrics such as CPU and disk; near-real-time joining of steering-manifest and OCA server logs via Kafka.
  • Drew Gallatin, “Serving Netflix Video at 400 Gb/s on FreeBSD,” EuroBSDCon 2021. https://papers.FreeBSD.org/2021/eurobsdcon/gallatin-netflix-freebsd-400gbps.files/gallatin-netflix-freebsd-400gbps-slides.pdf — 200 Gb/s of TLS-encrypted video from a single server since 2020; the 400 Gb/s question; test hardware (AMD EPYC 7502P, 32 cores, 256 GB DDR4-3200, roughly 150 GB/s memory bandwidth, two Mellanox ConnectX-6 Dx cards, 18 NVMe drives); video served via sendfile(2) with software kTLS; about 200 GB/s of memory bandwidth required for 400 Gb/s under software encryption; software path measured at about 240 Gb/s and limited by memory bandwidth; Infinity Fabric at about 47 GB/s per link and the strategy of keeping bulk data off the fabric.
  • Drew Gallatin, “Serving Netflix Video Traffic at 400 Gb/s and Beyond — 800 Gb/s,” NAB Streaming Summit, April 2022 (Netflix slides). https://nabstreamingsummit.com/wp-content/uploads/2022/05/2022-Streaming-Summit-Netflix.pdf — timeline of asynchronous sendfile (2014), kernel TLS (2016), network-centric NUMA (2019), and inline hardware NIC kTLS (2022) with 800 Gb/s initial results; TLS preventing sendfile and tripling memory-bandwidth demand; kernel TLS restoring the sendfile dataflow by moving bulk crypto into the kernel while handshakes remain in user space.
  • Netflix Open Connect appliance specifications, openconnect.netflix.com — current production classes: storage appliance with up to 120 TB and roughly 200 Gb/s operational throughput; global appliance at roughly 80 Gb/s (figures as published on Netflix’s Open Connect site and summarized in the FreeBSD Foundation’s Netflix case study, https://freebsdfoundation.org/end-user-stories/netflix-case-study/ — terabits per second across thousands of FreeBSD appliances; kernel TLS enabling 400 Gb/s-class serving).
Extreme ScaleNetflixCDNOpen ConnectFreeBSD