Selected work FLOW ANALYTICS · SFLOW · BGP

Case study

Custom Flow Analytics Platform

Traffic visibility for transit and peering decisions

A custom flow-analytics platform for ISPs and hosting providers: traffic per destination, peer and source AS, on demand for engineers and peering managers.

Sector
ISPs and hosting providers
Deployment
Deployed for multiple clients
Architecture schematicFLOW ANALYTICS · SFLOW · BGP

Scroll horizontally to explore the schematic.

Flow analytics pipeline: sFlow from routers to a collector, time-series store, dashboards and a query bot Routers export sFlow to a collector (pmacct), which writes to a time-series store (InfluxDB). Grafana dashboards read from the store, and a Telegram bot answers on-demand queries from engineers and peering managers (traffic per destination, peer and source AS, BGP AS information) with auto-generated graphs. Collectorpmacct Time seriesInfluxDB DashboardsGrafana Telegram bot Engineers andpeering managers Routers sFlow On demand: traffic per destination, peer, source AS and BGP AS info, with auto-generated graphs
Routers export sFlow to a collector (pmacct), which writes to a time-series store (InfluxDB). Grafana dashboards read from the store, and a Telegram bot answers on-demand queries from engineers and peering managers (traffic per destination, peer and source AS, BGP AS information) with auto-generated graphs.
View schematic (opens in a new tab)

Challenge

Problem

ISPs and hosting providers need accurate, flexible traffic analytics for transit cost optimization, peering decisions and edge expansion strategy. Off-the-shelf tools lack the granularity and customization needed for real peering and capacity management.

Engineering

Approach and decisions

  • Designed and deployed a custom flow analytics platform built on PMACCT, sFlow, InfluxDB, Grafana and custom Python scripts.
  • Enabled granular traffic analysis per destination, peer, source AS and more.
  • Built a Telegram bot on top, allowing engineers and peering managers to request traffic and BGP AS information on demand with auto-generated graphs.
  • This was the early precursor to h-cli.

Specification

Architecture

View schematic
Collection
sFlow
Processing
PMACCT and custom Python scripts
Storage
InfluxDB
Visualisation
Grafana
Traffic analysis
Per destination, peer and source AS
Query interface
Telegram bot for on-demand traffic and BGP AS information, with auto-generated graphs

Results

Outcome

  • Transit purchasing and peering decisions based on measured traffic per destination, peer and source AS.
  • Edge expansion planned from traffic data.
  • Peering managers query AS-level traffic from Telegram, with auto-generated graphs.
  • Engineers run their own traffic queries instead of waiting for reports.

Contact

Most engagements start with a 30-minute call.

Ask AI

Suggestions

Runs on a small LLM I host myself. Honest answers, not marketing. [email protected]