After doing changes in aodv_script.tcl m grtting following error;
I am unable to understand the errors..can you elaborate?
opt(sc) : scen-10-670*670-1000.0
opt(x): 670
opt(y): 670
opt(cpCBR): cbr-10-test-1000.0
opt(cpTCP): tcp-10-test-1000.0
num_nodes is set 10
Can not open results/profile.prof
INITIALIZE THE LIST xListHead
Can not open results/profile.prof
Can not open results/profile.prof
Can not open results/profile.prof
Can not open results/profile.prof
Can not open results/profile.prof
Can not open results/profile.prof
Can not open results/profile.prof
Can not open results/profile.prof
Can not open results/profile.prof
start blackhole attack
Loading connection pattern...
couldn't read file "tcp-10-test-1000.0": no such file or directory
while executing
"source.orig tcp-10-test-1000.0"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $opt(cpTCP)"
invoked from within
"if {$opt(type) == "tcp"} {
source $opt(cpTCP)
} else {
source $opt(cpCBR)
}"
(file "aodv_script.tcl" line 185)
Quote:
Originally Posted by knudfl
# 4 .
$ mkdir results && touch results/profile.prof
$ touch tcp-10-test-1000.0
.. The touch command creates an empty file.
Ns-2.34 patched with the http://www.cs.iastate.edu/~jxiawang/...e/ns2_related/
blackhole files :
Code:
$ ./ns-blackh aodv_script.tcl -type tcp -nn 10 -stop 100
reading the command arguments
reading arguments
reading the command arguments
reading the command arguments
reading arguments
reading the command arguments
reading the command arguments
reading arguments
reading the command arguments
opt(sc) : scen-10-670*670-100
opt(x): 670
opt(y): 670
opt(cpCBR): cbr-10-test-100
opt(cpTCP): tcp-10-test-100
num_nodes is set 10
INITIALIZE THE LIST xListHead
start blackhole attack
Loading connection pattern...
Loading scenario file...
Load complete...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
set attacking_ : 1
the target of blackholw is 4
set attacking_ : 1
attackTimeout, send route request
NS EXITING...
And the same with "-type cbr". Both will create aodv_trace.tr, trace.profile ,,
.. and lots of out.txt* , profile.log*.
-
|