Effect of distance from server

domain-name-systemnetworkingperformance

I have a web server in Ireland (Amazon AWS). This server appears fast from Germany (orange line) but slow from the USA (black line). The HTTP request used for the test is the same.

enter image description here

I think this is normal. The distance between Ireland and the USA is larger than Germany to Ireland, but the difference seems too high.

Are there other possible reasons, apart from the distance to the server?

Best Answer

Assuming the graph is http request time it seems fairly reasonable to me.

A http request (in the absense of keepalive, fastopen etc) normally requires at least two round trips.

  • Client sends syn
  • Sever receives syn and sends syn-ack
  • Client receives syn-ack and sends ack and request.
  • Server sends response.

The speed of light in fiber is about 2*10^8 meters per second. According to google the distance from "ireland to the USA" is 6,629 km * which would translate to a round trip time of about 66 ms.

But that assumes there are no delays in equipment and that the data route follows the shortest possible path. Practical round trip times are usually 100 to 150 milliseconds between a host in Europe and a host in the USA. As such a http request time of ~250ms is perfectly normal.

What is a bit more concerning are the spikes in the graph, they suggest network congestion somewhere between the server and the test client.

* obviously it depends on what point in the USA and what point in ireland but the point google picked seemed to be somewhere in the middle of the USA and the OPs graph said "us-mid".

Related Topic