Skip to content

Instantly share code, notes, and snippets.

@cronnelly
Created January 12, 2014 09:39
Show Gist options
  • Save cronnelly/8382688 to your computer and use it in GitHub Desktop.
Save cronnelly/8382688 to your computer and use it in GitHub Desktop.
A crude test for UDP packet loss, with bash and netcat
# On server:
COUNT=0; while true; do nc -ulw0 1234 > /dev/null; echo $((++COUNT)); done
# On client:
for i in $(seq 6000); do echo "hello" >/dev/udp/<server>/1234; sleep 0.1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment