Difference between revisions of "Iperf"
Jump to navigation
Jump to search
(42 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[wikipedia:iperf]] perform network throughput tests. https:// | + | [[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> | ||
− | + | Run for 60 seconds (<code>-t 60</code>) and report every second (<code>-i 1</code>) | |
− | iperf - | + | * <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> | |
− | + | iperf3 -c 10.0.0.105 -w 2000 | |
− | --- | ||
− | |||
− | |||
iperf -c 10.10.10.2 | iperf -c 10.10.10.2 | ||
Line 21: | 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 | + | == 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> |
− | * 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}} | ||
* {{net perf}} | * {{net perf}} | ||
* {{network monitoring}} | * {{network monitoring}} |
Latest revision as of 14:00, 18 July 2021
wikipedia:iperf perform network throughput tests.
- Man page: https://www.mankier.com/1/iperf
iperf --help
- Installation:
sudo apt-get install iperf
Options[edit]
--dualtest or -d
--enhanced
--tradeoff or -r
--window n[kmKW]
--enhancedreports
--reverse, -R
--help
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]
nc
tc
ping
,nping --tcp
pv </dev/zero | ssh REMOTE_SERVER 'cat >/dev/null'
iperf2
,iperf3
netperf
- Check TCP connectivity
See also[edit]
iperf, iperf --help
- TCP/IP, Transport protocol, UDP, SCTP, QUIC, subnet mask, Routing protocols: BGP, routing table, Policy based routing, multicast, TCP Fast Open, RDP, TTL, RTT, MPTCP, Large send offload (LSO): (TSO, GRO, GSO, TCP checksum),
ethtool
, SCTP, 5-Tuple, Check TCP connectivity, TCP window size,/proc/sys/net/ipv4/tcp_rmem
, ack, List of TCP ports, localhost, broadcast address - Network performance:
iperf
,nload
,iftop
,iptraf-ng
,nethogs
,bmon
,slurm
,collectl
,collectd
,speedometer
,VnStat
,Darkstat
, Monitorix, mrtg,mrt
,traceroute
, munin, smokeping,sar -n
,ping
,fping
,nping
, Jitter, fast.com - Network monitoring: Cacti, PRTG, MRTG,
ntop
,ntopng
,ping
,nethogs
,netperf
- Performance:
perf
,strace
, Dtrace, SystemTap,iperf
,uperf
,cgroups
,netperf
, sysbench, Queries Per Second (QPS), PerfKitBenchmarker, Load testing
Advertising: