download

Matakuliah
Tahun
Versi
: H0372/Manajemen Jaringan
: 2005
: 1/0
Pertemuan 10
Perbedaan antar versi SNMP
1
Learning Outcomes
Pada akhir pertemuan ini, diharapkan mahasiswa
akan mampu :
• Menjelaskan karakteristik perbedaan v1,v2, dan
SNMPv3
2
Outline Materi
• Perbedaan dengan
versi 1 dan 2
• Security
3
SNMP v1
• Primitive types
• Defined types
– Derived types
• Constructive types
4
Major Changes
• Bulk data transfer
• Manager-to-manager message
• Enhancements to SMI: SMIv2
• Module definitions: MODULE-IDENTITY macro
• Object definitions: OBJECT-TYPE macro
• Trap definitions: NOTIFICATION-TYPE macro
• Textual conventions
• Conformance statements
• Row creation and deletion in table
• MIB enhancements
• Transport mappings
• Security features, originally to be in SNMPv2 moved to
SNMPv3
• SNMPv2, like SNMPv1, is community-based administrative
framework
5
response
snmpV2-trap
get-bulk-request
set-request
get-request
get-next-request
inform-request
SNMP
PDU
Physical Medium
SNMP
PDU
SNMP
SNMP
UDP
UDP
IP
IP
IP
DLC
DLC
DLC
PHY
PHY
PHY
snmpV2-trap
set-request
response
Application
PDU
get-bulk-request
SNMP Manager
get-next-request
SNMP Manager
Application
get-request
Application
PDU
snmpV2-trap
SNMP Manager
get-request
get-next-request
get-bulk-request
set-request
response
SNMP Manager
Application
inform-request
SNMPv2 NM Architecture
SNMP Agent
SNMP Agent
Application
SNMP
UDP
Physical Medium
6
Traps in SNMPv1
• Six generic traps have been defined
– Encoded in the SNMP message field between
0-5
• Other specific traps
– Generic Trap field in message is 6
– Vendor specific
7
Traps in SNMPv2
• Traps are defined using
– NOTIFICATION-TYPE
• Generic traps of snmpv1 have an object id under
snmpTraps (a new object in SMIv2)
• Each trap has a unique id
8
SNMPv2 Internet Group
Internet
{1 3 6 1}
directory
(2)
mgmt
(2)
experimental
(3)
private
(4)
security
(5)
snmpv2(
6)
• Objects added to System group
• Extensive modification of the SNMP group
• Additional SNMPv2 group added
• Security group is a placeholder
9
SNMPv2 System Group
system
(1.3.6.2.1.1)
sysDescr (1)
sysObjectId (2)
sysUpTime (3)
sysORTable (9)
sysContact (4)
sysORLastChange (8)
sysServices (7)
sysLocation (6)
sysName (5)
sysOREntry (1)
sysORIndex (1)
sysORUpTime (4)
sysORID (2)
sysORDescr (3)
10
SNMPv2 PDU
PDU
RequestID
Type
Error
Status
Error
Index
VarBind 1
name
VarBind 1
value
...
VarBind n
name
VarBind n
value
• Standardized format for all messages
• Interpretation of error status and error index fields; in v1, if
error occurs status and index field filled, but varBindList
blank
Interpretation
varBindList ignored
varBind of index field ignored
Status
x
x
Index
x
11
Bilingual Manager
Bilingual Manager
SNMPv1
Interpreter
SNMPv1
Agents
Agent
Profile
SNMPv2
Interpreter
SNMPv2
Agents
12
SNMP Proxy Server
SNMPv2 Manager
Proxy
Server
SNMPv1
Agents
SNMPv2
Agents
13
SNMP Proxy Server
SNMPv2 Manager
GetRequest
GetNextRequest
SetRequest
GetBulkRequest
Response
SNMPv2-Trap
SNMP v2-v1 Proxy Server
SNMPv1 Agent
Pass-Through
GetRequest
Pass-Through
GetNextRequest
Pass-Through
Set: 1. non-repeaters = 0
2. max-repetitions = 0
SetRequest
GetNextRequest
Pass-Through
Exception: For 'tooBig' error, contents of variable-bindings GetResponse
field removed.
Prepend VarBind: 1. sysUpTime.0
2. snmpTrapOID.0
Trap
14