2014-02-28 21:44:12 +00:00
|
|
|
iperf3: A TCP, UDP, and SCTP network bandwidth measurement tool
|
|
|
|
================================================================
|
2007-08-29 21:57:27 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
Summary
|
|
|
|
-------
|
2007-08-29 21:57:27 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
iperf is a tool for active measurements of the maximum achievable
|
|
|
|
bandwidth on IP networks. It supports tuning of various parameters
|
|
|
|
related to timing, protocols, and buffers. For each test it reports
|
|
|
|
the bandwidth, loss, and other parameters.
|
2007-08-29 21:57:27 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
This version, sometimes referred to as iperf3, is a redesign of an
|
|
|
|
original version developed at NLANR/DAST. iperf3 is a new
|
|
|
|
implementation from scratch, with the goal of a smaller, simpler code
|
|
|
|
base, and a library version of the functionality that can be used in
|
|
|
|
other programs. iperf3 also a number of features found in other tools
|
|
|
|
such as nuttcp and netperf, but were missing from the original iperf.
|
2014-03-01 01:52:52 +00:00
|
|
|
These include, for example, a zero-copy mode and optional JSON output.
|
2014-09-15 18:00:08 +00:00
|
|
|
Note that iperf3 is *not* backwards compatible with the original iperf.
|
2009-12-02 02:08:47 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
Primary development for iperf3 takes place on CentOS Linux, FreeBSD,
|
|
|
|
and MacOS X. At this time, these are the only officially supported
|
|
|
|
platforms, however there have been some reports of success with
|
2015-06-19 17:51:57 +00:00
|
|
|
OpenBSD, NetBSD, Android, Solaris, and other Linux distributions.
|
2009-12-02 02:08:47 +00:00
|
|
|
|
2014-08-26 21:31:23 +00:00
|
|
|
iperf3 is principally developed by ESnet / Lawrence Berkeley National
|
2014-03-01 01:52:52 +00:00
|
|
|
Laboratory. It is released under a three-clause BSD license.
|
2014-02-28 21:44:12 +00:00
|
|
|
|
2015-11-18 18:26:05 +00:00
|
|
|
Note that at this point, ESnet plans to support iperf3 in "maintenance
|
|
|
|
mode". At this point, there are no definite plans for further iperf3
|
|
|
|
releases, and ESnet will be providing a very limited amount of
|
|
|
|
resources for support and development, going forward. However, ESnet
|
|
|
|
could issue new iperf3 releases to deal with security issues or
|
|
|
|
high-impact bug fixes.
|
|
|
|
|
2014-05-05 22:28:05 +00:00
|
|
|
For more information see: http://software.es.net/iperf
|
|
|
|
|
|
|
|
Source code and issue tracker: https://github.com/esnet/iperf
|
2014-02-28 21:44:12 +00:00
|
|
|
|
|
|
|
Obtaining iperf3
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Downloads of iperf3 are available at:
|
|
|
|
|
2014-06-10 23:05:33 +00:00
|
|
|
http://downloads.es.net/pub/iperf/
|
2014-02-28 21:44:12 +00:00
|
|
|
|
2015-06-19 17:51:57 +00:00
|
|
|
To check out the most recent code, clone the git repository at:
|
2014-02-28 21:44:12 +00:00
|
|
|
|
2015-06-19 17:51:57 +00:00
|
|
|
https://github.com/esnet/iperf.git
|
2014-02-28 21:44:12 +00:00
|
|
|
|
|
|
|
Building iperf3
|
|
|
|
---------------
|
|
|
|
|
|
|
|
### Prerequisites: ###
|
2014-04-10 22:07:49 +00:00
|
|
|
|
|
|
|
None.
|
2009-12-02 02:08:47 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
### Building ###
|
2010-07-08 22:41:22 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
./configure; make; make install
|
2010-07-08 22:41:22 +00:00
|
|
|
|
2014-03-01 01:52:52 +00:00
|
|
|
(Note: If configure fails, try running `./bootstrap.sh` first)
|
2010-07-08 22:41:22 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
Invoking iperf3
|
|
|
|
---------------
|
2010-07-08 22:41:22 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
iperf3 includes a manual page listing all of the command-line options.
|
|
|
|
The manual page is the most up-to-date reference to the various flags and parameters.
|
2010-07-08 22:41:22 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
For sample command line usage, see:
|
|
|
|
|
|
|
|
http://fasterdata.es.net/performance-testing/network-troubleshooting-tools/iperf-and-iperf3/
|
2010-07-08 22:41:22 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
Using the default options, iperf is meant to show typical well
|
|
|
|
designed application performance. 'Typical well designed application'
|
|
|
|
means avoiding artificial enhancements that work only for testing
|
|
|
|
(such as splice()'ing the data to /dev/null). iperf does also have
|
|
|
|
flags for 'extreme best case' optimizations but they must be
|
|
|
|
explicitly activated.
|
|
|
|
|
|
|
|
These flags include:
|
2014-03-12 21:04:14 +00:00
|
|
|
|
|
|
|
-Z, --zerocopy use a 'zero copy' sendfile() method of sending data
|
|
|
|
-A, --affinity n/n,m set CPU affinity
|
2014-02-28 21:44:12 +00:00
|
|
|
|
|
|
|
Bug Reports
|
|
|
|
-----------
|
2013-11-10 17:37:10 +00:00
|
|
|
|
2014-09-15 18:00:08 +00:00
|
|
|
Before submitting a bug report, please make sure you're running the
|
|
|
|
latest version of the code, and confirm that your issue has not
|
|
|
|
already been fixed. Then submit to the iperf3 issue tracker on
|
|
|
|
GitHub:
|
|
|
|
|
2014-02-28 05:56:53 +00:00
|
|
|
https://github.com/esnet/iperf/issues
|
2013-11-10 17:37:10 +00:00
|
|
|
|
2014-09-15 18:00:08 +00:00
|
|
|
In your issue submission, please indicate the version of iperf3 and
|
|
|
|
what platform you're trying to run on (provide the platform
|
|
|
|
information even if you're not using a supported platform, we
|
|
|
|
*might* be able to help anyway). Exact command-line arguments will
|
|
|
|
help us recreate your problem. If you're getting error messages,
|
|
|
|
please include them verbatim if possible, but remember to sanitize any
|
|
|
|
sensitive information.
|
|
|
|
|
|
|
|
If you have a question about usage or about the code, please do *not*
|
|
|
|
submit an issue. Please use one of the mailing lists for that.
|
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
Changes from iperf 2.x
|
|
|
|
----------------------
|
2013-11-10 17:37:10 +00:00
|
|
|
|
|
|
|
New options:
|
2014-01-08 17:28:49 +00:00
|
|
|
|
2014-03-12 21:04:14 +00:00
|
|
|
-V, --verbose more detailed output than before
|
|
|
|
-J, --json output in JSON format
|
|
|
|
-Z, --zerocopy use a 'zero copy' sendfile() method of sending data
|
|
|
|
-O, --omit N omit the first n seconds (to ignore slowstart)
|
|
|
|
-T, --title str prefix every output line with this string
|
|
|
|
-F, --file name xmit/recv the specified file
|
|
|
|
-A, --affinity n/n,m set CPU affinity (Linux and FreeBSD only)
|
|
|
|
-k, --blockcount #[KMG] number of blocks (packets) to transmit (instead
|
|
|
|
of -t or -n)
|
|
|
|
-L, --flowlabel set IPv6 flow label (Linux only)
|
2014-01-08 00:45:43 +00:00
|
|
|
|
|
|
|
Changed flags:
|
2014-03-12 21:04:14 +00:00
|
|
|
|
|
|
|
-C, --linux-congestion set congestion control algorithm (Linux only)
|
|
|
|
(-Z in iperf2)
|
2013-11-10 17:37:10 +00:00
|
|
|
|
|
|
|
|
2014-01-08 00:45:43 +00:00
|
|
|
Deprecated options:
|
2013-11-10 17:37:10 +00:00
|
|
|
|
2014-01-08 17:28:49 +00:00
|
|
|
Not planning to support these iperf2 flags. If you really miss these
|
|
|
|
options, please submit a request in the issue tracker:
|
|
|
|
|
2014-03-12 21:04:14 +00:00
|
|
|
-d, --dualtest Do a bidirectional test simultaneously
|
|
|
|
-r, --tradeoff Do a bidirectional test individually
|
|
|
|
-T, --ttl time-to-live, for multicast (default 1)
|
|
|
|
-x, --reportexclude [CDMSV] exclude C(connection) D(data) M(multicast)
|
|
|
|
S(settings) V(server) reports
|
|
|
|
-y, --reportstyle C report as a Comma-Separated Values
|
2013-11-10 17:37:10 +00:00
|
|
|
|
2014-01-08 17:28:49 +00:00
|
|
|
Also deprecated is the ability to set the options via environment
|
|
|
|
variables.
|
2013-11-10 17:37:10 +00:00
|
|
|
|
2014-02-28 21:44:12 +00:00
|
|
|
Known Issues
|
|
|
|
------------
|
2013-12-18 23:23:16 +00:00
|
|
|
|
2014-05-01 20:18:53 +00:00
|
|
|
* UDP performance: Some problems have been noticed with iperf3 on the
|
|
|
|
ESnet 100G testbed at high UDP rates (above 10Gbps). The symptom is
|
|
|
|
that on any particular run of iperf3 the receiver reports a loss rate
|
|
|
|
of about 20%, regardless of the -b option used on the client side.
|
|
|
|
This problem appears not to be iperf3-specific, and may be due to the
|
|
|
|
placement of the iperf3 process on a CPU and its relation to the
|
|
|
|
inbound NIC. In some cases this problem can be mitigated by an
|
|
|
|
appropriate use of the CPU affinity (-A) option. (Issue #55)
|
|
|
|
|
|
|
|
* The -Z flag sometimes causes the iperf3 client to hang on OSX.
|
|
|
|
(Issue #129)
|
2014-01-08 00:45:43 +00:00
|
|
|
|
2015-11-18 18:26:05 +00:00
|
|
|
* When specifying the socket buffer size using the "-w" flag on Linux, Linux
|
2014-03-07 01:03:19 +00:00
|
|
|
doubles the value you pass in. (You can see this using iperf3's debug flag).
|
|
|
|
But then the CWND does not actually ramp up to the doubled value, but only
|
|
|
|
to about 75% of the doubled value. This appears to be by design.
|
|
|
|
|
2015-11-18 18:26:05 +00:00
|
|
|
* Although the "-w" flag is documented as setting the (TCP) window
|
|
|
|
size, it is also used to set the socket buffer size. This has been
|
|
|
|
shown to be helpful with high-bitrate UDP tests.
|
|
|
|
|
2014-06-11 20:41:42 +00:00
|
|
|
* On some platforms, it might be necessary to invoke "ldconfig"
|
|
|
|
manually after doing a "make install" before the iperf3 executable can
|
|
|
|
find its shared library. (Issue #153)
|
2014-08-26 21:31:23 +00:00
|
|
|
|
2015-11-18 18:26:05 +00:00
|
|
|
* The results printed on the server side at the end of a test do not
|
|
|
|
correctly reflect the client-side measurements. This is due to the
|
|
|
|
ordering of computing and transferring results between the client
|
|
|
|
and server. (Issue #293)
|
|
|
|
|
|
|
|
* The server could have a very short measurement reporting interval at
|
|
|
|
the end of a test (particularly a UDP test), containing few or no
|
|
|
|
packets. This issue is due to an artifact of timing between the
|
|
|
|
client and server. (Issue #278)
|
|
|
|
|
2014-08-26 21:31:23 +00:00
|
|
|
Links
|
|
|
|
-----
|
|
|
|
|
|
|
|
This section lists links to user-contributed Web pages regarding
|
|
|
|
iperf3. ESnet and Lawrence Berkeley National Laboratory bear no
|
|
|
|
responsibility for the content of these pages.
|
|
|
|
|
|
|
|
* Installation instructions for Debian Linux (by Cameron Camp
|
|
|
|
<cameron@ivdatacenter.com>):
|
|
|
|
|
|
|
|
http://cheatsheet.logicalwebhost.com/iperf-network-testing/
|
2014-09-29 21:00:46 +00:00
|
|
|
|
|
|
|
Copyright
|
|
|
|
---------
|
|
|
|
|
2015-11-18 18:26:05 +00:00
|
|
|
iperf, Copyright (c) 2014, 2015, The Regents of the University of
|
2014-09-29 21:00:46 +00:00
|
|
|
California, through Lawrence Berkeley National Laboratory (subject
|
|
|
|
to receipt of any required approvals from the U.S. Dept. of
|
|
|
|
Energy). All rights reserved.
|
|
|
|
|
|
|
|
If you have questions about your rights to use or distribute this
|
|
|
|
software, please contact Berkeley Lab's Technology Transfer
|
|
|
|
Department at TTD@lbl.gov.
|
|
|
|
|
|
|
|
NOTICE. This software is owned by the U.S. Department of Energy.
|
|
|
|
As such, the U.S. Government has been granted for itself and others
|
|
|
|
acting on its behalf a paid-up, nonexclusive, irrevocable,
|
|
|
|
worldwide license in the Software to reproduce, prepare derivative
|
|
|
|
works, and perform publicly and display publicly. Beginning five
|
|
|
|
(5) years after the date permission to assert copyright is obtained
|
|
|
|
from the U.S. Department of Energy, and subject to any subsequent
|
|
|
|
five (5) year renewals, the U.S. Government is granted for itself
|
|
|
|
and others acting on its behalf a paid-up, nonexclusive,
|
|
|
|
irrevocable, worldwide license in the Software to reproduce,
|
|
|
|
prepare derivative works, distribute copies to the public, perform
|
|
|
|
publicly and display publicly, and to permit others to do so.
|
|
|
|
|
|
|
|
This code is distributed under a BSD style license, see the LICENSE
|
|
|
|
file for complete information.
|