Example · Vehicular (V2X)
PC5 sidelink BSM broadcast
Vehicles broadcast SAE J2735 BSMs over NR PC5 sidelink with Mode 2 sensing-based resource selection and no gNB. Reports packet reception ratio against distance (TR 38.885).
ntn-v2x-pc5-sidelink-bsm about 3 s on the server
Parameters (10)
| Parameter | Default | Unit | Description |
|---|---|---|---|
Vehicles on the highway --numVehicles | 20 | - | Vehicles on the highway |
Subchannels in the sidelink resource pool --numSubchannels | 5 | - | Subchannels in the sidelink resource pool |
Inter-vehicle spacing --spacingM | 25 | m | Inter-vehicle spacing (m) |
BSM period --bsmPeriodMs | 100 | ms | BSM period (ms) |
Simulated duration --duration | 5 | s | Simulated duration (s) |
PC5 transmit power --txPowerDbm | 23 | dBm | PC5 transmit power (dBm) |
Wave 7A --uuPeriodMs | 1000 | ms | Wave 7A: period of the BSM each vehicle reports to the V2X server over the NR-NTN uplink (ms); 0 = sidelink only |
Satellite altitude --altitudeKm | 600 | km | Satellite altitude (km) |
Highway start, ground distance north of the t=0... --highwayNorthKm | 300 | km | Highway start, ground distance north of the t=0 sub-satellite point (km) |
Feeder gateway ground distance north of the highway --gwDistanceKm | 500 | km | Feeder gateway ground distance north of the highway (km) |
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-v2x-pc5-sidelink-bsm"With the same parameters the browser run form starts from:
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-v2x-pc5-sidelink-bsm --numVehicles=20 --numSubchannels=5 --spacingM=25 --bsmPeriodMs=100 --duration=5 --txPowerDbm=23 --uuPeriodMs=1000 --altitudeKm=600 --highwayNorthKm=300 --gwDistanceKm=500"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.
@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}
}