Manuscript Offprint

arXiv:2610.02370

Network-in-the-Loop at Scale: GPU-Batched 5G Simulation for Massively Parallel Robot Learning

Zifan Zhang, Mingzhe Han, Kannan Athreya, Yuchen Liu

Zifan Zhang ∗^{*} †^{\dagger}, Mingzhe Han †^{\dagger} ‡^{\ddagger}, Kannan Athreya †^{\dagger}, and Yuchen Liu ∗^{*}

*Department of Computer Science, North Carolina State University, Raleigh, NC, USA

†Department of Computer Science and Engineering, The Ohio State University, Columbus, OH, USA

Email: {zzhang66, yuchen.liu}@ncsu.edu, {han.1453, kannan}@cse.ohio-state.edu

Abstract—Massively parallel GPU simulators train multi-robot policies in thousands of environments, and many fleets use private Fifth-Generation (5G) networks, where each robot's delay depends on its teammates' traffic. Network-in-the-loop training places a simulated 5G network inside this loop. However, GPU robot simulators reduce the network to an independent delay per message, while packet-level simulators run one scenario per CPU process and cannot keep pace with thousands of parallel environments. To bridge this gap, we present Isaac-Net, a GPU-batched 5G New Radio (NR) module that advances the uplink of thousands of environments in lockstep with Isaac Lab physics. Isaac-Net simulates every slot, the 0.5 ms interval in which the base station decides which robots transmit, for all environments at once. Extensive experiments confirm that its NR engine reproduces the median delay of ns-3 5G-LENA across loads, with a median delay 5–10% low on an unseen carrier and 9% high at 32 robots per environment in closed loop. The engine also reproduces the Age of Information (AoI), the age of each robot's newest delivered report, while an independent delay per message leaves the AoI tail about three times too light. In a configuration validated against 5G-LENA, Isaac-Net keeps the network in the loop for about one million robots on one GPU at 83% of the Isaac Lab rate without the network, measured under a random policy. Isaac-Net is open source at https://github.com/ZzZTripleZzZ/isaac-net.

I. INTRODUCTION

Robot learning has moved onto the GPU, where simulators such as Isaac Gym [1], Isaac Lab [2], ManiSkill3 [3], and MuJoCo Playground [4] step thousands of environments in parallel and feed the resulting experience directly into reinforcement learning. This throughput has made it practical to train policies for whole teams of robots, such as warehouse fleets, drone swarms, and multi-arm workstations, in which each environment holds tens to hundreds of agents [5], [6]. Many of these teams report sensor data to an edge server and receive commands from it over a wireless network. Moreover, private Fifth-Generation (5G) networks are increasingly deployed for mobile robots in factories and campuses [7], [8]. A policy trained for such a team therefore acts on information that the network may have delayed or lost, so the network belongs inside the massively parallel training loop. We call such training network-in-the-loop, by analogy with hardware-in-the-loop testing, although the network inside the loop is simulated, not a real one.

In a 5G cell, the base station, called the gNB, divides one pool of radio resources among the robots in every slot. A slot is a fixed scheduling interval, 0.5 ms at the common 30 kHz subcarrier spacing, in which the gNB decides which robots transmit based on channel quality and on Buffer Status Reports (BSRs), the reports in which robots state how many bytes they hold. A robot may transmit only after the gNB sends it a grant, that is, a permission to transmit on given resources, which the gNB issues after a scheduling request and then sizes from later buffer reports. A failed transmission is retried several slots later through Hybrid Automatic Repeat reQuest (HARQ), a fast retransmission scheme of the radio link, and unsent messages wait in per-robot queues. Consequently, the delay that a robot experiences depends on its own position and on what its teammates in the cell transmit, meaning that network behavior and team behavior are coupled. This coupling also closes a loop between the policy and the network. For instance, a policy may send more reports when reports arrive late, which could congest its own uplink and delay every later report. A learning environment that captures this loop could teach a fleet when to send, how much to send, and where to move so that critical reports arrive in time. However, GPU-parallel robot simulators typically model the network, if at all, as a fixed delay or as a delay drawn independently for each message. For instance, the delayed actuator model of Isaac Lab [2] applies each command a set number of physics steps late, so it cannot express contention among teammates.

Motivation and Challenges: Putting a faithful 5G network inside a GPU-parallel training loop raises three challenges. We measure simulation speed in robot-steps per second, where a robot-step advances one robot by one control step, the 100 ms interval at which the policy acts. First, delays from contention among robots for the same radio resources, from HARQ retransmissions, and from scheduling arise per slot and persist across a robot's successive messages. Thus, an independent delay per message misses part of what a controller observes under load. Second, a packet-level simulator on a CPU advances one scenario at a time, whereas GPU physics steps thousands of environments at once, so the network would stall the training loop. Figure 1 shows that a pool of 12 ns-3 5G-LENA [9] processes, which run the 5G module of the packet-level simulator ns-3, delivers a few thousand robot-

‡^{\ddagger}These authors contributed equally to this work.

Figure

Fig. 1. Parallel warehouse environments whose robot fleets each send uplink traffic to a simulated gNB that schedules every slot, with an inset of robot-steps per second for GPU physics alone, with the 5G uplink, and for two ns-3 5G-LENA setups (log scale, higher is better).

steps per second on a shared CPU. One ns-3 process that advances in lockstep with the controller at 10 Hz keeps pace for only 48 robots. In contrast, Isaac Lab physics alone reaches about 1.6 million robot-steps per second with simple sphere-shaped robots on one GPU. Lastly, the network must stay aligned with 20 ms physics substeps and with control steps while Isaac Lab resets any subset of environments at any step. A simulator that pauses or restarts as a whole would therefore hold back every other environment.

Limitations and Opportunities: Mature mobile network simulators, such as ns-3 with its LTE and 5G-LENA [9] modules, Simu5G [10], the Vienna 5G simulators [11], and the MATLAB 5G Toolbox, model cellular networks accurately, and Veins [12] couples such simulators with road traffic. Recent works have also coupled robot simulators with network simulators [8], [13]–[17], yet each typically pairs one robot scene with one network instance through the Robot Operating System (ROS) or a real-time broker, so it runs at or below wall-clock speed. GPU network simulators such as GeDES [18] accelerate one large wired network. Sionna SYS [19] batches the 5G link model and scheduler, but it keeps no queue per robot, no HARQ timing, and no uplink access driven by buffer reports. QNet [20] learns when an agent should send over a shared network, yet its training network has no per-slot scheduling or HARQ and is not coupled to robot physics.

GPU-parallel reinforcement learning created three requirements that none of these tools meets together: 1) a batch dimension, so that thousands of independent scenarios advance together on one GPU; 2) lockstep with a physics engine, in which the network advances exactly one control step whenever the physics does, returns per-robot observations as tensors, and resets single environments at arbitrary times; and 3) closed-loop traffic and mobility, in which the policy decides what each robot sends and the physics decides where it is, so nothing can be precomputed or replayed. Training experiments also need every environment to stay reproducible, which calls for a separate random stream per environment so that its results do not change with the batch size. The network model must also avoid host synchronization, that is, it must never make the GPU wait for the CPU. These requirements appeared with GPU-parallel learning, and Isaac-Net is built around them from the ground up.

Contributions: To this end, we develop Isaac-Net 1^{1}, a GPU-batched 5G New Radio (NR) module that brings network-in-the-loop training to Isaac Lab at full parallel scale, where the robots of every environment contend slot by slot for the uplink of a shared cell. In essence, three core techniques are developed:

  • First, Isaac-Net stores each robot’s channel, scheduler state, HARQ processes, access timers, and message queue in fixed-shape tensors indexed by environment and robot. The same tensor operations then advance the state of all robots in all environments at every slot. Per-environment clocks, partial resets, and random draws keyed by environment and step let Isaac Lab restart any subset of environments while every other environment continues bitwise unaffected.

  • Second, a configurable NR engine (level L2 in the code) models 5G scheduling, decoding errors, retransmissions, and uplink grants, while a simpler prototype engine (level L2-legacy in the code) remains as a cheaper option. Both engines run on three backends, namely a plain PyTorch reference, a graph backend that is bitwise identical to it, and a triton backend that fuses one control step into a single GPU function, called a kernel, and matches the reference to floating-point rounding. Equivalence tests feed identical random draws to a fast backend and the reference and compare every output and state value at every step, thereby verifying each speed-up before it runs at the scale of millions of robots.

  • Third, a mixin class, that is, a reusable add-on class, inserts the network through four hooks into any direct-workflow Isaac Lab environment, in which one class computes observations and rewards. It returns each robot's Age of Information (AoI) [21], that is, how old its newest delivered message is, together with its queue length, Signal-to-Noise Ratio (SNR), and delivery flag. An Isaac Lab event term, a function called at every reset, redraws the radio parameters, so the policy trains over many radio conditions, which is called domain randomization.

  • Isaac-Net is released as the pip-installable package isaac-net, with its test suite, co-simulation bridges to ns-3 5G-LENA and to the OpenAirInterface (OAI) 5G stack [22], an Isaac Lab fleet task, and documentation on the project page.

  • Extensive experiments show that, in the scale configuration, that is, the validated NR configuration without the buffer-report grant procedure, Isaac Lab runs 1,048,576 robots with the network in the loop at 1.24 control steps per second on one GPU under a random policy, against

1^{1}Project page: https://isaacnet.zifanzhang.com. Code: https://github.com/ZzZTripleZzZ/isaac-net.

1.50 without the network. With that procedure and no fitted parameter, the NR engine reproduces the per-run median delay of 5G-LENA within a median absolute error of 2.5–4.8% from light to saturated load. Under load in closed loop, it also reproduces the AoI that a hand-written controller, not a learned policy, observes over ns-3, while an independent delay per message, even one drawn from the engine's own delays, leaves the AoI tail about three times too light.

To the best of our knowledge, Isaac-Net is the first 5G network model that runs batched on the GPU inside a massively parallel robot learning loop.

References (53)

  • Isaac Gym: High performance GPU-based physics simulation for robot learning
  • Isaac Lab: A GPU-accelerated simulation framework for multi-modal robot learning (opens arXiv in a new tab)
  • Demonstrating GPU parallelized robot simulation and rendering for generalizable embodied AI with ManiSkill3
  • Demonstrating MuJoCo Playground
  • VMAS: A vectorized multi-agent simulator for collective robot learning
  • WarpDrive: Fast end-to-end deep multi-agent reinforcement learning on a GPU
  • Network digital twin for 5G-enabled mobile robots
  • IsaacSim5G: A virtual experimentation platform for 5G-connected robotics
  • An E2E simulator for 5G NR networks
  • Simu5G: An OMNeT++ library for end-to-end performance evaluation of 5G networks
  • Flexible multi-node simulation of cellular mobile communications: The Vienna 5G system level simulator
  • Bidirectionally coupled network and road traffic simulation for improved IVC analysis
  • ROS-NetSim: A framework for the integration of robotic and network simulators
  • CORNET 2.0: A co-simulation middleware for robot networks
  • SynchroSim: An integrated co-simulation middleware for heterogeneous multi-robot system
  • GazeboNS3: A digital twin system for UAV swarms
  • SimART: A unified and open real-world multimodal simulation platform for 6G integrated sensing and communication (opens arXiv in a new tab)
  • GeDES: GPU-driven discrete event network simulator
  • Sionna, system level (SYS) module, version 2.2.0
  • Learning to communicate over an unknown shared network
  • Real-time status: How often should one update?
  • OpenAirInterface: A flexible platform for 5G research
  • CUDA C++ programming guide, section “CUDA graphs
  • Data throughput of CDMA-HDR a high efficiency-high data rate personal communication wireless system
  • Triton: An intermediate language and compiler for tiled neural network computations
  • NR; physical layer procedures for data
  • Link performance models for system level simulations of broadband radio access systems
  • New radio physical layer abstraction for system-level simulations of 5G networks
  • Adaptive control of link adaptation for high speed downlink packet access (HSDPA) in W-CDMA
  • NR; medium access control (MAC) protocol specification
  • Study on channel model for frequencies from 0.5 to 100 GHz
  • srsLTE: An open-source platform for LTE evolution and experimentation
  • Calibration of the 5G-LENA system level simulator in 3GPP reference scenarios
  • 5G campus network QoS dataset for open-source gNB implementations
  • ColO-RAN: Developing machine learning-based xApps for Open RAN closed-loop control on programmable experimental platforms
  • Cross-layer UE-base station dataset for handover analysis
  • Cell metrics measured using the Viavi CellAdvisor spectrum analyzer
  • CAVIAR: Co-simulation of 6G communications, 3-D scenarios, and AI for digital twins
  • LUCID: An Agentic AI Framework on Digital-Twin in the Loop for QoS-Guaranteeing Robotic Control
  • Coupled Control and Wireless World Models for Resilient Remote Robotic Control
  • Open wireless digital twin: End-to-end 5G mobility emulation with OpenAirInterface and ray tracing
  • A 5G-MEC-enabled, digital-twin-trained framework for autonomous mobile robots on the ROSMASTER R2 platform
  • DONS: Fast and affordable discrete event network simulation with automatic parallelization
  • Sionna RT: Differentiable ray tracing for radio propagation modeling
  • Aerial omniverse digital twin (AODT)
  • Learning to communicate with deep multi-agent reinforcement learning
  • Learning multiagent communication with backpropagation
  • TarMAC: Targeted multi-agent communication
  • Learning when to communicate at scale in multiagent cooperative and competitive tasks
  • Learning to schedule communication in multi-agent reinforcement learning
  • CALF: Communication-aware learning framework for distributed reinforcement learning (opens arXiv in a new tab)
  • AgentComm-Bench: Stress-testing cooperative embodied AI under latency, packet loss, and bandwidth collapse (opens arXiv in a new tab)
  • DEFIANCE: Simulate reinforcement learning deployments in realistic network scenarios