Example · Network Slicing
Two tenants with a rate contract
Tenant 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.
ntn-slice-tenants-leo about 30 s on the server
Parameters (23)
| Parameter | Default | Unit | Description |
|---|---|---|---|
Simulated time --duration | 10 | s | Simulated time (s) (short dashboard default; full-scale value 120.0) |
Number of UEs --numUes | 12 | - | Number of UEs (a third per slice) |
Seed of the UE drop and classes --dropSeed | 0 | - | Seed of the UE drop and classes (0 = use the run number) |
Latitude offset of the UE cluster from the sub-satellite point --clusterOffsetDeg | 0 | deg | Latitude offset of the UE cluster from the sub-satellite point (deg) |
Model decoding errors and retransmissions --blockErrors | true | - | Model decoding errors and retransmissions (false = error-free) |
Policy --policy | contract | - | Policy: pf, qos, policed, limiter, static, contract, contract_eph or contract_trim |
Exponent of the delivered-rate correction --trimGain | 0.5 | - | contract_trim: exponent of the delivered-rate correction |
Static quotas for tenant A, tenant B and mMTC --quotas | 0.4,0.5,0.1 | - | Static quotas for tenant A, tenant B and mMTC (fractions, comma separated) |
Quotas before the first control step --initQuotas | 0.4,0.5,0.1 | - | Quotas before the first control step (fractions) |
Quota floors for tenant A, tenant B and mMTC --floors | 0.1,0.1,0.05 | - | Quota floors for tenant A, tenant B and mMTC (fractions) |
Elevation:bytesPerRbg pairs, comma separated --bprTable | (empty) | - | contract_eph: elevation:bytesPerRbg pairs, comma separated |
Control period --ctrlMs | 100 | ms | Control period (ms) |
Quota headroom over the contract --headroom | 1.05 | - | Quota headroom over the contract (factor) |
Transport-block bytes per application byte of tenant A --overhead | 1 | - | Transport-block bytes per application byte of tenant A (factor) |
Contracted rate of tenant A --contractMbps | 12 | Mbit/s | Contracted rate of tenant A (Mb/s, application bytes) |
Offered load per tenant UE --offeredMbps | 30 | Mbit/s | Offered load per tenant UE (Mb/s) |
Time tenant B stops sending --bIdleStart | 50 | s | Time tenant B stops sending (s) |
Time tenant B resumes --bIdleStop | 70 | s | Time tenant B resumes (s) |
RLC transmission buffer per bearer --rlcBytes | 200000 | bytes | RLC transmission buffer per bearer (bytes) |
Satellite conducted power --satEirpDbm | 55 | dBm | Satellite conducted power (dBm) |
Place the UE cluster at the sub-satellite point this many... --ueBehindS | 40 | s | Place the UE cluster at the sub-satellite point this many seconds before the start (s) |
Warm-up excluded from the statistics --warmupS | 3 | s | Warm-up excluded from the statistics (s) |
Window of the time series --windowS | 5 | s | Window of the time series (s) |
Reproduce it locally
With the example's built-in defaults, in the public Docker image:
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-slice-tenants-leo"With the same parameters the browser run form starts from:
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-slice-tenants-leo --duration=10 --numUes=12 --dropSeed=0 --clusterOffsetDeg=0 --blockErrors=true --policy=contract --trimGain=0.5 --quotas=0.4,0.5,0.1 --initQuotas=0.4,0.5,0.1 --floors=0.1,0.1,0.05 --ctrlMs=100 --headroom=1.05 --overhead=1 --contractMbps=12 --offeredMbps=30 --bIdleStart=50 --bIdleStop=70 --rlcBytes=200000 --satEirpDbm=55 --ueBehindS=40 --warmupS=3 --windowS=5"More Network Slicing examples
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}
}