[ndnSIM] implementing new cache policy in ndnsim

Zeinab z.rezaiefar at yahoo.com
Wed Nov 18 18:15:34 PST 2015

(Continue of my previous email)
Moreover, i want to save this index with each content message like other entities (data, flag and timestamp)So my question is that where i should insert this new index and where i should modify to take decision according my method. I become so thankful to know your suggestions
Best regards

> On Nov 19, 2015, at 11:07 AM, Zeinab <z.rezaiefar at yahoo.com> wrote:
> 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?
>> thanks
>> best regards
>> Zeinab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151119/070f4645/attachment.html>

More information about the ndnSIM mailing list