SNMP Bandwidth Calculator
Use this SNMP bandwidth calculator to turn two interface counter readings into inbound and outbound throughput. Enter the values returned by ifInOctets and ifOutOctets, or their 64-bit counterparts ifHCInOctets and ifHCOutOctets, then set the time between polls and the interface speed. The result is shown in bits per second and as a percentage of link capacity.
Free calculator
Calculate interface bandwidth
Inbound
3.00 Mbps
0.30% of link · Δ 22500000 octets
Outbound
2.00 Mbps
0.20% of link · Δ 15000000 octets
Rate = counter delta × 8 ÷ elapsed seconds. A falling counter is treated as one wrap at the selected width. The calculator assumes both polls belong to the same interface and counter.
Calculate SNMP interface traffic
The calculator handles one counter wrap at the selected 32-bit or 64-bit width. It performs the calculation in your browser, so the counter values you enter stay on this page.
How the SNMP bandwidth formula works
An SNMP interface counter records a cumulative number of octets. Subtract the earlier counter from the later counter to find how many octets crossed the interface between polls. Multiply by eight to convert octets to bits, then divide by the elapsed time in seconds.
bits per second = (counter₂ − counter₁) × 8 ÷ seconds
The calculator computes inbound and outbound directions separately. To estimate utilization, divide the resulting bit rate by the configured interface capacity and multiply by 100. For a 1 Gbps port receiving 250 Mbps, utilization is 25 percent.
Choose the right SNMP counters
The older IF-MIB objects ifInOctets and ifOutOctets are 32-bit counters. On a fast interface, they can wrap between polls. IF-MIB also defines ifHCInOctets and ifHCOutOctets as 64-bit counters. Prefer those high-capacity counters when the device supports them, especially for links faster than 100 Mbps.
Use the same interface index for both samples. A row such as ifHCInOctets.7 identifies interface index 7, and the value must come from that same interface at both times. The poll interval should reflect the actual time between samples, not just the configured schedule, because delayed polls affect the rate calculation.
Counter wrap and interpretation
If the later value is smaller than the earlier value, the calculator treats it as one rollover at the selected counter width. This is appropriate when a counter reached its maximum and restarted at zero. A device reboot, interface reset, or counter discontinuity can also make the value fall. In those cases, the apparent delta is not traffic, so compare sysUpTime or interface discontinuity data and discard samples that span a reset.
The utilization percentage is a directional rate divided by the entered interface speed. Full-duplex interfaces can receive and transmit at their rated speed simultaneously, so inbound plus outbound can exceed 100 percent when both directions are summed. The calculator shows each direction separately to make that distinction clear.