[ndnSIM] Find rate of interests in a face
Spyridon (Spyros) Mastorakis
spiros.mastorakis at gmail.com
Tue Feb 17 23:54:16 PST 2015
Hello,
for the PIT table size you can use the size method of the PIT class:
http://ndnsim.net/2.0/doxygen/classnfd_1_1Pit.html#abfb7bf627d26f0b23e7e9de2ca16965f
For the interest rate you will need to modify the ndn-l3-rate-tracer files:
http://ndnsim.net/2.0/doxygen/ndn-l3-rate-tracer_8cpp.html
To get the real time you can use the method now of either the steady_clock or the system_clock class of ndn-cxx. Personally, I would suggest to use the steady_clock class, because it represents a monotonic clock:
http://named-data.net/doc/ndn-cxx/current/doxygen/d6/d75/classndn_1_1time_1_1steady__clock.html
http://named-data.net/doc/ndn-cxx/current/doxygen/d3/d44/classndn_1_1time_1_1system__clock.html
--
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
PhD Computer Science
UCLA
> On Feb 17, 2015, at 12:45 AM, Shebin Roy <rshebin18 at gmail.com> wrote:
>
> Hello,
>
> My project is about mitigating Interest flooding attack. For this, i need to find the rate of incoming interest through each face of the router, do some calculations and decide if to forward the packet or not. For the calculations, i need the PIT table size also. I have heard about tracers. But i need to know the interest rate in real time. I would like to know which file i need to modify to implement my project and also the functions to find the interest rate and the PIT table size.
>
> Thank you,
> Shebin.
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
More information about the ndnSIM
mailing list