Network Operations, Monitoring and TroubleshootingIntroductionNetwork operations is the disciplined practice of keeping communication systems available, secure, efficient and fit for purpose. It includes observing network behaviour, detecting abnormal conditions, diagnosing faults, restoring service and using evidence to prevent recurrence. In contemporary environments, operations extends beyond routers and switches to wireless systems, cloud networks, virtual machines, containers, APIs, identity services and distributed applications. A network may be technically reachable but operationally unusable. For example, a web service can respond to ping while suffering from excessive latency, packet loss, DNS failure or an overloaded database. Effective operations therefore combines infrastructure telemetry with service and user experience evidence. This chapter presents a structured approach to troubleshooting and operational decision-making. It examines command-line tools, packet analysis, logs, metrics, SNMP, flow data, observability platforms, capacity, availability, quality of service (QoS), service-level indicators (SLIs) and service-level objectives (SLOs). Learning ObjectivesBy the end of this chapter, a learner should be able to: - apply a structured troubleshooting method rather than relying on guesswork;
- use command-line utilities to test connectivity, naming, routing, transport and application behaviour;
- interpret packet captures, logs, metrics and flow records;
- explain the roles and limitations of SNMP, telemetry and observability platforms;
- calculate and interpret availability, latency, packet loss, utilisation and error-budget measures;
- assess capacity, QoS and service performance using operational evidence; and
- communicate incidents, risks and improvement actions professionally.
1. The Operational ModelNetwork operations can be understood as a feedback loop: - Observe the current state through telemetry and user reports.
- Orient the evidence by establishing scope, time, dependencies and a baseline.
- Decide which hypothesis is most plausible and which test is safest.
- Act through a controlled change, workaround or escalation.
- Verify that the service and its users have recovered.
- Learn by documenting the cause, updating monitoring and preventing recurrence.
This resembles the engineering principle of closed-loop control: measurements are compared with desired conditions and corrective action is applied. However, network operations is not a simple automatic control system. Measurements may be incomplete, delayed or misleading, and an intervention can affect several dependent services. A useful distinction is between: - Fault: a condition that prevents or degrades intended operation.
- Event: an observable occurrence, such as an interface transition or login.
- Incident: an operational disruption requiring coordinated response.
- Problem: the underlying cause or recurring condition responsible for one or more incidents.
- Change: a deliberate modification to configuration, software, topology or policy.
Operations teams should separate detection from diagnosis. An alert indicates that a condition deserves attention; it does not prove the cause. 2. Baselines, Symptoms and HypothesesA baseline describes normal behaviour over a relevant period. It may include interface utilisation, round-trip time, DNS response time, CPU load, flow volume, retransmissions and application error rate. Baselines must account for time of day, day of week, maintenance windows and seasonal demand. Troubleshooting begins with a precise symptom statement. “The network is slow” is weak because it has no defined users, destination, time or measure. “Users in Building B experience median application latency above 800 ms between 09:10 and 09:25, while users in Building A remain normal” is testable. A good hypothesis has three properties: - it is consistent with known evidence;
- it predicts an observable result; and
- it can be tested with limited risk.
The divide-and-conquer method narrows the fault domain. Test from the user outward: local interface, access network, gateway, routing path, transport service, name resolution and application. The OSI model is a useful organising model, but real failures often cross layers. A DNS outage, for example, may appear to be an application failure while the IP network remains healthy. 3. Command-Line DiagnosticsCommand-line tools provide fast, reproducible tests. Their output should be recorded with timestamps, source location and destination, especially during an incident. | Purpose | Common tools | Evidence obtained |
|---|
| Local interface and address | ip addr, ip link, ipconfig | Address, state, MTU, counters | | Routing | ip route, route, traceroute, tracert | Selected path and hops | | Name resolution | dig, nslookup, resolvectl | DNS response, server and records | | Reachability | ping | ICMP response, delay and loss | | Transport testing | ss, netstat, nc, Test-NetConnection | Listening and established sockets | | HTTP/application | curl, wget | Status, headers, timing and content | | Packet capture | tcpdump, Wireshark | Frames, protocols, flags and timing | | Host performance | top, free, vmstat, iostat | Resource pressure and contention |
ping tests a particular form of reachability, not complete service health. Firewalls may block ICMP, and a host may answer ICMP while its web service is failing. traceroute identifies responses from intermediate devices, but load balancing, filtering and asymmetric routing can make its path incomplete or different from the path used by an application.
DNS investigation should examine record type, resolver identity, authoritative status, response code and time-to-live. A successful lookup does not guarantee that the returned service endpoint is healthy. For an HTTP test, curl -w can expose DNS, connection, TLS and server-response timing. This separates network delay from application processing delay. Transport tools such as ss can reveal excessive connection states, while nc can test whether a TCP port accepts connections. A successful TCP handshake still does not prove that the application protocol is functioning. Commands must be used safely. Broad scans, high-rate pings and packet captures containing personal or confidential information may disrupt systems or breach policy. Permission, scope and data handling rules apply. 4. Packet AnalysisA packet capture is a time-ordered record of frames observed at a capture point. It can reveal addressing, protocol exchanges, retransmissions, resets, fragmentation, TLS negotiation and application timing. It cannot automatically show events that occurred before the capture point or payload encrypted by TLS. A practical packet-analysis workflow is: - define the question and capture location;
- capture only the required interface, hosts, ports and time period;
- preserve the original file and record the filter used;
- identify the protocol conversation;
- inspect sequence, acknowledgement, flags, timestamps and retransmissions;
- compare a healthy transaction with a failing transaction; and
- correlate packet evidence with logs and metrics.
For TCP, a SYN followed by SYN-ACK and ACK indicates completion of the three-way handshake. Repeated SYNs without a response may indicate filtering, an unreachable destination or a failed return path. RST packets indicate an abrupt refusal or termination, but interpretation depends on which endpoint generated them. Repeated data retransmissions can indicate loss, congestion or receiver problems; they do not by themselves prove a faulty cable. Capture location matters. A capture on a server may show packets arriving successfully even though a client-side wireless link is losing frames. Capture timestamps should be treated carefully because clocks, buffering and offloading features can affect interpretation. Hardware checksum offload and segmentation offload may make locally captured packets look unusual without representing wire-level errors. Filters reduce noise. A capture filter limits what is collected, while a display filter limits what is shown after capture. Sensitive captures should be access-controlled, retained for the minimum justified period and anonymised where feasible. 5. Logs, Metrics, Traces and EventsAn operational platform normally combines several telemetry types: - Logs are discrete records of events, usually containing time, severity, component and message.
- Metrics are numerical measurements sampled or aggregated over time.
- Traces follow a request across distributed components and expose timing and dependency relationships.
- Events represent state changes, such as an interface-down notification or configuration deployment.
- Profiles describe resource consumption inside a process and are useful for performance analysis.
Logs should be structured rather than merely written as free text. Important fields include timestamp with time zone, host, service, severity, event identifier, correlation identifier and outcome. Clock synchronisation using authenticated NTP or an equivalent mechanism is essential when comparing records from different devices. Metrics require a clear unit and aggregation method. “CPU 80%” is ambiguous unless the measurement interval, host scope and meaning of utilisation are known. Percentiles are often more informative than averages for user-facing latency. The p95 latency is the value at or below which approximately 95% of observations fall; it does not mean that every request is 95% as slow. High-cardinality labels, such as a unique request identifier used as a metric dimension, can overload monitoring systems. Stable labels such as service, region and status class are generally safer, while request identifiers belong in logs or traces. Observability asks whether the internal state of a system can be inferred from its external outputs. A platform may collect extensive data yet remain poorly observable if telemetry is incomplete, uncorrelated or not actionable. Effective observability joins infrastructure, network, application and business perspectives. 6. SNMP, Streaming Telemetry and Flow DataThe Simple Network Management Protocol (SNMP) uses a management station, agents and a Management Information Base (MIB). Objects are identified by object identifiers (OIDs). Common operations include GET, GETNEXT and SET; traps and informs allow devices to report events. SNMPv3 provides authentication and privacy features and should be preferred over older community-string approaches. SNMP is useful for interface octets, errors, discards, status, environmental sensors and device health. It is primarily a polling model, so short-lived events may be missed between polls. Counter wrap, device-specific semantics and polling load must be considered. A reported interface counter is not necessarily a direct measure of user-perceived quality. Streaming telemetry can export measurements continuously or at shorter intervals using modern transport and data models. It can improve timeliness and scale, but it introduces collector, schema, storage and security requirements. Flow data records conversations rather than individual packets. NetFlow, IPFIX and similar systems commonly provide source and destination, ports, protocol, timestamps, byte and packet counts, interfaces and sometimes sampling information. Flow data is valuable for traffic engineering, top talker analysis, policy review and capacity planning. It generally cannot prove packet-level sequence behaviour, application payload content or the exact cause of a transaction failure. 7. Availability, Performance and Capacity MeasuresA service-level indicator is a measured aspect of service quality. Examples include successful request fraction, DNS success rate, p95 latency and packet-loss rate. An SLO is a target for an SLI over a defined period. An SLA is a broader agreement that may include obligations, exclusions and consequences. Availability is commonly calculated as: Availability = (Agreed service time − Unavailable time) ÷ Agreed service time × 100% The time quantities must use the same units and the definition of unavailability must be agreed. If a monthly service window is 30 days and an outage lasts 43.2 minutes, then agreed time is 43,200 minutes and availability is approximately 99.9%. For request-based services, a success ratio may be more meaningful: Success ratio = Successful valid requests ÷ Total valid requests Requests excluded from the denominator must be explicitly defined; otherwise the measure can be manipulated. Utilisation is often expressed as: Utilisation = Observed resource demand ÷ Available resource capacity × 100% Capacity is not simply the nominal link speed. A 1 Gbit/s link may have less usable capacity because of protocol overhead, QoS reservations, burst behaviour or an engineering safety margin. Capacity planning compares demand trends and variability with the threshold at which performance becomes unacceptable. A simple utilisation example: a 1 Gbit/s link carries an average of 650 Mbit/s during a busy interval. Its average utilisation is 65%. This does not prove that no congestion occurred, because short bursts may have filled buffers and caused packet loss. Latency and jitter should be measured with a defined method. For observations x₁, x₂, …, xₙ, the arithmetic mean is: x̄ = (∑ᵢ₌₁ⁿ xᵢ) ÷ n Here xᵢ is an observation and n is the number of observations. The mean is sensitive to outliers; percentile or maximum measures may better represent tail behaviour. Jitter has multiple industry definitions, so an operational report must state the chosen calculation rather than assuming one universal formula. Packet-loss rate can be calculated as: Loss rate = Lost packets ÷ Sent packets × 100% The measurement interval, packet size and test direction must be stated. A small ICMP test may not represent loss for a real application. 8. Quality of Service and Service ObjectivesQoS manages contention by classifying traffic and applying policies such as marking, queuing, shaping, policing and scheduling. Classification should reflect business and technical requirements, not merely application names, because encryption, tunnelling and misclassification can obscure traffic identity. QoS cannot create bandwidth. It determines which traffic receives preferential treatment when resources are constrained. Voice may require low delay, low loss and controlled jitter, while bulk backup traffic may tolerate delay. Poorly designed priority queues can starve other classes. An SLO should include the service, indicator, target, measurement window and exclusions. For example: “99.9% of valid API requests in the production region complete successfully within 30 days.” The definition of valid request, success and measurement boundary must be explicit. The error budget is the permitted unreliability implied by an SLO: Error budget = 1 − SLO target For a 99.9% target, the error budget is 0.1% of the eligible measurement period or requests. Error budgets support balanced decisions: if the budget is being consumed rapidly, risky changes may be paused while reliability work is prioritised. 9. Structured Troubleshooting ProcessA professional troubleshooting process has the following stages: Define and containRecord impact, affected users, start time, symptoms, recent changes and business priority. Apply safe containment, such as rerouting traffic or rolling back a known bad change, while preserving evidence. Establish scopeDetermine whether the problem is local, regional, service-wide, client-specific, protocol-specific or intermittent. Compare affected and unaffected paths. Form and rank hypothesesUse evidence and dependency knowledge. A recent configuration change deserves attention, but recency is not proof. Rank hypotheses by likelihood, impact and test cost. Test from low risk to high riskBegin with observation and read-only tests. Avoid changing multiple variables at once. Record the expected result before each test. Restore and verifyUse a documented workaround or approved change. Verify from more than one vantage point, including the user or service transaction where possible. Diagnose and prevent recurrenceIdentify technical and organisational causes, not only the last failed component. Update runbooks, alerts, capacity plans and change controls. Root-cause analysis may use a timeline, fault tree or “five whys”. These tools should not be used to assign blame. A robust analysis asks why existing controls failed to prevent, detect or limit the incident. 10. An Illustrative Case: Intermittent Payment LatencyBackground. A fictional online retailer receives complaints that payment confirmation is slow between 18:00 and 20:00. The website remains reachable. Problem. The operations dashboard shows p95 confirmation latency rising from 1.2 s to 8.5 s, while the availability SLO remains satisfied. Users in two regions are affected; internal users are not. Analysis. DNS success and TCP connection success remain normal. Flow records show a sharp increase in outbound traffic from the application tier to a payment provider. Packet captures show no widespread retransmission on the client-to-application path. Application traces show that most delay occurs while waiting for the provider response. Interface metrics show the provider-facing egress link reaching 94% utilisation, with output queue discards during bursts. A recent marketing campaign explains the increased transaction volume. Approach. The team first applies a temporary traffic policy to protect payment traffic from lower-priority bulk exports. It schedules exports outside the peak window, adds a second provider connection and validates routing symmetry. The team then changes the SLO dashboard to include payment-provider dependency latency and queue discards, not only website availability. Outcome. p95 payment latency returns below 2 s during the next peak period, and queue discards disappear. The longer-term capacity plan includes demand forecasts, burst analysis and a tested failover path. Learning points. Reachability and availability did not reveal the user-visible degradation. Correlating traces, flow records, interface counters and packet evidence identified a capacity and QoS interaction. The case also demonstrates that monitoring must follow the service journey, including external dependencies. 11. Governance, Security and Contemporary PracticeOperational data can contain IP addresses, usernames, URLs, payload fragments and personal information. Access should follow least privilege, retention should be proportionate, and captures should be encrypted and audited. Logs must be protected from unauthorised alteration; central collection and integrity controls improve evidential value. Monitoring can create security risk. Management interfaces should use strong authentication, network segmentation, encrypted transport and restricted source addresses. SNMP write access should be disabled unless justified and controlled. Alert details should not expose secrets. Automation and AI-assisted operations can correlate events, detect anomalies and recommend probable causes. They should not be treated as authoritative without validation. Training data may encode seasonal bias, alerts may be correlated incorrectly and automated remediation can amplify an outage. High-impact changes require approval boundaries, rollback plans and human oversight. Contemporary practice increasingly uses OpenTelemetry-style instrumentation, service maps, distributed tracing, infrastructure-as-code validation and reliability engineering based on SLOs. These practices improve consistency but do not remove the need for sound measurement, domain knowledge and clear accountability. Best Practices- Define an operational baseline before declaring an anomaly.
- Measure service outcomes as well as device health.
- Synchronise clocks and preserve timestamps and evidence.
- Correlate logs, metrics, traces, packets and flow records.
- Use percentiles and distributions for latency, not averages alone.
- Make alert thresholds actionable and review false positives.
- Protect monitoring data and minimise unnecessary collection.
- Test failover, backups, capacity assumptions and runbooks.
- Document changes and maintain a reliable configuration source.
- Conduct blameless post-incident reviews with assigned corrective actions.
Chapter SummaryNetwork operations is a closed-loop discipline of observation, interpretation, controlled action, verification and learning. Structured troubleshooting defines symptoms, establishes scope, ranks hypotheses and tests them safely. Command-line tools reveal addressing, routing, naming, transport and application evidence, while packet analysis exposes protocol behaviour at a capture point. Logs, metrics, events, traces and profiles provide complementary views of system state. SNMP remains useful for device and interface monitoring, streaming telemetry improves timeliness, and flow data supports traffic and capacity analysis. No single telemetry source is sufficient. Availability, success ratio, latency, loss, utilisation and error budgets require explicit definitions, units and measurement boundaries. QoS manages contention but cannot create bandwidth. SLIs and SLOs connect technical observations to user and business outcomes. Reliable operations therefore depends on both technical evidence and disciplined governance, security, communication and continuous improvement. Key TermsAvailability: The proportion of agreed service time during which a service is usable according to its definition. Baseline: A description of normal system behaviour used for comparison. Capacity: The usable ability of a resource or service to handle demand while meeting performance requirements. Error budget: The unreliability permitted by an SLO. Event: An observable occurrence or state change in a system. Flow data: Summarised records describing network conversations rather than individual packets. Incident: An interruption or degradation requiring operational response. Jitter: Variation in packet or transaction delay, measured using a specified definition. Latency: Time taken for a packet, request or operation to complete, under a defined measurement method. Metric: A numerical measurement collected over time. MIB: A structured collection of managed objects used by SNMP. Observability: The ability to infer internal system state from externally visible outputs. Packet capture: A recorded observation of network frames at a particular capture point. Problem: An underlying cause of one or more incidents. QoS: Policies and mechanisms for managing traffic treatment during contention. SLA: A service agreement containing performance commitments and related conditions. SLI: A measured indicator of service performance or quality. SLO: A target value or range for an SLI over a stated period. SNMP: A protocol for monitoring and managing network devices through managed objects. Telemetry: Data exported from systems for monitoring, analysis and control. Review QuestionsShort Answer Questions- Why is a successful ping insufficient evidence that an application is healthy?
- Distinguish an event, an incident and a problem.
- What information does flow data provide, and what does it usually omit?
- Why are clocks and timestamps important during troubleshooting?
- Define an SLI and an SLO.
Long Answer Questions- Explain a structured troubleshooting process from symptom definition through post-incident learning.
- Compare logs, metrics, traces, packet captures and flow records, including the strengths and limitations of each.
- Explain SNMP polling, traps or informs, and streaming telemetry in a modern operations environment.
- Discuss how QoS mechanisms manage congestion and why QoS cannot increase physical bandwidth.
- Explain how availability, latency, packet loss, utilisation and error budgets can support operational decisions.
Analytical / Application Questions- A service has a 99.95% monthly SLO. Explain how you would calculate its monthly error budget and design measurements to determine whether the budget is being consumed.
- Users report intermittent delays, but interface average utilisation is only 55%. Develop a troubleshooting plan that considers bursts, queue discards, DNS, application dependencies and measurement limitations.
- Design a monitoring and response strategy for a cloud-hosted payment API. Specify the SLIs, telemetry sources, alert conditions, security controls and evidence you would require before applying automated remediation.
Multiple Choice Questions with AnswersQuestion 1Which statement best describes an SLI? A. A contractual penalty for violating a service agreement B. A measured indicator of service performance or quality C. A device configuration backup D. A list of network device commands Correct Answer: B. A measured indicator of service performance or quality Question 2A 1 Gbit/s link carries an average of 650 Mbit/s during a defined interval. What is its average utilisation? A. 6.5% B. 55% C. 65% D. 154% Correct Answer: C. 65% Question 3Which tool is most directly suited to examining TCP flags and retransmissions? A. Packet analyser B. DNS resolver C. SNMP community string D. Text editor Correct Answer: A. Packet analyser Question 4What is a major limitation of flow data? A. It cannot identify communicating endpoints B. It generally does not provide individual packet sequence behaviour C. It always includes complete application payloads D. It can only be collected from wireless networks Correct Answer: B. It generally does not provide individual packet sequence behaviour Question 5For a 99.9% SLO, what is the error budget as a fraction of eligible service measurements? A. 0.001 B. 0.01 C. 0.099 D. 0.999 Correct Answer: A. 0.001 Question 6Which observation most strongly suggests a TCP connection was abruptly refused or terminated? A. An RST packet B. A DNS TTL value C. An SNMP interface description D. A successful ARP cache lookup Correct Answer: A. An RST packet Question 7Why should troubleshooting tests normally begin with read-only observations? A. They guarantee that the fault is in software B. They reduce the risk of changing the condition being investigated C. They eliminate the need for logs D. They always identify the root cause immediately Correct Answer: B. They reduce the risk of changing the condition being investigated Question 8Which telemetry type is best suited to following one request across several distributed services? A. Distributed trace B. Interface description C. MAC address table D. Static route Correct Answer: A. Distributed trace Question 9What does QoS primarily do during resource contention? A. Creates additional physical bandwidth B. Determines traffic treatment and priority C. Encrypts every packet D. Replaces all routing protocols Correct Answer: B. Determines traffic treatment and priority Question 10Why can average latency be misleading for a user-facing service? A. It is always measured in bytes B. It hides the distribution and tail of observations C. It cannot be calculated for any request D. It measures only packet addresses Correct Answer: B. It hides the distribution and tail of observations
|