simple network management protocol (snmp)...1 ©the mcgraw-hill companies, inc., 2000 © adapted for...

26
1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl , 2003 1 1 Chapter 23 Simple Network Management Protocol (SNMP)

Upload: others

Post on 12-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

1©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200311

Chapter 23

Simple NetworkManagement Protocol

(SNMP)

Page 2: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

2©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200322

CONTENTSCONTENTS• CONCEPT• MANAGEMENT COMPONENTS• SMI• MIB• SNMP• MESSAGES• UDP PORTS• SECURITY

Page 3: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

3©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200333

23.1 Concept

Router/ Switch/ Network Printer running the SNM

Server program

A PC running the SNMP client program

Manager checks Agent’s performanceManager changes Agent’s operating parametersAgent reports warnings to Manager

Page 4: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

4©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200344

23.2 Components of network management on the Internet

SNMP defines the format of packets exchanged between a manager and an agent. It reads and changes the status (values) of objects (variables) in SNMP packets.SMI defines the general rules for naming objects, defining object types (including range and length), and showing how to encode objects and values.

SMI defines neither the number of objects an entity should manage, nor names the objects to be managed nor defines the association between the objects and their values.

MIB creates a collection of named objects, their types, and their relationships to each other in an entity to be managed.

Structure of Management Information Management Information Base

Page 5: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

5©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200355

We can compare the task of network management to the task of writing a program.1. Both tasks need rules. In network

management this is handled by SMI.2. Both tasks need variable declarations.

In network management this is handled by MIB.

3. Both tasks have actions performed by statements.In network management this is handled by SNMP.

Page 6: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

6©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200366

23.3 SMI

Page 7: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

7©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200377

Object Identifiers

All objects managed by SNMP are given an object identifier.

The object identifier always starts with 1.3.6.1.2.1.

Page 8: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

8©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200388

Data Types

Page 9: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

9©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200399

Simple Data Types

Uninterpreted stringVariableOpaque

A string of bitsBITS

A counting value that records time in 1/100ths of a second4TimeTicks

Same as Counter32 but remains at its maximum value (without wrapping) until it is reset

4Gauge32

A 64-bit counter8Counter64

An integer whose value can be incremented from 0 to 232 – 1 then wraps back to 0

4Counter32

An IP address 4IPAddress

An object identifierVariableOBJECT IDENTIFIER

Byte-string up to 64K Bytes longVariableOCTET STRING

0 to 232 - 14Unsigned32

Same as INTEGER4Integer32

An integer -231 to 231 - 14INTEGER

DescriptionSize (in bytes)Type

Page 10: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

10©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031010

Structured Data Types

Page 11: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

11©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031111

TLV Encoding Format

44Opaque30Sequence, sequence of

43TimeTicks05NULL

42Gauge06OBJECT IDENTIFIER

41Counter04OCTET STRING

40IPAddress02INTEGER

Tag (Hex)TypeTag

(Hex)Type

Page 12: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

12©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031212

Length Format

Page 13: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

13©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031313

Example 1: The 32-bit INTEGER 14

Page 14: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

14©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031414

Example 2: OCTET STRING “HI”

Page 15: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

15©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031515

Example 3: The ObjectIdentifier 1.3.6.1

Page 16: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

16©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031616

Example 4: The IPAddress 131.21.14.8

Page 17: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

17©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031717

23.4 Management Information Base (MIB ver. 2)

Each agent (i.e. managed network device) has its own MIB2, a collection of all manageable objects inside the agent.MIB2 classifies the objects into 10 groups

Page 18: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

18©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031818

Accessing MIB Variable.Example: UDP MIB2

udpInDatagram : 1.3.6.1.2.1.7.1The value (instance)

1.3.6.1.2.1.7.1.0udpLocalPort: 1.3.6.1.2.1.7.5.1.2

Page 19: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

19©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031919

udp variables and tables

Page 20: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

20©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032020

Indexes for udpTable

Page 21: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

21©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032121

Lexicographic ordering

Page 22: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

22©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032222

23.5 SNMP PDUs (8 PDUs)

A0

A1

A5

A3

A2

A7

A6

A8

Page 23: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

23©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032323

SNMP PDU format

Page 24: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

24©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032424

23.6 SNMPmessage

Page 25: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

25©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032525

GetRequestmessage

Page 26: Simple Network Management Protocol (SNMP)...1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by 1 Mohamed Aboutabl, 2003 Chapter 23 Simple Network Management Protocol

26©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032626

23.7 Port numbers for SNMP