The TCP/IP Guide - Version 3.0 (Contents) ` 1269 _ © 2001-2005 Charles M. Kozierok. All Rights Reserved.
User-Based SNMP Version 2 (SNMPv2u) Message Format
SNMPv2u was defined as an optional security model at the time that SNMPv2c was
standardized. RFC 1910 defines the user-based security model and the message format
described in Table 218 and Figure 282.
Table 218: User-Based SNMP Version 2 (SNMPv2u) General Message Format
Field
Name
Syntax
Size
(bytes)
Description
Version Integer 4
Version Number: Describes the SNMP version number of this message;
used for ensuring compatibility between versions. For SNMPv2u, this value
is 2. Note that this is the same value as used for SNMPv2p.
Param-
eters
Octet
String
Variable
PDU — Variable
Protocol Data Unit: The PDU being communicated as the body of the
message. This may be in either encrypted or unencrypted form.
arame
ers:
s
r
ng o
parame
ers use
o
mp
emen
e user-
ase
security model, which is itself non-trivial to describe. Very briefly, these
parameters are:
Subfield
Name
Size
(bytes)
Description
Model 1
Model Number: Set to 1 to identify the user-based
model.
QoS 1
Quality of Service: Indicates whether authentication
and/or privacy (encryption) have been used, and
whether generation of a Report-PDU is allowed.
Agent ID 12
Agent Identifier: The identifier of the agent sending the
message. Used to defeat replay attacks and certain
other types of security attacks.
Agent
Boots
4
Agent Number Of Boots: The number of times the
agent has been booted or rebooted since its Agent ID
was set; used to defeat certain security attacks.
Agent
Time
4
Agent Time Since Last Boot: The number of seconds
since the last boot of this agent. Again, used to defeat
replay and other security attacks.
Max Size 2
Maximum Message Size: The maximum size of
message that the sender of this message can receive.
User Len 1 User Length: The length of the User Name field below.
User
Name
Variable
(1 to 16)
User Name: The name of the user on whose behalf the
message is being sent.
Auth Len 1
Authentication Digest Length: The length of the Auth
Digest field below.
Auth
Digest
Variable
(0 to
255)
Authentication Digest: An authentication value used to
verify the identity and genuineness of this message,
when authentication is used.
Context
Selector
Variable
(0 to 40)
Context Selector: A string that is combined with the
Agent ID to specify a particular context that contains the
management information referenced by this message.