Engineering a Content Delivery Network Bruce Maggs
CDN Services Video deliveryVideo delivery Software deliverySoftware delivery Web-page deliveryWeb-page delivery Domain name system servicesDomain name system services Protection against attacksProtection against attacks
Current Installations Network Deployment Servers Networks 139+ Countries
Akamai Statistics Peak bit rate: over 33 trillion bps ( ) Peak IPv4 HTTP daily requests: over 2.7 trillion ( ) Peak IPv6 HTTP daily requests: over 50 billion 812 million unique IPv4 addresses connected to Akamai in Q1 2015
Design Themes RedundancyRedundancy Self-assessmentSelf-assessment Fail-over at multiple levelsFail-over at multiple levels Robust algorithmsRobust algorithms
Embedded Image Delivery (e.g., Facebook) <html><head> Welcome to xyz.com! Welcome to xyz.com! </head><body> <img src=“ Welcome to our Web site! Welcome to our Web site! Click here to enter Click here to enter </body></html> Embedded URLs are Converted to ARLs ak
End User Akamai DNS Resolution Akamai High-Level DNS Servers 10 g.akamai.net 1 Browser’s Cache OS 2 Local Name Server 3 xyz.com’s nameserver 6 ak.xyz.com 7 a212.g.akamai.net Akamai Low-Level DNS Servers 12 a212.g.akamai.net xyz.com.com.net Root (Verisign) akamai.net8 select cluster select servers within cluster
FirstPoint – DNS (e.g., Microsoft!) Selects from among several mirror sites operated by content providerSelects from among several mirror sites operated by content provider
Akamai Cluster Servers pool resources RAM Disk Throughput
View of Clusters hardware failure buddy suspended datacenter odd man out
Network Failures E.g., congestion at public and private peering points, misconfigured routers, inaccessible networks, etc., etc., etc.
Core Points Core point X is the first router at which all paths to nameservers 1, 2, 3, and 4 intersect.Core point X is the first router at which all paths to nameservers 1, 2, 3, and 4 intersect. X can be viewed as the straddling the core and the edge of the network.X can be viewed as the straddling the core and the edge of the network. X 1 234
Core Points 500,000 nameservers reduced to 90,000 core points 90,000 core points 7,000 account for 95% end-user load
Engineering Methodology C programming language (gcc). Reliance on open-source code. Large distributed testing systems. Burn-in on “invisible” system. Staged rollout to production. Backwards compatibility.