<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="">Hmm…  I’m not sure.  It seem that it may not be even possible to do that.<div class=""><br class=""></div><div class="">You may need to go slightly different direction and implement reset/reinit of GlobalRouter: First go over all routers and clear out all incidences, and then go over the topology and re-instert the new ones.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 21, 2014, at 2:17 PM, Hisham Farahat <<a href="mailto:hishamfarahat@gmail.com" class="">hishamfarahat@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">Great,  which method can i use to remove the GlobalRouter instances? </p>
<div class="gmail_quote">On Nov 21, 2014 5:11 PM, "Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu" class="">alexander.afanasyev@ucla.edu</a>> wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">No. GlobalRouter is independent of all other structures aggregated on the node.</div><div class=""><br class=""></div><div class="">Unfortunately, there is not yet a dynamic routing protocol. I known that Anil Jangam started porting NLSR into ndnSIM and he can comment more about the expected timeline for that.</div><div class=""><br class=""></div><div class="">—</div><div class="">Alex</div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 21, 2014, at 2:04 PM, Hisham Farahat <<a href="mailto:hishamfarahat@gmail.com" target="_blank" class="">hishamfarahat@gmail.com</a>> wrote:</div><br class=""><div class=""><p dir="ltr" class="">Thanks for your reply. <br class="">
Reinstalling GlobalRouter will reset everything (FIB, CS & PIT), right? </p><p dir="ltr" class="">Is there any other routing algorithm i can use for this scenario? </p>
<div class="gmail_quote">On Nov 21, 2014 4:43 PM, "Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank" class="">alexander.afanasyev@ucla.edu</a>> wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Unfortunately, global routing helper wasn’t designed for simulation-time topology updates.  It is still possible to use it, but you would need to make modifications.  The reason is that topology graph (instances of GlobalRouter on every object) are installed and configured once as part of GlobalRoutingHelper::Install methods.  In order to calculate routes for the updated topology, you would need first to remove all GlobalRouter instances from all nodes and Channels, and then call Install method again.<br class="">
<br class="">
If only Face metrics changed, then there is no need for the described modification.  You can simply call CalculateRoutes and it should work.<br class="">
<br class="">
—<br class="">
Alex<br class="">
<br class="">
> On Nov 21, 2014, at 9:25 AM, Hisham Farahat <<a href="mailto:hishamfarahat@gmail.com" target="_blank" class="">hishamfarahat@gmail.com</a>> wrote:<br class="">
><br class="">
> Hi,<br class="">
> I have a scenario where the topology changes with time (e.g. producers connect to different nodes). I understand that the boost graph is created once we install the ndnGlobalRoutingHelper on all nodes.  When the topology changes, how can the global router update the graph so that CalculateRoutes function can update the FIBs?<br class="">
><br class="">
> Thanks in advance.<br class="">
><br class="">
> Regards,<br class="">
><br class="">
> _______________________________________________<br class="">
> ndnSIM mailing list<br class="">
> <a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">
> <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="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class=""><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=""></div></blockquote></div><br class=""></div></blockquote></div>
_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br class=""></div></blockquote></div><br class=""></div></body></html>