Documentation
Using Isaac-Net
A reference for collaborators and early users: how the engine is called, how it plugs into Isaac Lab, what can be configured, and how the speed and fidelity numbers were produced.
pip install torch (the CUDA build), then pip install isaac-net. The source is at github.com/ZzZTripleZzZ/isaac-net.Install
The engine needs Linux with an NVIDIA GPU. The reference engines also run on a CPU. With repository access:
uv venv --python 3.11 && source .venv/bin/activate
uv pip install torch # CUDA build of PyTorch; Triton ships with it on Linux
uv pip install isaac-net # the released package from PyPI
uv pip install -e ".[dev]" # or a clone, for development: plus pytest and ruff
python -m pytest -m "not gpu and not slow"
For Isaac Lab, the repository ships PowerShell scripts that follow the Isaac Lab 3.0 page "Python environment with Isaac Sim" (Windows, uv) and keep everything under C:\isaac5g. The download is about 40 GB and the install takes about 15 minutes. env.ps1 sets OMNI_KIT_ACCEPT_EULA=YES, which accepts the NVIDIA Omniverse EULA, so read it before running the scripts.
powershell -File scripts\windows\01_bootstrap.ps1 # long paths on, uv and portable git
powershell -File scripts\windows\02_install_isaacsim.ps1 # isaacsim[all,extscache]==6.1.0.0, torch 2.12 cu130
powershell -File scripts\windows\03_install_isaaclab.ps1 # isaaclab.bat -i
powershell -File scripts\windows\04_triton_windows.ps1 # triton-windows, for the triton backend
. C:\isaac5g\env.ps1
uv pip install --no-deps -e . # keeps Isaac's CUDA build of torch
python -m pytest -m isaac tests\test_isaac_env.py
python benchmarks\isaac\bench.py --num_envs 256 --num_robots 16 --level L2-legacy --backend triton --steps 100
python benchmarks\isaac\train_ppo.py --num_envs 256 --num_robots 16 --level L2-legacy --backend triton --iters 5
Isaac Lab 3.0 runs headless by default and needs Isaac Sim 6.1 (5.1 and older are not supported). The Isaac tests launch one Isaac Sim process per case and take about a minute each.
Engine API
make_engine(level, E, R, device, config, backend) builds every fidelity level, and every engine has the same calls:
submit(t, Requests(send, det, hid))queues this step's messages.sendis an[E, R]class index (0 nothing, 1 small frame, 2 large frame).t=Noneuses each env's own clock.step(t, pos)advances one control step. Positions go through the engine's radio, and an SNR[E, R]or a per-cell path gain also works. It returns a dict withnewest(capture step of the newest delivered frame), per-messagedeliveredandtimed_outmasks anddelayin control steps,queue_len,queue_bytes,sinr_dband, with an application tag,det_env.reset(env_ids)takes an index tensor, a list or a bool mask. It resets queues, MAC, fading, radio and clock of those envs and leaves every other env bit-for-bit unaffected.
Age of information and queue length go straight into observations. ORACLE and NOCOMM give the delivery upper and lower bounds for a task with the same API.
Isaac Lab integration
NetEnvMixin wires a NetModule into four hooks of a DirectRLEnv: net_setup, net_step, net_reset and net_obs. Frames are captured at the start-of-step pose in _pre_physics_step, and the network step takes the end-of-step poses in _get_dones, before _reset_idx. NetModule builds its engine with make_engine, so every level is available inside Isaac Lab. It adds only the Isaac-side radio (per-env radio parameters for domain randomization, several gNBs, line-of-sight blockage, SNR averaged over 4 poses interpolated across the step), a per-message tag and freshness outputs (last_cap, aoi_s).
The example isaac_fleet_env.py defines NetFleetEnv: E envs of R velocity-driven rigid spheres in a 150 m × 150 m arena, PhysX at dt = 1/50 s with decimation 5, so one control step is 0.1 s and 40 uplink slots. Each robot chooses a velocity up to 3 m/s and a send channel (none, a 4 KB frame or a 30 KB frame), and the fleet learns about hazards only when a detection frame is delivered.
Tests inside Isaac Lab: the fleet env's network equals a reference-backend replay of the recorded PhysX poses, sends, tags and RNG stream with zero difference, through partial resets that DirectRLEnv makes itself, at L2-legacy, L1 and L0DR (9 of 9 cases pass). An end-to-end PPO run through the rsl_rl wrapper at 1,024 × 16 trained without errors for 30 iterations in 241 s, as a pipeline check.
Configuration
One NRConfig dataclass configures every module: numerology, carrier and TDD pattern, MAC timing, HARQ and RLC, PHY tables, radio and cell layout, and application fields (frame buffer, timeout, message sizes). The NR engine L2 reads almost all of it. The prototype levels read only the application fields. NRConfig.unused_fields(level) lists fields a level ignores, and make_engine(..., strict=True) refuses them.
cfg = NRConfig(mu=1, bandwidth_mhz=20, tdd_pattern="DDDSU", n_harq=16, mcs_table=2, dl=True)
net = make_engine("L2", E, R, dev, cfg) # 51 PRB in 13 RBGs, 16 HARQ processes, EESM, UL + DL
net = make_engine("L2", E, R, dev, multicell(3, dl=True)) # 3 cells: UL + DL interference, handover
| Preset | What it sets |
|---|---|
netslot_compat() | the legacy L2 geometry and timing with the 3GPP PHY |
lena_like(), lena_validation() | the ns-3 5G-LENA reference scenario: 50 PRB in 5 RBGs, 16 HARQ processes, UM loss, no OLLA, wideband PF, 5G-LENA EESM tables and IR combining, PDCP arrival discard; lena_validation() adds the validation geometry |
srsran_like() | SR period 20 ms, SR-to-grant 1 UL slot, BLER target 0.5%, processing offset 2.5 ms, UL MCS ≤ 15 |
oai_like() | proactive UL grant once per TDD period, BLER target 0.5%, processing offset 2.25 ms, UL MCS ≤ 15 |
multicell(n) | hexagonal cells at 100 m spacing, thermal noise, uplink fractional power control on |
PHY tables: the shipped BLER tables are exported from Sionna SYS 2.2.0 (Apache-2.0). The 5G-LENA tables used by the lena_like presets are GPL-2.0 data and are never shipped. python -m isaac_net.tools.extract_lena_tables ~/src/nr generates them from a local 5G-LENA checkout.
Fidelity levels and surrogates
The full list is on the main page. TR, GE, QA and NN are fitted from L2 or L2-legacy rollouts of the example fleet task. The fit writes one parameter file outside the repository, and every engine loads it:
python -m isaac_net.tools.fit_levels --source L2-legacy --task T1 --backend graph
net = make_engine("NN", E, R, dev, params="~/.cache/isaac_net/levels/L2-legacy_T1.pt", backend="graph")
Held-out, teacher-forced network-level fit of the surrogates against the legacy engine (frame-weighted Wasserstein-1 distance of delay per lookup cell, pooled, in ms; drop calibration over 123k held-out frames). These numbers come from pre-package code and have not been re-measured.
| Level | W1 pooled (ms) | Drop ECE | Brier |
|---|---|---|---|
NN | 9.1 | 0.0034 | 0.065 |
L05Q | 8.7 | 0.0026 | 0.092 |
L05 | 11.3 | 0.0066 | 0.126 |
GE | 25.9 | 0.0109 | 0.194 |
L0 | 805.4 | 0.0076 | 0.241 |
Backends and equivalence
Every prototype level has a readable eager reference and graph-safe fast versions. The fast rewrite replaces every mask write with torch.where or a one-hot select, replaces argsort compaction with a stable cumsum scatter that yields the same permutation, and keeps all state in persistent buffers updated in place, so captured graph addresses stay valid across reset.
graphcaptures the rewritten operations in CUDA graphs. It is bitwise identical to the reference and is meant for scientific runs.triton(L1,L2-legacy) runs all 40 slots of a control step in one Triton kernel, one program per env, with Philox RNG inside the kernel. It matches the reference to rounding and is meant for scale.compile(torch.compile plus a CUDA graph) agrees only to rounding and flips finish times too often for training.
Method. Each step's noise (fading innovations [40, E, R, S, 2] and decode draws [40, E, R]) is generated once and fed to both engines. Outputs, per-frame finish times, all 9 per-frame fields and all MAC state are compared with torch.equal every step. Free-running mode lets each engine evolve for 300 steps, and teacher-forced mode copies the reference state in before every step to count per-step disagreements.
| Backend | E × R | Mode | Result |
|---|---|---|---|
graph | 16 × 16 | free-running | bitwise identical every step; 16,807 frames |
graph | 256 × 16 | free-running | bitwise identical; 274,680 frames |
graph | 64 × 100 | free-running | bitwise identical; 96,442 delivered, 625,458 timeouts |
triton | 16 × 16 | teacher-forced | 0 of 53,409 robot-steps mismatch |
triton | 256 × 16 | teacher-forced | 2 of 849,113 robot-steps (2.4e-6) |
triton | 64 × 100 | teacher-forced | 5 of 1,631,514 robot-steps (3.1e-6) |
compile | 16 × 16 | teacher-forced | 6,229 of 53,409 robot-steps (11.7%) |
Partial resets were checked separately (14 of 14 cases for reference, graph and triton): envs that are never reset stay bitwise equal to a run without resets, no buffer is reallocated, and a reset does not perturb the other envs' random stream. The NR engine also has graph (bitwise equal to its reference) and a single-cell triton kernel. The legacy multi-cell engine has only the reference backend.
Performance
Network step time (submit + step) in ms per 100 ms control step.
| Level | 256×16 ref | graph | triton | 4096×100 ref | graph | triton |
|---|---|---|---|---|---|---|
L0 | 1.23 | 0.36 | 4.75 | 10.6 | ||
L0DR | 1.36 | 0.36 | 4.72 | 10.6 | ||
L05 | 1.57 | 0.40 | 5.08 | 10.9 | ||
L05Q | 1.52 | 0.40 | 4.98 | 10.9 | ||
L1 | 15.1 | 1.94 | 0.36 | 107 | 108 | 11.1 |
L2-legacy | 94.0 | 9.71 | 0.46 | 191 | 135 | 17.7 |
L2, defaults | 330 | 50.2 | 1.68 | 2,310 | 2,228 | 67.8 |
L2, validated config | 1.97 | 94.4 |
The validated NR configuration is lena_validation_v2() with a lumped SR-to-grant delay, the closest one the triton kernel accepts. At 4096 × 100 the fixed-shape graph versions of the delay levels are memory-bound and slower than the eager reference, which touches only new and finished frames. The triton kernel pads robots to a power of two, so R above about 256 would need a tiled PF reduction, and its int32 RNG offsets limit it to about 4.9 M robots per instance.
Inside Isaac Lab
triton) each ran as 3 separate processes per size, interleaved, on an idle GPU. Values are the mean over the 3 processes.| E × R | Robots | Off (steps/s) | NR triton (steps/s) | On / off | Network only (ms) | Robot-steps/s |
|---|---|---|---|---|---|---|
| 2048 × 128 | 262,144 | 5.38 | 4.11 | 0.76 | 50 | 1,078,000 |
| 4096 × 128 | 524,288 | 2.95 | 2.44 | 0.83 | 100 | 1,278,000 |
| 8192 × 128 | 1,048,576 | 1.50 | 1.24 | 0.83 | 199 | 1,297,000 |
Random actions saturate the uplink from R = 16 on, the worst case for the network's cost. The network-off rate varies by 8–14% between processes, and the three NR processes at 1M robots agree to within 0.5%. From 524k robots up, about 30% of the network's GPU work on average is hidden behind PhysX and Python host work. Scene startup takes 1,158–1,585 s at 1M robots. The graph backend replays about 6,000 kernels per step, so use triton for scale and graph for bitwise-reference runs.
Cost of CPU co-simulation
This compares different models: the per-slot model on the GPU against ns-3.48 with 5G-LENA v5.1, a packet-level simulator with far more detail, so it measures the cost of fidelity rather than a like-for-like speed-up. At 256 × 16 a 12-worker ns-3 process pool reaches about 129 env-steps/s, and the example task with the triton network runs about 1,090× (L2-legacy) and 650× (NR) faster. Inside Isaac Lab at 524,288 robots, a step with the NR uplink takes 0.41 s, about 83× less than Isaac Lab with ns-3 on 32 fully efficient cores. The ns-3 times were measured on a shared box and could be up to 2–3× lower on a quiet one. ns-3 is therefore a validation tool at small E, not a training backend.
Validation against 5G-LENA
The reference is ns-3.48 with 5G-LENA NR v5.1, used unmodified except for a 6-line crash guard in nr-amc.cc that returns MCS 0 instead of aborting when no RB was measured, so every run that completes without it is unchanged. The scenario is a single-cell uplink at 3.5 GHz, 20 MHz, μ = 1, TDD DDDSU, 50 PRBs in 5 RBGs, OFDMA PF, HARQ with at most 4 transmissions, real SR/BSR and RLC UM with a 2 s discard. The channel is frequency-flat with whole-band UE power, because stock 5G-LENA uplink AMC has no OLLA and cannot track a frequency-selective channel (first-transmission BLER near 40% with fading).
The sweep crosses 1 to 64 UEs, 4 KB and 30 KB frames and five load levels with 3 seeds: 186 runs, 153 in the primary arm. Nineteen model differences were resolved on the engine side, keeping 5G-LENA as a stock reference, and lena_validation() sets every switch. The NR engine then replays each run with the same per-UE link budgets.
| Subset | Runs | Drop rate (engine − LENA) | p50 delay | p95 delay | PRB use, NR / LENA |
|---|---|---|---|---|---|
| all | 153 | mean |Δ| 0.029 (max 0.15) | −20 ms | −30 ms | 0.83 |
| light (LENA drop < 1%) | 79 | −0.001 | −18 ms | −25 ms | 0.75 |
| saturated (LENA drop ≥ 20%) | 38 | −0.07 | −179 ms | −48 ms | 0.97 |
This table is lena_validation() before the SR-to-grant default. With 5G-LENA's MAC behavior under load (lena_validation_v2(), no fitted parameter), the median p50 delay error is −0.2%, −1.2% and −0.1% at light, moderate and saturated load, the median KS distance 0.17, and the loaded-cell drop gap −1.4 to −1.7 pp. A sensitivity sweep moves the median p50 offset linearly with the SR-to-grant delay, and about 40 slots (about 20 ms) aligns p50 and p95. That value is now the lena_validation() default and is marked as inferred, because 5G-LENA's SR-to-first-grant delay has not been measured. At equal MCS, 5G-LENA's 10%-BLER points lie 2.4 to 5.7 dB above the Sionna AWGN curves, so any comparison must use the 5G-LENA tables or the gap measures the tables and not the MAC.
Public-data calibration
Public measurement data cannot validate a whole 5G uplink model, but it can pin down individual layers. No dataset is redistributed with the package, and no fitted parameter file is committed.
| Layer | Data | Finding |
|---|---|---|
| Uplink latency | 5G campus QoS, OAI and srsRAN (Zenodo 13754300, CC BY 4.0) | srsRAN fit W1 1.25 ms, KS 0.12 (held out 2.0–2.9 ms); OAI 5/10-slot periods W1 2.5 ms; a fixed SR delay alone never fits either stack |
| Contention | ColO-RAN (GPL-3.0, data not copied) | uncalibrated engine overestimates capacity by about 25–35%; capacity scale 0.8 gives 6% MAPE vs 28% |
| Channel | POWDER drive tests (Zenodo, CC BY 4.0) | σ = 6 dB lies in the measured range; the engine's shadowing decorrelates 2–4× faster than measured |
| Link abstraction | ColO-RAN, Lumos5G | shape matches (Shannon gap about 3 dB); the legacy peak spectral efficiency is about 2× optimistic for open-source uplink |
Public data could not reach NR multi-UE uplink contention, per-TB BLER against SINR, configured SR periods and grants, latency with large frames under load, indoor channels, fading at robot speeds, or robot traffic. These need lab testbed measurements.
Multi-cell
Up to 7 cells per environment, batched over the cell dimension with no Python loop over cells, on the NR engine (uplink and downlink) and on L2-legacy (uplink only). Each cell runs its own PF scheduler. Link adaptation uses the noise plus interference measured in the previous slot, and decoding uses the actual same-slot noise plus interference, because a real gNB cannot know the next slot's interference when it picks the MCS. A3 handover fires at its exact slot, with hysteresis, time-to-trigger and an interruption window, and queued frames carry over to the target cell by default.
Uplink fractional power control is on by default whenever there is more than one cell. Without it, full-power robots next to their own gNB dominate the interference, and three cells carry less than one. Multi-cell costs about 20% more kernel launches and 20–27% more GPU time, nearly independent of the number of cells. The power-control defaults come from a sanity sweep and have not been calibrated against a reference.
Status and limits
- The NR
tritonkernel is single-cell and does not implement the SR / BSR grant pipeline, so at scale v2 runs with a lumped 40-slot SR-to-grant delay. - In loaded cells the NR engine drops 1.4–1.7 pp fewer frames than 5G-LENA, and in closed loop at 32 robots per cell its median delay lies about 9% above that of ns-3.
- Isaac scene startup grows by about 1.1 ms per robot, and a centralized policy does not scale to R = 128 without a per-robot parameter-shared wrapper.
- A downlink
NetModulethat gates commands inside Isaac Lab is planned, and the line-of-sight blockage path has not been benchmarked at large R.
License on release: BSD-3-Clause. The shipped Sionna tables are Apache-2.0. No ns-3 or 5G-LENA code or data is included.