Linux下的ping命令支持中间显示简短统计数据
2014-07-23 13:38
746 查看
使用Linux的ping命令时,在ping的过程中,如果想看简要统计数据,可以按Ctrl+| (不是I键,是竖线键)
http://www.think-lamp.com/2009/03/the-hidden-power-of-ping/
ipg: InterPacket Gap (measured in seconds)
The Inter-packet gap (or the inter-frame gap) is an idle time period appended to the end of every frame by the ethernet adapter. This idle time gives the network media a chance to stabilize, and other network components time to process the frame. On specifying
the i0 or the -f switch in ping we can get the output resulting ping statistics which gives the current ipg of the system.
The minimum interframe gap is 96 bit times (the time it takes to transmit 96 bits of raw data on the medium), which is
9.6 μs for 10 Mbit/s Ethernet,
960 ns for 100 Mbit/s (fast) Ethernet,
96 ns for 1 Gbit/s (gigabit) Ethernet, and
9.6 ns for 10 Gbit/s (10 gigabit) Ethernet.
This is the minimum gap as specified in Ethernet protocol and required for a non-colliding transmission. There are ways to reduce it for a faster UDP transmissions, but can cause heavy collisions if other devices ( client and server ) aren’t able to handle
the high rate of transmission.
In ideal situations for a 10 Mbps line and 9.6 μs of IFG the loss is 14.28%
ewma: Exponential Weighted Moving Average (measured in seconds)
Estimated packet rate is used to identify abnormal activities and attacks. The ethernet adapter estimates the arrival of the next packet based on the information of previous packet. If the packet time is more it will go to sleep (saving power).
Although I want to I cannot talk a lot about EWMA as it is beyond the scope of this article, but on aproduction
system A quick look at the rtt and ewma will tell you if something is wrong. rtt ~ ewma for regular case.
During operations, the effective idletime is measured using an exponential weighted moving average (EWMA), which considers recent packets to be exponentially more important than past ones. The Unix loadaverage is calculated in the same way.
The calculated idle time is subtracted from the EWMA measured one, the resulting number is called ‘avgidle’. A perfectly loaded link has an avgidle of zero: packets arrive exactly at the calculated interval.
http://www.think-lamp.com/2009/03/the-hidden-power-of-ping/
ipg: InterPacket Gap (measured in seconds)
64 bytes from yo-in-f99.google.com (64.233.169.99): icmp_seq=29 ttl=245 (truncated) --- www.l.google.com ping statistics --- 30 packets transmitted, 30 received, 0% packet loss, time 540ms rtt min/avg/max/mdev = 7.560/7.996/8.609/0.257 ms, ipg/ewma 18.632/7.945 ms
The Inter-packet gap (or the inter-frame gap) is an idle time period appended to the end of every frame by the ethernet adapter. This idle time gives the network media a chance to stabilize, and other network components time to process the frame. On specifying
the i0 or the -f switch in ping we can get the output resulting ping statistics which gives the current ipg of the system.
The minimum interframe gap is 96 bit times (the time it takes to transmit 96 bits of raw data on the medium), which is
9.6 μs for 10 Mbit/s Ethernet,
960 ns for 100 Mbit/s (fast) Ethernet,
96 ns for 1 Gbit/s (gigabit) Ethernet, and
9.6 ns for 10 Gbit/s (10 gigabit) Ethernet.
This is the minimum gap as specified in Ethernet protocol and required for a non-colliding transmission. There are ways to reduce it for a faster UDP transmissions, but can cause heavy collisions if other devices ( client and server ) aren’t able to handle
the high rate of transmission.
In ideal situations for a 10 Mbps line and 9.6 μs of IFG the loss is 14.28%
ewma: Exponential Weighted Moving Average (measured in seconds)
Estimated packet rate is used to identify abnormal activities and attacks. The ethernet adapter estimates the arrival of the next packet based on the information of previous packet. If the packet time is more it will go to sleep (saving power).
Although I want to I cannot talk a lot about EWMA as it is beyond the scope of this article, but on aproduction
system A quick look at the rtt and ewma will tell you if something is wrong. rtt ~ ewma for regular case.
During operations, the effective idletime is measured using an exponential weighted moving average (EWMA), which considers recent packets to be exponentially more important than past ones. The Unix loadaverage is calculated in the same way.
The calculated idle time is subtracted from the EWMA measured one, the resulting number is called ‘avgidle’. A perfectly loaded link has an avgidle of zero: packets arrive exactly at the calculated interval.
相关文章推荐
- 统计数据显示:中国人口周四突破13亿
- 报表分组统计然后显示数据的时候顺序不正常,即使用order by 也是不可以!见图
- ArcGIS.Server.9.3和ArcGIS API for Flex在MapTips显示饼图数据统计(九)
- linux 如何显示一个文件的某几行(中间几行)
- asp操作excel,显示数据及统计方法
- [Linux] 使Linux支持中文输入法,但UI上显示英文
- 如何用进度条显示数据窗口报表的统计过程?
- 树形结构的处理--数据显示排序、统计
- 编码为GB2312网站让AJAX接收的数据显示支持中文
- 如何在 Google Gadget 中显示击球统计数据
- Linux发行版市场占有率统计数据
- 按月统计的问题,即数据中没有该月的数据,该月的数据显示为0
- Scott Mitchell 的ASP.NET 2.0数据教程之十五:在GridView的页脚中显示统计信息
- 统计重复数据的总数且只显示重复数据的一条记录
- VB 版累计技术得分,数据统计来源:一个中间临时表,数据最不准确
- VB 版累计技术得分,数据统计来源:一个中间临时表,数据最不准确
- Scott Mitchell 的ASP.NET 2.0数据教程之十五:在GridView的页脚中显示统计信息
- 调查显示:技术支持成Linux最主要的弱点
- [转]ArcGIS.Server.9.3和ArcGIS API for Flex在MapTips显示饼图数据统计(九)
- Netstat用于显示与IP、TCP、UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况