[ndnSIM] [EXT] How to enable Cache hits and misses tracing in ndnSIM 2.8
alomaisi2004 at yahoo.com
Thu Apr 22 02:50:22 PDT 2021
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 versions?
On Thu, Apr 22, 2021, 04:31 Hussein AlOmaisi <alomaisi2004 at yahoo.com> wrote:
On Thursday, April 22, 2021, 12:09:22 PM GMT+8, Junxiao Shi <shijunxiao at email.arizona.edu> wrote:
ndnSIM 2.8 removed legacy Content Store, according to release notes.https://ndnsim.net/2.8/RELEASE_NOTES.html#release-2-8
CsTracer is not hooked up to NFD Content Store, so that it will always print blank logs.https://github.com/named-data-ndnSIM/ndnSIM/blob/28da73c868ad7444dba7a754fb77a41f6ca7cb07/utils/tracers/ndn-cs-tracer.cpp#L202
On Wed, Apr 21, 2021 at 23:22 Hussein AlOmaisi via ndnSIM <ndnsim at lists.cs.ucla.edu> wrote:
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 default?
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 01 0 CacheMisses 01 1 CacheHits 01 1 CacheMisses 01 2 CacheHits 01 2 CacheMisses 0...
I appreciate your assistance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM