Test network performance with iperf
iperf can be used to test network performance between two servers. You can install iperf on Ubuntu/Debian with command
apt install -y iperf
To run test, you need to run iperf in server mode in one of the server using command
iperf -s
On other server, run
iperf -c IP_OF_REMOTE_SERVER