SNMP 1 2 SNMP is an Internet protocol

  • Slides: 29
Download presentation
SNMP 1

SNMP 1

2 �SNMP is an Internet protocol developed by the IETF. It is designed to

2 �SNMP is an Internet protocol developed by the IETF. It is designed to facilitate the exchange of management information between network elements. By transporting information over the SNMP protocol (such as packets per second and network error rates), network administrators can easily manage network performance and accounting, find and solve network problems, and plan for network growth

3 �SNMP uses the concept of manager and agent. That is, a manager, usually

3 �SNMP uses the concept of manager and agent. That is, a manager, usually a host, controls and monitors a set of agents, usually routers or servers (see Figure 24. 1).

Figure 24. 1 SNMP concept 4

Figure 24. 1 SNMP concept 4

5 SNMP is an application program that allows: � 1. A manager to retrieve

5 SNMP is an application program that allows: � 1. A manager to retrieve the value of an object defined in an agent. � 2. A manager to store a value in an object defined in an agent. � 3. An agent to send an alarm message about an abnormal situation to the manager.

SNMP & The OSI Model

SNMP & The OSI Model

Ports & UDP • SNMP uses User Datagram Protocol (UDP) as the transport mechanism

Ports & UDP • SNMP uses User Datagram Protocol (UDP) as the transport mechanism for SNMP messages Etherne t Frame IP Packet SNMP Message UDP Datagram • Like FTP, SNMP uses two well-known ports to operate: • UDP Port 161 - SNMP Messages • UDP Port 162 - SNMP Trap Messages CRC

Encapsulation 8

Encapsulation 8

9 �To do management tasks, SNMP uses two other protocols: Structure of Management Information

9 �To do management tasks, SNMP uses two other protocols: Structure of Management Information (SMI) and Management Information Base (MIB). In other words, management on the Internet is done through the cooperation of three protocols: SNMP, SMI, and MIB, as shown in Figure 24. 2.

Figure 24. 2 Companion of network management on the Internet 10

Figure 24. 2 Companion of network management on the Internet 10

SNMP 11 �SNMP defines the format of packets exchanged between a manager and an

SNMP 11 �SNMP defines the format of packets exchanged between a manager and an agent. It reads and changes the status of objects (values of variables) in SNMP packets.

SMI 12 �SMI defines the general rules for naming objects, defining object types (including

SMI 12 �SMI defines the general rules for naming objects, defining object types (including range and length), and showing how to encode objects and values.

MIB 13 �MIB creates a collection of named objects, their types, and their relationships

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

Figure 24. 3 Comparing computer programming and network management 14

Figure 24. 3 Comparing computer programming and network management 14

Figure 24. 4 Management overview 15

Figure 24. 4 Management overview 15

SMI 16 �The Structure of Management Information is a component for network management. Its

SMI 16 �The Structure of Management Information is a component for network management. Its functions are: 1. To name objects. 2. To define the type of data that can be stored in an object. 3. To show to encode data for transmission over the network. �SMI is a guideline for SNMP. It emphasizes three attributes to handle an object: name, data type, and encoding method.

SMI 17 SMI data types are divided into three categories: �Simple types �Application-wide types

SMI 17 SMI data types are divided into three categories: �Simple types �Application-wide types �Simply constructed types.

simple types 18 �Integer— A unique value that is a positive or negative whole

simple types 18 �Integer— A unique value that is a positive or negative whole number (including 0). � Octet. String— A unique value that is an ordered sequence of zero or more octets, more commonly called bytes. � Object. ID— A unique value from the set of all object identifiers allocated according to the rules specified in ASN. 1. �Bits— New in SMIv 2, these are zero or more named bits that specify a value.

application-wide types 19 � Network address— Represents an address from a particular protocol family.

application-wide types 19 � Network address— Represents an address from a particular protocol family. Examples are Inet. Address. Type and Inet. Address. � Counter— A nonnegative integer that increments by +1 until it reaches a maximum value, when it is reset to 0 � Gauge— A nonnegative integer that can increase or decrease but that latches at a maximum value. The interface load is an example of a gauge. � Timetick— Hundredths of a second since an event. The time since an interface entered its current state is an example of a tick. � INTEGER— Represents signed, integer-valued information. � Unsigned integer— Represents unsigned integer-valued information.

simply constructed types 20 �Row— References a row in a table. Each element of

simply constructed types 20 �Row— References a row in a table. Each element of the row can be a simple type or an application-wide type. � Table— References a table of zero or more rows. Each row has the same number of columns.

21 TCP/IP Protocol Suite

21 TCP/IP Protocol Suite

Figure 24. 7 22 Encoding format TCP/IP Protocol Suite

Figure 24. 7 22 Encoding format TCP/IP Protocol Suite

23 TCP/IP Protocol Suite

23 TCP/IP Protocol Suite

Interactions between manager and agent 24 Interactions between the SNMP manager and managed network

Interactions between manager and agent 24 Interactions between the SNMP manager and managed network elements (SNMP agents) can be any of three different types of commands: • Read— To monitor managed network elements, SNMP managers read MIB variables maintained by the SNMP agents. • Write— To control managed network elements, SNMP managers write MIB variables stored within the SNMP agents. • Notification— SNMP agents use traps or informs to asynchronously report certain events to SNMP managers. Traps are unacknowledged notifications, and informs are notifications acknowledged by the SNMP manager.

Client Pull & Server Push �SNMP is a “client pull” model The management system

Client Pull & Server Push �SNMP is a “client pull” model The management system (client) “pulls” data from the agent (server). • SNMP is a “server push” model The agent (server) “pushes” out a trap message to a (client) management system

objects 26 �All objects managed by SNMP are given an object identifier. The object

objects 26 �All objects managed by SNMP are given an object identifier. The object identifier always starts with 1. 3. 6. 1. 2. 1.

Figure 24. 5 Object identifier 27

Figure 24. 5 Object identifier 27

Figure 24. 12 28 mib-2 TCP/IP Protocol Suite

Figure 24. 12 28 mib-2 TCP/IP Protocol Suite

Figure 24. 13 29 udp group TCP/IP Protocol Suite

Figure 24. 13 29 udp group TCP/IP Protocol Suite