我的问题是 Ping 给出了 bytes=32  Average =  60ms 怎么换算成 k/s
我用正常计算 byte 32 /1024 = K 1s=1000ms
[red][/red]可是有人说 32需要 *4 不知道 是为什么 而且 还有 60ms 是(往返时间 还是 已经被/2了呢?)
Pinging www.163.com [202.108.42.63] with 32 bytes of data:Reply from 202.108.42.63: bytes=32 time=90ms TTL=247
Reply from 202.108.42.63: bytes=32 time=70ms TTL=247
Reply from 202.108.42.63: bytes=32 time=40ms TTL=247
Reply from 202.108.42.63: bytes=32 time=41ms TTL=247Ping statistics for 202.108.42.63:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 40ms, Maximum =  90ms, Average =  60ms不知道 这个Ping结果能 得到k/s 我算得 533.33333…… 不对吧?

解决方案 »

  1.   

    1.计算网络数据通信速度,有几个标准:总吞吐量,接收速度,发送速度;
    看你需要计算哪一个;32不需要*2,它本来就是字节数。但是,仅仅用这个值来计算网络速度,是很不准确的:因为这仅仅是ICMP包长度,不包括IP包头,物理桢包头,而这两个都一定是随ICMP包而存在的。2。时间数 90ms 是一次往返的时间,在PING代码里,是用2次GetTickCount()的差值,来统计一次完整往返的时间。但是话说回来,这个时间只是理论正确的,因为不能绝对保证ICMP包往返时都是经过同一个路径,或者出现网络阻塞,都可以导致 时间值 不准确总之,拿PING来估计网络速度,非常不准确!!
      

  2.   

    mostly agree with  huangbeyondnormally, the speed is measured in k-bits/s, so you need to times 8!so the theoretically average value = 32*8bits/30ms = 8.3 kbits/s
      

  3.   

    saucer(思归)  可是 我这里是ADSL 这个测试是否不准确?
      

  4.   

    the values will be way off if you ping www.163.com, try to ping your ISP's address