zoukankan      html  css  js  c++  java
  • 网页测速

    用Java进行网速测试
     
    命令格式:
     
    ping ip地址 -l 字节数
     
    注:上面的命令中 l 是字母l,不是数字1
     
    网速等于≈(发送的字节数/返回的时间[毫秒])K字节
     
    以上计算的结果速为字节(byte),不是我们通常说的位(bps)
     
    如:
     
    C:Documents and SettingsAdministrator>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字节
     
    附:ping命令帮助说明
     
    -l size        Send buffer size
     
     -w timeout     Timeout in milliseconds to wait for each reply.
     
    -n count       Number of echo requests to send.
    -----------------------------------------
  • 相关阅读:
    P1182 数列分段 Section II 题解
    P3853 路标设置题解
    二分模板
    P2678 跳石头题解
    P2440 木材加工题解
    P1024 一元三次方程求解题解
    快速下载vscode的方法
    P1824 进击的奶牛题解
    P1873 砍树题解
    用户登录之asp.net cookie的写入、读取与操作
  • 原文地址:https://www.cnblogs.com/zhuzhuxuan/p/5191780.html
Copyright © 2011-2022 走看看