免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7812 | 回复: 4
打印 上一主题 下一主题

[其他] ping 延迟 检测命令是什么? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-05-06 18:20 |只看该作者 |倒序浏览
windows 和 linux 怎么设定返回时间的命令?
如 时间=204ms



正在 Ping www.google.com [74.125.128.103] 具有 32 字节的数据:
来自 74.125.128.103 的回复: 字节=32 时间=204ms TTL=33
来自 74.125.128.103 的回复: 字节=32 时间=207ms TTL=33
来自 74.125.128.103 的回复: 字节=32 时间=205ms TTL=33
来自 74.125.128.103 的回复: 字节=32 时间=205ms TTL=33

论坛徽章:
93
2015年辞旧岁徽章
日期:2019-10-10 10:51:15CU大牛徽章
日期:2014-02-21 14:21:56CU十二周年纪念徽章
日期:2020-10-15 16:55:55CU大牛徽章
日期:2014-02-21 14:22:07羊年新春福章
日期:2019-10-10 10:51:39CU大牛徽章
日期:2019-10-10 10:55:38季节之章:春
日期:2020-10-15 16:57:40ChinaUnix元老
日期:2019-10-10 10:54:42季节之章:冬
日期:2019-10-10 10:57:17CU大牛徽章
日期:2014-02-21 14:22:52CU大牛徽章
日期:2014-03-13 10:40:30CU大牛徽章
日期:2014-02-21 14:23:15
2 [报告]
发表于 2014-05-07 13:38 |只看该作者
回复 1# 梦落花香Z

-w 设置超时时间,不是你要的吗?
  1. Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
  2.             [-r count] [-s count] [[-j host-list] | [-k host-list]]
  3.             [-w timeout] target_name

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

论坛徽章:
0
3 [报告]
发表于 2014-05-08 14:11 |只看该作者
不是,-w 是ping 一个IP用时多长时间,比如我ping www.baidu.com -w 7 会ping7次(ping 默认1s 一次发包)。
我想要的是我到 www.baidu.com 的延迟时间。回复 2# seesea2517


   

论坛徽章:
93
2015年辞旧岁徽章
日期:2019-10-10 10:51:15CU大牛徽章
日期:2014-02-21 14:21:56CU十二周年纪念徽章
日期:2020-10-15 16:55:55CU大牛徽章
日期:2014-02-21 14:22:07羊年新春福章
日期:2019-10-10 10:51:39CU大牛徽章
日期:2019-10-10 10:55:38季节之章:春
日期:2020-10-15 16:57:40ChinaUnix元老
日期:2019-10-10 10:54:42季节之章:冬
日期:2019-10-10 10:57:17CU大牛徽章
日期:2014-02-21 14:22:52CU大牛徽章
日期:2014-03-13 10:40:30CU大牛徽章
日期:2014-02-21 14:23:15
4 [报告]
发表于 2014-05-08 14:33 |只看该作者
回复 3# 梦落花香Z


    哦,不是很懂……

论坛徽章:
0
5 [报告]
发表于 2014-05-10 16:26 |只看该作者
回复 3# 梦落花香Z
  1. PING 10.27.20.164 (10.27.20.164) 56(84) bytes of data.
  2. 64 bytes from 10.27.20.164: icmp_seq=1 ttl=60 time=0.541 ms
  3. 64 bytes from 10.27.20.164: icmp_seq=2 ttl=60 time=0.461 ms
  4. 64 bytes from 10.27.20.164: icmp_seq=3 ttl=60 time=0.525 ms
  5. 64 bytes from 10.27.20.164: icmp_seq=4 ttl=60 time=0.583 ms
  6. 64 bytes from 10.27.20.164: icmp_seq=5 ttl=60 time=0.508 ms
  7. 64 bytes from 10.27.20.164: icmp_seq=6 ttl=60 time=0.483 ms
  8. 64 bytes from 10.27.20.164: icmp_seq=7 ttl=60 time=0.484 ms
  9. 64 bytes from 10.27.20.164: icmp_seq=8 ttl=60 time=0.539 ms
  10. 64 bytes from 10.27.20.164: icmp_seq=9 ttl=60 time=0.587 ms
  11. 64 bytes from 10.27.20.164: icmp_seq=10 ttl=60 time=0.521 ms

  12. --- 10.27.20.164 ping statistics ---
  13. 10 packets transmitted, 10 received, 0% packet loss, time 9000ms
  14. rtt min/avg/max/mdev = 0.461/0.523/0.587/0.041 ms
复制代码
看最后一行,rtt min/avg/max/mdev = 0.461/0.523/0.587/0.041 ms 是你需要的?
你的问题描述的太不清楚了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP