Having problem implementing blackhole and grayhole in ns2 on Ubuntu linux 11.04
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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"
while executing
"Agent/rtproto/blackholeAODV" instproc init args {
$self next $args
}
(file "blackholeaodv.tcl" line 19)
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
Creating nodes...
INITIALIZE THE LIST xListHead
(_o433 cmd line 1)
invoked from within
"_o433 cmd addr"
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 "_o433" line 2)
(SplitObject unknown line 2)
invoked from within
"_o433 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i $val(nnaodv)} {$i < $val(nn)} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;#disable random motion
$ns_ at 0.01 "$node_(..."
(file "blackholesim.tcl" line 58)
Please guide me to resolve this problem.
Regards,
Last edited by sereneriver21; 06-19-2013 at 01:36 AM.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by sereneriver21
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.
Ubuntu 11.04 is no longer supported by Canonical. If you want to learn something new then you are much better of learning on a system that is supported.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
#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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.