SNMP Simple Network Management Protocol

16
1 SNMP Simple Network Management Protocol

description

SNMP Simple Network Management Protocol. SNMP Overview. Define mechanism for remote management of network devices (routers, bridges, etc.) Fundamental principle: all device management done by simple variable value manipulation Approach: - PowerPoint PPT Presentation

Transcript of SNMP Simple Network Management Protocol

Page 1: SNMP Simple Network Management Protocol

1

SNMPSimple Network Management Protocol

Page 2: SNMP Simple Network Management Protocol

2

SNMP Overview

Define mechanism for remote management of network devices (routers, bridges, etc.)

Fundamental principle: all device management done by simple variable value manipulation

Approach: standard means for specifying quantities recognized by

devices protocol for requesting, returning, notifying of changes of

values

Page 3: SNMP Simple Network Management Protocol

3

SNMP Message Protocol

Messages use UDP, ports 161 (requests/responses) and 162 (notifications)

Message types: GetRequest: request values of variables from device GetNextRequest: request value of variable following the

one supplied GetResponse: return values SetRequest: instruct device to set values of variables Trap: from device - notify monitor / manager of value

change

Page 4: SNMP Simple Network Management Protocol

4

SNMP SMI(Structure of Management Information)

Variables recognized by device supplied in MIB (Management Information Base)

text file giving variables and data structures defined using ASN.1

standard variable sets often provided as RFC’s device-specific sets provided by vendors

Management stations parse MIB’s to determine variables available for management

obtain both data structure and management information

Page 5: SNMP Simple Network Management Protocol

5

Example portion of MIB (from RFC 1213)

-- the Interfaces group

-- Implementation of the Interfaces group is mandatory for -- all systems.

ifNumber OBJECT-TYPE SYNTAX INTEGER ACCESS read-only STATUS mandatory DESCRIPTION "The number of network interfaces (regardless of their current state) present on this system." ::= { interfaces 1 }

Page 6: SNMP Simple Network Management Protocol

6

ASN.1 Object Identifiers

Variables identified by globally unique strings of digits ex: 1.3.6.1.4.1.3.5.1.1 name space is hierarchical; tree on next slide

in above, 1 stands for iso, 3 stands for org, 6 stands for dod, 1 stands for internet, 4 stands for private, etc.

Variable names are aliases for digit strings (within MIB)

From previous page: ifNumber ::= { interfaces 1 } interfaces was previously defined in MIB as 1.3.6.1.2.1.2, so

ifNumber = 1.3.6.1.2.1.2.1

Page 7: SNMP Simple Network Management Protocol

7

Partial ASN.1 Object Identifier Tree

Page 8: SNMP Simple Network Management Protocol

8

SNMP Environment

Manager processMIB

SNMP

Network dependent protocols

IP

UDP

Manager process

SNMP

Network dependent protocols

IP

UDP

Manager process

SNMP

Network dependent protocols

IP

UDP

Internetwork

TCP

UserProc.FTPetc.

NetworkManager Gateway Host/User Station

Page 9: SNMP Simple Network Management Protocol

9

SNMP Specific Problems

Work on SNMP security took many many years to finally result in a stable and accepted SNMPv3 specification

Inefficiency of SNMP for retrieving bulk MIB data

Page 10: SNMP Simple Network Management Protocol

10

SNMP Bulk Retrieval Problem

Problem: SNMP shows poor performance when retrieving

several thousands of MIB variables in a single logical transaction

Reasons: Lack of flow control Bandwidth inefficiency due to OID naming

overhead High latency caused by a large number of

request/response interactions

Page 11: SNMP Simple Network Management Protocol

11

Proposal #1: SNMP over TCP

SNMP over TCP gives flow and congestion control for virtually no costs

Originator of a request/response transaction chooses the transport for one or more complete transactions

SNMP engines can close TCP connections at any point in time

SNMP engines may revert to SNMP over UDP when needed

SNMP engines must perform packetizing and connection management

Page 12: SNMP Simple Network Management Protocol

12

Proposal #2: Lossless Payload Compression

Compress and wrap SNMP PDUs in a CompressedPDU

Each SNMP message is compressed and decompressed by itself without any relation to other SNMP messages (stateless compression)

The size of a compressed SNMP message must never exceed the size of the uncompressed message (non-expansion policy)

Support for multiple compression algorithms

Negotiation of compression algorithm via MIB objects

Page 13: SNMP Simple Network Management Protocol

13

Deflate: Deflate achieves high compression ratios of 80 %

on typical MIB-II data Requires noticeable CPU resources on the

sending SNMP engine Interactions with message size constraints make it

difficult to build response messages that send as much data as possible

Proposal #2: Lossless Payload Compression

Page 14: SNMP Simple Network Management Protocol

14

Proposal #3: Get-Subtree / Linked Responses

GetNext(row by row)

CG CR

GetNext(rows in parallel)

CG CR

GetBulk

CG CR

GetSubTree

CG CR

Page 15: SNMP Simple Network Management Protocol

15

Proposal #3: Get-Subtree / Linked Responses

The format of get-subtree PDUs is similar to the format of the get-bulk PDU, except that there is no max-repetitions parameter

Linked response PDUs are ordinary response PDUs where the error-index contains a sequence number if the error-status is noError

Measurements over the loopback interface on a Linux box show that get-subtree is 4.5 times faster compared to get-next walks and 2 times faster than get-bulk walks

Page 16: SNMP Simple Network Management Protocol

16

End of First Lecture