Hi Igor,
If you run experiments and you use the CacheHitRatioCollector (which you can do by adding the "CACHE_HIT_RATIO" entry to the list of collectors in your config file) with its default configuration, in the result set you will have, in addition to the overall cache hit ratio, a dictionary with the hit ratio of each cache node, i.e. a dictionary mapping node id to its cache hit ratio. You don't have to write any additional code for that.
Is that what you're looking for?
Lorenzo
________________________________
From: icarus-bounces_at_ee.ucl.ac.uk <icarus-bounces_at_ee.ucl.ac.uk> on behalf of Igor Carvalho <igfuca_at_gmail.com>
Sent: 23 January 2017 13:52:28
To: icarus_at_ee.ucl.ac.uk
Subject: [Icarus] Get the number of cache hits of nodes
Hi,
I'd like to get the number of cache hits of the path from the receiver to source. I know that I need to include collectors.py for that. To do so, I intend to use a dictionary so that it stores the nodes of the path and the number of cache hits. But the problem is that the class CacheHitRatioCollectors takes as parameters (off_path_hit, per_node, content_hit) and I don't know how to an object of this class stores in a dictionary the nodes and their cache hits. I really appreciate any help.
Regards,
--
Igor Carvalho
Master on Computer Science - UFPA
GERCOM Researcher.
Received on Mon Jan 23 2017 - 19:01:21 GMT