Data Communication and Networking CH
Data Communication and Networking CH
Data Communication and Networking CH
28.1
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
28.3
28.5
28.6
Note
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.
28.7
Note
SMI defines the general rules for naming objects, defining object types (including range 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.
28.8
Note
MIB creates a collection of named objects, their types, and their relationships to each other in an entity to be managed.
28.9
Note 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.
28.10
28.11
28.12
28.13
Note
All objects managed by SNMP are given an object identifier. The object identifier always starts with 1.3.6.1.2.1.
28.14
28.15
28.16
28.17
28.18
28.19
28.20
Example 28.1
Figure 28.11 shows how to define INTEGER 14.
28.21
Example 28.2
Figure 28.12 shows how to define the OCTET STRING HI.
28.22
Example 28.3
Figure 28.13 shows how to define ObjectIdentifier 1.3.6.1 (iso.org.dod.internet).
28.23
Example 28.4
Figure 28.14 shows how to define IPAddress 131.21.14.8..
28.24
28.25
28.26
28.27
28.28
28.29
28.30
28.31
28.32
28.33
28.34
Example 28.5
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.
28.35
28.37
28.38
28.39