Nightly backups from a branch fill its link to head office and slow the night shift's applications. The network manager must hold the backups to part of the link, and no backup data may be lost.
Watching and managing a network
Running a network means knowing at every moment what it is doing: which links are busy, which devices are failing and what traffic is flowing. No background is assumed. A security professional needs it because the records that show a link filling up also show data leaving. The protocols that manage devices can also hand an attacker their settings if the wrong version is used.
By the end of this unit you will be able to:
- Tell apart SNMP versions 1, 2c and 3 on how each protects a device's management
- Choose between flow records, syslog, a port mirror and a network tap for a monitoring need
- Tell apart traffic shaping and traffic policing
- Explain how a baseline supports capacity management and how a heartbeat triggers failover
The calls that break up at two o'clock
An illustrative example
A firm of twelve accountants moved its telephones onto its internet connection last year. Every weekday from about two until four in the afternoon, clients' voices stutter and calls drop. The internet provider tests the line and finds nothing wrong.
The office manager asks for a faster connection, which would double the monthly bill. Nobody in the office can say what is using the line in the afternoons.
What would the firm need to record to find the cause, and how could it protect the calls without buying a faster line?
Monitoring and management do four jobs
Network management is the work of keeping a network's devices configured, working and able to carry the load placed on them. Network monitoring is the part of that work that collects information about the network as it runs.
- Observe
- Collect enough data to tell what the network is doing and why.
- Control the flow
- Decide which traffic goes first when a link is busy, and limit traffic that takes too much.
- Plan capacity
- Measure use over time and add capacity before demand outgrows it.
- Handle faults
- Notice a failure quickly, switch to a spare path or device, and repair the cause.
The management traffic is itself a target, because whoever controls it can reconfigure every device. It therefore travels on a separate management network, out of band, or at least inside an protocol. Operations staff and security analysts read the same data for different purposes: one asks whether the network is healthy, the other whether it is being misused.
Observability: metrics, logs and traces explain what happened
Network observability is the ability to understand what a network is doing from the data it gives out, without opening each device. That data comes as three signals. Metrics are numbers measured over time, such as a link's use or its error count. Logs are time-stamped messages from devices describing events. Traces follow one request across every system it passes through.
Monitoring watches for problems someone predicted, such as a link above 80 per cent. Observability lets an analyst ask a new question afterwards, such as which address sent the extra traffic. Security and operations draw on the same data.
A dashboard against a flight recorder
A car's dashboard lights a warning when the engine overheats, because the maker predicted that fault. An aircraft's flight recorder keeps enough detail to answer questions nobody thought of before the flight. Monitoring is the dashboard. Observability is the flight recorder.
For security, observability matters most after an incident. Investigators need records good enough to reconstruct what an intruder touched, in an order nobody planned for. Those records must be collected centrally before anyone knows they will be needed.
SNMP versions 1 and 2c expose devices; version 3 protects them
The Simple Network Management Protocol (SNMP) lets a central system read the state of network devices and change their settings. The central system is the manager. Each device runs an agent that answers it. What the agent can report, such as interface counters or temperature, is described in its management information base (MIB). Agents listen on port 161. When something happens, an agent can send an unprompted alert, called a trap, to the manager on UDP port 162.
| Version | How a request is checked | Encryption | Status |
|---|---|---|---|
| SNMPv1 | A shared password called a community string, sent in | None | Historic: not to be used |
| SNMPv2c | The same plain-text community string | None | Historic: not to be used |
| SNMPv3 | A user name with a on each message, which proves origin and blocks tampering and replay | Optional setting encrypts the message | Current standard |
Anyone who captures a version 1 or 2c message learns the community string. With a read-write string they can change a router's configuration. Version 3 adds per-user authentication, encryption and over which parts of the MIB each user may read.
SNMP versions 1 and 2c send their password in clear. Version 3 with authentication and privacy switched on is the only secure choice.
Logs, flow records and copies of the traffic itself
Syslog is the standard way devices send log messages to a central collector. Each message carries a severity from 0, Emergency, to 7, Debug. Syslog over UDP port 514 has no encryption, check or replay protection. The standard recommends syslog over TLS, on port 6514, outside closely managed networks.
A flow record summarises one conversation: source and destination addresses and ports, protocol, , bytes and times, with no content. NetFlow is Cisco's format for exporting . IP Flow Information Export (IPFIX) is the open standard based on NetFlow version 9.
Sometimes the content itself is needed. A switch's port mirror, also called a SPAN port (switched port analyser), copies traffic from chosen ports to a monitoring port. A network tap is a device fitted into the cable that copies everything on it.
| Source | What it holds | Limits |
|---|---|---|
| SNMP polling and traps | Counters, status and alerts from each device | No record of who talked to whom |
| Syslog | Device events: logins, changes, errors | Unprotected on UDP; only what devices choose to log |
| Flow records | Who talked to whom, when and how much | No content |
| Port mirror | Full copies of selected traffic | May drop copies when the switch is busy; costs nothing extra |
| Network tap | Full copy of everything on one cable | Must be bought; fitting it means a short outage |
Shaping delays excess traffic; policing drops it
When a link is full, packets queue and some are lost. A call suffers first, because speech arriving late is useless. Quality of service (QoS) is the set of methods that give some traffic better treatment than other traffic on a busy network.
- Classify: a device sorts packets into classes by reading their headers, for example voice, business applications and backups.
- Mark: it writes the class into a field of each packet, so later devices need not sort again.
- Queue: voice goes into a priority queue that is always sent first.
- Shape or police the classes that may only use part of the link.
Traffic shaping holds back packets that exceed an agreed rate in a queue and sends them a little later, smoothing bursts. Traffic policing discards packets that exceed the rate. Shaping costs delay. Policing costs .
Both also defend. Policing the rate of a flood at the edge limits a denial-of-service attack, an attack that tries to make a service unavailable by overloading it. Shaping keeps a bulk transfer from crowding out everything else.
Baselines guide capacity; heartbeats trigger failover
A baseline is a record of normal behaviour: how busy each link is at each hour, how much traffic each server sends, which systems talk to which. Capacity management compares current use with the baseline and with its trend. A link climbing steadily towards full is upgraded before it fills. Security reads the same baseline. A server that suddenly sends ten times its usual volume at night may be leaking data.
Capacity management is planning and providing enough bandwidth, processing and storage to meet demand. It is also a defence: spare capacity, set quotas and load balancing limit the effect of a flooding attack.
Fault detection uses three signals. Polling asks each device at intervals whether it is up. Traps and syslog messages report failures as they happen. A heartbeat is a small message that one device of a pair sends to the other at a fixed interval.
Two routers sharing one gateway address
Under the Virtual Router Redundancy Protocol (VRRP) two routers share one gateway address. The active router announces itself every second by default. When the announcements stop, the backup waits a short set time, then takes over the address. Devices behind them notice nothing.
Failover is the automatic switch from a failed component to its standby. Fault handling then continues: record the fault, find its cause, repair, and check that failback works.
A question, worked through
A logistics company manages two hundred switches and routers from a central monitoring system. A penetration test captures traffic on a branch network and recovers the read-write community string used by every device. The devices run SNMPv2c. The network manager must keep central monitoring and close the weakness.
What should the network manager do FIRST?
Decide on your answer, then open the reasoning
- The question asks for the change that removes the cause: anyone who captures SNMP traffic learns the password.
- Rule out c: a tap watches the traffic. It does nothing to stop the next capture.
- Rule out d: syslog cannot poll counters or change settings, so central management is lost, which the scenario forbids.
- Between a and b: a new community string still travels in plain text and will be captured again. SNMPv3 authenticates each user and encrypts each message.
- SNMPv3 with authentication and privacy keeps monitoring and removes the weakness, so b is the best answer.
Answer: B. Move every device to SNMPv3 with authentication and privacy enabled
Choosing between good answers
- An option offers SNMPv1 or SNMPv2c with a stronger community string
- reject it. Community strings travel in clear. Choose SNMPv3 with authentication and privacy.
- A question needs who talked to whom and how much, with no content
- choose flow records: NetFlow or IPFIX.
- A sensor needs a full copy of the traffic on a busy link and must not miss packets
- choose a network tap over a port mirror.
- Excess traffic must be smoothed without loss
- choose shaping. When it must be cut off at a hard limit, choose policing.
- A question asks how to tell an unusual volume of traffic from a normal busy day
- the answer depends on a baseline of normal behaviour.
Try it
Read a capture of one web visit and decide which of its facts a flow record would also have kept.
Loading the preview.
Check your understanding
5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 5
What to remember
- Network observability means understanding a network from its metrics, logs and traces without opening each device.
- SNMP versions 1 and 2c protect management with a plain-text community string. Version 3 adds per-user authentication, encryption and access control.
- Syslog carries device events with severities 0 to 7 and needs TLS for protection. Flow records show who talked to whom without content.
- A port mirror copies chosen traffic and can drop copies under load. A tap copies everything on one cable.
- Shaping delays excess traffic; policing drops it. Quality of service gives voice and other urgent traffic priority on a busy link.
- Capacity management works from a baseline, and fault handling relies on polling, alerts, heartbeats and automatic failover.
Say it from memory
Name the four jobs of network monitoring and management and one tool or method for each.
Observability, from metrics, logs and traces such as SNMP, syslog and flow records (SNMPv3 only, since v1 and v2c send community strings in clear). Traffic flow control, by quality of service, shaping (delay excess) and policing (drop excess). Capacity management, measured against a baseline. Fault detection and handling, by polling, traps, heartbeats and automatic failover.
What are the three signals of network observability, and how does observability differ from monitoring?
Metrics are numbers measured over time, logs are time-stamped messages from devices describing events, and traces follow one request across every system it passes through. Monitoring watches for problems someone predicted, such as a link above 80 per cent. Observability lets an analyst ask a new question afterwards.
Which ports do SNMP agents and traps use, and what does SNMPv3 add over versions 1 and 2c?
Agents listen on UDP port 161, and traps go to the manager on UDP port 162. Versions 1 and 2c check requests with a community string sent in plain text. SNMPv3 adds per-user authentication with a keyed hash on each message, optional encryption, and access control over which parts of the MIB each user may read.
Which port does syslog use with and without TLS, and how does a port mirror differ from a network tap?
Syslog over UDP port 514 has no encryption, integrity check or replay protection; syslog over TLS uses TCP port 6514. A port mirror, or SPAN port, copies chosen traffic on a switch at no extra cost but may drop copies when busy. A network tap is fitted into the cable, copies everything on it and means a short outage to fit.
How does traffic shaping differ from traffic policing?
Traffic shaping holds back packets that exceed an agreed rate in a queue and sends them a little later, smoothing bursts, at a cost in delay. Traffic policing discards packets that exceed the rate, at a cost in lost packets. Policing a flood at the edge limits a denial-of-service attack.
What is a heartbeat, and how does VRRP use one to fail over?
A heartbeat is a small message one device of a pair sends to the other at a fixed interval. Under VRRP two routers share one gateway address, and the active router announces itself every second by default. When the announcements stop, the backup waits a short set time, then takes over the address.
Sources
- RFC 3410: Introduction and Applicability Statements for Internet Standard Management Framework, IETFSNMPv1 and SNMPv2c have only plain-text community strings and are Historic; SNMPv3 adds authentication, privacy, access control and replay protection; managers, agents and the MIB.
- RFC 3417: Transport Mappings for the Simple Network Management Protocol (SNMP), IETFAgents listen on UDP port 161 and notification receivers on UDP port 162.
- RFC 5424: The Syslog Protocol, IETFSyslog severities run from 0, Emergency, to 7, Debug. The protocol gives no confidentiality, integrity or replay protection, and TLS transport is recommended.
- RFC 5426: Transmission of Syslog Messages over UDP, IETFSyslog receivers accept datagrams on UDP port 514.
- RFC 5425: Transport Layer Security (TLS) Transport Mapping for Syslog, IETFSyslog over TLS uses TCP port 6514.
- RFC 7011: Specification of the IPFIX Protocol for the Exchange of Flow Information, IETFA flow is a set of packets sharing properties such as addresses, ports and protocol; IPFIX carries flow records from an exporter to a collector.
- RFC 3954: Cisco Systems NetFlow Services Export Version 9, IETF (Cisco Systems authors)NetFlow version 9 is Cisco's flow export format and the base protocol chosen for IPFIX.
- Catalyst Switched Port Analyzer (SPAN) Configuration Example, CiscoSPAN stands for Switched Port Analyzer.
- NIST SP 800-94: Guide to Intrusion Detection and Prevention Systems (IDPS), NISTA spanning port copies switch traffic but may miss some under heavy load. A network tap copies all traffic on the medium, must be bought and needs downtime to fit.
- RFC 2475: An Architecture for Differentiated Services, IETFClassifying and marking packets; shaping delays packets to conform to a traffic profile and policing discards them.
- RFC 5798: Virtual Router Redundancy Protocol (VRRP) Version 3 for IPv4 and IPv6, IETFUnder VRRP the master sends advertisements every second by default and a backup takes over when they stop for the master down interval.
- Observability primer, OpenTelemetry (Cloud Native Computing Foundation)Observability is understanding a system from the outside, from signals such as traces, metrics and logs.
- SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations, NISTManaging capacity, bandwidth and redundancy, including quotas and load balancing, limits the effect of flooding denial-of-service attacks (SC-5(2)).