Skip to content

a multi-targets ping tool, which supports 10,000 packets/second, accurate latency

License

Notifications You must be signed in to change notification settings

smallnest/mping

Repository files navigation

mping

GitHub GitHub Action Go Report Card GoDoc

a multi-targets ping tool, which supports 10,000 packets/second

一个高频ping工具,支持多个目标。 正常的ping一般用来做探测工具,mping还可以用来做压测工具。 更精准的时延。 rust版本: smallnest/mping-rs

Usage

compile

go build .

options usage.

> $$ mping -h     

Usage: mping [options] <host list>

  -c int
        count, 0 means non-setting
  -d int
        delay seconds (default 3)
  -l int
        packet size (default 64)
  -r int
        rate, 100 means 100 packets per second (default 100)
  -t duration
        timeout (default 1s)
  -z int
        tos, 0 means non-setting
  --bitflip bool
        check whether there is bit flipped

example

sudo ./mping -r 5 8.8.8.8
sudo ./mping -r 100 8.8.8.8/30,8.8.4.4,github.com
sudo ./mping -r 100 github.com,bing.com

docker:

sudo docker run --rm -it smallnest/mping 8.8.8.8