Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SNMP v1,v2c and v3 trap difference

Tags:

snmp

Explain the difference between v1, v2c and v3 Traps PDU/format.

like image 893
Kanagavelu Sugumar Avatar asked Dec 30 '11 11:12

Kanagavelu Sugumar


People also ask

What are the differences between SNMP v1 v2 and v3?

Performance and security limitations. SNMPv3 focuses on improving the security aspect. Implements SNMP v1 and v2 specifications along with proposed new features. The "EngineID" Identifier in SNMPv3 uniquely identifies each SNMP entity.

What is difference between SNMPv1 and SNMPv3?

In SNMPv3, the concept of an authentication service is expanded to include other services, such as privacy. The SNMPv1 framework introduces access control based on a concept called an SNMP MIB view. The SNMPv3 framework specifies a fundamentally similar concept called view-based access control.

What is the difference between SNMP v2 and v2c?

Designed in 1993, SNMPv2c (where c stands for community) is a sub-version of SNMPv2. The Get, GetNext, and Set operations used in SNMPv1 are identical as those used in SNMPv2c. However, SNMPv2c's key advantage over previous versions is the Inform command.

What is SNMPv3 trap?

In the case of all versions of SNMP, the term "Trap" is used to define a one-way message from a device (Agent) to a central master station (Manager). SNMPv3 is the newest version of SNMP. Its primary benefit is better security via encrypted protocol messages.


1 Answers

This requires you to go through the RFC documents, which means this is not programming related, and probably belongs to ServerFault.

Give you some hints:

  1. SNMP v1 defines a special TRAP message format, different from other messages (such as GET). https://www.rfc-editor.org/rfc/rfc1157#page-27 This message format is not used any more in SNMP v2 and v3. If an SNMP agent sends out such TRAP messages for v2 or v3, that can be a bug.
  2. Since v2, TRAP starts to use the common message format (the same as GET and so on). So it is called SNMPv2-Trap-PDU. http://tools.ietf.org/search/rfc3416#page-22
  3. SNMP v3 introduces the security model to all messages, so TRAP receives such update too. It is still based on SNMPv2-Trap-PDU.
like image 106
Lex Li Avatar answered Jan 03 '23 17:01

Lex Li