pathping

On this page 7

pathping is a Windows command-line utility that combines route discovery in the style of tracert with extended per-hop measurement in the style of ping, so that it reports latency and packet loss for every router between the local computer and a destination. Among the tools of Windows networking, it is the built-in choice when a connection works but is slow or unreliable and the question is where along the path the trouble begins.

Unlike a quick traceroute, pathping spends minutes sampling each hop, which turns a single snapshot into statistically useful loss figures for both the routers and the links between them.

How pathping measures a network path

pathping runs in two phases. In the first phase it discovers the route by sending ICMP Echo Request packets with increasing Time to Live (TTL) values; each router that decrements the TTL to zero returns an ICMP Time Exceeded message, revealing its address. This phase prints the hop list immediately, much like tracert.

In the second phase it sends a series of echo requests to every discovered hop, by default 100 queries per hop at 250 ms intervals. With these defaults, the statistics phase lasts about 25 seconds per hop, so a 12-hop path takes roughly five minutes. When sampling ends, pathping computes round-trip time and loss for each node and for each link.

The table below summarizes how the two phases differ.

PhaseMethodOutputTypical duration
Route discoveryEcho requests with rising TTLOrdered list of hop addressesA few seconds
Statistics computationRepeated echo requests to each hopRound-trip time and loss per node and linkAbout 25 s per hop by default
The two phases of a pathping run

Command options and their effect

The syntax is pathping [options] target, where the target is a host name or an IPv4 or IPv6 address. The options control name resolution, hop limits, sampling rate and timeouts, and choosing them well shortens the run without weakening the statistics.

OptionDefaultWhat it controls
-nNames resolvedSkips reverse DNS lookups and speeds up the run
-h maximum_hops30Largest number of hops searched
-g host-listNot usedLoose source routing through listed hosts
-p period250 msWait time between consecutive pings
-q num_queries100Number of queries sent to each hop
-w timeout3000 msWait time for each reply
-i addressAutomaticSource address used for the probes
-4 and -6AutomaticForces IPv4 or IPv6
Main pathping options

Reducing -q shortens the test but lowers statistical confidence: 100 samples can reveal loss of about one percent, while 20 samples can only show losses in steps of five percent. Using -n is advisable on networks where reverse DNS is slow or unavailable.

Reading the statistics table

The final report alternates between node rows, which show a router address, and link rows, marked with a vertical bar, which describe the path between two routers. Three numeric areas matter: the round-trip time (RTT), the Source to Here loss and the This Node/Link loss, each written as lost, sent and percentage.

The decisive skill is separating genuine forwarding loss from ICMP rate limiting. Many routers handle packets addressed to themselves on a slow control plane and deliberately drop part of those replies, while traffic passing through them is forwarded normally in hardware.

Pattern in outputMeaningAction
Loss at one router, none at later hopsICMP rate limiting on that routerUsually ignore
Loss on a link row that persists to the destinationReal loss on that linkReport to the owner of that segment
Loss rises steadily toward the destinationCongestion or several faulty segmentsTest at different times of day
Asterisks for a hop with later hops respondingRouter does not answer ICMPNot a fault by itself
High RTT at one hop onlySlow reply generation, not slow forwardingCompare with later hops
Interpreting typical loss patterns

The rule of thumb is simple: loss that does not continue to later hops is not loss that affects user traffic. Only loss that appears at a hop and is carried through to the destination indicates a real problem.

pathping compared with ping and tracert

pathping sits between two simpler tools. ping tests only the end-to-end path, and tracert shows the route with three samples per hop, which is too few to measure loss. pathping adds sustained sampling at the cost of time.

ToolShows routeMeasures per-hop lossTypical run time
pingNoNo, end to end onlySeconds
tracertYesNo, three probes per hopUp to a minute
pathpingYesYes, 100 probes per hopSeveral minutes
Test-NetConnection -TraceRouteYesNoSeconds
Comparison of Windows path diagnostic tools

In practice administrators run ping first to confirm a problem, tracert to see the route, and pathping when they need evidence of where loss occurs. Graphical tools such as Windows Network Diagnostics address local configuration rather than path quality.

Limitations and common mistakes

pathping relies entirely on ICMP, so its results describe how routers treat ICMP, which may differ from how they treat TCP or UDP application traffic. Firewalls that block ICMP produce gaps or a path that appears to stop early, even when applications work.

  • Asymmetric routing: the return path may differ, so loss can lie on a route that pathping never lists.
  • Load balancing: equal-cost paths can change hop addresses between probes.
  • Wi-Fi first hop: loss at hop one often comes from wireless interference, not from the provider.
  • Obsolete options: the -T and -R switches for priority tags and RSVP are no longer supported on current Windows versions.
  • Short runs: cutting queries too low makes small but real loss invisible.

In simple terms

Data travels across the internet through a chain of routers, like a parcel moving through several sorting centers. pathping first lists every sorting center on the way, then checks each one many times to see how often parcels go missing and how long each stop takes.

The result shows where along the route a problem starts. If one center seems to lose parcels but everything after it arrives fine, that center is simply busy answering questions, not losing real deliveries.

A practical example

A help desk technician at a branch office receives complaints that video calls to the head office freeze every few minutes. A ping test shows about 4 percent loss to the head office server, but it cannot show where the loss happens. The technician runs pathping -n -q 100 10.20.0.15 from a wired workstation and waits about four minutes for the nine-hop statistics.

The report shows 30 percent loss at hop 5, an internet provider router, but zero loss at hops 6 to 9, which identifies rate limiting rather than a fault. On the link row between hops 3 and 4, however, loss of 4 percent appears and continues to the destination. Hop 3 is the branch edge router and hop 4 the provider access router, so the technician sends the output to the provider, who finds a faulty fiber patch on the access line. After the repair, a repeat run shows no persistent loss.