[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] relation between route_ and slot_
Dear LLoyd,
I am looking for a logical relation between the structures route_
used by the C++ compute_routes in route.cc and the slot array slot_
used in all the classifiers(see classifier.cc). In my understanding route_
is a global routing table containing next hops for arriving packets at each
node. In the NS classifiers upon reception of a packet a function classify()
is called to find an index for the slot_ array where the packet will be
forwarded. Can you please explain me how these two arrays are related.
Thanks
Antoine B.
###############################################################################
BIGOMOKERO ANTOINE BAGULA Home : Gardenia 2
Dept of Computer Science Skyvuedrive
University of Stellenbosch Kluis Rivier
Private Bag XI 7580
7602 Matieland Cape Town
South Africa South Africa
Email :[email protected]
[email protected]
http://www.cs.sun.ac.za/projects/COE/#members
http://www.cs-net.org
Fax : +2721 8084416 (W)
Tel : +2721 8084605 (W)
Cell :+2782 9760453
###############################################################################
On Wed, 8 Mar 2000, Lloyd Wood wrote:
> On Wed, 8 Mar 2000, Tarik Alj wrote:
>
> > run computes the routing table, so no route is defined before run is, well, run.
>
> unless you're using manual routing, presumably:
> tcl/ex/many_tcp.{tcl,txt} and the corresponding test suite.
>
> link cost stuff is described in Ch. 23.
>
> L.
>
> > take a look at the intsproc :
> >
> > Simulator instproc dump-routelogic-nh {}
> >
> > in tcl/lib/ns-route.tcl
> > >
> > > Two questions regarding static routing in case of grid
> > > topologies :-
> > >
> > > Is there a way to print the route from a source node
> > > to a destination node , eg. 0 1 2 3 4
> > > before using $ns run ?
> > > If routing between 2 pairs of sources and destinations
> > > uses a common path, is there a way to increase the
> > > costs of links on the common path ?
>
>
> <[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
>
>