[ndnSIM] NDN FIB

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri May 3 11:39:32 PDT 2013


Hi Joao,

What I meant is that the code (and simulations that we did originally) did not involve much dynamics with FIB. There is nothing against dynamics.

The only potential drawback is that there is no implementation of the specialized face/FIB interface (e.g., there is no ccndc-like command that can configure routes), but you either can use FIB methods directly (recommended) or via ndn::StackHelper (I would not really recommend this way, but it is possible).  Ideally, we should add some protocol to ndnSIM, similar (not necessary the same as) CCNx face management and registration protocol (http://www.ccnx.org/releases/latest/doc/technical/Registration.html).

---
Alex

On May 3, 2013, at 10:22 AM, João Torres <torres.jv at gmail.com> wrote:

> Hi Alex,
> 
> Could you clarify your statement: FIB content "is (it was) not intended to be dynamically modified"?
> Is there any reason against simulations in ndnsim involving such dynamics?
> 
> I am working with a simultion to populate FIB dynamicly based on content requests.
> 
> Regards,
> Joao Vitor
> 
> 
> 2013/4/23 Alex Afanasyev <alexander.afanasyev at ucla.edu>
> Hi again,
> 
> There is no tracer for FIB content, since it is (it was) not intended to be dynamically modified.  If you need to print out FIB contents (e.g., periodically, using Simulator::Schedule), there are a couple of ways.   If you don't care about the format, you can do the following:
> 
> input:   Ptr<Node> node;
> std::cout << *node->GetObject<ndn::Fib> () << std::endl;
> 
> If you need more precise control over what is printed out, it is also possible, but a little bit more complicated:
> 
> Ptr<ndn::Fib> fib = node->GetObject<ndn::Fib> ();
> for (Ptr<ndn::fib::Entry> entry = fib->Begin (); entry != fib->End (); entry = fib->Next (entry))
> {
>     std::cout << entry->GetPrefix () << std::endl;
>     ...
> }
> 
> ---
> Alex
> 
> On Apr 23, 2013, at 12:33 AM, Xee <1839750381 at qq.com> wrote:
> 
> > Hi Alex
> >
> > I need to print FIB entries, how can I get that. Is there any tracer to print fib entries ?
> >
> > rgd,
> > -Xee
> > _______________________________________________
> > ndnSIM mailing list
> > ndnSIM at lists.cs.ucla.edu
> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> 
> 
> _______________________________________________
> 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/20130503/6686007a/attachment.html>


More information about the ndnSIM mailing list