Congestion Control System Optimization with Large Language Models

Zhiyuan He, Aashish Gottipati, Lili Qiu, Yuqing Yang, Francis Y. YanarXiv 2025 · DOI

Abstract

This paper introduces an automated framework for optimizing network congestion control (CC) algorithms using Large Language Models (LLMs). By framing algorithm design as a code-generation task and utilizing a statistically efficient evaluation pipeline, the framework enhances the industry-standard BBR algorithm. Results show throughput improvements of up to 27% across diverse network conditions, including 5G and Starlink, while reducing evaluation time by over 87%.

Introduction

Congestion control acts as the "traffic cop" of the internet, determining data transmission rates to maximize throughput without overwhelming the network. Despite decades of research, manual optimization of modern algorithms like BBR—which often exceed 1,000 lines of code—remains a "black art." Tuning these algorithms for varied scenarios, from stable broadband to erratic satellite links, is complex and time-consuming. Furthermore, evaluating new candidates across hundreds of network traces typically requires prohibitive amounts of compute time.

Methodology

The authors propose a two-part solution to automate and accelerate CC optimization:

1. Structured Patch Generation

Rather than requiring an LLM to write an entire algorithm from scratch, which often results in bugs, the framework provides the full source code of an existing implementation (MsQuic's BBR). The LLM is then prompted to output specific "update blocks" to modify functions, variables, or structs. This "long input, short response" approach ensures the generated code is compilable and grounded in a proven system.

The prompt outline used to guide LLMs in generating structured code patches for the BBR algorithm.

2. Statistically Guided Evaluation

To overcome the evaluation bottleneck, the researchers modeled algorithm performance using a Multivariate Gaussian distribution. They discovered that certain network traces are more "informative" than others. By identifying traces with high variance or high correlation, they can accurately estimate an algorithm's total performance by testing it on only a tiny subset of conditions, reducing emulation time by 87.6%.

Datasets and Evaluation

The study utilizes a diverse set of 408 real-world network scenarios to ensure robustness:

  • FCC: Broadband measurements across the U.S.
  • Starlink: Throughput traces from satellite terminals.
  • 4G/5G: Downlink throughput data from cloud servers to local clients.

Key Results and Insights

The best LLM-generated algorithms achieved up to 27.28% higher throughput than the default BBR implementation in MsQuic, with negligible impact on latency.

  • LLMs as Creative Architects: Models did more than tweak constants; they proposed structural changes. For instance, the o1-preview model introduced a "loss-rate-aware" mechanism that dynamically scales gains based on packet loss.
  • Model Performance: While all tested models produced improvements, Qwen-2.5-72B achieved the highest overall utility. GPT-4o demonstrated the highest rate of producing compilable code.
Distribution of utility scores across different LLMs, showing the performance improvements achieved by each model.

Conclusion

This research demonstrates that LLMs can significantly outperform human-designed baselines in complex network environments. By combining creative code generation with statistical efficiency, the framework allows for both general-purpose and domain-specific optimizations. Future work will explore more dynamic environments and extend this approach to routing and adaptive bitrate video streaming.

Summary updated

BibTeX
@misc{he2025congestion,
  author = {Zhiyuan He and Aashish Gottipati and Lili Qiu and Yuqing Yang and Francis Y. Yan},
  title = {{Congestion Control System Optimization with Large Language Models}},
  year = {2025},
  eprint = {2508.16074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.16074},
}
Figure