[ndnSIM] CalculateRoutes and link cost

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Jun 10 11:00:05 PDT 2013

Hi Saran,

There is one trick that is needed to activate link weights set up in topology file. Uou have to call 

topologyReader.ApplyOspfMetric ();

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.
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-March/000259.html
> 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.
> -- 
> Regards,
> Saran Tarnoi
> Graduate Student
> Department of Informatics
> The Graduate University for Advanced Studies (Sokendai)
> Tokyo, Japan
> http://sarantarnoi.blogspot.jp
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130610/80f32e0e/attachment.html>

More information about the ndnSIM mailing list