How to Run a Bandwidth Test with iPerf3
What is iPerf3?
iPerf3 is a tool used to measure network bandwidth between two hosts. It’s commonly used to test upload and download speed between your server and a remote test server.
Step 1: Install iPerf3
On most Linux distributions, you can install it with:
apt install iperf3
Step 2: Run a Test
To run a test, use the following command:
iperf3 -c ping.online.net -p 5208 -P 25
-c→ specifies the server to connect to (in this case ping.online.net).-p→ sets the port number (example: 5208).-P→ number of parallel streams (use 25 for heavy test or 3 for lighter test).
Example with fewer streams:
iperf3 -c ping.online.net -p 5208 -P 3
Notes
- The higher the
-Pvalue, the more parallel connections are tested. - Using 25 streams puts higher load on your connection, showing maximum possible bandwidth.
- Use 3 streams for a lighter test.