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

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

ParameterDefaultUnitDescription
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
25mInter-vehicle spacing (m)
BSM period
--bsmPeriodMs
100msBSM period (ms)
Simulated duration
--duration
5sSimulated duration (s)
PC5 transmit power
--txPowerDbm
23dBmPC5 transmit power (dBm)
Wave 7A
--uuPeriodMs
1000msWave 7A: period of the BSM each vehicle reports to the V2X server over the NR-NTN uplink (ms); 0 = sidelink only
Satellite altitude
--altitudeKm
600kmSatellite altitude (km)
Highway start, ground distance north of the t=0...
--highwayNorthKm
300kmHighway start, ground distance north of the t=0 sub-satellite point (km)
Feeder gateway ground distance north of the highway
--gwDistanceKm
500kmFeeder gateway ground distance north of the highway (km)

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-pc5-sidelink-bsm"

With the same parameters the browser run form starts from:

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

List every argument with ./ns3 run "ntn-v2x-pc5-sidelink-bsm --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}
}