/pong

Summarized ping

Primary LanguageGoApache License 2.0Apache-2.0

Pong

Pong is a command line tool which summarizes the connectivity of your internet connection.

The well known ping utility ends up priting too many lines if kept running long. The format of ping output also makes it hard to view connectivity during a particular window of time. Pong summarizes the connectivity of the network as shown in this picture:

pong output

Pong runs tests in intervals of 5 second each, each test sending 5 packets. This is to ensure that output is ready to be viewed relatively quickly.

Pong maintains a circular buffer of the last 30 tests, to show the connectivity during a 5 minute window.

I created this to test my Wifi

Usage


Install pong

Linux

$> curl -s https://api.github.com/repos/wlan0/pong/releases/latest \
	| jq -r ".assets[0].browser_download_url" \
	| xargs wget -qO- \
	| tar -xzf - releases/pong-linux-amd64 --strip-components=1; echo "pong installed to /usr/local/bin/pong"; sudo ./pong-linux-amd64 -i

OSX

$> curl -s https://api.github.com/repos/wlan0/pong/releases/latest \
	| jq -r ".assets[0].browser_download_url" \ 
	| xargs wget -qO- \
	| tar -xzf - releases/pong-darwin-amd64 --strip-components=1; echo "pong installed to /usr/local/bin/pong"; sudo ./pong-darwin-amd64 -i