Iperf3: Tools Menguji Kecepatan & Bandwidth Jaringan

Radenku.comIperf3 adalah alat untuk mengukur bandwidth dan kecepatan suatu jaringan. Iperf3 mendukung TCP, UDP, SCTP with IPv4 and IPv6. Dengan iperf3 bisa mengukur kecepatan maksimal suatu koneksi jaringan, router, kabel LAN, USB to LAN, dll. Iperf3 berguna untuk mengukur throughput maksimum sebuah jaringan. Tutorial dan cara menggunakan iperf3 seperti berikut.

1. Install iperf3

Install iperf3 Openwrt

Iperf3 openwrt bisa bisa diinstall langsung menggunakan opkg, bisa menggunakan LuCI atau Terminal, jika menggunakan terminal bisa menggunakan perintah

opkg install iperf3
install-iperf3-openwrt

Install iperf3 Debian/Ubuntu

Untuk iperf3 debian dan ubuntu, contohnya ini aku install iperf3 raspberry pi 4.

sudo apt install iperf3
install iperf3 linux debian raspberry pi 4

Install iperf3 Windows

Iperf3 download versi Windows bisa diunduh di web iperf3. Unzip iperf dan menggunakannya lewat Command Prompt atau Power Shells.

install-iperf3-windows

Install iperf3 Android

Untuk iperf3 android bisa menggunakan Magic iPerf atau he.net – Network Tools di playstore.

2. Cara Tes Kecepatan Menggunakan Iperf3

Untuk cara menggunakan iperf3 openwrt & windows harus diinstall dan dijalankan di kedua sisi baik server dan client.

Iperf3 Server

Untuk di server yang akan kita tes menggunakan iperf3 command iperf3 -s. Iperf3 server akan jalan di port default 5201.

iperf3 -s

Server akan standby menunggu sisi client dijalankan. Biarkan terminal terbuka, jangan di close. Tinggal lanjut masuk ke terminal sisi client.

Iperf3 Client

Untuk sisi client harus terhubung dengan server baik itu melalui Wifi, LAN, ataupun internet yang pasti kita tahu alamat IP server.

Tinggal jalankan iperf3 command iperf3 -c <ip-server-iperf3>.

Contoh dibawah iperf3 yang yg running di routerku dengan IP 10.10.1.1, bisa sesuaikan dengan IP server kalian misalnya 192.168.1.1 dll.

iperf3 -c 10.10.1.1

Iperf3 akan menjalankan tes speed. Output hasil tes akan tampil disisi client dan server.

3. Sample Iperf3 Speed Test

Dibawah beberapa sample iperf3 speed test menggunakan beberapa router, USB to LAN dan Wifi.

Untuk iperf3 bandwidth test menggunakan router Glinet B1300 yang mempunyai gigabit ethernet. Glinet B1300 disambungkan dengan LAN dengan Gigabit USB to LAN TP Link ue300 ke laptop.

Disini aku coba iperf3 throughput test ke laptop di USB 2.0 dan USB 3.0. Karena secara teori USB 2.0 bisa membawa bandwidth 480 Mbps & USB 3.0 sampai 5Gbps, jika dilakukan network speed test maka speed akan mentok disitu.

Untuk hasilnya bisa disimak berikut

E:\iperf-3.1.3-win64>iperf3.exe -c 10.10.1.1
Connecting to host 10.10.1.1, port 5201
[  4] local 10.10.1.158 port 60498 connected to 10.10.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   100 MBytes   840 Mbits/sec
[  4]   1.00-2.00   sec  98.5 MBytes   827 Mbits/sec
[  4]   2.00-3.00   sec   101 MBytes   850 Mbits/sec
[  4]   3.00-4.00   sec  95.2 MBytes   799 Mbits/sec
[  4]   4.00-5.00   sec   105 MBytes   879 Mbits/sec
[  4]   5.00-6.00   sec   103 MBytes   864 Mbits/sec
[  4]   6.00-7.00   sec   103 MBytes   861 Mbits/sec
[  4]   7.00-8.00   sec   105 MBytes   885 Mbits/sec
[  4]   8.00-9.00   sec  97.4 MBytes   816 Mbits/sec
[  4]   9.00-10.00  sec   104 MBytes   872 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1013 MBytes   849 Mbits/sec                  sender
[  4]   0.00-10.00  sec  1013 MBytes   849 Mbits/sec                  receiver

iperf Done.
E:\iperf-3.1.3-win64>iperf3.exe -c 10.10.1.1
Connecting to host 10.10.1.1, port 5201
[  4] local 10.10.1.158 port 56333 connected to 10.10.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  40.0 MBytes   336 Mbits/sec
[  4]   1.00-2.00   sec  40.0 MBytes   335 Mbits/sec
[  4]   2.00-3.00   sec  39.1 MBytes   327 Mbits/sec
[  4]   3.00-4.00   sec  39.8 MBytes   334 Mbits/sec
[  4]   4.00-5.00   sec  39.0 MBytes   326 Mbits/sec
[  4]   5.00-6.00   sec  39.4 MBytes   330 Mbits/sec
[  4]   6.00-7.00   sec  35.9 MBytes   301 Mbits/sec
[  4]   7.00-8.00   sec  38.1 MBytes   320 Mbits/sec
[  4]   8.00-9.00   sec  39.8 MBytes   334 Mbits/sec
[  4]   9.00-10.00  sec  40.0 MBytes   336 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec   391 MBytes   328 Mbits/sec                  sender
[  4]   0.00-10.00  sec   391 MBytes   328 Mbits/sec                  receiver

iperf Done.

Glinet B1300 > LAN > Nanopi R2S

root@OpenWrt:~# iperf3 -c 10.10.1.1
Connecting to host 10.10.1.1, port 5201
[  5] local 10.10.1.123 port 47786 connected to 10.10.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  78.4 MBytes   658 Mbits/sec   18    208 KBytes
[  5]   1.00-2.00   sec  90.1 MBytes   756 Mbits/sec   16    252 KBytes
[  5]   2.00-3.00   sec  98.9 MBytes   828 Mbits/sec    9    270 KBytes
[  5]   3.00-4.00   sec  98.1 MBytes   823 Mbits/sec   44    208 KBytes
[  5]   4.00-5.00   sec   104 MBytes   869 Mbits/sec   22    182 KBytes
[  5]   5.00-6.00   sec   111 MBytes   933 Mbits/sec    0    386 KBytes
[  5]   6.00-7.00   sec   102 MBytes   860 Mbits/sec  115    214 KBytes
[  5]   7.00-8.00   sec   102 MBytes   853 Mbits/sec    8    257 KBytes
[  5]   8.00-9.00   sec   104 MBytes   872 Mbits/sec   68    228 KBytes
[  5]   9.00-10.00  sec  96.1 MBytes   803 Mbits/sec   25    252 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   984 MBytes   825 Mbits/sec  325             sender
[  5]   0.00-10.01  sec   982 MBytes   824 Mbits/sec                  receiver

iperf Done.

Selain menggunakan kabel LAN aku juga mengetes speed test wifi dari Glinet B1300 menggunakan HP Poco X3. Untuk iperf3 maximum bandwidth wifi di 2.4Ghz di angka 73-100Mbps dan di 5Ghz diantara 300-330Mbps.

Jadi jika speed test internet kalian dibawah 70Mbps maka bisa jadi karena bottle neck pada router wifi 2.4Ghz, dan mungkin perlu dipertimbangkan untuk upgrade dengan router support Wifi 5Ghz ac atau bahkan wifi 6 ax.

Glinet B1300 > Wifi 2.4 GHz 20Mhz > Poco X3 NFC

iperf3 throughput speed test android

Glinet B1300 > Wifi 5 GHz 80Mhz > Poco X3 NFC

iperf3 throughput speed test android wifi

4. Tes Performa Raw Router

Iperf3 juga bisa tes network performance internal raw CPU router, bisa di cek menggunakan perintah

iperf3 -s -D && iperf3 -c 127.0.0.1

Beberapa hasil iperf3 openwrt dari beberapa router

Gl.iNet B1300

root@OpenWrt:~# iperf3 -s -D && iperf3 -c 127.0.0.1
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 55830 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.01   sec  87.5 MBytes   725 Mbits/sec    0    895 KBytes
[  5]   1.01-2.01   sec  86.2 MBytes   728 Mbits/sec    1    895 KBytes
[  5]   2.01-3.00   sec  86.2 MBytes   726 Mbits/sec    0    895 KBytes
[  5]   3.00-4.01   sec  87.5 MBytes   728 Mbits/sec    0    895 KBytes
[  5]   4.01-5.00   sec  86.2 MBytes   729 Mbits/sec    0   1.25 MBytes
[  5]   5.00-6.01   sec  87.5 MBytes   729 Mbits/sec    0   1.25 MBytes
[  5]   6.01-7.00   sec  86.2 MBytes   732 Mbits/sec    0   1.25 MBytes
[  5]   7.00-8.00   sec  86.2 MBytes   724 Mbits/sec    0   1.25 MBytes
[  5]   8.00-9.00   sec  86.2 MBytes   722 Mbits/sec    0   1.25 MBytes
[  5]   9.00-10.01  sec  87.5 MBytes   727 Mbits/sec    0   1.25 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.01  sec   868 MBytes   727 Mbits/sec    1             sender
[  5]   0.00-10.01  sec   868 MBytes   727 Mbits/sec                  receiver

FriendlyArm Nanopi R2S

root@OpenWrt:~# iperf3 -s -D && iperf3 -c 127.0.0.1
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 54316 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   272 MBytes  2.28 Gbits/sec    0    639 KBytes
[  5]   1.00-2.00   sec   271 MBytes  2.29 Gbits/sec    0    639 KBytes
[  5]   2.00-3.00   sec   274 MBytes  2.29 Gbits/sec    0    639 KBytes
[  5]   3.00-4.00   sec   271 MBytes  2.28 Gbits/sec    0    639 KBytes
[  5]   4.00-5.00   sec   272 MBytes  2.29 Gbits/sec    0    639 KBytes
[  5]   5.00-6.00   sec   274 MBytes  2.29 Gbits/sec    0    639 KBytes
[  5]   6.00-7.00   sec   271 MBytes  2.28 Gbits/sec    0    639 KBytes
[  5]   7.00-8.00   sec   274 MBytes  2.29 Gbits/sec    0   1023 KBytes
[  5]   8.00-9.00   sec   272 MBytes  2.28 Gbits/sec    0   1023 KBytes
[  5]   9.00-10.00  sec   272 MBytes  2.29 Gbits/sec    0   1023 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  2.66 GBytes  2.29 Gbits/sec    0             sender
[  5]   0.00-10.00  sec  2.66 GBytes  2.29 Gbits/sec                  receiver

iperf Done.

Raspberry Pi 4

pi@rpi-omv:~ $ iperf3 -s -D && iperf3 -c 127.0.0.1
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 60458 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   538 MBytes  4.51 Gbits/sec    0   1.19 MBytes
[  5]   1.00-2.00   sec   531 MBytes  4.46 Gbits/sec    0   1.19 MBytes
[  5]   2.00-3.00   sec   545 MBytes  4.57 Gbits/sec    0   1.31 MBytes
[  5]   3.00-4.00   sec   532 MBytes  4.46 Gbits/sec    0   1.87 MBytes
[  5]   4.00-5.00   sec   530 MBytes  4.45 Gbits/sec    0   1.94 MBytes
[  5]   5.00-6.00   sec   548 MBytes  4.59 Gbits/sec    0   2.25 MBytes
[  5]   6.00-7.00   sec   544 MBytes  4.56 Gbits/sec    0   2.37 MBytes
[  5]   7.00-8.00   sec   546 MBytes  4.58 Gbits/sec    0   2.37 MBytes
[  5]   8.00-9.00   sec   549 MBytes  4.60 Gbits/sec    0   2.50 MBytes
[  5]   9.00-10.00  sec   529 MBytes  4.44 Gbits/sec    0   2.50 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  5.26 GBytes  4.52 Gbits/sec    0             sender
[  5]   0.00-10.00  sec  5.26 GBytes  4.52 Gbits/sec                  receiver

Tismart DS 866

root@ROOter:~# iperf3 -s -D && iperf3 -c 127.0.0.1
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 50072 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   661 MBytes  5.54 Gbits/sec    0   1023 KBytes
[  5]   1.00-2.00   sec   665 MBytes  5.58 Gbits/sec    0   1.12 MBytes
[  5]   2.00-3.00   sec   665 MBytes  5.58 Gbits/sec    0   1.12 MBytes
[  5]   3.00-4.00   sec   666 MBytes  5.59 Gbits/sec    0   1.75 MBytes
[  5]   4.00-5.00   sec   664 MBytes  5.58 Gbits/sec    0   1.75 MBytes
[  5]   5.00-6.00   sec   665 MBytes  5.57 Gbits/sec    0   1.75 MBytes
[  5]   6.00-7.00   sec   664 MBytes  5.57 Gbits/sec    0   1.75 MBytes
[  5]   7.00-8.00   sec   662 MBytes  5.56 Gbits/sec    0   1.75 MBytes
[  5]   8.00-9.00   sec   662 MBytes  5.56 Gbits/sec    0   1.75 MBytes
[  5]   9.00-10.00  sec   668 MBytes  5.61 Gbits/sec    0   1.75 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  6.49 GBytes  5.57 Gbits/sec    0             sender
[  5]   0.00-10.00  sec  6.49 GBytes  5.57 Gbits/sec                  receiver

iperf Done.

Demikian cara untuk menguji kecepatan & bandwidth jaringan menggunakan Iperf3. Semoga cara tutorial ini bermanfaat ketika teman-teman mau mengetes maksimum bandwidth suatu device.

Tinggalkan komentar