Difference between revisions of "Iperf"

From wikieduonline
Jump to navigation Jump to search
 
(51 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Draft}}
+
[[wikipedia:iperf]] perform [[network throughput]] tests.
 +
* Man page: https://www.mankier.com/1/iperf
 +
* <code>[[iperf --help]]</code>
 +
* Installation: <code>[[sudo apt-get install iperf]]</code>
  
perform network throughput tests. https://linux.die.net/man/1/iperf
+
== Options ==
 +
* <code>[[--dualtest]] or -d</code>
 +
* <code>[[--enhanced]]</code>
 +
* <code>[[--tradeoff]] or -r</code>
 +
* <code>--window n[kmKW]</code>
 +
* <code>[[--enhancedreports]]</code>
 +
* <code>[[--reverse]], -R</code>
 +
* <code>[[iperf --help|--help]]</code>
  
 +
== Examples ==
 +
* <code>[[iperf -s]]</code>
 +
*  <code>iperf -c 10.10.10.2</code>
 +
*  <code>iperf -c 10.10.10.2 -i 1</code>
  
 
+
Run for 60 seconds (<code>-t 60</code>) and report every second (<code>-i 1</code>)
  sudo apt-get install iperf
+
* <code>iperf -c 10.10.10.2 -t 60 -i 1</code>
  iperf -s
+
* <code>iperf -c 10.10.10.2 [[--tradeoff]]</code>
  perf -c <address of other computer>
+
* <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 18: Line 33:
 
  [  4]  0.0-10.0 sec  3.09 GBytes  2.65 Gbits/sec
 
  [  4]  0.0-10.0 sec  3.09 GBytes  2.65 Gbits/sec
  
 +
  iperf -c 10.10.10.2 --tradeoff
 +
 +
=== --enhanced, -e ===
 +
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 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>[[netperf]]</code>
 +
* [[Check TCP connectivity]]
  
 
== See also ==
 
== See also ==
 +
* {{iperf}}
 +
* {{TCP}}
 
* {{net perf}}
 
* {{net perf}}
 +
* {{network monitoring}}
 
* {{perf}}
 
* {{perf}}
  
  
 
[[Category:Networking]]
 
[[Category:Networking]]

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: