Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

October 23, 2000 12:00 AM

PathPing: Traceroute on Steroids

Windows IT Pro
InstantDoc ID #15736
Rating: (1)
Win2K's handy utility for diagnosing network-routing problems

Let me tell you about one of Windows 2000's greatest undiscovered gems—PathPing. This utility is a helpful RAS tool as well as a useful general diagnostic tool that network administrators and users will love. But to truly appreciate PathPing's benefits, you must be familiar with its predecessor, Traceroute.

Traceroute (tracert.exe) is one of my favorite TCP/IP diagnostic utilities. This tool shows you the paths that packets take between two hosts on an IP network (including each intervening router) and any delays between each router hop. I use this tool regularly both on the road through RAS and from my office LAN. On several occasions, I've used Traceroute to identify a routing loop (i.e., the TCP/IP equivalent of a game of packet "hot potato" in which two routers pass packets back and forth in an endless loop). I often use Traceroute with the Ping diagnostic utility. Ping bounces Internet Control Message Protocol (ICMP) packets off a remote host to determine whether that host is available and to measure how much time packets need to make the trip. Although Traceroute and Ping are useful basic diagnostic utilities, they don't always provide all the information you need to diagnose a problem.

To fill the diagnostic gaps, Win2K introduces PathPing, which is a souped-up version of Traceroute. You can use PathPing to determine which router or router hops are causing delays or other problems on a connection between two IP hosts. At each router hop on the connection, PathPing uses a longer sampling interval than Traceroute uses. In addition, PathPing provides information about packet loss that occurs during ping tests on each hop on the route. This information reveals where the problem lies on the connection or where most of the latency is occurring—invaluable information.

PathPing has several configuration options, including time between successive pings, number of ping queries per router hop, and time to wait for a response from each host or router. Table 1 outlines PathPing's case-sensitive parameters, which you use in the following format:

pathping [-n] [-h <maximum_hops>] [-g <host-list>] [-p <period>] [-q <num_queries> [-w <timeout>] [-T] [-R] <target_name>

By default, PathPing pings each router 100 times, with 1 ping every 0.25 seconds. Therefore, a default query will take 25 seconds per router hop to complete. (The command calculates the packets' final path and number of intervening hops before the ping tests.) You can easily modify the total query time by adjusting parameters such as ­p or -q. I recommend that you use ­q to reduce the number of pings to 25. This setting is more than adequate to provide the information you need to diagnose a problem. After you use PathPing once, you might never go back to Traceroute.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    May 21, 2005

    Thankyou your article was very helpful to me, it has helped me learn something new today =).

  • Sanjiv Asthana
    9 years ago
    Dec 20, 2003

    A good article. Would have been a good idea to include a PathPing sample output and explain the columns therin. I was looking for the explanation of RTT on each hop and how it is different from the RTT on a normal Ping command. Appreciate someone giving a feedback on this.

  • Marcus Reese
    11 years ago
    May 23, 2001

    A great tool that allow SYS ADM's and ENG's to have a general idea of potential network latency problems or failures. Thus allowing them to communicate affectively to their respective Network team about IP routing related issues (once a baseline is established).

  • ­Eric N. Moyer
    12 years ago
    Dec 13, 2000



    I read Sean Daily's Remote Possibilities: "PathPing: Traceroute on Steroids" (November 2000). From what I read on Microsoft TechNet, I should be able to find PathPing in the Microsoft Windows 2000 Resource Kit. When I install the resource kit on a Windows NT 4.0 machine (we run only NT 4.0), I don't find PathPing anywhere. Where can I get this program?

  • Sean Daily
    12 years ago
    Dec 13, 2000



    PathPing isn't part of the resource kit or the support tools; it's included with the Win2K OS. On any Win2K system, you'll find the program in the \\%systemroot%\\system32 folder.

    --Sean Daily

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.