<div>Hi Alex</div><div>Thanks you so, I just gone through the code.</div><div><div><br></div><div>Rgd,</div><div>-Xee</div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Alex Afanasyev"<alexander.afanasyev@ucla.edu>;</div><div><b>Date: </b> Feb 2, 2013</div><div><b>To: </b> "Xee"<1839750381@qq.com>; <wbr></div><div><b>Cc: </b> "ndnsim"<ndnsim@lists.cs.ucla.edu>; <wbr></div><div><b>Subject: </b> Re: [ndnSIM] ndnSIM : How simulate Pending Interest Table memory size</div></div><div><br></div>Hi Xee,<br><br>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.<br><br>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.<br><br>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.<br><br>Sincerely,<br>Alex<br><br>On Feb 1, 2013, at 7:09 PM, Xee <1839750381@qq.com> wrote:<br><br>> Hi<br>> 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. <br>> <br>> Please help me to simulate my scenario.<br><br><br></div>