HC110110031 Simple Network Management Protocol
HC110110031 Simple Network Management Protocol
HC110110031 Simple Network Management Protocol
Page 1 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
⚫ Upon completion of this section, you will be able to:
Describe the SNMP architecture and messaging behavior.
Page 2 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
SNMP Application
Network Management Station
SNMP
Network Element
Execute
SNMP
MIB
Agent Notify Object
NMS
Page 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
⚫ Network elements such as hosts, gateways, terminal servers etc., contain two
important components that support the network management functions
requested by the network management stations. The management agent resides
on the network element in order to retrieve (get) or alter (set) variables.
⚫ Network Management Stations (NMS) associate with management agents that are
responsible for performing the network management functions requested by the
NMS. The MIB stores a number of variables associated with the network element,
with each of these variables being considered an MIB object. The exchange of
SNMP messages within IP requires only the support of UDP as an unreliable
datagram service for which each message is independently represented by a single
transport datagram.
MIB Objects
root
dod(6)
internet(1)
mib-2(1) enterprise(1)
…… …… …… …… ……
⚫ The object naming tree has three top objects: ISO, ITU-T (originally CCITT), and the
joint organizations branch. Under the ISO, there are four objects among which
number 3 is the identified organization. A sub-tree of the US Department of
Defense dod (6) is defined under the identified organization (3) under which the
Internet (1) sub tree is located. The object under the Internet is mgmt (2). What
follows mgmt (2) is MIB-II, originally MIB until 1991 when the new edition MIB-II
was defined. The tree path itself can be defined as an object identifier (OID) value
{1.3.6.1.2.1}.
SNMP Operation
get-request
UDP 161
NMS get-response
get-next request
UDP 161
get-response
set-request
UDP 161
get-response
trap
UDP 162
⚫ SNMP defines five types of Protocol Data Units (PDUs), namely, SNMP packets, to
be exchanged between the management process and the agent process. The get-
request operation indicates that the management process reads one or more
parameter values from the MIB of the agent process. The get-next-request
indicates that the management process reads the next parameter value in the
lexicographic order from the MIB of the agent process. The set-request indicates
that the management process sets one or more parameter values in the MIB of the
agent process. The get-response returns one or more parameter values. This
operation is performed by the agent process. It is the response to the preceding
three operations. Lastly is the trap function which is actively sent by the agent
process to inform the management process of important or critical events.
SNMPv2c
mib-2(1)
ifOutOctets OBJECT-TYPE
sysUpTime OBJECT-TYPE ifSpeed OBJECT-TYPE
SYNTAX Counter
SYNTAX TimeTicks SYNTAX Gauge
ACCESS read-only
ACCESS read-only ACCESS read-only
STATUS mandatory
STATUS mandatory STATUS mandatory
DESCRIPTION "The total
th
DESCRIPTION "The time (in 1/100 of DESCRIPTION "An estimate of
number of octets
a second) since the network the interface's current
transmitted out of the
management portion of the system bandwidth in bits per
interface, including
was last re-initialized.“ second."
framing characters."
::= { system 3 } ::= { ifEntry 5 }
::= { ifEntry 16 }
Get
Get Response
⚫ SNMP enhances security through applying four principle measures. Data integrity
is applied to ensure that data has not been altered or destroyed in an
unauthorized manner, nor have data sequences been altered to an extent greater
than can occur non-maliciously.
⚫ Data origin authentication is supported to ensure that the claimed identity of the
user on whose behalf received data was originated is corroborated using MD5 and
SHA-1. Data confidentiality is applied to ensure information is not made available
or disclosed to unauthorized individuals, entities, or processes. Additionally,
solutions for limited replay protection provide a means of ensuring that a message,
whose generation time is outside of a specified time window, is not accepted.
SNMP Configuration
G0/0/1
10.1.1.1/24 20.1.1.1/24
NMS RTA
[RTA]snmp-agent
[RTA]snmp-agent sys-info version v2c
[RTA]snmp-agent trap enable
Info: All switches of SNMP trap/notification will be open. Continue?
[Y/N]:Y
[RTA]snmp-agent trap source GigabitEthernet 0/0/1
Page 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
⚫ The SNMP agent is an agent process on a device on the network. The SNMP agent
maintains managed network devices by responding to NMS requests and
reporting management data to the NMS. To configure SNMP on a device, the
SNMP agent must be enabled, for which the snmp-agent command is applied.
⚫ The snmp-agent sys-info command sets the SNMP system information and is also
used to specify the version(s) of SNMP that are supported, where snmp-agent sys-
info version [ [ v1 | v2c | v3 ] * | all ] is used to achieve this, and should be noted
that all versions of SNMP are supported by default. The snmp-agent trap enable
command, activates the function of sending traps to the NMS, following which the
device will proceed to report any configured events to the NMS.
⚫ In addition it is necessary to specify the interface via which trap notifications will
be sent. This should be the interface pointing towards the location of the NMS, as
in the example where the NMS is reached via interface Gigabit Ethernet 0/0/1.
Configuration Validation
Page 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
What is the destination port number that is used by an agent to forward traps
to a Network Management Station?
Page 11 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
⚫ In the Huawei AR2200 series router, all versions of SNMP (SNMPv1, SNMPv2c and
SNMPv3) are enabled by default.
⚫ The agent forwards trap messages to the Network Management Station (NMS)
using UDP destination port 162.
Thank You
www.huawei.com