AWS上的带宽限制

VPC级别的带宽

  • 对于IGW,没有带宽限制
参考 https://aws.amazon.com/vpc/faqs/?nc1=h_ls 官方解释,带宽无上限
** Q. Are there any bandwidth limitations for Internet gateways? Do I need to be concerned about its availability? Can it be a single point of failure?**
No. An Internet gateway is horizontally-scaled, redundant, and highly available. It imposes no bandwidth constraints.
  • 对于NAT Gateway,最大支持到100 Gbps,如果需要更大带宽,可以将资源分布在多个子网,然后在每个子网创建对应的NAT Gateway

  • 对于VPC Peering,没有带宽限制。参考AWS文档,有限制也是你EC2的事,与我VPC Peering无关:

Bandwidth between instances in peered VPCs is no different than bandwidth between instances in the same VPC.

EC2级别的带宽

EC2自身最大支持到25Gbps带宽:

aws ec2 describe-instance-types --filters "Name=instance-type,Values=c5.*" --query "InstanceTypes[].[InstanceType, NetworkInfo.NetworkPerformance]" --output table

image-20220912105327718

另外Up to xxx Gb并不是一直可以保持这个性能,当积分用光后会回到基准带宽:

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/general-purpose-instances.html#general-purpose-network-performance

image-20230424075938176

使用CLI获取基准带宽:

aws ec2 describe-instance-types --filters "Name=instance-type,Values=c5.*" --query "InstanceTypes[].[InstanceType, NetworkInfo.NetworkPerformance,NetworkInfo.NetworkCards[0].BaselineBandwidthInGbps]" --output table 

image-20240104211619737

但这也有很多限制:

  1. 如果是Single-flow traffic(一个5元组,即一个端口), 最大支持到5Gbps(同一个placement group下面可达到10Gbps)
  2. 如果是Multi-flow traffic,同一region下能跑到实例的最大带宽,跨region时(走IGW、DX)如果机器小于32vCPU则最大跑到5Gbps,如果大于32vCPU则最大能跑到机器最大带宽的一半

image-20220912105419590

VPN/DX级别的带宽

image-20220912110253768

每个Virtual Private Gateway支持1.25Gbps带宽,可以使用ECMP技术来增加带宽

另外DX的带宽跟Port也相关,有1 Gbps, 10 Gbps, 100 Gbps几种

Just like regular Site-to-site VPN connections, each private IP VPN connection supports 1.25Gbps of bandwidth.