
SMNP Protocol
In typical SNMP use, one or more administrative computers called managers have the task of monitoring or managing a group of hosts or devices on a computer network . Each managed system executes, at all times, a software component called an agent which reports information via SNMP to the manager.
Essentially, SNMP agents expose management data on the managed systems as variables. The protocol also permits active management tasks, such as modifying and applying a new configuration through remote modification of these variables. The variables accessible via SNMP are organized in hierarchies. These hierarchies, and other metadata (such as type and description of the variable), are described by Management Information Bases (MIBs).
An SNMP-managed network consists of three key components:
- Managed device
- Agent — software which runs on managed devices
- Network management system (NMS) — software which runs on the manager
Management information base (MIB)
SNMP itself does not define which information (which variables) a managed system should offer. Rather, SNMP uses an extensible design, where the available information is defined by management information bases (MIBs). MIBs describe the structure of the management data of a device subsystem; they use a hierarchical namespace containing object identifiers (OID). Each OID identifies a variable that can be read or set via SNMP
Protocol details
SNMP operates in the Application Layer of the Internet Protocol Suite. The SNMP agent receives requests on UDP port 161. The manager may send requests from any available source port to port 161 in the agent. The agent response will be sent back to the source port on the manager. The manager receives notifications ( Traps and InformRequests ) on port 162. The agent may generate notifications from any available port.
All SNMP PDUs are constructed as follows:
| IP header | UDP header | version | community | PDU-type | request-id | error-status | error-index | variable bindings |

