[ndnSIM] Print PIT entry size

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Apr 10 16:00:10 PDT 2013

Hi Amin,

You can try to use a new example that I just uploaded http://ndnsim.net/metric.html#periodic-tracing-of-pending-interest-table-pit-size  as a baseline for your implementation.

Note that the number that you will get is an instantaneous size (how many records currently there are) of PIT on a node at that particular moment, and does not give any statistics how many records were created/satisfied.  If you want this additional info, the tracing is a little bit more complicated and you can check another example (https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-simple-with-pit-operation-stats.cc).


On Apr 10, 2013, at 5:30 AM, Amin Karami <amin at ac.upc.edu> wrote:

> Hi Alex,
> I am working with one example in ndnsim.net as: http://ndnsim.net/examples.html#node-bottleneck-topology
> I am going to print the number of empty record of PIT in first router (Rtr1) in every second in command prompt, such as below:
> (for example the primary PIT size for Rtr1 is 100)
> Time    Node   PIT size
> -------    -------   -----------
> 1           Rtr1        98
> 2           Rtr1        93
> 3           Rtr1        94
> 4           Rtr1        99
> .
> .
> I could not find any relevant class in user guide to print this output.
> Would you mind please telling me how I can print this output?
> I am thankful for your guidance and support.
> Best Regards,
> Amin

More information about the ndnSIM mailing list