Module 4: Snmpv1 Network Management - Organization & Information Models (Cont.)
Module 4: Snmpv1 Network Management - Organization & Information Models (Cont.)
of CSE, GMIT
SMI
• SMI stand for Structure of Management Information.
• A managed object can be considered to be composed of an object type and an object instance (fig:4.10).
• SMI is concerned only with the object type and not object instance. i.e. the object instance is not defined by SMI
• Object type, which is a data type, has following:
1) The name is represented uniquely by a descriptor and object identifier. For example,
• Every object type (i.e. every name) is uniquely identified by a DESCRIPTOR and an associated OBJECT
IDENTIFIER. (fig:4.11).
• Internet MIB has its OBJECT IDENTIFIER 1.3.6.1, which can be defined as
VTUPulse.com
internet OBJECT IDENTIFIER::{iso org(3) dod(6) 1}
• Any object in the Internet MIB will start with the prefix 1.3.6.1 or internet. For eg, there are 4 objects under the
internet object (fig:4.13)
1) The directory(1) node i reserved for future use of OSI Directory in the Internet.
2) The mgmt(2) is used to identify all IETF-recommended and IAB-approved sub-nodes and objects.
3) The experimental(3) node was created to define objects under IETF experiments.
4) The private(4) node is a heavily used node. Commercial vendors can acquire a number under
enterprises(1),which is under the private(4) node.
1
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
• Defined are defined using primitive types. The primitive types used are NetworkAddress, IpAddress, Counter,
Gauge and TimeTicks.
• NetworkAddress is a choice of the address of the protocol family. For eg, TCP/IP-based Internet family, which
uses the base type IpAddress.
• IpAddress is the conventional four groups of dotted decimal notation of IPv4, for e.g. 190.146.252.255. The 32
bit string is designated as OCTET STRING of length 4,in network byte order.
• Counter is an application-wide data type and is a non-negative integer. It can only increase in value up to a
32-1
maximum of 2 and then wraps around starting from 0. Counter types is useful for defining values of data types
that continually increase such as input packets received on an interface or output packet errors on an interface.
• Gauge is also a non-negative integer, but its value an move either up or down. It pegs at its maximum value of
32-1
2 . Gauge is used for data types whose value increases or decreases such as the number of interfaces that are
active in a router or hub.
• TimeTicks is a non-negative integer and measures time in units of hundredths of a second. Its value indicates in
hundredths of a second the number of units of time between the current instant and the time it was initialized to
32-1
0. The maximum value is 2 .
• Opaque is used to specify octets of binary information. It is an application-wide data type that supports the
capability to pass arbitrary ASN.1 syntax. It is used to create data types based on previously defined data types. Its
size is undefined in SNMPv1, which causes some problem in its implementation.
2
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
• The body of the macro module consists of 3 parts: type notation, value notation and supporting productions.
1) TYPE NOTATION defines the object types in the module and VALUE NOTATION defines the name of the
object,
2) Access can be only one of 4 options: read-only, read-write, write-only or not-accessible,
3) Allowed values for Status are mandatory, optional or obsolete,
3
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
Entry Object
VTUPulse.com
4
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
5
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
OBJECT GROUPS
• Objects that are related are grouped into object groups.
• Object groups facilitate logical assignment of object identifiers.
• One of the criteria for choosing objects to be included in standards is that the object is essential for either fault
or configuration management.
VTUPulse.com
6
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
7
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
8
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
9
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
UDP GROUP
10
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
egpNeighbourLoss and enterpriseSpecific.
2) The specific-trap is a specific code and is generated even when an enterpriseSpecific trap is not
present.
3) The time-stamp is the time elapsed between the last initialization or re-initialization of the element
and the generation of the trap.
11
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
12
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
13
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
14
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
TRAP PDU
• In fig:5.9, the enterprise and agent-address pertain to the system generating the trap.
• The generic-trap consists of following 7 types:
→ coldStart(0):sending protocol entity is reinitializing itself, agent's configuration or protocol entity
implementation may be altered.
→ warmStart(1):sending protocol entity is reinitializing itself, agent's configuration or protocol entity
implementation not altered.
→ linkDown(2):failure of one of the communication links.
→ linkup(3):one of the links has come up.
→ authenticationFailure(4):authentication failure.
→ egpNeighborLoss(5):loss of EGP neighbor.
→ enterpriseSpecific(6):Enterprise-specific trap.
• The integer in parenthesis associated with each name indicates the enumerated INTEGER.
• The specific-trap is a trap that is not covered by the enterpriseSpecific trap.
• Time-stamp indicates the elapsed time since last re-initialization.
VTUPulse.com
15
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
GETNEXTREQUEST-PDU OPERATION
VTUPulse.com
16
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
17
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
18
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
19
Page
Prof. Nandish Kumar D, Dept. of CSE, GMIT
VTUPulse.com
20
Page