[问题]怎样通过ping命令看速度?[已解决]

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
applnk
帖子: 1485
注册时间: 2007-02-13 15:24
来自: 地球

[问题]怎样通过ping命令看速度?[已解决]

#1

帖子 applnk » 2007-02-13 15:32

代码: 全选

applek@apple-desktop:~$ ping 202.216.28.18
PING 202.216.28.18 (202.216.28.18) 56(84) bytes of data.
64 bytes from 202.216.28.18: icmp_seq=1 ttl=48 time=866 ms
64 bytes from 202.216.28.18: icmp_seq=2 ttl=48 time=867 ms
64 bytes from 202.216.28.18: icmp_seq=3 ttl=48 time=858 ms
64 bytes from 202.216.28.18: icmp_seq=4 ttl=48 time=870 ms
64 bytes from 202.216.28.18: icmp_seq=6 ttl=48 time=864 ms
64 bytes from 202.216.28.18: icmp_seq=7 ttl=48 time=867 ms
64 bytes from 202.216.28.18: icmp_seq=10 ttl=48 time=877 ms
64 bytes from 202.216.28.18: icmp_seq=11 ttl=48 time=876 ms
64 bytes from 202.216.28.18: icmp_seq=12 ttl=48 time=865 ms

--- 202.216.28.18 ping statistics ---
13 packets transmitted, 9 received, 30% packet loss, time 12025ms
rtt min/avg/max/mdev = 858.023/868.420/877.715/5.776 ms
apple@apple-desktop:~$  

代码: 全选

apple@apple-desktop:~$  ping 202.103.24.68
PING 202.103.24.68 (202.103.24.68) 56(84) bytes of data.
64 bytes from 202.103.24.68: icmp_seq=1 ttl=251 time=21.1 ms
64 bytes from 202.103.24.68: icmp_seq=2 ttl=251 time=21.4 ms
64 bytes from 202.103.24.68: icmp_seq=3 ttl=251 time=20.9 ms
64 bytes from 202.103.24.68: icmp_seq=4 ttl=251 time=23.3 ms
64 bytes from 202.103.24.68: icmp_seq=5 ttl=251 time=21.0 ms
64 bytes from 202.103.24.68: icmp_seq=6 ttl=251 time=20.7 ms
64 bytes from 202.103.24.68: icmp_seq=7 ttl=251 time=20.8 ms
64 bytes from 202.103.24.68: icmp_seq=8 ttl=251 time=20.6 ms
64 bytes from 202.103.24.68: icmp_seq=9 ttl=251 time=20.6 ms
64 bytes from 202.103.24.68: icmp_seq=10 ttl=251 time=20.5 ms

--- 202.103.24.68 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9034ms
rtt min/avg/max/mdev = 20.509/21.138/23.396/0.807 ms
apple@apple-desktop:~$     

代码: 全选

apple@apple-desktop:~$  ping 202.96.209.5
PING 202.96.209.5 (202.96.209.5) 56(84) bytes of data.
64 bytes from 202.96.209.5: icmp_seq=1 ttl=246 time=34.6 ms
64 bytes from 202.96.209.5: icmp_seq=2 ttl=246 time=34.7 ms
64 bytes from 202.96.209.5: icmp_seq=3 ttl=246 time=34.6 ms
64 bytes from 202.96.209.5: icmp_seq=4 ttl=246 time=37.7 ms
64 bytes from 202.96.209.5: icmp_seq=5 ttl=246 time=34.5 ms
64 bytes from 202.96.209.5: icmp_seq=6 ttl=246 time=35.0 ms
64 bytes from 202.96.209.5: icmp_seq=7 ttl=246 time=34.5 ms
64 bytes from 202.96.209.5: icmp_seq=8 ttl=246 time=35.0 ms
64 bytes from 202.96.209.5: icmp_seq=9 ttl=246 time=35.0 ms
64 bytes from 202.96.209.5: icmp_seq=10 ttl=246 time=34.4 ms

--- 202.96.209.5 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9044ms
rtt min/avg/max/mdev = 34.467/35.048/37.718/0.934 ms
apple@apple-desktop:~$  
怎样通过ping命令看速度?上面的结果哪个快?是看哪里得出的结论?
上次由 applnk 在 2007-04-05 5:02,总共编辑 1 次。
eric_wong
帖子: 100
注册时间: 2007-01-16 20:50
来自: 广西南宁

#2

帖子 eric_wong » 2007-02-13 15:54

time值越小越快
applnk
帖子: 1485
注册时间: 2007-02-13 15:24
来自: 地球

#3

帖子 applnk » 2007-02-13 16:09

apple@apple-desktop:~$ ping 202.96.209.5
PING 202.96.209.5 (202.96.209.5) 56(84) bytes of data.
64 bytes from 202.96.209.5: icmp_seq=1 ttl=246 time=34.6 ms
64 bytes from 202.96.209.5: icmp_seq=2 ttl=246 time=34.7 ms
64 bytes from 202.96.209.5: icmp_seq=3 ttl=246 time=34.6 ms
64 bytes from 202.96.209.5: icmp_seq=4 ttl=246 time=37.7 ms
64 bytes from 202.96.209.5: icmp_seq=5 ttl=246 time=34.5 ms

--- 202.96.209.5 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9044ms
rtt min/avg/max/mdev = 34.467/35.048/37.718/0.934 ms
apple@apple-desktop:~$
是哪一个 time?最好说一说这两个 time 有什么区别。
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#4

帖子 millenniumdark » 2007-02-13 19:49

最後一個.
applnk
帖子: 1485
注册时间: 2007-02-13 15:24
来自: 地球

#5

帖子 applnk » 2007-02-15 8:16

能说说这几个 time 分别表示什么吗?最后一个 time 是不是前面 time 的和?
但如果是和我一楼中的 例2例3 前面的 time 一个全是 20,一个全是30,但例2例3 最后的 time 是time 9034mstime 9044ms,它们相差无几。
chinese_ys
帖子: 116
注册时间: 2006-11-03 8:49
来自: Halifax

Re: [问题]怎样通过ping命令看速度?

#6

帖子 chinese_ys » 2007-02-15 12:41

applnk 写了:

代码: 全选

applek@apple-desktop:~$ ping 202.216.28.18
PING 202.216.28.18 (202.216.28.18) 56(84) bytes of data.
64 bytes from 202.216.28.18: icmp_seq=1 ttl=48 time=866 ms
64 bytes from 202.216.28.18: icmp_seq=2 ttl=48 time=867 ms
64 bytes from 202.216.28.18: icmp_seq=3 ttl=48 time=858 ms
64 bytes from 202.216.28.18: icmp_seq=4 ttl=48 time=870 ms
64 bytes from 202.216.28.18: icmp_seq=6 ttl=48 time=864 ms
64 bytes from 202.216.28.18: icmp_seq=7 ttl=48 time=867 ms
64 bytes from 202.216.28.18: icmp_seq=10 ttl=48 time=877 ms
64 bytes from 202.216.28.18: icmp_seq=11 ttl=48 time=876 ms
64 bytes from 202.216.28.18: icmp_seq=12 ttl=48 time=865 ms

--- 202.216.28.18 ping statistics ---
13 packets transmitted, 9 received, 30% packet loss, time 12025ms
[u]rtt min/avg/max/mdev = 858.023/868.420/877.715/5.776 ms[/u]
apple@apple-desktop:~$  

代码: 全选

apple@apple-desktop:~$  ping 202.103.24.68
PING 202.103.24.68 (202.103.24.68) 56(84) bytes of data.
64 bytes from 202.103.24.68: icmp_seq=1 ttl=251 time=21.1 ms
64 bytes from 202.103.24.68: icmp_seq=2 ttl=251 time=21.4 ms
64 bytes from 202.103.24.68: icmp_seq=3 ttl=251 time=20.9 ms
64 bytes from 202.103.24.68: icmp_seq=4 ttl=251 time=23.3 ms
64 bytes from 202.103.24.68: icmp_seq=5 ttl=251 time=21.0 ms
64 bytes from 202.103.24.68: icmp_seq=6 ttl=251 time=20.7 ms
64 bytes from 202.103.24.68: icmp_seq=7 ttl=251 time=20.8 ms
64 bytes from 202.103.24.68: icmp_seq=8 ttl=251 time=20.6 ms
64 bytes from 202.103.24.68: icmp_seq=9 ttl=251 time=20.6 ms
64 bytes from 202.103.24.68: icmp_seq=10 ttl=251 time=20.5 ms

--- 202.103.24.68 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9034ms
[u]rtt min/avg/max/mdev = 20.509/21.138/23.396/0.807 ms[/u]
apple@apple-desktop:~$     

代码: 全选

apple@apple-desktop:~$  ping 202.96.209.5
PING 202.96.209.5 (202.96.209.5) 56(84) bytes of data.
64 bytes from 202.96.209.5: icmp_seq=1 ttl=246 time=34.6 ms
64 bytes from 202.96.209.5: icmp_seq=2 ttl=246 time=34.7 ms
64 bytes from 202.96.209.5: icmp_seq=3 ttl=246 time=34.6 ms
64 bytes from 202.96.209.5: icmp_seq=4 ttl=246 time=37.7 ms
64 bytes from 202.96.209.5: icmp_seq=5 ttl=246 time=34.5 ms
64 bytes from 202.96.209.5: icmp_seq=6 ttl=246 time=35.0 ms
64 bytes from 202.96.209.5: icmp_seq=7 ttl=246 time=34.5 ms
64 bytes from 202.96.209.5: icmp_seq=8 ttl=246 time=35.0 ms
64 bytes from 202.96.209.5: icmp_seq=9 ttl=246 time=35.0 ms
64 bytes from 202.96.209.5: icmp_seq=10 ttl=246 time=34.4 ms

--- 202.96.209.5 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9044ms
[u]rtt min/avg/max/mdev = 34.467/35.048/37.718/0.934 ms[/u]
apple@apple-desktop:~$  
怎样通过ping命令看速度?上面的结果哪个快?是看哪里得出的结论?
看我加下划线的那一行,那一航给出了你所发出icmp报的Round Trip Time! 其中第二和第三项来作参考,判断网络状况。
shiweifu
帖子: 66
注册时间: 2007-01-28 15:47

#7

帖子 shiweifu » 2007-02-15 13:04

看后面的毫秒吧
越小,正名得到返回值的时间越短,速度也就越快
回复