<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Yes, the freshness period is set by the data producer.
<div class=""><br class="">
</div>
<div class="">If you really want to erase an entry from CS, the erase method of CS should work.</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Spyridon (Spyros) Mastorakis<br class="">
Assistant Professor<br class="">
Computer Science Department<br class="">
University of Nebraska, Omaha<br class="">
Peter Kiewit Institute Room 175A<br class="">
<a href="https://sites.google.com/site/spyridonmastorakis" class="">https://sites.google.com/site/spyridonmastorakis</a><br class="">
</div>
</div>
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 13, 2020, at 2:17 AM, Zeinab Rezaiefar <<a href="mailto:zeinab.rezaiefar@gmail.com" class="">zeinab.rezaiefar@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="">Dear Spyridon,</div>
<div class="">I have noticed that data accessed from cs::Entry is constant so I cannot change the freshness period of data and set it to zero. Therefore, I will receive an error with following commands in the forward.cpp file:</div>
<div class="">for(ns3::Ptr<ns3::ndn::cs::Entry> csentry= m_csFromNdnSim->Begin(); csentry!= m_csFromNdnSim->End(); csentry=m_csFromNdnSim->Next(csentry))<br class="">
{</div>
<div class="">csentry->GetData()->setFreshnessPeriod(time::milliseconds(0));<br class="">
}</div>
<div class=""><br class="">
</div>
<div class="">error :</div>
<div class="">../src/ndnSIM/NFD/daemon/fw/forwarder.cpp:221:61: error: passing ‘std::__shared_ptr_access<const ndn::Data, (__gnu_cxx::_Lock_policy)2, false, false>::element_type’ {aka ‘const ndn::Data’} as ‘this’ argument discards qualifiers [-fpermissive]<br class="">
 csentry->GetData()->setFreshnessPeriod(time::milliseconds(0));<br class="">
<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">However, maybe I understood something wrong from your solution.</div>
<div class="">I will be really grateful to know your opinion about this and your another solution regarding this issue.</div>
<div class="">Thanks</div>
<div class="">Bets regards</div>
<div class="">Zeinab</div>
</div>
</div>
</div>
</div>
<br class="">
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Wed, Feb 12, 2020 at 5:48 PM Zeinab Rezaiefar <<a href="mailto:zeinab.rezaiefar@gmail.com" class="">zeinab.rezaiefar@gmail.com</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr" class="">
<div class="">Dear Spyridon,</div>
<div class="">Thank you so much for your answer and help. It is a good trick to not reply Interest with the cached data. However, as I understand data will not be deleted from the cache so </div>
<div class="">in the case that I need to consider limited cache size, I may face a problem in evaluating the method. I prefer this data will be deleted from the cache so there will enough space for another data. If it does not mind, may I know your another
 solution as well.</div>
<div class="">Thank you so much for time and help</div>
<div class="">Best regards</div>
<div class="">Zeinab</div>
</div>
<br class="">
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Tue, Feb 11, 2020 at 11:54 PM Spyridon Mastorakis <<a href="mailto:smastorakis@unomaha.edu" target="_blank" class="">smastorakis@unomaha.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div style="word-wrap:break-word" class="">One thing you can do without actually dropping any cached packets (and it is a straightforward “hack”) is to set the freshness period of data packets to 0 (or something very close to that) and set the MustBeFresh flag
 of Interests to true (so that you simply ignore stale cached data packets):
<div class=""><br class="">
</div>
<div class=""><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__named-2Ddata.net_wp-2Dcontent_uploads_2018_08_hoticn18realtime-2Dretrieval.pdf&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=TlLWo0V2mY6hXNl5sm9tOM6OXdVtEhT0bVm3jDl6bfU&s=sRiAexvDBsuR4Q8QueXsUl2kdtfuFTpJ85-XMsh1Jrk&e=" target="_blank" class="">https://named-data.net/wp-content/uploads/2018/08/hoticn18realtime-retrieval.pdf</a></div>
<div class="">
<div class=""><br class="">
</div>
<div class="">If you really need to drop the packets, then I can give you another solution.</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div style="text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; white-space: normal; word-wrap: break-word;" dir="auto" class="">
<div style="text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; white-space: normal; word-wrap: break-word;" dir="auto" class="">
<div style="text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; white-space: normal; word-wrap: break-word;" dir="auto" class="">
<div class="">Spyridon (Spyros) Mastorakis<br class="">
Assistant Professor<br class="">
Computer Science Department<br class="">
University of Nebraska, Omaha<br class="">
Peter Kiewit Institute Room 175A<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__sites.google.com_site_spyridonmastorakis&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=TlLWo0V2mY6hXNl5sm9tOM6OXdVtEhT0bVm3jDl6bfU&s=Oa5Nwbou7OqP9pty6UVe4Iy0afQ6mofOxuovgVyMohk&e=" target="_blank" class="">https://sites.google.com/site/spyridonmastorakis</a><br class="">
<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 11, 2020, at 1:49 AM, Zeinab Rezaiefar via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank" class="">ndnsim@lists.cs.ucla.edu</a>> wrote:</div>
<br class="">
<div class="">
<div dir="ltr" class="">
<div class="">Hello there,</div>
<div class="">In continue of my previous email regarding dropping cached data, I have noticed that I need to erase data (using before evict signal)from cache and also clean up the index from policy. Since I want to command the cache to erase data from the forward.cpp
 file, I would like to know I can use Cs:: erase function to erase data from cache ? </div>
<div class="">May I know that I need still to cleanup index from policy as well.</div>
<div class="">I will be grateful to know our suggestions and guidance</div>
<div class="">Thanks</div>
<div class="">Best regards</div>
<div class="">Zeinab</div>
</div>
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>