Iris: Expressive Traffic Analysis for the Modern Internet
Thea Rossman (Stanford University), Diana Qing (Stanford University), Gerry Wan (Stanford University), Zakir Durumeric (Stanford University)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Debugging Distributed Systems
Overview
Passive traffic analysis is a cornerstone of modern networking, enabling researchers, developers, and operators to uncover security vulnerabilities, study censorship circumvention techniques, monitor protocol deployments, and diagnose performance bottlenecks. However, contemporary traffic analysis workloads face a severe operational mismatch. Mid-sized enterprises and ISPs routinely process hundreds of gigabits per second of traffic, while analytical questions demand increasingly complex semantics—moving far beyond simple NetFlow packet logging into stateful stream reassembly, deep application-layer parsing, and online machine learning inference.

Key moments
- 0:00 Introduction and background on traffic analysis workloads
- 2:00 Challenges of implementing video resolution inference from scratch
- 4:00 Limitations of existing traffic analysis tools and introduction of Iris
- 6:00 Iris programming model and subscription interface in Rust
- 8:00 Layered state machines and custom connection data modeling
- 10:00 How the Iris compiler optimizes and merges control flows
- 13:30 Evaluation results on Stanford network traffic scaling and performance
Iris: Expressive Traffic Analysis for the Modern Internet
Speakers: Thea Rossman (Stanford University); Diana Qing (Stanford University); Gerry Wan (Stanford University); Zakir Durumeric (Stanford University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=NqssEbw7N50
Overview
Passive traffic analysis is a cornerstone of modern networking, enabling researchers, developers, and operators to uncover security vulnerabilities, study censorship circumvention techniques, monitor protocol deployments, and diagnose performance bottlenecks. However, contemporary traffic analysis workloads face a severe operational mismatch. Mid-sized enterprises and ISPs routinely process hundreds of gigabits per second of traffic, while analytical questions demand increasingly complex semantics—moving far beyond simple NetFlow packet logging into stateful stream reassembly, deep application-layer parsing, and online machine learning inference.
Today, engineers are forced into a false dichotomy. They can either build highly specialized, fragile systems from scratch using low-level packet processing frameworks like DPDK, or they can compromise by adapting existing tools that fail to provide the necessary combination of performance, flexibility, and multi-workload support. This talk introduces Iris, a novel compilation framework designed to bridge this gap. Iris compiles user analysis code written in a general-purpose programming language into an optimized, high-performance traffic processing pipeline.
By modeling network connections as layered state machines and leveraging compiler-based optimizations to fuse diverse workloads, Iris achieves line-rate processing speeds (100+ Gbps) on commodity hardware while significantly reducing developer overhead. This paradigm shift allows operators and researchers to execute multiple complex, disparate traffic analysis applications simultaneously without incurring prohibitive storage costs or manual optimization penalties.
Background
▶ Watch: Introduction and background on traffic analysis workloads (0:00)
The state of the art in traffic analysis tooling presents severe limitations when confronted with high-speed, multi-directional network telemetry. Historically, traffic analysis frameworks fall into two categories, neither of which satisfies the triad of high performance, stream-level abstractions, and arbitrary programmability.
The first approach involves writing custom, experiment-specific pipelines over frameworks like DPDK or Zek. While these systems can achieve high packet throughput, constructing them requires solving immense engineering hurdles: high-speed multi-directional multiplexed TCP reassembly without endpoint control, aggressive memory management under stateless scanning and backscatter, loss handling between endpoints and monitoring vantage points, and intricate flow-table maintenance. Furthermore, researchers rarely run a single isolated experiment; deploying parallel experiments with divergent filtering, reassembly, and parsing requirements turns homegrown architectures into unmaintainable engineering nightmares.
The second approach relies on existing analysis tools or domain-specific frameworks. While tools like Retina (developed out of the same Stanford research group) improved processing efficiency over older architectures, they remained bound to rigid, single-analysis pipelines. An operator could extract TLS handshakes or parse DNS transactions, but executing both simultaneously—or defining custom, multi-layer derived features like windowed video resolution estimators—required writing entirely new domain-specific frameworks. Consequently, the networking and security communities have remained stuck in a cycle of repeatedly coding custom, brittle infrastructure from scratch.
Key Findings
▶ Watch: Limitations of existing traffic analysis tools and introduction of Iris (4:00)
Iris demonstrates that traffic analysis applications can achieve both general-purpose expressiveness and line-rate performance through automatic compiler-driven optimization and pipeline fusion. The key findings and contributions include:
- Expressiveness via General-Purpose Languages: By utilizing Rust, Iris allows developers to define custom filters, data types, and analysis callbacks using standard programming constructs rather than restrictive domain-specific languages. Complex pipelines—such as inferring video resolution from connection features—can be implemented in fewer than 200 lines of code.
- Compiler-Driven Workload Fusion: Iris decomposes user subscriptions into granular control-flow blocks and incremental conditions. By applying compiler optimization techniques, Iris identifies structural redundancies across independent subscriptions and fuses them into a single, unified runtime pipeline.
- Massive Performance Scaling: In real-world evaluations on Stanford University's network (averaging 100 Gbps with spikes up to 120 Gbps), Iris successfully processed traffic with less than 1% packet loss while utilizing only a fraction of the CPU cores required by naive subscription architectures.
- Order-of-Magnitude Efficiency Gains: Replicating the core logic of recent research works in security, anti-censorship, and network operations, Iris demonstrated orders-of-magnitude throughput improvements over legacy engines like Zeke (scaling from a few Gbps to 100 Gbps) while drastically cutting down disk write requirements via online execution.
Technical Deep Dive
▶ Watch: Iris programming model and subscription interface in Rust (6:00)
The architectural foundation of Iris rests upon two core pillars: a hierarchical subscription programming model and a compiler optimization engine.
The Connection and Programming Model
To support arbitrary analytical logic across OSI layers, Iris models network connections as layered state machines that reflect protocol encapsulation. Users interact with this model via a subscription programming interface written in Rust. A subscription consists of three primary components:
- Filter: Specifies the traffic of interest (e.g., connections matching a specific Server Name Indication [SNI] or five-tuple).
- Data Types: Defines the desired output format (e.g., parsed TLS handshakes, subnet info, or packet payloads).
- Callback: The user-defined analysis function executed on the formatted data.
Rather than treating packets as isolated units, Iris exposes stream-level types and maintains stateful accumulations. For instance, to compute downloaded byte counts for TLS connections, the framework composes primitive data types (application layer protocol identification and packet payloads) into higher-level abstractions. These state abstractions hook directly into parser boundaries—such as the conclusion of a TLS application-layer header state parsed by the framework.
The Iris Compiler and Pipeline Fusion
The true technical innovation of Iris lies in how its compiler interprets and optimizes these subscriptions. The compilation process proceeds through several structured stages:
- Control-Flow Decomposition: The compiler maps every state and state transition in the connection state machines to an LLVM basic block—a node featuring a single entry and exit point with no internal branching.
- Incremental Requirements & Actions: Tasks that the framework must perform incrementally to satisfy a subscription (such as partial TCP reassembly or invoking a user API) are designated as actions.
- Condition Guarding: Filters (such as a TLS SNI check) are compiled into incremental conditions guarding these actions. For example, a connection is identified as TLS before parsing the entire handshake, and feature extraction only occurs if the SNI matches. This ensures that resource-intensive operations like TCP reassembly are strictly bounded to relevant flows.
- Tree-Based Aggregation and Reduction: The compiler represents subscriptions as expression trees and applies compiler optimization algorithms to aggregate shared state, eliminate redundant parsing steps, and fuse disparate processing pipelines.
The resulting runtime executes all active subscriptions concurrently while minimizing aggregate computational work.
Experimental Setup & Results
▶ Watch: How the Iris compiler optimizes and merges control flows (10:00)
To evaluate the scalability and practicality of Iris, the researchers conducted rigorous stress tests and real-world replication studies.
- Hardware & Traffic Environment: Benchmarks were executed using live traffic captured on Stanford University's enterprise network. The monitored traffic averaged 100 Gbps over hour-long test windows, with peak spikes reaching 120 Gbps. Multi-core scaling tests were intentionally restricted to two CPU cores to isolate processing efficiency and ensure performance bottlenecks were not masked by excessive hardware provisioning.
- Subscription Scaling Benchmarks: When scaling the number of homogenous subscriptions, Iris demonstrated near-linear efficiency by sharing virtually all underlying packet processing and reassembly work. In contrast, a naive baseline implementation—which tracked subscriptions dynamically without static deduplication or incremental block disambiguation—suffered catastrophic performance degradation, confirming that granular compiler-level optimization is mandatory for multi-tenant traffic analysis.
- Replication of Complex Workloads: The authors replicated the core logic of three distinct, recent research papers spanning network operations, security, and censorship circumvention. These workloads featured heavy application-layer parsing, custom feature derivation, and expensive callbacks.
- Headline Numbers: Using Iris, the combined workloads processed 100 Gbps of live traffic with under 1% packet loss using a minimal core footprint. The authors estimate an order-of-magnitude reduction in developer effort compared to homegrown DPDK systems, alongside massive reductions in disk write volumes because complex analytical pipelines execute entirely online.
(Note: Formal ablation studies breaking down individual compiler optimization passes beyond tree-based reduction and state fusion are omitted in this overview, as the evaluation focuses primarily on end-to-end multi-subscription throughput and developer line-count metrics.)
Practical Implications
▶ Watch: Evaluation results on Stanford network traffic scaling and performance (13:30)
Iris fundamentally changes how infrastructure teams, security researchers, and network operators approach high-speed telemetry. By shifting the paradigm from rigid domain-specific tools or low-level, error-prone DPDK code to a compiler-assisted Rust framework, Iris lowers the barrier to entry for building sophisticated online monitoring infrastructure.
For model builders and deployers, the ability to run complex inference pipelines directly on streaming network data—without dumping raw payloads to disk—mitigates severe privacy risks and eliminates the storage bottlenecks traditionally associated with high-bandwidth network capture. For infra teams, the automated deduplication of reassembly and parsing workloads means that multiple monitoring applications (e.g., security intrusion detection, performance logging, and protocol compliance checks) can run concurrently on commodity hardware without scaling out expensive server clusters.
However, practitioners must navigate certain tradeoffs. While Rust ensures memory safety and high execution speed, developers must still understand the underlying state-machine abstractions to write efficient subscription callbacks. Furthermore, extremely esoteric protocols lacking modular parser definitions may still require manual extension of the framework's core parsers.
Key Takeaways
- Overcoming the Telemetry Bottleneck: Modern networks operate at 100+ Gbps, making legacy packet-processing architectures and unoptimized multi-experiment setups obsolete.
- General-Purpose Expressiveness: Iris allows developers to write expressive traffic analysis pipelines in Rust, combining custom filters, stateful accumulators, and arbitrary callbacks.
- Layered Connection Models: By treating connections as hierarchical state machines, Iris seamlessly handles complex protocol encapsulation and multi-layer state tracking.
- Compiler-Driven Pipeline Fusion: The Iris compiler decomposes subscriptions into granular control-flow blocks and fuses overlapping requirements, eliminating redundant work across thousands of concurrent tasks.
- Production-Grade Performance: Evaluations on Stanford's 100 Gbps network demonstrate line-rate processing with minimal packet loss, achieving orders-of-magnitude improvements over traditional engines like Zeke.
About the Speaker(s)
The talk was presented by researchers from Stanford University, featuring Thea Rossman, Diana Qing, Gerry Wan, and Zakir Durumeric. The team's research focuses on internet security, measurement, networking systems, and developing scalable architectures to help researchers and operators make sense of high-volume modern network traffic.
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)