[ndnSIM] implementing new cache policy in ndnsim

Junxiao Shi shijunxiao at email.arizona.edu
Wed Nov 18 07:04:18 PST 2015

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...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151118/b53daca0/attachment.html>

More information about the ndnSIM mailing list