Network Observability & Flow Analysis

NetFlow/sFlow/IPFIX, VPC flow logs, Hubble, Prometheus network metrics, East-West traffic visibility, and anomaly detection.

Overview

Overview Network observability provides visibility into what traffic is flowing where — without full packet capture. Modern network observability stacks use flow records, metrics, and structured logs rather than raw PCAP.

Flow record protocols: - NetFlow v9 / IPFIX (RFC 7011): Cisco-originated, now standardized. Network devices export flow records (5-tuple + byte/packet counts + timestamps) to a collector. IPFIX is the IETF standardization of NetFlow v9. - sFlow: samples 1-in-N packets rather than tracking all flows. Lower overhead, suitable for high-speed links. Less accurate for small flows. - VPC Flow Logs (AWS/GCP/Azure): cloud-managed flow logging. AWS VPC Flow Logs write to CloudWatch Logs or S3. Fields: srcaddr, dstaddr, srcport, dstport, protocol, packets, bytes, action (ACCEPT/REJECT). Enable per-ENI, per-subnet, or per-VPC. Critical for security incident investigation.

Kubernetes-native observability: - Hubble (Cilium): exports L3/L4/L7 flow records from eBPF ring buffers. DNS queries, HTTP method/path/status, TCP RSTs, drop reasons — all without sidecar overhead. Queried via hubble observe CLI or Hubble UI. - Prometheus + kube-state-metrics + node-exporter: metrics-based. Track interface bytes/packets/errors, TCP socket states (ss -s), conntrack table utilization.

Distributed tracing: correlates network calls with application spans. Jaeger/Tempo track latency across microservice calls. Istio injects trace headers (X-B3-TraceId) automatically.

Anomaly detection patterns: baseline normal traffic profiles (bytes/s per service pair, connection counts, error rates). Alert on: sudden bandwidth spikes, new service-to-service connections, abnormal port usage, high TCP RST rates, or REJECT spikes in VPC flow logs.

Key concepts

  • IPFIX
  • VPC Flow Logs
  • Hubble
  • East-West traffic
  • sFlow

Interview questions

  • How do you use VPC Flow Logs to investigate a security incident?
  • How does Hubble provide L7 network visibility without sidecar proxies?

Sign up free to read the full topic

More Networking topics

Start free on Cariara · Coding problems · System design studio