[ns] Very Urgent: Deadline approaching

Sunil Kumar Singh sunilks at iitg.ernet.in
Wed Apr 13 12:17:33 PDT 2005


Hi all,

I am simulating a Mobile IP Scenario in which I want to simulate
15 Mobile Nodes but I am unable to simulate for more than 5 MNs. Till I
run my script for 5 MNs, everything works fine but as soon as I define my
6th MN, I get error. How do I correct that? If I don't define MN_6(by
commenting it), everything works fine but if I uncoment it I get the
following error(Part of Script attached). :

get-node-id-by-addr:Cannot find node with given address
    while executing
"error "get-node-id-by-addr:Cannot find node with given address""
    (procedure "_o3" line 10)
    (Simulator get-node-id-by-addr line 10)
    invoked from within
"$self get-node-id-by-addr $nh"
    (procedure "_o3" line 48)
    (Simulator compute-hier-routes line 48)
    invoked from within
"$self compute-hier-routes "
    (procedure "_o3" line 3)
    (Simulator compute-routes line 3)
    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"
    (procedure "_o542" line 8)
    (RouteLogic configure line 8)
    invoked from within
"[$self get-routelogic] configure"
    (procedure "_o3" line 4)
    (Simulator run line 4)
    invoked from within
"$ns_ run
"
    (file "simula.tcl" line 347)


Part of my simulation script is:

set ns_ [new Simulator]
$ns_ node-config -addressType hierarchical

AddrParams set domain_num_ 5 
 lappend cluster_num 2 1 1 2 2
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 1 2 20 1 1 10 1 10
AddrParams set nodes_num_ $eilastlevel


set topo [new Topography]
$topo load_flatgrid 1000 1000
set god_ [create-god 15]


#HA - 5
set HA [$ns_ node 1.0.0]
#[$HA set regagent_] priority 3

#MN - 6
$ns_ node-config -wiredRouting OFF

set MN [$ns_ node 1.0.1]
[$MN set regagent_] set home_agent_ [AddrParams addr2id [$HA node-addr]]

set MN_2 [$ns_ node 1.0.2]
[$MN_2 set regagent_] set home_agent_ [AddrParams addr2id [$HA node-addr]]

set MN_3 [$ns_ node 1.0.3]
[$MN_3 set regagent_] set home_agent_ [AddrParams addr2id [$HA node-addr]]

set MN_4 [$ns_ node 1.0.4]
[$MN_4 set regagent_] set home_agent_ [AddrParams addr2id [$HA node-addr]]

set MN_5 [$ns_ node 1.0.5]
[$MN_5 set regagent_] set home_agent_ [AddrParams addr2id [$HA node-addr]]

set MN_6 [$ns_ node 1.0.6]
[$MN_6 set regagent_] set home_agent_ [AddrParams addr2id [$HA node-addr]]

Hoping nay Praying for a quick response
Sunil

 




More information about the Ns-users mailing list