![Forrest logo](/images/logo.png)
pathping:tldr:858c2
The command "pathping" is a network diagnostic tool that combines the functionality of both "path" and "ping" commands. It traces the route taken by packets sent from your computer to a specific destination (identified by ${hostname}), while at the same time measuring the quality of the path based on latency and packet loss.
Here's a breakdown of the parameters used in the command:
-
${hostname}: This should be replaced with the actual hostname or IP address of the destination you want to trace the route to. For example, if you want to analyze the path to google.com, you would replace ${hostname} with "google.com".
-
-p: This flag is used to specify the maximum number of hops (routers) that pathping will trace. It helps in limiting the output by defining the maximum number of hops to be displayed during the trace.
-
${time}: This should be replaced with the number of seconds you want pathping to continue tracing the route and monitoring the path quality. For instance, if you want pathping to run for 30 seconds, you would replace ${time} with "30".
Overall, this command will execute a trace route to ${hostname} using pathping, measuring the network performance between your computer and the destination for the specified duration (${time}). It will provide information about each hop (router) in the route, including latency (time taken for packets to reach each hop) and packet loss statistics.