6G NTN
ns3-ntn-toolkit module

ntn-slice

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

ns-3 module that enforces per-slot RBG quotas per slice in the 5G-LENA MAC on a LEO cell, with pass-aware quota controllers and p99 SLA monitors.

Fig. 1 of the accompanying study: the system model. Click to zoom.
Fig. 1 of the accompanying study: the system model. Click to zoom.

What ntn-slice does

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.

Accompanying studyQuota, Priority or Rate Cap? Matching the Slicing Mechanism to the Promise on a Receding Low Earth Orbit Satellite. Code and data are in this repository.

What it 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.

Measured numbers

19 ms (worst seed 26 ms)

Delay-critical slice p99 one-way delay with the measured closed-loop quota (reactive)

One 2.185 GHz, 20 MHz cell (numerology 1) via a 550 km, 53 degree SGP4 satellite, elevation 87 to 31 degrees over 120 s; 16 Mb/s delay-critical slice with 50 ms budget at full load; median over 12 seeds
20 ms (worst seed 33 ms)

Delay-critical slice p99 delay with the ephemeris-driven quota (predict)

Same pass-study setup; median over 12 seeds
2.6 s (worst seed 3.6 s)

Delay-critical slice p99 delay with a static quota sized at the start of the pass; 52 % of windows over target

Same pass-study setup; median over 12 seeds
2.8 s (worst seed 6.7 s)

Delay-critical slice p99 delay with plain PF and no slices; 91 % of windows over target

Same pass-study setup; median over 12 seeds
77 to 50 bytes per RBG

Bytes carried per RBG by the delay-critical slice at 87 and at 31 degrees elevation (36 % less), raising the needed quota from 0.48 to 0.74 of the RBGs

Calibration seed of the pass study
12.6 Mb/s (lowest window 12.5 Mb/s)

Tenant A throughput under the trimmed contract loop (contract_trim), with tenant B at 19.8 Mb/s

Two tenants on one cell, contract R = 12 Mb/s for tenant A, decoding errors on, tenant B pausing mid-run; medians over 12 seeds

Each number states the run it comes from; the README of the module lists the command that reproduces it.

Standards it follows

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

New on 6g-ntn.live

The toolkit now runs in the browser at 6g-ntn.live: pick an example of ntn-slice or any other module, change its parameters, and the real ns-3 binary runs on the server.

Watch

Watch on YouTube: the NTN Control Center running and visualizing the toolkit examples, in five minutes.

Install

Every module ships in the ready-built container image of the toolkit (version 3.0.1):

docker pull uzairdocker69/ns3-ntn-toolkit:latest
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest bash

To build from source, clone ns3-ntn-toolkit, which vendors this module under contrib/, or follow the README of this repository (branch ntn-slice-v4).

Cite

If you use ntn-slice, please cite the toolkit article (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}
}

Links