Last active
October 4, 2016 13:48
-
-
Save phpdave/be2ec723acb5af9b258282a310e48925 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Server | |
iperf -s -i 1 | |
#client | |
iperf -c <server_ip> -i 1 | |
#other options | |
iperf --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Server (note sometimes nc is netcat instead) | |
nc -v -v -l -n -p 2222 >/dev/null | |
#Client | |
time yes|nc -v -v -n 192.168.0.8 2222 >/dev/null | |
#Stop by using ctrl+c | |
sent 87478392, rcvd 0 | |
real 0m9.993s | |
#Take the bytes sent times by 8 (conversion bytes->bits) and divided by time elapsed to get Mb/s (Megabits per second) | |
#70Mb/s (=87478392*8/9.993) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment