[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

some IETF SMIv2 MIB metrics



I am playing a little bit with simple metrics for MIB modules. I just
thought it might be useful to share some metrics I just computed for
the SMIv2 MIBs published by the IETF.

As usual, software metrics are in really only useful if you have data
sets you can compare. I guess I have to get other sets of inputs next
to see whether there are any significant differences. But still, I
found some of the numbers below surprising.

If you have any cool ideas for other metrics to compute, please let me
know and I will see what I can do. Enjoy.

/js

# united module metrics (generated by smidump 0.4.1)
#
# smidump -u -f metrics \
#	ACCOUNTING-CONTROL-MIB ADSL-LINE-MIB ADSL-TC-MIB AGENTX-MIB  \
#	APPC-MIB APPLICATION-MIB APPN-DLUR-MIB APPN-MIB APPN-TRAP-MIB  \
#	ATM-ACCOUNTING-INFORMATION-MIB ATM-MIB ATM-TC-MIB BGP4-MIB  \
#	CHARACTER-MIB CIRCUIT-IF-MIB COFFEE-POT-MIB COPS-CLIENT-MIB  \
#	DIAL-CONTROL-MIB DIFFSERV-DSCP-TC DIFFSERV-MIB  \
#	DIRECTORY-SERVER-MIB DISMAN-EVENT-MIB DISMAN-EXPRESSION-MIB  \
#	DISMAN-NSLOOKUP-MIB DISMAN-PING-MIB DISMAN-SCHEDULE-MIB  \
#	DISMAN-SCRIPT-MIB DISMAN-TRACEROUTE-MIB DLSW-MIB  \
#	DNS-RESOLVER-MIB DNS-SERVER-MIB DOCS-BPI-MIB  \
#	DOCS-CABLE-DEVICE-MIB DOCS-IF-MIB DOT12-IF-MIB DOT12-RPTR-MIB  \
#	DS0-MIB DS0BUNDLE-MIB DS1-MIB DS3-MIB DSA-MIB DSMON-MIB  \
#	EBN-MIB ENTITY-MIB ETHER-CHIPSET-MIB EtherLike-MIB  \
#	FIBRE-CHANNEL-FE-MIB FLOW-METER-MIB FR-ATM-PVC-SERVICE-IWF-MIB  \
#	FR-MFR-MIB FRAME-RELAY-DTE-MIB FRNETSERV-MIB FRSLD-MIB  \
#	GSMP-MIB HC-RMON-MIB HCNUM-TC HDSL2-SHDSL-LINE-MIB  \
#	HOST-RESOURCES-MIB HOST-RESOURCES-TYPES HPR-IP-MIB HPR-MIB  \
#	IF-INVERTED-STACK-MIB IF-MIB IGMP-STD-MIB INET-ADDRESS-MIB  \
#	INTEGRATED-SERVICES-GUARANTEED-MIB INTEGRATED-SERVICES-MIB  \
#	INTERFACETOPN-MIB IP-FORWARD-MIB IP-MIB IPATM-IPMC-MIB  \
#	IPMROUTE-STD-MIB IPOA-MIB IPV6-ICMP-MIB IPV6-MIB IPV6-MLD-MIB  \
#	IPV6-TCP-MIB IPV6-UDP-MIB ISDN-MIB Job-Monitoring-MIB MAU-MIB  \
#	MIP-MIB MTA-MIB Modem-MIB NETWORK-SERVICES-MIB NHRP-MIB  \
#	NOTIFICATION-LOG-MIB OSPF-MIB OSPF-TRAP-MIB P-BRIDGE-MIB  \
#	PARALLEL-MIB PIM-MIB PINT-MIB PTOPO-MIB PerfHist-TC-MIB  \
#	Printer-MIB Q-BRIDGE-MIB RADIUS-ACC-CLIENT-MIB  \
#	RADIUS-ACC-SERVER-MIB RADIUS-AUTH-CLIENT-MIB  \
#	RADIUS-AUTH-SERVER-MIB RDBMS-MIB RIPv2-MIB RMON-MIB RMON2-MIB  \
#	RS-232-MIB RSVP-MIB RTP-MIB SIP-MIB SLAPM-MIB SMON-MIB  \
#	SNA-NAU-MIB SNA-SDLC-MIB SNMP-COMMUNITY-MIB SNMP-FRAMEWORK-MIB  \
#	SNMP-MPD-MIB SNMP-NOTIFICATION-MIB SNMP-PROXY-MIB  \
#	SNMP-REPEATER-MIB SNMP-TARGET-MIB SNMP-USER-BASED-SM-MIB  \
#	SNMP-USM-DH-OBJECTS-MIB SNMP-VIEW-BASED-ACM-MIB SNMPv2-CONF  \
#	SNMPv2-MIB SNMPv2-SMI SNMPv2-TC SNMPv2-TM SNMPv2-USEC-MIB  \
#	SONET-MIB SYSAPPL-MIB TCP-MIB TN3270E-MIB TN3270E-RT-MIB  \
#	TOKENRING-MIB TOKENRING-STATION-SR-MIB TUNNEL-MIB UDP-MIB  \
#	UPS-MIB VRRP-MIB WWW-MIB 

# The following table shows the status distribution of various
# definitions contained in the set of loaded MIB modules.

CATEGORY          TOTAL  CURRENT  DEPRECATED  OBSOLETE
Types:              275    98.9%        0.7%      0.4%
Tables:             740    98.2%        1.2%      0.5%
Columns:           6418    97.3%        2.0%      0.7%
Scalars:            795    96.1%        1.0%      2.9%
Notifications:      155    93.5%        6.5%      0.0%
Groups:             749    91.2%        7.7%      1.1%
Compliances:        201    89.1%        9.0%      2.0%
Summary:           9333    96.6%        2.5%      0.9%

# The following table shows the access mode distribution of all scalar
# or column definitions contained in the set of loaded MIB modules.

CATEGORY          TOTAL  READWRITE  READONLY  NOTIFY  NOACCES
Columns:           6418      26.7%     63.3%    0.0%     9.9%
Scalars:            795      22.0%     71.6%    2.3%     4.2%
Summary:           7213      26.2%     64.2%    0.3%     9.3%

# The following table shows the table index kind distribution of
# table definitions contained in the set of loaded MIB modules.

CATEGORY          TOTAL    INDEX  AUGMENT  REORDER   SPARSE   EXPAND
Tables:             740    93.6%     6.4%     0.0%     0.0%     0.0%

# The following table shows the table index length distribution of
# table definitions contained in the set of loaded MIB modules.

CATEGORY        TOTAL   [1]   [2]   [3]   [4]   [5]   [6]   [7]   [8]
Tables:           740 42.7% 35.1% 11.2%  5.9%  3.1%  1.2%  0.7%  0.0%

# The following table shows the text clause usage distribution of all
# definitions contained in the set of loaded MIB modules.

CATEGORY          TOTAL  DESCRIPTION  REFERENCE     UNIT   FORMAT
Types:              275       100.0%       8.4%     0.0%    19.3%
Tables:             740       100.0%       4.1%     0.0%     0.0%
Columns:           6418       100.0%      10.0%    15.0%     0.0%
Scalars:            795       100.0%       4.4%    11.2%     0.0%
Notifications:      155       100.0%       6.5%     0.0%     0.0%
Summary:           9123       100.0%       8.2%    11.5%     0.6%

# The following table shows the text clause length distribution of all
# definitions contained in the set of loaded MIB modules.

CATEGORY          TOTAL  DESCRIPTION  REFERENCE     UNIT   FORMAT
Types:              275       597.6b      46.7b     0.0b     5.0b
Tables:             740       263.6b      45.3b     0.0b     0.0b
Columns:           6418       256.8b      52.8b     8.6b     0.0b
Scalars:            795       239.6b      48.1b    10.6b     0.0b
Notifications:      155       316.8b      53.4b     0.0b     0.0b
Summary:           9123       262.2b      52.1b     8.8b     5.0b

# The following table shows the distribution of the number of references
# to externally defined types in the set of loaded MIB modules.

MODULE                          TYPE                       EXT-USAGE
SNMPv2-SMI                      Counter32                    38.7%
SNMPv2-SMI                      Gauge32                       5.9%
SNMPv2-TC                       RowStatus                     5.7%
SNMPv2-TC                       TruthValue                    5.4%
SNMPv2-SMI                      IpAddress                     4.0%
SNMPv2-TC                       TimeStamp                     3.3%
SNMPv2-SMI                      Counter64                     2.8%
SNMP-FRAMEWORK-MIB              SnmpAdminString               2.3%
PerfHist-TC-MIB                 PerfIntervalCount             2.3%
PerfHist-TC-MIB                 PerfCurrentCount              2.3%
SNMPv2-SMI                      TimeTicks                     2.3%
SNMPv2-TC                       DateAndTime                   2.1%
IF-MIB                          InterfaceIndex                1.9%
RMON2-MIB                       ZeroBasedCounter32            1.6%
SNMPv2-TC                       DisplayString                 1.3%
SNMPv2-TC                       StorageType                   1.1%
SNMPv2-TC                       TimeInterval                  1.0%
PerfHist-TC-MIB                 PerfTotalCount                0.9%
HCNUM-TC                        ZeroBasedCounter64            0.9%
SNMPv2-TC                       RowPointer                    0.9%
HCNUM-TC                        CounterBasedGauge64           0.7%
RMON-MIB                        OwnerString                   0.6%
SNMPv2-TC                       TestAndIncr                   0.6%
ATM-TC-MIB                      AtmAddr                       0.6%
SNMPv2-TC                       MacAddress                    0.5%
SNMPv2-TC                       AutonomousType                0.5%
ADSL-TC-MIB                     AdslPerfPrevDayCount          0.5%
ADSL-TC-MIB                     AdslPerfCurrDayCount          0.5%
IF-MIB                          InterfaceIndexOrZero          0.4%
INET-ADDRESS-MIB                InetAddress                   0.4%
INET-ADDRESS-MIB                InetAddressType               0.4%
INTEGRATED-SERVICES-MIB         BitRate                       0.3%
IANA-ADDRESS-FAMILY-NUMBERS-MIB AddressFamilyNumbers          0.3%
RMON2-MIB                       LastCreateTime                0.3%
APPN-MIB                        SnaControlPointName           0.3%
ATM-TC-MIB                      AtmVpIdentifier               0.3%
RMON2-MIB                       TimeFilter                    0.2%
DNS-SERVER-MIB                  DnsTime                       0.2%
INTEGRATED-SERVICES-MIB         Port                          0.2%
IPV6-TC                         Ipv6Address                   0.2%
SNMPv2-TC                       TAddress                      0.2%
ATM-TC-MIB                      AtmVcIdentifier               0.2%
SNMPv2-TC                       TDomain                       0.2%
IANATn3270eTC-MIB               IANATn3270eAddress            0.2%
IANATn3270eTC-MIB               IANATn3270eAddrType           0.2%
INTEGRATED-SERVICES-MIB         MessageSize                   0.2%
RMON2-MIB                       DataSource                    0.2%
ATM-TC-MIB                      AtmVorXLastChange             0.2%
ATM-TC-MIB                      AtmVorXOperStatus             0.2%
IANAifType-MIB                  IANAifType                    0.2%
SNMPv2-TC                       InstancePointer               0.2%
SYSAPPL-MIB                     Utf8String                    0.1%
SNMP-FRAMEWORK-MIB              SnmpEngineID                  0.1%
SNMPv2-TC                       PhysAddress                   0.1%
SNMP-TARGET-MIB                 SnmpTagValue                  0.1%
INTEGRATED-SERVICES-MIB         BurstSize                     0.1%
INET-ADDRESS-MIB                InetPortNumber                0.1%
INTEGRATED-SERVICES-MIB         Protocol                      0.1%
INTEGRATED-SERVICES-MIB         SessionType                   0.1%
INTEGRATED-SERVICES-MIB         SessionNumber                 0.1%
DNS-SERVER-MIB                  DnsNameAsIndex                0.1%
ATM-TC-MIB                      AtmTrafficDescrParamIndex     0.1%
ATM-TC-MIB                      AtmVorXAdminStatus            0.1%
SNMPv2-TC                       VariablePointer               0.1%
IANATn3270eTC-MIB               IANATn3270ResourceType        0.1%
IPV6-TC                         Ipv6IfIndexOrZero             0.1%
IANA-RTPROTO-MIB                IANAipMRouteProtocol          0.1%
DNS-SERVER-MIB                  DnsClass                      0.1%
DNS-SERVER-MIB                  DnsName                       0.1%
IANATn3270eTC-MIB               IANATn3270Functions           0.1%
SNMP-FRAMEWORK-MIB              SnmpSecurityLevel             0.1%
IF-MIB                          OwnerString                   0.1%
INTEGRATED-SERVICES-MIB         QosService                    0.1%
P-BRIDGE-MIB                    EnabledStatus                 0.1%
ENTITY-MIB                      PhysicalIndex                 0.1%
NETWORK-SERVICES-MIB            URLString                     0.1%
NETWORK-SERVICES-MIB            DistinguishedName             0.1%
DIFFSERV-DSCP-TC                Dscp                          0.1%
INET-ADDRESS-MIB                InetAddressPrefixLength       0.1%
ATM-TC-MIB                      AtmConnKind                   0.1%
ATM-TC-MIB                      AtmConnCastType               0.1%
SYSAPPL-MIB                     LongUtf8String                0.1%
IANATn3270eTC-MIB               IANATn3270eLogData            0.0%
IANATn3270eTC-MIB               IANATn3270eClientType         0.0%
IANATn3270eTC-MIB               IANATn3270DeviceType          0.0%
SNMP-FRAMEWORK-MIB              SnmpSecurityModel             0.0%
SNMP-FRAMEWORK-MIB              SnmpMessageProcessingModel    0.0%
SNMPv2-SMI                      Opaque                        0.0%
IPV6-TC                         Ipv6AddressPrefix             0.0%
IPV6-TC                         Ipv6AddressIfIdentifier       0.0%
IPV6-TC                         Ipv6IfIndex                   0.0%
IANA-RTPROTO-MIB                IANAipRouteProtocol           0.0%
FRAME-RELAY-DTE-MIB             DLCI                          0.0%
DNS-SERVER-MIB                  DnsQType                      0.0%
DNS-SERVER-MIB                  DnsQClass                     0.0%
DNS-SERVER-MIB                  DnsType                       0.0%
DNS-SERVER-MIB                  DnsRespCode                   0.0%
DNS-SERVER-MIB                  DnsOpCode                     0.0%
DISMAN-PING-MIB                 OperationResponseStatus       0.0%
DIFFSERV-DSCP-TC                DscpOrAny                     0.0%
ATM-TC-MIB                      AtmServiceCategory            0.0%
ADSL-TC-MIB                     AdslLineCodingType            0.0%

# The following table shows the distribution of the number of references
# to externally defined nodes in the set of loaded MIB modules.

MODULE                 NODE                      EXT-USAGE
IF-MIB                 ifIndex                     38.3%
HOST-RESOURCES-MIB     hrDeviceIndex                5.7%
NETWORK-SERVICES-MIB   applIndex                    5.7%
RMON2-MIB              protocolDirLocalIndex        4.6%
RFC1213-MIB            ifIndex                      3.8%
BRIDGE-MIB             dot1dBasePort                3.8%
RFC1213-MIB            ipAdEntAddr                  1.9%
RMON2-MIB              hlMatrixControlIndex         1.5%
SYSAPPL-MIB            sysApplElmtRunIndex          1.5%
TN3270E-MIB            tn3270eClientGroupName       0.8%
TN3270E-MIB            tn3270eSrvrConfIndex         0.8%
SYSAPPL-MIB            sysApplInstallPkgIndex       0.8%
BRIDGE-MIB             dot1dTpPort                  0.8%
IP-MIB                 ipAdEntAddr                  0.8%
RMON2-MIB              nlMatrixDSSourceAddress      0.8%
RMON2-MIB              nlMatrixDSDestAddress        0.8%
RMON2-MIB              nlMatrixSDDestAddress        0.8%
RMON2-MIB              nlMatrixSDSourceAddress      0.8%
RMON2-MIB              nlHostAddress                0.8%
RMON2-MIB              hlHostControlIndex           0.8%
RMON-MIB               etherStatsIndex              0.8%
SNMP-USER-BASED-SM-MIB usmUserName                  0.4%
SNMP-USER-BASED-SM-MIB usmUserEngineID              0.4%
SNMP-TARGET-MIB        snmpTargetParamsName         0.4%
SNMP-TARGET-MIB        snmpTargetAddrName           0.4%
TOKEN-RING-RMON-MIB    sourceRoutingStatsIfIndex    0.4%
TOKEN-RING-RMON-MIB    ringStationControlIfIndex    0.4%
RMON-MIB               filterIndex                  0.4%
RMON-MIB               channelIndex                 0.4%
RMON-MIB               matrixControlIndex           0.4%
RMON-MIB               hostControlIndex             0.4%
RMON-MIB               historyControlIndex          0.4%
TOKEN-RING-RMON-MIB    tokenRingPStatsIndex         0.4%
TOKEN-RING-RMON-MIB    tokenRingMLStatsIndex        0.4%
HOST-RESOURCES-MIB     hrStorageIndex               0.4%
IPMROUTE-STD-MIB       ipMRouteNextHopAddress       0.4%
IPMROUTE-STD-MIB       ipMRouteNextHopIfIndex       0.4%
IPMROUTE-STD-MIB       ipMRouteNextHopSourceMask    0.4%
IPMROUTE-STD-MIB       ipMRouteNextHopSource        0.4%
IPMROUTE-STD-MIB       ipMRouteNextHopGroup         0.4%
IPMROUTE-STD-MIB       ipMRouteSourceMask           0.4%
IPMROUTE-STD-MIB       ipMRouteSource               0.4%
IPMROUTE-STD-MIB       ipMRouteGroup                0.4%
IPV6-MIB               ipv6IfIndex                  0.4%
IP-MIB                 ipNetToMediaNetAddress       0.4%
IP-MIB                 ipNetToMediaIfIndex          0.4%
IF-MIB                 ifStackHigherLayer           0.4%
IF-MIB                 ifStackLowerLayer            0.4%
RMON2-MIB              usrHistoryObjectIndex        0.4%
RMON2-MIB              usrHistorySampleIndex        0.4%
RMON2-MIB              usrHistoryControlIndex       0.4%
RMON2-MIB              alMatrixTopNIndex            0.4%
RMON2-MIB              alMatrixTopNControlIndex     0.4%
RMON2-MIB              alMatrixDSTimeMark           0.4%
RMON2-MIB              alMatrixSDTimeMark           0.4%
RMON2-MIB              alHostTimeMark               0.4%
RMON2-MIB              nlMatrixTopNIndex            0.4%
RMON2-MIB              nlMatrixTopNControlIndex     0.4%
RMON2-MIB              nlMatrixDSTimeMark           0.4%
RMON2-MIB              nlMatrixSDTimeMark           0.4%
RMON2-MIB              nlHostTimeMark               0.4%
RMON2-MIB              protocolDistControlIndex     0.4%
RMON-MIB               captureBufferIndex           0.4%
RMON-MIB               captureBufferControlIndex    0.4%
RMON-MIB               matrixDSSourceAddress        0.4%
RMON-MIB               matrixDSDestAddress          0.4%
RMON-MIB               matrixDSIndex                0.4%
RMON-MIB               matrixSDDestAddress          0.4%
RMON-MIB               matrixSDSourceAddress        0.4%
RMON-MIB               matrixSDIndex                0.4%
RMON-MIB               hostTopNIndex                0.4%
RMON-MIB               hostTopNReport               0.4%
RMON-MIB               hostTimeCreationOrder        0.4%
RMON-MIB               hostTimeIndex                0.4%
RMON-MIB               hostAddress                  0.4%
RMON-MIB               hostIndex                    0.4%
RMON-MIB               etherHistorySampleIndex      0.4%
RMON-MIB               etherHistoryIndex            0.4%
ATM-MIB                atmVclVci                    0.4%
ATM-MIB                atmVclVpi                    0.4%
DOCS-IF-MIB            docsIfCmtsServiceId          0.4%
DOCS-IF-MIB            docsIfCmServiceId            0.4%
SNA-SDLC-MIB           sdlcLSAddress                0.4%

# The following table shows the distribution of the number of references
# to externally defined items (such as types or objects) accumulated by
# defining MIB module in the set of loaded MIB modules.

MODULE                          EXT-USAGE
SNMPv2-SMI                        50.2%
SNMPv2-TC                         21.6%
PerfHist-TC-MIB                    5.2%
IF-MIB                             4.9%
RMON2-MIB                          3.2%
SNMP-FRAMEWORK-MIB                 2.4%
ATM-TC-MIB                         1.6%
HCNUM-TC                           1.5%
RMON-MIB                           1.2%
INTEGRATED-SERVICES-MIB            1.1%
ADSL-TC-MIB                        1.0%
INET-ADDRESS-MIB                   0.9%
DNS-SERVER-MIB                     0.6%
IANATn3270eTC-MIB                  0.5%
NETWORK-SERVICES-MIB               0.5%
HOST-RESOURCES-MIB                 0.4%
RFC1213-MIB                        0.4%
IPV6-TC                            0.3%
SYSAPPL-MIB                        0.3%
BRIDGE-MIB                         0.3%
IANA-ADDRESS-FAMILY-NUMBERS-MIB    0.3%
APPN-MIB                           0.3%
IPMROUTE-STD-MIB                   0.2%
SNMP-TARGET-MIB                    0.2%
IANAifType-MIB                     0.2%
TN3270E-MIB                        0.1%
TOKEN-RING-RMON-MIB                0.1%
IP-MIB                             0.1%
IANA-RTPROTO-MIB                   0.1%
DIFFSERV-DSCP-TC                   0.1%
SNMP-USER-BASED-SM-MIB             0.1%
P-BRIDGE-MIB                       0.1%
ENTITY-MIB                         0.1%
ATM-MIB                            0.1%
DOCS-IF-MIB                        0.1%
IPV6-MIB                           0.0%
FRAME-RELAY-DTE-MIB                0.0%
SNA-SDLC-MIB                       0.0%
DISMAN-PING-MIB                    0.0%