help

70 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... 
Reply all
Reply to author
Forward
0 new messages