<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Chengyu,<div class=""><br class=""></div><div class="">I would suggest you implement a caching policy in exactly the same way like you would do in NFD.</div><div class=""><br class=""></div><div class="">Then you will have to extend the helpers a bit to be able to use it. Take a look here:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/helper/ndn-stack-helper.cpp#L57-L60" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/helper/ndn-stack-helper.cpp#L57-L60</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Mar 21, 2018, at 4:39 PM, Chengyu Fan <<a href="mailto:chengyu.fan@colostate.edu" class="">chengyu.fan@colostate.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">Could someone tell me how to customize caching policy in ndnSIM-2.5?</div><div class=""><br class=""></div><div class="">I find some custom policy code in</div><div class=""><a href="https://github.com/named-data-ndnSIM/ndnSIM/tree/master/model/cs" class="">https://github.com/named-data-ndnSIM/ndnSIM/tree/master/model/cs</a><br class=""></div><div class=""><br class=""></div><div class="">Should I use the same way to implement my custom caching policy?</div><div class=""><br class=""></div><div class="">BTW, our caching policy needs to access statistics of forwarding strategy, is there a standard way to implement it? </div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Chengyu</div></div><br class=""></div></blockquote></div><br class=""></div></body></html>