π€ What is SNMP? (Basic Idea)
In a network, there are many devices like:
Routers
Switches
Servers
Printers
π These devices can fail, overload, or misbehave.
π How do we monitor and manage all these devices centrally?
π‘ Answer: SNMP
π§ Simple Definition
π SNMP (Simple Network Management Protocol) is an application-layer protocol used to monitor, manage, and control network devices remotely.
π§ Real-Life Analogy
π’ Building Management Example
Manager sits in control room
Watches CCTV, power, elevators
Gets alerts if something fails
π SNMP manager = Building manager
π Network devices = Elevators, lights, CCTV
π― Why SNMP is Needed?
SNMP helps to:
π Monitor network performance
π¨ Detect faults and failures
π Collect statistics
π§ Configure devices remotely
β±οΈ Reduce downtime
π Without SNMP, network management would be manual and chaotic β
π§ Where Does SNMP Belong in OSI Model?

SNMP is an Application Layer protocol
Uses UDP for communication (fast & lightweight)
π Port Numbers Used by SNMP
Purpose | Port |
|---|---|
SNMP Agent | 161 (UDP) |
SNMP Manager (Traps) | 162 (UDP) |
π§© Main Components of SNMP

SNMP has three core components:
π The central system that:
Monitors network devices
Sends requests
Receives responses & alerts
Examples:
Network management software
Monitoring servers
π A small program running on:
Routers
Switches
Servers
Agent:
Collects device information
Responds to manager requests
Sends alerts (traps)
π MIB is a virtual database that stores:
Device parameters
Performance statistics
Examples:
CPU usage
Memory usage
Interface status
π Data is stored in a tree-like structure.
π¦ What is OID?
π OID (Object Identifier) uniquely identifies each variable in MIB.
Example:
1.3.6.1.2.1.1.3π Each number represents a node in the MIB tree.
π How SNMP Works (Step-by-Step)?

1οΈβ£ Manager sends request to agent
2οΈβ£ Agent reads value from MIB
3οΈβ£ Agent sends response back
4οΈβ£ If failure occurs β Agent sends trap
5οΈβ£ Manager displays alert
π Simple and efficient βοΈ
π© SNMP Messages / Operations
Message | Purpose |
|---|---|
GET | Read data from agent |
SET | Write/configure data |
GET-NEXT | Read next OID |
GET-BULK | Read large data |
RESPONSE | Reply from agent |
TRAP | Alert from agent |
INFORM | Acknowledged trap |
π¨ SNMP Trap
π A Trap is:
Unsolicited message
Sent by agent to manager
Indicates emergency or failure
Examples:
Link down
Device reboot
High CPU usage
π No request needed from manager.
π§ SNMP Versions
Oldest version
Simple
Poor security β
Improved performance
Bulk data support
Still weak security β
Secure version βοΈ
Authentication
Encryption
Access control
π Most recommended version today.
βοΈ SNMP Versions Comparison
Feature | v1 | v2c | v3 |
|---|---|---|---|
Security | β | β | β |
Encryption | β | β | β |
Performance | Low | Better | Best |
Usage | Obsolete | Limited | Modern |
π Security in SNMP
β SNMPv1 & v2c
Community strings in plain text
Easy to hack
β SNMPv3
Username-based authentication
Data encryption
Message integrity
π§ Advantages of SNMP
Centralized monitoring
Low overhead
Scalable
Automatic alerts
β Disadvantages of SNMP
Security issues in older versions
Complex MIB structure
UDP-based (no guaranteed delivery)
π§ Memory Tricks
SNMP = Simple Network Monitoring Protocol
161 = Ask agent
162 = Trap alert
v3 = Secure
β One-Line Summary
πΉ SNMP is an application-layer protocol used to monitor, manage, and control network devices using managers, agents, and MIBs.