How to test the transfer speed between two machines using Linux?

To test the transmission speed between two machines, you can use the following method:

  1. utilize the iperf tool:
  2. Install the iperf tool on a machine and set it to server mode.
  3. Install the iperf tool on another machine and set it to client mode.
  4. Run the iperf command on the client machine, connect to the server machine’s IP address, and begin the test transmission. Iperf will display the transfer speed, latency, and other relevant information.
  5. Use the scp command:
  6. Run the scp command on a machine to copy a large file from local to remote.
  7. Record the time taken for copying and calculate the transfer speed.
  8. Utilizing the dd command:
  9. Run the dd command on one machine to write the data from /dev/zero into a file on a remote machine.
  10. Calculate the time it takes to write to the file and determine the transfer speed.

Regardless of the method used, it is important to take into consideration the impact of the network environment, such as network congestion and bandwidth limitations. It is recommended to conduct multiple tests and take the average to obtain a more accurate transmission speed.

bannerAds