在 Windows 上找出丢包的那一跳(pathping)

被遗忘的 Windows 神器:一条命令同时完成 traceroute 和逐跳丢包统计,Windows 2000 起就自带。

Windows网络延迟故障排查低风险
运行 pathping example.com 并等待第二阶段输出,它会报告每一跳路由器的丢包百分比。

01命令

命令
$ pathping -q 10 -p 100 example.com

02作用说明

pathping 先像 tracert 一样跟踪路由,然后对每一跳发送约 100 个数据包(可用 -q 调整),统计出丢包表,并区分丢包发生在该跳本身还是其后链路上——看最后一列。这正是 mtr 等第三方工具做的事,但 Windows 原生自带。默认运行约需 5 分钟,可降低每跳查询数(-q 10)和发包间隔(-p 100)来加快排查。

03风险

风险低风险
!注意: 中间跳显示的丢包可能只是路由器对 ICMP 做了限速,并非真实丢包;判断时应更信任最后一跳的端到端丢包数据。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • pathping | Microsoft Learn
    Microsoft · vendor-doc · 2026-09-17
    依据: Microsoft documents pathping as sending echo requests to each router on the path over a time period and computing the percentage of packets lost at each hop, with -q for queries per hop and -p for the period.
  • PATHPING - Windows CMD
    SS64 · technical · 2026-09-17
    依据: SS64 describes pathping as combining ping and tracert and lists the options -q, -p, -w and the default 100-packet test per hop.

最后验证: 2026-09-17 · 分类: 网络

06相关方案