[ns] URGENT!!! LinkCache in DSR

manjusha@cse.iitm.ernet.in manjusha at cse.iitm.ernet.in
Tue Sep 13 00:19:37 PDT 2005


Hello ns-users,

I'm currently working on wireless simulations using NS-2.28. My design 
required the use of a link-cache. Even though the code for  maintaining 
link-cache was already implemented, it is not included in the 
"dsragent.cc" file that has come with the package. After modifying the 
code, I included link-cache object in my DSR agent. But now, I'm stuck!!
Although the links between nodes are actually present (which I've verified
by dumping the cache), the Dijkstra algorithm fails to find a route.
Also, the code for the Dijkstra algorithm implementation appears 
confusing.

Can anyone clarify me two things:

1. Why is the linkcache code "ifdef"d out in the original NS 
package?
2. Are there any bugs in the implementation of the Dijkstra Algorithm? If 
possible, can sumone explain the algorithm implementation to me?

Awaiting for quick response...

Thanx and regards,
Manjusha



More information about the Ns-users mailing list