CentOS 6
Sponsored Link

Check Network Bandwidth with iperf2013/07/23

 
Install and Check Network Bandwidth with iperf
This needs 2 machine, Client(Sender) and Server(Receiver).
[1] Install iperf3 (Install on both Client and Server)
[root@dlp ~]#
yum --enablerepo=epel -y install iperf3
 
# install from EPEL
[2] Execute the command on the Server like follows.
It's possible to specify the listening port to add "-p (port number)".
If not specified. default port(5201) is used like follows.
[root@dlp ~]#
iperf3 -s

-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
[3] Check Network Bandwidth to execute the command like follows.
The example below shows 860 MBytes data are sent/received and the bandwidth was 721Mbps.
# iperf3 -c (client's hostname or IP address)

[root@dlp ~]#
iperf3 -c 10.0.0.253

Connecting to host 10.0.0.253, port 5201
[  4] local 10.0.0.31 port 53389 connected to 10.0.0.253 port 5201
[ ID] Interval           Transfer     Bandwidth       Retransmits
[  4]   0.00-10.01  sec   860 MBytes   721 Mbits/sec  223
[ ID] Interval           Transfer     Bandwidth       Retransmits
      Sent
[  4]   0.00-10.01  sec   860 MBytes   721 Mbits/sec  223
      Received
[  4]   0.00-10.01  sec   860 MBytes   721 Mbits/sec

iperf Done.
[4] Basic Usage are like above. But there are many options like below. Try to do.
[root@dlp ~]#
iperf3 --help

Usage: iperf [-s|-c host] [options]
       iperf [-h|--help] [-v|--version]

Server or Client:
  -p, --port      #         server port to listen on/connect to
  -f, --format    [kmgKMG]  format to report: Kbits, Mbits, KBytes, MBytes
  -i, --interval  #         seconds between periodic bandwidth reports
  -V, --verbose             more detailed output
  -J, --json                output in JSON format
  -d, --debug               debug mode
  -v, --version             show version information and quit
  -h, --help                show this message and quit
Server specific:
  -s, --server              run in server mode
Client specific:
  -c, --client    <host>    run in client mode, connecting to <host>
  -u, --udp                 use UDP rather than TCP
  -b, --bandwidth #[KMG]    for UDP, bandwidth to send at in bits/sec
                            (default 1 Mbit/sec)
  -t, --time      #         time in seconds to transmit for (default 10 secs)
  -n, --num       #[KMG]    number of bytes to transmit (instead of -t)
  -l, --len       #[KMG]    length of buffer to read or write
                            (default 128 KB for TCP, 8 KB for UDP)
  -P, --parallel  #         number of parallel client streams to run
  -R, --reverse             run in reverse mode (server sends, client receives)
  -w, --window    #[KMG]    TCP window size (socket buffer size)
  -B, --bind      <host>    bind to a specific interface or multicast address
  -M, --set-mss   #         set TCP maximum segment size (MTU - 40 bytes)
  -N, --nodelay             set TCP no delay, disabling Nagle's Algorithm
  -6, --version6            use IPv6
  -S, --tos N               set the IP 'type of service'
  -Z, --zerocopy            use a 'zero copy' method of sending data

[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-
Matched Content