Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types...

31
Characterization of SNMP MIB Modules urgen Sch ¨ onw ¨ alder [email protected] International University Bremen Campus Ring 1 28725 Bremen, Germany slides.tex – Characterization of SNMP MIB Modules – J¨ urgen Sch ¨ onw ¨ alder – 16/11/2004 – 20:30 – p. 1

Transcript of Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types...

Page 1: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Characterization of

SNMP MIB ModulesJurgen Schonwalder

[email protected]

International University Bremen

Campus Ring 1

28725 Bremen, Germany

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 1

Page 2: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Motivation

• Understanding the contents of MIB modules• Which SMIv2 features are being used heavily?• How many MIB modules are produced over time?• How are MIB modules revised?• What is a typical size of a MIB module?• What is the typical size of encoded values?• . . .

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 2

Page 3: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

MIB Module Sets

MIB Module Set Modules Types Tables Columns Scalars Notifications

IETF 174 377 875 7479 785 195

ATM Forum 11 63 79 777 39 5

Cisco Systems 482 936 1966 16952 3719 611

Enterasys 58 76 128 825 364 28

Juniper Networks 99 170 434 3606 1051 87

All Modules 824 1622 3482 29639 5958 926

• Quality of MIB module sets made available varies:◦ Lack of separation of vendor specific modules from

standard modules◦ Usage of pre-standard modules which differ from the

standard modules◦ SMIv2 problems still exist in some vendor’s modules

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 3

Page 4: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Terms and Metrics

• A type definition is either an ASN.1 type definition or aninvocation of the SMIv2 TEXTUALCONVENTION macro.

• A variable definition is the invocation of the SMIv2OBJECT-TYPE macro introducing a scalar object or acolumnar object.

• A notification definition is the invocation of the SMIv2NOTIFICATION-TYPE macro.

• The MIB module size is defined as the number of type,variable and notification definitions contained in a MIBmodule.

• The index length of a conceptual table is given by thenumber of variables appearing in the SMIv2 INDEXclause.

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 4

Page 5: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Terms and Metrics (cont.)

• The row encoding size of a conceptual row is definedas the number of bytes needed for the BER encoding ofa PDU containing the columnar objects of that row(excluding index columns).

• The notification encoding size of a given notification isdefined as the number of bytes needed for the BERencoding of a notification PDU which includes themandatory objects of that notification.

⇒ The encoding sizes are computed by picking a value inthe middle of the value space of the underlying type.

⇒ For some well-known types, the length of typical valuesis assumed (INET-ADDRESS typically contains a 4-byteIPv4 address).

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 5

Page 6: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

MIB Module Productivity

0

100

200

300

400

500

600

1993199419951996 1997199819992000 2001200220032004

num

ber

of r

evis

ed/p

ublis

hed

mod

ules

year

revised/published MIB modules per year (ALL)

all modulesnew modules

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 6

Page 7: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

IETF MIB Module Productivity

0

20

40

60

80

100

120

140

1993199419951996 1997199819992000 2001200220032004

num

ber

of r

evis

ed/p

ublis

hed

mod

ules

year

revised/published MIB modules per year (IETF)

all modulesnew modules

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 7

Page 8: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

ATMF MIB Module Productivity

0

2

4

6

8

10

1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004

num

ber

of r

evis

ed/p

ublis

hed

mod

ules

year

revised/published MIB modules per year (ATM Forum)

all modulesnew modules

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 8

Page 9: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Cisco MIB Module Productivity

0

50

100

150

200

250

300

350

1993199419951996 1997199819992000 2001200220032004

num

ber

of r

evis

ed/p

ublis

hed

mod

ules

year

revised/published MIB modules per year (Cisco)

all modulesnew modules

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 9

Page 10: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Enterasys MIB Module Productivity

0

20

40

60

80

100

120

140

1993199419951996 1997199819992000 2001200220032004

num

ber

of r

evis

ed/p

ublis

hed

mod

ules

year

revised/published MIB modules per year (Enterasys)

all modulesnew modules

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 10

Page 11: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Juniper MIB Module Productivity

0

20

40

60

80

100

120

140

1993199419951996 1997199819992000 2001200220032004

num

ber

of r

evis

ed/p

ublis

hed

mod

ules

year

revised/published MIB modules per year (Juniper)

all modulesnew modules

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 11

Page 12: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

MIB Module Revision Speed

0

20

40

60

80

100

0 12 24 36 48 60 72 84 96 108 120

revi

sed

mod

ules

[%]

time [months]

module revision speed (for modules that actually get revised)

IETFATM Forum

EnterasysJuniper

Cisco

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 12

Page 13: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

MIB Module Revision Frequency

0

10

20

30

40

50

60

70

80

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

perc

enta

ge o

f rev

ised

mod

ules

[%]

number of revisions

module revisions frequency (for modules that actually get revised)

IETFATM Forum

EnterasysJuniper

Cisco

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 13

Page 14: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Module Size Distribution

0

5

10

15

20

25

0 100 200 300 400 500

num

ber

of m

odul

es

module size

module size distribution (ALL)

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 14

Page 15: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

IETF Module Size Distribution

0

1

2

3

4

5

6

7

8

0 100 200 300 400 500

num

ber

of m

odul

es

module size

module size distribution (IETF)

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 15

Page 16: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

ATMF Module Size Distribution

0

1

2

3

4

5

6

7

8

0 100 200 300 400 500

num

ber

of m

odul

es

module size

module size distribution (ATM Forum)

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 16

Page 17: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Cisco Module Size Distribution

0

2

4

6

8

10

12

14

16

18

0 100 200 300 400 500

num

ber

of m

odul

es

module size

module size distribution (Cisco)

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 17

Page 18: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Enterasys Module Size Distribution

0

1

2

3

4

5

6

7

8

0 100 200 300 400 500

num

ber

of m

odul

es

module size

module size distribution (Enterasys)

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 18

Page 19: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Juniper Module Size Distribution

0

1

2

3

4

5

6

7

8

0 100 200 300 400 500

num

ber

of m

odul

es

module size

module size distribution (Juniper)

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 19

Page 20: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Data Type Usage

ALL IETF ATM Forum

Integer32 18.2% Integer32 18.5% Integer32 20.3%

Counter32 15.6% Counter32 16.1% Counter32 7.7%

Enumeration 8.7% Enumeration 8.4% Gauge32 7.7%

Unsigned32 8.2% Unsigned32 6.6% Enumeration 7.6%

TruthValue 4.7% SnmpAdminString 3.4% TruthValue 7.0%

DisplayString 3.1% OctetString 3.0% Unsigned32 4.6%

Gauge32 3.1% RowStatus 2.6% RowStatus 3.3%

IpAddress 2.5% DisplayString 2.4% PnniNodeId 3.2%

RowStatus 2.4% IpAddress 2.4% PnniNodeIndex 2.5%

SnmpAdminString 2.2% Gauge32 2.3% PnniPortId 2.0%

Counter64 2.2% TruthValue 2.2% PnniLevel 1.9%

OctetString 1.9% InterfaceIndex 1.7% InterfaceIndex 1.7%

InterfaceIndex 1.4% TimeStamp 1.5% AtmLaneAddress 1.7%

TimeStamp 1.2% Counter64 1.3% AtmAddr 1.1%

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 20

Page 21: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Data Type Usage (cont.)

Cisco Enterasys Juniper

Integer32 18.3% Integer32 18.2% Integer32 16.9%

Counter32 17.2% Counter32 10.4% Counter32 10.3%

Enumeration 9.3% Unsigned32 9.3% Unsigned32 7.8%

Unsigned32 9.1% Enumeration 8.2% TruthValue 7.7%

TruthValue 4.9% TruthValue 4.5% Enumeration 7.3%

Gauge32 3.3% OctetString 4.0% IpAddress 6.3%

DisplayString 2.9% EnabledStatus 3.9% DisplayString 5.7%

SnmpAdminString 2.2% SnmpAdminString 2.8% Counter64 5.5%

RowStatus 2.0% InterfaceIndex 2.6% InterfaceIndex 3.9%

Counter64 2.0% MacAddress 2.6% RowStatus 3.8%

IpAddress 1.8% DisplayString 2.3% Gauge32 3.0%

TimeStamp 1.4% TimeTicks 2.2% OctetString 1.7%

OctetString 1.4% RowStatus 2.0% JuniEnable 1.6%

InetAddress 1.2% IpAddress 1.9% InterfaceIndexOrZero 0.8%

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 21

Page 22: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Base Type Usage

Modules Integer32 Unsigned32 Unsigned64 OctetString ObjectId Enum Bits

All 21.5 35.5 3.3 15.0 0.6 23.3 0.9

IETF 22.3 36.5 2.7 16.6 1.9 18.9 1.2

ATM 32.5 27.0 0.0 11.2 0.4 28.1 1.0

Cisco 20.8 38.1 2.8 13.7 0.2 23.6 0.7

Enterasys 18.3 26.7 0.8 22.0 0.2 28.6 3.4

Juniper 21.5 25.6 7.3 17.0 0.2 27.8 0.6

• Looking at all MIB modules, more than 83.6% of allvariables are encoded as ASN.1 INTEGER values

• Close to 80% are 32-bit integer values that fit into 1-5bytes

• Note that the actual usage distribution might be different

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 22

Page 23: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Maximum Access Distribution

Module Set read-write read-only notify no-access

All Modules 32.6% 58.7% 0.5% 8.3%

IETF 29.1% 61.3% 0.2% 9.4%

ATM Forum 43.4% 46.9% 0.2% 9.4%

Cisco Systems 31.6% 60.8% 0.4% 7.2%

Enterasys 40.5% 50.4% 1.3% 7.9%

Juniper 38.8% 49.6% 1.0% 10.7%

• Cisco and IETF modules have a similar ratio ofread-only and read-write objects

• ATM Forum, Enterasys and Juniper have significantlymore writable objects defined

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 23

Page 24: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Index Length Distribution

0

10

20

30

40

50

60

1 2 3 4 5 6 7 8 9 10

usag

e [%

]

index length

index length distribution

IETFATM Forum

EnterasysJuniper

CiscoAll

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 24

Page 25: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Row Encoding Size Distribution

0

10

20

30

40

50

60

70

80

90

100

0 200 400 600 800 1000 1200 1400

scal

ar g

roup

s / c

once

ptua

l row

s [%

]

group / row PDU encoding size [bytes]

cumulative group / row size distribution

IETFATM Forum

EnterasysJuniper

CiscoAll

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 25

Page 26: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Create Encoding Size Distribution

0

10

20

30

40

50

60

70

80

90

100

0 200 400 600 800 1000 1200 1400

row

cre

atio

n P

DU

s [%

]

create PDU encoding size [bytes]

cumulative row creation size distribution (incl. defaults)

IETFATM Forum

EnterasysJuniper

CiscoAll

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 26

Page 27: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Create Encoding Size Distribution

0

10

20

30

40

50

60

70

80

90

100

0 200 400 600 800 1000 1200 1400

row

cre

atio

n P

DU

s [%

]

create PDU encoding sizes [bytes]

cumulative row creation size distribution (excl. defaults)

IETFATM Forum

EnterasysJuniper

CiscoAll

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 27

Page 28: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Notification Encoding Size Distribution

0

10

20

30

40

50

60

70

80

90

100

0 200 400 600 800 1000 1200 1400

notif

icat

ions

[%]

notification PDU encoding size [bytes]

cumulative notification size distribution

IETFATM Forum

EnterasysJuniper

CiscoAll

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 28

Page 29: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Referenced MIB Modules

ALL IETF ATM Forum

SNMPv2-SMI 47.1% SNMPv2-SMI 44.6% SNMPv2-SMI 39.5%

SNMPv2-TC 22.6% SNMPv2-TC 20.3% SNMPv2-TC 32.2%

IF-MIB 6.8% IF-MIB 6.8% IF-MIB 10.8%

INET-ADDRESS-MIB 3.3% PerfHist-TC-MIB 3.2% ATM-TC-MIB 7.0%

CISCO-ITP-TC-MIB 2.2% RMON2-MIB 2.8% ATM-MIB 3.2%

. . . 18.0% . . . 22.3% . . . 7.3%

Cisco Enterasys Juniper

SNMPv2-SMI 48.4% SNMPv2-SMI 37.2% SNMPv2-SMI 49.4%

SNMPv2-TC 22.0% SNMPv2-TC 28.2% SNMPv2-TC 26.6%

IF-MIB 5.8% IF-MIB 8.7% IF-MIB 10.2%

INET-ADDRESS-MIB 4.5% P-BRIDGE-MIB 8.7% Juniper-TC 7.0%

CISCO-ITP-TC-MIB 3.8% INET-ADDRESS-MIB 5.1% HCNUM-TC 1.3%

. . . 15.5% . . . 12.1% . . . 5.5%

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 29

Page 30: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Referenced Variable Definitions

ALL IETF ATM Forum

ifIndex 49.6% ifIndex 43.0% ifIndex 56.7%

entPhysicalIndex 4.5% hrDeviceIndex 4.9% atmVclVpi 16.7%

ifIndex 4.0% applIndex 3.9% atmVclVci 13.3%

vsanIndex 2.8% protocolDirLocalIndex 3.9% atmVplVpi 10.0%

atmVclVpi 2.5% dot1dBasePort 2.6% ifIndex 3.3%

. . . 36.6% . . . 41.7% . . . 0%

Cisco Enterasys Juniper

ifIndex 52.6% ifIndex 55.6% ifIndex 40.5%

entPhysicalIndex 7.0% dot1dBasePort 13.9% atmVclVci 6.0%

ifIndex 5.1% dot1xPaePortNumber 11.1% atmVclVpi 6.0%

vsanIndex 4.4% dot1qVlanIndex 5.6% atmVplVpi 3.6%

cgspInstNetwork 2.7% dot1dStpPort 2.8% acctngSelectionIndex 2.4%

. . . 29.2% . . . 11.0% . . . 41.5%

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 30

Page 31: Characterization of SNMP MIB Modules · 2004-11-16 · MIB Module Sets MIB Module Set Modules Types Tables Columns Scalars Notifications IETF 174 377 875 7479 785 195 ATM Forum 11

Comments?

• Any interesting metrics missing?

• Any other MIB module sets to consider?

• Ideas for better estimation of encoding sizes?

• . . .

slides.tex – Characterization of SNMP MIB Modules – Jurgen Schonwalder – 16/11/2004 – 20:30 – p. 31