BayWatch: Practical Internet-Scale Topology Monitoring with Dynamic Bayesian Estimation
Zhongxu Guan (Tsinghua University and Tsinghua Shenzhen International Graduate School), Shuai Wang (Zhongguancun Laboratory), Li Chen (Zhongguancun Laboratory), Zhaoteng Yan (Zhongguancun Laboratory), Jiaye Lin (Tsinghua University), Dan Li (Tsinghua University), Yong Jiang (Tsinghua Shenzhen International Graduate School), Yingxin Wang (China Telecom Cybersecurity Technology Co., Ltd.), Ziqian Liu (China Telecom Cybersecurity Technology Co., Ltd.)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Measuring at Scale
Overview
Internet topology monitoring forms the foundational bedrock for global outage detection, root-cause fault diagnosis, and macroscopic connectivity analysis. While commercial monitoring platforms exist, they are overwhelmingly tailored for tightly managed enterprise or data center environments. At the internetwide scale, however, ongoing research has historically prioritized static topology measurement campaigns rather than continuous, adaptive topology monitoring. The primary obstacle to scaling these efforts is the ubiquitous nature of multipath routing. Because of Equal-Cost Multi-Path (ECMP) routing and dynamic load balancing, a packet stream from a single source to a single destination routinely shatters into multiple concurrent paths, creating diamond-like branching and reconverging structures that render standard single-path tracing tools fundamentally inadequate.

Key moments
- 0:00 Introduction and motivation for internet-scale topology monitoring
- 2:00 Multipath detection algorithms and the uniformity assumption
- 5:30 Real-world measurements show non-uniform load balancing is common
- 8:00 Baywatch design: turning topology discovery into parameter estimation
- 10:00 Bootstrap mode and iterative Bayesian network updates
- 12:00 Evaluation methodology and internet-scale deployment results
- 14:40 Predictive mode using historical snapshots for efficient monitoring
- 16:00 Conclusion and core takeaways of Baywatch
BayWatch: Practical Internet-Scale Topology Monitoring with Dynamic Bayesian Estimation
Speakers: Zhongxu Guan (Tsinghua University and Tsinghua Shenzhen International Graduate School); Shuai Wang (Zhongguancun Laboratory); Li Chen (Zhongguancun Laboratory); Zhaoteng Yan (Zhongguancun Laboratory); Jiaye Lin (Tsinghua University); Dan Li (Tsinghua University); Yong Jiang (Tsinghua Shenzhen International Graduate School); Yingxin Wang (China Telecom Cybersecurity Technology Co., Ltd.); Ziqian Liu (China Telecom Cybersecurity Technology Co., Ltd.)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=1QwZrcP-1Gg
Overview
Internet topology monitoring forms the foundational bedrock for global outage detection, root-cause fault diagnosis, and macroscopic connectivity analysis. While commercial monitoring platforms exist, they are overwhelmingly tailored for tightly managed enterprise or data center environments. At the internetwide scale, however, ongoing research has historically prioritized static topology measurement campaigns rather than continuous, adaptive topology monitoring. The primary obstacle to scaling these efforts is the ubiquitous nature of multipath routing. Because of Equal-Cost Multi-Path (ECMP) routing and dynamic load balancing, a packet stream from a single source to a single destination routinely shatters into multiple concurrent paths, creating diamond-like branching and reconverging structures that render standard single-path tracing tools fundamentally inadequate.
To solve this, this work introduces BayWatch, a practical system designed for internet-scale topology monitoring via dynamic Bayesian estimation. Traditional multipath discovery tools rely on stateless probing combined with strict mathematical assumptions about uniform traffic splitting across load balancer branches. BayWatch departs from these legacy constraints by treating topology discovery not as a simple randomized probing routine, but as a rigorous statistical parameter estimation problem. By structuring observed paths into layered graphical models and continuously updating forwarding probabilities against historical snapshots, BayWatch achieves unprecedented completeness and efficiency when mapping the wild internet.
Background
▶ Watch: Introduction and motivation for internet-scale topology monitoring (0:00)
At the heart of internet-scale topology discovery lies the Multipath Detection Algorithm (MDA). Classical MDA attempts to uncover hidden router branches by sending randomized packet flows to a target destination. Once these probes encounter a load-balancing router, different flow identifiers force the device to dispatch packets along alternative downstream links. To determine when to stop probing a given node, MDA invokes a statistical stopping rule based on a crucial structural assumption: that load balancers distribute traffic uniformly across all available successors.
Under this uniformity assumption, the probability of missing an active branch decreases exponentially as the number of probes ($n$) increases. For example, with two equally likely successors, six probes yield a missing probability of roughly $1.6\%$, easily satisfying a 95% confidence guarantee. To make this computationally feasible at internet scale, subsequent systems like D-minor coupled MDA with YARP, a stateless, parallelized high-speed probing engine.
However, this reliance on the uniform splitting assumption creates a critical vulnerability. When real-world load balancers split traffic unevenly—a scenario verified in the wild via Gini coefficient measurements—the mathematical guarantees underpinning MDA and D-minor collapse. Under skewed distributions, legacy systems prematurely halt their probing campaigns, missing vast swaths of network links and nodes. Furthermore, repeatedly discovering the internet from scratch via independent topology snapshots introduces massive probing overhead, as stable forwarding paths are endlessly re-validated rather than inferred from historical context.
Key Findings
▶ Watch: Real-world measurements show non-uniform load balancing is common (5:30)
When evaluating D-minor against controlled topologies with varying load-balancing skew, the authors discovered that algorithmic performance degrades precipitously as the Gini coefficient increases. At a Gini coefficient of $0.4$, D-minor drops $24\%$ of nodes and an alarming $60\%$ of links. This proves that uniform-assumption models are ill-suited for the modern internet, where only about one-fifth of diverging nodes exhibit near-uniform load balancing.
In contrast, BayWatch demonstrates remarkable robustness by replacing static assumptions with dynamic Bayesian estimation. Evaluated across 14.46 million IPv4 /24 prefixes at internet scale, BayWatch dramatically outperforms state-of-the-art baselines:
- Node and Link Discovery: BayWatch discovers 2.5 times more nodes and 3 times more links than D-minor across multiple measurement snapshots.
- Distribution Estimation Accuracy: Measured via Jensen-Shannon Divergence (JSD), BayWatch estimates practical Load Balancing Router (LBR) distributions with near-zero divergence when the Gini coefficient remains below $0.5$—covering $89.4\%$ of diverging nodes observed in the wild.
- Predictive Mode Efficiency: Utilizing a Dynamic Bayesian Network (DBN) on historical snapshots, BayWatch cuts prediction Kullback-Leibler (KL) divergence to under $1.0$ for nearly $80\%$ of cases, improving prediction accuracy by roughly $20\%$ over a uniform distribution baseline while sacrificing less than $1\%$ in final topology completeness.
Technical Deep Dive
▶ Watch: Bootstrap mode and iterative Bayesian network updates (10:00)
The architectural foundation of BayWatch rests on a first-order Markovian model of IP forwarding. Because internet routers make local forwarding decisions based on packet headers and local routing state rather than global path history, the next hop depends strictly on the current hop. BayWatch operationalizes this by mapping observed nodes into a layered Bayesian network where each layer corresponds to a specific Time-To-Live (TTL) value.
In this structural view, load-balancing response distributions translate directly into transition probabilities between adjacent layers. BayWatch handles incomplete discovery by introducing explicit hypothetical unseen nodes into its layered network. These latent nodes model the statistical likelihood that additional, undiscovered successors exist.
The system operates in two primary modes:
- Bootstrap Mode (No History): BayWatch launches an initial round of randomized probing to construct a coarse topology skeleton, organizes nodes by TTL, inserts hypothetical unseen nodes, and iteratively refines transition probabilities until uncertainty is exhausted.
- Predictive Mode (With History): BayWatch leverages historical snapshots via a DBN to forecast expected LBR distributions. This historical prior focuses subsequent probe budgets strictly on uncertain or shifting network regions, bypassing redundant discovery across stable links.
Experimental Setup & Results
▶ Watch: Evaluation methodology and internet-scale deployment results (12:00)
The evaluation of BayWatch spans two rigorous environments:
- Controlled Topologies: 100 representative synthetic topologies with ground-truth Gini coefficients ranging from $0$ (perfectly uniform) to $1$ (highly skewed). This dataset allows precise quantification of estimation accuracy, node recall, and link recall.
- Internet-Scale Deployment: Active probing across all route table IPv4 /24 prefixes, encompassing 14.46 million targets coordinated via high-speed scanning infrastructure.
Headline Metrics:
- Recall Robustness: While D-minor experiences severe recall collapse as load-balancing skew increases, BayWatch maintains high fidelity by continuously estimating the true underlying LBR distribution.
- Probing Longevity: Comparative convergence analyses demonstrate that D-minor prematurely halts probing early in the discovery cycle, whereas BayWatch sustains targeted probing rounds until convergence criteria are strictly satisfied.
- Completeness Tradeoff: Utilizing predictive priors via historical DBN modeling introduces a topology completeness loss of less than 1% compared to bootstrap mode, proving that historical acceleration does not compromise structural coverage.
Practical Implications
▶ Watch: Conclusion and core takeaways of Baywatch (16:00)
For network infrastructure teams, model builders, and internet measurement operators, BayWatch shifts internet topology monitoring from an expensive, brittle periodic exercise into a continuous, resource-efficient telemetry pipeline. By abandoning the false comfort of the uniform splitting assumption, engineers can map complex multi-provider transit paths without suffering from the massive false-negative rates inherent in legacy MDA tools.
However, practitioners must account for specific tradeoffs and limitations:
- Computational Overhead: Maintaining and updating a layered Bayesian network across tens of millions of destination prefixes requires substantial memory and CPU overhead compared to stateless, single-pass probing engines.
- Probe Budget Tuning: While predictive mode significantly reduces redundant probing, abrupt macroscopic routing shifts (such as major BGP hijacking events or sudden link failures) can temporarily degrade prior accuracy, forcing the system to fall back to heavier bootstrap probing rounds.
Key Takeaways
- Uniform load balancing is a rare exception in the modern public internet, rendering classical MDA and D-minor monitoring frameworks incomplete due to high skewed-distribution failure rates.
- BayWatch models IP forwarding as a layered Bayesian network, transforming topology discovery from naive randomized probing into rigorous statistical parameter estimation.
- By integrating Dynamic Bayesian Networks (DBNs) with historical snapshots, BayWatch achieves high-fidelity predictive routing inference that accelerates convergence without sacrificing structural completeness.
- At internet scale across 14.46 million IPv4 prefixes, BayWatch discovers 2.5× more nodes and 3× more links than state-of-the-art baselines.
- The system maintains strict error bounds, achieving an average Jensen-Shannon Divergence near zero for nearly $90\%$ of diverging wild internet nodes.
About the Speaker(s)
The conference presentation was delivered on behalf of the primary author team by Failong from Tsinghua University and the Tsinghua Shenzhen International Graduate School. The broader research collaboration represents a joint effort between Tsinghua University, Zhongguancun Laboratory, and China Telecom Cybersecurity Technology Co., Ltd., combining academic systems rigor with large-scale telecommunications operational expertise.
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)