MirrorNet: High-fidelity and Scalable Network Emulation for Software-defined WAN
Congcong Miao (Tencent), Yuejie Wang (Peking University), Jianming Wang (Tencent), Xuefeng Ji (Tencent), Guozhi Shan (Tencent), Sirui Li (Tencent), Pan Fang (Tencent), Yanke Zhang (Tencent), Jialin Li (National University of Singapore), Xianneng Zou (Tencent), Guyue Liu (Peking University)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · The Care and Feeding of Networked Systems
Overview
Managing hyperscale software-defined wide area networks (WANs) is exceptionally difficult due to massive geographic distributions, dynamic traffic demands, ongoing maintenance, and unpredictable hardware faults. In this technical article, we examine MirrorNet, a high-fidelity and scalable network emulation system developed jointly by researchers and engineers from Tencent, the National University of Singapore, and Peking University. Designed specifically to tackle the operational complexities of Tencent's production backbone—which connects hundreds of data centers, supports millions of applications, and serves billions of users—MirrorNet bridges the gap between static theoretical models and unpredictable live production environments.

Key moments
- 0:00 Introduction and production WAN background
- 2:08 Four case studies demonstrating the need for MirrorNet
- 8:27 Design and core components of MirrorNet
- 9:58 Handling massive data volumes with incremental storage
- 12:15 Consistent network update mechanism and data dependencies
- 15:23 Scaling deployment and addressing IO bottlenecks
- 16:40 Evaluation results and performance gains
- 18:25 Operational lessons learned from deployment
MirrorNet: High-fidelity and Scalable Network Emulation for Software-defined WAN
Speakers: Congcong Miao (Tencent); Yuejie Wang (Peking University); Jianming Wang (Tencent); Xuefeng Ji (Tencent); Guozhi Shan (Tencent); Sirui Li (Tencent); Pan Fang (Tencent); Yanke Zhang (Tencent); Jialin Li (National University of Singapore); Xianneng Zou (Tencent); Guyue Liu (Peking University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=tUwa8HnaJtI
Overview
Managing hyperscale software-defined wide area networks (WANs) is exceptionally difficult due to massive geographic distributions, dynamic traffic demands, ongoing maintenance, and unpredictable hardware faults. In this technical article, we examine MirrorNet, a high-fidelity and scalable network emulation system developed jointly by researchers and engineers from Tencent, the National University of Singapore, and Peking University. Designed specifically to tackle the operational complexities of Tencent's production backbone—which connects hundreds of data centers, supports millions of applications, and serves billions of users—MirrorNet bridges the gap between static theoretical models and unpredictable live production environments.
The system matters because hyperscale backbone operators face an ongoing dilemma: making configuration changes or testing traffic engineering (TE) strategies on live hardware risks catastrophic, wide-scale packet loss, while traditional emulation environments suffer from poor scalability, low fidelity, and massive storage overheads. MirrorNet solves this by introducing a multi-tenant emulation orchestrator paired with incremental network state storage, dependency-aware update mechanisms, and high-performance translation layers. By enabling accurate retrospective root-cause analysis, risk-free canary testing, and precise capacity planning, MirrorNet transforms how infrastructure teams operate complex multi-plane WAN architectures.
Background
▶ Watch: Introduction and production WAN background (0:00)
Tencent’s production backbone network relies on a sophisticated multi-plane architecture designed to enhance resilience and facilitate incremental upgrades. In this setup, the physical network topology is partitioned into multiple parallel virtual topologies called planes. Cross-data-center traffic is distributed across these planes using flow-level Equal-Cost Multi-Path (ECMP) routing. Each plane operates a dedicated software-based central controller that communicates with distributed agents running on individual routers, managing a designated fraction of the overall traffic.
The central controllers execute periodic traffic engineering (TE) control loops consisting of three primary phases:
- State monitoring: The controller polls router agents to discover network topology changes and measure inter-site bandwidth demands.
- TE path computation: Based on the collected topology and demands, the controller runs optimization algorithms to allocate paths for every site pair.
- Network reconfiguration: The controller compares the newly computed paths with existing routes, identifying modifications and reconfiguring the network via tunneling protocols such as Multiprotocol Label Switching (MPLS).
Despite this robust architecture, operating at this scale introduces acute engineering challenges. Operators regularly confront untraceable network failures (often triggered by daily internal and external faults), tedious parameter-tuning cycles that take months to validate, brittle single-plane canary testing that fails to uncover deep configuration bugs, and imprecise capacity assessments during peak utilization hours. Traditional emulation frameworks fail to address these issues because they cannot ingest large-scale production telemetry efficiently, nor can they recreate exact historical states without overwhelming storage and compute resources.
Key Findings
▶ Watch: Design and core components of MirrorNet (8:27)
The development and deployment of MirrorNet yielded several critical discoveries and performance benchmarks regarding hyperscale network emulation:
- Storage Efficiency via Differential Snapshots: Storing complete, fine-grained network topologies and overlay configurations every second consumes approximately 1300 gigabytes per day per plane. However, empirical analysis reveals that underlay IP links and tunnel configurations change infrequently (averaging roughly one change per day per tunnel). By shifting from full periodic backups to an incremental storage mechanism that logs only state transitions, MirrorNet reduces storage consumption to 0.003% for IP link information and 0.001% for tunnel information.
- Dramatically Faster Provisioning: Compared to baseline open-source and enterprise orchestration tools, MirrorNet achieves extreme provisioning speeds. It deploys underlying emulation infrastructure hundreds of times faster than OpenStack and roughly 8× faster than native GNS3 setups.
- Near-100% Grey-Box Testing Success: Traditional experience-based network evolution and canary testing suffer from high failure rates when subtle configuration divergences exist between planes (e.g., missing MPLS-TE forwarding rules on specific nodes). MirrorNet achieves close to a 100% success rate in safely validating configuration changes and conducting historical fault injections prior to production rollout.
- Concurrent Fault Localization: By leveraging parallel emulation workflows and API-driven batch deployments, operators can test multiple potential failure points concurrently, turning what was once a slow sequential debugging process into a rapid root-cause localization pipeline.
Technical Deep Dive
▶ Watch: Consistent network update mechanism and data dependencies (12:15)
MirrorNet is architected around two primary pillars: a cloud-hosted emulation orchestrator and a distributed emulation network deployed across physical servers.
State Reconstruction and Replay
To recreate a network state at any historical timestamp without storing petabytes of raw data, MirrorNet utilizes a snapshot-and-replay architecture. When an operator initiates a simulation task, the orchestrator loads the closest preceding snapshot from the database and sequentially replays subsequent event logs in chronological order. To verify state consistency, MirrorNet compares the reconstructed topology against real-time cached snapshots. If a match occurs, redundant cache entries are pruned; otherwise, the state is preserved as a new reference checkpoint.
Dependency-Aware Safe Updates
Injecting multi-source network telemetry (such as underlay changes, overlay configurations, routing table updates, and traffic matrix demands) in an arbitrary order causes control plane divergence and simulation crashes. MirrorNet enforces a strict dependency-aware update mechanism governed by a 5-step topological tree:
- Topology Construction: Establishes node and link adjacencies.
- Underlay Network Configuration: Applies physical interface and IGP/BGP parameters.
- Overlay Network Configuration: Sets up VPNs, tunnels, and label-switched paths.
- Traffic Information Injection: Replays historical traffic demands and flow matrices.
- Event Information Injection: Introduces specific link failures, device maintenance, or traffic spikes.
One-to-One Tunnel Mapping
In hyperscale production WANs, multiple tenant tunnels frequently share source-destination pairs for load balancing and redundancy. Traditional emulators often fail to preserve these exact associations, leading to randomized traffic assignments. MirrorNet parses the Traffic Engineering Database (TED) to establish a rigorous one-to-one mapping between production tunnels and emulation tunnels based on attributes such as path constraints, endpoints, and service levels.
Traffic-Driven Control Plane Emulation
Virtual network devices cannot process hundreds of gigabytes per second of raw production data plane traffic. MirrorNet circumvents this hardware limitation by abstracting data plane traffic: instead of replaying raw packets, the system injects production traffic demands and performance metrics directly into the control plane. This allows MirrorNet to focus entirely on faithfully emulating control plane logic, routing protocol convergence, and TE decision loops without hitting physical interface throughput bottlenecks.
Experimental Setup & Results
▶ Watch: Scaling deployment and addressing IO bottlenecks (15:23)
The emulation networks within MirrorNet are deployed across multiple physical servers, with each host equipped with a 96-core processor and hundreds of gigabytes of memory, utilizing a multi-host GNS3 virtualization backend. Conversely, the central emulation orchestrator is lightweight, running inside a cloud virtual machine equipped with just 2 virtual CPU cores and 4 gigabytes of RAM.
Headline results demonstrate that MirrorNet effectively solves Tencent's core operational pain points:
- Root-Cause Analysis (Case Study 1): When a partial link disruption reduced an $1000\text{ Gbps}$ link (AB) down to $500\text{ Gbps}$, causing unhandled congestion and a continuous $100\text{ Gbps}$ packet loss, traditional logging lacked the fidelity to diagnose the cascade. MirrorNet successfully recreated the exact pre-failure state, introduced the link fault in a controlled sandbox, and correlated the resulting TE rescheduling loops with expected control plane policies.
- Parameter Fine-Tuning (Case Study 2): Adjusting TE scheduling thresholds (such as triggering path switches only when link utilization exceeds specific deltas) previously required iterative, months-long canary deployments on live hardware that risked hundreds of milliseconds of packet loss per update cycle. MirrorNet provides a sandbox environment to evaluate these parameters safely before production deployment.
- Plane Isolation Testing (Case Study 3): Canary testing a sequential route-revocation update across planes failed when plane four encountered configuration bugs involving missing MPLS-TE forwarding rules on node C—an anomaly absent in planes one through three. MirrorNet enables comprehensive multi-plane validation, preventing these single-plane blind spots.
Practical Implications
▶ Watch: Operational lessons learned from deployment (18:25)
For infrastructure teams, network architects, and SREs managing large-scale software-defined networks, MirrorNet establishes a blueprint for moving away from risky, production-first trial-and-error operations toward rigorous digital-twin validation.
Tradeoffs and Limitations
- Time-Compression Limits: While accelerating historical event replays saves valuable engineering time, the speakers note that time-compression ratios have a hard physical limit. The compressed time interval must be long enough to accommodate controller path-recalculation delays and network state decompression. Compressing intervals too aggressively causes consecutive events to collide, crashing the controller logic.
- Black-Box Vendor Constraints: Because modern routers often rely on proprietary vendor virtual machines or ASICs, MirrorNet cannot emulate deep-level operating system or hardware ASIC bugs directly. However, the system successfully captures secondary control plane reactions (such as automated TE failovers triggered by a hardware fault), enabling effective retrospective analysis.
Key Takeaways
- Massive Storage Optimization: Incremental state logging reduces daily network topology storage requirements from 1300 GB down to a tiny fraction of a percent ($0.003\%$ for IP links, $0.001\%$ for tunnels).
- Dependency-Aware Execution: Injecting network updates through a strict 5-step dependency tree (topology $\rightarrow$ underlay $\rightarrow$ overlay $\rightarrow$ traffic demands $\rightarrow$ events) prevents control plane divergence.
- Control Plane Abstraction: By replaying traffic demands and metrics rather than raw packets, MirrorNet bypasses physical data plane bottlenecks while maintaining high fidelity for routing and TE behavior.
- Rapid Provisioning: The orchestrator architecture provisions underlying network infrastructure hundreds of times faster than OpenStack and $8\times$ faster than standard GNS3.
- Parallelized Root-Cause Analysis: API-driven batch deployment of twin networks enables operators to test multiple potential failure scenarios concurrently.
About the Speaker(s)
The presentation was delivered on behalf of the authors by a representative researcher from Tencent, representing a collaborative author list spanning Tencent, the National University of Singapore (NUS), and Peking University. The team combines industrial systems engineering expertise in hyperscale backbone management with academic research in networking systems.
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)