[ndnSIM] CalculateRoutes and link cost
alexander.afanasyev at ucla.edu
Mon Jun 10 11:00:05 PDT 2013
There is one trick that is needed to activate link weights set up in topology file. Uou have to call
after you installed NDN stack on nodes.
I pushed a small example how to do it: https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-triangle-calculate-routes.cc
The main reason why this requires a separate step is that these weights are applied on NDN level, which makes sense only after NDN stack is installed. However, to install NDN stack, one need to create nodes first.
On Jun 10, 2013, at 4:37 AM, Saran Tarnoi <sarantarnoi at gmail.com> wrote:
> Dear All,
> I'm curious how CalculateRoutes in cdnGlobalRoutingHelper actually works.
> Does it really take the link costs defined in topology file into routing consideration?
> I modified the link costs in topology file but the route didn't change at all.
> I found a very helpful guide about route metrics here.
> However, cdnGlobalRoutingHelper.CalculateRoutes() don't follow the logic.
> It seems to me that it uses only the hop count as routing metric.
> If I misunderstand, please let me know.
> Thank you so much for your time.
> Saran Tarnoi
> Graduate Student
> Department of Informatics
> The Graduate University for Advanced Studies (Sokendai)
> Tokyo, Japan
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM