next up previous contents index
Next: 5. Transport Up: 26. Hierarchical Routing Previous: 26.4 Hierarchical Routing with

26.5 Commands at a glance

Following is a list of hierarchical routing/addressing related commands used in simulation scripts:

$ns_ set-address-format hierarchical
This command was used to setup hierarchical addressing in . However with the recent changes in node APIs, this command has been replaced by
ns_ node-config -addressType hierarchical
This creates a default topology of 3 levels of hierarchy, assigning 8 bits to each level.

$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_ \
AddrParams set cluster_num_ \
AddrParams set nodes_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.

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).


next up previous contents index
Next: 5. Transport Up: 26. Hierarchical Routing Previous: 26.4 Hierarchical Routing with

2000-08-24