[ndnSIM] Policy class knowing about interests?

Junxiao Shi shijunxiao at email.arizona.edu
Mon May 1 00:33:33 PDT 2017


Hi John

When an incoming Interest hits a cached Data, the CS policy is informed of
a "use" of an entry in beforeUse signal.
https://github.com/named-data/NFD/blob/3aba7548f40e29bb19a8429884c7c23a839043aa/daemon/table/cs.cpp#L146

Yours, Junxiao

On Sun, Apr 30, 2017 at 8:22 PM, John Baugh <jpbaugh at umich.edu> wrote:

>
> If I understand correctly, the *Strategy *class is the only one that
> knows when an interest arrives (afterReceiveInterest method specifically.)
>
> And the *Policy *class is what determines what is cached and/or removed
> from the cache.
>
> So, *what if the Policy wanted information about the frequency of
> Interests*?
>
> The way I'm trying to make this work is with an intermediary class
> allowing for some level of communication between the custom derived (sub)
> classes of Strategy and Policy that I've written.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170501/31a03108/attachment.html>


More information about the ndnSIM mailing list