Following is a list of hierarchical routing/addressing related commands used in simulation scripts:
$ns_ set-address-format hierarchical nlevels #bits in level1....#bits in level n
This command creates a hierarchy of <nlevels> and assigns the bits in each level
as specified in the arguments.
AddrParams set domain_num_ \The above APIs are used to specify the hierarchical topology, i.e the number of domains, clusters and nodes present in the topology. Default values used by AddrParams (i.e if nothing is specified) provide a topology with a single domain with 4 clusters, with each cluster consisting of 5 nodes.AddrParams set cluster_num_ \ AddrParams set nodes_num_ \
Internal procedures:
$Hiernode_ add-hroute dst target
This procedure is used to add next-hop entries of a destination <dst> for a
given <target>. Since hier-nodes have multiple classifiers, one for each level
of hierarchy, add-hroute populates hier-classifiers correctly and should be
used in place of add-route used for flat-routing.
$hiernode_ split-addrstr str
This splits up a hierarchical adrress string (say a.b.c) into a list of
the addresses at each level (i.e, a,b and c).