[ndnSIM] [EXT] Custom Cache replacement policy

SUBODH MISHRA 1911602 at iiitdmj.ac.in
Fri Mar 11 20:52:41 PST 2022


Dear Junxiao,

Thank you very much for the quick reply.

As I am new to ns3 and ndnSIM, can you please provide more clarification on
the above 4 points. As I found that LRU and Priority_fifo replacement
policy includes the file "cs.hpp" which includes "cs-policy.hpp"
which eventually includes "cs-entry..hpp" .  Can you please specify exactly
how to maintain the counter and time stamp  for each CS entry  and how
these  values can be retrieved from the  custom  replacement policy.

Looking forward for your support


On Fri, Mar 11, 2022 at 8:11 PM Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> Hi Subodh
>
> See answers inline.
>
> On Fri, Mar 11, 2022, 09:29 SUBODH MISHRA via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>
>> *External Email*
>> Dear Researchers,
>> Respect to your hard works and passion
>>  I am implementing one of the replacement policy in ndnSIM(lru and
>> priority_fifo is already implemented) of which i need the following
>> information of the content inside the replacement policy.:-
>>
>> 1)Time of generation(by the producer) of contents present in the content
>> store.
>>
>
> This is not possible to know in general, because in NDN protocol, the Data
> packet is not required to carry content generation time.
> For specific applications, you can arrange the application to put an
> extension TLV field in the MetaInfo of its Data packets, that carries the
> content generation time.
>
>
>> 2)Number of requests of the contents present in the content store.
>>
>
> You can maintain a counter associated with each CS entry, and increment
> this counter every time you process a request.
>
>
>> 3)Time at which the contents are cached in the content store.
>>
>
> You can define a timestamp associated with each CS entry, assigned during
> insertion.
>
>
>> 4)Time of last request of the contents in the content store
>>
>
> You can define a timestamp associated with each CS entry, updated when you
> process each Interest.
>
>
>>  Please help me get this information. Thankyou in advance
>>
>
> Yours, Junxiao
>


-- 
Thanks & Regards,
Subodh Mishra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20220312/b8c9c0fb/attachment-0001.html>


More information about the ndnSIM mailing list