SNMPv1, SNMPv2c, and SNMPv3: A Comparative Study of Different SNMP Versions

SNMP Recap and Overview

SNMP (Simple Network Management Protocol) is a widely used protocol for managing and monitoring network devices. It provides a standardized framework for collecting and organizing information about network devices, such as routers, switches, and servers. SNMP allows network administrators to remotely monitor and manage these devices, gather performance data, and receive notifications of any issues or events.

What is SNMP?

SNMP is a protocol that enables the exchange of management information between network devices and a network management system (NMS). It operates on the application layer of the TCP/IP protocol suite and uses a client-server architecture. SNMP allows network administrators to query and modify parameters on SNMP-enabled devices, as well as receive traps, notifications, or information from those devices.

How does SNMP Work?

SNMP operates based on a manager-agent model. The SNMP manager, typically a network management system, collects information from SNMP agents, which are installed on network devices. The manager sends requests to the agents using SNMP protocol operations, such as GET, GETNEXT, SET, and GETBULK. The agents, in turn, respond with the requested information or perform the specified action. SNMP uses a hierarchical structure of management information called the Management Information Base (MIB) to organize and represent the data.

How many versions of SNMPs are there?

There are 3 primary versions of SNMP: SNMPv1, SNMPv2c, and SNMPv3. SNMPv1 is the original version and provides basic functionality for network management. SNMPv2c introduced enhancements and improvements over SNMPv1, such as improved error handling and additional protocol operations. SNMPv3 is the most recent version and offers advanced security features, including authentication and encryption, to protect SNMP communication.

Why Use SNMP, and SNMP Monitoring Tools?

SNMP is widely used because it offers several benefits for network management, including:

  • Simplified management: SNMP provides a standardized approach to managing diverse network devices, allowing for centralized monitoring and control.

  • Real-time monitoring: SNMP allows administrators to monitor network performance metrics, such as bandwidth utilization, CPU usage, and interface status, in real-time.

  • Proactive issue detection: With SNMP, administrators can set up alerts and notifications to be informed of any issues or anomalies on network devices, enabling prompt action to address them.

  • Scalability: SNMP is scalable and can handle large networks with a high number of devices, making it suitable for both small and large-scale network environments.



    By utilizing SNMP monitoring tools, network administrators can leverage the power of SNMP to efficiently manage their network infrastructure, troubleshoot issues, and optimize performance. These tools provide graphical interfaces, comprehensive reporting, and automation capabilities to streamline network management tasks and enhance overall network reliability.

Note that IETF standards-track documents have status of "proposed", "draft", "full", "experimental", or "historic". Note that at this time only the SNMPv1 protocol has widespread usage and is an Internet (full) standard.

SNMP Protocol Versions

There currently exists the following versions of the SNMP protocol:

  • SNMPv1 - (full) the original version, defined by RFC 1157.

  • SNMPsec - (historic) the first attempt to add strong security to SNMPv1, defined by RFCs 1351, 1352, and 1353.

  • SNMPv2p - (historic) party-based SNMP, which was another attempt to add strong security to SNMP, defined by RFCs 1441, 1445, 1446, 1448, and 1449.

  • SNMPv2c - (experimental) community string-based SNMPv2, which was an attempt to combine the protocol operations of SNMPv2 with the security of SNMPv1, defined by RFCs 1901, 1905, and 1906.

  • SNMPv2u - (experimental) user-based SNMPv2, which provided security based on user names and protocol operations of SNMPv2, defined by RFCs 1905, 1906, 1909, and 1910.

  • SNMPv2* (or SNMPv2star) - (experimental) an attempt to add the best features of SNMPv2p and SNMPv2u, defined by unpublished documents found at WEB site owned by SNMP Research (a leading SNMP vendor)

  • SNMPv3 - (to be proposed) another attempt to add strong security to SNMP, defined by not yet published documents of the IETF SNMPv3 WG.

The SNMPv1, SNMPv2c, SNMPv2u, and SNMPv3 protocol messages have a common form, which is an ASN.1 sequence containing a message version field, followed by version dependent fields.

The SNMPsec, SNMPv2p, and SNMPv2* protocol messages have a common form, which is a tagged ASN.1 context specific sequence containing message dependent fields.

SNMP SMI versions

The SMI defines the format for defining managed objects that are accesses via the SNMP protocol, and contains a few administrative assignments. There are currently two versions of the SMI, which are:

  • SMIv1 (also called concise) - (full+informational) this is defined by RFCs 1155, 1212, and 1215. An earlier version defined by RFC 1065 is historic.

  • SMIv2 - (draft) this is defined by RFC 1902, 1903, and 1904. An earlier version is defined by RFCs 1442, 1443, and 1444 and is historic. This earlier version, which has no widely recognized name, defined a few data types which are not supported in the current version. These are "BIT STRING", "UInteger32", and "NsapAddress".

SMIv2 is a backward compatible update of SMIv1, in all cases except for data type Counter64. That is, it is possible to mechanically create a definition of managed objects in the SMIv1 format from a definition in the SMIv2 format except for objects whose data type is Counter64. There is no complete mechanical conversion from definitions of managed objects in the SMIv1 format to the SMIv2 format, since the SMIv2 format contains fields for additional information that must be provided by the designer of the definitions. Also, the SMIv2 format contains contructs to define requirement specifications and to define implementation specifications, not found in the SMIv1 format.

The definition of managed objects is independent of the protocol to access them except for objects with data type of Counter64. That data type does not exist in the SNMPv1 and SNMPsec protocols. A conforming SNMPv1/SNMPsec entity will generate an ASN.1 parse error when parsing a message containing containing a Counter64 data type. RFC 2089 defines the behavior of a conforming bi-lingual agent that has access to objects with Counter64 data type.

At this time there is widespread use and support of both versions of the SMI. This is due in part to the policy in the IETF that new versions of RFCs must specify MIBs in the SMIv2 format.

Simple Comparison of SNMPV1, SNMPV2, AND SNMPV3

SNMP Versions Comparison
SNMPv1 SNMPv2c SNMPv3
Security Community-based security model
Limited security features
No authentication or encryption
Community-based security model
Limited security features
No authentication or encryption
User-based security model (USM)
Advanced security features
Authentication, encryption, access control
Error Handling Limited error handling capabilities Improved error handling Improved error handling
Protocol Operations GET, GETNEXT, SET, TRAP GET, GETNEXT, SET, TRAP
GETBULK, INFORM, SNMPv2 Trap
GET, GETNEXT, SET, TRAP
Data Types Supports simple data types Supports simple data types Supports simple and complex data types
Performance Basic functionality Enhanced functionality Enhanced functionality
Improved efficiency in GETBULK requests
Compatibility Widely supported across devices Widely supported across devices
SNMPv2c compatibility for smooth transition
Widely supported across devices

SNMPv1, SNMPv2c, and SNMPv3 are different versions of the Simple Network Management Protocol, each offering unique features and enhancements. SNMPv1 is the initial version with basic security and limited error handling. SNMPv2c builds upon SNMPv1 by introducing improved error handling, additional protocol operations like GETBULK, and better performance efficiency. SNMPv3, the most advanced version, implements a user-based security model with features such as authentication, encryption, and access control. It also supports complex data types, provides enhanced error handling, and includes advanced features like view-based access control, message integrity, and privacy. With wide compatibility across devices, SNMPv3 offers the highest level of security and functionality, making it the preferred choice for robust network management and monitoring.


© 2021 InterWorking Labs, Inc. dba IWL. ALL RIGHTS RESERVED.
Web: iwl.com
Phone: +1.831.460.7010
Email: info@iwl.com