HowTo: Speedup ping and traceroute Command Responses under Linux / Unix

https:/‮w/‬ww.lautturi.com
HowTo: Speedup ping and traceroute Command Responses under Linux / Unix

There are a few ways you can try to speed up the responses of the ping and traceroute commands under Linux and Unix:

  1. Use the -n option with ping to disable DNS resolution. This can significantly reduce the time it takes to get a response, especially if the DNS server is slow or unreachable.

  2. Use the -c option with ping to specify the number of times you want to send a ping request. By default, ping will send an infinite number of requests until you stop it. Limiting the number of requests can help reduce the overall time it takes to get a response.

  3. Use the -I option with traceroute to specify the interface you want to use. This can help reduce the time it takes to get a response, especially if you are using a slower interface.

  4. Use the -m option with traceroute to specify the maximum number of hops. By default, traceroute will keep sending requests until it reaches the destination or until it reaches the maximum number of hops (30). Limiting the number of hops can help reduce the overall time it takes to get a response.

  5. Use the -q option with traceroute to specify the number of probes to send per hop. By default, traceroute sends three probes per hop. Limiting the number of probes can help reduce the overall time it takes to get a response.

Keep in mind that these options may affect the accuracy of the responses you get from ping and traceroute, so use them with caution.

Created Time:2017-10-29 22:08:45  Author:lautturi