[ndnSIM] [EXT] How to enable Cache hits and misses tracing in ndnSIM 2.8

Junxiao Shi shijunxiao at email.arizona.edu
Thu Apr 22 02:53:18 PDT 2021


Hi Hussein

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.

Yours, Junxiao

On Thu, Apr 22, 2021 at 05:50 Hussein AlOmaisi <alomaisi2004 at yahoo.com>
wrote:

> *External Email*
> Hi Junxiao,
>
> thanks.
>
> 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?
>
>
> regards,
>
> Hussein
>
>
> 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:
>
>
> Hi Hussein
>
> 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
>
> Yours, Junxiao
>
> On Wed, Apr 21, 2021 at 23:22 Hussein AlOmaisi via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>
> *External Email*
> Hi,
>
> 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     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.
>
> regards,
>
> Hussein
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210422/e1940c30/attachment.html>


More information about the ndnSIM mailing list