NDM Unit 2
NDM Unit 2
Unit- II
Introduction to SNMP, SNMP v1 model
Organization Model, System overview
SNMP v1 Information model, Structure of Management Information
Managed Objects, MIB-Object Group
System Group, Interfaces Group, Address, Translation group, IP Group, ICMP Group, TCP
Group, UDP Group
SNMP v1Communication model, Functional model
SNMPv2, System Architecture, MIB, Protocol
SNMPv3, Architecture, Applications, MIB
User Based Security Model, Access Control
Introduction to SNMP
What is SNMP?
Simple Network Management Protocol (SNMP) is an application–layer protocol defined by the
Internet Architecture Board (IAB) in RFC1157 for exchanging management information
between network devices.
It is a part of Transmission Control Protocol⁄Internet Protocol (TCP⁄IP) protocol suite.
Introduction to SNMP
What is SNMP?
SNMP (Simple Network Management Protocol) is a widely-used protocol for managing and
monitoring network devices and systems.
It provides a standardized framework for collecting and organizing information about network
devices, their performance, and their health.
SNMP facilitates remote management of network devices, making it a crucial tool for network
administrators.
Introduction to SNMP
Components of SNMP:
1. Managed Devices
2. SNMP Managers (NMS - Network Management Systems)
3. SNMP Agents
4. Management Information Base (MIB)
Introduction to SNMP
Components of SNMP:
Introduction to SNMP
Components of SNMP:
1. Managed Devices:
These are the network devices that are monitored and managed using SNMP.
Examples include routers, switches, servers, printers, and more.
Each managed device contains software called an SNMP Agent that gathers
information and makes it available for retrieval by SNMP managers.
Introduction to SNMP
Components of SNMP:
2. SNMP Managers (NMS - Network Management Systems):
SNMP managers are systems or applications responsible for monitoring and
managing the network.
They send SNMP requests to managed devices to collect data and receive SNMP
traps (unsolicited messages) from devices to alert them about specific events.
Introduction to SNMP
Components of SNMP:
3. SNMP Agents:
SNMP agents are software components residing on managed devices.
They collect and store information about the device's status, performance, and
configuration.
When an SNMP manager sends a request for information, the SNMP agent
responds with the relevant data.
SNMP agents can also send unsolicited traps to SNMP managers to indicate
specific events or issues.
Introduction to SNMP
Components of SNMP:
4. Management Information Base (MIB):
The MIB is a database that stores structured information about the
managed devices.
It defines the structure of managed objects (variables) and their properties.
Each managed device has its own MIB, and SNMP managers use MIBs to
understand what data can be retrieved from the devices.
Introduction to SNMP
SNMP Protocol Operations:
Being the part of TCP⁄ IP protocol suite, the SNMP messages are wrapped as User
Datagram Protocol (UDP) and intern wrapped and transmitted in the Internet Protocol.
The following diagram will illustrate the four–layer model developed by Department of
Defense (DoD).
Introduction to SNMP
SNMP Protocol Operations:
SNMP defines a set of operations that SNMP managers can use to interact with SNMP
agents:
Introduction to SNMP
SNMP Manager (NMS):
This is a Computer running SNMP manager software. It has a connection to the network and communicates
with both the SNMP agents and the MIB.
The manager can initiate SNMP requests (GET, GETNEXT, SET) to the agents and receive traps from them.
Managed Device:
Represented by a router in the diagram. It contains an SNMP agent responsible for gathering and storing
information about the device's status, performance, and configuration.
It is a message sent from the agent upon a request from the manager.
When sent in response to Get messages, it will contain the data requested.
When sent in response to the Set message, it will contain the newly set
The SNMP Protocol v1 and v2c are the most implemented versions of SNMP.
Support to SNMP Protocol v3 has recently started catching up as it is more secured when
SNMPv1:
This is the first version of SNMP protocol, which is defined in RFCs 1155 and 1157
SNMP Versions
SNMPv2c:
This is the revised protocol, which includes enhancements of SNMPv1 in the areas of –
Transport Mappings
SNMPv3 protocol also facilitates remote network monitoring configuration of the SNMP
entities.
It is defined by RFC 1905, RFC 1906, RFC 3411, RFC 3412, RFC 3414, RFC 3415.
SNMP MODEL
SNMP Model
Organization Model
Relationship between network element, agent, and manager
Hierarchical architecture
Information Model
Uses ASN.1 syntax
SMI (Structure of Management Information
MIB (Management Information Base)
Communication Model
Transfer syntax
SNMP over TCP/IP
Communication services addressed by messages
Security framework community-based model
SNMP Organization Model
Network Network
Element Element
(a) One Manager - One Agent Model (b) Multiple Managers - One Agent Model
(a) One Manager-One Agent Model (b) Multiple Managers-One Agent Model
SNMP Organization Model
management agent
SNMP
Manager
Proxy server converts non-SNMP data from non-
Proxy messages
Server
Non-SNMP SNMP
Managed Managed
Objects Objects
SNMP System Overview
SNMP System Overview
SNMP Architecture:
SNMP Architecture:
Get-Next-Request - Sent by manager requesting data on the next MO to the one specified
Get-Response - Agent responds with data for get and set requests from the manager
Object
Object Object
Type Instance
Name:
Syntax: Encoding:
OBJECT
ASN.1 BER
IDENTIFIER
Managed Object:
Object type, which is a Data Type, has a Name, Syntax, and an Encoding Scheme.
Managed Object:
2. A managed object that always has a single instance is called a scalar object.
3. Tabular objects, on the other hand, have multiple instances, such as the rows of a table.
SNMP Information Model
Object
Object Object
Type Instance 3
Object
Instance 2
Name:
Syntax: Encoding: Object
OBJECT
ASN.1 BER Instance 1
IDENTIFIER
Object Name:
Each Object is assigned a unique identifier in SNMP that is called an Object Identifier (OID).
There are two roots for Object Identifiers, they are iso (which is .1) and ccit (which starts with .0).
Most Object Identifiers start with .1.3.6.1 (where 1 = iso, 3 = org, 6 = dod, 1 = internet).
Object Name:
MACROS.
A Macro always starts with the name of the OBJECT-TYPE followed by a Keyword MACRO and
The right side of the Macro definition always starts with BEGIN and ends with END.
SNMP Managed Objects
MACRO FOR MANAGED OBJECTS (RFC1155):
OBJECT-TYPE MACRO ::= BEGIN
TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax)
"ACCESS" Access
"STATUS" Status
VALUE NOTATION ::= value (VALUE ObjectName)
Access ::= "read-only" | "read-write" | "write-only
| "not-accessible"
Status ::= "mandatory" | "optional" | "obsolete"
END
SNMP Managed Objects
AGGREGATE OBJECTS:
A group of objects also called tabular objects.
Can be represented by a table with Columns of objects and Rows of instances
Table of Objects
List of Objects
Objects
SNMP Managed Objects
AGGREGATE OBJECTS:
ipAddrTable OBJECT-TYPE
SYNTAX SEQUENCE OF IpAddrEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"The table of addressing information
relevant to this entity's IP addresses."
::= {ip 20}
Managed Information Base (MIB)
Managed Information Base
MIB -II specified in RFC 1213 in the current standard.
Both MIB I and MIB II can be implemented in SNMP v1.
The MIB is a virtual information store. Managed objects are accessed via this virtual
information base.
Object in MIB are defined using ASN.1.
The SMI (Structure of Managed Information), which defines the mechanism for
describing these objects.
The definition consist of three components – 1) name (OBJECT DESCRIPTOR)
2) syntax (ASN.1)
3) encoding (BER)
SNMP Managed Objects
Object Group;
Objects that are related are grouped into object groups.
Object groups facilitates logical assignments of object identifiers.
Object is essential for either fault and configuration management.
The MIB module structure consists of – 1) module name
2) imports from other modules
3) Definitions of the current module
<module name> DEFINITIONS :: BEGIN
<imports>
<definitions>
END
MIB-II (RFC1213)
MIB-II – Eleven groups are defined in MIB-II.
These groups are nodes under the MIB object mib-2 whose OBJECT IDENTIFIER is
1.3.6.1.2.1.
MIB-II (RFC1213)
2. Interfaces Group – Defines the interfaces of the network and the network parameters
associated with each interface.
5. ICMP Group - Contains information about the implementation and operation of ICMP
at the managed system.
MIB-II (RFC1213)
6. TCP Group - Contains information about the implementation and operation of TCP at the
managed system.
7. UDP Group - Contains information about the implementation and operation of UDP at the
managed system.
8. EGP Group - Contains information about the implementation and operation of EGP at the
managed system.
9. CMOT Group - Placeholder for future use of the OSI model layer protocol, CMIP Over
TCP/IP.
10.Transmission Group - Provides details about the underlying transmission media for each
interface.
11.SNMP Group – Communication protocol group associated with SNMP management.
MIB-II (RFC1213)
1. System Group
It is the basic group in the internet standard MIB. Its elements are the most accessed
managed objects. system
(mib-2 1)
System group is mandatory on both the agent and manager.
It has 7 entities -
sysContact (4)
Defines the interfaces of the network and the network parameters associated with each
interface.
If there is more than one interface in the system, then the group describes the parameters
The network management system would combine information obtained from the various
The interfaces group specifies the number of interfaces and managed objects in a network
component.
ifNumber ifTable
(1) (2)
ifEntry
(1)
2) IP Routing Table
ipOutNoRoutes (12)
ipAddrEntry
(ipAddrTable 1)
ipAdEntReasmMaxSize (5)
ipAdEntAddr (1)
ipAdEntBcastAddr (4)
ipAdEntIfIndex (2)
ipAdEntNetMask
(3)
But access to multiple entries depends on the table-access mechanism defined by network
management protocol.
MIB-II (RFC1213)
4. IP Group:
IP Address Routing Table –
ipRouteTable
(ip 21)
ipRouteEntry
ipRouteTable (1)
ipNetToMediaTable
(ip 22)
ipNetToMediaEntry (1)
other(1),
invalid(2),
dynamic(3),
static(4)
= ARP Table
MIB-II (RFC1213)
5. ICMP Group - Contains information about the implementation and operation of
icmp
ICMP at the managed system. (mib-2 5)
2) tcpConnLocalPort
3) tcpConnRemAddress
4) tcpConnRemPort
MIB-II (RFC1213)
6. TCP Group - tcp
(mib-2 6)
tcpOutRsts (15)
tcpRtoAlgorithm (1)
tcpInErrors (14)
tcpRtoMin (2)
tcpConnTable 13)
tcpRtoMax (3)
tcpRetranSegs (12)
tcpMaxConn (4)
tcpActiveOpens (5) tcpOutSegs (11)
tcpPassiveOpens (6) tcpInSegs (10)
tcpAttemptFails (7) tcpCurrEstab (9)
tcpEstabResets (8)
tcpConnEntry
(1)
tcpConnLocalPort (3)
udpEntry
(1)
udpLocAddress udpLocalPort
(1) (2)
Network elements have built-in management agents if they are managed elements.
There are 3 goals – 1) Minimize the number & complexity of mgmt. functions
Set-request message is used to initiate & edit the parameters of the network element.
The number of unsolicited messages, in the form of traps, is limited to make the
2) specific-trap
3) time-stamp
The specific-trap is a specific code and it is generated whenever a particular event occurs.
The time-stamp trap is a time elapsed between the last initialization of the element and the
generation of the trap.
SNMP v1 Communication Model
The SNMP Administrative Model :
The management stations and elements are called SNMP application entities.
The pairing of the two entities is called SNMP community.
The SNMP name called community, is specified by octets.
Multiple pairs can belong to the same community. Here multiple manager can
communicate with single agent.
SNMP Manager SNMP Manager SNMP Manager
Authentic Messages
Authentication Scheme
SNMP Agent
Both the source and receiver know the common encryption and decryption algorithm.
The Agent may be permitted to view only a subset of the network objects – is called the
community MIB view.
Each community name assigned an SNMP access mode, either READ_ONLY or
READ_WRITE.
SNMP v1 Communication Model
The SNMP Administrative Model :
MIB view.
SNMP Agent
READ- READ-
SNMP Access Mode
ONLY WRITE
Combination of SNMP MIB view and SNMP access mode is called Community Profile.
The SNMP Agent with READ_WRITE access mode can perform all operations – get, set,
If the SNMP Agent with READ_ONLY access mode can perform only get and trap
Community
Community Profile 1
Agent 1
Community Profile 2 Agent 2
SNMP v1 Communication Model
The SNMP Access Policy: Manager 1
(Community 1)
Community 1
Community Profile 1
Agent 1
Community Profile 2 Agent 2
Manager 3
(Community 1, Community 2)
Community 2
Community Profile 3
Agent 3
Community Profile 4 Agent 4
Manager 2
(Community 2)
SNMP Manager
(Community 1)
SNMP
Proxy Agent
Agent
non-SNMP
SNMP Community
Community
There are five areas of functions - Configuration, Fault, Performance, Security, and
Accounting addressed by the OSI mode.
The Security and Privacy - related issues, were addressed as part of the SNMP protocol
entity specifications.
The Security functions are built in as part of the implementation of the protocol entity. The
Community specifications and authentication scheme partially address these
requirements.
SNMP v1 Functional Model
The Configuration management in general is addressed by the specific network
management system.
Fault management is addressed by error counters built into the agents. They can be read
by the SNMP manager and processed. Traps are useful to monitor network elements and
interfaces going up and down.
Performance counters are part of the SNMP agent MIB. It is the function of the SNMP
manager to do performance analysis.
The administrative model in protocol entity specifications addresses security function in
basic SNMP.
The accounting function is not addressed by the SNMP model.
SNMP v2
SNMP v2
SNMP v2 released in the year 1996 and it was commissioned by IETF.
It is a community based administrative framework.
It is defined in - RFC-1441,1452
RFC-1909, 1910
RFC- 1901 to 1908
Major Changes in SNMP v2:
The lack of security enhancements, major improvements to the architecture have been made
in SNMPv2.
1. Bulk Data Transfer Message: Two Significant messages were added. The first is the ability
to request and receive bulk data using the get-bulk message. This speeds up the get-next-
request process and is especially useful to retrieve data tables.
SNMP v2
Major Changes in SNMP v2:
2. Manager to Manager Messages: The second additional message deals with the
interoperability of two network management system – extend the communication between
the management system
3. Structure of Management Information: SMI v2 is divided into three parts – 1) Module
Definition 2) Object Definition and 3) Trap Definition
MODULE-IDENTITY – Defines Information Module
OBJECT-TYPE – Defines the syntax and semantics of a managed object.
NOTIFICATION-TYPE – Defines the Trap messages.
SNMP v2
Major Changes in SNMP v2:
4. Textual Conventions – are designed to help define new data types.
5. Conformance Statements – help the customer objectively compare the features of the
various products. Keep vendors open to their products compatibility with SNMP
6. Table Enhancements – Conceptual rows can be added or deleted from an aggregate object
table. A table can be expanded by augmenting another table to it.
7. MIB Enhancements – The Internet node in the MIB has two new sub-groups 1) security
and 2) snmpV2. The SNMP entities in version 2 are hybrid – some are from SNMP group
and rest of them from newly created snmp V2 node.
8. Transport Mappings – UDP remains the preferred transport protocols; however, other
SNMP v2
Major Changes in SNMP v2:
SNMP v2 System Architecture
SNMP v2 System Architecture
SNMP v2 System Architecture
There are two significant enhancement in the SNMPv2 architecture –
1. There are seven messages instead of five messages
2. Two manager application can communicate with each other at peer level
3. In SNMPv2, both Agent and Manager can generate response message.
Additional Messages –
4. Inform-request:
Manager Application to Manager Application
The receiving Manager response with a response message
It makes two network management systems interoperability
SNMP v2 System Architecture
Additional Messages –
2. Get-bulk-request:
Generated Manager Application
Transfer a large data from Agent to Manager. Example – Retrieval of table data
The retrieval is fast and efficient.
3. snmpV2-Trap:
Similar to Trap messages in SNMPv1
SNMPv2 Structure of Management Information
SNMPv2 Structure of Management Information
SMIv2 is divided into 3 parts – 1) Module Definition
2) Object Definition
3) Notification Definition
Module Definition:
Module, which is a group of assignments that are related with each other.
Module definition describes the semantics of an information module.
Added to provide administrative information regarding information module and revision
history.
MODULE-IDENTITY macro defines the module definitions
SNMPv2 Structure of Management Information
Module Definition:
SNMPv2 Structure of Management Information
Object Definition:
SNMP v3 was developed to meet the need for better security in SNMP management.
It defined in -
Data origin verification to ensure that the request or response originates from the source
that it claims to have come from.
Message timeliness checking and, data confidentiality to protect against eavesdropping.
SNMP v3 Architecture
An SNMP management network consists of several nodes, each with an SNMP entity.
They interact with each other in monitoring and managing the network and its resources.
1. Naming of Entities
2. Naming of Identities
Elements of an Entity:
An SNMP entity comprise an SNMP engine and a set of applications.
A dispatcher,
SNMP Engine:
SNMP Engine:
SNMP v3 Architecture