Hi You can find the simulator class here in Simulator.cc file in ns2:
http://www-rp.lip6.fr/ns-doc/ns226-doc/html/simulator_8cc-source.htm static class SimulatorClass <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classSimulatorClass.htm> : public TclClass <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classTclClass.htm> { 00028 public: 00029 <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classSimulatorClass.htm#SimulatorClassa0> SimulatorClass <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classSimulatorClass.htm#SimulatorClassa0>() : TclClass <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classTclClass.htm>("Simulator <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classSimulator.htm>") {} 00030 <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classSimulatorClass.htm#SimulatorClassa1> TclObject <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classTclObject.htm>* create <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classSimulatorClass.htm#SimulatorClassa1>(int argc, const char*const* argv) { 00031 return (new Simulator <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classSimulator.htm>); 00032 } 00033 } simulator_class <http://www-rp.lip6.fr/ns-doc/ns226-doc/html/simulator_8cc.htm#a0>; Regards Mubashir Husain Rehmani 2008/10/26 Davide <[EMAIL PROTECTED]> > all that is written in the document is clear for me....now i have to find > the packet by packet handling of the node. > > i haven't found yet the rtproto instproc in the simulator class (i havent > found the simulator class!!) > > can you help me? > > davide > > > 2008/10/26 Mubashir Rehmani <[EMAIL PROTECTED]> > > Hi davide, >> >> Basically there are four types of routing strategies in ns2. >> >> 1. Static >> 2. Session >> 3. Dynamic >> 4. Manual >> >> And rtproto{} is an instance procedure in the class simulator that >> specifies the unicast routing protocol to be used in the simulation. >> Basically session routing provides complete and instantaneous routing >> changes in the topology dynamics. For details see this link >> http://www.tti.unipa.it/~ilenia/course/ns_2.pdf<http://www.tti.unipa.it/%7Eilenia/course/ns_2.pdf> >> >> And Session routing use Dijkstra Algorithm. So i think you should refer >> it. >> >> Regards >> >> Mubashir Husain Rehmani >> >> >> > -- Mubashir Husain Rehmani Mobile : 00 33 (0)6 32 00 89 35
