![Page 1: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/1.jpg)
28.1
Chapter 28
Network Management:SNMP
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
![Page 2: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/2.jpg)
28.2
28-1 NETWORK MANAGEMENT SYSTEM28-1 NETWORK MANAGEMENT SYSTEM
We can say that the functions performed by a We can say that the functions performed by a network management system can be divided into five network management system can be divided into five broad categories: configuration management, fault broad categories: configuration management, fault management, performance management, security management, performance management, security management, and accounting management.management, and accounting management.
Configuration ManagementFault ManagementPerformance ManagementSecurity ManagementAccounting Management
Topics discussed in this section:Topics discussed in this section:
![Page 3: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/3.jpg)
28.3
Figure 28.1 Functions of a network management system
![Page 4: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/4.jpg)
28.4
28-2 SIMPLE NETWORK MANAGEMENT28-2 SIMPLE NETWORK MANAGEMENT PROTOCOL (SNMP)PROTOCOL (SNMP)
The Simple Network Management Protocol (SNMP) is a The Simple Network Management Protocol (SNMP) is a framework for managing devices in an internet using framework for managing devices in an internet using the TCP/IP protocol suite. It provides a set of the TCP/IP protocol suite. It provides a set of fundamental operations for monitoring and maintaining fundamental operations for monitoring and maintaining an internet.an internet.
ConceptManagement ComponentsStructure of Management Information (SMI)Management Information Base (MIB)SNMP
Topics discussed in this section:Topics discussed in this section:
![Page 5: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/5.jpg)
28.5
Figure 28.2 SNMP concept
![Page 6: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/6.jpg)
28.6
Figure 28.3 Components of network management on the Internet
![Page 7: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/7.jpg)
28.7
SNMP defines the format of packets exchanged between a manager andan agent. It reads and changes the
status (values) of objects (variables) in SNMP packets.
Note
![Page 8: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/8.jpg)
28.8
SMI defines the general rules for naming objects, defining object types (includingrange and length), and showing how to encode objects and values. SMI does not define the number of objects an entity should manage or name the
objects to be managed or define the association between the objects and
their values.
Note
![Page 9: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/9.jpg)
28.9
MIB creates a collection of named objects, their types, and their
relationships to each otherin an entity to be managed.
Note
![Page 10: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/10.jpg)
28.10
We can compare the task of network management to the task of writing a program.
❏ Both tasks need rules. In network management this is handled by SMI.❏ Both tasks need variable declarations. In network management this is handled by MIB.❏ Both tasks have actions performed by statements. In network management this is handled by SNMP.
Note
![Page 11: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/11.jpg)
28.11
Figure 28.4 Management overview
![Page 12: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/12.jpg)
28.12
Figure 28.5 Object attributes
![Page 13: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/13.jpg)
28.13
Figure 28.6 Object identifier
![Page 14: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/14.jpg)
28.14
All objects managed by SNMP are given an object identifier.
The object identifier always starts with 1.3.6.1.2.1.
Note
![Page 15: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/15.jpg)
28.15
Figure 28.7 Data type
![Page 16: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/16.jpg)
28.16
Table 28.1 Data types
![Page 17: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/17.jpg)
28.17
Figure 28.8 Conceptual data types
![Page 18: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/18.jpg)
28.18
Figure 28.9 Encoding format
![Page 19: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/19.jpg)
28.19
Table 28.2 Codes for data types
![Page 20: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/20.jpg)
28.20
Figure 28.10 Length format
![Page 21: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/21.jpg)
28.21
Figure 28.11 shows how to define INTEGER 14.
Figure 28.11 Example 28.1, INTEGER 14
Example 28.1
![Page 22: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/22.jpg)
28.22
Figure 28.12 shows how to define the OCTET STRING “HI”.
Figure 28.12 Example 28.2, OCTET STRING “HI”
Example 28.2
![Page 23: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/23.jpg)
28.23
Figure 28.13 shows how to define ObjectIdentifier 1.3.6.1 (iso.org.dod.internet).
Figure 28.13 Example 28.3, ObjectIdentifier 1.3.6.1
Example 28.3
![Page 24: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/24.jpg)
28.24
Figure 28.14 shows how to define IPAddress 131.21.14.8..
Figure 28.14 Example 28.4, IPAddress 131.21.14.8.
Example 28.4
![Page 25: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/25.jpg)
28.25
Figure 28.15 mib-2
![Page 26: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/26.jpg)
28.26
Figure 28.16 udp group
![Page 27: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/27.jpg)
28.27
Figure 28.17 udp variables and tables
![Page 28: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/28.jpg)
28.28
Figure 28.18 Indexes for udpTable
![Page 29: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/29.jpg)
28.29
Figure 28.19 Lexicographic ordering
![Page 30: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/30.jpg)
28.30
Figure 28.20 SNMP PDUs
![Page 31: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/31.jpg)
28.31
Figure 28.21 SNMP PDU format
![Page 32: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/32.jpg)
28.32
Table 28.3 Types of errors
![Page 33: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/33.jpg)
28.33
Figure 28.22 SNMP message
![Page 34: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/34.jpg)
28.34
Table 28.4 Codes for SNMP messages
![Page 35: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/35.jpg)
28.35
In this example, a manager station (SNMP client) uses the GetRequest message to retrieve the number of UDP datagrams that a router has received. There is only one VarBind entity. The corresponding MIB variable related to this information is udpInDatagrams with the object identifier 1.3.6.1.2.1.7.1.0. The manager wants to retrieve a value (not to store a value), so the value defines a null entity. Figure 28.23 shows the conceptual view of the packet and the hierarchical nature of sequences. We have used white and colored boxes for the sequences and a gray one for the PDU. The VarBind list has only one VarBind.
Example 28.5
![Page 36: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/36.jpg)
28.36
The variable is of type 06 and length 09. The value is of type 05 and length 00. The whole VarBind is a sequence of length 0D (13). The VarBind list is also a sequence of length 0F (15). The GetRequest PDU is of length ID (29). Now we have three OCTET STRINGs related to the security parameter, security model, and flags. Then we have two integers defining maximum size (1024) and message ID (64). The header is a sequence of length 12, which we left blank for simplicity. There is one integer, version (version 3). The whole message is a sequence of 52 bytes. Figure 28.24 shows the actual message sent by the manager station (client) to the agent (server).
Example 28.5 (continued)
![Page 37: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/37.jpg)
28.37
Figure 28.23 Example 28.5
![Page 38: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/38.jpg)
28.38
Figure 28.24 GetRequest message
![Page 39: 28.1 Chapter 28 Network Management: SNMP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display](https://reader035.vdocuments.us/reader035/viewer/2022062516/56649d975503460f94a80483/html5/thumbnails/39.jpg)
28.39
Figure 28.25 Port numbers for SNMP