Why Netflix starts so fast, even far from California
Netflix runs its own CDN, inside or next to over a thousand ISPs, so your video travels kilometres, not oceans.
Published here · 4 sources · Resume reading
When you press play on Netflix far from California, the episode usually does not come from California. It comes from Open Connect, Netflix's own content delivery network, which keeps copies of shows inside or next to the internet provider you already use [1] [2].
Work out the far trip
Take Netflix's home in Los Gatos, California, and a viewer in Dubai. The great-circle distance is about 13,066 km (I rounded it to 13,100 km in the video). Light in optical fibre travels at roughly 200,000 km per second, so one request there and back needs at least 2 × 13,066 / 200,000 = about 0.131 s, or 131 ms, before any server does any work.
That sounds like nothing. A video, though, is fetched in many pieces, and a popular show is requested by many people at once. In the video I used 450 requests per episode and a million viewers as illustrative numbers, not measured ones. The point is the multiplication: every long trip is paid again and again, on the same long-haul links.
Put the copy close by
Netflix's fix is to move the copy, not the viewer. Its 2012 announcement describes Open Connect as "a single-purpose Netflix content delivery network" [1]. Open Connect's site says Netflix partners with over a thousand ISPs to localize traffic, through appliances embedded in those networks and through open peering [2].
Say the nearest box is 20 km from your home (an example, not a measured distance). The same arithmetic gives 2 × 20 / 200,000 = 0.0002 s, or 0.2 ms, of light travel time per request. That is the only thing the 0.2 ms figure measures. The real start time also includes your player, your Wi-Fi and the server itself.
Know how big the network is
Per Netflix's December 2022 post, Open Connect had "18,000 servers in 6,000 locations (and growing) across 175 countries" [3]. That is not every country: the service is not offered everywhere, which is why the figure is 175. The map in the video places dots on large cities as an illustration, not at real server addresses.
A CDN in general is a set of servers spread over many locations that store copies of the same data, so a server near you answers instead of one far away [4]. Open Connect is that idea built by Netflix for its own video.
Send this to the friend who wonders why Netflix starts instantly even far from California.
Keep this guide
Filed under Dev explainers
Questions about this guide
What is Open Connect?
Netflix's own content delivery network. Netflix's 2012 announcement calls it a single-purpose Netflix content delivery network, built for its own video.
Does every internet provider have a Netflix box inside it?
No. Per Open Connect's site, Netflix partners with over a thousand ISPs, some with appliances inside their networks and others through peering. I don't know which providers in a given city host one.
How many Open Connect servers are there?
Netflix's December 2022 post says 18,000 servers in 6,000 locations across 175 countries.
Is 0.2 ms how long Netflix takes to start?
No. 0.2 ms is only the light travel time for one request over a 20 km example, there and back. Real start time also includes the player, the network and the server.
Sources
- Netflix: Announcing the Netflix Open Connect network (2012-06-04)about.netflix.com
- Netflix Open Connectopenconnect.netflix.com
- MDN Web Docs glossary: CDNdeveloper.mozilla.org