# SNMP - Simple Network Management Protocol
## What is SNMP
SNMP, the Simple Network Management Protocol, is an application layer protocol used for managing and monitoring network devices. It allows network administrators to query devices such as routers, switches, servers, printers, and other networked equipment for status information, performance statistics, and configuration data. SNMP also allows administrators to configure device settings and receive automatic notifications called traps when significant events occur. SNMP is widely used in network management systems and monitoring tools.
## SNMP Architecture
SNMP uses a manager-agent architecture. The SNMP manager is the network management station, which is typically a software application running on a dedicated server or administrator's workstation. The SNMP agent is software running on each managed device that collects and stores management information. The agent responds to queries from the manager and can send traps to notify the manager of events.
## Management Information Base
The Management Information Base, or MIB, is a hierarchical database that defines the information available on a managed device. The MIB is organized as a tree structure where each node has a unique object identifier. Each piece of information that can be monitored or configured is represented as an object in the MIB with a unique identifier. Standard MIBs define common objects available on all network devices, while vendor-specific MIBs define additional objects specific to a particular manufacturer's equipment.
## SNMP Operations
SNMP defines several operations for communicating between managers and agents. The Get operation allows the manager to retrieve the value of a specific object from an agent. The GetNext operation retrieves the next object in the MIB tree. The GetBulk operation, introduced in SNMP version 2, retrieves large amounts of data efficiently. The Set operation allows the manager to configure a writable object on the agent. The Trap operation allows the agent to send an unsolicited notification to the manager when a significant event occurs. The Inform operation is similar to a trap but requires the manager to acknowledge receipt.
## SNMP Versions
SNMPv1 is the original version with limited security based on community strings, which are essentially plaintext passwords. SNMPv2c improved performance with bulk operations and uses community strings like version 1. SNMPv3 added strong security with authentication using MD5 or SHA and encryption using DES or AES. SNMPv3 is the recommended version for new deployments because of its security features.Back to Subject