Netcat measuring network speed

From Skytech
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Netcat measuring network speed

On server start

## Raw throughput, no disk
nc -v -l 4242 > /dev/null

## Otherwise point to device you want to test
nc -v -l 4242 > /mnt/disk-to-test/

On client do:

dd if=/dev/zero bs=1024k count=10000 | nc -v ${SERVER} 4242

And you'll see something like this on the client:

  • 10485760000 bytes (10 GB) copied, 27.722 s, 378 MB/s