A network must be watched constantly: links fail, devices overload and attacks happen. Network management finds and fixes problems, ideally before users notice.
Functions of Network Management
The ISO model of network management, FCAPS, lists five areas: Fault management (detecting, isolating and fixing problems), Configuration management (tracking and changing device settings), Accounting (measuring use, for billing or fair sharing), Performance management (monitoring throughput, delay, loss and utilisation) and Security management (controlling access and detecting threats).
Definition: SNMP. The Simple Network Management Protocol, an application-layer protocol by which a management station reads and changes information held in network devices and receives alerts from them.
SNMP Architecture
SNMP has three parts: the manager (network management station, NMS), the agents (software running in each managed device: routers, switches, servers, printers), and the Management Information Base (MIB), a hierarchical database of the objects an agent can report, each named by an object identifier (OID) in a tree, such as 1.3.6.1.2.1.1.3.0 for sysUpTime and the ifInOctets counters for interface traffic. Operations: Get (read a value), GetNext and GetBulk (walk through the MIB), Set (change a value) and Trap or Inform (an unsolicited alert from the agent, such as "link down"). SNMP uses UDP port 161 for requests and 162 for traps. Versions: SNMPv1 and v2c use plain-text community strings (such as "public") as passwords, which is insecure; SNMPv3 adds authentication and encryption, and should be used.
Monitoring Tools and Techniques
Basic command-line tools: ping (reachability and round-trip time, using ICMP echo), traceroute/tracert (the path and per-hop delay), netstat/ss (connections and ports), nslookup/dig (DNS), ipconfig/ip addr (interface settings), and iperf (measuring throughput). Packet analysers, such as Wireshark and tcpdump, capture and decode traffic for detailed troubleshooting. Flow monitoring (NetFlow, sFlow, IPFIX) summarises who talks to whom and how much. Monitoring systems such as Nagios, Zabbix, PRTG, Prometheus with Grafana and LibreNMS poll devices with SNMP and other methods, draw graphs, keep history, and raise alerts when thresholds are crossed. Syslog collects device logs centrally, and SIEM tools analyse logs for security events. Good practice is to establish a baseline of normal behaviour, so that unusual patterns stand out.
Table 4.7: Network monitoring tools
| Tool | What it shows | Layer or method |
|---|---|---|
| ping | Reachability, RTT | ICMP |
| traceroute | Path and hop delays | ICMP/UDP with TTL |
| Wireshark | Captured packets in detail | Packet capture |
| iperf | Achievable throughput | Test traffic |
| Nagios, Zabbix | Device health, alerts | SNMP polling |
Example 4.7: Utilisation from SNMP counters
Problem: An SNMP manager reads a 100 Mbps interface's ifInOctets counter twice, 300 seconds apart: 1,250,000,000 and then 2,000,000,000. Find the average incoming throughput and utilisation.
Solution:
- Bytes received = 2,000,000,000 − 1,250,000,000 = 750,000,000.
- Bits = 750,000,000 × 8 = 6,000,000,000.
- Throughput = 6,000,000,000 / 300 = 20,000,000 bps = 20 Mbps.
- Utilisation = 20 / 100 = 20 percent.
Result: 20 Mbps incoming, 20 percent utilisation.
mib = {"1.3.6.1.2.1.1.1.0": ("sysDescr", "Core switch, BCA lab"),
"1.3.6.1.2.1.1.3.0": ("sysUpTime", "123456700"),
"1.3.6.1.2.1.1.5.0": ("sysName", "lab-sw1")}
for oid in sorted(mib):
name, val = mib[oid]
print(f"GET {oid:<18} {name:<9} = {val}")
c1, c2, secs, speed = 1_250_000_000, 2_000_000_000, 300, 100e6
bps = (c2 - c1) * 8 / secs
print(f"in: {bps / 1e6:.1f} Mbps, utilisation {bps / speed:.0%}")
Output
GET 1.3.6.1.2.1.1.1.0 sysDescr = Core switch, BCA lab
GET 1.3.6.1.2.1.1.3.0 sysUpTime = 123456700
GET 1.3.6.1.2.1.1.5.0 sysName = lab-sw1
in: 20.0 Mbps, utilisation 20%
Common mistakes
- Leaving SNMP community strings at "public" and "private". Use SNMPv3.
- Thinking traps are requested by the manager. Agents send them unprompted.
- Monitoring without a baseline, so that normal and abnormal look the same.
Key takeaways
- FCAPS: fault, configuration, accounting, performance and security management.
- SNMP: manager, agents and MIB; Get, GetNext, Set and Trap; UDP 161 and 162.
- SNMPv3 adds authentication and encryption.
- Tools: ping, traceroute, netstat, Wireshark, iperf, NetFlow, Nagios, Zabbix and Grafana.
Practice questions
- What is a MIB?
- Which SNMP operation is an alert from the agent?
- Which tool shows the path packets take?
Answers to the practice questions
- The Management Information Base, a hierarchical set of objects, named by OIDs, that an agent can report.
- A Trap (or Inform).
- traceroute (tracert on Windows).
Sources
- Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit IV
