Skip to content
Module · ntn-slice

ntn-slice: network slicing on a LEO satellite cell in ns-3

ntn-slice is an ns-3 module for network slicing on a non-terrestrial (LEO satellite) cell, in which a 5G-LENA proportional-fair scheduler enforces a per-slot resource block group quota for each slice and lends unused groups to other slices. It also provides S-NSSAI and slice-profile classes, quota controllers that follow the satellite pass, and an isolation monitor that reports per-slice delay percentiles.

Run it in the browser

Choose an example, set its parameters and run the real ns-3 binary on this server. The scene shows the configured geometry before the run and the results after it.

Slice isolation under eMBB load

eMBB, 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.

~60 sntn-slice-isolation-traffic
Parameters
Simulation duration (s)
Number of UEs on the shared cell (slice = UE index mod 3)
Satellite power (dBm): -1 = TR 38.821 Set-1 (nr) or 55 dBm conducted (mmwave); else conducted dBm Leave at -1 for the TR 38.821 Set-1 S-band EIRP density (34 dBW/MHz, about 77 dBm EIRP over 20 MHz; the conducted power is derived from it and the array gain). Any other value is the conducted power at the array input in dBm (the array adds about 18 dB); values below about 40 dBm leave the link without usable throughput.
Radio backend: nr (FR1) or mmwave
Feeder plus core one-way delay (ms)
Gateway ground distance north of the UE site (km); the feeder delay follows the live satellite-gateway range. <= 0 keeps the constant backhaulMs
Scene: Network slices
The interactive 3D globe loads here.

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

SpecificationWhat the module takes from it
3GPP TS 23.501S-NSSAI, 5QI and standardized QoS characteristics
3GPP TS 22.261Service requirements; default eMBB, URLLC and mMTC slice profiles (Table 7.1-1)
3GPP TS 38.300QoS flow to DRB mapping
3GPP TS 38.101-5NTN FR1 channel bandwidths
3GPP TR 38.811NTN channel; excess loss on the slicing study cell
3GPP TR 38.821NTN latency budgets; modeled transparent-GEO service and feeder legs

Examples (6)

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-traffic with its built-in defaults.

    shell
    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.

BibTeX
@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}
}