Skip to main content
QUICK REVIEW

[Paper Review] Sonata: Query-Driven Network Telemetry

Arpit Gupta, Rob Harrison|arXiv (Cornell University)|May 2, 2017
Software-Defined Networks and 5GComputer Science30 references17 citations
TL;DR

Sonata is a query-driven network telemetry system that unifies data collection and analysis using a high-level query interface, dynamically partitioning queries between programmable switches and stream processors. By leveraging query partitioning, iterative refinement, and sketching techniques, Sonata reduces data plane state and stream processor load by over 40% and 2x respectively compared to state-of-the-art approaches.

ABSTRACT

Operating networks depends on collecting and analyzing measurement data. Current technologies do not make it easy to do so, typically because they separate data collection (e.g., packet capture or flow monitoring) from analysis, producing either too much data to answer a general question or too little data to answer a detailed question. In this paper, we present Sonata, a network telemetry system that uses a uniform query interface to drive the joint collection and analysis of network traffic. Sonata takes the advantage of two emerging technologies---streaming analytics platforms and programmable network devices---to facilitate joint collection and analysis. Sonata allows operators to more directly express network traffic analysis tasks in terms of a high-level language. The underlying runtime partitions each query into a portion that runs on the switch and another that runs on the streaming analytics platform iteratively refines the query to efficiently capture only the traffic that pertains to the operator's query, and exploits sketches to reduce state in switches in exchange for more approximate results. Through an evaluation of a prototype implementation, we demonstrate that Sonata can support a wide range of network telemetry tasks with less state in the network, and lower data rates to streaming analytics systems, than current approaches can achieve.

Motivation & Objective

  • Address the limitations of current network telemetry systems that separate data collection from analysis, leading to either excessive or insufficient data for operational queries.
  • Enable network operators to express complex, real-time traffic analysis tasks using a uniform, high-level query interface over raw packet streams.
  • Reduce the load on streaming analytics platforms and minimize state usage in network switches by coordinating data collection and analysis based on query semantics.
  • Automatically generate efficient, workload-aware query plans that balance accuracy, latency, and resource usage through dynamic query partitioning and iterative refinement.
  • Leverage programmable switches and streaming analytics platforms to enable scalable, real-time network telemetry with minimal operator intervention.

Proposed method

  • Expose a uniform dataflow programming abstraction over packet tuples, allowing operators to express queries using familiar stream processing operators.
  • Dynamically partition each query into a switch component (executed in programmable data plane) and a stream processor component (executed on a scalable analytics platform).
  • Use sketching data structures in switches to approximate query results with limited state, trading off some accuracy for significant state reduction.
  • Apply iterative query refinement to progressively narrow down traffic of interest, focusing on relevant subsets and reducing downstream data volume.
  • Formulate an optimization problem to select the best query plan based on historical traffic patterns, minimizing a weighted objective function balancing state, bandwidth, and latency.
  • Integrate with existing streaming platforms (e.g., Flink, Spark Streaming) and P4-programmable switches to enable line-rate processing and real-time analysis.

Experimental results

Research questions

  • RQ1How can network telemetry systems efficiently co-locate data collection and analysis to reduce data volume and state usage without sacrificing query expressiveness?
  • RQ2What is the optimal strategy for partitioning a query between the data plane (switches) and the analytics platform to minimize resource usage and latency?
  • RQ3How can sketching techniques be automatically composed and orchestrated in the data plane to support accurate, approximate query execution under state constraints?
  • RQ4Can iterative query refinement be effectively applied to streaming network telemetry to progressively focus on relevant traffic subsets with minimal overhead?
  • RQ5How does a workload-driven, adaptive query planning strategy compare to static or manual configurations in terms of scalability and efficiency?

Key findings

  • Sonata reduces the data rate to the streaming analytics platform by more than a factor of four compared to state-of-the-art systems that rely solely on data-plane filtering and sampling.
  • Compared to solutions using sketches without coordination, Sonata reduces the required state in switches by more than a factor of two.
  • The system’s automatic query planning based on historical traffic patterns leads to optimized trade-offs between accuracy, latency, and resource usage.
  • Through iterative refinement, Sonata efficiently narrows down traffic to only what is relevant to the operator’s query, significantly reducing unnecessary data processing.
  • The integration of programmable switches with streaming analytics platforms enables real-time, scalable telemetry for complex queries over high-speed traffic.
  • Sonata’s high-level query interface allows operators to express a wide range of network telemetry tasks without low-level configuration, improving usability and expressiveness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.