Hi Alex,<div><br></div><div>Thanks for your reply. I will try to implement such a new fib helper class within my ability scope if time permits. </div><div><br></div><div>Sorry, one more simple question about this issue.. Now I am filling something in the function DidReceiveSolicitedData ( ) in ndn-forwarding-strategy.cc. So how to get hold of the specific node or node name as a parameter to say AddRoute() function or further get hold of the fib on a specific node. Or my way is wrong?</div>
<div><br></div><div><br></div><div>Regards,</div><div>huyao</div><div><br>
<br><div class="gmail_quote">2013/3/14 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">Hi Yao,<div><br></div><div>Yes, at least for now StackHelper does not provide functionality to delete specific routes.  It probably can be extended, but I think the primary purpose of the helper is to facilitate writing a scenario code, not do something in the core/runtime.</div>

<div><br></div><div>As it stands right now, during runtime, you can try to directly modify FIB entries using FIB interface (<a href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_fib.html" target="_blank">http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_fib.html</a>).  There is Remove call to remove a specific prefix from the FIB.   If you want to remove a specific face from the FIB entry, you can use fib::Entry API (<a href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1fib_1_1_entry.html" target="_blank">http://ndnsim.net/doxygen/classns3_1_1ndn_1_1fib_1_1_entry.html</a>), specifically RemoveFace call.</div>

<div><br></div><div>There is definitely a need for easier access to FIB management in ndnSIM.   We would greatly appreciate if you can create a new helper class (say, ndn::FibHelper) with various methods to add/update/or delete existing FIB entries.  We can go even further and implement some FIB management protocol (similar in spirit to CCNx face management protocol, but not necessarily the same).  What do you think?</div>

<div><br></div><div>---</div><div>Alex</div><div><br></div><div>PS</div><div>To get hold of the fib on a specific node, you can do the following:</div><div>Ptr<ndn::Fib> fib = node->GetObject<ndn::Fib> ();</div>

<div><div><div><br></div><div>On Mar 13, 2013, at 5:35 AM, yao hu <<a href="mailto:huyao0107@gmail.com" target="_blank">huyao0107@gmail.com</a>> wrote:</div></div></div><div><div><br><blockquote type="cite">
<div><div>Dear ndnsimers, <div><br></div><div>Is it possible to delete an existing or add a new FIB entry during the simulation time? Because I would like to do some change on the existing FIB entries according to the incoming data. However, in the current ndnsim documentation, the <span style="background-color:rgb(250,250,250);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;line-height:23px">StackHelper class only has the </span><font style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;line-height:15px"><a href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_stack_helper.html#abf70949e84ba2a190e1f7ed4917776cc" style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;line-height:15px" target="_blank">AddRoute</a> function. So how to implement a function like DelRoute so as to modify the existing FIB entries according to some situation during the simulation time?</font></div>


<div><font style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;line-height:15px"><br></font></div><div><font style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;line-height:15px">Thanks for your reply in advance!</font></div>


<div><font style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;line-height:15px"><br></font></div><div><font style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;line-height:15px">Regards,</font></div>


<div><font style="font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;line-height:15px">huyao</font></div></div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>

</blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>**************************************************</div><div>$BAa0pEDBg3X(B $B4p44M}9)3X8&5f2J(B $B>pJsM}9)3X@l96(B</div><div>$B8eF#<"<y8&5f<<(B<br></div><div>$B8U(B $BMK(B (HU Yao)</div>

<div>E-mail : <a href="mailto:huyao@goto.info.waseda.ac.jp" target="_blank">huyao@goto.info.waseda.ac.jp</a></div><div>**************************************************</div>
</div>