<div dir="ltr">So when I use "<span style="font-size:12.8px">FibHelper::AddRoute manually</span>" this <b>will override</b> what <span style="font-size:12.8px">GlobalRoutingHelper  will calculate from the topology file.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 26, 2016 at 9:54 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ahmed,<br>
<br>
There isn't a priority, these are different metrics used for different purposes.<br>
<br>
The one you configure in the topology file can be used by GlobalRoutingHelper to calculate routes and set up FIB entries.   What the helper does is obtains the configured costs, finds out (a set of) shortest paths, sums up the configured costs from the topology file, and calls FibHelper::AddRoute with the calculated cost.<br>
<br>
You can rub FibHelper::AddRoute manually (or in addition to GlobalRoutingHelper-generated calls to it).  Whichever cost you specify in AddRoute, will be assigned to FIB entry.   There is no relation to the configured cost in the topology.<br>
<br>
---<br>
Alex<br>
<div class="HOEnZb"><div class="h5"><br>
> On Feb 20, 2016, at 2:58 AM, Ahmed Sadek <<a href="mailto:don1559@gmail.com">don1559@gmail.com</a>> wrote:<br>
><br>
> Hi Spyridon ,<br>
><br>
> Thank you for your reply. I still don't understand. If using the FibHelper I set the metric between client 1-> Router 1 to be 100 and in the topology file I set up the metric between client 1-> Router 1 to be 200, so which one takes effect and why ?<br>
><br>
> Thanks!<br>
> Ahmed<br>
><br>
> On Sat, Feb 20, 2016 at 4:49 AM, Spyridon (Spyros) Mastorakis <<a href="mailto:mastorakis@cs.ucla.edu">mastorakis@cs.ucla.edu</a>> wrote:<br>
> Hi Ahmed,<br>
><br>
> the first case refers to the establishment of a route that may be used for Interest forwarding. Specifically, the FibHelper will add the appropriate FIB entries on the routers across the specified path.<br>
><br>
> The second case refers to the physical properties (bandwidth, delay, queue size) of a link between two adjacent nodes.<br>
><br>
> Hope that this helps. Please let me know if you have any follow-up questions.<br>
><br>
> Spyridon (Spyros) Mastorakis<br>
> Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" rel="noreferrer" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br>
> Internet Research Laboratory<br>
> Computer Science Department<br>
> UCLA<br>
><br>
><br>
><br>
><br>
>> On Feb 16, 2016, at 3:48 AM, Ahmed Sadek <<a href="mailto:don1559@gmail.com">don1559@gmail.com</a>> wrote:<br>
>><br>
>> Dear All,<br>
>><br>
>> What is the difference between setting up the metric in the simulation file :<br>
>> ndn::FibHelper::AddRoute("client", "/", "router1", 150);<br>
>><br>
>> Or in the topology file:<br>
>> # srcNode   dstNode     bandwidth   metric  delay   queue<br>
>> client      router1       20Mbps     150             50ms    50<br>
>><br>
>> And which one take priority?<br>
>><br>
>> Thanks!<br>
>> Ahmed<br>
</div></div></blockquote></div><br></div>