当前位置: 技术问答>linux和unix
linux 有什么命令能够查看本机器的网络流量?
来源: 互联网 发布时间:2016-07-10
本文导语: rt | 测网速 这个估计要借助工具吧 不过通过ping 能简单的测量一下 命令格式: ping ip地址 -l 字节数 注:上面的命令中 l 是字母l,不是数字1 网速等于≈(发送的字节数/返回的时间[毫秒...
rt
|
测网速 这个估计要借助工具吧
不过通过ping 能简单的测量一下
命令格式:
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 能简单的测量一下
命令格式:
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字节
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。