测试Azure中启用加速网络后两台虚拟机的带宽和延迟


Windows Azure 上的加速网络(accelerated networking)是指流量可以直接绕过物理机,在虚拟机与虚拟机之间通过网卡传递。测试用到两个工具iperfqperf

在SlES 12 SP3上安装iperfqperf

zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_12_SP3/network:utilities.repo
zypper refresh
zypper install iperf
zypper install qperf

运行Iperf测试带宽

把A机器当做服务端:

 iperf3 -s

用B机器去连接进行带宽测试:

na-vm-1:~ # iperf3 -c na-vm-2 -t 5
Connecting to host na-vm-2, port 5201
[ 5] local 192.168.1.4 port 47484 connected to 192.168.1.5 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 207 MBytes 1.73 Gbits/sec 109 2.18 MBytes
[ 5] 1.00-2.00 sec 208 MBytes 1.74 Gbits/sec 0 2.36 MBytes
[ 5] 2.00-3.00 sec 208 MBytes 1.74 Gbits/sec 0 2.51 MBytes
[ 5] 3.00-4.00 sec 206 MBytes 1.73 Gbits/sec 0 2.62 MBytes
[ 5] 4.00-5.00 sec 206 MBytes 1.73 Gbits/sec 0 2.72 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-5.00 sec 1.01 GBytes 1.73 Gbits/sec 109 sender
[ 5] 0.00-5.03 sec 1.01 GBytes 1.72 Gbits/sec receiver

运行qperf测试延迟

把A机器当做服务端:

qperf

把B机器当做客户端

na-vm-1:~ # qperf na-vm-2 tcp_bw tcp_lat conf
tcp_bw:
 bw = 212 MB/sec
tcp_lat:
 latency = 92.3 us
conf:
 loc_node = na-vm-1
 loc_cpu = 8 Cores: Intel Xeon E5-2673 v4 @ 2.30GHz
 loc_os = Linux 4.4.114-94.11-default
 loc_qperf = 0.4.9
 rem_node = na-vm-2
 rem_cpu = 8 Cores: Intel Xeon E5-2673 v4 @ 2.30GHz
 rem_os = Linux 4.4.114-94.11-default
 rem_qperf = 0.4.9
本文链接: https://www.pstips.net/test-bandwidth-and-latecy.html
请尊重原作者和编辑的辛勤劳动,欢迎转载,并注明出处!

关于 Mooser Lee

我是一个Powershell的爱好者,创建了PowerShell中文博客,热衷于Powershell技术的搜集和分享。本站部分内容来源于互联网,不足之处敬请谅解,并欢迎您批评指正。

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注