[ndnSIM] implementing new cache policy in ndnsim
z.rezaiefar at yahoo.com
Wed Nov 18 18:07:09 PST 2015
Thank you so much Junxaio for your guiding
Yes it is right according to protocol if there is data packet matched with interest, it will retrieve to user , but i want to modify it. As i mentioned , in my first email , i want to identify new index for each content message which should be calculate before forwarding the content and according to this content the nodes decide to cache and forward the content message or drop it
> On Nov 19, 2015, at 12:04 AM, Junxiao Shi <shijunxiao at email.arizona.edu> wrote:
> Hi Zeinab
> NFD/daemon/table is the new ContentStore policy API for NFD. lru-policy.hpp is inherited from ndnSIM 1.0 and is deprecated.
> I don’t understand your question about dropping Data.
> If the ContentStore has a matching Data for an incoming Interest, it’s always returned to the downstream. This is a protocol requirement, and the policy has no control over this process.
> The policy can control whether to admit a Data into the cache, and which cached Data to evict in case the cache is full.
> Yours, Junxiao
> From: Zeinab Rezaiefar
> Sent: Tuesday, November 17, 2015 19:31
> To: shijunxiao at email.arizona.EDU;ndnsim at lists.cs.ucla.edu
> Subject: Re: [ndnSIM] implementing new cache policy in ndnsim
> Hi Junxiao,
> firstly I would like to say thanks for your helping. Then, I would like to say that something is not clear for me. there are 2 folders : (NFD/daemon/table and util/trie) that contain for example cs-policy-lru.cpp and lru-policy.hpp related to lru policy. I should copy these files and change them according my policy or just changing file in NFD path ? moreover, why in NFD/deamon/table path there are only files for lru and fifo policies not other policies.
> furthermore, if I do not change forward.cpp still before forwarding the Data message can be dropped according the policy in Policy::doAfterInsert function?
> best regards
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM