interface_traffic bandwidth calculation

Document ID : KB000056916
Last Modified Date : 26/03/2018
Show Technical Document Details
Introduction:
What types of calculation takes place for bandwidth calculation in interface_traffic probe ?

The interface_traffic probe runs the following calculation to calculate bandwidth.

Here is an example for Inbound traffic:

1. Calculate delta of SysUpTime - (A)

2. Calculate delta of Inbound Octet - (B)
The probe attempt to find High counter (IfHCInOctets) first.
If not available, then attempt to find normal counter (IfInOctets).

3. Divide (B)/(A) then store the value as sample (Unit : Octet/sec)

4. Out Of the box configuration, the probe publishes QoS for every polling.
Bandwidth usage percent QoS value will be (sample)/(interface speed)
The probe attempt to find High counter (IfHighSpeed) first.
If not available, then attempt to find normal counter (ifSpeed)
You can also override the speed in probe GUI.

5. Out Of the box configuration, the probe uses the last 6 samples
to calculate the average, then alarm is triggered if the average is
above defined threshold.

[Appendix]
Here is an actual instance of what the probe log (loglevel=5) looks like.

In this example - 32bit counter is used because no 64bit counter available in this example.

[The Previous Polling]

ift: (SNMPasync) '<Profile Name>' OID: .1.3.6.1.2.1.1.3.0, value=0:1:09:04.14, variable=0:1:09:04.14
ift: (SNMPasync) '<Profile Name>' OID: .1.3.6.1.2.1.2.2.1.10.10, value=1923334872, variable=1923334872
ift: (SNMPasync) '<Profile Name>' OID: .1.3.6.1.2.1.2.2.1.5.10, value=1000000000, variable=1000000000

[The Latest Polling]

ift: (SNMPasync) '<Profile Name>' OID: .1.3.6.1.2.1.1.3.0, value=0:1:09:34.09, variable=0:1:09:34.09
ift: (SNMPasync) '<Profile Name>' OID: .1.3.6.1.2.1.2.2.1.10.10, value=2276946616, variable=2276946616
ift: (SNMPasync) '<Profile Name>' OID: .1.3.6.1.2.1.2.2.1.5.10, value=1000000000, variable=1000000000

[The published QoS]

ift: QoS <Profile Name>:<Interface Name> = 11806736 Bps
ift: QoS <Profile Name>:<Interface Name> = 9 %


(A) TimeDelta = (0:1:09:34.09 - 0:1:09:04.14) = 29.95
(B) OctetDelta = (2276946616 - 1923334872) = 353611744

(B)/(A) = 11806736.02671119

(11806736.02671119)/125000000 = 0.0944538882136895

(*) 1000000000 (BitPerSec a.k.a bps) is converted to "125000000" (BytePerSec)
for calculation purpose.

 
Instructions:
Please Update This Required Field