[ndnSIM] Question on PIT size measurement.

Alex Afanasyev aa at CS.UCLA.EDU
Sun Sep 18 11:18:26 PDT 2016

Hi Inchan,

There is not yet a readily available tracer for that, but you can quickly write one with the following logic:

- Schedule a periodic event with whichever granularity you want to trace the size
- In the scheduled event, for each node that you want to obtain information (you can use NodeList to access all nodes)

   Ptr<Node> node = ...;
   size_t currentPitSize = node->GetObject<L3Protocol>()->getForwarder()->getPit()->size();
   ... save the value


> On Sep 16, 2016, at 9:00 PM, 황인찬 <neogeoss at ajou.ac.kr> wrote:
> When I looked into PIT.cpp in NFD. There is a function to measure PIT size.
> I wanted to make use of it at NDNSIM. Thus, I was trying to change ndn::L3RateTracer <http://ndnsim.net/2.1/doxygen/classns3_1_1ndn_1_1L3RateTracer.html> to record
> each node's PIT size. However, I was not able to find anything related. I think anything related with forwarder class must be there
> to trace it. Do you guys know any way to trace each node's PIT size ??
> Best wishes,
> inchan Hwang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160918/2074b5a3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160918/2074b5a3/attachment.bin>

More information about the ndnSIM mailing list