Hi all,
>
> I'm working using NS version - 2.29 to simulate different routing protocols
> (AODV, DSDV, TORA & DSR). I used 62 nodes of which 50 wireless routers, 10
> mobile nodes, 1 wired node and 1 gateway node. The simulation area is 1200m
> X 1200m with nodes 200m apart form each other. Here, I get the simulation
> of AODV & DSDV correctly but while running the code for DSR & TORA, I
> obtain the following errors respectively.
> ================================================
> For DSR
> ================================================
> $ num_nodes is set 62
> INITIALIZE THE LIST xListHead
> can't read "ragent_": no such variable
> while executing
> "subst $[subst $var]"
> (procedure "_o70" line 5)
> (SplitObject set line 5)
> invoked from within
> "$self set ragent_"
> (procedure "_o70" line 3)
> (Node/MobileNode agenttrace line 3)
> invoked from within
> "$node agenttrace $tracefd"
> (procedure "_o3" line 96)
> (Simulator create-wireless-node line 96)
> invoked from within
> "_o3 create-wireless-node 1.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 1.0.0"
> invoked from within
> "set gw(0) [$ns node 1.0.0]"
> (file "Fex3-1.tcl" line 136)
> ===================================================
> For TORA
> ===================================================
>
> $ num_nodes is set 62
> INITIALIZE THE LIST xListHead
>
> (_o78 cmd line 1)
> invoked from within
> "_o78 cmd port-dmux _o93"
> 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 "_o78" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$agent port-dmux $dmux_"
> (procedure "_o70" line 11)
> (Node/MobileNode add-target-rtagent line 11)
> invoked from within
> "$self add-target-rtagent $agent $port"
> (procedure "_o70" line 23)
> (Node/MobileNode add-target line 23)
> invoked from within
> "$self add-target $agent $port"
> (procedure "_o70" line 15)
> (Node attach line 15)
> invoked from within
> "$node attach $ragent [Node set rtagent_port_]"
> (procedure "_o3" line 72)
> (Simulator create-wireless-node line 72)
> invoked from within
> "_o3 create-wireless-node 1.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 1.0.0"
> invoked from within
> "set gw(0) [$ns node 1.0.0]"
> (file "Fex3-1.tcl" line 136)
> ===============================================
> Then, I tried to correct the code, but not successful yet !
> Therefore, please can you help me in fixing this problem?
>
> thank you in advance !
>