Simple Network Management Protocol
Simple Network Management Protocol
Simple
Simple Network
Network
Management
Management Protocol
Protocol
By : Amin Komeili
[email protected]
m
Contents
1- SNMP & Network Management History & RFCs
2- What is Network Management?
3- What is SNMP?
4- Advantages of using SNMP
5-Ports and protocol (L4)
6- Structure of Management Packet
7- Structure of Management Information (SMI)
8-Management Information Base (MIB)
9- Simple Network Management Protocol (SNMP)
10-Snmp Versions
11- SNMPv1 & SNMPv2 Message Format
12-SNMP Traps
13- SNMPv3 Security Models & Levels
14- SNMPv3 Message Format
15- SNMP Disadvantage
SNMP
SNMP&&Network
NetworkManagement
Management History
History
1
1983 - TCP/IP replaces ARPANET at U.S. Dept. of Defense, effective birth of Internet
First model for net management - HEMS - High-Level Entity Management System (RFCs
1021,1022,1024,1076)
1987 - ISO OSI proposes CMIP - Common Management Information Protocol, and CMOT
(CMIP over TCP) for the actual network management protocol for use on the internet
Nov. 1987 - SGMP - Simple Gateway Monitoring protocol (RFC 1028)
1989 - Marshall T. Rose heads up SNMP working group to create a common network
management framework to be used by both SGMP and CMOT to allow for transition to
CMOT
Aug. 1989 - “” defined (RFCs 1065, 1066, 1067) Internet-standard Network
Management Framework
Apr. 1989 - SNMP promoted to recommended status as the de facto TCP/IP network
management framework (RFC 1098)
June 1989 - IAB committee decides to let SNMP and CMOT develop separately
May 1990 - IAB promotes SNMP to a standard protocol with a recommended status
(RFC 1157)
Mar. 1991 - format of MIB2 and traps defined (RFCs 1212, 1215)
TCP/IP MIB definition revised to create SNMPv1 (RFC 1213)
SNMP RFC’s 2
RFC Description Published Current Status
1065 SMIv1 Aug-88 Obsoleted by 1155
1066 SNMPv1 MIB Aug-88 Obsoleted by 1156
1067 SNMPv1 Aug-88 Obsoleted by 1098
1098 SNMPv1 Apr-89 Obsoleted by 1157
1155 SMIv1 May-90 Standard
1156 SNMPv1 MIB May-90 Historic
1157 SNMPv1 May-90 Standard
1158 SNMPv1 MIB-II May-90 Obsoleted by 1213
1212 SNMPv1 MIB definitions Mar-91 Standard
1213 SNMPv1 MIB-II Mar-91 Standard
1215 SNMPv1 traps Mar-91 Informational
1351 Secure SNMP administrative model Jul-92 Proposed Standard
1352 Secure SNMP managed objects Jul-92 Proposed Standard
1353 Secure SNMP security protocols Jul-92 Proposed Standard
1441 Introduction to SNMPv2 Apr-93 Proposed Standard
1442 SMIv2 Apr-93 Obsoleted by 1902
1443 Textual conventions for SNMPv2 Apr-93 Obsoleted by 1903
1444 Conformance statements for SNMPv2 Apr-93 Obsoleted by 1904
1445 SNMPv2 administrative model Apr-93 Historic
1446 SNMPv2 security protocols Apr-93 Historic
1447 SNMPv2 party MIB Apr-93 Historic
1448 SNMPv2 protocol operations Apr-93 Obsoleted by 1905
1449 SNMPv2 transport mapping Apr-93 Obsoleted by 1906
1450 SNMPv2 MIB Apr-93 Obsoleted by 1907
1451 Manger-to-manger MIB Apr-93 Historic
1452 Coexistence of SNMPv1 and SNMPv2 Apr-93 Obsoleted by 1908
1901 Community-Based SNMPv2 Jan-96 Experimental
1902 SMIv2 Jan-96 Draft Standard
1903 Textual conventions for SNMPv2 Jan-96 Draft Standard
1904 Conformance statements for SNMPv2 Jan-96 Draft Standard
1905 Protocol operations for SNMPv2 Jan-96 Draft Standard
1906 Transport mapping for SNMPv2 Jan-96 Draft Standard
1907 SNMPv2 MIB Jan-96 Draft Standard
1908 Coexistence of SNMPv1 and SNMPv2 Jan-96 Draft Standard
1909 Administrative infrastructure for SNMPv2 Feb-96 Experimental
1910 User-based security for SNMPv2 Feb-96 Experimental
What
What is is Network
Network
3
Management?
Management?
Network management is the process of controlling a
complex data network to maximize its efficiency
and productivity
The overall goal of network management is to help with the
complexity of a data network and to ensure that data
can go across it with maximum efficiency and
transparency to the users
• Configuration
Basic tasks that fall under this category are:
Management
Configuration Management
•• Keeping
Keeping track
track of
of device
device settings
settings and
and how
how they
they function
function (-
(- inventory,
inventory,
configuration,
configuration, ..)
..)
• Fault Management
•• Dealing
Dealing with
with problems
problems and
and emergencies
emergencies in
in the
the network
network (router
(router stops
stops
routing,
routing, server
server loses
loses power,
power, etc.)
etc.)
• Performance Management
•• How
How smoothly
smoothly is
is the
the network
network running?
running?
•• Can
Can itit handle
handle the
the workload
workload itit currently
currently has?
has?
•• ## of
of packets
packets dropped,
dropped, timeouts,
timeouts, … …
What
What is
is SNMP?
SNMP? 4
Ethernet
Frame IP CRC
Packet
UDP
SNMP Message
Datagram
root
0 1 2
ccitt iso joint-iso-ccitt
3
reg 1 member 2 org 1.3.6.1.2.1
authority body 6
dod
1.3.6.1.2.1.2 1
internet 1.3.6.1.4.1
1
directory mgmt 2 4
private
1 1
MIB II enterprises
Name:
• The SMI, requires that each managed object (such as a
router, a variable in a router, a value) have a unique name.
• To name objects globally, SMI uses an “Object Identifier”,
which is a hierarchical identifier based on tree structure.
• Tree structure starts with an unnamed root, each object can
be defined by using a sequence of integers separated by
dots (used by SNMP).
• Tree structure can also define an object by using a
sequence of textual names separated by dots (used by
people).
- for example:
iso.org.dod.internet.mgmt.mib = 1.3.6.1.2.1
The objects that are used in SNMP are located under mib
object, so their identifiers always starts with 1.3.6.1.2.1
Structure of the SMI Object Name
Hierarchy 13
o Within iso(1), the ISO has created a subtree for use by other
organizations, called org(3).
ccitt(0): For ITU (formerly the CCITT) standards
Type of data:
• The second attribute of an object is the type of data stored
in it.
• To define the data type, SMI uses fundamental Abstract
Syntax Notation 1 (ASN.1) definitions and adds some new
definitions i.e. SMI is both a subset and superset of ASN.1.
• It has 2 categories of data types: simple and structured.
Structure of SMI 16
Type of data:
• Simple data type: the first five are from ASN.1; next
seven are defined by SMI.
Type Size Description
INTEGER 4 bytes An integer with a value between -231 and 231-1
http://www.oidview.com/mibs
MIB (Management Information Base) Private 27
MIB (Management Information Base) Private
28
29
Private MIB Registration
Companies can register their private MIB extensions in the
global MIB tree by contacting the Internet Assigned Numbers
Authority (IANA).
http://www.iana.org/
Currently assigned enterprise subtrees
ftp://ftp.isi.edu/in-notes/iana/assignments/enterprise-numbers
31
Comparing computer programming and 30
network management
31
SNMP
SNMP Versions
Versions
• SNMPv1 is the recommended standard
• SNMPv2 has become split into:
Security
Model
msgID msgMaxSize msgFlags msgSecurityModel
Specific
NoAuthNoPriv
AuthPriv
SNMP
Disadvantages 41
• One such problem is the inefficiency of SNMP for
retrieving bulk MIB data.
- SNMP shows poor performance when retrieving
several thousands of MIB variables in a single logical
transaction.
Reasons:
– CPU overhead
– Bandwidth inefficiency due to OID naming
overhead
– High latency caused by a large number of
request/response interactions.