Count-Based Abstractions for Performance Verification of Contention Points

Amir Seyhani (PhD Student · University of Waterloo), Aarti Gupta (Princeton University), David Walker (Princeton University), Mina Tahmasbi Arashloo (University of Waterloo)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Trust but Verify

Overview

This talk introduces a novel approach for verifying the performance of network contention points using count-based abstractions combined with windowing mechanisms. Presented at USENIX NSDI, the research addresses a fundamental scalability bottleneck in formal network verification: how to accurately model packet buffers—an integral component of network contention points like switches and packet schedulers—without running into combinatorial explosion. The speaker highlights that while prior verification engines struggle as buffer sizes scale to hundreds or thousands of packets, completely abandoning packet ordering details (pure counting) leads to excessive imprecision and false positives.

Watch on YouTube · Slides

Visual summary for Count-Based Abstractions for Performance Verification of Contention Points by Amir Seyhani, Aarti Gupta, David Walker, Mina Tahmasbi Arashloo
Visual summary for Count-Based Abstractions for Performance Verification of Contention Points by Amir Seyhani, Aarti Gupta, David Walker, Mina Tahmasbi Arashloo

Key moments

  1. 0:00 Introduction and definition of network contention points
  2. 2:00 Verification engine overview and trade-offs of buffer modeling
  3. 3:58 Drawbacks of pure count-based buffer models
  4. 6:08 Proposed counts-plus-windows abstraction model
  5. 10:09 Choosing window size and buffer capacity trade-offs
  6. 12:00 Evaluation results and comparison with prior work
  7. 14:00 Decoupling buffers and mediation logic for flexibility

Count-Based Abstractions for Performance Verification of Contention Points

Speakers: Amir Seyhani (University of Waterloo); Aarti Gupta (Princeton University); David Walker (Princeton University); Mina Tahmasbi Arashloo (University of Waterloo)

Conference: USENIX NSDI

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

Overview

This talk introduces a novel approach for verifying the performance of network contention points using count-based abstractions combined with windowing mechanisms. Presented at USENIX NSDI, the research addresses a fundamental scalability bottleneck in formal network verification: how to accurately model packet buffers—an integral component of network contention points like switches and packet schedulers—without running into combinatorial explosion. The speaker highlights that while prior verification engines struggle as buffer sizes scale to hundreds or thousands of packets, completely abandoning packet ordering details (pure counting) leads to excessive imprecision and false positives.

To resolve this tension, the authors propose a parametric model that navigates the trade-off space between precise packet ordering and coarse-grained counting. By decoupling buffer models from mediation logic, the framework allows systems researchers to swap different buffer representations dynamically. The work demonstrates that setting the window size equal to the buffer capacity captures just enough ordering information across traffic bursts while keeping verification times largely insensitive to buffer size.

Background

▶ Watch: Introduction and definition of network contention points (0:00)

In the networking and formal methods space, analyzing contention points—locations where multiple packet streams compete for shared resources, such as packet schedulers or switches—is critical for guaranteeing performance properties like bounded delay, fairness, and queue buildup limits. A verification engine typically takes a model of buffers and mediation logic, an input traffic workload, and a formal query, checking whether any valid packet trace violates the queried property.

Reasoning about buffers has historically forced system designers into a strict dichotomy:

  1. Array-Based Models: These models use boolean arrays matching the buffer capacity, along with metadata arrays tracking packet properties (e.g., traffic classes). While highly precise because they track exact arrival and storage order, their complexity scales directly with buffer size. Beyond buffers holding tens of packets, verification engines hit exponential scaling walls, rendering them useless for real-world buffers holding hundreds or thousands of packets.
  2. Pure Count-Based Models: These models discard individual tracking entirely, using integers to count how many packets of each type reside in the buffer. While model complexity becomes completely independent of buffer capacity, this approach introduces catastrophic imprecision. Without ordering constraints, the verification engine permits arbitrary packet reordering, often allowing certain traffic classes to starve indefinitely or generating false counterexamples for simple fairness properties.

Key Findings

▶ Watch: Drawbacks of pure count-based buffer models (3:58)

The primary contribution of this work is the counts-plus-windows model, which successfully bridges the gap between precise array-based models and imprecise pure count-based models.

  • Parametric Trade-off Navigation: The model introduces in-queue windows and de-queue windows to track packet counts for finite subsets of packets at the boundaries of enqueue and dequeue sequences, utilizing overflow windows when buffers fill up. This establishes ordering barriers across windows while permitting internal reordering.
  • Buffer Capacity Matching: The authors discover that setting the window size equal to the buffer capacity ($W = C$) strikes an optimal balance. It ignores intra-burst ordering—where packets arrive close together anyway—while strictly preserving inter-burst ordering.
  • Insensitivity to Buffer Size: Evaluations using case studies from EFRough (the closest prior NSDI work) confirm that the count-based verification time remains largely insensitive to increases in buffer capacity, avoiding the exponential blowups seen in array-based models.
  • No One-Size-Fits-All Model: For very small buffers, array-based models outperform count-based models because the overhead of integer arithmetic in count-based solvers outweighs their structural benefits. Consequently, decoupling the buffer model from the mediation logic is essential.

Technical Deep Dive

▶ Watch: Proposed counts-plus-windows abstraction model (6:08)

The technical architecture of the verification framework relies on a modular separation between the buffer representation and the scheduling/mediation logic.

The core innovation lies in the windowing algorithm. Let a buffer have capacity $C$ and a chosen window size $W$. The model tracks:

  • One in-queue window monitoring packet counts for the first $W$ packets entering the sequence.
  • One de-queue window monitoring packet counts for the first $W$ packets leaving the sequence.
  • $C/W$ overflow windows instantiated dynamically when the primary in-queue window fills up and older packets have not yet departed.

The foundational invariant enforced by the solver is that packet counts in the de-queue window must never exceed the counts in the in-queue window. When an overflow window is active, an ordering barrier is enforced: packets in the overflow window cannot be considered for dequeuing until all packets in the preceding window have completely exited the buffer.

By parameterizing $W$, the model spans a continuous spectrum: setting $W=1$ degenerates the system into a fully precise, individual-packet array tracker, whereas setting $W=C$ provides a macro-level burst tracker with minimal state overhead (requiring only three active windows when $W=C$). Furthermore, the framework enables high-level C-like programs to automatically compile down into the underlying mediation logic, supported by a minimal interface that lets verification engineers hot-swap buffer abstractions depending on workload characteristics.

Experimental Setup & Results

▶ Watch: Evaluation results and comparison with prior work (12:00)

The evaluation utilizes standard case studies and workloads drawn from EFRough, testing various contention points including fair queuing schedulers and leaf-spine network configurations.

  • Baselines: The evaluation directly benchmarks the new count-based abstraction against traditional array-based verification models across varying buffer depths.
  • Verification Time vs. Buffer Capacity: As buffer sizes scale from tens to hundreds of packets, array-based verification times exhibit sharp fluctuations and eventual exponential divergence. In contrast, the count-based model maintains a flat verification latency profile.
  • Precision Validation: Across all evaluated EFRough case studies, the count-based model—configured with $W$ equal to buffer capacity—achieved identical verification correctness compared to the precise array models, proving that intra-burst ordering details are largely orthogonal to macro-performance properties.
  • Regime Shift at Small Scales: In tests involving very small buffers (e.g., shallow queues), array models executed faster. The linear constraint solver overhead and integer arithmetic required for managing window state in count-based models introduced a minor performance penalty when buffer capacities were minimal.

Practical Implications

▶ Watch: Decoupling buffers and mediation logic for flexibility (14:00)

For infrastructure teams, network architects, and formal verification engineers, this work redefines how network performance properties can be mathematically proven at scale.

  • Scalable Verification: Deployers can now verify complex network hardware and software packet schedulers with realistic buffer depths (hundreds or thousands of slots) without encountering state-space explosions.
  • Modular Design: The decoupling of buffer models from mediation logic provides a blueprint for systems builders: verification tools should not hardcode state representations. By exposing a clean interface, tools can adaptively select array representations for shallow buffers and count-plus-window representations for deep buffers.
  • Language-Level Abstractions: The ability to derive formal verification models from high-level C-like programs lowers the barrier to entry for specifying custom queue management (AQM) algorithms, delay-based properties, and non-FIFO buffer behaviors.
  • Limitations: Practitioners must be aware that count-based integer arithmetic introduces solver overheads that make it sub-optimal for extremely small buffers, and tuning the window size $W$ requires domain knowledge of expected traffic burst sizes.

Key Takeaways

  • Buffers are central to network contention points, presenting a fundamental trade-off between tracking precision and model complexity.
  • Pure arrays do not scale beyond tens of packets, while pure counts cause excessive false reorderings and imprecision.
  • The proposed counts-plus-windows model successfully navigates this trade-off by enforcing ordering barriers across windows while allowing flexible reordering within bursts.
  • Setting the window size equal to buffer capacity ($\text{window size} = \text{buffer capacity}$) captures essential inter-burst ordering with minimal state complexity.
  • Decoupling buffer models from mediation logic is crucial, as no single buffer abstraction fits both shallow and deep buffer regimes efficiently.

About the Speaker(s)

Amir Seyhani is a third-year PhD student at the University of Waterloo advised by Mina Tahmasbi Arashloo. His research sits at the intersection of formal methods, systems, and networking. Aarti Gupta and David Walker are professors at Princeton University contributing domain expertise in formal verification and programming languages. Mina Tahmasbi Arashloo is an assistant professor at the University of Waterloo specializing in networked systems and formal analysis.

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)