Internet Cartography

Visit the post for more.

8 min readintermediate
--
View Original

Overview

The article 'Internet Cartography' explores the historical and geographical influences on the structure of the internet, comparing it to the global telegraph network from over a century ago. It discusses how economic ties shape internet connectivity and provides insights into measuring DNS and HTTP latencies across different regions.

What You'll Learn

1

How to measure DNS performance using network requests

2

Why geographical factors affect internet latency

3

How to analyze HTTP latency data for performance insights

Prerequisites & Requirements

  • Basic understanding of DNS and HTTP protocols
  • Familiarity with measurement frameworks like Yahoo's Boomerang(optional)

Key Questions Answered

How can you measure DNS latencies using real-world data?
You can measure DNS latencies by having users perform two network requests to a dynamically generated hostname. The first request involves a DNS lookup, while the second skips this step, allowing you to calculate the time taken for DNS resolution by comparing the two latencies.
What factors influence HTTP latency between countries?
HTTP latency is influenced by geographical distance, economic ties, and the physical infrastructure of internet cables. For example, latency between Asia and the US is generally worse than between the US and Europe due to the wider Pacific Ocean and varying investment in cable infrastructure.
What does the density plot of DNS latency data reveal?
The density plot shows that a significant number of users experience DNS latencies exceeding 500 milliseconds, indicating potential issues with uncached DNS lookups. This highlights the variability in DNS performance across different regions.

Key Statistics & Figures

Median DNS latencies
500 milliseconds
This value represents the latency experienced by a significant number of users during uncached DNS lookups.
HTTP latency multiples
2X to 2.5X
Countries with strong economic ties to the US typically have HTTP latencies at or below 2X the theoretical minimum, while others may exceed 2.5X.

Technologies & Tools

Measurement Framework
Yahoo's Boomerang
Used for measuring DNS and HTTP performance metrics.

Key Actionable Insights

1
Implementing a measurement strategy for DNS performance can help identify latency issues in your application.
By using the outlined method of measuring DNS latencies, you can gain insights into how your users experience your website, allowing you to optimize performance based on real data.
2
Understanding the geographical factors affecting internet latency can guide infrastructure investment decisions.
By analyzing latency data, organizations can prioritize investments in regions with higher latency to improve user experience and connectivity.
3
Using the Boomerang measurement framework can simplify the process of gathering performance data.
The open-source nature of Boomerang allows engineers to easily adapt it for their specific needs, making it a valuable tool for performance analysis.

Common Pitfalls

1
Relying solely on median values for latency can be misleading.
Median values do not capture the full distribution of latencies, which can vary significantly. It's important to consider the range and distribution of latencies to understand user experience better.

Related Concepts

DNS Performance Measurement
HTTP Latency Analysis
Geographical Impact On Network Performance