This is an old revision of the document!
Iperf
General Information
iperf allows testing of network throughput. It requires you to install iperf on a source and destination system.
Checklist
- Distro(s): Enterprise Linux 6
Install iperf
- Add the EPEL repo.
- Install iperf on the “client” and “server” system.
yum install iperf
Performance Test
Note: Transfers are from client to server, ie: upload transfer. (Unless doing bi-directional tests)
- The client transfers data to the server, and the server throws away the data.
- Start iperf on the “server” system.
iperf -s
- Specify what port iperf listens on with the '-p <port>' option.
iperf -s -p 1337
- Specify an address for iperf to listen on (-B for bind) - useful if you ened to specify a 10 Gb interface
iperf -s -B 10.0.0.1 -p 1337
- Run the test from the client
- Basic test with default settings
iperf -c <server-ip>
- Basic test, specify server listening port
iperf -c <server-ip> -p 1337
- Bi-directional test
iperf -c <server-ip> -p 1337 -d
- Custom Test: Bandwidth format in MBytes/sec (-f M), show max segment size and MTU (-m), pause 2 seconds in between reports (-i 2), transmit for 30 seconds (-t 30).
iperf -c <server-ip> -p 1337 -f M -m -i 2 -t 30