explain 64-bit counters and wrapping?
Moderators: Developers, Moderators
-
- Posts: 12
- Joined: Mon Sep 20, 2004 3:52 pm
explain 64-bit counters and wrapping?
this is my frist post and i would like to say CACTI is awesome, although i'm still new at it i can see that it has a lot of potential.....plus its free!!!! anyways
I was reading an article on cisco.com and they said the following:
A. RFC 2233 adopted expanded 64-bit counters for high capacity interfaces in which 32-bit counters do not provide enough capacity and wrap too fast.
As the speed of network media increases, the minimum time in which a 32-bit counter wraps decreases. For example, a 10 Mbps stream of back-to-back, full-size packets causes ifInOctets to wrap in just over 57 minutes. At 100 Mbps, the minimum wrap time is 5.7 minutes, and at 1 Gbps, the minimum is 34 seconds.
Note: The SNMP counters wrap, the CLI counters don't.
For interfaces that operate at 20,000,000 (20 million) bits per second or less, you must use 32-bit byte and packet counters. For interfaces that operate faster than 20 million bits per second, and slower than 650,000,000 bits per second, you must use 32-bit packet counters and 64-bit octet counters. For interfaces that operate at 650,000,000 bits/second or faster, 64-bit packet and octet counters must be used.
Correspondingly, Cisco IOS Software does not support 64-bit counters for interface speeds of less than 20Mbps. This means that 64-bit counters are not supported on 10Mb Ethernet ports, only 100 Mb Fast-Ethernet and other high speed ports support 64-bit counters.
==================================
my question is what is wrapping? could someone explain that to me? thanks alot.
- mike
I was reading an article on cisco.com and they said the following:
A. RFC 2233 adopted expanded 64-bit counters for high capacity interfaces in which 32-bit counters do not provide enough capacity and wrap too fast.
As the speed of network media increases, the minimum time in which a 32-bit counter wraps decreases. For example, a 10 Mbps stream of back-to-back, full-size packets causes ifInOctets to wrap in just over 57 minutes. At 100 Mbps, the minimum wrap time is 5.7 minutes, and at 1 Gbps, the minimum is 34 seconds.
Note: The SNMP counters wrap, the CLI counters don't.
For interfaces that operate at 20,000,000 (20 million) bits per second or less, you must use 32-bit byte and packet counters. For interfaces that operate faster than 20 million bits per second, and slower than 650,000,000 bits per second, you must use 32-bit packet counters and 64-bit octet counters. For interfaces that operate at 650,000,000 bits/second or faster, 64-bit packet and octet counters must be used.
Correspondingly, Cisco IOS Software does not support 64-bit counters for interface speeds of less than 20Mbps. This means that 64-bit counters are not supported on 10Mb Ethernet ports, only 100 Mb Fast-Ethernet and other high speed ports support 64-bit counters.
==================================
my question is what is wrapping? could someone explain that to me? thanks alot.
- mike
Traffic counters count number of bytes transferred through given interface. Such counters have their maximum value they can handle - in case of 32-bit counters this is (2^32)-1 = 4294967295. As soon as the counter reach the maximum value it starts counting from 0. This is called counter wrapping.
Applications that check such counters frequently (as Cacti does) may get confused if the counter wraps twice between poll attempts (they usualy can hadle 1 wrap). This can happen in case of high speed interfaces. It is therefore recommended to use 64-bit counters which wrap much less often.
- Piotr
Applications that check such counters frequently (as Cacti does) may get confused if the counter wraps twice between poll attempts (they usualy can hadle 1 wrap). This can happen in case of high speed interfaces. It is therefore recommended to use 64-bit counters which wrap much less often.
- Piotr
-
- Posts: 12
- Joined: Mon Sep 20, 2004 3:52 pm
thanks
thanks. excellent response. that helped to explain a few things.
-
- Posts: 4
- Joined: Wed Sep 29, 2004 4:39 pm
I was just researching a problem that I think is related to this so I was glad to see a fresh thread on this topic.
But what are your options when the 64 bit counters aren't exposed in snmpwalk. I looked at the IFMIB.txt and it appears to be there as ifHCInOctects and ifHCOutOctects but neither of these are showing up. The server in question is running an e1000 family NIC....anyone have any ideas?
David
But what are your options when the 64 bit counters aren't exposed in snmpwalk. I looked at the IFMIB.txt and it appears to be there as ifHCInOctects and ifHCOutOctects but neither of these are showing up. The server in question is running an e1000 family NIC....anyone have any ideas?
David
-
- Posts: 38
- Joined: Mon Feb 16, 2004 2:01 pm
- Location: Westland, MI
I am using v2c....here's the output from snmpwalk
--
David
Code: Select all
snmpwalk -v2c -cgraphics localhost IF | grep '.3 ='
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifDescr.3 = STRING: eth0
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifSpeed.3 = Gauge32: 100000000
IF-MIB::ifPhysAddress.3 = STRING: 0:30:48:29:d8:3e
IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: up(1)
IF-MIB::ifInOctets.3 = Counter32: 3312081601
IF-MIB::ifInUcastPkts.3 = Counter32: 1962820674
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifOutOctets.3 = Counter32: 3491158269
IF-MIB::ifOutUcastPkts.3 = Counter32: 1662434153
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
David
Last edited by Guest on Thu Sep 30, 2004 9:07 am, edited 1 time in total.
-
- Posts: 4
- Joined: Wed Sep 29, 2004 4:39 pm
-
- Posts: 4
- Joined: Wed Sep 29, 2004 4:39 pm
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
realthing3d,
It appears as if your vendor is not supporting 64bit counters. It may be that they have a vendor specific mib with the required information (which I would consider a bug as well). Best bet would be to e-mail their support group for a fix.
TheWitness
It appears as if your vendor is not supporting 64bit counters. It may be that they have a vendor specific mib with the required information (which I would consider a bug as well). Best bet would be to e-mail their support group for a fix.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Posts: 4
- Joined: Wed Sep 29, 2004 4:39 pm
Thanks I'll try emailing SuperMicro and see if they have any solutions. As another option could I poll the interface's every minute by modifying some of the scripts and rra's? Sounds to me like this would be a pain when it comes to adding new data sources though. Perhaps this would be a good feature request item. To be able to pick the polling frequency on a per data source (template) basis.
--
David Miller
--
David Miller
Who is online
Users browsing this forum: No registered users and 0 guests