Difference between revisions of "Iperf"

From wikieduonline
Jump to navigation Jump to search
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[wikipedia:iperf]] perform network throughput tests. https://linux.die.net/man/1/iperf
+
[[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>
  
 +
== 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>
  
sudo apt-get install iperf
+
Run for 60 seconds (<code>-t 60</code>) and report every second (<code>-i 1</code>)
  iperf -s
+
* <code>iperf -c 10.10.10.2 -t 60 -i 1</code>
------------------------------------------------------------
+
* <code>iperf -c 10.10.10.2 [[--tradeoff]]</code>
  Server listening on TCP port 5001
+
* <code>iperf --enhanced -c 10.10.10.2</code>
[[TCP window size]]: 85.3 KByte (default)
+
  iperf3 -c 10.0.0.105 -w 2000
  ------------------------------------------------------------
 
 
 
iperf -c <address of other computer>
 
  iperf -e -c <address of other computer>
 
  
 
  iperf -c 10.10.10.2
 
  iperf -c 10.10.10.2
Line 22: 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
  
  iperf -e -c 10.10.10.1
+
=== --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
 
  Client connecting to 10.10.10.1, TCP port 5001 with pid 2051443
Line 29: Line 42:
 
  TCP window size:  136 KByte (default)
 
  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)
+
  [  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
+
  [ 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
 
  [  3] 0.0000-10.0110 sec  88.0 MBytes  73.7 Mbits/sec  704/0          1      -1K/1322 us  6972.29
  
 
+
== Related terms ==
== Related commands ==
 
 
* <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>
* iperf2, <code>[[iperf3]]</code>
+
* <code>[[pv]] <[[/dev/zero]] | ssh REMOTE_SERVER 'cat >[[/dev/null]]'</code>
 +
* <code>iperf2</code>, <code>[[iperf3]]</code>
 
* <code>[[netperf]]</code>
 
* <code>[[netperf]]</code>
 +
* [[Check TCP connectivity]]
  
 
== See also ==
 
== See also ==
 +
* {{iperf}}
 
* {{TCP}}
 
* {{TCP}}
 
* {{net perf}}
 
* {{net perf}}

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: