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.
| Phase | Method | Output | Typical duration |
|---|---|---|---|
| Route discovery | Echo requests with rising TTL | Ordered list of hop addresses | A few seconds |
| Statistics computation | Repeated echo requests to each hop | Round-trip time and loss per node and link | About 25 s per hop by default |
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.
| Option | Default | What it controls |
|---|---|---|
| -n | Names resolved | Skips reverse DNS lookups and speeds up the run |
| -h maximum_hops | 30 | Largest number of hops searched |
| -g host-list | Not used | Loose source routing through listed hosts |
| -p period | 250 ms | Wait time between consecutive pings |
| -q num_queries | 100 | Number of queries sent to each hop |
| -w timeout | 3000 ms | Wait time for each reply |
| -i address | Automatic | Source address used for the probes |
| -4 and -6 | Automatic | Forces IPv4 or IPv6 |
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 output | Meaning | Action |
|---|---|---|
| Loss at one router, none at later hops | ICMP rate limiting on that router | Usually ignore |
| Loss on a link row that persists to the destination | Real loss on that link | Report to the owner of that segment |
| Loss rises steadily toward the destination | Congestion or several faulty segments | Test at different times of day |
| Asterisks for a hop with later hops responding | Router does not answer ICMP | Not a fault by itself |
| High RTT at one hop only | Slow reply generation, not slow forwarding | Compare with later hops |
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.
| Tool | Shows route | Measures per-hop loss | Typical run time |
|---|---|---|---|
| ping | No | No, end to end only | Seconds |
| tracert | Yes | No, three probes per hop | Up to a minute |
| pathping | Yes | Yes, 100 probes per hop | Several minutes |
| Test-NetConnection -TraceRoute | Yes | No | Seconds |
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
-Tand-Rswitches 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.