TL;DR
This paper analyzes Facebook's global network infrastructure, revealing that using Akamai's Content Delivery Network (CDN) significantly reduces access latency for users worldwide. The study maps Akamai server distribution and usage, showing that while Akamai generally improves user experience, certain regions could benefit from further optimization.
What Problem Does This Paper Address?
As Facebook has grown to over a billion users, ensuring a high-quality user experience, particularly low access delay, has become paramount. While Facebook has its own data centers, these are geographically distant for many users, leading to potential latency issues. To mitigate this, Facebook leverages Akamai, a massive CDN with edge servers strategically placed worldwide. However, the exact deployment and operational patterns of this complex infrastructure, especially the interplay between Facebook's native servers and Akamai's CDN, and how this impacts user experience across different regions, remained largely unquantified. This paper aims to provide a detailed, measurement-based analysis of this network infrastructure to understand the global distribution of Akamai servers serving Facebook, their coverage, and the resulting access delays experienced by users in various countries.
Methods
The researchers employed a systematic, four-step methodology to analyze Facebook's network infrastructure:
- URL Identification: They identified 47 specific URLs corresponding to 16 different Facebook service categories (e.g., photo view, new feed, authentication) by observing user activities and analyzing network traffic.
- Delay and Path Measurement Script: A script was developed to execute
pingandtraceroutecommands from measurement nodes to these identified URLs.Pingmeasures access delay, whiletraceroutemaps the network path and identifies intermediate hops. - Distributed Infrastructure: The script was deployed across 463 PlanetLab nodes in 41 countries. These nodes ran the measurements six times a day for two weeks (May 7-21, 2013), generating approximately 2 million ping and traceroute probes.
- Geolocation: IP addresses of source nodes, Facebook servers, and Akamai servers were geolocated using MaxMind databases to determine their respective countries and cities.
This approach allowed them to map which Akamai servers served which users and to quantify the access delays.
Datasets
The primary dataset used in this study was generated through the researchers' own measurement campaign. They collected approximately 2 million ping and traceroute probes from 463 PlanetLab nodes distributed across 41 countries over a two-week period. This dataset is made publicly available for the research community.
Key Insights and Ideas
- Akamai Significantly Reduces Latency: The most striking insight is the substantial reduction in access delay when users access Facebook services through Akamai servers compared to native Facebook servers.
- Global Akamai Footprint: The study provides a detailed map of where Akamai servers are deployed and which regions they serve, revealing that Akamai nodes often serve not only local users but also those in neighboring countries.
- Uneven Performance: While Akamai generally improves performance, there are notable regional disparities in access delays, with some countries experiencing significantly higher latency than others, even those with similar infrastructure development.
- Service Specialization: Different Facebook services are handled by different providers. Akamai primarily serves content-heavy services like photo and video viewing, while native Facebook servers handle registration and authentication.
Key Results
- Latency Reduction: On average, users experience 113ms delay to access native Facebook servers, but this drops to just 43ms when using Akamai nodes, representing a 2.5x reduction in latency.
- Akamai Server Coverage: The study identified 35 countries hosting Akamai nodes that collectively serve Facebook access for all 41 countries represented by the PlanetLab nodes.
- Regional Performance Groups:
- Native FB Servers: Countries were grouped based on access delay to native FB servers, with delays ranging from under 50ms (US, Ireland, Canada) to over 150ms (Australia, New Zealand, South America).
- Akamai Servers: Countries were also grouped by Akamai access delay, with delays generally lower than native servers. Notably, small Central European countries experienced the best Akamai performance (under 10ms).
- Local vs. External Akamai Access: The US and Singapore showed the highest proportion of local Akamai server access (90% and 62% respectively). Many other countries relied on Akamai servers located in foreign countries.
- Areas for Improvement: Countries like Australia and Brazil, despite having large user bases, experienced higher Akamai access delays (87ms and 78ms) compared to smaller countries with better performance, suggesting room for optimization.
Limitations and Future Work
- Measurement Period: The study was conducted over a two-week period in May 2013. Network conditions and infrastructure can evolve, so a more recent analysis might yield different results.
- PlanetLab Node Distribution: While 463 nodes were used, the distribution might not perfectly represent all user locations or network conditions. The paper acknowledges that the lack of PL nodes in some countries (e.g., Azerbaijan, Malaysia) might influence the observed Akamai server behavior.
- Individual Country Analysis: The paper mentions that a deeper, individualized analysis for each country's specific network conditions would require a separate paper.
- Future Work: The authors suggest that their methodology can be replicated for other online services and CDNs to perform comparative analyses. They also highlight the need for solutions to improve user experience in countries like Australia and Brazil by further leveraging Akamai nodes. The findings could also inform efforts to minimize end-user access delay for services like Facebook.
Summary updated