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

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Mar 13 10:08:18 PDT 2013

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?


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130313/0c4635f7/attachment.html>

More information about the ndnSIM mailing list