Network monitoring

7 minuti

The network does not manage itself. Every switch, router, firewall, and server needs ongoing observation — SNMP queries to check interface counters, flow data (NetFlow) to see who is talking to whom, captured packets for deep analysis, baselines to separate normal from abnormal, syslog aggregation to correlate events from every device, API integration to push changes at scale, and port mirroring to get those raw frames to the monitoring gear. Together these tools turn a pile of equipment into a network you can troubleshoot, tune, and defend. These notes follow Prof. Messer’s Network+ N10-009 videos “SNMP”, “Logs and Monitoring”, and “Network Solutions” (3.2).

⏱ Video — SNMP (8:50): 0:02 intro to snmp · 0:39 network management console · 0:55 management information base (mib) · 1:16 object identifiers (oids) · 1:44 snmp version 1 · 2:08 snmp version 2c · 2:35 snmp version 3 · 2:50 oid hierarchy · 4:36 mib walker · 5:00 community strings · 6:30 polling intervals · 6:57 snmp traps

⏱ Video — Logs and Monitoring (12:56): 0:02 monitoring overview · 0:54 netflow probes and collectors · 2:09 netflow console views · 3:05 protocol analyzers · 4:01 network performance baseline · 4:54 security information and event manager (sim) · 5:27 syslog log transfer · 7:28 forensics with logs · 8:40 ad hoc queries · 9:52 api integration · 11:23 port mirroring and span

⏱ Video — Network Solutions (6:48): 0:02 lldp and cdp discovery · 0:26 ping and port scans · 0:37 snmp network scanners · 0:57 traffic analysis · 1:28 firewall logs · 3:08 performance statistics · 3:52 availability monitoring · 4:15 alarms and alerts · 4:51 configuration file management · 6:18 configuration change monitoring

SNMP (Simple Network Management Protocol)

SNMP (Simple Network Management Protocol) provides a standard management interface for network devices regardless of manufacturer. A central network management console (NMS) queries devices using SNMP, asking for values stored in a MIB (Management Information Base) — a database of variables on the remote device. Each variable is addressed by an OID (Object Identifier), a dotted-decimal series (e.g., 1.3.6.1.2.1.1.28.0). The NMS polls devices over UDP port 161.

VersionKey featureSecurity
v1Original query capabilityNo encryption — sent in the clear
v2cMore efficient bulk queriesStill no encryption
v3Encryption, message integrity, authenticationUsername + password hash
  • MIB-2 is a standardised set of OIDs common across most devices. Manufacturers may add proprietary OIDs; their MIB file can be loaded into the NMS to decode them.
  • A MIB Walker software tool cycles through every possible MIB value on a device, pulling down everything available.
  • Polling happens at regular intervals (every 1, 5, or N minutes). To avoid waiting until the next poll for bad news, configure an SNMP trap — a proactive alarm sent from device to NMS over UDP 162 when a threshold is crossed (e.g., CRC errors increase by five).
  • Community strings are plain-text passwords used in SNMP v1 and v2c. Common defaults: public (read-only), private (read-write), and a separate string for traps. In SNMP v3 authentication uses a username and password sent as a password hash.

Logs and monitoring data sources

NetFlow

NetFlow is a summary of statistics based on traffic flows traversing the network. A NetFlow probe (physical or virtual) sits on the network — often connected via a switched port analyzer (SPAN) port — and compiles metadata from raw packets. The probe sends summaries to a NetFlow collector, which stores the data and often includes a report generator. Console views show top conversations, top endpoints (by IP or hostname), application breakdowns by port number, and traffic analyzer events (e.g., SSL, SQL Server, web traffic).

Protocol analyzers

A protocol analyzer captures raw frames from a wired or wireless network and presents them in a readable summary view. Instead of raw hexadecimal, you see packet summaries and can drill down into each frame. When full packet capture is stored on large drive arrays for long periods, it enables retrospective analysis of unknown or suspicious traffic.

Network performance baseline

A network performance baseline is a picture of normal day-to-day operation built from aggregated monitoring data. When troubleshooting, you compare current metrics against the baseline to decide whether utilisation is higher or lower than normal. Baselines can be device-specific or network-wide.

Syslog and the SIM

Syslog is the standard protocol for transferring log files from switches, routers, firewalls, and servers to a central collector. Each log entry includes a facility code (the originating program) and a severity level. The collector is usually a SIM (Security Information and Event Manager), which:

  • Provides a real-time dashboard with alerts and alarms (e.g., failed authentications, device went offline).
  • Supports ad hoc queries — for example, search for any record matching “fail” and “password” to find brute-force or password-spraying attacks.
  • Enables forensics — going back in time to track who authenticated, which services they used, and what paths traffic followed.
  • Sensitivity settings let you filter out informational messages and only store warning-or-higher events to save storage.

API integration

API (Application Programming Interface) integration allows a central management station to send commands, make configuration changes, or query information on a device without interactive SSH or web-console sessions. This is essential when managing hundreds or thousands of devices — a single script can reconfigure the entire fleet at once.

Port mirroring / SPAN

Port mirroring (also called switched port analyzer or SPAN) copies traffic from one switch port (or multiple ports/VLANs) to a monitoring port. The original frame still reaches its destination; the copy goes to an IDS, IPS, NetFlow probe, or protocol analyzer. Some switches support remote SPAN, mirroring traffic from a switch in another building to a central monitoring location in the data center. A physical network tap is an alternative — a device inserted between two network links that provides a copy of every frame without relying on the switch’s forwarding logic.

Network solutions — discovery and configuration

LLDP (Link Layer Discovery Protocol) is a vendor-neutral protocol that lets switches advertise their identity, capabilities, and neighbours. CDP (Cisco Discovery Protocol) is Cisco’s proprietary equivalent. Both help build a topology map without manual cabling checks.

Scans and traffic analysis

  • Ping scans and port scans identify which devices are alive on the network and which services are listening.
  • Firewall logs record every traffic flow: timestamp, protocol (TCP or UDP), port numbers, source and destination IP addresses, and byte counts. With DNS, IPs can be resolved to host names. Logs are invaluable for both troubleshooting and forensics.
  • Availability monitoring presents green/red status for every device, with alarms that can trigger email, help-desk tickets, and alerts. Uptime over time can be rolled into reports.

Configuration file management

Every switch, router, and firewall has a configuration file. Key practices from the video:

  • Back up configuration files regularly; a configuration file may only load on the same firmware version it was saved from — if the device has been upgraded, you may need to downgrade firmware first to restore an old config, then re-upgrade.
  • Compare configurations across identical devices (e.g., ten web servers) to verify they are consistent.
  • Configuration change monitoring alerts on unauthorised changes and integrates with the organisation’s change control process.

Where attacks live — mental map (beyond the video)

Not from the video — why monitoring and management tools are security targets.

  • SNMP v1/v2c community strings are sent in cleartext. An attacker on the management VLAN can sniff them and read — or write — device configurations.
  • A SIM/SIEM is a single point of truth for logs. Compromise it and an attacker can tamper with or delete evidence of their activity.
  • Syslog has no built-in encryption. Logs crossing untrusted network segments can be intercepted or modified in transit.
  • Port mirroring (SPAN) exposes a copy of every frame to the monitor port. If that port is misconfigured or reachable by an attacker, they see all mirrored traffic — a passive tap in software.
  • API credentials for device automation are high-value targets. A single compromised API key can reconfigure hundreds of devices at once.
  • Firewall logs reveal internal IPs, traffic patterns, and application usage — a gold mine for reconnaissance if leaked.