<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>(Continue of my previous email)<br>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</div><div>Thanks</div><div>Best regards<br><br></div><div><br>On Nov 19, 2015, at 11:07 AM, Zeinab <<a href="mailto:z.rezaiefar@yahoo.com">z.rezaiefar@yahoo.com</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Thank you so much Junxaio for your guiding</div><div>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 <br><br><br></div><div><br>On Nov 19, 2015, at 12:04 AM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Times New Roman",serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><div class="WordSection1"><p class="MsoNormal">Hi Zeinab</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">NFD/daemon/table is the new ContentStore policy API for NFD. lru-policy.hpp is inherited from ndnSIM 1.0 and is deprecated.</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">I don’t understand your question about dropping Data.</p><p class="MsoNormal">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.</p><p class="MsoNormal">The policy can control whether to admit a Data into the cache, and which cached Data to evict in case the cache is full.</p><p><o:p> </o:p></p><p>Yours, Junxiao</p><div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;border:none;padding:0in"><br><b>From: </b>Zeinab Rezaiefar<br><b>Sent: </b>Tuesday, November 17, 2015 19:31<br><b>To: </b><a href="mailto:shijunxiao@email.arizona.EDU">shijunxiao@email.arizona.EDU</a>;<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a><br><b>Subject: </b>Re: [ndnSIM] implementing new cache policy in ndnsim</p></div><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p><p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">  Hi Junxiao,</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black"><o:p></o:p></span></p><div id="yui_3_16_0_1_1447718932018_25241"><p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">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.<o:p></o:p></span></p></div><div id="yui_3_16_0_1_1447718932018_25536"><p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">furthermore, if I do not change forward.cpp still before forwarding the Data message can be dropped according the policy in  Policy::doAfterInsert function?<o:p></o:p></span></p></div><div id="yui_3_16_0_1_1447718932018_25548"><p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">thanks <o:p></o:p></span></p></div><div id="yui_3_16_0_1_1447718932018_25549"><p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">best regards<o:p></o:p></span></p></div><p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">Zeinab<o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p></div></div></blockquote></div></blockquote></body></html>