[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Port a loop free AODV, but sth wrong, help!



Hi,
I am trying to port a CMU-based AODV, which can provide loop free
functions. It can run on ns2.1b4a very well. After I modified some
grammer errors, it passed the compiling phrase. But when I run it on
ns2.1b7a, it shows some errors.
My run.tcl is good for original AODV in 2.1b7a. I think there are some
significant changes from 2.1b4 to 2.1b7 that result in this matter.
Could anybody provide some hints what you did to port CMU-based AODV to
current ns2.1b7?
Thanks -Dong

-------------------
The running problems:
******: no errormodel specified.
num_nodes is set 50
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
#########here is the display of errors###############
    (_o19 cmd line 1)
    invoked from within
"_o19 cmd tracetarget _o31"
    invoked from within
"catch "$self cmd $args" ret"
    (procedure "_o19" line 2)
    (SplitObject unknown line 2)
    invoked from within
"$ragent tracetarget $T"
    (procedure "_o16" line 14)
    (Node/MobileNode agenttrace line 14)
    invoked from within
"$node agenttrace $tracefd"
    (procedure "_o3" line 75)
    (Simulator create-wireless-node line 75)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 14)
    (Simulator node line 14)
    invoked from within
"$ns_ node"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $opt(nn) } {incr i} {
 set node_($i) [$ns_ node]
 $node_($i) random-motion 0  ;# disable random motion
}"
    (file "/scripts/run.tcl" line 416)
++++++++++++++++++++++++++++++
The line 416 in my run.tcl is "
for {set i 0} {$i < $opt(nn) } {incr i} {
 set node_($i) [$ns_ node]
 $node_($i) random-motion 0  ;# disable random motion
}
"
_________________________________________________