Transit GW vs VPC Peering

Hello folks. I am designing our company multi-VPC AWS networking infrastructure and I am trying to make a case for transit gateway. Micro segmentation and high availability are some of our core requirements. I know with a single TGW, I eliminate the need to create many VPN tunnels back to my campuses and routing becomes easier. We have a few services that will be utilizing resources from different VPCs in different accounts. One of my colleague asked me why we couldn’t use VPC peering? I didn’t have a lot of answers though we both agreed for VPN connectivity, it’s more of a fit.

  1. Do you see any trade-off apart from VPNs for choosing TGW over Peering?

  2. If my TGW goes down, does Amazon automatically spin up an new one for me or I have to manually do that myself? Isn’t TGW a single point of failure?

  3. Do you see a benefit in using both vpc peering and TGW?

I appreciate your help.


Related discussions:

I think the biggest issue is if you’re utilizing VPCs in multiple regions. Though it’s planned, TGW doesn’t currently support cross-region connections. Beyond that based on the way it’s presented TGW are the optimal way to connect VPCs now. There were a lot of issues with huge routing tables when you interconnected a lot of VPCs, which is less of an issue with TGW.

regarding point 2, To my knowledge a TGW functions just like an IGW/NATGW— you don’t worry about it, it just functions invisibly.

But worry is, the business wants to know what happens if we lose connectivity

Then you might see a blip in connectivity but if it works like IGW and NATGW then it’ll be momentary and it’s completely managed behind the scenes. If you have a question on it, you cut a case about it.

What did you write when the business asked about what happens if VPC peering stops working or if the IGW stops working?

In case of peering, I told them the issue is only limited to a particular vpc having issues

TGW is transitive, VPC Peers are not.
TGW limits are higher than VPC peering, I believe significantly.

NATGW does have a bandwidth limit, while IGW does not.

Peering is a logical connection with no bandwidth limit ( https://aws.amazon.com/vpc/faqs/#Peering_Connections ) , while TGW uses the VPN system which has a 1.25Gbit limit ( https://docs.aws.amazon.com/vpc/latest/tgw/transit-gateway-limits.html ).

  1. Look at the pricing and the complexity to provision it if your intent is automation. Also, yes you’re right: with the tgw, you create your VPN connections only once, which is a good thing.

  2. I’m unsure but because it’s a managed service, it should come back automatically. That being said, AWS create two endpoints for the tgw, that’s why you feed two subnets when creating one. So, it’s a HA service by design.

  3. Unless pricing or limitation I don’t see, avoid that as it will lead to a more complex infrastructure for no benefits.

Also, I would simply consider TGW because it is newer, so it has higher chance of being improved and maintained in the future whereas VPC peering might eventually get dropped.

I used TGW for multiple big projects and so far it’s robust.

Thanks much. Can you please point out a few complexities. I would want to share this with my seniors.
Thanks

The bandwidth limitation only applies to VPN connections to TGW, not VPC to VPC connectivity.

Transit gateway can definitely go above 1.25 Gb (tested and used). It’s single region currently so the bandwidth is going to stay within that region.

The VPC connections for a transit gateway have a 50Gb/s limit. VPN connections have a 1.25Gb/s limit, but you can aggregate them with ECMP.

I want to re-inforce this!

Shared VPC is perhaps the greatest VPC feature of all time. https://aws.amazon.com/blogs/networking-and-content-delivery/vpc-sharing-a-new-approach-to-multiple-accounts-and-vpc-management/

I think AWS doesn’t talk about it much compared to Transit Gateway (or similar things) because it’s not a revenue generator like TGW is. Worded another way: it doesn’t cost you anything extra.

OP can get “micro-segmentation” and “high-availability” using security groups and availability zones.

Is the transit gateway BGP only?

VPN connections are limited, not the VPC connections.

Transit gateway is a simpler architecture, with higher limits. With VPC peering you will be limited by the route table, you will not be able to get the route table limit increased past 100 any longer.

If may seem high, but it’s really easy to hit if you have a lot of accounts and any central services.

Do you have to SNAT for east west vPC traffic across firewalls? All the examples I see just talk about going to the internet. Been trying to see if it’s the same for VPC to VPC via firewall services vPC.

No, works fine with static routes.

i’m curious if those connecting VPCs have them numbered in the same range, like trying to merge them or have different address subnets, or have them numbered different?

maybe this question should be what is the first level where addresses are different, the VPC level, the subnet level, or the individual device/usage/instance level?