标签:
实验环境:
--服务器1. hadoop6 (CentOS 6.5 X64)
--PC1: 自己的PC(iperf 有windows 版本)
--服务器2. hadoop1 (CentOS 6.5 X64)
下载: https://iperf.fr/iperf-download.php (iperf-3.0.11-source.tar.gz for Linux, iperf-3.0.11-win64.zip for windows)
安装server端(hadoop06)/client端(hadoop01) tar -xzvf ***.tar.gz, make, make install (标准安装)
开启服务器端命令:
--[root@hadoop06 iperf-3.0.11]# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
安装client for windows (解压,用CMD 运行)
测试(WINDOWS --> LINUX)
-- windows 平台
CMD: > iperf3.exe -c 10.XX.XX.206
Connecting to host 10.XX.XX.206, port 5201
[ 4] local 10.XX.XX.171 port 60429 connected to 10.XX.XX.206 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.01 sec 11.5 MBytes 95.1 Mbits/sec
[ 4] 1.01-2.01 sec 11.2 MBytes 94.6 Mbits/sec
[ 4] 2.01-3.01 sec 11.2 MBytes 94.5 Mbits/sec
[ 4] 3.01-4.01 sec 11.2 MBytes 94.5 Mbits/sec
[ 4] 4.01-5.01 sec 11.2 MBytes 94.4 Mbits/sec
[ 4] 5.01-6.01 sec 11.4 MBytes 95.6 Mbits/sec
[ 4] 6.01-7.01 sec 11.2 MBytes 94.3 Mbits/sec
[ 4] 7.01-8.01 sec 11.2 MBytes 94.5 Mbits/sec
[ 4] 8.01-9.00 sec 11.2 MBytes 94.5 Mbits/sec
[ 4] 9.00-10.00 sec 11.2 MBytes 94.5 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 113 MBytes 94.7 Mbits/sec sender
[ 4] 0.00-10.00 sec 113 MBytes 94.7 Mbits/sec receiver
iperf Done.
测试(LINUX --> LINUX)
CMD:> iperf3 -c 10.XX.XX.206
Connecting to host 10.XX.XX.206, port 5201
[ 4] local 10.XX.XX.201 port 39079 connected to 10.XX.XX.206 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 350 MBytes 2.94 Gbits/sec 16 356 KBytes
[ 4] 1.00-2.00 sec 359 MBytes 3.01 Gbits/sec 16 294 KBytes
[ 4] 2.00-3.00 sec 343 MBytes 2.87 Gbits/sec 0 349 KBytes
[ 4] 3.00-4.00 sec 357 MBytes 3.00 Gbits/sec 16 291 KBytes
[ 4] 4.00-5.00 sec 344 MBytes 2.89 Gbits/sec 0 351 KBytes
[ 4] 5.00-6.00 sec 352 MBytes 2.96 Gbits/sec 16 291 KBytes
[ 4] 6.00-7.00 sec 336 MBytes 2.81 Gbits/sec 0 345 KBytes
[ 4] 7.00-8.00 sec 358 MBytes 3.00 Gbits/sec 16 288 KBytes
[ 4] 8.00-9.00 sec 345 MBytes 2.90 Gbits/sec 0 348 KBytes
[ 4] 9.00-10.00 sec 352 MBytes 2.95 Gbits/sec 16 291 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 3.41 GBytes 2.93 Gbits/sec 96 sender
[ 4] 0.00-10.00 sec 3.41 GBytes 2.93 Gbits/sec receiver
iperf Done.
结果看来,2台服务器之间的速度很快,到达3GB/s,非常快。
谢谢
标签:
原文地址:http://my.oschina.net/u/2438546/blog/499437