How To Test Speed Over The Network Between Two Systems
Purpose
This document provides information on how to test the network speed between two systems.
Using netcat
(or nc
) to Listen on a Network Port
Use netcat
(or nc) to listen on a particular network port on the first system running Linux. Type the following command into a terminal and press Enter.
$ nc -l -k -p 12345
This tells the system to listen for network traffic on port 12345 and to keep listening.
Now that the first system is set up to listen on port 12345, on the second system type the command below, changing the IP address, e.g. x.x.x.x to that which is assigned to the first system.
$ dd if=/dev/zero bs=16000 count=6250 | nc -v x.x.x.x 12345
The first part of the command tells the machine to copy 100MB of data from /dev/zero in 16 kilobyte blocks. The part after the pipe tells it to send that to the first system over port 12345. The results displayed will indicate the speed of the network, measured in megabytes per second.
Once you are done testing, go to the terminal on Desktop and use CTRL-C to stop netcat
on the first system.
Copyright
© 2024 Outpost24® All rights reserved. This document may only be redistributed unedited and unaltered. This document may be cited and referenced only if clearly crediting Outpost24® and this document as the source. Any other reproduction and redistribution in print or electronically is strictly prohibited without explicit permission.
Trademark
Outpost24® and OUTSCAN™ are trademarks of Outpost24® and its affiliated companies. All other brand names, product names or trademarks belong to their respective owners.