Introduction to SNMP

SNMP stands for Simple Network Management Protocol – and is one of the most widely spread internet management protocols. It is based on UDP and uses BER (Basic Encoding Rules) for encoding.

SNMP is an internet technology – specified by means of RFCs (Requests For Comments), which are issued through the Internet Engineering Task Force (IETF).

SNMP defines both how to structure management information (data model exposed for management), and how to access it (protocol). According to SNMP, the management information is structured into MIBs (Management Information Bases). A MIB is defined using a formal language called Structure of Management Information (SMI) – whose syntax uses a subset of ASN.1 (Abstract Syntax Notation 1).

When dealing with remote devices, there should be some standard to understand the information stored in the SNMP agent. SNMP accomplishes that through MIB.

The basic verbs of the SNMP protocol are GET, SET, and GETNEXT (SNMPv2 adds GETBULK). An SNMP entity can also send asynchronous events (a TRAP in SNMPv1, a NOTIFICATION or an INFORM in SNMPv2). What you GET and SET are individual variables of simple types (to simplify, strings/integers/enumerations) which can be either scalar – or located in tables.

OBJECT-IDENTIFIERS are at the root of the Structure of Management Information (SMI) used to describe SNMP data.
To make it brief, an OBJECT-IDENTIFIER or OID identifies a node in a global tree whose arcs (segments between parent and child nodes) are identified by numbers.

All SNMP definitions – MIBs, objects, etc… are identified by their OID in this global tree. The root of the OID tree is defined by the ASN.1 standard, and has three nodes at its first level iso, ccitt and joint-iso-ccitt.

The IANA (Internet Assigned Numbers Authority) is responsible for the allocation of these subnodes. And the subnode owned by Sun Microsystems is forty two, leading to the OID:

sun OBJECT IDENTIFIER ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) 42 }

Usually, such an OID would be written – in what we call the dot notation, as: .3.6.1.4.1.42

In fact, Sun Microsystems is responsible for the allocation of any node that falls under the branch:

sun OBJECT IDENTIFIER ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) 42 }

Example of MIB:

Structure of MIB SNMP
Structure of MIB in SNMP

iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) system(1) is readed as:
1.3.6.1.2.1.1

In next article, we will see the terminologies used in SNMP.

Posted

in

by

Tags:


Related Posts

Comments

3 responses to “Introduction to SNMP”

  1. […] used in SNMP Posted by admin on February 23rd, 2011 In Previous article, we have seen that what actually is SNMP.  In this article we will discuss on different […]

  2. blebee Avatar
    blebee

    Good information for beginners

  3. Shashank Avatar
    Shashank

    Hello,

    I am a final year engg student and i am working on a developing a network mapping device which lists out all the devices in a network. Each device should be identified as to what it is. Like a switch, system, bridge etc. I am completely lost and unable to figure out a way which could do the same. Any guidance will be mighty helpful.

    Thank you.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Jitendra Zaa

Subscribe now to keep reading and get access to the full archive.

Continue Reading