<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Saran,<div><br></div><div>There is one trick that is needed to activate link weights set up in topology file. Uou have to call </div><div><br></div><div>topologyReader.ApplyOspfMetric ();</div><div><br></div><div>after you installed NDN stack on nodes.</div><div><br></div><div>I pushed a small example how to do it: <a href="https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-triangle-calculate-routes.cc">https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-triangle-calculate-routes.cc</a></div><div><br></div><div>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.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><br><div><div>On Jun 10, 2013, at 4:37 AM, Saran Tarnoi <<a href="mailto:sarantarnoi@gmail.com">sarantarnoi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Dear All,<div><br></div><div>I'm curious how  CalculateRoutes in cdnGlobalRoutingHelper actually works.</div><div>Does it really take the link costs defined in topology file into routing consideration?</div>
<div style="">I modified the link costs in topology file but the route didn't change at all.</div><div style=""><br></div><div style="">I found a very helpful guide about route metrics here.</div><div style=""><a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-March/000259.html">http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-March/000259.html</a><br>
</div><div style=""><br></div><div style="">However, cdnGlobalRoutingHelper.CalculateRoutes() don't follow the logic.</div><div style="">It seems to me that it uses only the hop count as routing metric.</div><div style="">If I misunderstand, please let me know.</div>
<div style=""><br></div><div style="">Thank you so much for your time.</div><div>-- <br>Regards,<div>Saran Tarnoi</div><div>Graduate Student</div><div>Department of Informatics</div><div>The Graduate University for Advanced Studies (Sokendai)</div>
<div>Tokyo, Japan</div><div><a href="http://sarantarnoi.blogspot.jp/2012/11/my-profile.html" target="_blank">http://sarantarnoi.blogspot.jp</a><br></div>
</div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></div></body></html>