Używanie narzędzia netcat
Here's how I did the test:
Listening on machine A: nc -v -v -l -p 2222 >/dev/null
Sending from machine B: time yes|nc -v -v -n 192.168.1.2 2222 >/dev/null
waiting a bit, then hit Ctrl+C I got:
sent 630054912, rcvd 0
real 0m12.713s
user 0m12.053s
sys 0m2.660s
That's in bytes. So multiplying by 8 and dividing the time and by 1048576 (1024*1024) I get: 378.1 Mbit/s