[ndnSIM] Calculate Hit Rate from Spesific Nodes in NFD Content Store

Junxiao Shi shijunxiao at email.arizona.edu
Mon Apr 1 18:00:43 PDT 2019


Hi Adi

NFD already has CS hit/miss counters:

1. Get a hold of Forwarder instance.
2. Read the counter with forwarder.getCounters().nCsHits and
forwarder.getCounters().nCsMisses.

There’s no need to modify any callbacks.

Yours, Junxiao

On Mon, Apr 1, 2019 at 09:26 <mdparamartha95 at students.itb.ac.id> wrote:

>
> I had a problem to calculate the hit rate from the spesific node in NFD
> Content Store,
>
> For example, I had installed cs-policy-lru in 5 nodes.
>
> However, I just want to trace the performance of *nodes 1* instead of *nodes
> 2,3,4 or 5*.
>
> As long as my experience, in cs.cpp using a callback function and add some
> increment if *hitcallback*  or *misscallback* is called.
>
> But results show that the increment works with all nodes, and give me
> entire nodes hit/miss rate. Not hit/miss rate for specific nodes.
>
> How can I calculate the hit/miss rate from specific nodes?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190401/4bd9364a/attachment.html>


More information about the ndnSIM mailing list