ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

服务 · 联网和内容分发

AWS Transit Gateway

A central hub that connects many VPCs and your on-premises networks, so each network connects only once.

本课尚未翻译,暂以英文显示。

Three VPCs and two links to your data center, each attached once to the hub.
  • Shape

    VPC peering
    A direct link between two VPCs
    Transit Gateway
    A hub that every network connects to once
  • Traffic through a middle network

    VPC peering
    No. Peering is not transitive.
    Transit Gateway
    Yes. Any attached network can reach the others.
  • On-premises networks

    VPC peering
    Cannot use a peer’s VPN or Direct Connect link
    Transit Gateway
    Attach VPN and Direct Connect to the hub
  • With many VPCs

    VPC peering
    Links multiply: 10 VPCs need 45 of them
    Transit Gateway
    One attachment per VPC
  • Cost

    VPC peering
    No charge for the link. Data crossing zones or Regions is charged.
    Transit Gateway
    Hourly charge per attachment, plus data processed
VPC peering compared with a transit gateway.

1 / 3

  • Shape

    VPC peering
    A direct link between two VPCs
    Transit Gateway
    A hub that every network connects to once
  • Traffic through a middle network

    VPC peering
    No. Peering is not transitive.
    Transit Gateway
    Yes. Any attached network can reach the others.

2 / 3

  • On-premises networks

    VPC peering
    Cannot use a peer’s VPN or Direct Connect link
    Transit Gateway
    Attach VPN and Direct Connect to the hub
  • With many VPCs

    VPC peering
    Links multiply: 10 VPCs need 45 of them
    Transit Gateway
    One attachment per VPC

3 / 3

  • Cost

    VPC peering
    No charge for the link. Data crossing zones or Regions is charged.
    Transit Gateway
    Hourly charge per attachment, plus data processed
VPC peering compared with a transit gateway.

是什么

As a company adds VPCs, linking every pair with VPC peering gets complicated fast: 10 VPCs would need 45 peering connections. AWS Transit Gateway replaces that web with a hub. Each VPC, VPN connection and AWS Direct Connect link attaches to the transit gateway once, and the hub routes traffic between them.

A transit gateway works as a virtual router within one Region. Transit gateways in different Regions can be peered, and the traffic between them stays on the AWS global network.

You pay for each attachment by the hour and for the amount of data the transit gateway processes.

要记住

  • Hub and spoke: each network connects once, to the hub.
  • Connects VPCs, Site-to-Site VPN connections and Direct Connect.
  • Unlike VPC peering, any attached network can reach the others through the hub.
  • Regional. Peer transit gateways to connect Regions.
  • Charged per attachment hour and per GB of data processed.

考试中

  • “Connect hundreds of VPCs and on-premises networks through a central hub” points to AWS Transit Gateway.
  • “Connect just two VPCs” is VPC peering. Many VPCs plus on-premises networks is Transit Gateway.