Difference between revisions of "Iperf"

From wikieduonline
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
== Options ==
 
== Options ==
* <code>[[--dualtest]]</code>
+
* <code>[[--dualtest]] or -d</code>
 
* <code>[[--enhanced]]</code>
 
* <code>[[--enhanced]]</code>
 
* <code>[[--tradeoff]] or -r</code>
 
* <code>[[--tradeoff]] or -r</code>
 
* <code>--window n[kmKW]</code>
 
* <code>--window n[kmKW]</code>
 
* <code>[[--enhancedreports]]</code>
 
* <code>[[--enhancedreports]]</code>
 +
* <code>[[--reverse]], -R</code>
 +
* <code>[[iperf --help|--help]]</code>
  
 
== Examples ==
 
== Examples ==
Line 15: Line 17:
 
*  <code>iperf -c 10.10.10.2</code>
 
*  <code>iperf -c 10.10.10.2</code>
 
*  <code>iperf -c 10.10.10.2 -i 1</code>
 
*  <code>iperf -c 10.10.10.2 -i 1</code>
*  <code>iperf -c 10.10.10.2 --tradeoff</code>
+
 
 +
Run for 60 seconds (<code>-t 60</code>) and report every second (<code>-i 1</code>)
 +
*  <code>iperf -c 10.10.10.2 -t 60 -i 1</code>
 +
*  <code>iperf -c 10.10.10.2 [[--tradeoff]]</code>
 
*  <code>iperf --enhanced -c 10.10.10.2</code>
 
*  <code>iperf --enhanced -c 10.10.10.2</code>
 
+
iperf3 -c 10.0.0.105 -w 2000
  
 
  iperf -c 10.10.10.2
 
  iperf -c 10.10.10.2
Line 30: Line 35:
 
   iperf -c 10.10.10.2 --tradeoff
 
   iperf -c 10.10.10.2 --tradeoff
  
=== --enhanced ===
+
=== --enhanced, -e ===
 
  iperf --enhanced -c 10.10.10.1 or  iperf -e -c 10.10.10.1
 
  iperf --enhanced -c 10.10.10.1 or  iperf -e -c 10.10.10.1
 
  ------------------------------------------------------------
 
  ------------------------------------------------------------
Line 41: Line 46:
 
  [  3] 0.0000-10.0110 sec  88.0 MBytes  73.7 Mbits/sec  704/0          1      -1K/1322 us  6972.29
 
  [  3] 0.0000-10.0110 sec  88.0 MBytes  73.7 Mbits/sec  704/0          1      -1K/1322 us  6972.29
  
== Related commands ==
+
== Related terms ==
 
* <code>[[nc]]</code>
 
* <code>[[nc]]</code>
* <code>[[ping]]</code>
+
* <code>[[tc]]</code>
* <code>[[pv]] </dev/zero | ssh REMOTE_SERVER 'cat >/dev/null'</code>
+
* <code>[[ping]]</code>, <code>[[nping --tcp]]</code>
 +
* <code>[[pv]] <[[/dev/zero]] | ssh REMOTE_SERVER 'cat >[[/dev/null]]'</code>
 
* <code>iperf2</code>, <code>[[iperf3]]</code>
 
* <code>iperf2</code>, <code>[[iperf3]]</code>
 
* <code>[[netperf]]</code>
 
* <code>[[netperf]]</code>
 +
* [[Check TCP connectivity]]
  
 
== See also ==
 
== See also ==

Latest revision as of 14:00, 18 July 2021

wikipedia:iperf perform network throughput tests.

Options[edit]

Examples[edit]

  • iperf -s
  • iperf -c 10.10.10.2
  • iperf -c 10.10.10.2 -i 1

Run for 60 seconds (-t 60) and report every second (-i 1)

  • iperf -c 10.10.10.2 -t 60 -i 1
  • iperf -c 10.10.10.2 --tradeoff
  • iperf --enhanced -c 10.10.10.2
iperf3 -c 10.0.0.105 -w 2000
iperf -c 10.10.10.2
------------------------------------------------------------
Client connecting to 10.10.10.2, TCP port 5001
TCP window size:  129 KByte (default)
------------------------------------------------------------
[  4] local 10.10.10.50 port 50027 connected with 10.10.10.2 port 5001
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  3.09 GBytes  2.65 Gbits/sec
 iperf -c 10.10.10.2 --tradeoff

--enhanced, -e[edit]

iperf --enhanced -c 10.10.10.1 or  iperf -e -c 10.10.10.1
------------------------------------------------------------
Client connecting to 10.10.10.1, TCP port 5001 with pid 2051443
Write buffer size:  128 KByte
TCP window size:  136 KByte (default)
------------------------------------------------------------
[  3] local 10.10.10.5 port 33910 connected with 10.10.10.1 port 5001 (ct=3.18 ms)
[ ID] Interval            Transfer    Bandwidth       Write/Err  Rtry     Cwnd/RTT        NetPwr
[  3] 0.0000-10.0110 sec  88.0 MBytes  73.7 Mbits/sec  704/0          1       -1K/1322 us  6972.29

Related terms[edit]

See also[edit]

Advertising: