<div dir="ltr">Thanks for the suggestion, Spyros.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 24, 2018 at 1:50 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Chengyu,<div><br></div><div>I would suggest you implement a caching policy in exactly the same way like you would do in NFD.</div><div><br></div><div>Then you will have to extend the helpers a bit to be able to use it. Take a look here:</div><div><br></div><div><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/helper/ndn-stack-helper.cpp#L57-L60" target="_blank">https://github.com/named-data-<wbr>ndnSIM/ndnSIM/blob/master/<wbr>helper/ndn-stack-helper.cpp#<wbr>L57-L60</a></div><div><br></div><div>Thanks,</div><div><br></div><div><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><br></div></div></div></div><div><div class="h5"><div><blockquote type="cite"><div>On Mar 21, 2018, at 4:39 PM, Chengyu Fan <<a href="mailto:chengyu.fan@colostate.edu" target="_blank">chengyu.fan@colostate.edu</a>> wrote:</div><br class="m_8347381867923651055Apple-interchange-newline"><div><div dir="ltr">Hi,<div><br></div><div>Could someone tell me how to customize caching policy in ndnSIM-2.5?</div><div><br></div><div>I find some custom policy code in</div><div><a href="https://github.com/named-data-ndnSIM/ndnSIM/tree/master/model/cs" target="_blank">https://github.com/named-data-<wbr>ndnSIM/ndnSIM/tree/master/<wbr>model/cs</a><br></div><div><br></div><div>Should I use the same way to implement my custom caching policy?</div><div><br></div><div>BTW, our caching policy needs to access statistics of forwarding strategy, is there a standard way to implement it? </div><div><br></div><div>Thanks,</div><div>Chengyu</div></div><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>