• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

iperf Command Examples in Linux

by admin

The iperf project is an open source project that provides a benchmarking tool to measure TCP and UDP bandwidth performance. It allows you to tune various parameters. The iperf tool reports bandwidth, delay jitter, and datagram loss.

A basic test is as follows:

1. On the server, run:

# iperf -s

2. On the client, run:

# iperf -c {server address}

3. Examine the results that appear.

You can tune many parameters of iperf, like these:

  • –u: For using a UDP socket.
  • -t: For using a different time interval in seconds instead of the default of 10 seconds.
  • -T: Sets a TTL for multicast (the default is 1).
  • -B: Bind to a host, an interface, or a multicast address.

iperf Command Examples

1. Run on server:

# iperf -s

2. Run on server using UDP mode and set server port to listen on 5001:

# iperf -u -s -p 5001

3. Run on client:

# iperf -c server_address

4. Run on client every 2 seconds:

# iperf -c server_address -i 2

5. Run on client with 5 parallel threads:

# iperf -c server_address -P 5

6. Run on client using UDP mode:

# iperf -u -c server_address -p 5001

Conclusion

The iperf command is used to test the maximum throughput an interface will support. The utility must be installed on both endpoint systems. One system is designated as a “server” and the other as a “client.” It is the iperf client that is getting tested. You can use this command to ensure that throughput is meeting your expectations.

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 6 : How to change SNMP log level
  2. insmod: command not found
  3. aa-disable: command not found
  4. mpg123: command not found
  5. nft Command Examples in Linux
  6. dig: command not found
  7. Cannot Increase “nproc” Value More Than 1024 in CentOS/RHEL 6
  8. How To Configure Timeout On SSH Client Putty
  9. Linux OS Service ‘vncserver’
  10. mkfs.vfat: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright