More Bandwidth Does Not Lower Latency, Only Shorter Distance Does

Networking Cloud

Bandwidth is how much data a link carries per second (Mbps, Gbps); latency is how long one packet takes to arrive (milliseconds). They are independent: a 10 Gbps link from New York to Tokyo still has the delay of light travelling through thousands of kilometres of fibre. Users far from the servers feel that delay on every request, so the fix for lag is moving the application or its content closer, not buying a bigger pipe.

The Highway Picture

  • Bandwidth is the number of lanes: more lanes let more cars travel at once, which matters for streaming, backups and large reports.
  • Latency is the length of the road and its speed limit: adding lanes doesn't shorten the trip of one car.

An interactive application makes many small round trips (TLS handshake, API calls, assets), so its responsiveness is dominated by latency, multiplied by the number of round trips.

Bringing the Application Closer

  • Pick a region near the users (see Zones Isolate Hardware Failures, Regions Isolate Disasters), or deploy to several regions and route users to the nearest.
  • Cache at the edge: a CDN keeps copies of static files and popular content at points of presence close to users, so most requests never cross the ocean.
  • Ride a private backbone: large providers carry traffic on their own fibre from the edge where a user's ISP connects to them, instead of across many public internet hops. Google's course presents its edge network this way.

Measuring Before Deciding

ping -c 5 example.com          # round-trip time to one host
mtr example.com                # latency and loss hop by hop

If round-trip time is high but throughput tests are fine, the problem is distance or routing, not capacity.

References

Review cards

Flashcard Why is an interactive web app's responsiveness dominated by latency rather than bandwidth?

It makes many small round trips (TLS handshake, API calls, assets), so each trip's delay is multiplied while little data moves in each.

Quiz Which of the following is a correct way to measure latency and loss hop by hop?
  • ping -c 5 example.com
  • mtr example.com
  • iperf -c example.com
  • traceroute example.com

mtr (My Trace Route) provides both latency and loss information hop by hop, making it the best choice for this purpose.