I got two Ubuntu hosts with ssh access. How to test network performance between them?
- User
I got two Ubuntu hosts with ssh access. How to test network performance between them?
Assistant
For testing network performance between two Ubuntu hosts,
iperf3is one of the best tools. Here's how to do it:- Install iperf3 on both hosts:
sudo apt install iperf3- On the first host (server), start iperf3 in server mode:
iperf3 -s- On the second host (client), run the test:
iperf3 -c server_ip_addressBy default, this will run a TCP throughput test for 10 seconds. You can modify the test with additional options:
- Test UDP instead of TCP:
iperf3 -c server_ip_address -u- Change test duration (e.g., 30 seconds):
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.