MCCL: Measurement-based Collective Communication Library
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
arXiv:2610.17091v1 [cs.NI] 12 Oct 2026
MCCL: Measurement-based Collective Communication Library MICHELE FERRERO, EURECOM, France GABRIELE CASTELLANO, Independent Researcher, France PAOLO MEDAGLIANI, Independent Researcher, France SEBASTIEN MARTIN, LCOMS, Université de Lorraine, France ROBERTO MORABITO, EURECOM, France MASSIMO GALLO, Independent Researcher, France Collective communication is a critical performance bottleneck in large-scale distributed training. Existing libraries and synthesis frameworks compute open-loop schedules once, assuming a static topology and peak link capacities. In production, however, persistent gray failures can silently degrade link throughput and latency for hours, causing pre-computed schedules to lose much of their efficiency during execution. In this paper, we present Measurement-based Collective Communication Library (MCCL), a collective communication library that closes the loop between runtime network measurement and dynamic schedule synthesis. MCCL passively measures GPU-to-GPU throughput, detects persistent degradation, re-synthesizes the affected communicationintensive schedules with warm-started synthesizers, and hot-swaps them without interrupting training. We validate the complete loop on a multi-node hardware prototype and use simulations to evaluate cluster-scale scenarios. In our experiments, MCCL incurs negligible overhead (< 2%) while maintaining high measurement accuracy (< 1.2% error) and low schedule hot-swap time (≈ 12 ms). Notably, under gray failures, MCCL reduces training time by up to 4.99× over static schedules on simulated training workloads for state-of-the-art LLMs such as Llama and DeepSeek. CCS Concepts: • Networks → Network measurement; Network monitoring; Traffic engineering algorithms; Data center networks; • Computing methodologies → Distributed algorithms; Distributed artificial intelligence. Additional Key Words and Phrases: Collective Communication, Optimization Algorithms, Network Measurements, Runtime Adaptation, Distributed LLM Training ACM Reference Format: Michele Ferrero, Gabriele Castellano, Paolo Medagliani, Sebastien Martin, Roberto Morabito, and Massimo Gallo. 2026. MCCL: Measurement-based Collective Communication Library. Proc. ACM Netw. 4, CoNEXT4, Article 55 (December 2026), 25 pages. https://doi.org/10.1145/3856969
1
Introduction
Large-scale distributed training has become the foundation of modern deep learning, powering state-of-the-art models in natural language processing, computer vision, and recommendation systems. As model parameters and dataset scales continue to grow, the end-to-end efficiency of Authors’ Contact Information: Michele Ferrero, EURECOM, Biot, France, ferrerom@eurecom.fr; Gabriele Castellano, Independent Researcher, Paris, France, gcastellano.phd@gmail.com; Paolo Medagliani, Independent Researcher, Paris, France, paolomeda@gmail.com; Sebastien Martin, LCOMS, Université de Lorraine, Metz, France, martin13@univ-lorraine.fr; Roberto Morabito, EURECOM, Biot, France, roberto.morabito@eurecom.fr; Massimo Gallo, Independent Researcher, Paris, France, gallomassimo3@gmail.com.
This work is licensed under a Creative Commons Attribution 4.0 International License. © 2026 Copyright held by the owner/author(s). ACM 2834-5509/2026/12-ART55 https://doi.org/10.1145/3856969
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:2
Ferrero et al.
distributed training increasingly depends on the performance of collective communications. Primitives such as AllGather, AllToAll, AllReduce, and ReduceScatter directly influence training time, often accounting for a substantial fraction of the overall iteration latency. Consequently, significant research has focused on optimizing these primitives, with efforts largely concentrated on communication-computation overlap, reduction algorithms, and static topology-aware scheduling. Hardware accelerator vendors provide Collective Communication Libraries (CCLs) such as Nvidia CCL (NCCL) [26], AMD ROCm CCL (RCCL) [35], Huawei CCL (HCCL) [15], and Intel OneCCL [31], with highly optimized collective communication schedules tailored to common cluster topologies and hardware configurations. These vendor libraries increasingly leverage specialized hardware, such as in-network computing [39], to accelerate Reduce-intensive collectives. In parallel, schedule synthesizers [3, 5, 23, 34, 36, 43, 48] have demonstrated substantial speedups on communicationintensive primitives such as AllGather and AllToAll. However, existing synthesis tools share a critical limitation: they operate in an open-loop, relying on static topology assumptions and peak link capacities that rarely hold in production environments. Datacenter networks typically exhibit complex and dynamic behavior. A critical yet pervasive challenge is the prevalence of gray failures [14, 17], where components remain functionally operational but experience severe performance degradation due to thermal throttling, PCIe or Network Interface Card (NIC) symbol errors, and optical link decay. Unlike hard failures, which typically trigger alarms, gray failures can silently reduce link performance, sometimes substantially, for several minutes or even hours [14, 46]. Consequently, optimal collective communication schedules at the beginning of training can become increasingly inefficient as system conditions evolve, significantly slowing training processes and leading to suboptimal resource utilization across the distributed infrastructure. This mismatch is particularly pronounced in iterative training because the exact same collectives repeat for thousands of iterations; any localized performance degradation becomes persistent and cumulative. Our key observation is that the repetitive nature of distributed training turns every collective into a free measurement opportunity. Because identical GPU-to-GPU transfers repeat across thousands of iterations, their progress can be passively monitored at path granularity, without injecting any traffic. This insight enables a fundamentally different operating model for collective communication. Instead of synthesizing a schedule once under static topology assumptions and peak capacities (open-loop), the library can continuously measure the paths it uses, decide when the deployed schedule diverges from actual network conditions, re-synthesize it for observed capacities, and deploy the new schedule dynamically during training (closed-loop). Realizing this closed-loop architecture introduces three fundamental challenges. First, the system requires path-level visibility without perturbing training. Existing monitoring approaches either rely on synthetic probes, which compete with training traffic, or on aggregate collective completion time, which can detect slowdown but cannot localize the degraded paths. Second, to avoid triggering spurious re-synthesis cycles, the system must reliably distinguish persistent degradations from short-lived fluctuations and pinpoint the affected collectives. Finally, re-synthesis time is the primary barrier to rapid runtime adaptation. Tree-packing synthesizers such as ForestColl [48] can quickly generate AllGather and ReduceScatter schedules, yet they lack support for warm-starting; even after an isolated, single-link degradation, they discard structurally valid subtrees and recompute schedules from scratch. The barrier is even higher for AllToAll: existing synthesizers [23] solve heavyweight Linear Program (LP) formulations that take hours to converge, too slow for online adaptation. While recent approaches accelerate search times by exploiting network symmetry [5, 37], gray failures inherently break topological symmetry, invalidating their core performance assumptions.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
55:3
In this paper, we present Measurement-based Collective Communication Library (MCCL)1 , a collective communication library that integrates a closed optimization loop directly into the communication stack. MCCL employs a controller-executor architecture: distributed executors run collectives and passively collect GPU-to-GPU telemetry on the fast path, while a centralized controller detects persistent performance drift, selectively re-synthesizes the affected collectives, and deploys the resulting schedules through a hot-swap mechanism adapted from MCCS [47]. Each new component of MCCL is designed around the requirements of the loop rather than as a standalone optimization. MCCL targets communication-intensive collectives, namely AllGather and AllToAll. Reduction-centric collectives such as ReduceScatter keep their existing highly optimized implementations, avoiding interference with in-network computing. AllReduce remains compatible with MCCL through its standard decomposition into ReduceScatter and AllGather, optimizing its AllGather phase while leaving the reduction phase unchanged. In summary, this work makes the following contributions: • We design and implement MCCL, the first collective communication library that closes the loop between path-level measurements and schedule synthesis, continuously adapting communication-intensive schedules to live network conditions without interrupting ongoing training processes (Section 3). • To fill the gap of existing synthesizers, we present a warm-started version of ForestColl that reuses the structure of deployed AllGather schedules, and a column-generation formulation for AllToAll whose rounding gap stays within 2.13 % across tested topologies (Section 4). • To enable reliable path-level visibility, we design a passive telemetry framework that captures GPU-to-GPU bandwidth metrics at the thread-block level, with < 2 % overhead and < 1.2 % measurement error (Section 5). • We validate the complete loop (telemetry, failure detection, re-optimization, and hot-swapping) on an 8-GPU, 2-node prototype, where a schedule swap completes in ≈ 12 ms without impacting training-related collective communication scheduling (Section 6). • We evaluate MCCL at cluster-scale simulating state-of-the-art LLM trainings, demonstrating up to 4.99× faster training under gray failures compared to static schedules (Section 6). The remainder of this paper is organized as follows. We provide background in Section 2, Sections 3–5 detail the system architecture, optimization formulation, and measurement framework. Finally, we evaluate MCCL in Section 6, discuss related work in Section 7, and conclude in Section 8. 2 2.1
Background and motivation Collective Communication Synthesis
The collective communication research landscape [45] is rapidly evolving, with hand-tuned vendor libraries increasingly complemented by automated schedule-synthesis frameworks. Libraries provided by hardware accelerator vendors, like NCCL [26], RCCL [35], HCCL [15], and OneCCL [31], rely on static, heuristic algorithms (e.g., Ring, Tree) mapped to specific hardware topologies. While these libraries execute reduction-heavy collectives (e.g., AllReduce) with high efficiency by leveraging specialized hardware such as SHARP in-network computing [39], the benefits of such accelerators are largely confined to collectives that involve reduction operations. Communicationintensive collectives, such as AllGather and AllToAll, remain primarily constrained by data movement and often cannot fully exploit heterogeneous or non-standard interconnects. Optimizing these collectives is therefore critical to reducing communication overhead and, ultimately, training time. To enable this flexibility, platforms such as MSCCL [25] were developed, enabling the execution of custom collective algorithms on top of standard libraries such as NCCL. 1 MCCL is pronounced “Mickel”.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
Offline
SyCCL[5]
Offline
OptCCL[37]
Offline
MCCL
Online
Static, peak topology Static, peak topology Static, peak topology Dynamic, measured throughput
AllGather no AllToAll Hard with asymmetry Slow with asymmetry
6 4 2 0
Table 1. Collective Communication Algorithms.
7.1x
128MB 1GB 128MB 1GB 128MB 1GB 128MB 1GB
400Gbps Possible
Orig Reopt
5.4x
Hard
A2A TE-CCL AG TE-CCL (#ch=1) AG ForestColl
7.1x
Static, peak topology
8
5.4x
×
3.5x 2.7x 3.6x 3.5x 2.7x 3.6x
Re-optimization
N.A.
1.8x 1.4x 1.7x 1.8x 1.4x 1.8x
ForestColl[48]
Optimization
0.9x 0.7x 1.0x 0.9x 0.7x 1.0x
Name Synthesis NCCL[26], Static RCCL[35] SCCL[3], TACCL[36], Offline TECCL[23]
7.1x 7.1x
Ferrero et al. Algorithm Bandwidth ratio against NCCL
55:4
200Gbps
100Gbps
50Gbps
Link bandwidth after failure
Fig. 1. CCL scheduling algorithm performances.
Building on this foundation, several collective communication synthesizers have emerged to automate schedule generation. Early approaches such as SCCL [3] use Satisfiability Modulo Theories (SMT) solvers to find Pareto-optimal algorithms, while TACCL [36] uses user-provided “communication sketches” to guide synthesis. Subsequent frameworks adopted traffic-engineering principles: TECCL [23] formulates AllGather as an 𝐴∗ -scaled Mixed Integer Linear Program (MILP) and AllToAll as an LP, while ForestColl [48] constructs spanning tree packs using strongly polynomial-time algorithms to generate throughput-optimal schedules. More recently, frameworks have focused on scaling these optimizations for massive topologies. Concurrent work OptCCL [37] and SyCCL [5] both leverage network and collective symmetry to decompose the scheduling problem, with OptCCL explicitly separating routing from chunk scheduling via a multi-commodity flow LP. However, a critical common denominator across these approaches (cf. Table 1) is the “static world” assumption: they optimize for a topology snapshot taken at initialization time that is assumed to remain constant throughout training. 2.2
Challenges: Scale and Reliability
Training foundation models like LLama3 [1], Gemini 2.5 [12], DeepSeek [21] involves big clusters with over 10k GPUs/TPUs running continuously for weeks or months. Furthermore, multiple major AI labs, including OpenAI, Microsoft, xAI, and Meta, are racing to deploy individual training clusters exceeding 100k accelerators, pushing datacenters scale to unprecedented levels. At this scale, network-level component failures (e.g., links, NICs, and optical transceivers), which might be considered rare exceptions in isolation, become a near certainty and pose a critical operational challenge [33]. For instance, estimates suggest that even if each NIC-to-switch link had a mean time to failure of 5 years, the first training job failure would likely occur in less than half an hour within a 100k GPU cluster [10]. Such high hardware failure rates are particularly problematic in distributed training, where a single component failure can cause the entire training job to halt, leaving expensive accelerators idle. While catastrophic fail-stop events are relatively easy to detect, a more challenging issue is the presence of gray failures (or fail-slow hardware) [14, 17], where components remain functional but operate at degraded performance levels due to specific recovery mechanisms [2, 32, 42]. These performance degradations are rarely brief anomalies; empirical evidence shows that congestioninduced gray failures persist for an average of 72 minutes (e.g., Greyhound [46]), while hardwarerelated faults can last significantly longer (e.g., FailSlow [14]). Because these degraded states persist across thousands of training iterations, they become severe long-term bottlenecks. 2.3
The case for dynamic CCL schedules
Given these reliability challenges, we argue for a shift from static planning to dynamic adaptation, as pre-optimized schedules become highly inefficient when communication performance drifts. Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
55:5
To motivate dynamic re-synthesis, we simulated AllGather, and AllToAll collectives under varying link-layer degradations using SimAI [40, 44], a high-fidelity simulator validated against production clusters (iteration-time and collective-communication deviations below 3.9 % [44]). We extend2 SimAI to support custom CCL schedules using the same validated point-to-point primitives as its native NCCL algorithms, thereby preserving the simulator’s reported accuracy, as confirmed by our custom ring schedule reproducing SimAI’s native ring completion times. We evaluate a 2-host (16 GPUs) rail-optimized topology (cf. Appendix A, Figure 12 for reference), using NCCL, TECCL, and ForestColl as representatives of state-of-the-art CCL. Synthesizers are evaluated with up to ten chunks, reporting the best-performing configuration in each case. TECCL’s AllGather is limited to one chunk because of scalability issues. As shown in Figure 1, with peak capacity i.e., all links connecting the nodes to the switch have 400 Gbps, TECCL and ForestColl match NCCL Ring’s Algorithm Bandwidth [27], which is already throughput optimal, with marginal deviations originating from chunking approximation errors. However, when simulating a gray failure by degrading the link capacity of GPU 0 by 50%, 75%, and 88%, the performance of all static schedules (Orig) collapses to the speed of the bottleneck. Strikingly, Figure 1 demonstrates that adapting the schedule via re-optimization yields up to a 7.1× improvement over these static baselines. 2.4
Limitations of Current Approaches
Realizing the theoretical gains of dynamic scheduling requires accurate, real-time detection of performance drifts. Static collective schedule synthesizers rely on active probing i.e., injecting dummy traffic, which is effective offline but slows live training by consuming valuable network resources. Furthermore, relying solely on bandwidth measurements taken from network links or switches is insufficient. While these metrics capture the state of the network fabric, they fail to account for the end-to-end complexity of the communication path. Indeed, traditional networklevel measurements [9, 24, 46] overlook critical intra-node factors, such as PCIe bottlenecks and protocol overheads. Consequently, MCCL must explicitly monitor the full GPU-to-GPU data paths. While recent frameworks like MCCS [47] attempt runtime adaptability, their scope is limited to re-ordering ranks within a fixed ring algorithm; they lack the mechanisms to pinpoint path-specific degradations or the capability to synthesize new schedules online. Moreover, accurate detection alone is not sufficient to enable dynamic schedule adaptation, as existing synthesizers fundamentally lack runtime architectural support. While synthesis tools like ForestColl [48] are faster than traditional solver-based ones, they still operate entirely statelessly. When a localized gray failure occurs, they do not preserve unaffected portions of a previously optimal schedule. Instead, they discard the entire communication structure and rebuild from scratch, forcing redundant exploration and unnecessarily delaying runtime adaptation. For complex patterns like AllToAll, where every node sends unique data to every other node, the optimization challenge becomes intractable for time-discretized flow-based methods. While recent approaches like SyCCL [5] attempt to mitigate this scaling issue by exploiting topology symmetry, they are rendered ineffective by gray failures, which inherently break symmetry and create irregular network states. Concurrent work OptCCL [37] faces the same limitation: although its LP is polynomial, its scalability relies on structural symmetry [38, Appendix A.11]. Consequently, finding an optimal, asymmetry-aware AllToAll schedule for a large cluster remains computationally prohibitive for online adaptation.
2 https://github.com/NetMeasurements-Team/SimAI.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:6
Ferrero et al.
Algorithm 1. Re-optimization selection algorithm.
Collectives list, Frequency, Overlay Topology, etc.
0
Require: Graph 𝐺 (𝑉 , 𝐴) , Measurements M , Collectives S with active schedules, Bottleneck cuts { K𝑠 }𝑠 ∈S , Threshold Γ , Base slacks {𝑏𝑎𝑠𝑒 _𝑠𝑙𝑎𝑐𝑘𝑠,𝑎 }𝑠 ∈S, 𝑎∈K𝑠 Definitions: C (𝑠 ) : Commodities of collective 𝑠 C𝑎 (𝑠 ) : Chunks of the active schedule for collective 𝑠 crossing link 𝑎 K𝑠 : Links saturated by the active schedule of 𝑠 (its bottleneck cut) 𝑥𝑚𝑖𝑛 (𝑠 ) : Bottleneck data rate of the active schedule for collective 𝑠 1: for each 𝑠 ∈ S do ⊲ — For each collective and its active schedule —
Controller Schedule Manager
1
CC Function, GPU groups, etc.
Schedule Optimizer
GPUs Online rescheduler
Executor Measurement
3
GPU-GPU comm.
Optimized Schedule
2
Fig. 2. MCCL System architecture.
3
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16:
𝑥𝑚𝑖𝑛 (𝑠 ) ← ∞ for each link 𝑎 ∈ 𝐴 do 𝑛𝑎 ← | C𝑎 (𝑠 ) | if 𝑛𝑎 > 0 then 𝑥𝑐𝑢𝑟𝑟 ← M𝑎 /𝑛𝑎 𝑥𝑚𝑖𝑛 (𝑠 ) ← min(𝑥𝑚𝑖𝑛 (𝑠 ), 𝑥𝑐𝑢𝑟𝑟 )
⊲ Phase 1: Find Bottleneck Rate of 𝑠 ⊲ Iterate all links in Topology
𝑆𝑙𝑎𝑐𝑘𝑚𝑎𝑥 ← 0 for each link 𝑎 ∈ K𝑠 do 𝑛𝑎 ← | C𝑎 (𝑠 ) | 𝑢𝑎 ← 𝑛𝑎 × 𝑥𝑚𝑖𝑛 (𝑠 ) 𝑐𝑢𝑟𝑟𝑒𝑛𝑡 _𝑠𝑙𝑎𝑐𝑘 ← ( M𝑎 − 𝑢𝑎 )/M𝑎 𝛿𝑎 ← |𝑐𝑢𝑟𝑟𝑒𝑛𝑡 _𝑠𝑙𝑎𝑐𝑘 − 𝑏𝑎𝑠𝑒 _𝑠𝑙𝑎𝑐𝑘𝑠,𝑎 | 𝑆𝑙𝑎𝑐𝑘𝑚𝑎𝑥 ← max(𝑆𝑙𝑎𝑐𝑘𝑚𝑎𝑥 , 𝛿𝑎 )
⊲ Phase 2: Evaluate Slack on the Cut ⊲ Iterate only links in the Cut
if 𝑆𝑙𝑎𝑐𝑘𝑚𝑎𝑥 > Γ then ScheduleOptimizer ( C (𝑠 ), M )
⊲ Update bottleneck of 𝑠
⊲ Unused bandwidth on 𝑎 ⊲ Deviation from rounding slack ⊲ Phase 3: Decision ⊲ New active schedule for 𝑠
System Design
The key idea of MCCL is to shift from a static “optimize-once” model to a dynamic “alwaysoptimizing” framework. To achieve this without delaying the active training job, MCCL utilizes an asynchronous controller-executor architecture, depicted in Figure 2. The Controller runs as a background service (e.g., on a dedicated CPU or separate node) and manages the slow-path: processing telemetry, diagnosing network health, and executing the schedule synthesis algorithms. The Executor runs on the GPUs participating in distributed training and manages the fast-path: executing the collectives, passively measuring network throughput, and hot-swapping schedules. By design MCCL targets communication-intensive operations (AllGather, AllToAll). However, distributed training paradigms such as Fully Sharded Data Parallelism (FSDP) rely on operations like AllReduce. MCCL natively supports these workloads through collective decomposition. When a training job triggers an AllReduce, MCCL splits it into its constituent phases. The initial arithmetic-intensive ReduceScatter phase is executed using static schedules to leverage specialized in-network aggregation hardware [39]. The subsequent data-intensive AllGather phase is routed through MCCL’s Executor for dynamic optimization. This split preserves hardware-accelerated reduction performance while adapting the data-transfer phase to network conditions. 3.1
The Dynamic Optimization Loop
MCCL operates as a continuous feedback loop (Figure 2), with a startup phase for baseline optimiza0 a profile of the training’s collective tion and a runtime phase for dynamic adaptation. At startup ○, calls (e.g., list and frequency) and an initial overlay topology are fed to the Schedule Manager. Such topology models communication as overlay links: each GPU connects to an intra-node switch (e.g., NVSwitch), and GPUs in different nodes are connected by direct inter-node links. Initial link capacities are obtained via probing, as for other static synthesizers [6, 23, 36, 48]. In this phase, 1 acts as a static orchestrator, passing the without online measurements, the Schedule Manager ○ topology to the Schedule Optimizer to generate a set of optimized baseline schedules. These are 2 to ensure that training starts with high-performance sent to the Executor’s Online Rescheduler ○ primitives. Optionally, MCCL can bypass this step and fall back to standard NCCL rings, deferring all optimization to the runtime phase. Once training begins, the system enters the runtime phase and transitions to its dynamic loop. While the optimized schedules are executed, the Executor’s Measure3 This real-time data is continuously ment module passively monitors overlay links throughput ○. fed back to the Controller, fundamentally changing the Schedule Manager’s role. Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
55:7
At runtime, the Schedule Manager uses this feedback to diagnose the communication paths’ health. It identifies performance drift (e.g., due to gray failures) and dynamically selects which collectives require re-optimization. The Schedule Manager then invokes the Schedule Optimizer using the measurements from the GPUs as the new input topology. The resulting re-optimized 2 which hot-swaps the algorithms. This continuous schedules are sent to the Online Rescheduler ○, loop ensures that collective schedules evolve in lockstep with the underlying network’s conditions. 3.2
Controller Components
The Controller operates on the “slow-path” and is composed of two modules: Schedule Manager. This component acts as the “brain” of the MCCL framework; its primary role is to select which collective(s) to re-optimize based on network conditions. It takes three inputs: 0 the set of collectives S with the details the application profile with its graph 𝐺 (𝑉 , 𝐴) (step ○), 3 Executors write of their active execution schedules, and throughput measurements M (step ○). raw throughput samples via RDMA into a dedicated per-node memory region on the Controller (Figure 13, Appendix B for reference). The Controller applies an Exponentially Weighted Moving Average (EWMA) with smoothing factor 𝛼 to these samples; the resulting smoothed throughput for each link 𝑎 is then stored as M𝑎 . This filtering explicitly attenuates short-lived microbursts, ensuring that only persistent degradations shift M enough to trigger a re-synthesis cycle. Algorithm 1 details how the Schedule Manager selects the collectives to re-optimize. In a schedule, tensors are split into chunks, each routed along a path (AllToAll) or a tree (AllGather); 𝑛𝑎 denotes the number of chunks crossing link 𝑎. At synthesis time, the Schedule Optimizer also returns the schedule’s bottleneck cut K𝑠 , i.e., the links the schedule saturates, and, for each link 𝑎 ∈ K𝑠 , its 𝑏𝑎𝑠𝑒_𝑠𝑙𝑎𝑐𝑘𝑠,𝑎 , i.e., the fraction of bandwidth left unused on 𝑎 because the solution is rounded into chunks. At runtime, the Schedule Manager checks whether, for each schedule 𝑠, K𝑠 is still saturated under the current measurements M. This takes three phases. Phase 1 computes the bottleneck rate 𝑥𝑚𝑖𝑛 (𝑠) = min𝑎: 𝑛𝑎 >0 M𝑎 /𝑛𝑎 , which represents the maximum per-chunk throughput allowed by the most congested link. Phase 2 computes, for each 𝑎 ∈ K𝑠 , the current slack (M𝑎 − 𝑛𝑎 𝑥𝑚𝑖𝑛 (𝑠))/M𝑎 and its deviation 𝛿𝑎 from 𝑏𝑎𝑠𝑒_𝑠𝑙𝑎𝑐𝑘𝑠,𝑎 . Phase 3 flags 𝑠 if max𝑎∈ K𝑠 𝛿𝑎 exceeds a threshold Γ, and invokes the Schedule Optimizer with the commodities C(𝑠) and the current M. Both Γ and the EWMA 𝛼 are tuned to the cluster profile: a small 𝛼 filters out longer bursts at the cost of slower detection, while a large Γ ignores milder degradations. Both reduce the number of re-optimizations and thus the risk of schedule thrashing, i.e., swapping schedules when degradations clear faster than a synthesis cycle. If a degradation clears during re-synthesis, the Schedule Manager aborts it and keeps the current schedule; if it clears right after, the installed schedule may be suboptimal until the next re-optimization. In practice, thrashing is unlikely, as gray failures typically persist for minutes to hours (Section 2.2), far longer than a re-synthesis cycle. Additional thrashing prevention mechanisms and Γ and 𝛼 tuning from the observed failure dynamics are left for future work. Schedule Optimizer. The optimizer serves as a unified wrapper that delegates collective optimization to specialized synthesizers. To ensure broad applicability while maintaining tractability, it targets communication-intensive primitives from which other collectives are derived: AllToAll and AllGather. For AllToAll, where asymmetric gray failures render traditional symmetry-based synthesizers ineffective, the optimizer invokes a Column Generation (CG)-based synthesizer. This engine enables fast re-synthesis via warm starts from previous solutions, supports time-bounded execution, and optimizes throughput against network irregularities. For AllGather, it interfaces with an extended ForestColl tree-packing synthesizer [48], which integrates an 𝐴∗ -guided search to warm-start re-synthesis, preserve previous schedule structures, and minimize recomputation overhead. The underlying synthesis algorithms are detailed in Section 4. Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:8
3.3
Ferrero et al.
Executor Components
The Executor handles “fast-path” operations on the GPUs. Built on top of the MSCCL [6, 25] backend to inject custom schedules, it consists of two elements: Online Rescheduler. This module is responsible for the dynamic deployment of new schedules leveraging a runtime “hot-swap” mechanism adapted from MCCS [47]. When the Controller 2 the Online Rescheduler stages it. At that point, GPUs provides a new Optimized Schedule (step ○), belonging to the target communicator execute an out-of-band AllGather to exchange two state variables: the version number of their most recently staged schedule, and the sequence number of their last-launched collective (or collective group). Here, the minimum version number identifies the newest schedule staged across all GPUs, while the maximum sequence number defines the collective selected for the transition. Collectives with previous sequence numbers complete on the old schedule; subsequent ones complete using the re-optimized schedule. Because each swap is scoped to a single communicator, collectives on other communicators are unaffected. 3 Measurement. This module provides real-time telemetry feeding the optimization loop (step ○). To ensure that measurements capture only actual network communications, telemetry collection is restricted to operations without reduction phases, isolating link throughput from the computational phases of reduction arithmetic. To capture the distinct performance characteristics of different interconnects, the measurement module employs a hybrid metric strategy. For intra-node communication, it measures the cumulative per-GPU throughput, aggregating bandwidth across all concurrent transfers thus capturing the total device injection capacity. For inter-node communication, it captures point-to-point throughput between GPU pairs. These metrics are collected passively during training and asynchronously flushed to the Controller with RDMA3 , which records them in a raw measurement matrix later used to derive M (Appendix B, Figure 13 for reference). The design of this passive measurement system is detailed in Section 5. 4 4.1
Collectives Optimization Overview
Optimizing collective communication centers on scheduling data-block (i.e., tensor) transfers to minimize completion time. For MCCL, this requires balancing theoretical throughput optimality with the computational scalability required for online deployment. Existing synthesis tools fail to reconcile these conflicting goals because they cannot efficiently manage the optimization state during dynamic network performance drifts. Approaches like TECCL [23] optimize throughputlatency trade-offs but rely on computationally heavy formulations, such as time-expanded graphs or rigid MILP. These methods scale poorly with cluster size and may require substantial solving times, rendering them impractical for online schedule re-computation. Conversely, synthesizers like ForestColl [48] are significantly faster at generating throughput-optimal schedules, but they operate statelessly. When a localized topology change occurs, these algorithms discard the entire communication structure and rebuild the schedule from scratch (i.e., cold start) wasting critical computational cycles and delaying runtime adaptation. The core principle underlying MCCL’s optimization framework is that network anomalies typically disrupt only a localized fraction of the topology. Rather than re-evaluating the entire search space, MCCL utilizes the previously optimal solution as a structural heuristic to constrain the new search. The shift from a naive cold-start to an efficient warm-start paradigm drastically reduces redundant exploration. As our evaluations demonstrate, using historical schedules to anchor the search reduces convergence times, rendering real-time schedule adaptation practical. 3 Telemetry offload leverages compute-bound phases or auxiliary NICs not used for model synchronization during training.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
55:9
To achieve this, the Schedule Optimizer integrates two specialized synthesis engines tailored to the communication structures of AllGather and AllToAll: AllToAll via Column Generation (CG). We propose an LP-throughput-optimal, decompositionbased formulation for AllToAll collectives that eliminates solving time overhead associated with traditional time-expanded graphs. By decoupling the problem into a Restricted Master Problem (RMP) and a pricing subproblem, we avoid enumerating the exponentially many tree variables while preserving LP-optimality. Building on this scalable foundation, we also introduce a warm-start mechanism that retains valid routing structures from previous iterations, drastically reducing the time required to adapt to network changes. AllGather via ForestColl-warm. We introduce ForestColl-warm, which extends the throughputoptimal tree-packing algorithm by incorporating an 𝐴∗ -guided exploration strategy tailored for online re-computation. By leveraging the solution history to direct the underlying Breadth-First Search (BFS), this mechanism strategically reorders the sequence of candidate links to align with the previous optimal arborescence. This guided approach aggressively prunes the exploration space, minimizing redundant computational overhead and enabling rapid adaptation to network changes. Additionally, in Appendix C we propose a ForestColl-like latency-sensitive formulation which reduces maximum tree depths with the objective of reducing schedules’ latency. 4.2
AllToAll optimization
To satisfy the strict time requirements of online re-synthesis, we model the AllToAll scheduling problem as a throughput maximization problem, which we solve using a Dantzig–Wolfe reformulation [7] with Column Generation (CG). Let T𝑐 be the set of all shortest-path trees rooted at the source of tensor 𝑐 ∈ 𝐶. We define 𝑧 as the throughput, and 𝑥𝑇𝑐 as the volume of traffic sent along the shortest-path tree 𝑇𝑐 ∈ T𝑐 for a given 𝑐 ∈ 𝐶. The optimization problem is formulated as follows:
𝛼𝑐 :
max ∑︁
(1)
𝑧 𝑥𝑇𝑐 ≥ 𝑧
∀𝑐 ∈ 𝐶,
(2)
∀𝑎 ∈ 𝐴,
(3)
∀𝑐 ∈ 𝐶, ∀𝑇𝑐 ∈ T𝑐 .
(4)
𝑇𝑐 ∈T𝑐
𝛼𝑎 :
∑︁
∑︁
𝛽𝑎𝑇𝑐 𝑥𝑇𝑐 ≤ 𝑐𝑎
𝑐 ∈𝐶 𝑇𝑐 ∈T𝑐 : 𝑎∈𝑇𝑐
𝑥𝑇𝑐 ≥ 0
where 𝛽𝑎𝑇𝑐 is the number of shortest paths within the tree 𝑇𝑐 that use link 𝑎. The objective (1) maximizes the collective throughput 𝑧. Constraints (2) are throughput constraints: they tie each tensor’s total routed flow to 𝑧, so that maximizing 𝑧 drives up the minimum per-tensor throughput (a max–min objective). Constraints (3) are link-capacity constraints, ensuring the aggregate load on each link 𝑎 stays within its bandwidth 𝑐 𝑎 . Finally, constraints (4) enforce non-negativity of the flow variables. We denote the dual variables associated with (2) and (3) as 𝛼𝑐 and 𝛼𝑎 , respectively. This formulation is the Dantzig–Wolfe reformulation of a compact, arc-based multi-commodity flow model; we defer the compact model and its full derivation to Appendix G. Directly solving the compact model is computationally prohibitive at scale. The CG approach overcomes this challenge by generating columns on the fly. In particular, the algorithm alternates between solving the RMP, limiting the optimization to a subset of variables, and solving a pricing subproblem for each tensor. The pricing subproblem is parameterized by the dual variables 𝛼𝑐 and 𝛼𝑎 and identifies whether any variable not yet generated can improve the objective value; specifically, it searches Í for a shortest-path tree 𝑇𝑐 for each 𝑐 ∈ 𝐶 such that 𝑎∈𝑇𝑐 𝛽𝑎𝑇𝑐 𝛼𝑎 < 𝛼𝑐 . Intuitively, 𝛼𝑎 duals act as congestion prices, so the left-hand side measures the congestion that 𝑇𝑐 would experience, while 𝛼𝑐 is the marginal value of increasing the throughput of tensor 𝑐. Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:10
Ferrero et al.
To account for the sequential nature of tensor transfers within the CG framework, the pricing ˜ where subproblem’s shortest-path tree search is executed over a time-expanded graph 𝐺˜ = (𝑉˜ , 𝐴), steps model the order of discrete chunk transfers between GPUs. To govern this expansion, we bound the maximum number of steps by a parameter 𝑚𝑠 . The set of vertices 𝑉˜ consists of the original nodes 𝑉 replicated 𝑚𝑠 times, where the 𝑖-th copy of a node 𝑣 ∈ 𝑉 is denoted 𝑣𝑖 ∈ 𝑉˜ . The set of arcs 𝐴˜ comprises two types of links to model intra-switch and inter-device propagation: for each link (𝑢, 𝑣) towards a switch node 𝑣, we add instantaneous links (𝑢𝑖 , 𝑣𝑖 ) for 𝑖 ∈ {0, . . . , 𝑚𝑠 − 1}; for all other links (𝑢, 𝑣) where 𝑣 is not a switch node, we add forward-stepping links (𝑢𝑖 , 𝑣𝑖+1 ) for 𝑖 ∈ {0, . . . , 𝑚𝑠 − 2}. Since 𝐺˜ is acyclic by construction, the pricing reduces to a shortest-path tree search that we solve with a DAG-tailored algorithm processing 𝑉˜ in topological order (i.e., ˜ time. This extended topology step), which naturally favors shallow trees and runs in 𝑂 (|𝑉˜ | + |𝐴|) structurally limits any discovered path to at most 𝑚𝑠 steps and natively encourages the shortest-path algorithm to select the routes requiring the fewest steps among equal-cost alternatives. To prioritize the aggressive computational speeds required for online re-computation and warm-starting, we statically fix 𝑚𝑠 = |𝑉 | − 1. While this constant bound guarantees maximum throughput with minimal solver overhead, the formulation can optionally minimize 𝑚𝑠 via a binary search if tighter latency bounds are desired. We defer the description of this extended formulation to Appendix D. Once the CG converges to the fractional LP-optimal solution, we apply deep-dive rounding [18] to extract a schedule with at most ten chunks. This heuristic incurs a marginal gap to the MILP optimum, yielding a near-optimal executable schedule (evaluated in Section 6.1, Appendix F). 4.3
AllGather optimization
In this section, we present our ForestColl extension, whose baseline algorithm comprises three phases that must be executed sequentially: Phase 1: Compute maximum throughput — This phase calculates the maximum flow for each tensor from a super-source 𝑆 to the source node of each tensor 𝑐 within the reversed graph. The overall maximum throughput is determined by the minimum of these computed flows. Phase 2: Switch removal — This phase abstracts switches by replacing physical paths with direct logical links. The procedure greedily assigns capacity to each logical link (Fig. 14, Appendix C). For each node, the total capacity assigned to incoming and outgoing logical links must not exceed the underlying physical link capacity and must satisfy the calculated maximum throughput. Phase 3: Tree generation — For every tensor in the logical topology, this procedure allocates link capacity based on the maximum throughput. The allocation uses a Breadth-First Search (BFS) strategy initiated at the tensor’s source node, which guarantees an arborescence structure. History-Guided Tree Generation (ForestColl-warm). To guarantee the rapid schedule resynthesis required for online adaptation, we enhance the tree generation phase by making it historyaware. The original ForestColl algorithm employs a stateless BFS to construct the arborescence. This approach is computationally wasteful during a localized network anomaly, as it discards the entire communication structure and rebuilds from a cold start. To improve the re-optimization strategy, our enhanced BFS is guided by the previously computed arborescence through a mechanism analogous to the 𝐴∗ algorithm. The primary objective is to preserve its structure as much as possible. This approach aggressively reduces redundant explorations within the BFS by reordering the sequence of candidate links. Given that a gray failure typically impacts a limited number of links, there is a high probability that links from prior optimal trees remain valid in subsequent iterations, allowing the solver to rapidly converge on a new throughput-optimal schedule. Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library NODE 1 GPU 0
Memory Shared Global
Comm kernel
SM SM (TB) (TB)
…
SM SM (TB) (TB)
Memory
(chan.) Intra-node
…
SM (TB)
Memory
Shared
Shared
Global
Global
PCIe Bus
Proxy Thread
Measurement time
Comm kernel
SM (TB)
Channels
…
SM (TB)
GPU 1 Intra-node switch
Comm kernel
SM SM (TB) (TB)
channels
NODE 0 GPU 0
55:11
Active Threadblocks
4 3
Channel Threshold
2 1
PCIe Bus
t
NIC Inter-node
Inter-node (no GPU-Direct)
Fig. 3. GPU Communication and Memory Layout.
Threadblocks start sending
Threadblocks finish sending
Fig. 4. Per channel (TB) measurements process.
Balancing Latency and Computation Time. While the proposed history-guided search is designed to reduce schedule re-synthesis time, ForestColl’s default greedy switch removal (Phase 2) ignores tree depth, which can lead to sparse topologies and deep communication trees, hence high latency. If rescheduling-time constraints can be relaxed and lower latency is preferred (e.g., for workloads dominated by smaller transfers), a step-aware switch-removal formulation can be used instead, which reduces maximum tree depth as a proxy for latency. We detail this extended formulation in Appendix C. 5
Measurements framework
Before detailing our lightweight passive measurement architecture, we analyze the execution model of the underlying communication library. Without loss of generality, we focus on NCCL, though other software stacks for GPU-to-GPU communication share fundamentally similar architectures. As detailed in recent literature [16], NCCL parallelizes collective operations by splitting them into virtual pipelines known as channels. Each channel manages a fraction of the total payload via a producer-consumer model, transferring data from a source to a destination. At the hardware level, each channel is driven by a single Thread Block (TB) executing on a dedicated Streaming Multiprocessor (SM). For throughput-intensive protocols (e.g., Simple), NCCL partitions the payload across these channels. This enables fine-grained pipelining where computation, transmission, and synchronization occur concurrently. The underlying data movement relies on two distinct mechanisms: intra- and inter-node as depicted in Figure 3. For intra-node communication, NCCL utilizes the P2P_DIRECT transport. By mapping peer memory into a unified address space, TB issue direct Load/Store instructions to remote GPU memory, bypassing intermediate staging buffers. Inter-node communication instead relies on a Proxy-based protocol run by the Host CPU. The GPU posts work requests to a shared FIFO in host memory, which the Proxy polls to trigger network operations (e.g., RDMA or Socket transfers). With GPU-Direct, chunks are transferred immediately from the GPU to the NIC, bypassing the CPU for the payload. This decoupled, multichannel execution model presents unique challenges for telemetry: because traffic is split across independent hardware and channels, traditional single-point monitoring is insufficient. This motivates our specialized measurement architecture, which is designed to capture effective bandwidth natively across these distributed execution paths. Currently, our measurement framework targets collective operations without a reduction phase (e.g., AllGather, AllToAll) to ensure that the measured throughput is not affected by the computational latency. 5.1
Intra-node measurements
Measuring intra-node throughput presents two main challenges: memory contention and transient effects (naive measurements might underestimate throughput, including transient phases). To mitigate this, we introduce a conditional measurement algorithm supported by a three-tiered memory hierarchy. As illustrated in Figure 5, our measurement module uses three data structures: Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:12
Ferrero et al.
Per destination Measurements Accumulators (GPU – in Global) Byte_sent Start Start_size Active 24 ns 4 ch. 1024 B 4096 B
Streaming Multiprocessor (ThreadBlock) warp 1-15 warp 0 warp 16
true true true
2880 Gbps 180 Gbps -
1 3 3
Fig. 5. Measurements data structures.
postPeerFence
…
Chunk loop
INTRA 8 16
subBarrier reduceCopy (subChunk i) Barrier reduceCopy (subChunk i+1)
subChunk loop
0 0 0
Measured send time
WaitPeer Per TB Measurements Cache (GPU – in Shared) Sender Receiver Send Count Sender Receiver SendThr. Bw. Count 00 2880 11 INTRA 2890Gbps Gbps INTRA 8 3 180 Gbps 0 8 400- Gbps 001 16 303 INTRA Per TB Measurements Buffer (pinned CPU/GPU – in Server DRAM) Sender Receiver Flag Send Thr. Count
Barrier postPeerFence
postPeerNotify
Fig. 6. NCCL communication kernel schema.
Measurements Cache — A per-TB cache located in the fast Shared Memory. It aggregates bandwidth statistics i.e., count, sum_bw, to minimize DMA transfer from the GPU to the Host. Measurements Accumulator — A per-destination synchronization point stored in GPU global memory and accessible by all TBs. It tracks the global active channel count to detect link saturation, and bytes_sent, the cumulative amount of bytes transmitted to the destination. Additionally, it records start and start_size, the time and byte count at the beginning of the measurement window. Measurements Buffer — A pinned memory buffer allocated in DRAM to export data from the GPU to the Host. To avoid race conditions, each TB is assigned a set of dedicated slots arranged as a circular buffer; if no slot is available, the measurement is dropped. This structure mirrors the fields of the cache but adds a flag, which signals to the Host that the data is valid for reading. Measurement Algorithm. To ensure correct measurements, we employ a protocol that records data only when the number of active channels exceeds a specific threshold. This threshold can be established in two ways. The primary method leverages NCCL’s native topology discovery, which derives optimal allocations to maximize parallelism. Alternatively, while NCCL’s allocations are robust, an empirical lower bound can be identified through offline profiling. Note that this static threshold does not need to be adapted in case of reduced bandwidth as the collective algorithm will always use the expected number of channels needed to saturate the nominal bandwidth. The process, depicted in Figure 4, follows this logic: as a TB begins transmission on a channel, it atomically increments the active counter in the Measurements Accumulator. When active exceeds the defined channel threshold 𝑁 (cf. Figure 4), the system enters the measurement state and the current TB logs the start timestamp and current bytes_sent. As channels complete their work, they decrement the active counter. When active count drops below the threshold, the ΔSize measurement window closes. The TB triggering this event calculates the bandwidth (BW = ΔTime ) 4 and stores it in the local Measurements Cache. Implementation efficiency. To isolate chunk transfer times in the NCCL communication kernel (cf. Figure 6), we exclude the initial waitPeer and subBarrier routines that await data readiness. Moreover, to ensure fine-grained data persistence without stalling primary data movers, we restructure the standard NCCL TB signaling mechanism. In the original implementation, a single monolithic postPeer routine handles both memory consistency and peer notification. We split this operation into two distinct primitives: postPeerFence, which enforces memory ordering, and postPeerNotify, which signals completion. This separation allows us to reuse the dedicated signaling warp 16 as a progress bookkeeper, feeding the MCCL measurement data structures. 4 Note that in our prototype, a flag signals the state of the measurement accumulator i.e., measuring, below_threshold, and
finalizing, to prevent a new measurement window from starting before the previous one is finalized.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
55:13
By executing postPeerFence in parallel with the reduceCopy5 loop (warps 1–15), we enforce system-level memory fences on sub-block transfers without blocking the primary data movers. This effectively masks the latency of synchronization and atomic operations. Our evaluation shows that this instrumentation incurs a negligible overhead of ≈2 % provided the TB allocation is sufficient to saturate the available bandwidth, a prerequisite for achieving throughput-optimal schedules. 5.2
Inter-node measurements
For inter-node communication, we leverage the CPU Proxy Thread to capture performance metrics. Unlike the highly parallelized execution model of GPU TBs, the Proxy centralizes the management of network operations for a given connection. This significantly simplifies the measurement logic and effectively eliminates the need for atomic operations. Despite these architectural differences, we reuse the same Measurements Accumulator and Measurements Buffer data structures, as well as the same multi-channel measurement algorithm. The primary distinction is that, in practice, a single communication channel is often sufficient to saturate the available network bandwidth. The measurement logic is embedded within the Proxy’s Finite State Machine (FSM), which manages the life-cycle of network chunks in three stages: Posted–a transfer slot is available, Transmitted–the network operation, e.g., isend, has been triggered, and Done–transmission is confirmed as complete. To calculate the effective bandwidth, we isolate network injection and transit time by measuring the interval between Transmitted and Done states. To ensure accuracy, MCCL models this effective inter-node throughput as the minimum of the local buffer write rate and the network travel rate (i.e., local-to-remote buffer transfer), thereby accounting for potential bottlenecks across the entire data path, i.e., High Bandwidth Memory (HBM), PCIe bus, or network. 6
Experimental Results
We validate MCCL at three different levels. First, we evaluate our optimization algorithms against state-of-the-art competitors in terms of solving time and schedule performance when optimizing a single collective in offline settings. Second, we conduct a closed-loop evaluation on a prototype of MCCL to assess the overhead and accuracy of the measurement module, as well as the online rescheduling mechanism. Finally, we run large-scale simulations of real-life training workloads to quantify end-to-end advantages of MCCL online optimization in terms of training duration. 6.1
Optimization Algorithm
We evaluate solving time and schedule performance against TECCL and vanilla ForestColl, varying payload and group size. For solving-time experiments, we use a 32-core server with a commercial solver, TECCL code [41], and our C++ re-implementation of the released ForestColl [11]. We evaluate all synthesizers with up to ten chunks and report each time the best-performing configuration.6 To evaluate schedule performance, we run simulations on a modified version of SimAI [40, 44] that supports custom CCL execution.7 We consider HPN rail optimized topologies [33], featuring 8 GPUs per host, each with a dedicated NIC. Intra-node communication relies on an NVSwitch (2880 Gbps, 25 ns delay), while inter-node traffic traverses Top-of-Rack (ToR) switches (400 Gbps, 0.5 µs delay). The topology is composed of multiple segments, each containing 8 ToR switches and up to 32 hosts (256 GPUs). Aggregation switches interconnect these segments in a single-plane configuration via 400 Gbps links. In the following, we denote by S×H×N a topology of S segments, H hosts per segment, and N GPUs per host. 5 In NCCL kernel, the reduceCopy symbol is immutable; for non-reduction operations it does not incur arithmetic overhead. 6 Due to prohibitive solving times, we limit TECCL to a single chunk (two when specified) when solving AllGather
collectives; for each run we report the fastest of its Optimal and Heuristic variants. 7 https://github.com/NetMeasurements-Team/SimAI.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:14
Ferrero et al.
101 100 10 1 16
32
64
128
256
Number of GPUs
512
(a) AllGather, Fail 1.
102 101 100 10 1
16
32
64
128
256
Number of GPUs
102 101 100 10 1
MCCL (CG-based) TECCL Initial Fail1 Fail2 Fail3
103 102 101 100 10−1
512
(b) AllGather, Fail 2.
104
TECCL (# ch 1) ForestColl MCCL (ForestColl-warm)
Solving Time [s]
102
103
TECCL (# ch 1) TECCL (# ch 2) ForestColl MCCL (ForestColl-warm)
103
Solving Time [s]
TECCL (# ch 1) ForestColl MCCL (ForestColl-warm)
Solving Time [s]
Solving Time [s]
103
16
32
64
128
256
Number of GPUs
16
512
(c) AllGather, Fail 3.
32
64
128
256
Number of GPUs
512
(d) AllToAll, Fails 1-3.
Fig. 7. Optimization solving time comparison for initial schedules and re-optimized one in case of failure. TE-CCL (#ch = 1)
NCCL
No reopt
Reopt
5 3 1
Failure: na Topology:
MCCL (CG-based)
Algo Bandwidth ratio against NCCL
Algo Bandwidth ratio against NCCL
MCCL (ForestColl-warm)
7
1 2 1x2x8
3
na 1 2 3 1x4x8
na 1 2 3 1x8x8
na 1 2 3 1x16x8
na 1 2 3 1x32x8
(a) AllGather performance against NCCL.
TE-CCL
NCCL
No reopt
Reopt
7 5 3 1
Failure: na Topology:
1 2 1x2x8
3
na 1 2 3 1x4x8
na 1 2 3 1x8x8
na 1 2 3 1x16x8
na 1 2 3 1x32x8
(b) AllToAll performance against NCCL.
Fig. 8. Schedule performance for AllGather (a), and AllToAll (b).
Failures. We define three different failures to evaluate our approach under diverse conditions. Failure 1 (Fail1) affects the NVSwitch of the first host; we simulate that 13 of the 18 lanes connecting GPU 0 fail, and the intra-node bandwidth drops from 2880 Gbps to 800 Gbps. In Failure 2 (Fail2), we reduce the capacity of the link connecting GPU 0 to its ToR switch from 400 Gbps to 50 Gbps. Failure 3 (Fail3) models a scenario where GPU 0 fails and is replaced by a backup GPU in a different rack, incurring extra 1 µs of ToR switch latency. To accommodate the traffic distribution, where the bulk of the load remains with the original node, the backup is provisioned with a dedicated 50 Gbps bandwidth to the faulty node, while communications to the wider data center share 100 Gbps. Solving Time. We evaluate the scalability of MCCL’s synthesizers against TECCL [23] and vanilla ForestColl [48] varying the cluster size. Figure 7 illustrates the solving times for AllGather (Figures 7a–7c) and AllToAll (Figure 7d) under the previously described failures. Across all configurations, TECCL proves computationally intractable even for small topologies (up to 103 s for a 16-GPU AllToAll) as also reported in [38, 48]. In contrast, ForestColl and our CG-based algorithm scale significantly better, computing schedules for collectives of up to 512-GPUs. Regarding AllGather collectives, our version of ForestColl enhanced with warm-start is up to 2.58× and 2.80× faster than the base algorithm for Failures 1 and 2, for which the underlying graph structure is highly reusable. Warm-start yields instead no noticeable improvement for Failure 3, which is significantly more disruptive than Failures 1 and 2 and requires recomputation of a great part of the graph. Finally, Figure 7d shows that our CG-based algorithm greatly benefits from the warm-start mechanism. It re-optimizes AllToAll collectives in a fraction of the initial solving time (up to 18.3× faster) and provides solutions within tens of seconds for 512-GPUs collectives. For this collective family, warm-start is up to 17.8× faster than recomputing from scratch (result not shown). Schedule Performance. To quantify the throughput gains offered by MCCL, we conducted offline simulations on our extended version of SimAI with the NS-3 network backend. Using a 128 MB tensor size per source, we measured the Algorithm Bandwidth [27] speedup relative to NCCL. As detailed in Section 4.2, a rounding phase is required for the AllToAll collective, introducing a maximum error of 2.13 % in our experiments with respect to the optimal. TECCL time-expanded formulation enforces link capacities per epoch, making this conversion inherently harder than our column-generation rounding. This accounts for a gap with respect to MCCL even with no failures, despite using the same chunk budget. Results on MCCL rounding error are reported in Appendix F. Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
Intra-node [Tbps]
3.0 200
2.0
150
1.0 Baseline Intra 1MB Intra 128KB Inter
100 50 0
1
2
4
8
16
32
0.5 0.2
Number of Channels
(a) Throughput overhead.
Relative Error [%]
Inter-node [Gbps]
MCCL: Measurement-based Collective Communication Library
55:15
2.0 Inter-node Intra-node
Component
𝑀𝑎𝑐𝑐
𝑀𝑐𝑎𝑐ℎ𝑒
𝑀𝑏𝑢 𝑓
1.0
Location
GPU Global
GPU Shared
Host DRAM
0.5
Size Formula
1.5
0.0
1
2
3
4
Number of Flows
5
(b) Measurement error.
Fig. 9. Performance of the measurement module prototype.
Size NGPU=128 SRV=8, TB=1024
𝑆𝑎𝑐𝑐 × 𝑆𝑐𝑎𝑐ℎ𝑒 × 𝑆𝑏𝑢 𝑓 × (𝑁𝐺𝑃𝑈 + 1) 𝑇𝐵 𝑇 𝐵 × 𝑆𝑅𝑉 4KB
24KB
256KB
Table 2. MCCL Memory Overhead.
Figure 8 shows the performance of AllToAll and AllGather under the failure scenarios defined above: intra-node degradation, inter-node bottleneck, and GPU replacement. Results highlight the brittleness of static approaches, i.e., “No reopt”. When physical network conditions deviate from pre-computed topology assumptions, their performance collapses to baseline levels (≈1.0×). In contrast, MCCL adapts effectively to varying link capacities. For AllGather (cf. Figure 8a), MCCL achieves speedups of up to 7.33× over the baseline in the presence of gray failures. For AllToAll (cf. Figure 8b), MCCL significantly outperforms static synthesizers with speedups of up to 7.12×. It is important to note that MCCL optimizes for computational efficiency. As detailed in Section 3.2, the system employs a cut-based filtering mechanism. For this reason, when failures occur on links outside the critical cut of the active collective, or when a cut is uniformly scaled down, the existing schedule remains throughput-optimal. In these cases, MCCL correctly identifies that the slack is minimized and suppresses re-optimization, thereby conserving precious computational resources. 6.2
MCCL Prototype
We evaluate a prototype implementation of MCCL that builds on MSCCL [25]. The prototype runs on two hosts, each featuring four Nvidia H200 GPUs connected in a rail-optimized topology with Nvidia ConnectX-7 NICs (200 Gbps) using GPU-Direct (details in Table 3). 6.2.1 Measurement Module. We first evaluate the feasibility and efficiency of the MCCL measurement module. Our evaluation focuses on two sets of metrics: (1) throughput and memory overhead; and (2) measurement accuracy. To quantify these metrics, we design targeted benchmarks. Overhead. We evaluate throughput overhead by comparing MCCL direct point-to-point throughput with and without our module, varying the reduceCopy chunk size. This setup represents a worstcase stress test: data is immediately available, rendering waitPeer latency zero and fully exposing measurement costs. Figure 9a illustrates the effective throughput for both inter-node and intranode transfers as we vary the number of channels, demonstrating that inter-node overhead is negligible because the CPU Proxy manages telemetry without contending for GPU resources. Intra-node overhead peaks at ≈ 13 % for low channel counts (1–2) and small chunks (128 kB) due to granular synchronization, i.e., postPeerFence, and atomic operations. However, this drops to ≈ 2 % at NVLink saturation (16 channels) and to < 1 % with 32 channels (default in H200), confirming the module is non-intrusive for its target operational point. To preserve capacity for model parameters, MCCL minimizes memory overhead using the threetiered hierarchy from Section 5.1. The total memory footprint comprises three distinct data structures: the Accumulator in GPU Global Memory (𝑀𝑎𝑐𝑐 ), the Cache in GPU Shared Memory (𝑀𝑐𝑎𝑐ℎ𝑒 ), and the Buffer in Host-Mapped Memory (𝑀𝑏𝑢 𝑓 ). The single-entry sizes for these structures are 𝑆𝑎𝑐𝑐 = 32 B, 𝑆𝑐𝑎𝑐ℎ𝑒 = 24 B, and 𝑆𝑏𝑢 𝑓 = 32 B, respectively. 𝑀𝑎𝑐𝑐 scales with communicating peers, while 𝑀𝑐𝑎𝑐ℎ𝑒 and 𝑀𝑏𝑢 𝑓 scale with thread blocks. As shown in Table 2, even with 128 GPUs and 1024 TBs, the aggregate memory overhead remains negligible, particularly given the low concurrency of collectives during training. Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:16
Ferrero et al.
NV18, ∼900 GB/s/GPU ConnectX-7 Inter-node NIC 1 NIC/GPU, PCIe 5.0 ×16
0 total reaction time=78.2ms
1.46×
60
adaptation time=24.7ms
50
200 Gbps IB
Out-of-band NIC
Mellanox ConnectX-5
40
1.47×
30 20
Out-of-band link rate 100 Gbps Ethernet
Table 3. Prototype testbed.
0
25
50
125
150
44.76
ring baseline
optimized
Inter-node link rate
59.72
schedule activation
NVLink 4.0 (NVSwitch) Intra-node link
53%
74.02 70
failure detected
NVIDIA H200
link failure
2 hosts × 4 GPUs
GPUs
Algo Bandwidth (GB/s)
Servers
stale schedule 75
100
1.96×
re-optimized 175
200
5
18% 10
15
23%
adaptation time composition (ms)
20
13.1 (53%) Synthesizer (re-plan) Schedule dispatch 0.00827 (0.033%) Scan 1.09 (4.4%) Parse 0.261 (1.1%) 4.48 (18%) Load algorithm 0.01 (0.04%) CUDA misc. 0.059 (0.24%) Connection setup 5.74 (23%) OOB AllGather 10−4
Time (ms)
10−3
10−2
10−1
100
101
102
per-phase duration (ms)
(a) Algo BW before/after failure. (b) Breakdown of adaptation time Fig. 10. Prototype evaluation of MCCL.
Accuracy. For the accuracy assessment, we compare the telemetry obtained from MCCL against application-level ground truth (pytorch) by varying the number of concurrent flows to emulate network contention. Figure 9b shows the relative error between the MCCL-reported throughput and the actual available bandwidth. The system demonstrates low estimation error for both inter and intra-node communication, maintaining a consistently low error rate (< 1.2 %). This accuracy allows the Controller to distinguish between healthy connections and gray failures, validating the module’s suitability for driving the online optimization loop. 6.2.2 Hot-Swap Mechanism. We implement the hot-swap mechanism building on top of MSCCL for on-demand connection and dynamic algorithm loading [25]. When the controller issues a new schedule version, the system delegates the transition to a dedicated background thread. This is responsible for asynchronously loading the new algorithmic routing and establishing the necessary peer-to-peer connections without interrupting ongoing communications. If any, existing connections are reused, matching NCCL’s default behavior [29]. Once setup completes, the background thread briefly pauses the issuance of new collectives on the communicator and executes an out-of-band (OOB) AllGather, adapted from MCCS [47]. Each GPU reports the latest version among its successfully loaded schedules and the sequence number of its last-issued collective operation. The minimum schedule version ensures that the selected schedule is available on every GPU, while the maximum sequence number 𝐾 defines the schedule transition point: all operations up to 𝐾 use the old schedule, and subsequent collective operations use the new one. Since NCCL preserves operation order within a communicator and serializes their device execution [28, 30], the two schedules never execute concurrently, and no draining of in-flight operations is required. Swaps are scoped independently to each communicator and do not interfere with one another. Figure 10a illustrates the reaction of the system during an inter-node link failure, which halves the available bandwidth between GPU ranks 0 and 4 (the first GPU of each node) to 100 Gbps. We evaluate a 16 MB per-GPU AllGather, matching the per-GPU input tensor size of the dominant collective in Llama 405B. Under the stale schedule, the degradation reduces algorithm bandwidth [27] from 74.02 GB/s to 44.76 GB/s. The controller detects the failure in 53.1 ms; this window is primarily spent gathering sufficient degraded telemetry samples to prevent false positives from transient anomalies (we use a conservative smoothing factor 𝛼 = 0.012). The controller then runs the synthesizer and dispatches the new schedule to the executors, whose Online Rescheduler activates it 24.7 ms after detection. Meanwhile, collectives continue running on the stale schedule: all in-flight operations (here, a single AllGather) complete on it, while the next submitted collective switches to the new schedule, starting execution 0.4 ms later for a total reaction time of 78.2 ms. Once executed, algorithm bandwidth recovers to 59.72 GB/s without interrupting training execution. Figure 10b breaks down the adaptation time of 24.7 ms: 13.1 ms is spent in the synthesizer invoked by the Schedule Optimizer, while the hot-swap takes 11.6 ms, mainly for OOB synchronization (5.74 ms) and algorithm loading (4.48 ms). As node count grows, re-optimization increasingly Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
55:17
Llama 405B DeepSeek 671B AllGather ReduceSc. AllReduce AllGather ReduceSc. AllToAll Group (#GPUs) DP (64) TP (16) DP (64) TP (16) TP (16) DP (1024) DP_EP (16) EP (64) DP (1024) DP_EP (16) EP (64) EP (64) Size 2.6 GB 256 MB 5.3 GB 256 MB 256 MB 1.2 GB 0.9 GB 32 KB 2.4 GB 1.9 GB 448 MB 231 MB Frequency 16 524K 16 524K 16K 1 64 768 1 64 2304 768 Training time 0.167% 18.0% 0.555% 15.6% 7.36e-4% 0.136% 4.11% 0.141% 0.266% 8.22% 44.5% 7.66% Metric
200
0
128
256
512
1024
2048
600 400 200 0
Number of GPUs
(a) Llama405B, Fail 1.
NCCL MCCL
128
256
512
1024
2048
Number of GPUs
(b) Llama405B, Fail 2.
100
Computation Communication
75
NCCL MCCL
50 25 0
128
256
512
1024
Number of GPUs
2048
100
Training time on one batch (s)
NCCL MCCL
Computation Communication
800
Training time on one batch (s)
Computation Communication
400
Training time on one batch (s)
Training time on one batch (s)
Table 4. Llama 405B and DeepSeek 671B (batch size 16K) collectives for one pipeline stage with 1024 GPUs. Computation Communication
75
NCCL MCCL
50 25 0
128
256
512
1024
2048
Number of GPUs
(c) DeepSeek671B, Fail 2. (d) DeepSeek671B, Fail 3.
Fig. 11. Training time for Llama405B (a),(b) and DeepSeek671B(c),(d) with different failures profiles.
dominates this latency (cf. Section 6.1), making the swap overhead comparatively small. Moreover, hot-swap operations run on dedicated threads, remaining off the critical execution path; only the OOB AllGather pauses the issuing of new collectives for 5.74 ms. In practice, for pipelined large-scale training workloads this brief CPU-side pause overlaps with ongoing GPU execution. 6.3
End-to-End Validation
To validate the end-to-end benefits of our approach, we run large-scale simulations in SimAI. We use an HPN topology with segments of 128 GPUs each (16 hosts) and scale the cluster from 128 to 2048 GPUs; we apply the same three failure scenarios as in Section 6.1. Because detection parameters (Γ, 𝛼) are inherently cluster-specific, calibrating them to our simulation offers little generalizable insight. We therefore decouple condition detection from schedule adaptation, evaluating MCCL’s resynthesis and failover in isolation under prompt failure notifications, in regimes where adaptation proceeds without schedule thrashing. As a baseline, we compare against plain NCCL. We exclude TECCL due to impractical runtime solving time, and ForestColl as it cannot optimize AllToAll collectives, while it delivers the same schedule quality as MCCL for AllGather collectives. We design two sets of workloads that mimic the training of Llama3.1 with 405B parameters and DeepSeek-v3 with 671B parameters and 256 experts [1, 21]. We configure a pipeline parallelism of 16 and only simulate one pipeline stage as traffic between stages is point-to-point. Therefore, our simulations with 128–2048 GPUs correspond to training the full model on 2048–32768 GPUs. We execute a forward and backward pass on a batch of 16K tokens. Table 4 details collective communications of both workloads, each with its share over the total training time. In our settings, collective communications account for ≈ 34 % of Llama’s training time, and for ≈ 65 % of DeepSeek’s.8 Figure 11 reports the training time for Llama and DeepSeek under the failures described above. The results of all failure profiles are reported in Appendix E. When no failures are applied, MCCL provides no advantages over NCCL (cf. Appendix E); this is because this topology has, ring-wise, a perfect ratio between inter- and intra-node bandwidth. Under failure conditions, MCCL significantly reduces training time, with peaks of 2.85× and 4.99× under failure 2 for Llama and DeepSeek, respectively. Finally, MCCL scales effectively with increasing GPU counts, yielding similar relative gains across different cluster sizes.
8 In our end-to-end experiments, we do not optimize the 1024-GPU AllGather in DeepSeek, as it accounts for only
0.136 % of the total execution time, making the associated synthesizer overhead unjustified in practical settings. Moreover, ReduceScatter collectives operate at the host level, as the simulator does not support in-network reduction.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:18
7
Ferrero et al.
Related Work
Offline schedule synthesis. A large body of work synthesizes collective schedules offline. TACCL [36], TE-CCL [23], and ForestColl [48] build topology-aware schedules from communication sketches, traffic-engineering formulations, and spanning trees, respectively, outperforming vendor-provided collectives. However, they rely on static, offline profiling of the topology at peak capacity and cannot promptly react to link degradation, multi-tenant interference, or gray failures. The concurrent work OptCCL [37] synthesizes provably optimal schedules from a multi-commodity flow LP solved via Dantzig–Wolfe decomposition, with an AllToAll formulation close to ours (Section 4.2). OptCCL scales the decomposition by exploiting topology symmetry, which gray failures inherently break, forcing a fallback to a cold start. MCCL instead exploits the locality of re-optimization, reducing re-synthesis time without relying on symmetry. The two approaches are complementary; moreover, OptCCL neither detects degradations nor redeploys schedules at runtime. Runtime adaptation. A second line of work adapts at runtime, but along axes orthogonal to ours. FAST [20] schedules MoE’s skewed, dynamic AllToAllv online, rebalancing over the fast intra-server fabric so that every NIC sends equal volume across the slow inter-server links. Its adaptation tracks workload skew, not network state: it models the cluster as two uniform, equalcapacity bandwidth tiers, so its balancing breaks under link degradation, asymmetric capacity, or gray failures. At the inter-job level, Crux [4] and MCCS [47] arbitrate the network shared by co-located jobs: Crux prioritizes flows by GPU intensity (compute-to-communication ratio), routing GPU-heavy jobs away from contended links, while MCCS, a provider-managed service, reorders ring ranks and pins flows to paths to preserve fairness and reduce congestion. Both re-optimize only at job arrival/exit or on external triggers, leaving collective schedules unchanged and thus exposed to gray failures. The concurrent work Theseus [8] hot-swaps schedules at runtime according to user policies, but neither synthesizes schedules nor measures the network: it relies on slow MILP-based synthesizers or precomputed candidates, and on NIC statistics that miss intra-host degradations (e.g., NVLink, PCIe). MCCL instead measures each GPU-to-GPU path and re-synthesizes within tens of seconds, only when the bottleneck cut loses saturation. Execution backends. A final line of work provides the execution backends. NCCL and RCCL ship static, built-in algorithms, while MSCCL [6], MSCCL++ [19], and ResCCL [22] add DSL-defined schedules, portable low-level primitives, and resource-efficient thread-block scheduling, respectively. They improve expressiveness, portability, and efficiency, but still execute static, offline-generated schedules and cannot adapt to link variability, congestion, or gray failures. 8
Conclusion
This paper introduced a Measurement-based Collective Communication Library (MCCL) that shifts the paradigm from “optimize-once” to “continuously-adaptive”. By leveraging a controller-executor architecture, MCCL integrates lightweight, passive, high-fidelity GPU telemetry directly into the optimization loop without disrupting the training workload. Our evaluation demonstrates that MCCL re-optimization algorithms rapidly synthesize schedules adapted to detected bottlenecks, improving solving times by up to 2.80× for AllGather and by up to 17.8× for AllToAll compared to static synthesizers. The MCCL prototype demonstrates the feasibility of the complete closed loop, with low measurement overhead (< 2 %), high accuracy (< 1.2 % error), and fast schedule swaps (≈ 12 ms). Finally, large-scale simulations of LLM training workloads show that MCCL reduces training time by up to 4.99× under gray failures compared to static schedules. This work does not raise any ethical issues.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
55:19
References [1] Grattafiori Aaron, Dubey Abhimanyu, Jauhri Abhinav, and et al. The llama 3 herd of models, 2024. [2] Sobhani Ashkan, Sadrhaghighi Sogand, and Chu Xingjun. Prime: Pseudo-random integrated multi-part entropy for adaptive packet spraying in ai/ml data centers, 2025. [3] Zixian Cai, Zhengyang Liu, Saeed Maleki, Madanlal Musuvathi, Todd Mytkowicz, Jacob Nelson, and Olli Saarikivi. Synthesizing optimal collective algorithms. In Proceedings of the 26th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, PPoPP ’21, page 62–75, New York, NY, USA, 2021. Association for Computing Machinery. [4] Jiamin Cao, Yu Guan, Kun Qian, Jiaqi Gao, Wencong Xiao, Jianbo Dong, Binzhang Fu, Dennis Cai, and Ennan Zhai. Crux: Gpu-efficient communication scheduling for deep learning training. In Proceedings of the ACM SIGCOMM 2024 Conference, pages 1–15, 2024. [5] Jiamin Cao, Shangfeng Shi, Jiaqi Gao, Weisen Liu, Yifan Yang, Yichi Xu, Zhilong Zheng, Yu Guan, Kun Qian, Ying Liu, Mingwei Xu, Tianshu Wang, Ning Wang, Jianbo Dong, Binzhang Fu, Dennis Cai, and Ennan Zhai. Syccl: Exploiting symmetry for efficient collective communication scheduling. In Proceedings of the ACM SIGCOMM 2025 Conference, SIGCOMM ’25, page 645–662, New York, NY, USA, 2025. Association for Computing Machinery. [6] Meghan Cowan, Saeed Maleki, Madanlal Musuvathi, Olli Saarikivi, and Yifan Xiong. Mscclang: Microsoft collective communication language. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, ASPLOS 2023, page 502–514, New York, NY, USA, 2023. Association for Computing Machinery. [7] George B. Dantzig and Philip Wolfe. Decomposition principle for linear programs. Operations Research, 8(1):101–111, 1960. [8] Rui Ding, Xiandong Lu, Jiajun Wang, Xunpeng Liu, Feiyang Wang, Xuran Hao, Houyuan Zhu, Anyi Xu, Sinuo Cao, Haifeng Sun, Qun Huang, Jiamin Cao, and Jiaqi Gao. Theseus: Runtime-adaptive gpu collective communication with hot-swappable schedules. In Proceedings of the ACM SIGCOMM 2026 Conference, SIGCOMM ’26, page 222–241, New York, NY, USA, 2026. Association for Computing Machinery. [9] Gen Dong, Yu Hua, Yongle Zhang, Zhangyu Chen, and Menglei Chen. Understanding and detecting fail-slow hardware failure bugs in cloud systems. USENIX ATC ’25, USA, 2025. USENIX Association. [10] Patel Dylan and Nishball Daniel. 100,000 h100 clusters: Power, network topology, ethernet vs infiniband, reliability, failures, checkpointing. https://newsletter.semianalysis.com/p/100000-h100-clusters-power-network, 2024. [11] Forestcoll github. https://github.com/liangyuRain/ForestColl, 2025. [12] Comanici Gheorghe, Bieber Eric, Schaekermann Mike, and et al. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities, 2025. [13] M. Grötschel, L. Lovász, and A. Schrijver. The ellipsoid method and its consequences in combinatorial optimization. Combinatorica, 1:169–197, 1981. [14] Haryadi S. Gunawi, Riza O. Suminto, Russell Sears, Casey Golliher, Swaminathan Sundararaman, Xing Lin, Tim Emami, Weiguang Sheng, Nematollah Bidokhti, Caitie McCaffrey, Deepthi Srinivasan, Biswaranjan Panda, Andrew Baptist, Gary Grider, Parks M. Fields, Kevin Harms, Robert B. Ross, Andree Jacobson, Robert Ricci, Kirk Webb, Peter Alvaro, H. Birali Runesha, Mingzhe Hao, and Huaicheng Li. Fail-slow at scale: Evidence of hardware performance faults in large production systems. ACM Transactions on Storage, 14(3):1–26, August 2018. [15] Huawei Collective Communication Library (HCCL). https://gitee.com/ascend/cann-hccl, 2026. [16] Zhiyi Hu, Siyuan Shen, Tommaso Bonato, Sylvain Jeaugey, Cedell Alexander, Eric Spada, James Dinan, Jeff Hammond, and Torsten Hoefler. Demystifying NCCL: An In-depth Analysis of GPU Communication Protocols and Algorithms. Aug. 2025. [17] Peng Huang, Chuanxiong Guo, Lidong Zhou, Jacob R. Lorch, Yingnong Dang, Murali Chintalapati, and Randolph Yao. Gray failure: The achilles’ heel of cloud-scale systems. HotOS ’17, page 150–155, New York, NY, USA, 2017. Association for Computing Machinery. [18] Nicolas Huin, Jérémie Leguay, Sébastien Martin, and Paolo Medagliani. Routing and slot allocation in 5g hard slicing. Computer Communications, 201:72–90, 2023. [19] Changho Hwang, Peng Cheng, Roshan Dathathri, Abhinav Jangda, Saeed Maleki, Madan Musuvathi, Olli Saarikivi, Aashaka Shah, Ziyue Yang, Binyang Li, Caio Rocha, Qinghua Zhou, Mahdieh Ghazimirsaeed, Sreevatsa Anantharamu, and Jithin Jose. Msccl++: Rethinking gpu communication abstractions for ai inference. In Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, page 1201–1215. ACM, March 2026. [20] Yiran Lei, Dongjoo Lee, Liangyu Zhao, Daniar Kurniawan, Chanmyeong Kim, Heetaek Jeong, Changsu Kim, Hyeonseong Choi, Liangcheng Yu, Arvind Krishnamurthy, Justine Sherry, and Eriko Nurvitadhi. Fast: An efficient scheduler for all-to-all gpu communication, 2026.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:20
Ferrero et al.
[21] Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, et al. Deepseek-v3 technical report. arXiv preprint arXiv:2412.19437, 2024. [22] Tongrui Liu, Chenyang Hei, Fuliang Li, Chengxi Gao, Jiamin Cao, Tianshu Wang, Ennan Zhai, and Xingwei Wang. Resccl: Resource-efficient scheduling for collective communication. In Proceedings of the ACM SIGCOMM 2025 Conference, pages 55–70, 2025. [23] Xuting Liu, Behnaz Arzani, Siva Kesava Reddy Kakarla, Liangyu Zhao, Vincent Liu, Miguel Castro, Srikanth Kandula, and Luke Marshall. Rethinking machine learning collective communication as a multi-commodity flow problem. In Proceedings of the ACM SIGCOMM 2024 Conference, page 16–37, Sydney NSW Australia, August 2024. ACM. [24] Edgar Costa Molero, Stefano Vissicchio, and Laurent Vanbever. Fast in-network gray failure detection for isps. In Proceedings of the ACM SIGCOMM 2022 Conference, SIGCOMM ’22, page 677–692, New York, NY, USA, 2022. Association for Computing Machinery. [25] Microsoft collective communication library (msccl). https://github.com/microsoft/msccl, last updated 2023. [26] Nvidia collective communication library. https://github.com/NVIDIA/nccl, 2026. [27] Algorithm bandwidth. https://github.com/NVIDIA/nccl-tests/blob/master/doc/PERFORMANCE.md#algorithmbandwidth, 2026. [28] NVIDIA. NCCL source code: kernel launch path (enqueue.cc), per-communicator device stream. https://github.com/ NVIDIA/nccl/blob/v2.28.9-1/src/enqueue.cc. Accessed: 2026-09. [29] NVIDIA. NCCL user guide 2.28.9: Environment variables – NCCL_RUNTIME_CONNECT. https://docs.nvidia.com/ deeplearning/nccl/archives/nccl_2289/user-guide/docs/env.html#nccl-runtime-connect. Accessed: 2026-09. [30] NVIDIA. NCCL user guide 2.28.9: Group calls – group operation ordering semantics. https://docs.nvidia.com/ deeplearning/nccl/archives/nccl_2289/user-guide/docs/usage/groups.html#group-operation-ordering-semantics. Accessed: 2026-09. [31] Intel OneAPI Collective Communication Library. https://github.com/uxlfoundation/oneCCL, 2026. [32] Leon Poutievski, Omid Mashayekhi, Joon Ong, and et al. Jupiter evolving: transforming google’s datacenter network via optical circuit switches and software-defined networking. In Proceedings of the ACM SIGCOMM 2022 Conference, SIGCOMM ’22, page 66–85, New York, NY, USA, 2022. Association for Computing Machinery. [33] Kun Qian, Yongqing Xi, Jiamin Cao, Jiaqi Gao, Yichi Xu, Yu Guan, Binzhang Fu, Xuemei Shi, Fangbo Zhu, Rui Miao, Chao Wang, Peng Wang, Pengcheng Zhang, Xianlong Zeng, Eddie Ruan, Zhiping Yao, Ennan Zhai, and Dennis Cai. Alibaba hpn: A data center network for large language model training. In Proceedings of the ACM SIGCOMM 2024 Conference, ACM SIGCOMM ’24, page 691–706, New York, NY, USA, 2024. Association for Computing Machinery. [34] Saeed Rashidi, William Won, Sudarshan Srinivasan, Srinivas Sridharan, and Tushar Krishna. Themis: a network bandwidth-aware collective scheduling policy for distributed training of dl models. In Proceedings of the 49th Annual International Symposium on Computer Architecture, ISCA ’22, page 581–596, New York, NY, USA, 2022. Association for Computing Machinery. [35] Amd rocm collective communication library. https://github.com/ROCm/rccl, 2026. [36] Aashaka Shah, Vijay Chidambaram, Meghan Cowan, Saeed Maleki, Madan Musuvathi, Todd Mytkowicz, Jacob Nelson, Olli Saarikivi, and Rachee Singh. TACCL: Guiding collective algorithm synthesis using communication sketches. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23), pages 593–612, Boston, MA, April 2023. USENIX Association. [37] Richard Shapley, Rachit Agarwal, and David Shmoys. Optccl: Scalable synthesis of optimal collective communication algorithms. In Proceedings of the ACM SIGCOMM 2026 Conference, SIGCOMM ’26, page 177–189, New York, NY, USA, 2026. Association for Computing Machinery. [38] Richard Shapley, Rachit Agarwal, and David Shmoys. OptCCL: Scalable synthesis of optimal collective communication algorithms. Technical report, GitHub / ML-Collectives, 2026. https://github.com/ml-collectives/optccl/blob/main/optccltechreport.pdf. [39] In-Network Computing with Nvidia SHARP. https://resources.nvidia.com/en-us-accelerated-networking-resourcelibrary/network-computing-nvidia-sharp. [40] Alibaba cloud - simai. https://github.com/aliyun/SimAI, last updated 2026. [41] Teccl github. https://github.com/microsoft/TE-CCL, 2024. [42] Bonato Tommaso, Kabbani Abdul, Ghalayini Ahmad, Papamichael Michael, Dohadwala Mohammad, Gianinazzi Lukas, Khalilov Mikhail, Achermann Elias, De Sensi Daniele, and Hoefler Torsten. Reps: Recycled entropy packet spraying for adaptive load balancing and failure mitigation, 2025. [43] Guanhua Wang, Shivaram Venkataraman, Amar Phanishayee, Nikhil Devanur, Jorgen Thelin, and Ion Stoica. Blink: Fast and generic collectives for distributed ml. In Proceedings of Machine Learning and Systems, volume 2, page 172–186, 2020. [44] Xizheng Wang, Qingxu Li, Yichi Xu, Gang Lu, Dan Li, Li Chen, Heyang Zhou, Linkang Zheng, Sen Zhang, Yikai Zhu, Yang Liu, Pengcheng Zhang, Kun Qian, Kunling He, Jiaqi Gao, Ennan Zhai, Dennis Cai, and Binzhang Fu. SimAI:
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
55:21
Unifying architecture design and performance tuning for Large-Scale large language model training with scalability and precision. pages 541–558, April 2025. [45] Adam Weingram, Yuke Li, Hao Qi, Darren Ng, Liuyao Dai, and Xiaoyi Lu. xccl: A survey of industry-led collective communication libraries for deep learning. Journal of Computer Science and Technology, 38(1):166–195, February 2023. [46] Tianyuan Wu, Wei Wang, Yinghao Yu, Siran Yang, Wenchao Wu, Qinkai Duan, Guodong Yang, Jiamang Wang, Lin Qu, and Liping Zhang. Greyhound: hunting fail-slows in hybrid-parallel training at scale. In Proceedings of the 2025 USENIX Conference on Usenix Annual Technical Conference, USENIX ATC ’25, USA, 2025. USENIX Association. [47] Yongji Wu, Yechen Xu, Jingrong Chen, Zhaodong Wang, Ying Zhang, Matthew Lentz, and Danyang Zhuo. Mccs: A service-based approach to collective communication for multi-tenant cloud. In Proceedings of the ACM SIGCOMM 2024 Conference, page 679–690, Sydney NSW Australia, August 2024. ACM. [48] Liangyu Zhao, Saeed Maleki, Yuanhong Wang, Zezhou Wang, Ziyue Yang, Hossein Pourreza, and Arvind Krishnamurthy. Forestcoll: Throughput-optimal collective communications on heterogeneous network fabrics. https://arxiv.org/abs/ 2402.06787, 2025.
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:22
A
Ferrero et al.
Rail-optimized Topology
Figure 12 details the rail-optimized topology used in our evaluation, specifically highlighting a single segment consisting of dual servers with an 8-GPU configuration. B
Measurement Matrix
Figure 13 visualizes the passive measurement data structure described in Section 5. Each GPU fills its corresponding row using RDMA writes during collective execution. The diagonal represents highbandwidth intra-node communication (NVLink), while off-diagonal blocks represent inter-node communication, providing a real-time heatmap of cluster network health.
…
Intra-node switch
1
2
3
4
NODE 1 GPU 2 GPU 3
0
1 2 3
GPU 4
4
Fig. 12. Rail Optimized topology showing links between GPU nodes and leaf switches.
C
GPU 1
RDMA Writes
Overlay Topology
…
0
INTRA
Leaf 7
Node N
NIC 0 GPU 0
Intra-node switch
Node 0
NIC 7
…
…
INTRA
GPU 0
NIC 7
Leaf 1
GPU 7
GPU 0
NIC 0
Leaf 0
NODE 0
NVlink (2880 Gbps) Gray failure (50%-12% BW)
GPU 7
Ethernet (400 Gbps) PCIe (not simulated)
Fig. 13. Per collective type, size, and communicator group point-to-point measurements. Darker blocks indicate intranode bandwidth, lighter blocks inter-node connections.
Latency-Aware Switch Removal for AllGather
ForestColl switch removal [48] only optimizes throughput, ignoring topological diameter and often yielding sparse structures (e.g., rings). Thus the tree-generation phase often builds excessively deep trees. We propose a formulation that bounds tree height and reduces communication steps. Overlay to Logical Topology — Given a node with 𝑛 GPUs and one high-speed switch, and being 𝐺𝑖 the subgraph of the 𝑖-th node’s GPUs, switch, and links, switch removal replaces 𝐺𝑖 with a logical topology 𝐺¯𝑖 = (𝑉¯𝑖 , 𝐴¯𝑖 ) where vertices 𝑉¯𝑖 are the node’s GPUs and arcs 𝐴¯𝑖 connect all pairs of GPUs linked by a communication path. Each GPU’s outgoing capacity is split across its logical links. Improved Switch Removal Formulation — We remove one switch at a time. When processing switch 𝑤, 𝐺¯𝑖 =(𝑉¯𝑖 , 𝐴¯𝑖 ) is the local graph on the predecessors 𝛿 − (𝑤) and successors 𝛿 + (𝑤) of 𝑤; its candidate logical links 𝐴¯𝑖 ={(𝑢, 𝑣) : 𝑢∈𝛿 − (𝑤), 𝑣 ∈𝛿 + (𝑤), 𝑢≠𝑣 } join each predecessor to each successor. Each 𝑎 = (𝑢, 𝑣) carries a capacity variable 𝑦𝑎 ≥ 0, and we seek values that reproduce, between predecessors and successors, the connectivity 𝑤 provided. We write 𝑁 = |𝑉¯𝑖 |, 𝑐 𝑎 for physical capacities, and 𝑐𝑢𝑤 (resp. 𝑐 𝑤𝑣 ) for the ingress (resp. egress) capacity of 𝑤. To keep trees shallow, a secondary objective spreads each node’s traffic over many successors. Being 𝛿 + (𝑤) the set of successors of 𝑤, we add a convex, piecewise-linear penalty ℎ𝑢𝑣 whose 𝑘-th piece has slope 𝑘 and whose breakpoints are integer multiples of the width 𝑤𝑢𝑣 =
𝑐𝑢𝑤 ; |𝛿 + (𝑤 ) | − 1
thus 𝑤𝑢𝑣 only depends on 𝑢 and equals the fair per-successor share of 𝑢’s ingress—we round 𝑤𝑢𝑣 down to the nearest integer to keep the constraint coefficients integral. Since the marginal penalty grows with the capacity placed on a single link, concentrating flow costs more than spreading it, biasing the logical topology toward a low-depth star. The throughput objective takes priority, so we combine the two lexicographically with a single big-𝑀 weight: any 𝑀 strictly larger than the penalty’s maximum value suffices. At optimality, each ℎ𝑢𝑣 equals max1≤𝑘 ≤𝐾 {𝑘 𝑦𝑎 −𝑤𝑢𝑣 𝑘 (𝑘2−1) }≤𝐾 𝑦𝑎 , Í with 𝐾=|𝛿 + (𝑤)|−1≤𝑁 −1. Summing over 𝐴¯𝑖 and using the predecessor bounds 𝑣 𝑦𝑢𝑣 ≤ 𝑐𝑢𝑤 , Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
∑︁
ℎ𝑢𝑣 ≤ 𝐾
𝑎=(𝑢,𝑣) ∈𝐴¯𝑖
∑︁
∑︁
𝑦𝑎 ≤ (𝑁 − 1)
𝑎∈𝐴¯𝑖
55:23
𝑐𝑢𝑤 ≤ (𝑁 − 1) 𝑁 𝑐 max < 𝑁 2𝑐 max ,
𝑢 ∈𝛿 − (𝑤)
where 𝑐 max = max𝑎 𝑐 𝑎 . We therefore set 𝑀 = 𝑁 2𝑐 max , so improving throughput by one unit always outweighs any attainable change in the penalty; the penalty only discriminates among throughput-optimal solutions. The switch removal is formulated as follows: max 𝑀
Í
𝑎∈ 𝐴¯𝑖 𝑦𝑎 −
Í
𝑎=(𝑢,𝑣) ∈𝐴¯𝑖 ℎ𝑢𝑣
ℎ𝑢𝑣 ≥ 𝑘 𝑦𝑎 − 𝑤𝑢𝑣 𝑘 (𝑘2−1) ∀𝑎 = (𝑢, 𝑣) ∈ 𝐴¯𝑖 , 𝑘 ∈ {1, . . . , 𝐾 } Í ∀𝑢 ∈ 𝛿 − (𝑤 ), 𝑣: (𝑢,𝑣) ∈𝐴¯𝑖 𝑦𝑢𝑣 ≤ 𝑐𝑢𝑤
(5)
Í
∀𝑣 ∈ 𝛿 + (𝑤 ),
(8)
(6)
Í
∀𝑉 ′ ⊆ 𝑉 ,
(9)
𝑢: (𝑢,𝑣) ∈𝐴¯𝑖 𝑦𝑢𝑣 ≤ 𝑐 𝑤𝑣
𝑎∈𝐴 ¯ ′ 𝑦𝑎 ≥ 𝑀𝑇 − 𝑂𝐹𝑉 ′ 𝑉
𝑦𝑎 , ℎ𝑢𝑣 ≥ 0
(7)
∀𝑎 = (𝑢, 𝑣) ∈ 𝐴¯𝑖 .
(10)
Í
In (5), 𝑀 𝑎 𝑦𝑎 maximizes the total logical capacity installed between the predecessors and Í successors of 𝑤 (primary throughput goal) and − ℎ𝑢𝑣 applies the star-inducing penalty (secondary goal). Constraints (6) define ℎ𝑢𝑣 as the lower envelope of the convex penalty above. Constraints (7)– (8) preserve capacity: links leaving a predecessor 𝑢 carry at most its ingress capacity 𝑐𝑢𝑤 , and links entering a successor 𝑣 at most its egress capacity 𝑐 𝑤𝑣 , so the logical topology is realizable on the fabric. Constraints (9) are the throughput (min-cut) constraints: across every cut 𝑉 ′ ⊆ 𝑉 , the flow must be at least the maximum throughput 𝑀𝑇 , where 𝑂𝐹𝑉 ′ is the flow crossing outside the switch’s logical links and 𝐴𝑉¯ ′ = 𝐴𝑉 ′ ∩ 𝐴¯𝑖 is the logical part of the cut. Finally, (10) enforces non-negativity. The min-cut constraints are exponential in number, so we solve the model by cutting planes: at each iteration we compute, for every destination GPU, the maximum flow from the source under the current 𝑦; if any is below 𝑀𝑇 we add the corresponding cut (9), otherwise the relaxation is optimal. By cutting-plane theory [13], the number of generated constraints is polynomial, 𝑂 (𝑛𝜅 ), in the number of variables 𝑛 (𝜅 constant). Figure 14 shows an example intra-node overlay-to-logical mapping, and Figure 15 illustrates a cut added by the cutting-plane algorithm during switch removal, ensuring the generated trees respect the bandwidth limits identified by the max-flow formulation. GPU 0
GPU 1
Node 2, GPU 1 GPU 1 Node 1, GPU 1
Intra-node switch
GPU 3
GPU 2 Overlay topology GPU 3
GPU 3 Node 3, GPU 3
GPU 1
GPU 1 Node 2, GPU 1
Logical topology
GPU 3
Fig. 14. Overlay to Logical topology.
D
GPU 2 GPU 2
NODE 2
Node 3, GPU 1
GPU 0
NODE 1
OFV’
Intra-node switch
MT
GPU 2 GPU 2
GPU 1 Node 0, GPU 1 Node 0, GPU 3
GPU 3 NODE 3
GPU 3 Node 2, GPU 3
Intra-node switch
Intra-node switch
Node 3, GPU 1
GPU 2
Node 3, GPU 0
GPU 0
Intra-node switch
Node 1, GPU 3
GPU 0
Node 2, GPU 0 NODE 0
GPU 0 Node 2, GPU 0
GPU 0 Node 1, GPU 0
Cut
Node 2, GPU 1 GPU 1 Node 1, GPU 1
Fig. 15. Example cut induced by the max-flow in the switch removal phase, enforcing capacity constraints on the logical topology.
Minimizing AllToAll Steps via Binary Search
The online loop fixes the step bound to 𝑚𝑠 = |𝑉 | − 1 for fast re-synthesis under persistent anomalies, but when computational time allows, it’s possible to minimize steps without sacrificing throughput. Let 𝑀𝑇 be the optimal throughput at 𝑚𝑠 = |𝑉 | −1. We binary-search the smallest bound 𝑚𝑠∗ ≤ |𝑉 | −1 that still attains 𝑀𝑇 : from 𝐿 = 1, 𝑈 = |𝑉 | − 1, each iteration reduces the time-expanded graph 𝐺˜ to 𝑚𝑡𝑒𝑠𝑡 = ⌊(𝐿 + 𝑈 )/2⌋ steps and runs CG. If 𝑀𝑇 is reached we set 𝑈 = 𝑚𝑡𝑒𝑠𝑡 − 1 and cache the schedule; if the model is infeasible or falls short of 𝑀𝑇 we set 𝐿 = 𝑚𝑡𝑒𝑠𝑡 + 1. To accelerate convergence we warm-start via MCCL’s mechanism, injecting columns from prior iterations into the RMP. The search converges logarithmically to the minimal throughput-optimal step count. Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
55:24
E
Ferrero et al.
End-to-End Validation
NCCL MCCL
100 0
128
256
512
1024
Computation Communication
400
NCCL MCCL
200
0
2048
128
Number of GPUs
256
512
1024
600
NCCL MCCL
400 200 0
2048
Computation Communication
800
128
Number of GPUs
(a) No failure
(b) Fail 1 (Switch)
256
512
1024
Training time on one batch (s)
Computation Communication
200
Training time on one batch (s)
300
Training time on one batch (s)
Training time on one batch (s)
Figures 16 and 17 show complete end-to-end training time for Llama 405B and DeepSeek 671B, expanding on the results from Section 6.3 under all failure scenarios: no failure, Failure 1 (Switch), Failure 2 (Link degradation), and Failure 3 (GPU replacement). Computation Communication
4000
NCCL MCCL
2000
0
2048
128
256
512
1024 2048
Number of GPUs
Number of GPUs
(c) Fail 2 (Link)
(d) Fail 3 (GPU)
5 0
128
256
512
1024
2048
NCCL MCCL
10 5 0
128
Number of GPUs
(a) No failure
256
512
1024
Number of GPUs
(b) Fail 1 (Switch)
2048
100
Computation Communication
75
NCCL MCCL
50 25 0
128
256
512
1024
2048
100
Training time on one batch (s)
NCCL MCCL
10
Computation Communication
15
Training time on one batch (s)
Computation Communication
15
Training time on one batch (s)
Training time on one batch (s)
Fig. 16. Llama 405B Training Time. Compare NCCL and MCCL for one pipeline stage (out of 16). Computation Communication
75
NCCL MCCL
50 25 0
128
256
512
1024
Number of GPUs
Number of GPUs
(c) Fail 2 (Link)
(d) Fail 3 (GPU)
2048
Fig. 17. DeepSeek 671B Training Time. Compare NCCL and MCCL for one pipeline stage (out of 16).
F
Rounding
Table 5 shows results for the rounding process. The rounding error is computed between the optimal MILP solution and the rounded LP. We used 60 cores, 1TB of RAM and a time limit of 1 hour for each {topology-#chunks} combination and the #chunks is searched between 1 and 10. 1x2x8 Fail 1 Fail 2 0.6250 4.4531 0.6250 4.4444 0.6250 4.4444 0.00 0.00 1x16x8 Metric Base Fail 1 Fail 2 LP Bound 0.3750 3.3750 3.0000 Rounded Obj 0.3750 3.3750 3.0000 MILP Obj 0.3750 3.3750 3.0000 Error (%) 0.00 0.00 0.00 Metric
Base LP Bound 0.6250 Rounded Obj 0.6250 MILP Obj 0.6250 Error (%) 0.00
1x4x8 Fail 3 Base Fail 1 Fail 2 1.0000 16.6250 16.6250 14.8125 1.0000 16.6250 16.6250 14.7778 1.0000 16.6250 16.6250 14.7778 0.00 0.00 0.00 0.00 1x32x8 Fail 3 Base Fail 1 Fail 2 1.2205 1.6250 1.6250 1.4531 1.1915 1.6250 1.6250 1.2500 1.2174 1.6250 1.6250 -* 2.13 0.00 0.00 -
1x8x8 Fail 3 Base Fail 1 Fail 2 4.8065 2.3750 7.1250 6.3438 4.8000 2.3750 7.1250 6.3333 4.8000 2.3750 7.1250 6.3333 0.00 0.00 0.00 0.00 1x64x8 Fail 3 Base Fail 1 Fail 2 0.5608 0.1250 0.3750 0.6719 0.5294 0.1250 0.3750 0.5625 -* 0.1250 0.3750 -* 0.00 0.00 -
Fail 3 2.3492 2.3333 2.3333 0.00 Fail 3 0.1722 0.1613 -* -
Table 5. Single-Segment Experiments Error Results (*not all MILP results completed due to out-of-memory).
G
Compact Model and Derivation of the Extensive AllToAll Formulation
This appendix derives the extensive formulation (1)–(4) by stating a compact, arc-based multicommodity flow MILP (Appendix G.2), relaxing it to a max–min concurrent-flow LP (Appendix G.3), and applying a Dantzig–Wolfe decomposition to recover the master problem and pricing subproblem of Section 4.2 (Appendix G.4). We reuse all notation defined in Section 4.2. G.1
Capacities and commodities We extend 𝐺˜ with one super-sink 𝜎𝑑 per destination GPU 𝑑 ∈ 𝑉 , reached through exit arcs (𝑑, 𝑡), 𝜎𝑑 that absorb a chunk once it has reached its destination 𝑑 at some step 𝑡 < 𝑚𝑠 . For 𝑣𝑖 ∈ 𝑉˜ we write 𝛿˜+ (𝑣𝑖 ) and 𝛿˜− (𝑣𝑖 ) for its outgoing and incoming arcs. Commodities and chunk budget — In an AllToAll collective, each tensor 𝑐∈𝐶 has source 𝑠𝑟𝑐 (𝑐) and destinations 𝑑𝑠𝑡 (𝑐)=𝑉 \{𝑠𝑟𝑐 (𝑐)}. We route at the granularity of ordered GPU pairs, i.e., commodities K =
𝑘 = (𝑠, 𝑑 ) : 𝑠 ∈ 𝑉 , 𝑑 ∈ 𝑑𝑠𝑡 (𝑠 ) ,
Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
MCCL: Measurement-based Collective Communication Library
55:25
where commodity 𝑘 = (𝑠, 𝑑) delivers 𝐾 ∈ Z>0 chunks from the source node 𝑠 0 to its super-sink 𝜎𝑑 . The commodities sharing a common source 𝑠 = 𝑠𝑟𝑐 (𝑐) together form the flow of tensor 𝑐; this grouping is what the decomposition of Appendix G.4 exploits. G.2
Compact mixed-integer model
˜ Let 𝑓𝑎𝑘𝑖 ∈ {0, . . . , 𝐾 } be the integer number of chunks of commodity 𝑘 ∈ K routed on arc 𝑎𝑖 ∈ 𝐴, and let 𝜒 ≥ 0 be a global congestion multiplier. The compact model minimises congestion subject to delivering 𝐾 chunks per commodity, with every link load held below 𝑐 𝑎 𝜒: min Í
𝜒
(11)
Í
Í
≤ 𝑐𝑎 𝜒
∀𝑎 ∈ 𝐴,
(13)
𝑓𝑎𝑘𝑖 ∈ {0, . . . , 𝐾 },
𝜒 ≥0
˜ ∀𝑘 ∈ K, ∀𝑎𝑖 ∈ 𝐴,
(14)
Í
−
𝑘 𝑎𝑖 ∈𝛿˜ − (𝑣𝑖 ) 𝑓𝑎𝑖
𝑘 𝑎𝑖 ∈𝛿˜ + (𝑣𝑖 ) 𝑓𝑎𝑖
𝑘 𝑎𝑖 ∈𝐴˜ 𝑎 𝑓𝑎𝑖
𝑘 ∈K
= 𝑏 𝑘𝑣𝑖
∀𝑘 ∈ K, ∀𝑣𝑖 ∈ 𝑉˜ ,
(12)
where the supply/demand vector encodes the per-commodity demand 𝑏 𝑘𝑣𝑖 = 𝐾 (1[𝑣𝑖 =𝜎𝑑 ]−1[𝑣𝑖 =𝑠 0 ]). ˜ and constraints (13) make the maximum Constraints (12) are per-commodity flow conservation on 𝐺, normalised link load equal to 𝜒 by summing every step-indexed copy of a link against its capacity 𝑐 𝑎 ; the step budget enters implicitly through the truncation of 𝐴˜ at 𝑚𝑠 . Since every commodity routes exactly 𝐾 chunks, the delivered throughput at optimum is 𝐾/𝜒 ★, where 𝜒 ★ is the optimal congestion. The overall throughput is recovered by scanning the chunk budget 𝐾 MILP = max 𝑧 max 𝐾 ∈Z>0 𝜒 ★ (𝐾 ) .
G.3
(15)
Linear relaxation
Relaxing the integrality requirement (14) to 𝑓𝑎𝑘𝑖 ≥ 0 makes the chunk budget 𝐾 redundant: the model is scale-invariant in 𝐾, so we fix 𝐾 = 1 and let each commodity deliver a common rate 𝑧 = 1/𝜒 to its sink. Writing the relaxation directly on the flow-conservation constraints yields the max–min concurrent-flow LP, denoted (CF-LP): max Í
(16)
𝑧
(𝑠,𝑑 ) 𝑎𝑖 ∈𝛿˜ − (𝑣𝑖 ) 𝑓𝑎𝑖
Í
(𝑠,𝑑 ) ∈K
(𝑠,𝑑 )
𝑓𝑎𝑖
−
(𝑠,𝑑 ) 𝑎𝑖 ∈𝛿˜ + (𝑣𝑖 ) 𝑓𝑎𝑖
Í
(𝑠,𝑑 ) 𝑎𝑖 ∈ 𝐴˜ 𝑎 𝑓𝑎𝑖
Í
(𝑠,𝑑 ) = 𝑏 𝑣𝑖 (𝑧 )
≤ 𝑐𝑎
≥ 0
∀ (𝑠, 𝑑 ) ∈ K, ∀𝑣𝑖 ∈ 𝑉˜ ,
(17)
∀𝑎 ∈ 𝐴,
(18)
˜ ∀ (𝑠, 𝑑 ) ∈ K, ∀𝑎𝑖 ∈ 𝐴,
(19)
) ) where the (now rate-parameterised) demand vector is 𝑏𝑠(𝑠,𝑑 = −𝑧, 𝑏𝜎(𝑠,𝑑 = +𝑧, and 0 otherwise. 0 𝑑 Constraints (17) are the per-commodity flow conservation, which tie the rate routed to each sink to the common objective 𝑧; constraints (18) are the (coupling) link-capacity bounds; and (19) is non-negativity. Maximising 𝑧 therefore maximises the minimum per-commodity throughput.
G.4
Dantzig–Wolfe decomposition recovers the master
We apply Dantzig–Wolfe decomposition to (CF-LP) tensor by tensor, grouping the commodities that share a common source 𝑠 = 𝑠𝑟𝑐 (𝑐) into one block per tensor 𝑐. The coupling link-capacity rows (18) are kept in the master, while the conservation rows (17) define the blocks. Every block flow is a non-negative combination of source-rooted trees 𝑇𝑐 ∈ T𝑐 : choosing one 𝑠𝑟𝑐 (𝑐) →𝑑 route for each destination 𝑑 ∈ 𝑑𝑠𝑡 (𝑐) yields one such tree, with 𝛽𝑎𝑇𝑐 counting the paths of 𝑇𝑐 that load link 𝑎. Substituting the structure weights 𝑥𝑇𝑐 ≥ 0 for the arc flows eliminates the conservation rows and reproduces, line for line, the extensive master and its pricing subproblem; we therefore solve the Restricted Master Problem and price columns exactly as described in Section 4.2. Received 5 June 2026; accepted 10 September 2026 Proc. ACM Netw., Vol. 4, No. CoNEXT4, Article 55. Publication date: December 2026.
Related documents
- MCCL: Measurement-based Collective Communication Library#1341971
- Hierarchical Federated Learning for Unsupervised Waveform Classification over Tactical MANETs#998256
- JaxAHT: A JAX-Based Library for Ad Hoc Teamwork#1071478
- Replicar los datos para: The high cadence transient survey (Hits): Source, light-curve and classification catalogs#276389
- Purlin: Separating Orchestration from the Datapath of Collectives#1132155
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive