Abstract
Distributed in-network programs are increasingly deployed in data centers for their performance benefits, but shifting application logic to switches also enlarges the failure domain. Ensuring their correctness before deployment is thus critical for reliability. While prior verification frameworks can efficiently detect bugs for programs running on a single switch, they overlook the common interactive behaviors in distributed settings, thereby missing related bugs that can cause state inconsistencies and system failures. This paper presents Argo, a verification framework that efficiently captures interactive behaviors in distributed in-network programs. Argo introduces a formal model combining the actor paradigm with Communicating Sequential Processes (CSP), translating pipeline execution into reactive, event-driven actors and unifying their interactions as message passing. To support flexible specification of distributed properties, it provides a unified intent language. Additionally, it incorporates a semantic-aware state pruner to reduce verification complexity, thus ensuring system scalability. Evaluation results show that Argo efficiently uncovers 10 distinct bugs caused by interactive behaviors across five real-world in-network systems. It also reduces verification time by up to 913.2x and memory consumption by up to 1.9x compared to the state-of-the-art verifier.
Introduction
In the landscape of high-performance networking, in-network computing has emerged as a transformative paradigm. By offloading application logic—such as load balancing, caching, and consensus protocols—directly onto programmable switches using languages like P4, developers can achieve significant performance gains. However, this shift introduces a significant challenge: moving complex logic into the network hardware makes the system notoriously difficult to debug and verify.
The Challenge: Beyond Device-Centric Verification
Traditional network verification tools are primarily "device-centric." They excel at checking whether a single P4 program on an isolated switch will crash or misforward a packet. However, modern data centers rely on distributed in-network programs where multiple switches must coordinate with each other and with backend servers.
Existing tools often model a switch as a simple instruction pipeline or a single loop. This abstraction fails to capture the "interactive" reality of distributed networks, specifically:
- Switch-to-Switch Interaction: Bugs may only manifest during specific sequences of packet exchanges between multiple devices.
- State Inconsistency: Complex features like recirculation (sending a packet back through the same pipeline) can create race conditions or ordering issues that single-pass verifiers cannot detect.
The Argo Framework
Argo addresses these gaps by modeling the entire distributed system as a cohesive unit. Its architecture is built upon three core innovations designed to handle the complexity of distributed P4 programs.
1. The Actor-CSP Model
Argo models each switch as a Reactive Actor. These actors respond to events (incoming packets), update local state, and interact with other actors via Message Passing, modeled using Communicating Sequential Processes (CSP). This allows for formal reasoning about packet ordering, loss, and multi-device workflows.
2. Unified Intent Language
To facilitate verification, Argo provides a language for defining network topology, local switch assertions, and global invariants using Linear Temporal Logic (LTL). This allows engineers to specify properties such as "the sequence number on Switch A must always be greater than or equal to the sequence number on Switch B."
3. Semantic-Aware State Pruner
To combat "state-space explosion," Argo employs a specialized backward slicing algorithm. It identifies "cross-pass data dependencies"—where values updated in one pass through a switch affect logic in subsequent passes—and prunes code that does not impact the specific property being verified.
Uncovering Distributed Inconsistencies
Argo's ability to model distributed interactions allows it to find "deep" bugs that manual testing or device-centric tools would miss. For instance, in chain-replicated systems like Gecko, subtle timing issues or sequence number mismatches can lead to state inconsistencies across the head, replica, and tail nodes.
One notable discovery was a majority-quorum violation in P4xos. The bug was not in the logic of any single switch but in how stale register counts persisted across different consensus rounds—a distributed trace bug that Argo's model successfully captured.
Evaluation and Results
The researchers evaluated Argo against five real-world distributed systems (P4xos, NetChain, Gecko, DistCache, and ATP) and four standard single-device benchmarks.
- Bug Discovery: Argo uncovered 10 distinct bugs across the five distributed systems.
- Performance Gains: Compared to
p4tv, the state-of-the-art stateful verifier, Argo reduced verification time by up to 913.2x. For the DDOSD benchmark, verification time was slashed from 109 seconds to just 0.12 seconds. - Efficiency: Memory consumption was reduced by up to 1.9x. In the Gecko system, the state pruner reduced memory usage by 87% and execution time by 90%.
Conclusion
Argo represents a significant advancement in the verification of distributed in-network programs. By moving from device-centric to system-centric modeling via the Actor-CSP paradigm and employing aggressive semantic-aware pruning, Argo provides a scalable and efficient solution for ensuring the reliability of modern data plane applications. Future work will focus on automating invariant inference and further improving scalability for massive network topologies.
Summary updated