Netcat measuring network speed

From Skytech
Jump to navigation Jump to search


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