This chapter describes the internals of hierarchical routing implemented in ns. This chapter consists of two sections. In the first section we give an overview of hierarchical routing. In the second section we walk through the API's used for setting hierarchical routing and describe the architecture, internals and code path for hier rtg in the process.
The functions and procedures described in this chapter can be found in ~ns/tcl/lib/ns-hiernode.tcl, tcl/lib/ns-address.tcl, tcl/lib/ns-route.tcl and route.cc.