12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

32.4 Hierarchical Routing with SessionSimHierarchical routing may be used in conjunction with Session simul<strong>at</strong>io<strong>ns</strong> (see Chapter 42). Session-level simul<strong>at</strong>io<strong>ns</strong> whichare used for running multicast simul<strong>at</strong>io<strong>ns</strong> over very large topologies, gai<strong>ns</strong> additionally in terms of memory savings if usedwith hierarchical routing. See simul<strong>at</strong>ion script ~<strong>ns</strong>/tcl/ex/newmcast/session-hier.tcl for an example of sessio<strong>ns</strong>im over hierrtg.32.5 Comm<strong>and</strong>s <strong>at</strong> a glanceFollowing is a list of hierarchical routing/addressing rel<strong>at</strong>ed comm<strong>and</strong>s used in simul<strong>at</strong>ion scripts:$<strong>ns</strong>_ set-address-form<strong>at</strong> hierarchicalThis comm<strong>and</strong> was used to setup hierarchical addressing in <strong>ns</strong>. However with the recent changes in node APIs, thiscomm<strong>and</strong> has been replaced by<strong>ns</strong>_ node-config -addressType hierarchicalThis cre<strong>at</strong>es a default topology of 3 levels of hierarchy, assigning 8 bits to each level.$<strong>ns</strong>_ set-address-form<strong>at</strong> hierarchical ....This comm<strong>and</strong> cre<strong>at</strong>es a hierarchy of <strong>and</strong> assig<strong>ns</strong> the bits in each level as specified in the arguments.AddrParams set domain_num_ AddrParams set cluster_num_ AddrParams set nodes_num_ <strong>The</strong> above APIs are used to specify the hierarchical topology, i.e the number of domai<strong>ns</strong>, clusters <strong>and</strong> nodes present in thetopology. Default values used by AddrParams (i.e if nothing is specified) provide a topology with a single domain with 4clusters, with each cluster co<strong>ns</strong>isting of 5 nodes.Internal procedures:$Node add-route This procedure is used to add next-hop entries of a destin<strong>at</strong>ion for a given .$hiernode_ split-addrstr This splits up a hierarchical adrress string (say a.b.c) into a list of the addresses <strong>at</strong> each level (i.e, a,b <strong>and</strong> c).284

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!