[ndnSIM] Calculate Hit Rate from Spesific Nodes in NFD Content Store
mdparamartha95 at students.itb.ac.id
mdparamartha95 at students.itb.ac.id
Tue Apr 2 05:35:51 PDT 2019
Hi Junxiao,
After 1 day trying to understand the forwarder in ndnSIM, but i couldnt get it.
I'm sorry I'm confuse about implement the Forwarder codes to count the hit ratio,
Where should I implement it ?
Should i call it like the old cs-tracer ?
Or put it into cs.cpp ?
Could you please give some example ?
Thank you so much,
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/4834f48d/attachment-0001.html>
More information about the ndnSIM
mailing list