DOKK / manpages / debian 10 / iperf / iperf.1.en
IPERF(1) User Manuals IPERF(1)

iperf - perform network throughput tests

iperf -s [ options ]

iperf -c server [ options ]

iperf -u -s [ options ]

iperf -u -c server [ options ]

iperf is a tool for performing network throughput measurements. It can test either TCP or UDP throughput. To perform an iperf test the user must establish both a server (to discard traffic) and a client (to generate traffic).

set the target bandwidth (and optional standard devation where supported)
Display enhanced output in reports otherwise use legacy report (ver 2.0.5) formatting (see notes)
[abkmgBKMG] format to report: adaptive, bits, Bytes, Kbits, Mbits, Gbits, KBytes, MBytes, GBytes (see NOTES for more)
print a help synopsis
pause n seconds between periodic bandwidth reports
set read/write buffer size (TCP) or length (UDP) to n (TCP default 128K, UDP default 1470)
perform layer 2 length checks on received UDP packets (requires systems that support packet sockets, e.g. Linux)
print TCP maximum segment size (MTU - TCP/IP header)
output the report or error message to this specified file
set server port to listen on/connect to to n (default 5001)
use UDP rather than TCP
use 64 bit UDP sequence numbers
TCP window size (socket buffer size)
Request realtime scheduler, if supported.
bind to host, ip address or multicast address and optional port (see notes)
for use with older versions does not sent extra msgs
set TCP maximum segment size (MTU - 40 bytes)
set TCP no delay, disabling Nagle's Algorithm
print version information and quit
exclude C(connection) D(data) M(multicast) S(settings) V(server) reports
if set to C or c report results as CSV (comma separated values)

set target read rate to n bits/sec. TCP only for the server.
run in server mode
output UDP latency histograms, bin width (default 1 millisecond, append u for microseconds,) bincount is total bins (default 1000), ci is confidence interval between 0-100% (default lower 5%, upper 95%)
bind src ip addr and optional src device for receiving
run the server as a daemon. On Windows this will also install the IPerfService.
Set the source host (ip addr) per SSM multicast, i.e. the S of the S,G
remove the IPerfService (Windows only).
run in single threaded UDP mode
Enable IPv6 reception by setting the domain and socket to AF_INET6 (Can receive on both IPv4 and IPv6)

set target bandwidth to n bits/sec (default 1 Mbit/sec) or n packets per sec. This may be used with TCP or UDP. For variable loads use format mean,standard deviation
run in client mode, connecting to host
Do a bidirectional test simultaneously
increment the destination ip address when using the parallel (-P) option
set the interpacket gap to n (units of milliseconds) for packets within an isochronous frame (burst), requires --isochronous
send isochronous traffic with frequency frames per second and load defined by mean and standard deviation using a log normal distribution, defaults to 60:20m,0
number of bytes to transmit (instead of -t)
Do a bidirectional test individually
time in seconds to listen for new traffic connections, receive traffic or transmit traffic (Defaults: transmit is 10 secs while listen and receive are indefinite)
set the tx-sync interval to n (units of seconds) for synchronized packet writes
bind src ip addr and optional port as the source of traffic (see notes)
input the data to be transmitted from a file
input the data to be transmitted from stdin
port to receive bidirectional tests back on
number of parallel client threads to run
reverse the traffic flow after header exchange, useful for testing through firewalls
set the socket's IP_TOS (byte) field
time-to-live, for multicast (default 1) -V, --ipv6_domain Set the domain to IPv6 (send packets over IPv6)
run server version detection prior to traffic.
set TCP congestion control algorithm (Linux only)

Controls the size of TCP buffers.

Some numeric options support format characters per '<value>c' (e.g. 10M) where the c format characters are k,m,g,K,M,G. Lowercase format characters are 10^3 based and uppercase are 2^n based, e.g. 1k = 1000, 1K = 1024, 1m = 1,000,000 and 1M = 1,048,576

This section needs to be filled in.

See https://sourceforge.net/p/iperf2/tickets/

Iperf2, based from iperf (originally written by Mark Gates and Alex Warshavsky), has a goal of maintenance with some feature enhancement. Other contributions from Ajay Tirumala, Jim Ferguson, Jon Dugan <jdugan at x1024 dot net>, Feng Qin, Kevin Gibbs, John Estabrook <jestabro at ncsa.uiuc.edu>, Andrew Gallatin <gallatin at gmail.com>, Stephen Hemminger <shemminger at linux-foundation.org>, Tim Auckland, Robert J. McMahon <rjmcmahon at rjmcmahon.com>

http://sourceforge.net/projects/iperf2/

APRIL 2008 NLANR/DAST