SketchPipe: Toward Accurate Sketch-based Network Measurement on Multi-Pipeline Switches with Splitless Sketch Placement

Xiang Chen (Zhejiang University), Longlong Zhu (Zhejiang University), Linying Zheng (Zhejiang University), Hongyang Du (The University of Hong Kong), Dong Zhang (Fuzhou University), Jianshan Zhang (Minjiang University), Xuan Liu (Yangzhou University), Qun Huang (Peking University), Dusit Niyato (Nanyang Technological University), Haifeng Zhou (Zhejiang University), Chunming Wu (Zhejiang University), Hongyan Liu (Fuzhou University), Kui Ren (Zhejiang University)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Measuring at Scale

Overview

Modern high-speed programmable switches achieve massive throughput by utilizing multiple compound pipelines operating in parallel. However, this hardware architecture introduces a fundamental systems constraint: memory and computational resources are strictly isolated across compound pipelines. When network operators attempt to deploy sketches—compact data structures used for real-time traffic statistics and anomaly detection—this multi-pipeline isolation creates severe performance bottlenecks. Traditional deployment strategies split sketch arrays across every available pipeline, breaking statistical assumptions and causing up to an 80% drop in measurement precision due to redundant updates and severe traffic skew.

Watch on YouTube · Slides

Visual summary for SketchPipe: Toward Accurate Sketch-based Network Measurement on Multi-Pipeline Switches with Splitless Sketch Placement by Xiang Chen, Longlong Zhu, Linying Zheng, Hongyang Du, Dong Zhang, Jianshan Zhang, Xuan Liu, Qun Huang, Dusit Niyato, Haifeng Zhou, Chunming Wu, Hongyan Liu, Kui Ren
Visual summary for SketchPipe: Toward Accurate Sketch-based Network Measurement on Multi-Pipeline Switches with Splitless Sketch Placement by Xiang Chen, Longlong Zhu, Linying Zheng, Hongyang Du, Dong Zhang, Jianshan Zhang, Xuan Liu, Qun Huang, Dusit Niyato, Haifeng Zhou, Chunming Wu, Hongyan Liu, Kui Ren

Key moments

  1. 0:00 Introduction and background on multi-pipeline programmable switches
  2. 2:00 Challenges of array split placement: redundant measurement and imbalance
  3. 4:00 Introduction to SketchPipe and splitless sketch placement
  4. 6:20 Optimization problem formulation and lightweight caching strategy
  5. 8:00 Overhead control using dedicated buffer space and recirculation bandwidth
  6. 9:00 Implementation details and evaluation setup across switch testbeds
  7. 10:00 Evaluation results on measurement accuracy and entropy estimation
  8. 13:00 Scalability analysis, hardware resource efficiency, and conclusion

SketchPipe: Toward Accurate Sketch-based Network Measurement on Multi-Pipeline Switches with Splitless Sketch Placement

Speakers: Xiang Chen (Zhejiang University); Longlong Zhu (Zhejiang University); Linying Zheng (Zhejiang University); Hongyang Du (The University of Hong Kong); Dong Zhang (Fuzhou University); Jianshan Zhang (Minjiang University); Xuan Liu (Yangzhou University); Qun Huang (Peking University); Dusit Niyato (Nanyang Technological University); Haifeng Zhou (Zhejiang University); Chunming Wu (Zhejiang University); Hongyan Liu (Fuzhou University); Kui Ren (Zhejiang University)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=BFddyTM7SdY

Overview

Modern high-speed programmable switches achieve massive throughput by utilizing multiple compound pipelines operating in parallel. However, this hardware architecture introduces a fundamental systems constraint: memory and computational resources are strictly isolated across compound pipelines. When network operators attempt to deploy sketches—compact data structures used for real-time traffic statistics and anomaly detection—this multi-pipeline isolation creates severe performance bottlenecks. Traditional deployment strategies split sketch arrays across every available pipeline, breaking statistical assumptions and causing up to an 80% drop in measurement precision due to redundant updates and severe traffic skew.

To resolve this conflict between hardware scaling and measurement fidelity, researchers from Zhejiang University and collaborating institutions introduced SketchPipe, a novel system designed for accurate sketch-based network measurement on multi-pipeline switches. Instead of partitioning data structures, SketchPipe employs splitless sketch placement, keeping each sketch array intact within a single compound pipeline. To provide remote arrays with a complete view of traffic without disrupting normal packet processing, it introduces asynchronous measurement using lightweight flow caching and internal recirculation bandwidth.

This work matters deeply to systems engineers, network operators, and data center architects. As line rates scale to 400 Gbps and beyond, switches are forced to incorporate higher numbers of parallel pipelines. SketchPipe ensures that network telemetry—such as heavy hitter detection, super spreader identification, and entropy estimation—remains accurate, resource-efficient, and scalable without imposing heavy inter-pipeline communication overhead on normal data paths.

Background

▶ Watch: Introduction and background on multi-pipeline programmable switches (0:00)

Network measurement is a core pillar of modern data center operations and Wide Area Network (WAN) management. Operators rely on telemetry to detect heavy hitters, track traffic shifts, and mitigate Distributed Denial of Service (DDoS) attacks. Because maintaining per-flow state for millions of concurrent flows in SRAM is physically impossible, operators turn to sketches—probabilistic data structures like the Count-Min Sketch or Count Sketch. Sketches use hash functions to map flow keys into compact counter arrays, guaranteeing constant-time updates and bounded memory overhead.

With the advent of programmable data planes driven by languages like P4 and hardware ASICs such as the Intel Tofino, executing sketches directly inside network switches became standard practice. Early programmable switches typically relied on a single compound pipeline, making sketch deployment straightforward. However, to scale throughput to hundreds of gigabits and terabits per second, modern programmable switches utilize multiple compound pipelines in parallel. Each pipeline features its own ingress and egress processing logic, isolated memory banks, and internal recirculation channels, while packets are distributed via traffic managers using mechanisms like Equal-Cost Multi-Path (ECMP) routing.

To deploy sketches on these multi-pipeline architectures, the industry default has been array split placement. Under this paradigm, each sketch array is sliced into identical pieces, with one slice placed on every compound pipeline. As packets traverse different pipelines based on per-packet load balancing, local slices measure the traffic they encounter. Unfortunately, this hardware-centric approach shatters the statistical guarantees of sketches. Packets belonging to the same flow are often scattered across multiple pipelines, leading to redundant counting and severe workload imbalances driven by skewed network traffic distributions. Fixing this hardware-software mismatch without sacrificing line-rate packet processing has remained an open challenge in the systems and networking community.

Key Findings

▶ Watch: Introduction to SketchPipe and splitless sketch placement (4:00)

SketchPipe demonstrates that splitless placement combined with asynchronous measurement completely resolves the accuracy collapse seen in multi-pipeline telemetry. Evaluated across diverse workloads, the system delivers several standout discoveries and performance metrics:

  • Near-Ideal Accuracy: SketchPipe achieves precision, recall, and F1 scores close to an idealized single-pipeline switch model, improving measurement accuracy by up to 81% over traditional array split placement.
  • Two Orders of Magnitude Error Reduction: For complex analytical tasks like entropy estimation and heavy hitter detection, SketchPipe reduces measurement errors by up to two orders of magnitude.
  • Robustness Under Extreme Traffic Skew: While array split placement experiences massive accuracy degradation when traffic distribution is heavily skewed across pipelines, SketchPipe remains entirely robust, retaining high fidelity regardless of workload imbalance.
  • Multi-Application Efficiency: When running multiple monitoring tasks concurrently—such as simultaneous heavy hitter and super spreader detection—SketchPipe outperforms baseline architectures by approximately 30% in accuracy under shared switch constraints.
  • High Scalability: Simulations scaling compound pipelines from 8 to 128 demonstrate that SketchPipe maintains high measurement accuracy as switch architectures scale out, whereas split-array approaches suffer catastrophic accuracy drops.

Technical Deep Dive

▶ Watch: Overhead control using dedicated buffer space and recirculation bandwidth (8:00)

The architecture of SketchPipe is divided into two primary components: an offline optimization framework for resource allocation and an online data plane mechanism for asynchronous state synchronization.

Splitless Sketch Placement Optimization

Rather than splitting arrays, SketchPipe treats placement as an integer linear programming or constraint-solving optimization problem. The inputs to the placement engine include the sketch program, the switch hardware model, and routing rules.

The optimization objective minimizes total resource consumption, specifically targeting the number of occupied compound pipelines and match-action stages. Constraints ensure that hardware capacities are never exceeded while strictly enforcing that each individual sketch array is assigned to exactly one compound pipeline. The solver outputs both a precise pipeline assignment and match-action stage mapping, ensuring efficient resource utilization without breaking array contiguity.

Lightweight Flow Caching and State Packets

Because normal packets visiting Pipeline A do not physically visit Pipeline B (where a remote sketch array resides), SketchPipe implements an asynchronous measurement strategy.

  1. Local Measurement: When a packet from flow $F_1$ arrives at Pipeline A, it is measured by any local sketch arrays present in that pipeline.
  2. Key Caching: Before the packet leaves the ingress pipeline, its flow key, packet count, and the IDs of remote sketch arrays requiring updates are recorded in a lightweight cache. To handle collisions efficiently within hardware limits, SketchPipe utilizes an Eviction-on-Collision (Eoin) policy, leveraging the skewed nature of network traffic where distinct flow keys are vastly outnumbered by total packets.
  3. State Packet Generation: To propagate these metrics without inter-pipeline routing for data packets, the switch generates internal state packets. These packets retrieve cached flow keys and packet counts, piggybacking them onto packet headers.
  4. Asynchronous Propagation: State packets travel via internal recirculation bandwidth—a channel completely separated from normal data plane packet processing. When a state packet reaches a target remote pipeline, it updates the corresponding counter array using the aggregated count, and can subsequently be recirculated and reused for subsequent cache entries.

Hardware and Resource Isolation

To guarantee zero performance degradation for standard packet forwarding, SketchPipe isolates state traffic using two dedicated mechanisms:

  • Dedicated Buffer Allocation: Specific traffic manager buffer space is set aside exclusively for state packets, preventing them from competing with normal production traffic.
  • Isolated Recirculation Bandwidth: State packets operate entirely within internal recirculation paths, ensuring normal data plane throughput remains unaffected.

Experimental Setup & Results

▶ Watch: Implementation details and evaluation setup across switch testbeds (9:00)

The authors implemented SketchPipe on two physical hardware targets: a 64-port 100 Gbps Intel Tofino switch featuring two compound pipelines, and a 32-port 400 Gbps Tofino switch featuring four compound pipelines. The offline placement engine was implemented in C++ using a Gurobi optimization server. Data plane logic was written in P4, utilizing register arrays for caches and the switch packet generator for state packet creation. The evaluation testbed included eight servers equipped with 100 Gbps network interface cards (NICs).

The evaluation utilized a diverse suite of real-world traffic traces, including data center traces (DCTCP, web search workloads) and Wide Area Network (WAN) traces, testing applications such as heavy hitter detection, super spreader identification, and entropy estimation. Baselines included traditional array split placement paired with standard packet caches, benchmarked against an idealized single-pipeline placement model.

  • Headline Accuracy: SketchPipe achieved near-ideal F1 scores across all tested topologies, outperforming split placement by up to 81% in precision-recall metrics.
  • Error Bounds: Measurement errors for distribution metrics dropped by up to two orders of magnitude compared to split-array baselines.
  • Resource Footprint: SketchPipe proved highly resource-efficient, utilizing at least 20% fewer total switch resources to achieve optimal accuracy. In physical switch implementations, pipeline resource usage remained below 10%, buffer usage stayed under 1%, and recirculation bandwidth utilization was capped below 21%.
  • Latency Impact: Because normal packets bypass inter-pipeline routing entirely, SketchPipe introduced negligible latency overhead to normal data forwarding paths.

Practical Implications

▶ Watch: Scalability analysis, hardware resource efficiency, and conclusion (13:00)

For network infrastructure teams and data center operators, SketchPipe removes a major architectural roadblock in programmable networking. As switch hardware scales out to hundreds of parallel pipelines to support 800G and 1.6T line rates, traditional array splitting methods become increasingly untenable due to compounding accuracy degradation. SketchPipe offers a drop-in design pattern for P4 programmers and telemetry developers who want to scale monitoring capabilities across multi-pipeline ASICs without sacrificing data plane performance.

However, deployers must consider certain tradeoffs and limitations. The system relies heavily on the availability of internal switch recirculation bandwidth and packet generators to ferry state packets. While buffer and bandwidth overheads were shown to be extremely low (under 1% and 21% respectively), environments operating at extreme saturation limits must carefully provision buffer partitions for state packets to avoid dropping telemetry updates during microbursts. Furthermore, the reliance on an offline optimization solver means dynamic routing shifts that alter pipeline occupancy may require periodic re-running of the placement engine.

Key Takeaways

  • Multi-Pipeline Isolation Challenge: Modern programmable switches use parallel compound pipelines that isolate memory, causing traditional array split placement to suffer from redundant counting and severe traffic skew.
  • Splitless Sketch Placement: SketchPipe keeps sketch arrays intact within single pipelines, eliminating redundant measurements and preserving statistical data integrity.
  • Asynchronous Measurement via Caching: By caching flow keys locally and using internal recirculation channels to dispatch lightweight state packets, remote arrays gain a complete view of traffic without disrupting normal packet paths.
  • Dramatic Accuracy Gains: SketchPipe delivers up to an 81% improvement in measurement precision and reduces error rates by up to two orders of magnitude compared to traditional split-array approaches.
  • Low Hardware Overhead: Real-world implementations on Intel Tofino switches show pipeline resource consumption below 10%, buffer usage under 1%, and negligible latency impact on normal packet forwarding.

About the Speaker(s)

The research was presented by Xiang Chen, a researcher from Zhejiang University, representing a large multi-institutional collaboration involving Zhejiang University, The University of Hong Kong, Fuzhou University, Minjiang University, Yangzhou University, Peking University, and Nanyang Technological University. The team's collective expertise spans high-speed programmable networking, network measurement, algorithm optimization, and distributed systems architecture.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)