您的位置:首页 > 其它

如何用ping 命令简单测试网速

2009-09-04 11:14 489 查看
命令格式:

ping ip地址 -l 字节数 如:ping 202.101.224.68 -l 1000

注:上面的命令中 l 是字母l,不是数字1
网速等于≈(发送的字节数/返回的时间[毫秒])K字节
以上计算的结果速为字节(byte),不是我们通常说的位(bps)
如:

1 Byte = 8 bit

1G=( 1024)MB
1MB=(1024 )kbyte
1kbyte=(1024 )byte
1byte=( 8)bit

byte是字节,一个字节占用8比特位就是8个一零
一般在计算网速是采用bps就是bit per second 比特每秒,而计算容量是一般采用B--byte,字节,所以我们所说的100Mbps实际上是12.5MB/S

============================================
C:\Documents and Settings\Administrator>ping 202.101.224.68 -l 1000
Pinging 202.101.224.68 with 1000 bytes of data:

Reply from 202.101.224.68: bytes=1000 time=38ms TTL=251
Reply from 202.101.224.68: bytes=1000 time=38ms TTL=251
Reply from 202.101.224.68: bytes=1000 time=38ms TTL=251
Reply from 202.101.224.68: bytes=1000 time=38ms TTL=251
Ping statistics for 202.101.224.68:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 38ms, Maximum = 38ms, Average = 38ms
====================================================

根据上述发送及返回的信息可以简单得出到地址202.101.224.68的网速为:

网速等于≈(发送的字节数/返回的时间[毫秒])K字节
≈1000/38K字节
≈26.32K字节本文出自 “自由人信息港” 博客,谢绝转载!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: