Network Bytes · Episode 53 · CCNA 4.4
"SNMP"
SNMP, the Simple Network Management Protocol, lets one monitoring program watch hundreds of devices. A manager polls an agent on each device for values stored in its MIB, and agents send traps when something goes wrong.
Manager and agents
Big networks have hundreds or thousands of routers, switches, servers and access points. Nobody can log in to each one to check on it. SNMP splits the job in two: a central program, the manager (often called the network management station, or NMS), and a small agent that runs on every managed device. The manager collects information and shows it on dashboards; the agent answers the manager's questions about its own device. The SNMP architecture is described in RFC 3411.
The MIB: where the facts live
Each agent keeps facts about its device, such as processor load, interface traffic counters and uptime. They are organized in the MIB (Management Information Base). The MIB is not a flat list: it is a structured tree of objects, and each object has a numeric name called an OID (object identifier). Standard MIBs cover things every device has, like interfaces; vendors add their own MIBs for their own features.
Polling with a get
Most monitoring is polling: every few minutes the manager asks each agent for the values it cares about, then draws graphs and checks thresholds. The basic request is a Get. There are also GetNext and GetBulk (to walk through many objects) and Set (to change a value on the device). Agents listen for these requests on UDP port 161.
Traps: the agent speaks up
Polling only notices a problem at the next poll. So agents can also speak up on their own. If a link goes down, the agent sends a trap to the manager without being asked. Managers receive traps on UDP port 162. A trap is not acknowledged; an Inform is the same kind of notification, but the manager confirms it arrived.
Use SNMPv3
SNMPv1 and SNMPv2c protect access with a community string, which is basically a shared password sent in plain text. SNMPv3 adds real security through its User-based Security Model (RFC 3414): user authentication (logins) and privacy (encryption), so nobody on the path can read or fake the messages.
Try it yourself
Count how many values one dashboard tracks. Pick a device you know, such as your home router, and list what you would want to graph: CPU load, traffic in and out on each port, uptime, maybe the number of connected clients. Then imagine a network of 200 switches with 48 ports each, each port tracked for traffic in and out. How many traffic values does the manager collect in one round of polling? That is why SNMP tools use GetBulk.
Good to know
- SNMP architecture: RFC 3411. Operations (Get, GetNext, GetBulk, Set, Trap, Inform): RFC 3416.
- Agents listen on UDP 161; managers receive traps and informs on UDP 162.
- The MIB is a tree of objects, each named by an OID.
- A trap is unacknowledged; an inform is acknowledged by the manager.
- SNMPv1 and v2c use plaintext community strings; SNMPv3 adds authentication and encryption (User-based Security Model, RFC 3414).
- "One poll" here means one round of gets to one device; real tools may send several requests per poll.
- The CPU, traffic and uptime values in the video are just examples.
For CCNA learners
This lines up with CCNA 200-301 exam topic 4.4, explain the function of SNMP in network operations: know the manager and agent roles, what the MIB holds, the difference between polling with gets and an agent sending a trap, the UDP ports 161 and 162, and why SNMPv3 is preferred over v1 and v2c.
Answer to the comment question
600 polls. Every 5 minutes means 60 ÷ 5 = 12 rounds of polling an hour, and each round polls all 50 devices: 12 × 50 = 600.
Test your knowledge
Quick quiz: "SNMP"
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- IETF, "RFC 3411, An Architecture for Describing SNMP Management Frameworks": managers, agents and MIBs
- IETF, "RFC 3414, User-based Security Model for SNMPv3": authentication and privacy (encryption)
- IETF, "RFC 3416, Version 2 of the Protocol Operations for SNMP": Get, GetBulk, Set, Trap and Inform
- Cisco, CCNA 200-301 v1.1 exam topics: 4.4 explain the function of SNMP in network operations
Video transcript
How can one screen keep watch over five hundred network devices?
It uses SNMP, the Simple Network Management Protocol. A central program, the manager, talks to a small agent on every device.
Each agent keeps facts about its device, like processor load, traffic counts and uptime, in an organized list called the MIB.
The manager polls: every few minutes it asks each agent for those values, then draws the graphs. That request is called a get.
Agents can also speak up. If a link goes down, the agent sends a trap to the manager without being asked. Use version three: it adds logins and encryption.
A manager polls fifty devices every five minutes. How many polls is that in one hour? Comment your answer below!
That's your byte.
More from Network Bytes
- EP51"NTP: why time matters"
- EP52"Syslog severity levels"
- EP54"QoS: why your video call wins"
- EP55"SSH vs Telnet"