Regarding Blackhole.tcl file

46 views
Skip to first unread message

Rakesh Patel

unread,
Mar 15, 2019, 1:55:32 PM3/15/19
to Network Simulator 2 (NS2)
Hello sir,

I have problem while executing the Blackhole.tcl file.
The screen shoot is attached.

Sir guide me please.
Screenshot from 2019-03-15 22-58-27.png
blackhole.tcl

knudfl

unread,
Mar 15, 2019, 4:25:58 PM3/15/19
to Network Simulator 2 (NS2)
Hi.

The file you have attached is the "Mohit Tahiliani  blackhole.tcl"

My test
$ ns235-blackh-Mohit-64 blackhole.tcl
num_nodes
is set 7
INITIALIZE THE LIST xListHead
channel
.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_
= 1.5,  distCST_ = 550.0
SORTING LISTS
...DONE!
....  The files blackhole.nam 1.4MB, blackhole.tr 1.2MB are created.

Conditions :
The simulation is to be run with an executable "ns" built with the Mohit Tahiliani blackholeaodv patch:

Build example ... e.g. Ubuntu 18.04 :
tar xvf ns-allinone-2.35_gcc5.tar.gz
https
://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns
-allinone-2.35/
patch
-p0 < blackhole-MohitTahiliani__ns235.patch
export CC=gcc-4.8 CXX=g++-4.8 ./install
cd ns
-2.35/
cp ns
ns-black-M
sudo cp ns
-black-M /usr/local/bin/
Simulation :   $ ns-black-M blackhole.tcl

knudfl

unread,
Mar 15, 2019, 4:41:28 PM3/15/19
to Network Simulator 2 (NS2)
Correction :

The build command is :   export CC=gcc-4.8 CXX=g++-4.8 && ./install
Reply all
Reply to author
Forward
Message has been deleted
0 new messages