Skip to content

Instantly share code, notes, and snippets.

@sbimikesmullin
Created March 3, 2018 23:42
Show Gist options
  • Save sbimikesmullin/00acb9463f5659d1a079284924e9cba6 to your computer and use it in GitHub Desktop.
Save sbimikesmullin/00acb9463f5659d1a079284924e9cba6 to your computer and use it in GitHub Desktop.
testing network performance
# install on ubuntu
apt-get install iperf
# The quality of a link can be tested as follows:
# - Latency (response time or RTT): can be measured with the Ping command.
# - Jitter (latency variation): can be measured with an Iperf UDP test.
# - Datagram loss: can be measured with an Iperf UDP test.
# udp test
iptables -I INPUT -p udp --dport 5001 -j ACCEPT # firewall exclusion
## server
iperf -s -u -i 1
## client
iperf -c hostname -u -f m -b 1100m -i 1
# tcp test
iptables -I INPUT -p tcp --dport 5001 -j ACCEPT # firewall exclusion
## server
iperf -s
## client
iperf -c hostname -f m -i 1
# icmp test + traceroute
mtr -r hostname
ping hostname
# see also:
# http://openmaniak.com/iperf.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment