There are many tools for measuring throughput of a network between Linux-based machines. In this guide, we will use two methods for testing throughput between two network machines. This tip is workable under Ubuntu or any other Linux/Unix-based distribution.
Install first this command line utility:
sudo apt-get install iperf
Then, in the first machine (server), use this command:
In the second machine (client server), run this command:
iperf -c ip-or-hostname
Replace ip-or-hostname with your own IP or hostname.
You can also use this command in the first machine:
nc -l -p 7777 > /dev/null
In the second machine, run this command to install first the PV package:
sudo apt-get install pv
Then use this command to test throughput:
pv -r /dev/zero | nc 192.168.0.1 7777
Replace 192.168.0.1 with your own IP.