Skip to content
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)

Defaults are the values the browser run form starts from. Pass any of them on the command line as --name=value.

ParameterDefaultUnitDescription
Simulated time
--duration
10sSimulated 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
0degLatitude 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)
Allowed: true, false
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
100msControl 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
12Mbit/sContracted rate of tenant A (Mb/s, application bytes)
Offered load per tenant UE
--offeredMbps
30Mbit/sOffered load per tenant UE (Mb/s)
Time tenant B stops sending
--bIdleStart
50sTime tenant B stops sending (s)
Time tenant B resumes
--bIdleStop
70sTime tenant B resumes (s)
RLC transmission buffer per bearer
--rlcBytes
200000bytesRLC transmission buffer per bearer (bytes)
Satellite conducted power
--satEirpDbm
55dBmSatellite conducted power (dBm)
Place the UE cluster at the sub-satellite point this many...
--ueBehindS
40sPlace the UE cluster at the sub-satellite point this many seconds before the start (s)
Warm-up excluded from the statistics
--warmupS
3sWarm-up excluded from the statistics (s)
Window of the time series
--windowS
5sWindow of the time series (s)

Reproduce it locally

With the example's built-in defaults, in the public Docker image:

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

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

List every argument with ./ns3 run "ntn-slice-tenants-leo --PrintHelp".

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.

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