Why ?
To test the network performance between two different parties, you need to have a tool, iperf3 package needs to be installed on both server and client, accordingly, you will be able to send package from client to server and analyze the network performance, it is too important tools that will give a clear picture about the network performance.
How ?
Below are simple commands for setting and user the commands
1- on server side, you can simply run the below command to let this machine listening as server on to of default network card and default port and/or non default :
iperf -s
iperf3 -s -B <nic_ip>
2- connect to the server from client using default ports as well :
iperf3 -c <server_ip>
iperf3 -c <server_ip> -t 60 -- for 60 second keep testing
** Note: man iperf3 is the main reference and examples as usual .