Unable to install secuty patch in ns2.35

38 views
Skip to first unread message

Washif akhtar

unread,
Jul 6, 2024, 11:51:27 AM7/6/24
to Network Simulator 2 (NS2)
I want to run s-dsrc(secured dsrc protocol) in ns-2.35, i am using ubuntu 18.04 (bionic beaver), i have installed dsrc patch and it is working but the security patch is not working 

i tried what is mentioned in this website: https://www.nsnam.com/2015/03/security-protocol-packet-in-ns2.html

but getting error, i was not able to run security.tcl, how can i tackle this

knudfl

unread,
Jul 9, 2024, 4:24:51 PM7/9/24
to Network Simulator 2 (NS2)
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 < DSRC+security_ns235.patch
https://drive.google.com/drive/folders/1jwGdVqiKBlrFIA3tE84nfy2SJSsr23HM?usp=drive_link
export CC=gcc-4.8 CXX=g++-4.8
./install
cd ns-2.35/
cp ns ns235-DSRC+security
sudo cp ns235-DSRC+security /usr/local/bin/
------
$ ns235-DSRC+security security.tcl       ## No issues !
_______________________

Alternatively  .........
Add Security to existing ns-2.35 patched with DSRC:
cd ns-allinone-2.35/
patch -p0 < security_ns235.patch
..... Replace common/packet.h and tcl/lib/ns-default.tcl  https://drive.google.com/drive/folders/1jwGdVqiKBlrFIA3tE84nfy2SJSsr23HM?usp=drive_link
export CC=gcc-4.8 CXX=g++-4.8
./install
cd ns-2.35/
cp ns ns235-DSRC+security
sudo cp ns235-DSRC+security /usr/local/bin/
_____________________

Your errors : Please do not use plain ns for simulations: Your current ns is probably an ns patched with DSRC only!
ns-new-name is the safe choice →
https://docs.google.com/document/d/1dbrFE8CDMNbE5Kmq4duZl6bUTP7PXdVps9AGvzVi0gM/edit?usp=share_link
Reply all
Reply to author
Forward
0 new messages