Selain dengan mendownload file ukuran besar langsung via wget, curl, aria2 dll. iperf juga bisa digunakan untuk melakukan testing kecepatan download server. Sebelumnya install iperf dengan cara
Debian/Ubuntu

apt-get install iperf

Fedora

dnf install iperf

CentOS

yum install iperf

Untuk bisa melakukan test upload/download anda harus memiliki akses ke kedua server tersebut. Tetapi kalo hanya untuk test download bisa menggunakan public iperf server seperti

ping.online.net
iperf.volia.net
iperf.he.net

Sebagai contoh ip serverA : 192.168.10.10 IP serverB : 192.168.20.20
Test Download dari serverB ke serverA.
di serverA jalankan perintah

iperf -s

di serverB jalankan perintah

iperf -c 192.168.10.10

perintah -s di serverA gunanya untuk mengaktifkan mode server iperf.
contoh output di serverA

Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.10.10 port 5001 connected with 192.168.20.20 port 38834
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.6 sec  25.2 MBytes  20.1 Mbits/sec

output dari serverB

------------------------------------------------------------
Client connecting to 192.168.10.10, TCP port 5001
TCP window size: 21.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.20.20 port 38834 connected with 192.168.10.10 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  25.2 MBytes  21.1 Mbits/sec

Test Download dari serverA ke serverB
serverB

iperf -s
## output
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.20.20 port 5001 connected with 192.168.10.10 port 23788
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  93.6 MBytes  78.2 Mbits/sec

serverA

iperf -c 192.168.20.20
## output
------------------------------------------------------------
Client connecting to 192.168.20.20, TCP port 5001
TCP window size: 19.6 KByte (default)
------------------------------------------------------------
[  3] local 192.168.10.10 port 23788 connected with 192.168.20.20 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  93.6 MBytes  78.4 Mbits/sec

cara diatas sudah mengetest kecepatan download/upload dari serverA ke serverB, begitu juga sebaliknya download/upload dari serverA ke serverB.

Leave a comment

Your email address will not be published. Required fields are marked *