[ndnSIM] How to Change Interest name in m_table on Cs.cpp NFD

mdparamartha95 at students.itb.ac.id mdparamartha95 at students.itb.ac.id
Sun Mar 31 20:22:15 PDT 2019


Hi Junxiao, 

I've done it with your suggestion,
So I Created specific QueueType for the last cache, but still in the same list, 

My method just like moveToStalQueue in Priority FIFO.

Thank You Junxiao,

Best Regards.
Adi Paramartha

----- Original Message -----
From: mdparamartha95 at students.itb.ac.id
To: "Junxiao Shi" <shijunxiao at email.arizona.edu>
Cc: "ndnsim" <ndnsim at lists.cs.ucla.edu>
Sent: Saturday, March 30, 2019 8:48:21 PM
Subject: Re: [ndnSIM] How to Change Interest name in m_table on Cs.cpp NFD

Hi Junxiao, 
Thank you for the reply and information,

So iterator could be moved from first list into secondary list?

And we could do it on cs-replacement-policy?

is that right?

Thank you,

Best Regards,
Adi Paramartha

----- Original Message -----
From: Junxiao Shi <shijunxiao at email.arizona.edu>
To: mdparamartha95 at students.itb.ac.id
Cc: ndnsim <ndnsim at lists.cs.ucla.edu>
Sent: Sat, 30 Mar 2019 18:59:18 +0700 (WIB)
Subject: Re: [ndnSIM] How to Change Interest name in m_table on Cs.cpp NFD

Hi Adi

If you are looking to implement something like Adaptive Replacement Cache
(ARC) algorithm: don’t attempt to create a “secondary CS”. Instead, create
a single cs::Policy that has multiple lists, and move CS entry iterators
among these lists.
Lookup would not work otherwise.
Read Priority FIFO policy code for example.

Yours, Junxiao

On Fri, Mar 29, 2019 at 07:27 <mdparamartha95 at students.itb.ac.id> wrote:

> Hi Junxiao,
>
> Thank you for the explanation,
>
> So NDN router which not instaled as consumer or producer, (only NDN stack
> helper for cs) cannot change the data name?
>
> I'm just wondering how to store 5 recent removed data into secondary
> Content Store instead of the primary,
> and the lookup process is still working for secondary cache.
>
> I try to modify the cs-policy, but when lookup process for secondary
> cache, the iterator still refer to the primary cache which is already
> deleted when moved into the secondary cache,
>
> That's why I wonder change the m_table for the specific iterator.
>
> Best Regards,
> Adi Paramartha
>
>


More information about the ndnSIM mailing list