[ns] how to set hierarchical addresses?
galans79 at yahoo.it
Thu Apr 14 02:49:52 PDT 2005
I seriously need help about hierarchical addressing on a MANET network.
I'm trying to split the network into 2 groups by setting a hierarchical
addressing for the nodes in it.
I've added the following lines in my tcl script:
$ns_ set-address-format hierarchical 2 5 6
set node_(0) [$ns_ node 1.0]
set node_(1) [$ns_ node 1.1]
set node_(2) [$ns_ node 1.2]
set node_(52) [$ns_ node 1.52]
set node_(53) [$ns_ node 0.0]
set node_(54) [$ns_ node 0.1]
set node_(55) [$ns_ node 0.2]
set node_(63) [$ns_ node 0.10]
AddrParams set domain_num_ 2
lappend cluster_num 1 1
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 11 53
AddrParams set nodes_num $eilastlevel
But when I watch the trace file it has addresses like -Is 1468004.0 or
instead of the addresses I have inserted on the script.
Please can someone tell me what I could do to solve this problem?
Thanks to all in advance.
More information about the Ns-users