Supercharging Packet-level Network Simulation of Large Model Training via Memoization and Fast-Forwarding

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Long, Fei, Gao, Kaihui, Chen, Li, Li, Dan, Zhang, Yiwei, Gui, Fei, Xing, Yitao, Wei, Wenjia, Liu, Bingyang
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912897036189696
author Long, Fei
Gao, Kaihui
Chen, Li
Li, Dan
Zhang, Yiwei
Gui, Fei
Xing, Yitao
Wei, Wenjia
Liu, Bingyang
author_facet Long, Fei
Gao, Kaihui
Chen, Li
Li, Dan
Zhang, Yiwei
Gui, Fei
Xing, Yitao
Wei, Wenjia
Liu, Bingyang
contents Packet-level discrete-event simulation (PLDES) is a prevalent tool for evaluating detailed performance of large model training. Although PLDES offers high fidelity and generality, its slow performance has plagued networking practitioners. Existing optimization techniques either simplify the network model, resulting in large errors; or execute it in parallel using multiple processors, with an upper bound on speedup. This paper explores an alternative optimization direction that reduces the computational loads of PLDES while maintaining high fidelity. Our key insight is that, in distributed LLM training, packet-level traffic behaviors often exhibit repetitive contention patterns and steady-states where flow rates stabilize, ignoring these redundant discrete events speeds up the simulation considerably and the error is negligible. We realize this idea by proposing Wormhole, a user-transparent PLDES kernel capable of automatically memoization for unsteady-states and skipping for steady-states. Wormhole adopts network partitioning, state memoization and reuse, and rate-based steady-state identification to accurately determine the periods of each flow's steady-state, while maintaining simulation consistency after fast-forwarding. Experiments demonstrate that Wormhole can achieve a 744x speedup over the original ns-3 (510x for MoE workload), with a bounded error of <1%. Applying current multithreading parallel techniques and Wormhole together allows a 1012x speedup, reducing the simulation time for one GPT-13B training under 128 GPUs from 9 hours to 5 minutes.
format Preprint
id arxiv_https___arxiv_org_abs_2602_10615
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Supercharging Packet-level Network Simulation of Large Model Training via Memoization and Fast-Forwarding
Long, Fei
Gao, Kaihui
Chen, Li
Li, Dan
Zhang, Yiwei
Gui, Fei
Xing, Yitao
Wei, Wenjia
Liu, Bingyang
Networking and Internet Architecture
Performance
Systems and Control
Packet-level discrete-event simulation (PLDES) is a prevalent tool for evaluating detailed performance of large model training. Although PLDES offers high fidelity and generality, its slow performance has plagued networking practitioners. Existing optimization techniques either simplify the network model, resulting in large errors; or execute it in parallel using multiple processors, with an upper bound on speedup. This paper explores an alternative optimization direction that reduces the computational loads of PLDES while maintaining high fidelity. Our key insight is that, in distributed LLM training, packet-level traffic behaviors often exhibit repetitive contention patterns and steady-states where flow rates stabilize, ignoring these redundant discrete events speeds up the simulation considerably and the error is negligible. We realize this idea by proposing Wormhole, a user-transparent PLDES kernel capable of automatically memoization for unsteady-states and skipping for steady-states. Wormhole adopts network partitioning, state memoization and reuse, and rate-based steady-state identification to accurately determine the periods of each flow's steady-state, while maintaining simulation consistency after fast-forwarding. Experiments demonstrate that Wormhole can achieve a 744x speedup over the original ns-3 (510x for MoE workload), with a bounded error of <1%. Applying current multithreading parallel techniques and Wormhole together allows a 1012x speedup, reducing the simulation time for one GPT-13B training under 128 GPUs from 9 hours to 5 minutes.
title Supercharging Packet-level Network Simulation of Large Model Training via Memoization and Fast-Forwarding
topic Networking and Internet Architecture
Performance
Systems and Control
url https://arxiv.org/abs/2602.10615