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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HierNodeEntry0123401234Level 201234Level 3To HierNodePort DemuxLevel 13-Level classifiers for HierNode (hier-addr:0.2.1)Figure 32.1: Hierarchical classifiersNode i<strong>ns</strong>tproc add-route dst target$self i<strong>ns</strong>tvar rtnotif_# Notify every module th<strong>at</strong> is interested about this# route i<strong>ns</strong>tall<strong>at</strong>ionif $rtnotif_ != ""$rtnotif_ add-route $dst $target$self incr-rtgtable-sizeFor an example of 3 level of hierarchy, the level 1 classifier demuxes for domai<strong>ns</strong>, level 2 for all clusters i<strong>ns</strong>ide the node’sdomain <strong>and</strong> finally classifier 3 demuxes for all nodes in the particular cluster th<strong>at</strong> the node itself resides. For such a topology,a HierNode with address of 0.1.2 looks like the figure below:Thus the size of the routing tables are co<strong>ns</strong>iderably reduced from n 2 as seen for fl<strong>at</strong> routing where each node had to storethe next_hop info of all other nodes in the topology. I<strong>ns</strong>tead, for hierarchical routing, a given node needs to know aboutits neighbours in its own cluster, about the all clusters in its domain <strong>and</strong> about all the domai<strong>ns</strong>. This saves on memoryco<strong>ns</strong>umption as well as run-time for the simul<strong>at</strong>io<strong>ns</strong> using several thous<strong>and</strong>s of nodes in their topology.32.3 Cre<strong>at</strong>ing large Hierarchical topologies<strong>The</strong> previous section describes methods to cre<strong>at</strong>e hierarchical topologies by h<strong>and</strong>. However, there is a script availablein <strong>ns</strong> th<strong>at</strong> converts Georgia-tech’s SGB-graphs into <strong>ns</strong> comp<strong>at</strong>ible hierarchical topologies. Please refer to http://wwwmash.CS.Berkeley.EDU/<strong>ns</strong>/<strong>ns</strong>-topogen.htmlfor downloading as well as i<strong>ns</strong>tructio<strong>ns</strong> on using the hierarchical converter package.See hier-rtg-10.tcl <strong>and</strong> hier-rtg-100.tcl in ~<strong>ns</strong>/tcl/ex for example scripts of hier routing on small <strong>and</strong> large topologies respectively.283

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

Saved successfully!

Ooh no, something went wrong!