Netcat measuring network speed

From Skytech
Revision as of 07:52, 19 June 2013 by Martin (talk | contribs) (Created page with "Category:Linux = Netcat measuring network speed = On server start <pre> ## Raw throughput, no disk nc -v -l 4242 > /dev/null ## Otherwise point to device you want to te...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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