Skip to content
Example · Vehicular (V2X)

Direct or relayed LEO uplink

Vehicle UEs on a measured NR LEO cell in a street whose facades and a moving truck block the radio per RB (TR 38.901 blockage model B geometry). Relay selection uses measured RSRP; remote UEs leave Uu and reach the network through a relay over PC5 Mode 2 (scripted=1 for the old decision-only mode).

ntn-v2x-real-stack about 60 s on the server

Parameters (17)

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

ParameterDefaultUnitDescription
Simulation duration
--duration
20sSimulation duration (s)
Number of vehicle-UEs
--numVehicles
8-Number of vehicle-UEs
Satellite altitude
--altitude
550kmSatellite altitude (km)
Satellite EIRP / gNB Tx power
--satEirpDbm
-1dBmSatellite EIRP / gNB Tx power (dBm); -1 = backend default 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
--radio
nr-Radio backend: nr (FR1) or mmwave
NLOS blockage loss on shadowed vehicles
--blockageDb
14dBNLOS blockage loss on shadowed vehicles (dB)
Minimum direct LEO SINR
--minDirectSnr
6dBMinimum direct LEO SINR (dB)
Max V2V relay range
--maxV2vRange
1500mMax V2V relay range (m)
Scripted
--scripted
false-1 = earlier mode: odd vehicles get blockageDb inside the relay decision only, not on the radio
Allowed: true, false
Facade distance from the lane center
--streetHalfWidth
10mFacade distance from the lane center (m)
Building block length along the street
--bldLen
60mBuilding block length along the street (m)
Cross-street gap between blocks
--bldGap
20mCross-street gap between blocks (m)
Lowest facade height
--bldMinH
20mLowest facade height (m)
Highest facade height
--bldMaxH
120mHighest facade height (m)
RNG stream of the facade-height draw
--cityStream
7-RNG stream of the facade-height draw
Blockage Plane
--blockagePlane
spectrum-spectrum (per-RB blockage loss on the radio, default) or scalar (one loss per link at the carrier)
PC5 SPS reservation period of every vehicle
--pc5PeriodMs
5msPC5 SPS reservation period of every vehicle (ms)

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-v2x-real-stack"

With the same parameters the browser run form starts from:

shell
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-v2x-real-stack --duration=20 --numVehicles=8 --altitude=550 --satEirpDbm=-1 --radio=nr --blockageDb=14 --minDirectSnr=6 --maxV2vRange=1500 --scripted=false --streetHalfWidth=10 --bldLen=60 --bldGap=20 --bldMinH=20 --bldMaxH=120 --cityStream=7 --blockagePlane=spectrum --pc5PeriodMs=5"

List every argument with ./ns3 run "ntn-v2x-real-stack --PrintHelp".

More Vehicular (V2X) 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}
}