[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Specifying a particular route



Dear Tarik,

Thanks for the answer. I will try that and be back later to the mailing
list if the experience has not been successfull.

Bagula.

On Mon, 14 Feb 2000, Tarik Alj wrote:

> The routing table is computed during the call to "run" (that "$ns run" 
> thing...), the method compute from route.cc: RouteLogic is called in 
> Simulator::compute-flat-routes in tcl/lib/ns-route.tcl; the routing table is 
> computed at the C++ level and the classifiers are populated at the OTcl level.
> 
> If you want to specify a particular route you need to either define your own 
> routing model (see the manual); or modify corresponding classifier entries. You 
> can access the classifier at each node by the method add-route { dst target }; 
> the target must be a link's head, e.g. a link's point of entry.
> 
> In the case of LANs the ro7uting table gets looked-up every time a packet gets 
> sent; the look up is performed by a LanRouter object (lanrouter.cc) whose 
> behaviour could be modified to reflect your needs.
> 
> Recall that modifying the routing table by itself won't suffice if you don't 
> modify the classifiers accordingly (except for LANs).
> 
> > X-Authentication-Warning: mash.CS.Berkeley.EDU: majrdomo set sender to 
> [email protected] using -f
> > Date: Mon, 14 Feb 2000 11:20:07 +0200 (SAST)
> > From: Antoine Bagula <[email protected]>
> > To: [email protected]
> > cc: [email protected]
> > Subject: Specifying a particular route 
> > MIME-Version: 1.0
> > 
> > Dear Tarik and Christiane,
> > 
> > I have seen a message from Eric Wong adressed to you about specification
> > of a particular route. I don't know if you have answered or if you have
> > any reply for Eric. If you do please copy me in your reply because i
> > also have that problem. If there is any script in the /tcl/ex examples
> > related to that topic , please inform me.
> > 
> > Bagula. 
> > 
> > 
> ###############################################################################
> > 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
> > 
> ###############################################################################
> > 
> > ---------- Forwarded message ----------
> > Date: Sat, 12 Feb 2000 01:35:26 +0800
> > From: Eric Wong <[email protected]>
> > To: Christiane <[email protected]>,
> >      Tarik Alj <[email protected]>,
> >      [email protected]
> > Subject: Specifying a particular route 
> > 
> > Hi,
> > 
> > Can I ask if it is possible to define specific path between 2 pairs of
> > source and destinations nodes with the current ns2.1b5?
> > 
> > This is what I am trying to get.
> > 
> >                         bs1  bs2
> >                             \  /
> >             s1       r1--r2--r3      d1
> >                 \    /    \      /   \    /
> >                   r0-----r4-----r5
> >                 /           /  \           \
> >             s2        bd1 bd2       d2
> > 
> > 
> > That is for s1 and s2 I want them to follow a specific path to d1 and d2
> > respectively.
> > i.e.     s1 -> r0 -> r1 -> r2 -> r3 > r5 -> d1
> >          s2 -> r0 -> r4 -> r5 -> d2
> > 
> > While for sources bs1 and bs2 to destination bd1 and bd2, they follow the
> > normal shortest path route.
> > 
> > Is there any way of defining an expilcite path? I know that this can be done
> > by using
> > $n1 add-route-to-adj-node -default $r1
> > 
> > however to use this I have to turn off routing $ns rtproto Manaul however, I
> > still need routing for the source bs1 and bs2?
> > 
> > Is the anyway I can do to add my own routing entries? What changes can I
> > make to the curent classifier such that it can define it's own path yet
> > keeping it's original capability?
> > 
> > any info is greatly appreciated. thanks.
> > 
> > Thanks.
> > Eric
> > 
> > 
> > 
> > 
> 
> Tarik 
> 
>