Connectivity Between VPCs - Comparison of VPC Peering, VGW, DGW, and TGW
VGW(Virtual Private Gateway): It's the oldest way, and it was first announced.
DGW(Direct Connect Gateway): It was announced in 2017.
TGW(Transit Gateway): It was released in 2018.
*** VPC peering ***
It provides a 1:1 connection between VPCs and establishes a private connection between VPCs in the same account or in different accounts.
- Using Private IP
- It is possible to connect not only within the same region but also within different regions.
- Does not support peering between VPCs if IP is reduplication
- Only one peering resource can be set up between two VPCs
- Does not support multiple peering relationships between VPCs
- Internet Gateway (IGW) or Virtual Private Gateway (VGW) is not required
- Provides high availability connectivity
- Maintain Traffic on a Global AWS Backbone
Use Case: Provides 1:1 connection between VPCs
Use Case: Business Expansion Case Using VPC Peering
AWS Direct Connect & VGW(Virtual Private Gateway)
Use Case: Connecting to an On-Premise Data Center
Use Case: Using AWS Direct Connect and VGW to connect to VPCs in the same region, same account
What is AWS Direct Connect?
- Offers dedicated private network connectivity of 1Gbps or 10Gbps.
- Designed for businesses with long-term requirements to maintain consistent high throughput across private network connections
(Not suitable for one-time operations, such as migrating large data sources to AWS).
- The predictability of private network connections improves application performance.
- Lower data transfer costs compared to VPN solutions
- Use cases include hybrid cloud architecture, continuous large data sets to transfer, security, and compliance.
Direct Connect Gateway - DGW
If VGW supported the connection between VPCs within the same account, DGW provides the function of connecting VPCs between different accounts with the same region. Direct Connect is used to connect between different VPCs, and this Direct Connect is connected to the VGW of the VPC you are trying to connect to. At this time, the CIDR address cannot overlap. In addition, traffic is not routed from VPC-A to Direct Connect gateway and VPC-B. Traffic shall be routed at [VPC-A] → [Direct Connect] → [Data Center Router] → [Direct Connect] → [VPC-B].
Transit Gateway -TGW
Transit Gateway is designed to provide enhanced routing services over AWS' predecessors. The initial release required a Site-to-Site VPN because Transit Gateway did not support Direct Connect. In addition, the throughput of each VPN session is limited to 1.25 Gbps. To scale beyond this, you must add multiple VPN connections to reach the desired aggregate bandwidth, and then leverage ECMP for multipath traffic on all VPN connections. Even with ECMP, a single flow is limited to 1.25 Gbps.
Transit Gateway allows multiple VPCs to be connected between different regions and between different accounts.
Use Case: Multiple VPCs in the same region distributed across different AWS accounts using the same Direct Connect.
Comments
Post a Comment