Having problem implementing blackhole and grayhole in ns2 on Ubuntu linux 11.04
Dear Sir,
I am new to ns2 and trying to implement blackhole and grayhole attacks in ns2 installed on Ubuntu 11.04 32-bit machine. First of all i am getting the following error in running "ns blackholeaodv.tcl" OR "ns grayholeaodv.tcl" Code:
invalid command name "Agent/rtproto/blackholeAODV" If i use the tcl file for blackhole available at above mentioned link and generating scenario file using "./setdest" and cbr file using "ns cbrgen.tcl" then it gives following error Code:
num_nodes is set 20 Regards, |
Quote:
I.e. examples.tcl with "rtproto/.." : Either edit , or don't use the example. blackholeaodv-btechnos.tcl http://www.btechnos.com/2012/05/tcl-...blackhole.html : Works OK here. Did you read this http://www.linuxquestions.org/questi...blackholeaodv/ > http://www.linuxquestions.org/questi...-4175460864/#5 > Five examples "blackholeAODV*.tcl that works ... > https://docs.google.com/file/d/0B7S2...it?usp=sharing - |
Quote:
|
@Knudfl
Thanks for your blackholeaodv examples. But i want to ask where to put the file "blackholeaodv.tcl" which was made available with "blackhole.tar.gz" and has following contents: Code:
|
# 4 .
All blackholeaodv examples can be located anywhere. None of the scripts have any other dependencies than accompanied the cbr and scen files. About the post #4 "blackholeaodv.tcl" from "blackholeaodv.zip" or similar : Any location. Not really an issue, as the script can't be used. P.S. : When you show error output (post #1) or code (post #4) : Code tags must be used .. http://www.linuxquestions.org/questi...gs-4175464257/ Please hit the 'Edit' button, and edit posts #1 and #4. - |
About Mesh topology in ns2
@knudfl
Can you send me the tcl script to simulate mesh topology in ns2. And thanks for earlier posts. |
# 6 .
"Hybrid Wireless Mesh Protocol" : HWMP. Patch, rev. 183, #6 http://www.linuxquestions.org/questi...28-a-860439/#6 Tcl scripts, #14 http://www.linuxquestions.org/questi...8-a-860439/#14 > rev. 183, hwmp.tcl (4.5 kB) and mesh_hwmp_example.tcl (4.2 kB), and an edited tcl/ex/wireless-mitf.tcl . New rev.282 hwmp.tcl (8.9 kB), mesh_hwmp_example.tcl (8.5 kB), wireless-mitf.tcl > hwmp-ns233-patched_rev282-1.tar.bz2 > > https://docs.google.com/file/d/0B7S2...it?usp=sharing Or ns-2.33_hwmp_rev282.patch.bz2 > > https://docs.google.com/file/d/0B7S2...it?usp=sharing HWMP at LQ http://www.linuxquestions.org/questions/tags/hwmp/ - |
#6, #7.
Found another set of {hwmp.tcl, mesh_hwmp_example.tcl, wireless-mitf.tcl} in my backup. The files are "ns-2.34" : hwmp_rev282-ns234-patch.tar.bz2, ref. ns-2.34_hwmp_rev282.patch.bz2 The patched files https://docs.google.com/file/d/0B7S2...it?usp=sharing The original patch https://docs.google.com/file/d/0B7S2...it?usp=sharing ( The original links for rev282 are down.) - |
# 6 .
MESH : IEEE 802.16d Wireless Mesh Networks http://cng1.iet.unipi.it/wiki/index.php/Ns2mesh80216 http://info.iet.unipi.it/~cng/ns2mesh80216/ > http://cng1.iet.unipi.it/archive/ns2...81113.patch.gz > ns2mesh80216-2.33-081113.patch.gz .. providing ns-2.33/wimax/tcl/mesh.tcl , etc. ( and ns-2.33/tcl/ex/voip/voip.tcl ). - |
@knudfl
Thanks a lot man..!!! You are a savior..seriously!! keep up the good work man and keep guiding us. |
i run this tcl script but got an following error
a@a-G31T-M:~/psr$ ns sample2.tcl
num_nodes is set 20 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (_o3 cmd line 1) invoked from within "_o3 cmd node-config* -energyModel EnergyModel -initialEnergy 20 -txPower 0.744 -rxPower 0.0648 -idlePower 0.05 -sensePower 0.0175" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o3" line 2) (SplitObject unknown line 2) invoked from within "$ns node-config* -energyModel EnergyModel \ -initialEnergy 20 \ -txPower 0.744 \ -rxPower 0.0648 \ -idlePower 0.05 \ -sensePower 0.0175" (file "sample2.tcl" line 42) |
Post #11, @psr2016 : Welcome to LQ.
This thread is about "blackhole-aodv". If your question isn't about blackhole-aodv : Please hit the 'Report' button, and ask for your post to be moved to a new thread in e.g. 'Linux - Software'. P.S. : The official "sample2.tcl" is an nsmiracle example. See all_tcl-examples-2.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing Please upload your file.tcl : as an attachment to your new thread or to an external site like 'Google Drive' or Dropbox. - |
how i run genetic algorithm in ns2
|
Re #13, @psr2016 : Please read post #12 ...
This thread is about "blackhole-aodv" : You can ask about blackhole. Nothing else. For other ns2 subject : Please start a new thread → → → http://www.linuxquestions.org/questi...ux-software-2/ >>> 'New Thread' |
All times are GMT -5. The time now is 09:26 AM. |