[ndnSIM] how to modify FIB entries during the simulation time

Alex Afanasyev alexander.afanasyev at ucla.edu
Thu Mar 14 08:57:08 PDT 2013



On Mar 14, 2013, at 2:51 AM, yao hu <huyao at goto.info.waseda.ac.jp> wrote:

> Hi Alex,
> 
> Thanks for your reply. I will try to implement such a new fib helper class within my ability scope if time permits. 
> 
> 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?
> 

The question here is which FIBs you're planning to modify and how do you discover those.  It is a simulator, so it is possible to cheat in many ways, but think for a second as in real system.  How such an update could be implemented there.  After that, we can find a way to simplify this in simulator.

---
Alex

> 
> Regards,
> huyao
> 
> 
> 2013/3/14 Alex Afanasyev <alexander.afanasyev at ucla.edu>
>> Hi Yao,
>> 
>> 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.
>> 
>> As it stands right now, during runtime, you can try to directly modify FIB entries using FIB interface (http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_fib.html).  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 (http://ndnsim.net/doxygen/classns3_1_1ndn_1_1fib_1_1_entry.html), specifically RemoveFace call.
>> 
>> 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?
>> 
>> ---
>> Alex
>> 
>> PS
>> To get hold of the fib on a specific node, you can do the following:
>> Ptr<ndn::Fib> fib = node->GetObject<ndn::Fib> ();
>> 
>> On Mar 13, 2013, at 5:35 AM, yao hu <huyao0107 at gmail.com> wrote:
>> 
>>> Dear ndnsimers, 
>>> 
>>> 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 StackHelper class only has the AddRoute 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?
>>> 
>>> Thanks for your reply in advance!
>>> 
>>> Regards,
>>> huyao
>>> _______________________________________________
>>> ndnSIM mailing list
>>> ndnSIM at lists.cs.ucla.edu
>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> 
> 
> 
> -- 
> **************************************************
> 早稲田大学 基幹理工学研究科 情報理工学専攻
> 後藤滋樹研究室
> 胡 曜 (HU Yao)
> E-mail : huyao at goto.info.waseda.ac.jp
> **************************************************
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130314/7b7feb29/attachment.html>


More information about the ndnSIM mailing list