a multi-targets ping tool, which supports 10,000 packets/second
一个高频ping工具,支持多个目标。 正常的ping一般用来做探测工具,mping还可以用来做压测工具。 更精准的时延。 rust版本: smallnest/mping-rs
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