Monday, March 30, 2026

Iperf for Network monitoring

 IPERF is a very simple command line tool the check network quality between two PCs. Client - Server. There are options for stressing the test, like how many ports to use at once, size of the packets, total time and more. This can be done even for testing cable and network apparel installation quality. Site to site connection issues and much more. I don't really go into details and master this tool, just use the basic functions daily, as it is super useful. Right now I am benchmarking a 4 station network, as there are tons of data loss, knowing that there are only 4 users for one single TP Link Wifi spot and the actual Wifi-Spot is directly connected to the main switch. 

Here is how you use it. You set up a server at either way of the connection and switch it over afterwards, cause yes indeed, you can have one way filtering that slows the traffic in, but not out !

Server: iperf -S

Client: Iperf -c [IP ADDRESS] -p 5 -t 30 

  • -P = packet quantity 
  • -t = time
  • -l = packet size 

-------------------

🔹 Maximum throughput (LAN) 
        iperf3 -c SERVER_IP -P 4 -t 30

🔹 Clean MTU-safe test
        iperf3 -c SERVER_IP -P 4 -l 1460 -t 30
🔹 Stability test
        iperf3 -c SERVER_IP -P 4 -t 300
🔹 UDP stress
        iperf3 -c SERVER_IP -u -b 1G -l 1460 -t 30
🔹 Real-world simulation (mixed traffic)
        iperf3 -c SERVER_IP -P 2 -l 512 -t 60 

-------------------

 

This is how it looks like. Of course, these ate not real word speeds, but kernel perf, CPU perf and memory bandwith, but a great example still, to see how it works. 

-------------------
Iperf is available on windows and linux. I use iperf2 on old servers like windows 2008 and use the newer iperf3 on recent machines. Windows and linux machines are compatible if the iperfs are compatible. 

Donwload iperf from here: https://iperf.fr/
You can also test some public iperf servers: https://iperf.fr/iperf-servers.php
I use right now fedora: sudo dnf install iperf iperf3 -y

 

Iperf for Network monitoring

 IPERF is a very simple command line tool the check network quality between two PCs. Client - Server. There are options for stressing the te...