Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%)...
Transcript of Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%)...
![Page 1: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/1.jpg)
Analysing global CDN performanceusing RIPE Atlas
Emir BeganovićRIPE SEE 8
Sarajevo, April 2019.
![Page 2: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/2.jpg)
RIPE Atlas introduction
largest Internet measurement network ever made
![Page 3: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/3.jpg)
RIPE Atlas features
- 10k probes- Mutual usage- Credits- User-defined measurements- Web UI & API
![Page 4: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/4.jpg)
Coverage
IPv4 ASNs covered - 3602 (5.627%)
IPv6 ASNs covered - 1446 (8.617%)
Number of countries covered - 182 (92.857%)
![Page 5: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/5.jpg)
Statistics
![Page 6: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/6.jpg)
Statistics
![Page 7: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/7.jpg)
RIPE Atlas web UI
- Simple web wizard- Costs summary
![Page 8: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/8.jpg)
RIPE Atlas web UI
![Page 9: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/9.jpg)
RIPE Atlas API
- REST JSON API-
![Page 10: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/10.jpg)
Background
- Atlas probe up since 2014- Analysis for private and public use
![Page 11: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/11.jpg)
CDNs
- Faster load time- Offloading traffic
costs- Ensure traffic spikes- Caching
![Page 12: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/12.jpg)
Why analyse CDN performance?
- 9/10 of top 10 websites in BiH use a CDN- Most popular services in the country: heavy CDN based
- Facebook/Instagram, Youtube, Netflix, etc.- Picking up a CDN for a new project- Get a global overview of the best CDN for particular
country, region, continent or globally
![Page 13: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/13.jpg)
Methodology
1. Define a list of CDNs to analyse:- Akamai- AWS Cloudfront- Azure- Cloudflare- Google Cloud- Fastly- Cachefly
![Page 14: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/14.jpg)
Google Cloud CDN
- Edge Points of Presence- Can be used for Storage & LB
![Page 15: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/15.jpg)
AWS Cloudfront
- 166 POPs- 155 Edge locations- 11 Regional Edge Caches
- 29 countries
![Page 16: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/16.jpg)
Cloudflare
- 175 POPs- BiH: most popular
![Page 17: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/17.jpg)
Microsoft Azure
- 129 POPs
![Page 18: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/18.jpg)
Fastly
- 129 POPs
![Page 19: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/19.jpg)
Cachefly
![Page 20: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/20.jpg)
Methodology
2. Creating measurements using RIPE Atlas API
- Small script, written in Go- For each 2-digit ISO country code & CDN combination
- Create a 3-packet ping measurement, up to 50 probes
![Page 21: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/21.jpg)
Methodology
2. Creating measurements using RIPE Atlas API
- 3-packet ping measurement
![Page 22: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/22.jpg)
Methodology
2. Creating measurements using RIPE Atlas API
- Using only working probes tagged as:- system-ipv4-capable
- system-ipv4-works
- system-resolves-a-correctly
- Consume the API response, save created measurement IDs
![Page 23: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/23.jpg)
Methodology
2. Creating measurements using RIPE Atlas API
- Issue: Throttling on RIPE Atlas side of 100 concurrent measurements and up to 1 million credits daily
- Issue: some requests failed - not all countries represented
![Page 24: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/24.jpg)
Methodology
Measurement results
![Page 25: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/25.jpg)
Methodology
3. Parsing API responses
- Wait until API limits are lifted & repeat- Fetching all measurement results after they’re
done
![Page 26: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/26.jpg)
Methodology
3. Parsing API responses
- Storing measurements in format akamai/BA.json- Parsing JSON, using avg field for average RTT from the
results
![Page 27: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/27.jpg)
Methodology
4. Creating final result set
- Saving the calculated average RTT for each measurement to final DB
- Deriving a result set in format: ISO2 country code, fastest CDN, average RTT
![Page 28: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/28.jpg)
~50.000 credits well spent
![Page 29: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/29.jpg)
Results
![Page 30: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/30.jpg)
Fastest in most countries: Cloudflare
![Page 31: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/31.jpg)
Distribution of fastest CDNs on a world map
![Page 32: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/32.jpg)
Average CDN latency
![Page 33: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/33.jpg)
Interactive map at https://url.ba/Abd
![Page 34: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/34.jpg)
Europe
![Page 35: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/35.jpg)
Average CDN latency, worldwide
![Page 36: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/36.jpg)
Average CDN latency, Bosnia and Herzegovina
![Page 37: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/37.jpg)
Conclusions
- Cloudflare: best geographical spread- Akamai: most POPs, peering privately within ISPs, best
for Africa & Asia- Google Cloud: different routing based on network tier
(standard vs premium = peering vs transit)- Azure: choice between Verizon, Akamai, Microsoft
![Page 38: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/38.jpg)
Questions?
![Page 39: Analysing global CDN performance using RIPE Atlas · Number of countries covered - 182 (92.857%) Statistics. Statistics. RIPE Atlas web UI - Simple web wizard - Costs summary. RIPE](https://reader030.fdocuments.in/reader030/viewer/2022040801/5e39d58cc28fb430bf1b8cba/html5/thumbnails/39.jpg)
Thank you