hrping-最强大的Ping工具

大家经常使用ping命令来测试网络的连通性,可是Windows下的ping命令功能有些情况下不能满足我们的要求:

第一:不能显示ping包的id或发包序号,无法手工统计丢包情况。

第二:不能显示ping包的发送时间,在持续ping的情况下无法确定发生网络拥挤的时段。

第三:只能精确到ms,ms以下无法测量。

第四:不能控制发包频率,不能生成大范围的ip网络流量。

第五:低版本Windows中的ping不支持路由跟踪功能。

当然这不能怪ping本身,谁让你有那么多需求呢?可是如果告诉你有的ping具有这些能力,你又作何感想呢?

 

ping的功能随Windows版本而不同,Windows XP以SP3版本的最为强大,支持众多选项。

C:/>ping

 

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
            [-r count] [-s count] [[-j host-list] | [-k host-list]]
            [-w timeout] target_name

Options:
    -t             Ping the specified host until stopped.
                   To see statistics and continue - type Control-Break;
                   To stop - type Control-C.
    -a             Resolve addresses to hostnames.
    -n count       Number of echo requests to send.
    -l size        Send buffer size.
    -f             Set Don't Fragment flag in packet.
    -i TTL         Time To Live.
    -v TOS         Type Of Service.
    -r count       Record route for count hops.
    -s count       Timestamp for count hops.
    -j host-list   Loose source route along host-list.
    -k host-list   Strict source route along host-list.
    -w timeout     Timeout in milliseconds to wait for each reply.


C:/>

 

 

hrping是一款比Windows ping命令功能更强大的网络连通性测试工具,集成了ping和tracert命令的功能,并且可以定制很多功能选项,除了ping的能力之外,还提供了对以上几项特殊需求的支持,是很好的很强大的测试工具。。

 

它的帮助信息如下。

C:/>hrping
This is hrPING v2.41 by cFos Software GmbH --
http://www.cfos.de

usage: hrPING [options] host

options:
   -lic           Show public license and warranty
   -t             Ping the specified host until stopped
   -n count       Number of echo requests to send (default 4)
   -E file        Stop pinging when <file> exists
   -l size        Send buffer size (ICMP payload size, default 64)
   -L size        Total IP datagram size (ICMP payload size + 28)
   -f             Set Don't Fragment bit in IP header
   -i TTL         Time To Live (default 255 for ping, 30 for traceroute)
   -v TOS         Type Of Service (default 0)
   -w timeout     Timeout in millisecs to wait for each reply (default 2000)
   -s time        Interval in millisecs between packets (default 500 ms)
   -r [count]     Be a traceroute (do <count> pings each hop, default 3)
   -a [hop]       Resolve addresses to names for traceroute (start at <hop>)
   -o             Don't do overlapped send/receive (& mention each lost packet)
   -tsc           Force RDTSC usage
   -W             "warm up" with one uncounted echo request at beginning
   -F file        Log output into <file> as well
   -T             Print timestamp in front of each line
   -I id          Set ICMP id field to <id>
   -q             Be quiet (-qr no replies, -qe no errors, -qt no timeouts)
   -A             Abort after the first echo reply (-AA => or error)
   -H             use IP_HDR_INCL socket option (experimental)
   -S             print a summary on each receive

Thank you for using hrPING!  hrPING is Freeware, share it with anybody.
Check out
www.cfos.de for our Traffic Shaping driver cFosSpeed, improved IPv6
Connectivity with cFos IPv6 Link or cFos Broadband Connect for faster PPPoE!

 

看一下输出,基本的输出信息如下。

 

例一:显示到某ip/host的路由
C:/>hrping -r www.yahoo.com.cn
This is hrPING v2.41 by cFos Software GmbH -- http://www.cfos.de

Using source IP address 218.11.46.61 to send packets
Tracing route to www.yahoo.com.cn [202.165.102.205]
with 64 bytes data (92 bytes IP) over a maximum of 30 hops:

  1   15.945  15.218  15.460   [xxx.xxx.xx.xx]
  2   15.834  15.338  15.285   [xx1.xx2.xx0.x8]
  3   15.503  15.830  15.412   [221.192.186.38]
  4   15.281  15.793  15.492   [61.182.174.217]
  5   93.803  94.159  93.106   [202.99.160.49]
  6   30.503  31.528  31.094   [219.158.7.9]
  7   62.198  62.420  62.146   [123.126.0.198]
  8   31.553  30.748  31.261   [61.148.152.138]
  9   46.479  46.402  46.848   [61.148.152.158]
 10   31.326  30.780  31.164   [61.135.143.161]
 11   31.409  62.187  31.095   [61.135.148.162]
 12   30.931  31.264  30.981   [203.209.238.145]
 13   46.514  31.864  30.389   [202.165.102.205]

 

例二:在ping结果中显示发包时间。

C:/>hrping -T www.yahoo.com.cn
This is hrPING v2.41 by cFos Software GmbH -- http://www.cfos.de

Using source IP address 218.11.46.61 to send packets
Pinging www.yahoo.com.cn [202.165.102.205]
with 64 bytes data (92 bytes IP):

2009-11-19 20:48:05.500: Reply from 202.165.102.205: seq=0000 time=30.579ms TTL=
52 ID=03ca
2009-11-19 20:48:06.000: Reply from 202.165.102.205: seq=0001 time=30.492ms TTL=
52 ID=04ba
2009-11-19 20:48:06.500: Reply from 202.165.102.205: seq=0002 time=30.719ms TTL=
52 ID=056b
2009-11-19 20:48:07.000: Reply from 202.165.102.205: seq=0003 time=30.686ms TTL=
52 ID=0655

Statistics for www.yahoo.com.cn:
    Packets: sent=4, rcvd=4, error=0, lost=0 (0% loss) in 1.530679 sec
    RTTs of replies in ms: min/avg/max: 30.492 / 30.619 / 30.719

C:/>

 

 

具体哪些有用还得看自己的需要。

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值