Chapter 3 Snmpv1 Communication and Functional Models
Chapter 3 Snmpv1 Communication and Functional Models
Chapter 3 SNMPv1
Part 2
Communication and Functional Models
1 1
2
3
ACCESS
4
5
6
7
Status The value current (mandatory) means
that the definition is current and valid. The
value ‘obsolete’ means the definition is
obsolete and should not be implemented
and/or can be removed if previously
implemented. While the value ‘deprecated’
also indicates an obsolete definition, it
permits new/continued implementation in
order to foster interoperability with
older/existing implementations.
8
Address Translation Group (in MIB-II)
atTable OBJECT-TYPE
SYNTAX SEQUENCE OF AtEntry atIfIndex OBJECT-TYPE
ACCESS not-accessible SYNTAX INTEGER
STATUS current ACCESS read-write
DESCRIPTION “..." STATUS current
::= { at 1 } DESCRIPTION “…”
::= { atEntry 1 }
atEntry OBJECT-TYPE
SYNTAX AtEntry atPhysAddress OBJECT-TYPE
ACCESS not-accessible SYNTAX PhysAddress
STATUS current ACCESS read-write
DESCRIPTION “..." STATUS current
INDEX { atIfIndex, atNetAddress } DESCRIPTION “…"
::= { atTable 1 } ::= { atEntry 2 }
9
10
11
12
13
14
15
16
17
SNMPv1
18
Protocol context of SNMP
MIB
162 161
19
SNMPv1 Packet
• SNMPv1 packet has the form
20
PDU
21
SNMP PDU format
22
Error status:
23
• VarBindList list of pairs of the form
Variable
Name Value
24
25
Format of SNMP Packets
• SNMPv1 Get/Set messages:
Operation Description
get-request Retrieves a value from a specific variable.
28
SNMP Operations
GetRequest
UDP port 161
GetResponse
s e PDU
e P DU s pon
s po n s GetRe
GetRe
SetRequ PDU
est PDU Trap
ns e PDU
sp o
GetRe
30
SNMP Operations
GetRequest (sysDescr.0) Agent
Manager Process
Process GetResponse (sysDescr .0= "SunOS" )
GetRequest (sysObjectID.0)
GetResponse ( sysObjectID.0=enterprises.11.2.3.10.1.2 )
GetRequest (sysUpTime.0)
GetResponse (sysUpTime.0=2247349530)
GetRequest (sysContact.0)
GetResponse (sysContact.0=" ")
GetRequest (sysName.0)
GetResponse (sysName.0="noc1 ")
GetRequest (sysLocation.0)
GetResponse (sysLocation.0=" ")
GetRequest (sysServices.0)
GetResponse (sysServices.0=72)
33
Ethernet
Frame IP
Packet
UDP
SNMP Message CRC
Datagram
34
35
36
Security
• We mentioned previously the SNMP method of
authentication
– A community name acts like a password
– More than one mgmt station may have access
37
Security
• SNMP Access Mode MIB Access
38
Proxy
• SNMP agent can act as a proxy
– To collect mgmt values
39
Comparison of SNMPv1 and SNMPv2
SNMPv1 PDU SNMPv2 PDU Direction Description
GetRequest GetRequest Manager to agent Request value for each
listed object
40
Comparisons between three SNMP Versions
Version Descriptions and improvements
SNMPv1 1. Define the SMI (RFC1155)
2. A more concise MIB definition (RFC 1212)
3. SNMP framework and its related operations (RFC 1157)
4. Concept of security (authentication) is proposed
SNMPv2 1. Improved SMI
2. Inclusion of ‘GetBulkRequest’’ to improve the efficiency for retrieving large
Chapter 5 blocks of data
3. ‘InformRequest’ for communication between management stations
SNMPv3 1. Security and administration add-on’s (RFC2571)
2. Multi-version SNMP message processing and dispatch capability (RFC 2572)
Chapter 6 3. The five type of applications within an SNMP engine (RFC 2573)
4. User-based security model (RFC 2575)
5. View-based access control (RFC 2575)
41