<div dir="ltr"><div dir="ltr">Hi Alex,<div><br></div><div> I would like to follow your 1st approach where you suggested that I attach the callback to a specific node's forwarder. Can you please explain to me briefly how I can do that? </div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 6, 2022 at 9:14 PM sai gautams <<a href="mailto:saigautam96@gmail.com">saigautam96@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Alex,</div><div><br></div><div>Thanks for your explanation. I will try this out.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 6, 2022 at 10:12 AM Alex Afanasyev <<a href="mailto:aa@cs.fiu.edu" target="_blank">aa@cs.fiu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br><blockquote type="cite"><div>On Mar 5, 2022, at 6:02 PM, sai gautams via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:</div><div><div><div class="gmail_quote"><br><div dir="ltr">Hi everyone,<div><br></div><div>I'm trying to obtain the CS metrics. I have installed the ndn::Cs Tracer on all my nodes and set a non-zero CS size for the nodes but the output .txt file is displaying Zeroes. I have found a mailing list where this question was asked previously. The solution provided is CS tracer doesn't support NFD's case which is beyond my understanding. Can anyone please help me in making me understand what exactly should I do? Thanks. </div></div></div></div></div></blockquote><div><br></div><div>Well.. That tracer had limited functionality and was depending on legacy function of very old content store implementation (and wasn't very fast).  Cache "metrics" is quite broad term and there isn't really a fit-all solution.</div><div><br></div><div>It would be great if you can work on a replacement function in ndnSIM, we would be happy to merge your patches.</div><div><br></div><div>A few ideas.</div><div><br></div><div>Forwarder class has two signals:  "afterCsHit" and "afterCsMiss".  One way you can get metrics right away, is to simply attach your callback to a specific node's Fowarder and then capture whatever you need.</div><div><br></div><div>Another way is to export this signals to NS-3 native side into ndn::L3Protocol (model/ndn-l3-protocol.cpp). There are already a few signals converted to NS-3's TraceSources and you can try to follow the idea.   After that, you just need to create/update the tracer with the metrics of your choice and attach to NS-3's trace source, similar how other tracers are attached (or directly from the scenario, also a possibility).</div><div><br></div><div>-</div><div>Alex</div><div><br></div></div><br></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><p><b>Sai Gautam Mandapati</b></p>

<p>Deakin University</p>

<p><br></p></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p><b>Sai Gautam Mandapati</b></p>

<p>Deakin University</p>

<p><br></p></div></div></div>