Connected: An Internet Encyclopedia
SNMP Protocol Overview

Top: Connected: An Internet Encyclopedia
Up: Topics
Up: Functions
Up: Network Management

Search: |  | Search Depth: |
Search Type: | String RegEx | Search Options: | NoCase WholeWord

### SNMP Protocol Overview

The Simple Network Management Protocol (SNMP) is essentially a request-reply protocol running over UDP (ports 161 and 162), though TCP operation is possible. SNMP is an asymmetric protocol, operating between a management station (smart) and an agent (dumb). The agent is the device being managed - all its software has to do is implement a few simple packet types and a generic get-or-set function on its MIB variables. The management station presents the user interface. Simple management stations can be built with UNIX command-line utilities. More complex (and expensive) ones collect MIB data over time and use GUIs to draw network maps.

SNMP's packet formats are described using Abstract Syntax Notation 1 (ASN.1), one of ISO's "Open" protocols. ASN.1 basically fills the role of XDR, but does so differently. ASN.1, like all OSI standard documents, is not freely available on-line.

An SNMP operation takes the form of a Protocol Data Unit (PDU), basically a fancy word for packet. Version 1 SNMP supports five possible PDUs:

- GetRequest / SetRequest supplies a list of objects and, possibly, values they are to be set to (SetRequest). In either case, the agent returns a GetResponse.

- GetResponse informs the management station of the results of a GetRequest or SetRequest by returning an error indication and a list of variable/value bindings.

- GetNextRequest is used to perform table transversal, and in other cases where the management station does not know the exact MIB name of the object it desires. GetNextRequest does not require an exact name to be specified; if no object exists of the specified name, the next object in the MIB is returned. Note that to support this, MIBs must be strictly ordered sets (and are).

- Trap is the only PDU sent by an agent on its own initiative. It is used to notify the mangagement station of an unusual event that may demand further attention (like a link going down). In version 2, traps are named in MIB space. Newer MIBs specify management objects that control how traps are sent.

Connected: An Internet Encyclopedia
SNMP Protocol Overview