Kód: Vybrat vše
iperf -s
Na stroji (B) spustit:
Kód: Vybrat vše
iper -c adresa_stroje_A
Což nám ukáže rychlost přenosu ze stroje B na stroj A s defaultním TCP windows size 128 KByte. Můžeme měřit i duplexní přesnos mezi stroji A a B, pokud přidáme na stroji B přepínač -d:
Kód: Vybrat vše
iperf -c adresa_stroje_A -d
Příklad výstupu:
Kód: Vybrat vše
# iperf -c test -d
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to test, TCP port 5001
TCP window size: 476 KByte (default)
------------------------------------------------------------
3 local xxx.xxx.xxx.xxx port 52408 connected with xxx.xxx.xxx.xxx port 5001
5 local xxx.xxx.xxx.xxx port 5001 connected with xxx.xxx.xxx.xxx port 49092
ID Interval Transfer Bandwidth
3 0.0-10.0 sec 1.07 GBytes 922 Mbits/sec
5 0.0-10.0 sec 881 MBytes 737 Mbits/sec
Kompletní manuálová stránka iperf: https://iperf.fr/iperf-doc.php
Instalace pro macOS: brew install iperf