my-server
← Wiki

PathPing

The <code>PathPing</code> command is a command-line network utility included in Windows NT operating systems since Windows 2000 that combines the functionality of ping with that of tracert. It is used to locate spots that have network latency and network loss.

Overview

The command provides details of the path between two hosts and ping-like statistics for each node in the path based on samples taken over a time period, depending on how many nodes are between the start and end host.

The advantages of <code>PathPing</code> over <code>ping</code> and <code>traceroute</code> are that each node is pinged as the result of a single command, and that the behavior of nodes is studied over an extended time period, rather than the default ping sample of four messages or default traceroute single route trace. The disadvantage is that it takes a total of 25 seconds per hop to show the ping statistics.

Syntax

The command-syntax is:

pathping [-g host-list] [-h maximum_hops] [-i address] [-n] [-p period] [-q num_queries] [-w timeout] [-P] [-R] [-T] [-4] [-6] target_name

Options:

  • <code>-g host-list</code> Loose source route along host-list.
  • <code>-h maximum_hops</code> Maximum number of hops to search for target.
  • <code>-i address</code> Use the specified source address.
  • <code>-n</code> Do not resolve addresses to hostnames.
  • <code>-p period</code> Wait period milliseconds between pings.
  • <code>-q num_queries</code> Number of queries per hop.
  • <code>-w timeout</code> Wait timeout milliseconds for each reply.
  • <code>-P</code> Test for RSVP PATH connectivity.
  • <code>-R</code> Test if each hop is RSVP aware.
  • <code>-T</code> Test connectivity to each hop with Layer-2 priority tags.
  • <code>-4</code> Force using IPv4.
  • <code>-6</code> Force using IPv6.

Samples

Default behavior:

Setting the number of queries per hop, in this case reducing it from 100 to 10 for faster completion:

Do not resolve hostnames (only IP addresses are given for the nodes):

See also

Notes and references

Further reading

External links