Tutorial 6: Network Monitoring, Measurement, and Observability

COMP347 Unit 8 – Network Management and Network Operations

Table of Contents

Learning Objectives

After completing this extended tutorial, you should be able to:

Overview

Network monitoring is the continuous observation of network infrastructure to detect faults, measure performance, and ensure the delivery of services. This tutorial provides a comprehensive, in‑depth exploration of monitoring principles, metrics, and modern observability practices. We begin by defining the fundamental metrics — latency, jitter, packet loss, throughput, and availability — and the methods used to measure them (active probing, passive analysis, and hybrid approaches).

We differentiate between synthetic monitoring (simulated user activity) and real‑user monitoring (actual traffic), and discuss how they complement each other. The tutorial then introduces the modern observability paradigm, emphasizing the four pillars: metrics, logs, traces, and events. We explore how these data types are collected, processed, correlated, and visualised to provide actionable insights.

Statistical analysis and anomaly detection techniques are covered, including moving averages, thresholding, and machine‑learning‑based approaches. We also discuss monitoring architectures, from centralized pollers to distributed agents and streaming telemetry pipelines. The concept of Service Level Indicators (SLIs) and Objectives (SLOs) is presented as a way to align monitoring with business goals. Practical examples, tool comparisons, and case studies illustrate the application of these concepts in real‑world networks.

Technical and Theoretical Content

1. Fundamentals of Network Monitoring

Network monitoring is the process of collecting, analyzing, and presenting data about the state and performance of network devices and links. Its primary objectives are:

Monitoring can be classified by data source (device counters, flow records, packet captures), by collection method (polling vs. push), and by frequency (periodic vs. continuous).

2. Key Performance Metrics and Measurement Techniques

Measurement techniques:

3. Monitoring Types: Active, Passive, and Hybrid

4. Synthetic Monitoring

Synthetic monitoring involves simulating user transactions (e.g., HTTP GET, DNS lookup, VoIP call) from distributed agents. It is proactive and can detect issues before users are affected. Use cases:

Advantages: Controlled environment, predictable, can test complex workflows. Disadvantages: Does not capture actual user behavior, may not reflect all network conditions.

5. Real‑User Monitoring (RUM)

RUM captures performance data from actual user sessions, often through JavaScript agents in web browsers or agents on end‑user devices. It provides:

Advantages: High accuracy, reflects actual user experience. Disadvantages: Passive, dependent on traffic, may have privacy implications.

6. Modern Observability: Metrics, Logs, Traces, Events

Observability goes beyond monitoring by enabling exploration of system state through diverse data types.

The relationship: metrics tell you what is wrong, logs tell why, traces tell where (in the path), and events provide context. Observability platforms integrate these sources for holistic root‑cause analysis.

7. Event Correlation and Anomaly Detection

Example: A spike in packet loss on a link may trigger an alert, but correlating it with a BGP flap or high CPU on the router helps pinpoint the cause.

8. Monitoring Architectures and Data Pipelines

Scalability considerations: data volume, retention, query performance, and real‑time processing.

9. Service Level Indicators (SLIs) and Service Level Objectives (SLOs)

Monitoring systems should track SLIs and compute error budgets (allowed failures) to guide operational decisions. This aligns monitoring with business outcomes.

10. Common Tools and Platforms

11. Case Studies

Quiz (38 Questions)

All answers are hidden; click Show Answer to reveal.

Question 1:

Define network monitoring and list its four primary objectives.

Show Answer
Network monitoring is the process of collecting, analyzing, and presenting data about the state and performance of network devices and links. Objectives: availability, performance, capacity planning, troubleshooting, and security.
Question 2:

What is the difference between latency and jitter?

Show Answer
Latency is the time for a packet to travel from source to destination (often measured as RTT). Jitter is the variation in latency over time.
Question 3:

Name three key performance metrics used in network monitoring.

Show Answer
Latency, packet loss, throughput (also availability, jitter).
Question 4:

What is the difference between active and passive monitoring?

Show Answer
Active monitoring injects test packets into the network; passive monitoring observes existing traffic.
Question 5:

Define synthetic monitoring. Give an example.

Show Answer
Synthetic monitoring simulates user transactions (e.g., HTTP GET) from distributed agents. Example: periodically fetching a web page to measure response time.
Question 6:

What is Real‑User Monitoring (RUM) and how does it differ from synthetic monitoring?

Show Answer
RUM captures performance data from actual user sessions; it reflects real‑user experience, whereas synthetic monitoring uses simulated traffic.
Question 7:

List the four pillars of observability.

Show Answer
Metrics, logs, traces, and events.
Question 8:

What is the role of logs in observability?

Show Answer
Logs provide detailed, unstructured or structured records of discrete events, useful for debugging and root‑cause analysis.
Question 9:

Explain what a trace is in the context of observability.

Show Answer
A trace captures the end‑to‑end path of a request across distributed services, showing latency at each hop.
Question 10:

What is event correlation in network monitoring?

Show Answer
Event correlation is the process of combining multiple alerts or events to reduce noise, identify root causes, and improve incident response.
Question 11:

What is the purpose of anomaly detection in monitoring?

Show Answer
To identify deviations from normal behavior that may indicate faults, performance degradation, or security threats.
Question 12:

Define an SLI (Service Level Indicator) and an SLO (Service Level Objective).

Show Answer
SLI is a quantitative measure of service performance (e.g., latency). SLO is a target for that measure over a period (e.g., 99% of requests < 100 ms).
Question 13:

What is the difference between an SLO and an SLA?

Show Answer
An SLO is an internal target for service performance; an SLA is a formal agreement with customers that includes penalties for failing to meet SLOs.
Question 14:

How does streaming telemetry improve monitoring over traditional polling?

Show Answer
Streaming telemetry uses a push model where devices send data continuously, providing higher frequency, lower latency, and reduced overhead compared to periodic polling.
Question 15:

What are the advantages of using a time‑series database for monitoring metrics?

Show Answer
Optimized for high‑volume time‑stamped data, efficient storage with compression, fast queries for trends and aggregations.
Question 16:

Explain how a distributed monitoring architecture can improve scalability.

Show Answer
By placing pollers or collectors near devices, reducing central bottleneck, and enabling horizontal scaling of processing and storage.
Question 17:

What is the significance of the "error budget" in SLO‑based management?

Show Answer
The error budget is the allowable amount of SLO violation (e.g., 1% of requests can be slow). It guides decision‑making on how much risk to take for new releases or changes.
Question 18:

Name two open‑source monitoring tools and their primary focus (metrics, logs, etc.).

Show Answer
Prometheus (metrics), ELK stack (logs), Jaeger (traces), Grafana (visualization).
Question 19:

What is the difference between a counter and a gauge metric?

Show Answer
A counter monotonically increases (e.g., total bytes), while a gauge can go up or down (e.g., temperature).
Question 20:

In a monitoring pipeline, what is the role of a message broker (e.g., Kafka)?

Show Answer
It decouples data producers (agents) from consumers (storage/processing), enabling buffering, load balancing, and reliable delivery.
Question 21:

What is meant by "alert fatigue" and how can it be mitigated?

Show Answer
Alert fatigue occurs when too many non‑critical alerts desensitize operators. Mitigation: correlation, proper threshold tuning, escalation policies, and AI‑based filtering.
Question 22:

Explain the difference between a histogram and a summary metric.

Show Answer
Histograms bucket values into predefined buckets (e.g., latency buckets) and provide counts, useful for percentiles. Summaries calculate quantiles over a sliding window on the client side.
Question 23:

What is the purpose of a "health check" in monitoring?

Show Answer
A health check is a simple test (e.g., ping, HTTP status) to verify a device or service is operational and responsive.
Question 24:

How can you measure packet loss on a network path without access to the endpoints?

Show Answer
Using passive monitoring: observe sequence numbers or retransmissions in TCP flows, or use ICMP echo with sequence numbers.
Question 25:

What is the difference between "availability" and "reliability" in network context?

Show Answer
Availability is the proportion of time a service is operational (uptime/total time); reliability is the probability that the service performs its function without failure over a given period (MTBF).
Question 26:

What is the role of a "baseline" in monitoring?

Show Answer
A baseline is a reference of normal behavior (e.g., average latency) used to detect deviations and anomalies.
Question 27:

In a hybrid monitoring approach, how do active and passive data complement each other?

Show Answer
Active probes provide consistent, scheduled measurements; passive data gives real‑user context. Together they allow comprehensive performance and experience analysis.
Question 28:

What is a "trace context" in distributed tracing?

Show Answer
Trace context includes the trace ID, span ID, and parent span ID, allowing propagation across service boundaries to correlate spans into a trace.
Question 29:

Why is it important to have logging with structured formats (e.g., JSON)?

Show Answer
Structured logs are machine‑parseable, enabling easier indexing, searching, and correlation in log analysis systems.
Question 30:

What is the difference between a "root‑cause analysis" and a "post‑mortem" in incident management?

Show Answer
Root‑cause analysis identifies the underlying cause; a post‑mortem is a documented review that includes RCA, timeline, impact, and action items to prevent recurrence.
Question 31:

What is the purpose of a "dashboard" in monitoring?

Show Answer
To visualise key metrics, SLIs, and health status in real‑time, enabling quick assessment of system state.
Question 32:

What is the "four golden signals" of monitoring according to Google's SRE?

Show Answer
Latency, traffic, errors, and saturation.
Question 33:

How does a "black‑box" monitoring differ from a "white‑box" monitoring?

Show Answer
Black‑box monitors external perspectives (e.g., user‑facing metrics), while white‑box monitors internal system internals (e.g., CPU, internal counters).
Question 34:

What is the purpose of "log aggregation" in a monitoring pipeline?

Show Answer
To collect logs from multiple sources into a central repository for searching, analysis, and correlation.
Question 35:

What is a "time‑series database" and why is it suitable for metrics?

Show Answer
A TSDB is optimized for storing and querying time‑stamped data, with compression, indexing, and downsampling capabilities.
Question 36:

Define the term "observability‑driven networking".

Show Answer
A practice where network management relies on deep observability (metrics, logs, traces) to drive automation and decision‑making, beyond traditional monitoring.
Question 37:

What is a "Synthetic Transaction" and how is it useful?

Show Answer
A synthetic transaction is a scripted simulation of a user action (e.g., login, search) used to proactively test application performance and availability.
Question 38:

Explain how the concept of "error budgets" influences operational decisions.

Show Answer
Error budgets provide a quantifiable allowance for failures. If budget is high, teams can take more risks (e.g., deploy new versions); if low, they slow down changes to focus on reliability.

Exercises (18 Applied Problems)

Sample solutions are hidden – click to reveal.

Exercise 1:

You are monitoring a WAN link. You observe an average latency of 45 ms, but users complain of occasional delays. What additional metrics would you investigate and why?

Show Sample Solution
Check jitter (variation in latency) and packet loss. Also examine throughput and utilization; high utilization can cause queuing delays. Also look at TCP retransmissions.
Exercise 2:

Design a synthetic monitoring test to verify the availability and performance of a web application from three geographic regions. Specify the test type, frequency, and metrics to collect.

Show Sample Solution
Use HTTP GET requests to fetch the homepage. Frequency: every 5 minutes. Metrics: response time, HTTP status, content validation. Collect from agents in US, EU, and APAC.
Exercise 3:

Explain how you would use traces to debug a slow API call that spans multiple microservices.

Show Sample Solution
Enable distributed tracing. Collect trace for the slow request; inspect spans to see which service consumed the most time; drill into logs of that service to find the bottleneck (e.g., database query).
Exercise 4:

You receive too many alerts from your monitoring system. What steps would you take to reduce alert fatigue?

Show Sample Solution
Implement alert correlation (group related alerts), adjust thresholds based on baselines, implement severity levels, use routing to proper teams, and suppress duplicate alerts.
Exercise 5:

Compare the use of NetFlow (passive) vs. synthetic probes for detecting network congestion. When would you use each?

Show Sample Solution
NetFlow provides actual traffic patterns and can identify which flows are causing congestion. Synthetic probes give end‑to‑end performance metrics but not flow details. Use NetFlow for analysis; synthetic for proactive SLA monitoring.
Exercise 6:

Define an SLI for a video streaming service. What metrics would you choose and what would be the SLO?

Show Sample Solution
SLI: startup latency (time to first frame), rebuffering ratio. SLO: 95% of sessions start within 2 seconds, and rebuffering ratio < 0.5%.
Exercise 7:

You need to monitor a new branch office with limited IT staff. Which monitoring approach (active, passive, or hybrid) would you recommend and why?

Show Sample Solution
Recommend active monitoring with a small appliance that runs synthetic tests and reports to central NMS. This is lightweight and does not require deep packet analysis.
Exercise 8:

Explain the concept of "time‑series data retention" and discuss trade‑offs in downsampling and aggregation.

Show Sample Solution
Retention: how long data is kept. Downsampling reduces granularity for older data to save space. Trade‑off: loss of detail for historical analysis; choose retention policies based on compliance and operational needs.
Exercise 9:

Write a Prometheus query to calculate the 95th percentile of HTTP request latency over the last hour.

Show Sample Solution
histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[1h])) by (le))
Exercise 10:

Describe a scenario where passive monitoring (e.g., NetFlow) is more suitable than active probing for detecting a DDoS attack.

Show Sample Solution
During a DDoS, active probes may be overwhelmed or blocked; passive flow data can still show anomalous traffic patterns (e.g., high packets per second from many sources).
Exercise 11:

How can you correlate syslog messages from multiple devices to identify a network outage? Provide a step‑by‑step approach.

Show Sample Solution
Collect logs centrally, normalize timestamps, search for interface down events, use topology to identify common upstream device, and correlate with BGP or routing changes.
Exercise 12:

What are the trade‑offs between using a commercial APM (Application Performance Monitoring) tool versus building an open‑source observability stack?

Show Sample Solution
Commercial: easy setup, support, integration, but cost and vendor lock‑in. Open‑source: flexibility, control, lower cost, but requires more effort to integrate and maintain.
Exercise 13:

Explain how "log aggregation" and "trace correlation" can help in troubleshooting a slow application.

Show Sample Solution
Logs show detailed errors and events; traces show the path and latencies. Correlating a trace ID with logs from each service helps pinpoint which component failed or slowed down.
Exercise 14:

Design a monitoring strategy for a Kubernetes cluster. What metrics and logs are critical?

Show Sample Solution
Critical: pod CPU/memory, network throughput, request latency, pod status events, node health. Use Prometheus for metrics, Fluentd for logs, and Jaeger for tracing.
Exercise 15:

What is the difference between "saturation" and "utilization" in monitoring? Provide examples.

Show Sample Solution
Utilization is the percentage of resource used (e.g., bandwidth). Saturation is the point where additional load degrades performance (e.g., queue depth). High utilization leads to saturation.
Exercise 16:

How would you set up an alert for a sudden increase in packet loss on a critical link? Describe the threshold and time window.

Show Sample Solution
Use a baseline (e.g., loss < 0.1%). Alert if average loss over 5 minutes exceeds 0.5% and is sustained. Use sliding window to avoid false positives.
Exercise 17:

Explain the role of "distributed tracing" in microservices architecture. How does it differ from traditional application monitoring?

Show Sample Solution
Distributed tracing tracks a request across service boundaries, showing each hop's latency. Traditional monitoring focuses on per‑service metrics; tracing provides end‑to‑end visibility.
Exercise 18:

You have a network with both SNMP polling and streaming telemetry. How would you integrate the two data sources into a unified dashboard?

Show Sample Solution
Collect both into a time‑series database (e.g., Prometheus) with proper labels (source type). Use Grafana to create dashboards with mixed data sources, showing polled and streamed metrics in the same graphs.

Homework (15 In‑Depth Assignments)

Sample answers are hidden; use them to guide your study.

Homework 1:

Write a detailed essay on the evolution from traditional monitoring to observability. Include the technical drivers (microservices, cloud, scale) and the role of each pillar.

Show Sample Answer

The essay should cover: traditional monitoring focused on known failure modes (pre‑configured metrics). Microservices and dynamic environments require observability to ask arbitrary questions. Metrics provide health, logs provide details, traces provide path analysis, events provide context. The combination enables deep troubleshooting and proactive automation.

Homework 2:

Design a monitoring system for a global CDN (Content Delivery Network). Specify metrics, collection methods, and how you would handle real‑time alerting and long‑term trend analysis.

Show Sample Solution

Metrics: latency per POP, cache hit ratio, bandwidth, error rates. Use active probes from multiple regions and passive logs from edge servers. Alert on performance degradation, scale out to handle bursts. Use long‑term storage for capacity planning.

Homework 3:

Analyze the trade‑offs between poll‑based (SNMP) and push‑based (telemetry) monitoring. Under what conditions would you prefer one over the other?

Show Sample Solution

Poll‑based: simpler, mature, but less frequent and higher overhead. Push‑based: higher frequency, lower overhead, better for large scale. Prefer telemetry for high‑density networks and real‑time requirements.

Homework 4:

Explain the concept of "baseline" and "anomaly detection" using statistical methods (e.g., moving average, standard deviation). Provide a step‑by‑step example.

Show Sample Solution

Define baseline as the mean and standard deviation over a window (e.g., 7 days). Anomaly if value exceeds mean ± 3σ. Example: latency baseline 100ms ± 10ms; alert if > 130ms.

Homework 5:

Research and compare three monitoring platforms: Prometheus, Datadog, and SolarWinds. Evaluate them based on scalability, ease of use, cost, and integration capabilities.

Show Sample Answer

Prometheus: open‑source, metrics‑only, high scalability, steep learning curve, free. Datadog: commercial, full‑stack, integrated tracing/logs, easy, expensive. SolarWinds: traditional NMS, good for legacy, less cloud‑native, moderate cost.

Homework 6:

How do you define an SLO for a network service that includes both latency and availability? Provide a mathematical formulation and discuss error budget management.

Show Sample Answer

SLI: latency (e.g., 99th percentile < 50 ms) and availability (uptime ≥ 99.9%). SLO: over a month, 99.9% of requests meet latency, and uptime ≥ 99.9%. Error budget=0.1% of requests can be slow, and 0.1% downtime allowed.

Homework 7:

Describe the architecture of a modern observability pipeline, including data ingestion, processing, storage, and visualization. Use technologies like Kafka, Flink, Elasticsearch, Grafana, etc.

Show Sample Answer

Agents → Kafka (buffering) → Stream processing (Flink for aggregation/enrichment) → Time‑series DB (Prometheus) and log store (Elasticsearch). Grafana for visualization. Alertmanager for alerts.

Homework 8:

Write a guide on how to implement effective log management for a large network, including collection, indexing, and retention policies.

Show Sample Solution

Collect logs from syslog, SNMP traps, and application logs. Use a centralized collector (e.g., Fluentd). Index in Elasticsearch. Retention: 30 days hot, 90 days warm, 1 year cold. Implement alerting on error patterns.

Homework 9:

Explain the importance of "time‑series data" in network performance analysis. How would you use it to predict future capacity needs?

Show Sample Answer

Time‑series data reveals trends and seasonality. Use linear regression or ARIMA to forecast traffic growth. Combine with lead‑time for procurement to plan upgrades.

Homework 10:

Compare and contrast "synthetic monitoring" and "real‑user monitoring" in terms of cost, coverage, and accuracy. Provide a recommendation for a large e‑commerce site.

Show Sample Answer

Synthetic: lower cost, proactive, but may not cover all user paths. RUM: more accurate, real‑user data, but passive and may have privacy concerns. For e‑commerce, use both: synthetic for critical user journeys, RUM for overall experience.

Homework 11:

What are the security considerations when collecting and storing monitoring data (metrics, logs, traces)? Discuss access control, encryption, and compliance.

Show Sample Answer

Encrypt data in transit (TLS) and at rest. Implement RBAC to restrict access to sensitive data. Ensure compliance with GDPR (anonymize PII) and HIPAA (audit logging).

Homework 12:

Design a monitoring solution for a hybrid cloud network (on‑premises and AWS). Include connectivity monitoring, application performance, and security alerts.

Show Sample Solution

Monitor VPN tunnels with ping and BGP states. Use CloudWatch for AWS resources, and on‑prem SNMP. Integrate with SIEM for security. Use a unified dashboard.

Homework 13:

Explain the concept of "contextual correlation" in observability. How can you combine metrics, logs, and traces to reduce MTTD (Mean Time to Detect)?

Show Sample Answer

Contextual correlation links data across pillars. For example, a spike in error rate (metrics) is correlated with a specific trace showing a slow database query; logs from that query reveal a lock issue. This speeds detection.

Homework 14:

Write a research paper on the use of machine learning for network anomaly detection. Discuss supervised vs. unsupervised methods, and evaluate their applicability.

Show Sample Answer

Paper should cover: unsupervised (clustering, autoencoders) for unknown anomalies; supervised (classification) for known attack patterns. Include challenges: false positives, concept drift, and need for labeled data.

Homework 15:

Critically evaluate the statement: "Observability is a superset of monitoring and makes monitoring obsolete." Justify your position with examples.

Show Sample Answer

Observability includes monitoring but adds the ability to explore unknown unknowns. Monitoring is still needed for dashboards and SLOs. Both coexist; observability enhances rather than replaces monitoring.

Summary

This extended tutorial has provided a comprehensive exploration of network monitoring, measurement, and observability. We covered the fundamental metrics (latency, jitter, packet loss, throughput, availability) and the techniques for measuring them (active, passive, hybrid). Synthetic and real‑user monitoring were compared, and the modern observability pillars — metrics, logs, traces, and events — were explained in depth.

We discussed event correlation, anomaly detection, and the importance of SLIs and SLOs in aligning monitoring with business goals. Monitoring architectures and data pipelines were examined, along with common tools and platforms. The extensive quiz, exercises, and homework are designed to reinforce these concepts and develop practical skills.

In the next tutorial, we will delve into Logging, Event Management, and Incident Response, building on the observability principles introduced here.

COMP347 Unit 8 – Extended Tutorial 6 • TrustOpen University • Last updated: August 2026