比方说,你有一块100Gbps的物理网卡,那么这个100Gbps的指标意味着这块网卡最多可以每秒100G bit/sec的速率传输数据,这个限制意味着进入和传出的数据加起来不能超过100G bit/sec。
在AWS平台上,其EC2的Instance(VM)的网络带宽的限制与上面描述的传统概念相一致,都是对进入和传出的数据的共同速率的限制。
Instance bandwidth specifications apply to both inbound and outbound traffic for the instance. For example, if an instance specifies up to 10 Gbps of bandwidth, that means it has up to 10 Gbps of bandwidth for inbound traffic, and up to 10 Gbps for outbound traffic. The network bandwidth that's available to an EC2 instance depends on several factors, as follows.
--https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html
然而,在Azure平台上,对网络带宽的限制却是只限制传出的速率,而对传入的数据没有限制。这一点,可以注意一下。
The network bandwidth allocated to each virtual machine is metered on egress (outbound) traffic from the virtual machine.
Ingress isn't metered or limited directly.
--https://learn.microsoft.com/en-us/azure/virtual-network/virtual-machine-network-throughput
因为这样的限制的不同,我们可以看到Azure平台上与AWS平台上功用和计算能力相近的VM(instance type),Azure平台上给出的网络带宽偏低,给人感觉好像Azure在网络带宽上给的不够多,其实并没有单纯从数字上看起来那么大,因为Azure只限制了outbound,没有限制inbound嘛。
举例,同为general purpose(通用型)的虚机(VM或Instance Type),两个平台的虚机对比如下:
平台 | AWS | Azure |
型号 | m5dn.24xlarge | Standard_D96ds_v5 |
CPU数量 | 96 | 96 |
内存大小 | 384 GiB | 384GiB |
型号名解读 | 通用型M系列,带有本地NVMe盘的,优化了网络和EBS的型号 | 通用型,96核,带有本地盘的,支持premium存储的型号 |
网络带宽 | 100 Gbps | 35 Gbps |
参考资料
===================
https://learn.microsoft.com/en-us/azure/virtual-machines/ddv5-ddsv5-series
https://aws.amazon.com/ec2/instance-types/m5/
标签:限制,network,instance,bandwidth,Azure,主流,上虚机,网络带宽 From: https://www.cnblogs.com/awpatp/p/17982266