FastReChain: A Novel Bidirectional Model-Based Algorithm for Topology Engineering of OCS-Based Clusters

Zihan Zhu, Xinchi Han, Dongchao Wu, Zhanbang Zhang, Jian Yang, Shizhen Zhao, Xinbing WangarXiv 2025

TL;DR

FastReChain introduces a novel bidirectional modeling approach and an efficient search algorithm for topology engineering (ToE) in Optical Circuit Switch (OCS) data center networks. By natively incorporating Layer 2 symmetry constraints and leveraging bitset-optimized "replacement chains," it slashes algorithm execution time by up to 99.9% and reduces task-disrupting link rewirings by up to 98.9% compared to state-of-the-art methods.

What Problem Does This Paper Address?

Modern data centers, especially those handling massive workloads like Large Language Model (LLM) training, are increasingly adopting Optical Circuit Switches (OCSes) to replace traditional electrical core switches. OCSes offer massive scalability, lower power consumption, and reduced upgrade costs. Unlike electrical packet switches, OCSes provide programmable bandwidth by physically reconfiguring internal port mappings—a process known as Topology Engineering (ToE).

However, existing ToE algorithms face a brutal trade-off between solving overhead (execution latency) and rewiring ratio (the number of active paths disrupted during reconfiguration).

  1. Integer Linear Programming (ILP) models yield optimal rewiring ratios but take hours or days to solve in large-scale clusters, creating a massive bottleneck.
  2. Minimum-Cost Flow (MCF) approximations are faster but fail to natively handle Layer 2 (L2) symmetry constraints (which require links to be bidirectional). To fix this, current systems use greedy heuristics to map asymmetric models to symmetric ones, resulting in significant "mapping losses" and excessive, throughput-degrading link rewirings.

Methods

The authors tackle these inefficiencies through a combination of structural remodeling and localized search optimization:

  • Bidirectional Modeling: Instead of using the traditional asymmetric model (abstracting ToR switches into separate input/output pairs), the authors propose a bidirectional model that natively enforces L2 symmetry constraints from the ground up.
  • Replacement Chains: Rather than re-solving the entire network configuration when traffic patterns change, the algorithm identifies a localized sequence of atomic modifications (adding a link, removing a redundant one, or permuting an existing path). This concept generalizes Paull’s classic algorithm for Clos networks to multi-capacity OCS architectures.
  • FastReChain Algorithm: Built on Iterative Deepening Search (IDS), this algorithm finds the shortest possible replacement chain to satisfy new traffic demands.
  • Bitset Optimization: To prevent exponential search tree explosions under high network loads, the authors introduce parallel bitset operations. By compressing network states into 64-bit integers, the algorithm filters out invalid path choices using ultra-fast bitwise operations, making the runtime virtually independent of the number of network ports.

Datasets

The algorithm was evaluated using real-world, open-source traffic traces from Facebook datacenters (2024). Specifically, the authors utilized traces from "Cluster A" (featuring $m = 155$ Top-of-Rack switches) to simulate various network loads ($l \in \{0.2, 0.4, 0.6, 0.8, 1.0\}$) and OCS scales ($n \in \{128, 256, 384\}$).

Key Insights and Ideas

  • Incremental Local Fixes > Global Recomputation: Traditional ToE algorithms treat every network adjustment as a brand-new global optimization problem. FastReChain exploits the fact that traffic changes are usually incremental, proving that you can patch the topology locally using path permutations without touching the rest of the network.
  • Hardware-Accelerated Graph Search: Mapping graph reachability queries directly to 64-bit integer bitwise operations yields a massive ~1000x algorithmic speedup.
  • Enabling Real-Time ToE: Because FastReChain can process atomic updates in nanoseconds, it transitions ToE from a periodic, "concentrated" batch process to a true "real-time" system capable of dynamically adjusting links as instantaneous traffic bursts occur.

Key Results

The authors evaluated FastReChain against state-of-the-art MCF and Bipartition baselines across both traditional and bidirectional network models:

  • Traditional Continuous Mode: Under low network load, FastReChain achieved up to a 99.9% reduction in solving time and a 98.9% reduction in rewiring ratio over MCF-based ToE. At 100% network load, it still maintained a 97.4% speedup and a 56.2% lower rewiring ratio.
  • Bidirectional Networks: When tested on true bidirectional topologies, the performance gap widened significantly, demonstrating the severe penalties incurred by traditional asymmetric-to-symmetric mapping heuristics.
  • Real-Time Performance: In atomic update tests, processing a single link addition or removal took less than 20 nanoseconds under low load and averaged around 1 microsecond under high load, making it the first algorithm viable for real-time OCS deployment.

Limitations and Future Work

  • Scaling Beyond 64-bit Architectures: The current bitset optimization relies heavily on standard 64-bit words. For massive data centers encompassing thousands of switches, the algorithm will need to be adapted to leverage SIMD (Single Instruction Multiple Data) extensions or GPU acceleration.
  • Search Space Pruning: To simplify computation, the algorithm currently skips highly complex multi-link permutation cases (the "3rd case" in the paper's formulation). Incorporating these extreme cases with advanced pruning strategies could further optimize the rewiring ratio.
  • Parallelization: Because each replacement chain is highly localized, a promising future direction is executing multiple replacement chains in parallel to maximize throughput in ultra-fast switching environments.

Summary updated

BibTeX
@misc{zhu2025fastrechain,
  author = {Zihan Zhu and Xinchi Han and Dongchao Wu and Zhanbang Zhang and Jian Yang and Shizhen Zhao and Xinbing Wang},
  title = {{FastReChain: A Novel Bidirectional Model-Based Algorithm for Topology Engineering of OCS-Based Clusters}},
  year = {2025},
  eprint = {2507.12265},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.12265},
}
Figure