A Composable Emulation Framework for Whitebox Switches
Congcong Miao (Tencent), Xianneng Zou (Tencent and Tsinghua Shenzhen International Graduate School), Chuwen Zhang (Tsinghua University), Shiping Yang (Tencent), Qihang Liu (Tencent), Zhijie Yan (Tencent), Yanke Zhang (Tencent), Yong Jiang (Tsinghua Shenzhen International Graduate School), Qiao Xiang (Xiamen University), Xin Jin (Peking University), Zili Meng (Hong Kong University of Science and Technology), Ang Chen (University of Michigan)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · When Systems Run Themselves
Overview
Modern cloud-scale data centers are undergoing a structural transition away from proprietary "black box" hardware toward disaggregated white box switches. In this model, cloud operators mix and match switching chips and peripheral modules from diverse vendors while running their own Network Operating Systems (NOS)—predominantly SONiC (Software for Open Networking in the Cloud). While white box deployments eliminate vendor lock-in and curb hardware expenditures, testing and debugging them at scale presents formidable engineering challenges. Existing software emulators fall short: they either lack data plane fidelity, bottleneck at severely restricted packet rates, or fail to account for the heterogeneous peripheral modules that govern physical switch behavior.

Key moments
- 0:00 Introduction and motivation for white box switches
- 1:55 Limitations of existing software emulators
- 5:55 System design: Merged Switch adapter-centric architecture
- 7:55 EVE adapter and workflow implementation details
- 9:55 Semantic adapter and mapping request handling
- 11:55 Evaluation: switch fidelity and throughput results
- 15:55 Production experience and troubleshooting at Tencent
- 17:35 Trade-offs between fidelity, performance, and conclusion
A Composable Emulation Framework for Whitebox Switches
Speakers: Congcong Miao (Tencent); Xianneng Zou (Tencent and Tsinghua Shenzhen International Graduate School); Chuwen Zhang (Tsinghua University); Shiping Yang (Tencent); Qihang Liu (Tencent); Zhijie Yan (Tencent); Yanke Zhang (Tencent); Yong Jiang (Tsinghua Shenzhen International Graduate School); Qiao Xiang (Xiamen University); Xin Jin (Peking University); Zili Meng (Hong Kong University of Science and Technology); Ang Chen (University of Michigan)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=cJYeK_msai8
Overview
Modern cloud-scale data centers are undergoing a structural transition away from proprietary "black box" hardware toward disaggregated white box switches. In this model, cloud operators mix and match switching chips and peripheral modules from diverse vendors while running their own Network Operating Systems (NOS)—predominantly SONiC (Software for Open Networking in the Cloud). While white box deployments eliminate vendor lock-in and curb hardware expenditures, testing and debugging them at scale presents formidable engineering challenges. Existing software emulators fall short: they either lack data plane fidelity, bottleneck at severely restricted packet rates, or fail to account for the heterogeneous peripheral modules that govern physical switch behavior.
This talk details Merged Switch (referred to in evaluation as Merged Switch or Merlin Switch), a composable, high-performance emulation framework developed through a massive collaborative effort between engineers at Tencent and researchers from Tsinghua University, Xiamen University, Peking University, USTC, and the University of Michigan. By employing an adapter-centric architecture, Merged Switch bridges the semantic and operational gaps between production-grade SONiC control planes, high-performance data planes, and virtualized peripheral environments. Integrated directly into Tencent's production workflow, the framework has successfully assisted in diagnosing and resolving 198 out of 200 complex network issues, proving its viability as an industrial-grade emulation platform.
Background
▶ Watch: Introduction and motivation for white box switches (0:00)
In traditional data center architectures, network operators relied on vertically integrated black box switches where vendors supplied the hardware, ASIC, and firmware as an opaque bundle. Virtualized testing of these environments historically depended on vendor-provided virtual machines or emulators such as CrystalNet NSTA17. The rise of open networking has upended this paradigm. Today's cloud providers customize SONiC internally, pushing new software versions as frequently as every month to meet specific application demands.
Emulating these custom white box environments in software reveals a stark trilemma in prior work. Solutions like SONiC VS (Virtual Switch) and SONiC BMv2 (Behavioral Model version 2) rely on the standard Linux kernel protocol stack or abstract software switches. Consequently, they suffer from artificial conflicts—such as DHCP relay entries colliding with ACLs (Access Control Lists)—and use simplified hash functions that diverge from production ECMP (Equal-Cost Multi-Path) behavior. Conversely, cycle-accurate or ASIC-level emulators like SONiC SIMU achieve high fidelity at the cost of throughput, crawling at rates of only several packets per second, which completely breaks protocols requiring rapid timeout handling, such as BFD (Bidirectional Forwarding Detection). Furthermore, none of these legacy emulators account for the hardware heterogeneity introduced by peripheral modules purchased from different vendors, leading to undetected bugs related to port splitting, MAC addressing, and BSP (Board Support Package) drivers.
Key Findings
▶ Watch: System design: Merged Switch adapter-centric architecture (5:55)
Merged Switch overcomes the traditional compromises between execution speed and emulation fidelity by introducing a composable, adapter-centric architecture. Evaluated on a 16-server testbed using GNS3 across topologies ranging from small pods (DCNS) to large-scale data center networks comprising up to 16 spine switches (DCNL), the framework delivers distinct performance milestones:
- Fidelity Ratio: Across 157 critical white box switch functions, Merged Switch achieves an overall supported fidelity ratio of 89.5%, significantly outperforming SONiC VS and SONiC BMv2.
- Throughput: The data plane achieves up to 3k packets per second (pps) per port and 506k pps per virtual machine, running 2.2 times faster than SONiC VS and SONiC BMv2, and orders of magnitude faster than SONiC SIMU.
- Scalability and Construction Time: A single physical server can host up to 30 VM-based switch instances before CPU and memory saturation induce packet loss. Constructing small (DCNS), medium (DCNM), and large (DCNL) network topologies takes 1.5, 3.0, and 6.1 minutes, respectively, with linear and stable growth curves.
- Topological Consistency: Merged Switch achieves 100% network topological and forwarding path consistency, ensuring that every packet traverses the exact hop-by-hop path in emulation as it would in production. Traffic sampling tests reveal a standard deviation in link utilization within 5%, vastly superior to baseline emulators.
- Production Impact: Integrated into Tencent's workflows, the system successfully aided in troubleshooting 198 out of 200 real-world network incidents, detecting near-total coverage of SONiC bugs, configuration errors, and BSP driver failures.
Technical Deep Dive
▶ Watch: Semantic adapter and mapping request handling (9:55)
The core innovation of Merged Switch lies in its adapter-centric architecture, which decouples and bridges three disparate subsystems: a production SONiC control plane, an extended high-performance data plane, and a virtualized hardware peripheral environment.
Extended VPP Data Plane (EVPP)
High-performance packet switching frameworks like VPP (Vector Packet Processing) operate in a closed-loop manner optimized for raw packet velocity rather than operational fidelity or standard NOS interfaces. Merged Switch modifies VPP into EVPP by injecting custom ECMP hash functions mathematically identical to targeted physical forwarding ASICs and implementing native VLAN support. Control-to-data plane communication relies on a TAP-based workflow using injector nodes (TAP0) linked to the kernel network stack, complemented by event-based status reporting to maintain link and port state fidelity.
Semantic Adapter
The semantic adapter serves as the most complex component of the architecture, translating requests between the SONiC SAI (Switch Abstraction Interface) and the underlying EVPP data plane. It handles two primary mapping paradigms:
- One-to-Many Mapping: A single SAI request maps to multiple EVPP commands. For example, a request to create a VLAN interface is translated into operations creating an L3 loopback interface and an L2 bridge domain, preserving execution order via an internal dependency tree.
- Many-to-One Mapping: Multiple SAI requests converge into a single EVPP operation. This is exemplified by the hardware FIB (Forwarding Information Base)—comprising a prefix table in TCAM and a next-hop table in SRAM—interacting with the software FIB. Upon receiving SAI modifications or deletions for next-hop entries, the semantic adapter recalculates all influenced route entries before committing updates to EVPP.
Environmental Adapter and Peripheral Emulation
To run production SONiC images unmodified, the framework must emulate heterogeneous peripheral modules and their associated BSP drivers. The environmental adapter intercepts ONIE (Open Network Install Environment) installation checks using a fake EEPROM file. Furthermore, it packages all necessary BSP drivers into a unified virtual machine image, where the NOS dynamically loads the correct driver based on injected platform metadata.
Experimental Setup & Results
▶ Watch: Evaluation: switch fidelity and throughput results (11:55)
The evaluation of Merged Switch utilized a large-scale testbed comprising 16 physical server nodes. Merged Switch was deployed inside virtual machines to maintain container compatibility with standard SONiC microservices. Topology orchestration was managed using GNS3.
Benchmark Configurations
- Topologies: Evaluated across three scales: Data Center Network Small (DCNS), Medium (DCNM), and Large (DCNL), utilizing 4, 8, and 15 physical servers respectively, scaling up to architectures featuring 16 spine switches.
- Baselines: Compared against SONiC VS, SONiC BMv2, and SONiC SIMU.
- Metrics: Switch function support ratio (out of 157 functions), switch-level throughput (pps per port and per VM), topology construction time, forwarding path consistency, and link utilization standard deviation.
Headline Results
- Throughput Scale: EVPP achieves 3k pps per port and 506k pps per VM, outstripping SONiC VS and SONiC BMv2 by a factor of 2.2x.
- Fidelity Breakdown: Out of 157 evaluated white box switch capabilities, Merged Switch successfully supports 89.5% of functions, eclipsing baseline software switches that drop critical features to maintain stability or performance.
- Network Construction Overhead: Topology generation scaled predictably, taking 1.5 minutes for DCNS, 3.0 minutes for DCNM, and 6.1 minutes for DCNL.
- Traffic Fidelity: In congestion replay experiments—such as analyzing hash collisions in element training clusters—Merged Switch allowed engineers to reproduce production network congestion precisely, iteratively adjusting parameters until congestion signatures vanished.
Practical Implications
▶ Watch: Trade-offs between fidelity, performance, and conclusion (17:35)
For infrastructure teams, cloud operators, and network model builders, Merged Switch demonstrates that high-fidelity white box switch emulation does not require sacrificing performance. By decoupling control and data planes through a composable adapter framework, organizations can run production SONiC control planes alongside accelerated data planes (EVPP) without incurring the throughput penalties of cycle-accurate ASIC simulators or the semantic inaccuracies of stock Linux protocol stacks.
Tradeoffs and Limitations
The authors explicitly note a design tradeoff between full fidelity and high fidelity. Initial attempts to achieve absolute cycle-accurate emulation using SONiC SIMU combined with ASIC simulators resulted in throughput collapses down to single-digit packets per second, rendering protocol testing impossible. Consequently, Merged Switch prioritizes high fidelity—supporting 89.5% of critical operational functions—while omitting or approximating data plane behaviors that would otherwise introduce prohibitive computational overhead. Additionally, hypervisor resource limits cap density at approximately 30 VM instances per physical server before CPU contention induces packet drop, establishing a hard capacity planning boundary for large-scale testbed deployments.
Key Takeaways
- Adapter-Centric Architecture: Merged Switch successfully bridges production SONiC control planes, high-performance data planes, and virtualized peripheral hardware using dedicated semantic, VPP, and environmental adapters.
- Performance Superiority: Delivering 506k pps per VM, the framework runs 2.2x faster than traditional software switches like SONiC VS and SONiC BMv2 while avoiding the throughput paralysis of ASIC-level simulators.
- High Functional Fidelity: Supporting 89.5% of 157 critical white box functions, the system achieves 100% topological and forwarding path consistency in production-scale deployments.
- Proven Production Utility: Integrated into Tencent's engineering pipeline, the framework successfully diagnosed 198 out of 200 complex network anomalies, spanning software bugs, configuration errors, and BSP driver faults.
- Resource Constraints: Physical server density is bounded at 30 emulator VMs per node to prevent CPU saturation and packet loss during large-scale network emulations.
About the Speaker(s)
Liu Xiang, a researcher from the National University of Singapore, presented the work on behalf of the authors due to visa constraints. The underlying research represents a large-scale collaborative project uniting industrial engineers from Tencent (including Congcong Miao, Shiping Yang, Qihang Liu, Zhijie Yan, and Yanke Zhang) with academic researchers from Tsinghua University (Chuwen Zhang), Tsinghua Shenzhen International Graduate School (Xianneng Zou, Yong Jiang), Xiamen University (Qiao Xiang), Peking University (Xin Jin), Hong Kong University of Science and Technology (Zili Meng), and the University of Michigan (Ang Chen).
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)