[ndnSIM] [EXT] How to enable Cache hits and misses tracing in ndnSIM 2.8
shijunxiao at email.arizona.edu
Thu Apr 22 02:53:18 PDT 2021
Caching is provided by NFD Content Store and is enabled by default.
CS tracer is broken. You need to reimplement the tracer, and then please
contribute back so that the community can use it.
On Thu, Apr 22, 2021 at 05:50 Hussein AlOmaisi <alomaisi2004 at yahoo.com>
> *External Email*
> Hi Junxiao,
> Do I understand from your response that the in-network caching feature is
> not enabled (caching and tracing) with ndnSIM 2.8? if so, how I can enable
> it as my work aims to study the impact of forwarding strategies on cache
> hits and misses? please give me any hints, I have almost finished my
> proposed study on ndnSIM 2.8 I don't prefer to go back to 2.7 or earlier
> On Thu, Apr 22, 2021, 04:31 Hussein AlOmaisi <alomaisi2004 at yahoo.com>
> On Thursday, April 22, 2021, 12:09:22 PM GMT+8, Junxiao Shi <
> shijunxiao at email.arizona.edu> wrote:
> Hi Hussein
> ndnSIM 2.8 removed legacy Content Store, according to release notes.
> CsTracer is not hooked up to NFD Content Store, so that it will always
> print blank logs.
> Yours, Junxiao
> On Wed, Apr 21, 2021 at 23:22 Hussein AlOmaisi via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
> *External Email*
> I have this scenario:
> A (consumer) ------ B(router) -------- C(router) ------- D
> (consuemr) ------ E (producer)
> both consumer nodes (A & D) start at the same time. I expected according
> to NDN's basic forwarding mechanism that consumer (A) can get a response
> for its request from the cache of consumer (D) which is at (3) hop counts
> from consumer (A). However, the consumer (A) gets responses from the
> producer (D) not from the cache of consumer (D). How to enable caching and
> serving requests from caches in the intermediate node if not enabled by
> One more point, using *ndn-cxx.nfd.Forwarder* log component I can see the
> consumer (D) go through *Forwarder::onContentStoreHit()* and the value of* m_counters.nCsHits
> *counter increases. However, the *CS Tracer* does not show that.
> How I can enable CS tracer in ndnSIM 2.8 to show the number of cache hits
> and misses. it currently shows me a text file with all CacheHits and
> CacheMisses are Zeroes. For example:
> *Time Node Type Packets*
> 1 0 CacheHits 0
> 1 0 CacheMisses 0
> 1 1 CacheHits 0
> 1 1 CacheMisses 0
> 1 2 CacheHits 0
> 1 2 CacheMisses 0
> I appreciate your assistance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM