Lecture3 SNMP
Lecture3 SNMP
SNMP
((Simple
Simple Network
Network Management Protocol))
Management Protocol
based
based
Network
Network Management
Management
Network Management: What is it?
• Network management includes
– deployment,integration and coordination of the
hardware, software, and human elements
– to monitor, test, poll, configure, analyze,
evaluate and control the network and element
resources
– to meet the real-time, operational performance,
and Quality of service requirements at a
reasonable cost.
Network Management: Why is it needed?
• Lowers costs by eliminating the need for
many administrators at multiple locations
performing the same function
• Makes network administration and
monitoring easier and more convenient
• Coherent presentation of data
Functional
FunctionalAreas
Areasof
of Network
NetworkManagement
Management
(According
(Accordingto
toOSI
OSI Network
NetworkManagement
Management Model)
Model)
•SNMP Protocol
•Defines format of messages exchanged by management
systems and agents.
•Specifies the Get, GetNext, Set, and Trap operations
Ethernet
Frame IP CRC
Packet
UDP
SNMP Message
Datagram
•GetNext
Retrieves the next value of the next lexical MIB variable
•Set
Changes the value of a MIB variable
•Trap
An unsolicited notification sent by an agent to a management
application (typically a notification of something unexpected, like an error)
Basic operations contd..
get_request
get_response port 161
get_next_request
get_response port 161
trap
port 162 port 161
Traps
Traps
•Traps are unrequested event reports that are sent to a
management system by an SNMP agent process
•When a trappable event occurs, a trap message is generated
by the agent and is sent to a trap destination (a specific,
configured network address)
•Many events can be configured to signal a trap, like a
network cable fault, failing NIC or Hard Drive, a “General
Protection Fault”, or a power supply failure
•Traps can also be throttled -- You can limit the number of
traps sent per second from the agent
•Traps have a priority associated with them -- Critical, Major,
Minor, Warning, Marginal, Informational, Normal, Unknown
Trap
Trap Receivers
Receivers
•Management applications can handle the trap in a few ways:
•Poll the agent that sent the trap for more information about the event, and
the status of the rest of the machine.
•Log the reception of the trap.
•Completely ignore the trap.
Languages
Languages of
of SNMP
SNMP
•Structure of Management Information (SMI)
specifies the format used for defining managed objects that are
accessed via the SNMP protocol
BER BER
TRANSFER SYNTAX
UDP UDP
IP IP
LINK LINK
Message Length
Message Version Message Preamble
Community String
PDU Header
SNMP Protocol
Data Unit
PDU Body
variable
VARIABLEbindings:
BINDINGS
SNMP
SNMPPDU:
PDU
SNMP
SNMPmessage:
MESSAGE
•Monolithic Agents
•not extendible
•optimized for specific hardware platform and OS
Community
Community Names
Names
• A community string is a password that allows access to a network device.
It defines what "community of people" can access the SNMP information
that is on the device.
• Community names are used to define where an SNMP message is
destined for.
• Set up your agents to belong to certain communities.
• Set up your management applications to monitor and receive traps from
certain community names.
• There are actually three community strings for SNMP-speaking devices:
• The SNMP Read-only community string
• The SNMP Read-Write community string
• The SNMP Trap community string
PROXY MANAGEMENT
MANAGER PROXY AGENT