inter-region VPC Peering Connection not working as expected
Hi, I've set up an inter-region VPC peering connection between 2 VPCs located in different regions, however when I try ping between two servers in those two regions, the ping rate is exactly the same no matter I ping with private IP or public IP (between 200-300ms), I understand data transfer via peer connection stays on AWS global backbone and never traverse the internet therefore the latency with private IP should be much lower? any suggestions will be greatly appreciated
Hello,
What you are seeing is expected behavior. It is explained in the VPC FAQ. When the Source and Destination endpoints are both on AWS network then the traffic stays on the AWS backbone network even if you are Pinging Public IP and does not traverse "Public internet" Therefore your ping results via VPC Peering Vs between the Public IPs is same.
** Q. Does traffic go over the internet when two instances communicate using public IP addresses, or when instances communicate with a public AWS service endpoint?**
No. When using public IP addresses, all communication between instances and services hosted in AWS use AWS's private network. Packets that originate from the AWS network with a destination on the AWS network stay on the AWS global network
Hope this helps clarify.
Relevant questions
OpenVPN client IP will not route accross VPC Peering
asked 3 months agoVPC Peering not working as expected
asked 6 months agoVPC peering with a VPC from a different AWS Organization - cost implications
Accepted Answerasked 2 years agoCloud Quest VPC peering exercise issue
asked 24 days agoPeering connection with ansible: "No route to host"
asked 2 months agoAccessing S3 Gateway VPC Endpoint from another VPC (VPC Peering established between both source and destination VPCs)
Accepted Answerasked 2 years agoTransit gateway & VPC peering - IP forwarding
Accepted Answerasked 2 years agoBilling for cross-account VPC peering
Accepted Answerasked 2 years agointer-region VPC Peering Connection not working as expected
asked a month agodata transfer cost between two AZs in the same VPC same account
Accepted Answerasked 2 years ago
Just a side comment here: Public IP addressing implies Internet but does not equal it. So a private network (such as the Amazon backbone) can use public IP addressing yet still keep the traffic within private boundaries. Public IP addresses are necessary for communication across the Internet but on a private network they are just IP addresses like any other.