Mariem, The error indicates that the hierarchical addressing scheme is not setup properly. You should double check the assignment of the domains, clusters, and nodes. The following link may help http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html
Richard. -----Original Message----- From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On Behalf Of Mariem Thaalbi Sent: Wednesday, May 06, 2009 9:15 AM To: ns-users@ISI.EDU Subject: [ns] error while running a script Hello, I have written a script file which deals with vertical handoff between wimax and wifi, but while executing it, i had the following error: num_nodes is set 4 INITIALIZE THE LIST xListHead At 0.000000 in 5.0.0 MIH is adding mac 1 _o242 channelID = 2412000000.000000 _o292 channelID = 2412000000.000000 At 0.000000 in 6.0.0 MIH is adding mac 2 At 0.000000 in 6.0.0 MIH is adding mac 4 At 0.000000 in 4.0.0 MIH is adding mac 3 At 0.000000 in 3.0.0 MIH is adding mac 0 At 0.000000 in 6.0.0 Interface Manager : Flow added Running simulation send-hlastdata: # args do not match (_o336 cmd line 1) invoked from within "_o336 cmd send-num-of-nodes 1 1 1 3 2 1 1" 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 "_o336" line 2) (SplitObject unknown line 2) invoked from within "_o336 send-num-of-nodes 1 1 1 3 2 1 1" ("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 "_o336" 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 "essai1.tcl" line 389) Any help please, thanks