Table of Contents
Overview
iPerf3 is a tool for active measurements of the maximum achievable bandwidth on IP networks. It supports tuning various parameters related to timing, buffers, and protocols (TCP, UDP, SCTP).
Key Features
- Measure bandwidth, loss, and jitter
- Support for IPv4 and IPv6
- Client and server functionality
- Multiple simultaneous connections
- TCP window size adjustment
- UDP bandwidth specification
Installation
Ubuntu (22.04/24.04)
MacOS
Basic Syntax
Server Mode
Client Mode
Common Use Cases
1. TCP Bandwidth Test
-t 30
: Run for 30 seconds-i 1
: Output interval every 1 second
2. UDP Bandwidth Test
-u
: Use UDP-b 100M
: Set bandwidth target to 100 Mbits/sec
3. Multiple Parallel Streams
4. Reverse Mode Test
Advanced Options
TCP Window Size
JSON Output
Bidirectional Test
Best Practices
-
Testing Methodology
- Always run multiple tests
- Test at different times of day
- Use consistent test durations
- Monitor system resources during tests
-
Security Considerations
-
Performance Tips
- Disable system sleep during tests
- Close unnecessary applications
- Monitor CPU usage
- Consider network conditions
Troubleshooting
Common Issues and Solutions
-
Connection Refused
-
Poor Performance
-
Permission Issues
Debug Mode
Example Test Scenarios
1. Network Baseline Test
2. Maximum Performance Test
3. Network Stability Test
Quick Reference
Essential Commands
Common Flags
-s
: Server mode-c
: Client mode-p
: Port number-t
: Time duration-i
: Interval timing-u
: UDP mode-b
: Bandwidth target-R
: Reverse mode-P
: Parallel streams-J
: JSON output-V
: Verbose output