next up previous contents index
Next: 23.5.0.0.3 Session Routing Up: 23.5 Protocol Internals Previous: 23.5.0.0.1 Direct Routing

23.5.0.0.2 Static Routing

The procedure []compute-routes../ns-2/ns-lib.tclRouteLogic::compute-routes in the RouteLogic../ns-2/ns-lib.tcl first creates the adjacency matrix, and then invokes the C++ method, []compute_routes of the shadow object. Finally, the procedure retrieves the result of the route computation, and inserts the appropriate routes at each of the nodes in the topology.

The class only defines the procedure []init-all../ns-2/route-proto.tclAgent/rtProto/Static::init-all that invokes []compute-routes.




2000-08-24