help

84 views
Skip to first unread message

Muhammad Rafid

unread,
Jul 26, 2022, 1:39:31 AM7/26/22
to Network Simulator 2 (NS2)
I hope everyone will be fine.
My question is how I simulate vanet in which RSUs communicate via LTE and vehicle to vehicle or vehicle to rsu, they communicate via DSRC. 

knudfl

unread,
Jul 26, 2022, 2:19:46 AM7/26/22
to Network Simulator 2 (NS2)
Build example .....
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing&resourcekey=0-EyPhoScBFDb7ul0VFk6FZQ
cd ns-allinone-2.35/
patch -p0 < Wave-DSRC-LTE_ns235.patch       ### DSRC-LTE patch
https://drive.google.com/file/d/1AgG861F6KTaOepMQrt9ESGqCqu6z9OC1/view?usp=sharing
export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
cp ns ns235-Wave-DSRC-LTE
sudo cp ns235-Wave-DSRC-LTE /usr/local/bin/
------------ Simulation -------
ns235-Wave-DSRC-LTE file.tcl
=================================================

DSRC simulation example : DSRC__Tcl_sample-1.tar.gz

Muhammad Rafid

unread,
Jul 26, 2022, 3:07:13 AM7/26/22
to Network Simulator 2 (NS2)
Why do we use the Nakagami Propagation model instead of the Two-Ray model in LTE

knudfl

unread,
Jul 26, 2022, 4:36:09 AM7/26/22
to Network Simulator 2 (NS2)
lte-examples-12.17.tar.gz

$ cd lte-ex_12.17/
$ grep -Rin Nakagami *
$ grep -Rin TwoRayGround *

Nakagami is used in Mac 802.11p examples.
TwoRayGround is used in Mac 802.11 examples,


ihab jabor

unread,
May 23, 2024, 4:06:56 PM5/23/24
to Network Simulator 2 (NS2)
kindly where can I found this file "Wave-DSRC-LTE file.tcl" 

knudfl

unread,
May 23, 2024, 4:48:59 PM5/23/24
to Network Simulator 2 (NS2)
engi ....

"file.tcl" means any relevant simulation example.

..... I guess you can add LTE settings to the DSRC example ........

-

ihab jabor

unread,
May 23, 2024, 5:00:36 PM5/23/24
to Network Simulator 2 (NS2)
Dear Kund Larsen,
Thanks for your response 
kindly, 
-would you please share 4G/5G tcl codes? 
-Would you please share IoT, vehicles, or wireless sensors? 
-Some LTE tcl during execution showed " Segmentation fault (core dumped)?
Yours Sincerely, 
Ihab

knudfl

unread,
May 24, 2024, 3:45:51 AM5/24/24
to Network Simulator 2 (NS2)
engi ...

Segmentation fault : ns-2.35 was issued year 2011, and many files are older.
Please do not expect all simulations to work any more.
Older OS' may be OK with the simulations, e.g. Ubuntu 16.04.
And some simulation are working better with ns-2.33

-

ihab jabor

unread,
May 24, 2024, 11:42:46 AM5/24/24
to Network Simulator 2 (NS2)
grateful for the precious response 

ihab jabor

unread,
May 24, 2024, 12:51:10 PM5/24/24
to Network Simulator 2 (NS2)
Dear Kund, 
Your response is really helpful. Would you please help with how to add the LTE setting to the DSRC example? 
gratitude 

On Thursday, May 23, 2024 at 11:48:59 PM UTC+3 knudfl wrote:

ihab jabor

unread,
May 26, 2024, 4:49:12 PM5/26/24
to Network Simulator 2 (NS2)
Dear Kund, 
I've installed ns-2.33, where I paid attention to editing all relevant files.
Nam is not working as attached below : VirtualBox_Ubuntu_18.04.3_VirtualBox_Image_LinuxVMImages.com_26_05_2024_23_43_02.png

On Friday, May 24, 2024 at 10:45:51 AM UTC+3 knudfl wrote:

knudfl

unread,
May 26, 2024, 5:34:36 PM5/26/24
to Network Simulator 2 (NS2)
engi ...

NAM is a separate application, so any valid 'nam' binary can be used. (The Ubuntu nam package is usually corrupt.)
Please install a valid package = nam_1.14_amd64.deb

$ cd Downloads/
$ sudo apt install ./nam_1.14_amd64.deb


-

ihab jabor

unread,
May 27, 2024, 10:37:39 AM5/27/24
to Network Simulator 2 (NS2)
Dear Kund, 
Gratitude for your help, may I make a donation to support your help... 

Fatih Koç

unread,
Jan 7, 2026, 8:24:11 AM (5 days ago) Jan 7
to Network Simulator 2 (NS2)

Hi I want to deploy RSU and vehicles are communicating through DSRC protocol, is there any example source code related? I want to test performance delay of packet transfer from one vehicle to another over DSRC enabled  RSU. Thanks 

Charles Pandian

unread,
Jan 7, 2026, 12:06:01 PM (5 days ago) Jan 7
to ns-u...@googlegroups.com

As mentioned in my previous reply, ns-3 lacks a complete implementation of the DSRC stack. The code you may encounter labeled as 'ns-2-dsrc' typically only mimics primitive functions through an 802.11p.tcl script and basic application-layer logic.

If you are conducting serious research on VANET/DSRC, results obtained through these primitive ns-2 extensions will not accurately reflect real-world scenarios. This is because they fail to incorporate essential multi-channel scheduling and routing capabilities inherent to a standard DSRC stack.

Therefore, if this is for scholarly research and you are in the early stages, I strongly recommend avoiding ns-2 for VANET/DSRC simulations to ensure the validity of your findings.


Charles Pandian,


--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ns-users/fdb38f29-ac47-41ca-968f-67cf988d9c27n%40googlegroups.com.

Fatih Koç

unread,
Jan 7, 2026, 12:09:11 PM (5 days ago) Jan 7
to ns-u...@googlegroups.com
What kind of network simulator do you think can be used for this so?Do you have any idea in this term? I have seen mininet WiFi and omnet as well but for both I also face difficulties to deploy a setup. 

M. Fatih Koç 
Ph.D. candidate at Technological University Dublin



Charles Pandian

unread,
Jan 7, 2026, 12:28:58 PM (5 days ago) Jan 7
to ns-u...@googlegroups.com

If you are conducting research on VANETs using the DSRC protocol stack, it is vital to first develop a deep understanding of what DSRC actually entails. (A good starting point is my previous post: 'Confusions in doing VANET simulations using DSRC/WAVE under ns-3 or ns-2').

image.png

(Even though you can not find a complete implementation of it in any simulator,) Try to understand each and every component of an ideal DSRC protocol stack.

The reason is that DSRC is uniquely and brilliantly designed specifically for VANET communication scenarios. However, it is not yet fully implemented in most simulators. Furthermore, the original scope of DSRC found in older white papers is evolving rapidly due to the practical integration of 4G/5G technology.

Currently, Veins (for OMNeT++) is the framework closest to the original DSRC drafts. However, you should also explore the 'ms-van3t' extension for ns-3. As a Multi-Stack VANET Framework, it goes beyond the original DSRC stack by attempting to utilize modern mobile communication technologies for V2V and V2X communication.

But I prefer using ns-3 (ms-van3t') and developing your protocols from scratch, under this framework.

Charles Pandian,



Fatih Koç

unread,
Jan 8, 2026, 3:44:06 AM (4 days ago) Jan 8
to ns-u...@googlegroups.com
Thank you for the information


M. Fatih Koç 
Ph.D. candidate at Technological University Dublin

Reply all
Reply to author
Forward
0 new messages