Network Management (SNMP)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

Network Management

(SNMP)
Raj Jain
The Ohio State University
Columbus, OH 43210
[email protected]
http://www.cis.ohio-state.edu/~jain/

The Ohio State University Raj Jain


1
Overview

q Network Management
q SNMP
q Management information base (MIB)
q ASN.1 Notation

The Ohio State University Raj Jain


2
Network Management
q Management = Initialization, Monitoring, Control
q Manager, Agents, and
Management Information Base (MIB)
Network
Management
Station

MIB Agent Network Agent MIB

Agent MIB

The Ohio State University Raj Jain


3
SNMP
q Based on Simple Gateway Management Protocol
(SGMP)
q SNMP = Simply Not My Problem [Rose]
Simple Network Management Protocol
q Only Five commands
Command Meaning
get-request Fetch a value
get-next-request Fetch the next value (in a tree)
get-response Reply to a fetch operation
set-request Store a value
trap An event
The Ohio State University Raj Jain
4
Management Information Base
q MIBs follow a fixed naming and structuring
convention
⇒ Structure of Management Information (SMI)
q All names are unique
q All nodes of the name tree are assigned numeric
values by standards authorities
iso.org.dod.internet.mgmt.mib.ip.ipInReceives
1.3.6.1.2.1.4.3
q Tables rows are referenced by appending the index

The Ohio State University Raj Jain


5
MIB (Cont)
q All names are specified using a subset of Abstract
Syntax Notation (ASN.1)
q ASN.1 specifies notation (that humans can read) and
encoding (representation and ranges)
q Only INTEGER, OCTET STRING, OBJECT
IDENTIFIER, NULL types
q Only SEQUENCE, SEQUENCE OF, CHOICE
constructors

The Ohio State University Raj Jain


6
Global Naming Hierarchy
ccitt(0) iso (1) joint-iso-ccitt (2)

standard (0) org (3)

iso9314 (9314) dod (6)

fddiMIB (1) internet (1)

directory (1) mgmt(2) experimental (3)private (4)

mib (1) fddi (8)

system (1) interfaces (2) transmission(10)fddimib (73)

The Ohio State University


fddi (15) Raj Jain
7
Variable Category Meaning
sysUpTime system Time since last reboot
ifNumber interfaces # of Interfaces
ifMTU interfaces MTU
ipDefaultTTL ip Default TTL
ipInReceives ip # of datagrams
received
ipForwDatagrams ip # of datagrams
forwarded
icmpInEchos icmp # of Echo requests
received
tcpRtoMin tcp Min retrans time
tcpMaxConn tcp Max connections
allowed
The Ohio State University Raj Jain
8
MIB Definition: Example
ipAddrTable ::= SEQUENCE of ipAddrEntry
ipAddrEntry ::= SEQUENCE {
ipAdEntAddr ipAddress,
ipAdEntIfIndex INTEGER,
ipAdEntNetMask ipAddress,
ipAdEntBcastAddr ipAddress,
ipAdEntReasmMaxSize INTEGER (0..65535)
}
ipAddrEntry { ipAddrTable 1}
ipAdEntNetMask {ipAddrTable 3}
The Ohio State University Raj Jain
9
SNMP Message Format
q In ASN.1 Notation:
SNMP-Message ::= SEQUENCE {
version INTEGER {version-1 (0)},
community OCTET STRING,
data ANY
}

The Ohio State University Raj Jain


10
SNMP Message Types
SNMP-PDUs ::= CHOICE{
get-request GetRequest-PDU,
get-next-request GetNextRequest-PDU,
get-response GetResponse-PDU,
set-request SetRequest-PDU,
trap Trap-PDU
}

The Ohio State University Raj Jain


11
Message Types (Cont)
GetRequestPDU ::= [0]
IMPLICIT SEQUENCE{
request-id RequestID,
error-status ErrorStatus,
error-index ErrorIndex,
variable-bindings VarBindList
}

The Ohio State University Raj Jain


12
SNMPv2
q Improved security: authentication and integrity using
Data Encryption Standard (DES)
q inform request ⇒ Multiple manager coordination
Locking mechanisms prevent multiple managers from
writing at the same time
q get bulk ⇒ Better table handling
q Confirmation option for Traps
⇒ Agents can ensure that trap was received correctly.
q New Error codes: noSuchName, badValue, readOnly
q Reference: RFC 1441
The Ohio State University Raj Jain
13
OSI Net Management Standards
q Common Management Information Protocol (CMIP)
q Common Management Information Service (CMIS)
q CMIP is the management (application layer) protocol
q CMIS is the service interface to CMIP
q M-GET (read attribute), M-SET (write attribute), M-
EVENT-REPORT (report an event), M-ACTION
(perform an action), M-CREATE (create an instance),
M-DELETE (delete an instance)

The Ohio State University Raj Jain


14
Remote Network Monitoring
q RMON Allows network managers to monitor the
traffic on the network
q Network monitors/analyzers promiscuously monitor
the LAN traffic
q RMON allows a central network management station
to communicate with monitors throughout the
network.
q RMON = Monitor MIB
q Allows remote control of monitors
q Allows multiple managers
The Ohio State University Raj Jain
15
A Sample RMON Configuration
Management
Console
PC with
RMON
Router Agent
Local Management
Console with RMON Router

PC with
Router with RMON
RMON Agent Router Agent

The Ohio State University Raj Jain


16
Summary

q Management = Initialization, Monitoring, and Control


q SNMP = Only 5 commands
q Standard MIBs defined for each object
q Uses ASN.1 encoding

The Ohio State University Raj Jain


17

You might also like