Making Protocol Effects Explicit: LLM-to-Packet Simulation for Superpod Interconnect Exploration
Yu Zhu, Xinhao Yang, Zhaoshi Li, Baodong Wu, Boxun Li, Wenxue Li, Guohao Dai, Hongyang Jia, Shuwen Deng, Huazhong Yang, Yuan Xie, Zhenhua Zhu, Yu Wang
Abstract
Large language models (LLMs) have become the foundation of modern AI services. The rapid growth of LLM sizes and context lengths has exceeded the memory capacity of a single GPU or NPU, requiring model partitioning across devices. However, partitioning models across devices introduces costly communication overhead, driving the need for superpods with large-scale, high-bandwidth, low-latency scale-up fabrics. Exploring superpod designs requires accurate interconnect simulation, as communication latency is jointly determined by link technologies, topologies, and scale-up protocol-stack choices. Latency-bandwidth models estimate communication latency using a startup term and a transfer term derived from message size and effective bandwidth. But they fail to capture contention and protocol effects. Packet-level simulators like ns-3 model routing, queueing, and packet timing, but require protocol-specific LLM-to-packet implementations. This paper presents ProtoBridge, an ns-3-based LLM-to-packet simulator for superpod interconnect exploration. To make protocol effects explicit, ProtoBridge introduces two abstraction layers over ns-3: (1) an operation-to-packet (OTP) layer that captures protocol-specific packet exchanges and dependencies, and (2) a packet-execution (PEX) layer that applies shared packet-level mechanisms to the ns-3 event system. ProtoBridge achieves average latency error of 17.8\% on H200 NVLink4 and 10.3\% on C500 MetaXLink. To enable faster superpod evaluation for further interconnect exploration, we derive a surrogate model that combines OTP parameters with analytical models of PEX mechanisms. The surrogate reduces evaluation time from 2.3875.70s to 20.5us per operation. We use ProtoBridge to analyze two emerging superpod designs, scale-up memory pool and co-packaged optics (CPO) interconnects, revealing design insights for future LLM superpod architectures.
Create a lesson
Metadata
- Comments
- 15 pages, 18 figures. To be published in HPCA 2027
Related papers
DELTA: Diagnosing Exploration Lineages via Twin-path Alignment - What Can Contrasting Design Paths Reveal About Microarchitectural Behavior?
Shared title terminologycs.ARKaushal Mhapsekar, Darsh Asher, Bita Aslrousta et al.
RTLDetective: Agentic RTL Debugging through Dataflow Analysis and Simulation-Guided Fault Localization
Shared title terminologycs.ARNeusha Javidnia, Ruisi Zhang, Farinaz Koushanfar
Exploring the Potential of Ultra-Low-Bit Inference on LLM Accelerators
Shared title terminologycs.ARHao Wang, Yang Shi, Jiageng Shi et al.
FoldSim: Scaling Cycle-Exact RTL Simulation with Hierarchical Folding and Static Scheduling
Shared title terminologycs.ARChengxuan Wang, Nikhil Rout, Yang-gon Kim et al.
BOOMerang: Autonomous Translation from RTL to Microarchitectural Simulators and Back
Shared title terminologycs.ARFerran Hermida-Rivera, Jack Toubes, Angela Cui et al.
Mechanistic Critics for Sample-Efficient NPU Design-Space Exploration
Shared title terminologycs.ARYicheng He, Yuqi Xue, Tianyang Wu et al.