[ndnSIM] ndnSIM : How simulate Pending Interest Table memory size

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri Feb 1 23:24:44 PST 2013

Hi Xee,

I've implemented and pushed to github a new policy for PIT ("ns3::ndn::pit::SerializedSize").   You can check out [examples/ndn-simple-pit-policies.cc] that shows how to enable it.

Basically, it almost exactly the same as default ns3::ndn::pit::Persistent, but you specify size in bytes, not in number of packets (size based on Interest size, without considering any additional overhead):  wen size limit is reached, new interests will be rejected.

You can run with NS_LOG=ndn.pit.PitImpl  to see some debugging logging from the policy.   Let me know if something is not working as it should, or you want some other behavior.


On Feb 1, 2013, at 7:09 PM, Xee <1839750381 at qq.com> wrote:

> Hi
> I need to know how can I simulate the memory size of pending interest table ? I have gone through the available function but it give the number of entries in the pending interest table. How can I get the memory size of PIT in Kb/Mb? because every interest may have different size. 
> Please help me to simulate my scenario.

More information about the ndnSIM mailing list