通常我使用以下命令来显示端口利用率:
monitor port 1/1/8 rate interval 5
例如,这将导致每隔几秒产生以下输出:
===============================================================================
Monitor statistics for Port 1/1/8
===============================================================================
Input Output
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
Octets 75258450207721 75077561029121
Packets 690944243167 685878159990
Errors 1 0
-------------------------------------------------------------------------------
At time t = 5 sec (Mode: Rate)
-------------------------------------------------------------------------------
Octets 1185742 1015941
Packets 10264 8347
Errors 0 0
Utilization (% of port capacity) 1.11 0.94
-------------------------------------------------------------------------------
At time t = 10 sec (Mode: Rate)
-------------------------------------------------------------------------------
Octets 1182030 1020105
Packets 10231 8397
Errors 0 0
Utilization (% of port capacity) 1.10 0.95
1000Mbps 端口如何Utilization (% of port capacity)计算?
对于 1000Mbps 端口,解决方案似乎不是 (octets*8)/1E9。例如,在 t = 5 秒时,(1185742 个八位字节 * 8)/1E9 * 100% = .95% 而不是 1.11%。
我认为诺基亚/ALU 使用的数学有一些我没有看到的东西。