How do you speed up ping and traceroute command responses under Unix or Linux operating systems?

The ping command line utility act as a computer network tool. It used to test whether a particular host is reachable across an IP network. The traceroute command also act as a computer network diagnostic tool for displaying the route (path) and measuring transit

Speedup ping command

-W NUMBER : Time to wait for a response, in seconds. The option affects only timeout in absense of any responses, otherwise ping waits for two RTTs.

-i SECONDS : Wait interval seconds between sending each packet. The default is to wait for one second between each packet normally, or not to wait in flood mode. Only super-user may set interval to values less 0.2 seconds.

Speedup traceroute command

-w seconds : Set the time (in seconds) to wait for a response to a probe (default 5.0 sec).

-q NUMBER : Sets the number of probe packets per hop. The default is 3.

The following example will wailt 3 seconds (instead of 5), only send out 1 query to each hop (ineader of 3):$ traceroute -n -w 3 -q 1 www.cyberciti.biz The -N option specifies the number of probe packets sent out simultaneously. Sending several probes concurrently can speed up traceroute considerably. The default value is 16:$ traceroute -n -w 3 -q 1 -N 32 www.cyberciti.biz Please Note that some routers and hosts can use ICMP rate throttling. In such a situation specifying too large number can lead to loss of some responses. You can also limit the maximum number of hops to 16 before giving up (instead of default 30) using the -m option:$ traceroute -n -w 3 -q 1 -N 32 -m 16 www.cyberciti.biz