Hello,
I'm trying to use NOAH to set up a multi-hop static route. I believe that I
have added the necessary files, and made the necessary changes listed on the
NOAH web site (http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/) in the right
spots, but I am receiving an error when creating a node. I would appreciate it
if someone could spot my error. One thing I should mention is that I am using
ns-2.29 instead of ns-2.26, which the instructions are for (is NOAH compatible
with 2.29?), and I am using hierarchical addressing.
First thing, here is the error I get when running ns (it occurs in ns-lib.tcl):
can't read "node": no such variable
while executing
"$node node-addr"
(procedure "_o3" line 4)
(Simulator create-noah-agent line 4)
invoked from within
"$self create-noah-agent $node"
("NOAH" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
NOAH {
set ragent [$self create-noah-agent $node]
}
DSR {
$self at ..."
(procedure "_o3" line 11)
(Simulator create-wireless-node line 11)
invoked from within
"_o3 create-wireless-node 0.0.0"
("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 [lindex $addresses 0]"
invoked from within
"set node_(0) [$ns_ node [lindex $addresses 0]]"
(file "sansfil3.tcl" line 128)
In my call to $ns_ node-config, I have -adhocRouting NOAH. I think that's
right, although I haven't found any examples for NOAH. Also, I'm not sure if my
using hierarchical addressing is the problem or not. Though, since I do have
wired elements in my network, I think I'm required to use hierarchical
addresses (right?). I have tried setting wiredRouting to OFF just to see if it
makes a difference, but I received the same error.
If somebody has encountered this problem, or has a guess as to how I might fix
it, I would appreciate it.
Thank you,
Tyler