06: Network Management: SNMP and Beyond
Course: Networking - Security Advanced · Updated: October 2026 Literature: K&R chapter 5: network management and configuration (SNMP, NETCONF/YANG) Related lab: Lab: SNMP, using the VM
HvA-NE1-Debian-v1.2.ova
Learning objectives
After studying this article you can:
- explain what network management is and why it is needed
- describe the components of a network management architecture: managing server, managed device, agent, MIB, protocol
- explain how SNMP works: versions, PDU types, MIB and OID tree, polling and traps
- explain the security differences between SNMPv1/v2c and SNMPv3
- describe the modern alternatives: NETCONF, RESTCONF, YANG, gNMI and streaming telemetry
1. What is network management?
"Network management includes the 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." (Saydam & Magedanz, quoted in K&R)
In practice, network administrators want to:
- detect failures (an interface goes down, a router stops responding)
- monitor performance (link utilisation, errors, latency)
- track changes and configure devices consistently
- detect intrusions and abnormal traffic
- plan capacity and meet Service Level Agreements (SLAs)
The classic FCAPS model groups these tasks: Fault, Configuration, Accounting, Performance and Security management.
2. The network management architecture
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
| Component | Role |
|---|---|
| Managing server | Application that collects data, shows dashboards and sends alerts (e.g. Zabbix, LibreNMS, PRTG, Prometheus) |
| Managed device | Equipment that is managed: router, switch, host, firewall, printer, ... |
| Agent | Process on the managed device that talks to the managing server |
| MIB | Management Information Base: the data that can be read or changed on the device |
| Protocol | How the server and agent communicate: SNMP, NETCONF, ... |
3. SNMP: Simple Network Management Protocol
SNMP runs over UDP: port 161 for requests to the agent and port 162 for traps to the manager.
3.1 Two ways to communicate
- Request/response (polling): the manager asks for a value and the agent answers.
- Trap / notification: the agent tells the manager without being asked that something has happened (e.g. "link down").
3.2 SNMP PDU types
| PDU type | Direction | Purpose |
|---|---|---|
GetRequest |
manager → agent | Read the value of one or more objects |
GetNextRequest |
manager → agent | Read the next object in the MIB tree (used to "walk" the tree) |
GetBulkRequest (v2+) |
manager → agent | Read a large block of data in one request |
SetRequest |
manager → agent | Change a value (configuration) |
Response |
agent → manager | Answer to a request |
Trap / SNMPv2-Trap |
agent → manager | Unsolicited notification |
InformRequest |
manager/agent → manager | Notification that is acknowledged |
3.3 The MIB and OIDs
Every manageable object has a unique Object Identifier (OID), which is a path in a worldwide tree. The objects are defined in the SMI language (Structure of Management Information).
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Example with the net-snmp command-line tools (as in the lab):
1 2 3 4 5 6 7 | |
3.4 SNMP versions
| Version | Year | Security |
|---|---|---|
| SNMPv1 | 1990 | A community string (a password sent in plain text, often public / private) |
| SNMPv2c | 1996 | Same community string model, plus GetBulk and 64-bit counters |
| SNMPv3 | 2002 (RFC 3411–3418) | User-based Security Model (USM): authentication (HMAC), encryption (AES), protection against replay. View-based Access Control (VACM): which user may see or change which part of the MIB. |
SNMPv3 security levels:
| Level | Authentication | Encryption |
|---|---|---|
noAuthNoPriv |
No | No |
authNoPriv |
Yes | No |
authPriv |
Yes | Yes ← use this |
4. Beyond SNMP: modern network management
SNMP is still everywhere for monitoring, but it was never popular for configuration. SetRequest is clumsy, it has no transactions, and MIBs are hard to work with. Since about 2010 the IETF and the industry have moved to model-driven management:
| Technology | Description |
|---|---|
| YANG (RFC 7950) | A data-modelling language for configuration and state data. It plays the role that the MIB plays for SNMP. There are vendor-neutral models (IETF, OpenConfig) and vendor models. |
| NETCONF (RFC 6241) | A protocol to read and change configuration, over SSH (or TLS), with XML encoding. It supports transactions: lock, edit-config, validate, commit, and rollback when something goes wrong. |
| RESTCONF (RFC 8040) | The same YANG data through a REST/HTTPS API with JSON or XML. Easy to use from scripts. |
| gNMI / gRPC (OpenConfig) | Google's management interface. It carries streaming telemetry: devices push data continuously instead of being polled. |
| Streaming telemetry | Much higher resolution (sub-second) and scale than SNMP polling every 5 minutes |
| Network automation | Ansible, Nornir, Terraform and NAPALM. Configuration is stored in Git ("infrastructure as code") and rolled out through CI/CD pipelines. |
| Observability stack | Prometheus + Grafana, the Elastic stack and OpenTelemetry. They combine metrics, logs and flow data (NetFlow/IPFIX). |
Example of a NETCONF transaction:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
5. Summary
- Network management = monitoring + configuration + fault, performance and security management (FCAPS).
- SNMP: manager, agent and MIB. Polling over UDP 161 and traps over UDP 162. OIDs form a global tree.
- Only SNMPv3 with authPriv is secure. v1 and v2c send their "password" in plain text.
- For configuration, the world has moved to YANG + NETCONF/RESTCONF/gNMI, automation and streaming telemetry.
References
Videos
- Jim Kurose: Network management, SNMP, NETCONF/YANG (chapter 5 video lectures): https://gaia.cs.umass.edu/kurose_ross/lectures.php
- Professor Messer: "SNMP" (CompTIA Network+ / Security+): https://www.professormesser.com/
- David Bombal: NETCONF, RESTCONF and network automation with Python: https://www.youtube.com/@davidbombal
- Cisco DevNet: YANG and model-driven programmability: https://developer.cisco.com/
Articles
- Net-SNMP tutorials: http://www.net-snmp.org/wiki/index.php/Tutorials
- DigitalOcean, How To Install and Configure an SNMP Daemon and Client (the guide referred to in the lab): https://www.digitalocean.com/community/tutorials
- OpenConfig (vendor-neutral YANG models and gNMI): https://www.openconfig.net/
- Cisco DevNet Learning Labs, Model-driven programmability (free): https://developer.cisco.com/learning/
- Peterson & Davie, Computer Networks: A Systems Approach, chapter "Network Management": https://book.systemsapproach.org/
Standards
- RFC 3411–3418: SNMPv3 architecture, USM, VACM
- RFC 7860: HMAC-SHA-2 authentication protocols in SNMPv3 USM
- RFC 3826: AES cipher in SNMPv3 USM
- RFC 6241: NETCONF · RFC 8040: RESTCONF · RFC 7950: YANG 1.1
Tools
- net-snmp (
snmpget,snmpwalk,snmptrap): http://www.net-snmp.org/ - LibreNMS and Zabbix (open-source monitoring with SNMP): https://www.librenms.org/, https://www.zabbix.com/
- Prometheus SNMP exporter + Grafana: https://github.com/prometheus/snmp_exporter
- ncclient (Python NETCONF client) and Ansible network modules: https://github.com/ncclient/ncclient
Cyber Security
Why it matters
Network management systems hold the keys to the whole network. They can read and change the configuration of every device. That makes them a favourite target:
- Default community strings: many devices still ship with
public(read) andprivate(read-write). With a read-write community, an attacker can change routes, download the device configuration (including password hashes), or shut down interfaces. - Information disclosure: even read-only SNMP reveals a lot: the system description and software version (which helps an attacker find exploits), interfaces, routing tables, ARP tables, running processes, installed software and user accounts. This is a gold mine for reconnaissance (tools:
onesixtyone,snmp-check, Metasploit). - Plain-text protocols: SNMPv1/v2c communities can be captured by anyone who can sniff the traffic (try it in Wireshark!).
- Amplification DDoS: open SNMP agents on the Internet reflect small
GetBulkrequests as large responses towards a victim. - Vulnerabilities in agents: e.g. the Cisco IOS SNMP remote-code-execution bugs (CVE-2017-6736 and later), which have been exploited by state actors.
- Supply-chain attacks on the NMS: the SolarWinds Orion compromise (2020) showed that a network-management platform can become a backdoor into thousands of organisations.
- Living off the land: state actors (e.g. Volt Typhoon, Salt Typhoon) target network devices and management interfaces precisely because they are rarely monitored.
How to make it safe
- Use SNMPv3 with
authPrivonly: SHA-2 authentication (SHA-256 or stronger) and AES encryption. Disable SNMPv1/v2c completely. If v2c can't be avoided, use long random community strings and read-only access. - Never use read-write SNMP unless you need it, and use NETCONF/RESTCONF over SSH/TLS for configuration changes. (Note: the 2017 lab used
createUser ... MD5withrwuser, which was fine for learning but should not be used in production.) - Restrict access: allow SNMP only from the management server's IP addresses (ACLs on the device and firewall rules), and use VACM views to limit which part of the MIB can be read.
- Keep a separate management network: use out-of-band management (a separate VLAN/VRF, a jump host or bastion, and MFA). Never expose management interfaces (SNMP, SSH, web GUI) to the Internet.
- Patch and harden network devices, and remove unused services. Follow vendor hardening guides and CIS Benchmarks.
- Protect the NMS itself: keep it patched, give it minimal privileges, apply network segmentation, monitor it, and check the integrity of updates.
- Store configuration in Git, with review and change logs. Compare running configurations with the approved baseline to detect unauthorised changes.
- Use traps and telemetry for security: send authentication failures, configuration changes and link events to your SIEM (see article 17).
Extra references
- CISA, Eviction Guidance for Networks Affected by the SolarWinds and Active Directory/M365 Compromise: https://www.cisa.gov/
- NSA, Network Infrastructure Security Guide (SNMP section): https://media.defense.gov/2022/Jun/15/2003018261/-1/-1/0/CTR_NSA_NETWORK_INFRASTRUCTURE_SECURITY_GUIDE_20220615.PDF
- CISA/NSA/FBI joint advisory on Volt Typhoon (AA24-038A, 2024): https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-038a
- Shadowserver Foundation, scanning reports on open SNMP: https://www.shadowserver.org/
- NCSC-NL, factsheets on securing network equipment: https://www.ncsc.nl/