Network Latency – Comparing the Impact on Your WordPress Site

A lot of articles around the web tend to primarily focus on front-end optimizations and quick ways to speed up your site. Server optimizations such as network latency are sometimes neglected or overlooked. Because of this, we thought it would be interesting to take a deeper look at the importance of network latency and the impact it has on your WordPress site when loading different regions.

While a CDN can definitely help decrease network latency, your host server location is still very important, especially if you are serving visitors in a very specific geographical location. Latency matters and we’ll show you a couple reasons why.

Kinsta uses Google Cloud Platform’s premium tier network. Because your websites deserve the best. ⚡

Click to Tweet

What is Network Latency?

Network latency refers to the time and or delay that is involved in the transmission of data over a network. In other words, how long it takes for a packet of data to go from one point to another. Nowadays this is typically measured in milliseconds, however, it could be seconds depending upon the network. The closer to zero the better.

“Latency is the wait time introduced by the signal traveling the geographical distance as well as over the various pieces of communications equipment.” – Whatis.com

In other words, the further the distance the greater the latency, which equates to a longer delay. You can’t beat the speed of light when it comes to data traveling over fiber optic cables. For example, below is a map of the Google Cloud Platform network. They have thousands of miles of cable going underneath the ocean spanning the entire globe. This is one reason why it is one of the fastest networks in the world. And even with this extensive state of the art network, there’s still always going to be latency delays.

Latency over fiber optics cables

There are a couple different factors that contribute to network latency delays, which includes:

  • Transmission delay: Different types of mediums, such as wireless or fiber optic connections all introduce some type of delay as they can only push out so many bits. For example, a fiber optic connection will have a lower transmission delay than a T1 line. You must also factor in the size of the packet.
  • Propagation delay: This is the time it takes for the packet of data to travel. This could include distance, networking delays, etc.
  • Queuing delay: If bandwidth is exceeded there can be queuing delays in which the data has to wait at the host or router. This can be affected by network congestion.

Why Network Latency is Important

Some might argue that network latency isn’t very important, however, it can be in regards to where you choose to host your site. For media and your assets (such as images, JavaScript, CSS, Video), a CDN can fix a lot of the extra latency involved, by delivering a copy from a closer server. However, in most configurations, you still have to query your hosting server for the initial DOC load. And this is why latency matters!

The Trainline reduced latency by 0.3 seconds across their funnel and customers spent an extra £8 million (~$11.5 million) a year. – WPO Stats

Latency is especially important when it comes to businesses that serve visitors in a specific geographical location. For example, let’s say you have an e-commerce shop in Sydney, and 90% of your customers are from Australia. Your business would definitely benefit from placing your site on a server in Australia, vs hosting it in Europe or the United States. We’ll go into just how much it impacts your site below.

Comparing Google Cloud Network Latency

Distance is one of the primary reasons for latency delays. However, it is important to remember though that latency is not only affected by distance, but also by the number of hops it makes, routers in between, etc. A few ways to measure network latency include Ping, Traceroute, and MTR. In this example, we are simply going to use ping times and run a few traceroute tests. If you really want to dig into the data, you can run traceroute commands.

So we spun up a few test machines on Google Cloud Platform located in different geographical regions. At Kinsta, we include Google Cloud Platform’s premium tier network on all hosting plans. A lot of other hosting providers use Google Cloud’s standard tier network, which results in slower speeds.

  • perf1.kinsta.com (located in Iowa, USA)
  • perf2.kinsta.com (located in Sydney, Australia)
  • perf3.kinsta.com (located in Frankfurt, Germany)

Learn more: Google Cloud Platform Network: Premium Tier vs Standard Tier

We then utilized KeyCDN’s free Ping Test tool which allows us to test simultaneously from 14 locations. Remember, the lower the ping time the better as this directly correlates with the delay time (in milliseconds) for how long it takes the data to travel across the internet, to its destination address, and then back to you. We also utilized their traceroute tool.

Perf1 (Iowa, USA)

For the test server located in Iowa, USA, the ping times are much lower from locations that are in the United States (16 ms average ping times to Dallas). As you start to go further out to Europe or Singapore you start to experience a lot higher ping time averages (244 ms average ping times to Singapore).

Ping times perf1

And if we compare the Traceroute, you can see an example 7 additional network hops are needed to simply travel from Iowa, USA to Frankfurt, Germany (compared to 10 hops from Dallas). This is why it is important to remember, that network hops also factor into network latency.

Traceroute perf1

Perf2 (Sydney, Australia)

For the test server located in Sydney, Australia, the ping times are much lower from locations in Australia and Asia-Pacific  (1 ms average ping times to Sydney). As you start to go further out to Europe or South America you start to experience a lot higher ping time averages  (319 ms average ping times to Sao Paulo).

Ping times perf2

And if we compare the Traceroute, you can see an example 14 additional network hops are needed to simply travel from Sydney, Australia to Frankfurt, Germany.

Traceroute perf2

Perf3 (Frankfurt, Germany)

For the test server located in Frankfurt, Germany, the ping times are much lower from locations in Europe and even the United States, probably due to a fast backbone connection between the two (7 ms average ping times to Amsterdam). As you start to go further out to Asia-Pacific or South America you start to experience a lot higher ping time averages (308 ms average ping times to Singapore).

Ping times perf3

And if we compare the Traceroute, you can see an example 11 additional network hops are needed to simply travel from Frankfurt, Germany to Sao Paulo, Brazil.

Traceroute perf3 (Germany)

So as you can see above, the greater the distance directly correlates with higher ping times and additional network hops which make up network latency. This is why you should strategically position your site to decrease both of these factors.

Comparing Google Cloud Latency Between Regions

Above we are testing Ping times from where the servers are located, in correlation with the ping servers. But what about latency between Google Cloud Platform regions themselves? Geek Flare ran a great test between 9 of the different regions. This can give you a quick overview of the delay that happens due to latency when placed in one region versus another.

Google Cloud Platform latency

Make sure to also check out our article on Google Cloud vs AWS to see differences in network latency.

Deploy your application to Kinsta. Get started now with a free trial.

Run your Node.js, Python, Go, PHP, Ruby, Java, and Scala apps, (or almost anything else if you use your own custom Dockerfiles), in three, easy steps!

Start free trial

Comparing Page Load Times

And of course, we leave out the total page load times. In fact, this is where some of the most interesting data is. However, remember that this includes other factors such as TTFB. All three test sites are identical, running a fresh install of WordPress, with the Twenty Seventeen theme installed. We are also utilizing Pingdom, so the times are being measured from their test server locations.

Perf 1 (Iowa, USA)

We ran speed tests from three different test locations with our server located in Iowa, USA, and below are the results.

Speed test perf1 dallas
Speed test perf1 Melbourne
Speed test perf1 stockholm

As we can see above, there is a huge difference between loading a site from within the United States (close to the hosting server) and loading from across the globe.

Perf 2 (Sydney, Australia)

We ran speed tests from three different test locations with our server located in Sydney, Australia, and below are the results.

Speed test perf2 Dallas
Speed test perf2 Melbourne
Speed test perf2 Stockholm

As we can see above, there is a huge difference between loading a site from within Australia (close to the hosting server) and loading from across the globe.

Perf 3 (Frankfurt, Germany)

We ran speed tests from three different test locations with our server located in Frankfurt, Germany, and below are the results.

Speed test perf3 Dallas
Speed test perf3 Melbourne
Speed test perf3 Stockholm

As we can see above, there is a huge difference between loading a site from within Europe (close to the hosting server) and loading from across the globe.

If those page load tests don’t convince you, we don’t know what will! For example, the test site in Iowa, USA, took only 368 ms to load from Dallas. But it took 2.14 seconds to load from Sydney, Australia. This is why location matters! And again, you can help decrease the total load times by putting your media assets closer to your visitors with a CDN. Kinsta includes a CDN for all clients! But you will always encounter load time and latency from your host server, so choose wisely.

Info

Kinsta now provides Edge Caching as part of our Cloudflare integration. This feature cuts TTFB an average of nearly 48.6%, reducing the time it takes to deliver full pages to browsers.

Choosing the Right Location to Host Your WordPress Site

Most hosting providers typically allow you to choose from different locations to host your site. Here at Kinsta, we have all 35 Google Cloud Platform locations now available. This lets you strategically place your site where you need to ensure low latency and TTFB, along with blazing fast load times. You can also choose a different location for each separate site.

Google Cloud data center locations

Not sure which one to pick? Here are a few tips below.

Tip 1 – Check Google Analytics

One of the very first things you can do is look at the geographical location of your visitors in Google Analytics. In this example below, you can see that over 90% of the traffic is coming from the United States. So in most cases, you would want to place your site on a server in the United States. You could filter down the data to cities, but we would typically recommend a central location like Iowa, USA.

Geo data in Google Analytics

Tip 2 – Check E-Commerce Data

If you run an e-commerce store, make sure to also check to see where your customers are coming from. This is of course how you generate revenue, so these are your most important visitors. This should coincide with your traffic above, however, this is not always the case. If you have e-commerce data setup or Goals, you can easily overlay that information on top of the Geo data to make a more informed decision.

Tip 3 – Do a Quick Latency Test

There are a lot of handy free tools out there to measure latency from your current location for different cloud providers. This can help you quickly evaluate which region might be the best choice for your site.

  • GCP Ping (measure latency to Google Cloud Platform regions)
  • CloudPing.info (measure latency to Amazon Web Services regions)
  • Azure Latency Test (measure latency to Azure regions)

Measure Google Cloud Platform latency

You can also utilize CloudHarmony, which is a cloud comparison tool. You can test things such as latency, DNS, uplink, and downlink.

CloudHarmony network test

Quick Ways to Reduce Network Latency

To summarize, here a few quick ways to reduce network latency.

Summary

Hopefully, now you understand a little more about network latency, why it matters, and how it impacts your site. To ensure fast load times make sure to choose a server with your host that is closest to your visitors and customers. What are your thoughts? Have you ever experienced slow load times due to a website being placed in the wrong location? Let us know below in the comments.

Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:

  • Easy setup and management in the MyKinsta dashboard
  • 24/7 expert support
  • The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
  • An enterprise-level Cloudflare integration for speed and security
  • Global audience reach with up to 35 data centers and 275 PoPs worldwide

Get started with a free trial of our Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.