Public
Snippet $252 authored by Kirill Smelkov

linklat.sh (measure raw link latency to peer)

linklat.sh
#!/bin/bash
# measure raw link latency to peer
# Usage: linklat.sh <peer>

peer=$1
test -z "$peer" && echo "Usage: linklat.sh <peer>" && exit 1

sizev="56 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1472"
for size in $sizev; do
        echo -e "\n# ping . ⇄ $peer     (ping ${size}B)"
        ping -i 0 -w 1 -s $size -q $peer
done