[ns] Error in simulation
# setup TCP connections between a wired node and the MobileHost set tcp1 [new Agent/TCP] $tcp1 set class_ 2 set sink1 [new Agent/TCPSink] $ns attach-agent $W(0) $tcp1 $ns attach-agent $MH $sink1 $ns connect $tcp1 $sink1 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 $ns at $opt(ftp1-start) $ftp1 start # source connection-pattern and node-movement scripts if { $opt(cp) == } { puts *** NOTE: no connection pattern specified. set opt(cp) none } else { puts Loading connection pattern... source $opt(cp) } if { $opt(sc) == } { puts *** NOTE: no scenario file specified. set opt(sc) none } else { puts Loading scenario file... source $opt(sc) puts Load complete... } # Define initial node position in nam for {set i 0} {$i $opt(nn)} {incr i} { # 20 defines the node size in nam, must adjust it according to your # scenario # The function must be called after mobility model is defined $ns initial_node_pos $node($i) 20 } # Tell all nodes when the siulation ends for {set i 0} {$i $opt(nn) } {incr i} { $ns at $opt(stop).0 $node($i) reset; } $ns at $opt(stop).0 $HA reset; $ns at $opt(stop).0 $FA reset; $ns at $opt(stop).0002 puts \NS EXITING...\ ; $ns halt $ns at $opt(stop).0001 stop proc stop {} { global ns tracefd namtrace close $tracefd close $namtrace exec nam wireless6-out.nam exit 0 } # some useful headers for tracefile puts $tracefd M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp \ $opt(adhocRouting) puts $tracefd M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed) puts $tracefd M 0.0 prop $opt(prop) ant $opt(ant) puts Starting Simulation... $ns run --- Error: num_nodes is set 3 Error!! str2addr:Address 148151463 outside range of address field length 1024
[ns] Error in Simulation wired-cum-wireless
Hi ! I am simulating an wired-cum-wireless scenario (3 nodes thats server video, voice and datas are linked in a router that is linked in another node. This last one is linked in a BS thats send the information to 3 receivers mobilenodes without moving (SS). In the 3 server nodes I attached: server node 1 (video) : udp / cbr server node 2 (voice): udp / cbr server node 3 (datas): tcp / ftp In the mobile nodes I attached: mobile node 1 ( receive video) : null mobile node 2 (receive voice): null mobile node 3 (receive datas): sink When I start the simulation appear the following error. Someone can help me??? whats these errors means? send-hlastdata: # args do not match (_o236 cmd line 1) invoked from within _o236 cmd send-num-of-nodes 1 4 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 _o236 line 2) (SplitObject unknown line 2) invoked from within _o236 send-num-of-nodes 1 4 (eval body line 1) invoked from within eval $rl send-num-of-nodes $nodes_num_ (procedure _o3 line 32) (Simulator hier-topo line 32) invoked from within $self hier-topo $r (procedure _o3 line 11) (Simulator compute-hier-routes line 11) invoked from within $self compute-hier-routes invoked from within if [Simulator hier-addr?] { $self compute-hier-routes } else { $self compute-flat-routes } (procedure _o3 line 2) (Simulator compute-routes line 2) invoked from within [Simulator instance] compute-routes (procedure Agent/rtProto/Static line 2) (Agent/rtProto/Static init-all line 2) invoked from within Agent/rtProto/Static init-all invoked from within if [info exists rtprotos_] { foreach proto [array names rtprotos_] { eval Agent/rtProto/$proto init-all $rtprotos_($proto) } } else { Agent/rtProto/St... (procedure _o236 line 3) (RouteLogic configure line 3) invoked from within [$self get-routelogic] configure (procedure _o3 line 5) (Simulator run line 5) invoked from within $ns run (file adaptação_wimax1_v2.tcl line 285) Thankss very much