實驗環境:
php
--服務器1. hadoop6 (CentOS 6.5 X64)windows
--PC1: 本身的PC(iperf 有windows 版本)服務器
--服務器2. hadoop1 (CentOS 6.5 X64)oop
下載: 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 (標準安裝)spa
開啓服務器端命令:
server
--[root@hadoop06 iperf-3.0.11]# iperf3 -sip
-----------------------------------------------------------hadoop
Server listening on 5201get
安裝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,很是快。
謝謝