Understanding SNMP – Explained with Examples.

By | December 4, 2023

What is SNMP?

SNMP is an application layer protocol that provides a message format for communication between what are termed managers and agents on a network.

The Simple Network Management Protocol (SNMP) is a widely used protocol for network management. It enables the monitoring and management of network devices like routers, switches, and servers from a central location. It uses a simple architecture that is effective for basic monitoring tasks, making it a fundamental tool in network administration.
SNMP is particularly valuable for its ability to facilitate the collection of network performance data, configuration management, and fault detection and diagnosis.

Uses of SNMP

Network administrators use SNMP to monitor and map network availability, performance, and error rates. SNMP Components include:

SNMP manager: This is a distinct unit with the responsibility to communicate with the SNMP agent configured and connected to the network. This can be in the form of a computer or server used to run one or more network management systems.

Ways of communication includes:

i.) Queries agents ii.)Gets responses from agents iii.)Acknowledges asynchronous events from agents iv.)Sets variables in agents

SNMP Agent: This is a program installed or configured within the network device/agent enabling it to collect the management information which is stored in its database locally and makes it available to the SNMP manager when it is queried for.

Functions of a SNMP agent:

i) Stores and retrieves network management information as defined in the MIB.

ii) Informs and relates an event to the manager.

iii) Collects management information about its local environment

iv) Acts as a proxy for some non–SNMP manageable network node

Management Information Base – MIB

This a virtual database of network management information commonly shared between the Agent and the Manager.

The SNMP manager uses SNMP Agents’ information contained in their database to request the agent for specific information and further translates the information as needed for the Network Management System (NMS).

snmp

copyright Cisco.com

SNMP Versions.

SNMPv1: this is the first version of the Simple Network Management Protocol, which is defined in RFCs 1155 and 1157, which is used to manage and monitor network devices. It operates on a manager-agent model, where a central manager collects information from various agents on the network. SNMPv1 uses community strings for authentication and operates over UDP. However, it has limitations such as lack of security features and limited data types for variables.

SNMPv2:
This is the revised and enhanced version of SNMPv1, focusing on protocol packet types, transport mappings, and MIB structure elements, while still utilizing the SNMPv1 administration structure (“community-based security mechanism”). SNMPv2 also introduced the concept of SNMPv2c, which aimed to address some of the limitations of the original SNMPv2 protocol. This version provided improvements in areas such as message formats, error handling, and notification delivery, making it a more robust and efficient solution for network management tasks.

Additionally, SNMPv2c included support for bulk retrieval operations, allowing for the retrieval of multiple pieces of information in a single request, further enhancing the scalability and performance of SNMP-based management systems.

SNMPv3:
Security is the primary focus of SNMPv3. It also allows for remote configuration of SNMP devices. In addition, SNMPv3 provides encryption and authentication features to ensure secure communication between network devices. This version of SNMP offers enhanced security mechanisms such as message integrity checking and user authentication, making it the most robust and reliable option for managing network devices remotely.

The main features of SNMPv3 include:

Message integrity: This helps ensure that a packet has not been tampered with in transit

Authentication: This helps ensure that the packet came from a known and trusted source

Encryption: This helps to ensure that information cannot be read if the data is captured in transit.

Overall, SNMP is a powerful and versatile protocol that plays a crucial role in network management. Its ability to monitor and manage network devices in a standardized way makes it an essential tool for network administrators. By providing a simple and efficient way to collect and organize information from network devices, SNMP helps to ensure the smooth operation of networks of all sizes. With its wide range of applications and support from a variety of vendors, SNMP continues to be a key component in the world of network management.

How SNMP Works

Cisco Netflow