JAIT 2026 Vol.17(11): 2172-2179
doi: 10.12720/jait.17.11.2172-2179

AI-assisted Closed-loop Network Optimization Using Network Simulator 3 (NS-3) and Large Language Models

Aziz Alshehri1,* , Jebreel Omar Alamri2

  • 1Department of Cybersecurity, College of Computing, Umm Al-Qura University, Makkah, Saudi Arabia
  • 2Department of Computer Science, College of Engineering and Computing in Al-Qunfudhah, Umm Al-Qura University, Makkah, Saudi Arabia

* Corresponding author

  • Manuscript receivedDecember 30, 2025
  • revisedFebruary 12, 2026
  • acceptedAugust 17, 2026
  • publishedNovember 12, 2026

Abstract

This study presents a Large Language Model (LLM)-assisted closed-loop network optimization framework that integrates Network Simulator 3 (NS-3) v3.37 with a large language model accessed through the OpenAI Application Programming Interface (API) and a deterministic Python controller. The framework executes simulations, extracts performance metrics, validates LLM-generated candidate configurations, and applies controller-side safeguards before launching the next NS-3 run. The revised Wireless Fidelity (Wi-Fi) experiments use a reconstructed IEEE 802.11 g model and evaluate overloaded User Datagram Protocol (UDP) scenarios with 3 and 10 station nodes. In addition to the initial LLM-guided optimization, the study compares the LLM controller with Bayesian Optimization under the same search space, evaluation budget, simulator, metrics, and utility function. The results are scenario-dependent rather than universally favoring either optimizer. In 3 station nodes (3-STA) validation, Bayesian Optimization achieved the higher utility, 112.587 ± 0.011 versus 89.200 ± 0.012 for the LLM. In 10-STA validation, the LLM-guided configuration achieved 24.996 Mbps aggregate throughput with 0.004% packet loss and 0.424 ms latency, compared with 27.151 Mbps, 9.482% loss, and 180.562 ms for Bayesian Optimization under the same evaluation setting. Reliability analysis showed that controller-side safeguards were essential: 57 API calls produced 36 valid JavaScript Object Notation (JSON) responses, 21 malformed outputs, 29 duplicate proposals, and zero manual interventions.

Keywords

  • Large Language Models (LLMs)
  • Network Simulator 3 (NS-3) simulation
  • adaptive optimization
  • self-organizing networks
  • Wireless Fidelity (Wi-Fi) performance
  • Artificial Intelligence (AI)-assisted network management
PDF

How to Cite

Copied

Aziz Alshehri and Jebreel Omar Alamri, "AI-assisted Closed-loop Network Optimization Using Network Simulator 3 (NS-3) and Large Language Models," Journal of Advances in Information Technology, vol. 17, no. 11, pp. 2172-2179, 2026. https://doi.org/10.12720/jait.17.11.2172-2179

Copyright & License

Copyright © 2026 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).

Article Metrics in Dimensions