Please help me in answering following qiuestions regarding implementation of 
SWAN code in ns2.1b9a:

1. I didnt get following files from SWANs website: 
http://comet.columbia.edu/swan/simulation.html

set opt(cp)             "../Scene/S1/cbr-50-50-1-512.tcl"
set opt(sc)             "../Scene/S1/mobility.tcl"

2. When I run, I get the following error: 

AODV simulation
# 1 run ...
num_nodes is set 5
invalid command name "//_o14"
    while executing
"//$self instvar arptable_ nifs_ netif_ mac_ ifq_ ll_ imep_ inerr_ outerr_ 
fec_"    (procedure "_o14" line 2)
    (Node/MobileNode add-interface line 2)
    invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_  $ifqType_ 
$ifqlen_ $phyType_ $antType_  $inerrProc_ $outerrProc_ $FECProc_"
    (procedure "_o3" line 64)
    (Simulator create-wireless-node line 64)
    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 "swan.tcl" line 208)

Cheers
Haseeb

Reply via email to