SNMP counter wrap and rate calculator
How long a Counter32 or Counter64 takes to wrap at an interface speed and load, the longest poll interval that cannot miss a wrap, whether RFC 2863 requires 64-bit counters at that speed, and the rate from two readings of one counter, with exact 64-bit arithmetic.
NetworkingKept in this browser · My desk
The counter and the interface
Counter type
Counts
A number and a unit, with a point for decimals: 100M, 2.5 Gb/s, 10G. A bare number is bit/s, as ifSpeed reports it; ifHighSpeed reports units of 1,000,000 bit/s, so an ifHighSpeed of 10000 is 10000M or 10G.
Runs locally in your browser. Nothing is sent anywhere.
Enter or pick the interface speed and the time to wrap appears; add a poll interval for a verdict on it. Example fills a 10 Gb/s port at 40 % polled every 300 s.
API endpointGEThttps://ronutz.com/api/v1/snmp-counter-wrap-calculatorDocumented, not served. Opens the specification.
References
- RFC 2578, Structure of Management Information Version 2 (SMIv2), April 1999 (STD 58): sections 7.1.6 Counter32, 7.1.8 TimeTicks and 7.1.10 Counter64
- RFC 2863, The Interfaces Group MIB, June 2000: section 3.1.6 Counter Size, the counter objects, ifSpeed, ifHighSpeed and ifCounterDiscontinuityTime
- RFC 3418, Management Information Base (MIB) for the Simple Network Management Protocol (SNMP), December 2002 (STD 62): sysUpTime
- RFC 2579, Textual Conventions for SMIv2, April 1999 (STD 58): TimeStamp
- RFC 2544, Benchmarking Methodology for Network Interconnect Devices, March 1999: Appendix B, Maximum frame rates reference
- Net-SNMP Wiki, TUT:snmpget
- Net-SNMP, snmpcmd(1) manual page: OUTPUT OPTIONS
- Net-SNMP 5.9.4 source, snmplib/mib.c (the value printers)