What this module models
The core of the module is NtnSliceQuotaScheduler, derived from the 5G-LENA OFDMA proportional-fair scheduler. A slice with demand receives at least floor(quota x RBGs) resource block groups per slot, and leftover groups go to any slice with data, so the partition is enforced in the MAC rather than labeled on packets. Quotas are set by controllers in the examples: from the satellite ephemeris, from measured backlog and bytes per RBG, or from a tenant rate contract with a delivered-rate trim (TrimmedQuota). The quota scheduler acts on the downlink only; the uplink stays plain proportional fair.
Around the scheduler sit the slice vocabulary of 3GPP TS 23.501 (S-NSSAI as 8-bit SST plus 24-bit SD, 5QI), default eMBB, URLLC and mMTC profiles after TS 22.261 Table 7.1-1, and a flow selector that matches DSCP, port ranges and application labels. A helper applies a GEO mode-skip rule for latency-bound slices, treating satellites above 30 000 km as GEO. SliceIsolationMonitor keeps a delay histogram, so a reported p99 is a percentile and not a mean, and records breach events. SliceOrchestratorXapp computes a PRB split for an RL policy, but it is a shadow allocator whose decisions are logged and do not reach the MAC. The examples run over SGP4 satellite geometry with TR 38.811 excess loss on a 5G-LENA cell, and the module cites TS 38.300, TS 38.101-5 and TR 38.821 for QoS flow mapping, NTN FR1 bandwidths and latency budgets.
Outputs
- One JSON line per run with per-window elevation, delay-critical p99, deadline misses, rates, quota and bytes per RBG (ntn-slice-pass-leo)
- Per-slot RBG accounting from the quota scheduler (TakeRbgCounts, TakeBytesPerRbg) and a per-slot allocation trace
- slices.csv with per-slice SINR, throughput, delay and breach flags (ntn-slice-isolation-traffic)
- Per-slice rolling p99 delay, cumulative loss and BreachEvent records from SliceIsolationMonitor
- Grafana dashboard dashboards/ntn-slice.json for the ntn-observability stack
Standards
| Specification | What the module takes from it |
|---|---|
| 3GPP TS 23.501 | S-NSSAI, 5QI and standardized QoS characteristics |
| 3GPP TS 22.261 | Service requirements; default eMBB, URLLC and mMTC slice profiles (Table 7.1-1) |
| 3GPP TS 38.300 | QoS flow to DRB mapping |
| 3GPP TS 38.101-5 | NTN FR1 channel bandwidths |
| 3GPP TR 38.811 | NTN channel; excess loss on the slicing study cell |
| 3GPP TR 38.821 | NTN latency budgets; modeled transparent-GEO service and feeder legs |
Examples (6)
- Slice isolation under eMBB loadeMBB, URLLC and mMTC slices share one measured NR cell on an SGP4 pass while eMBB saturates it. An isolation monitor flags per-slice SLA breaches.
- Slice scheduling as the satellite recedesThree slices on one 5G-LENA NTN cell as the satellite recedes. Compare PF, QoS, BWP, static, predictive and reactive quota policies on deadline misses and throughput.
- MAC quota scheduler over an SGP4 passeMBB, URLLC and mMTC slices on one NR NTN cell with the partition enforced by the MAC quota scheduler. Compare PF, BWP, static and reactive policies, with an optional surge.
- Slice SLA check with 3D exportSlices share one measured NR cell and an isolation monitor checks SLAs against measured delivery and LEO latency. Optional NetSimulyzer and CZML output.
- Two tenants with a rate contractTenant A buys a byte rate and tenant B takes the rest of one NTN cell over a receding satellite. Compare contract, ephemeris and limiter policies on A's delivered rate.
- Three slices across LEO and GEOeMBB, URLLC and mMTC slices on a combined LEO and GEO network, with URLLC kept off GEO. The 1 Hz orchestrator's PRB split is checked against measured LEO and GEO latency.
Run it
In the browser
Pick an example in the run panel above, set its parameters and press Run. The console streams live and the result opens with KPI charts.
In the ns-3 console
The browser console accepts ns-3 style commands, for example
ns3 run "ntn-slice-isolation-traffic --PrintHelp".Locally with Docker
The public image has the whole toolkit prebuilt. This runs
ntn-slice-isolation-trafficwith its built-in defaults.docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-slice-isolation-traffic"
Cite this
If you use this module, please cite the article that describes the toolkit: doi:10.1109/OJCOMS.2026.3745010.
M. Uzair, B. G. Aldahlan, A. A. Albar, H. Althumali and A. Alghammas, "ns3-ntn-toolkit: An integrated ns-3 platform for 6G non-terrestrial networks," IEEE Open Journal of the Communications Society, vol. 7, pp. 13440-13467, 2026, doi: 10.1109/OJCOMS.2026.3745010.
@article{uzair2026ns3ntntoolkit,
author = {Uzair, Muhammad and Aldahlan, Bassma G. and Albar, Ali A. and
Althumali, Huda and Alghammas, Adnan},
title = {ns3-ntn-toolkit: An Integrated ns-3 Platform for 6G
Non-Terrestrial Networks},
journal = {IEEE Open Journal of the Communications Society},
volume = {7},
pages = {13440--13467},
year = {2026},
doi = {10.1109/OJCOMS.2026.3745010}
}