[ndnSIM] Calculate Hit Rate from Spesific Nodes in NFD Content Store
mdparamartha95 at students.itb.ac.id
mdparamartha95 at students.itb.ac.id
Mon Apr 1 19:25:24 PDT 2019
Hi Junxiao,
Thank you for your answer.
Can we count hit/miss from each node using the forwarder?
Thank you,
Best Regards,
Adi Paramartha
From: "Junxiao Shi" <shijunxiao at email.arizona.edu>
To: mdparamartha95 at students.itb.ac.id
Cc: "ndnsim" <ndnsim at lists.cs.ucla.edu>
Sent: Tuesday, April 2, 2019 8:00:43 AM
Subject: Re: [ndnSIM] Calculate Hit Rate from Spesific Nodes in NFD Content Store
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/20190402/ad3c8bb5/attachment.html>
More information about the ndnSIM
mailing list