Microsoft DOS pathping command

Updated: 05/21/2018 by Computer Hope

About pathping

Similar to the tracert command, pathping provides users with the ability of locating spots that have network latency and network loss.

Availability

The pathping command is an external command that is available in the below Microsoft operating systems as pathping.exe.

Pathping syntax

Windows XP, Vista, 7, and 8 syntax

Usage:

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:

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

Windows 2000 syntax

Usage:

pathping [-n] [-h maximum_hops] [-g host-list] [-p period] [-q num_queries] [-w timeout] [-t] [-R] [-r] target_name

Options:

-n Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for target.
-g host-list Loose source route along host-list.
-p period Wait period milliseconds between pings.
-q num_queries Number of queries per hop.
-w timeout Wait timeout milliseconds for each reply.
-T Test connectivity to each hop with Layer-2 priority tags.
-R Test if each hop is RSVP aware.

Pathping examples

pathping computerhope.com

Tracing route to computerhope.com [2400:cb00:2048:1::6814:3876]
over a maximum of 30 hops:
  0  Hope-PC.hsd1.ut.comcast.net [2601:681:8380:1830:b5b4:6583:4660:1898]
  1  2601:681:8380:1830:2e95:69ff:fe9b:3739
  2  2001:558:4072:9::1
  3  po-104-rur01.sandy.ut.utah.comcast.net [2001:558:102:2060::1]
  4  2001:558:fe0b:a::a
  5  2400:cb00:2048:1::6814:3876

Computing statistics for 125 seconds...
            Source to Here   This Node/Link
Hop  RTT    Lost/Sent = Pct  Lost/Sent = Pct  Address
  0                                           Hope-PC [192.168.120.101]
                                0/ 100 =  0%   |
  1    1ms     0/ 100 =  0%     0/ 100 =  0%  2601:681:8380:1830:2e95:69ff:fe9b:3739
                                0/ 100 =  0%   |
  2  ---     100/ 100 =100%   100/ 100 =100%  2001:558:4072:9::1
                                0/ 100 =  0%   |
  3    7ms     0/ 100 =  0%     0/ 100 =  0%  sandy.ut.utah.comcast.net [2001:558:102:2060::1]
                                0/ 100 =  0%   |
  4    8ms     0/ 100 =  0%     0/ 100 =  0%  2001:558:fe0b:a::a
                                0/ 100 =  0%   |
  5    8ms     0/ 100 =  0%     0/ 100 =  0%  2400:cb00:2048:1::6814:3876

Trace complete.

In the above pathping example output, you can see from our location there are a total of five hops that take a total of 8ms. Each of the addresses listed are the addresses of each of the computers or routers for each of the hops.

Additional information

  • See our trace definition for further information and related links on this term.