inhies / cjdcmd

cjdcmd is a command line tool for cjdns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ping command improvements

Seemone opened this issue · comments

Normal ping command sends one packet each second (by default). cjdcmd ping command sends a new packet as soon as it receives a response. This is not effective for 2 reasons: it on broadband links it sends a lot of packets, much faster than a human can notice their latency and is more vulnerable to lost packets, not giving a meaningful picture of packet loss en route towards that target.

Proposed solution: send one packet each second, regardless of when its response comes in and print a summary a-la normal ping after ctrl-c is issued. Optional parameter to increase delay.

Great idea, this will get implemented soon. I also have more graceful error handling in the even of a packet error planned for the same time. Thank you.

Also, it shouldn't quit if the target can't be reached anymore.

Agreed, that's part of the 'better error handling' :)