iperf3 is the industry-standard tool for measuring network bandwidth between two endpoints. It creates TCP and UDP data streams and measures throughput, providing detailed statistics essential for network capacity planning, troubleshooting, and performance validation.
📑 Table of Contents
Key Features
- TCP/UDP Testing – Test both protocols
- Bidirectional – Measure both directions simultaneously
- JSON Output – Machine-readable results
- Parallel Streams – Multiple connections for aggregate testing
Installation
sudo apt install iperf3 # Debian/Ubuntu
sudo dnf install iperf3 # Fedora/RHEL
Basic Usage
# Start server
iperf3 -s
# Run client test
iperf3 -c server_ip
# Reverse mode (server sends to client)
iperf3 -c server_ip -R
# UDP test
iperf3 -c server_ip -u -b 100M
# Parallel streams
iperf3 -c server_ip -P 4
# JSON output
iperf3 -c server_ip -J
Was this article helpful?