Stránka 1 z 1

Měření rychlosti přes iperf (Linux, Mac, Windows)

Napsal: 14 Mar 2017 14:27
od zdenek.svarc
Na stroji (A) spustit:

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

Re: Měření rychlosti přes iperf (Linux, Mac, Windows)

Napsal: 15 Mar 2017 10:26
od DarkLogic
Taky se jeste hodi na stroji B pridat parametr "-P 5", ktery vytvori 5 paralelnich spojeni, coz se hodi pro presnejsi mereni na bezdratovych spojich.