<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi ALexander,</div><div class=""><br class=""></div><div class="">Metric is just an arbitrary “cost” value that you would like to associate with the specific link.  The value is really up to you.  The only logic in ndnSIM/NFD is that strategy may prefer a next hop that has lower metric value.</div><div class=""><br class=""></div><div class="">—</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On May 5, 2015, at 10:09 PM, Alexander Ni <<a href="mailto:alexni1992@gmail.com" class="">alexni1992@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Hello,<div class=""><br class=""></div><div class="">Thanks for your answer. I tried to use the FibHelper but have some trouble with metric variable. I don't really understand how to use it with AddRoute function. Can you please help me,</div><div class=""><br class=""></div><div class="">Best Regards,</div><div class="">Alexander Ni</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, May 6, 2015 at 12:24 AM, Spyridon (Spyros) Mastorakis<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:spiros.mastorakis@gmail.com" target="_blank" class="">spiros.mastorakis@gmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">Hi,<br class=""><br class="">you could either use the FibHelper:<br class=""><br class=""><a href="http://ndnsim.net/2.0/helpers.html#manually-routes-fib-helper" target="_blank" class="">http://ndnsim.net/2.0/helpers.html#manually-routes-fib-helper</a><br class=""><br class="">or (this is a more informal and dirty way to do it) use directly the API of NFD’s FIB:<br class=""><br class=""><a href="http://ndnsim.net/2.0/doxygen/classnfd_1_1Fib.html#a1ed3dd88fe19112ce99be346e87cecbf" target="_blank" class="">http://ndnsim.net/2.0/doxygen/classnfd_1_1Fib.html#a1ed3dd88fe19112ce99be346e87cecbf</a><br class=""><br class="">Hope that this helps.<br class=""><br class="">--<br class="">Spyridon (Spyros) Mastorakis<br class="">Personal Website:<span class="Apple-converted-space"> </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank" class="">http://cs.ucla.edu/~mastorakis/</a><br class="">Internet Research Laboratory<br class="">PhD Computer Science<br class="">UCLA<br class=""><div class=""><div class="h5"><br class=""><br class=""><br class=""><br class="">> On May 4, 2015, at 6:36 PM, Alexander Ni <<a href="mailto:alexni1992@gmail.com" class="">alexni1992@gmail.com</a>> wrote:<br class="">><br class="">> Hi everyone,<br class="">><br class="">> I work with ndnSIM 2.0 and I still not so close with ns-3 and ndnSIM.<br class="">> Can somebody help me? I want to make Fib modification in runtime and don't really know how I should bettter do this. Also I want to implement some additional message types but don't know from where I should better start.<br class="">><br class="">> --<br class="">> Sincerely,<br class="">> Alexander Ni<br class=""></div></div>> _______________________________________________<br class="">> ndnSIM mailing list<br class="">><span class="Apple-converted-space"> </span><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">><span class="Apple-converted-space"> </span><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class=""><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div class="gmail_signature"><div dir="ltr" class=""><span style="font-family: Arial, Tahoma, Verdana, sans-serif; font-size: 13.3333330154419px; line-height: 18.2000007629395px;" class="">Sincerely,</span><br class=""><div class=""><span style="font-family: Arial, Tahoma, Verdana, sans-serif; font-size: 13.3333330154419px; line-height: 18.2000007629395px;" class="">Alexander Ni</span></div></div></div></div></div><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">ndnSIM mailing list</span><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">ndnSIM@lists.cs.ucla.edu</a><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></div></blockquote></div><br class=""></body></html>