What is AWS EC2 cross availability zones network lag vs inside same zone?

Lukas Liesis
2 min readNov 29, 2022

Simple setup: 4 EC2 instances:

  1. Inside eu-west-1a
  2. Inside eu-west-1a (again)
  3. Inside eu-west-1b
  4. Inside eu-west-1c

The seconds instance inside eu-west-1a will be target all instances will ping to using private EC2 instance IP. All EC2 instances are on same account, same VPC, same t2.micro fresh instances with ubuntu.

EC2 instances

Ping results after pinging for 5 minutes at same time from 2nd instance to other 3:

Ping results

Latency inside & cross AZs averaged <1ms, yet some request cross-AZ during these 5 minutes jumped up to 12.3ms, averaged at 0.82–0.83ms.

While lag is pretty low cross-AZs, yet as expected, inside same Availability Zone connection is more consistent, standard deviation is much lower.

Notes for running on single AZ:

--

--

Lukas Liesis

2 decades exp of building business value through web tech. Has master's degree in Physics. Built startups with ex-Googlers. Was world’s top 3% developer.