General Networking Tutorial: Simple Network Management Protocol(SNMP)
Simple Network Management Protocol (SNMP)
Background: The Simple Network Management Protocol (SNMP) is an application layer protocol that facilitates the exchange of management information between network devices. It is part of the Transmission Control Protocol/Internet Protocol (TCP/IP) protocol suite. SNMP enables network administrators to manage network performance, find and solve network problems, and plan for network growth.
Two versions of SNMP exist: SNMP version 1 (SNMPv1) and SNMP version 2 (SNMPv2). Both versions have a number of features in common, but SNMPv2 offers enhancements, such as additional protocol operations. Standardization of yet another version of SNMP—SNMP Version 3 (SNMPv3)—is pending. This chapter provides descriptions of the SNMPv1 and SNMPv2 protocol operations.
SNMP COMPONENTS: An SNMP-managed network consists of three key components: Managed devices, agents, and network-management systems (NMSs). A managed device is a network node that contains an SNMP agent and that resides on a managed network. Managed devices collect and store management information and make this information available to NMSs using SNMP. Managed devices, sometimes called network elements, can be routers and access servers, switches and bridges, hubs, computer hosts, or printers. An agent is a network-management software module that resides in a managed device. An agent has local knowledge of management information and translates that information into a form compatible with SNMP.
An NMS executes applications that monitor and control managed devices. NMSs provide the bulk of the processing and memory resources required for network management. One or more NMSs must exist on any managed network. SNMP Basic Commands: Managed devices are monitored and controlled using four basic SNMP commands: read, write, trap,and traversal operations.
The read command is used by an NMS to monitor managed devices. The NMS examines different variables that are maintained by managed devices.
The write command is used by an NMS to control manageddevices.The NMS changes the values of variables stored within managed devices.
The trap command is used by managed devices to asynchronously report events to the NMS.
When certain types of events occur, a managed device sends a trap to the NMS.
Traversal operations are used by the NMS to determine which variables a managed device supports and to sequentially gather information in variable tables, such as a routing table.
SNMP Management Information Base A Management Information Base (MIB) is a collection of information that is organized hierarchically. MIBs are accessed using a network-management protocol such as SNMP. They are comprised of managed objects and are identified by object identifiers.
A managed object (sometimes called a MIB object, an object, or a MIB) is one of any number of specific characteristics of a managed device. Managed objects are comprised of one or more object instances,which are essentially variables.
Two types of managed objects exist, scalar and tabular:
Scalar objects define a single object instance. Tabular objects define multiple related object instances that are grouped in MIB tables.
An example of a managed object is atInput, which is a scalar object that contains a single object instance, the integer value that indicates the total number of input AppleTalk packets on a router interface. An object identifier (or object ID) uniquely identifies a managed object in the MIB hierarchy. The MIB hierarchy can be depicted as a tree with a nameless root, the levels of which are assigned by different organizations.
Vendors can define private branches that include managed objects for their own products. MIBs that have not been standardized typically are positioned in the experimental branch.
SNMP Management SNMP is a distributed-management protocol. A system can operate exclusively as either an NMS or an agent, or it can perform the functions of both. When a system operates as both an NMS and an agent, another NMS might require that the system query manage devices and provide a summary of the information learned, or that it report locally stored management information.
SNMP Security SNMP lacks any authentication capabilities, which results in vulnerability to a variety of security threats. These include masquerading occurrences, modification of information, message sequence and timing modifications, and disclosure. Masquerading consists of an unauthorized entity attempting to perform management operations by assuming the identity of an authorized management entity. Modification of information involves an unauthorized entity attempting to alter a message generated by an authorized entity so that the message results in unauthorized accounting management or configuration management operations. Message sequence and timing modifications occur when an unauthorized entity reorders, delays, or copies and later replays a message generated by an authorized entity.
Disclosure results when an unauthorized entity extracts values stored in managed objects, or learns of notifiable events by monitoring exchanges between managers and agents. Because SNMP does not implement authentication, many vendors do not implement Set operations, thereby reducing SNMP to a monitoring facility.
SNMP Interoperability As presently specified, SNMPv2 is incompatible with SNMPv1 in two key areas: message formats and protocol operations. SNMPv2 messages use different header and protocol data unit (PDU) formats than SNMPv1 messages. SNMPv2 also uses two protocol operations that are not specified in SNMPv1. Furthermore, RFC 1908 defines two possible SNMPv1/v2 coexistence strategies: proxy agents and bilingual network-management systems.
Bilingual Network-Management System Bilingual SNMPv2 network-management systems support both SNMPv1 and SNMPv2. To support this dual-management environment, a management application in the bilingual NMS must contact an agent.
The NMS then examines information stored in a local database to determine whether the agent supports SNMPv1 or SNMPv2. Based on the information in the database, the NMS communicates with the agent using the appropriate version of SNMP.
SNMP Reference: SNMPv1 Message Formats SNMPv1 messages contain two parts: a message header and a protocol data unit (PDU) SNMPv1 message headers contain two fields: Version Number and Community Name.
The following descriptions summarize these fields:
• Version number—Specifies the version of SNMP used. • Community name—Defines an access environment for a group of NMSs.
NMSs within the community are said to exist within the same administrative domain. Community names serve as a weak form of authentication because devices that do not know the proper community name are precluded from SNMP operations.
SNMPv1 Protocol Data Unit: SNMPv1 PDUs contain a specific command (Get, Set, and so on) and operands that indicate the object instances involved in the transaction. SNMPv1 PDU fields are variable in length.
SNMP Reference: SNMPv2 Message Format SNMPv2 messages consist of a header and a PDU.
SNMPv2 Protocol Data Unit SNMPv2 specifies two PDU formats, depending on the SNMP protocol operation. SNMPv2 PDU fields are variable in length.
• PDU type—Identifies the type of PDU transmitted (Get, GetNext, Inform, Response, Set, or Trap). • Request ID—Associates SNMP requests with responses. • Error status—Indicates one of a number of errors and error types. Only the response operation sets this field. Other operations set this field to zero. • Error index—Associates an error with a particular object instance. Only the response operation sets this field. Other operations set this field to zero. • Variable bindings—Serves as the data field of the SNMPv2 PDU. Each variable binding associates a particular object instance with its current value (with the exception of Get and GetNext requests, for which the value is ignored).
Review Questions:
Q—What are MIBs, and how are they accessed? A—A Management Information Base (MIB) is a collection of information that is organized hierarchically. MIBs are accessed using a network-management protocol such as SNMP. They are comprised of managed objects and are identified by object identifiers.
Q—SNMP uses a series of _____ and _____to manage the network. A—Gets and Puts. SNMP uses a Get object and a Put object to manage devices on a network such as get counters.
Q—Name three of the seven fields of the SNMP v2 GETBULK. A—PDU Type, Request ID, Nonrepeaters, Max Repetitions, Variable Bindings (the variable bindings consists of variable object fields that make up the three remaining fields).
|
| Next Steps: |
| Rate Me! |
Avg Visitor Rating:  Number of Ratings : 5 Votes |
|
|
|
|
|
|
Send Message
|
|
| |
|
|
| Signup / Login To View the Solution or Provide Comments |
|
|
|
|
|
|
Categories
Options
Most Popular Tutorial
Most Popular Solution No Records!
Top Rated
Top Rankers
Overall
1. jawahar (200)
2. radhaa_it (100)
3. sakthig (50)
4. irosoff (50)
Yearly -2008
No Rankings!
|