next up previous contents index
Next: 5.1 Simulator Methods: Creating Up: 2. Simulator Basics Previous: 4.3 Other Methods

   
5. Nodes and Packet Forwarding

This chapter describes one aspect of creating a topology in , , creating the nodes. In the next chapterChapterchap:links, we will describe second aspect of creating the topology, , connecting the nodes to form links. Recall that each simulation requires a single instance of the Simulator../ns-/ns-lib.tcl to control and operate that simulation. The class provides instance procedures to create and manage the topology, and internally stores references to each element of the topology. We begin by describing the procedures in the class Simulator Sectionsec:node:simulator. We then describe the instance procedures in the class Node Sectionsec:node:node to access and operate on individual nodes. We conclude with detailed descriptions of the Classifier Sectionsec:node:classifiers from which the more complex node objects are formed.

The procedures and functions described in this chapter can be found in tcl/lib/ns-lib.tcl, tcl/lib/ns-nodes.tcl,
classifier.{cc, h}, classifier-addr.cc, classifier-mcast.cc, classifier-mpath.cc, and, replicator.cc.



 


2000-08-24