[ns] No DSR path (route) cache entry timeout implemented?
Gautam - Chakrabarti
chakra10@msu.edu
Mon Apr 29 17:20:02 2002
Gaurav Navlakha wrote:
>
> Hi,
>
> I'm using DSR in ns-2.1b8a.
>
> In the function Cache::pickVictim() which is called when
> MobiCache::addRoute is invoked, the only way of finding an empty entry in
> the path cache is to check if the path length of that entry is 0.
U r right.
I assume u have also seen that in case there is no pathlength=0 entry,
it just follows a "round-robin" removal policy, of course excluding
"exclude". However exclude=-1, so its basically round-robin removal. I
don't think there is any timer based removal.
As far as I have seen, DSR_CACHE_STATS is in general disabled, I haven't
seen code in that.
hth,
gautam
>
> >From what I've been able to see, the path length is set to 0 only on
> the occurrence of link failures (MobiCache::checkRoute() gets this info.
> from GOD module).
>
> Is there no timer expiry of paths in the cache when they should be
> automatically invalidated? (i.e., their 'length' made 0) If there is,
> please let me know how it is implemented in ~ns/dsr or
> ~ns/tcl/mobility/dsr.tcl.
>
> Does the flag DSR_CACHE_STATS have anything to do with this?
>
> Any help will be appreciated.
>
> Thanks,
> Gaurav.
--
***************************************************************
Gautam Chakrabarti
MS Student
Computer Sc. and Engg Department
Michigan State University
Email : chakra10@msu.edu
Home Page : http://www.cse.msu.edu/~chakra10
Why is there so much month left at the end of the money?
--- John Barrymore
***************************************************************