[ndnSIM] Implementing Router Queues in ndnSIM

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Wed Feb 21 08:56:56 PST 2018


I am not sure to which “buffer” you are referring to, but an easy way to do that (so that you have easy access too) is to create a custom application that you will install on all the routers. This app will receive Interests, record them and then simply further forward them. Once the data packet is received, you can delete the Interest from your queue. 

Another way to do that (with less flexible access probably) is to hack NFD directly and add an std::vector object or something as an attribute to the Forwarder class:

https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.6.0-ndnSIM/daemon/fw/forwarder.cpp <https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.6.0-ndnSIM/daemon/fw/forwarder.cpp>
https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.6.0-ndnSIM/daemon/fw/forwarder.hpp <https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.6.0-ndnSIM/daemon/fw/forwarder.hpp>

Hope that this helps,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department

> On Feb 19, 2018, at 3:46 AM, Hammad Zafar <hammad.zafar at y7mail.com> wrote:
> Hi all,
> I want to implement and maintain a queue (other than the buffer) inside core routers for interest forwarding. How do I add a queue and then access it too in ndnSIM?
> Any help would be much appreciated.
> Regards,
> Hammad

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

More information about the ndnSIM mailing list