<div dir="ltr"><div dir="ltr"><div>Thanks you so much Prof. Spyros for your help. It works. I have just needed to put these lines:</div><div>Name n="/localhost";<br>if (!n.isPrefixOf(csentry->GetName())){</div><div>}</div><div>to filter a name that starts with " /localhost" prefix.</div><div>best regards</div><div>Zeinab</div></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Mon, Dec 2, 2019 at 1:19 PM Spyridon Mastorakis <<a href="mailto:smastorakis@unomaha.edu">smastorakis@unomaha.edu</a>> wrote:<br></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">
Include an if statement and filter packets based on their prefix. If you find a packet with a name that starts with “/localhost”, you can safely ignore it.
<div><br>
</div>
<div>This method might be useful: <a href="https://github.com/named-data/ndn-cxx/blob/master/ndn-cxx/name.hpp#L553" target="_blank">https://github.com/named-data/ndn-cxx/blob/master/ndn-cxx/name.hpp#L553</a></div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
<div>
<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;white-space:normal;word-wrap:break-word" dir="auto">
<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;white-space:normal;word-wrap:break-word" dir="auto">
<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;white-space:normal;word-wrap:break-word" dir="auto">
<div>Spyridon (Spyros) Mastorakis<br>
Assistant Professor<br>
Computer Science Department<br>
University of Nebraska, Omaha<br>
Peter Kiewit Institute Room 175A<br>
<a href="https://sites.google.com/site/spyridonmastorakis" target="_blank">https://sites.google.com/site/spyridonmastorakis</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
<div>
<blockquote type="cite">
<div>On Dec 1, 2019, at 6:49 PM, Zeinab Rezaiefar <<a href="mailto:zeinab.rezaiefar@gmail.com" target="_blank">zeinab.rezaiefar@gmail.com</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>Thank you so much Prof. Spyros for your email. However, I need to calculate some metrics for just data messages which are requested by users and saved in the cache ( I do not want to consider to consider data packet generated by NFD) . How I can
 access it? is there any field that can distinguish these data from each other?</div>
<div>Thanks </div>
<div>Best regards</div>
<div>Zeinab</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Sat, Nov 30, 2019 at 10:56 AM Spyridon Mastorakis <<a href="mailto:smastorakis@unomaha.edu" target="_blank">smastorakis@unomaha.edu</a>> wrote:<br>
</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">Off the top of my head, I do not see anything (much) wrong with what you did. What you got is indeed the name of a data packet generated by NFD for management purposes.
<div><br>
</div>
<div>Thanks,</div>
<div><br>
<div>
<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">
<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">
<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">
<div>Spyridon (Spyros) Mastorakis<br>
Assistant Professor<br>
Computer Science Department<br>
University of Nebraska, Omaha<br>
Peter Kiewit Institute Room 175A<br>
<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=ZVqHtcX5V2jleLUOVSCWpnr7bRu6AHAcDS4pY2pek2Q&s=YbLI2mhQk1ub0Lqq7ySNqy2FZKVz03oU7e_zfVeJqx8&e=" target="_blank">https://sites.google.com/site/spyridonmastorakis</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
<div>
<blockquote type="cite">
<div>On Nov 28, 2019, at 11:57 PM, Zeinab Rezaiefar via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>Dear Junxiao,</div>
<div>Thanks for your reply. However, may I know how to just get the name of data that the is requested by consumers.</div>
<div>Thanks</div>
<div>Best regards</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Thu, Nov 28, 2019 at 8:18 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>> wrote:<br>
</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>
<div dir="auto">Hi Zeinab</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><span style="color:rgb(49,49,49);word-spacing:1px">/localhost/nfd/faces/</span><span style="color:rgb(49,49,49);word-spacing:1px">events/%FE%02 is indeed a Data packet stored in the CS.</span><br>
</div>
<div dir="auto"><span style="color:rgb(49,49,49);word-spacing:1px">It’s created by face management 
<div><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__redmine.named-2Ddata.net_projects_nfd_wiki_FaceMgmt-23Face-2DStatus-2DChange-2DNotification&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=iVeUKIYBbctEMozc-bO8JiTPCteuxVPGB1pQR1kWfWA&s=FXy50ke1ii8ZcC6hK-NevVaWQWkfHCJ1ShlECPtFes4&e=" target="_blank">https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Face-Status-Change-Notification</a></div>
<div dir="auto"><br>
</div>
<div dir="auto">Yours, Junxiao</div>
</span></div>
<div><br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Thu, Nov 28, 2019 at 00:39 Zeinab Rezaiefar via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br>
</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">
<div dir="ltr">
<div dir="ltr">
<div>Hello,</div>
<div>I would like to get name of content that are stored in the cache in forward.cpp so I wrote the below lines:</div>
<div>for(ns3::Ptr<ns3::ndn::cs::Entry> csentry= m_csFromNdnSim->Begin(); csentry!= m_csFromNdnSim->End(); csentry=m_csFromNdnSim->Next(csentry))<br>
{<br>
std::cout<<"the name"<<csentry->GetName()<<"is stored in  node with id"<<node->GetId()<<"\n";<br>
<br>
}</div>
<div><br>
</div>
<div>However, I notice this not only gives prefix that stored but also gives some event such as :</div>
<div>the name/localhost/nfd/faces/events/%FE%02is stored in node with id3</div>
<div><br>
</div>
<div>what is the reason. how I can just access just the name of contents that are stored.</div>
<div>I will appreciate any help</div>
<div>best regards</div>
<div>Zeinab</div>
</div>
</div>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=iVeUKIYBbctEMozc-bO8JiTPCteuxVPGB1pQR1kWfWA&s=zDZXKaPhPh2j3s_G5xT_1ySr2bfkxAuNTKhlbX25HMY&e=" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote>
</div>
</div>
</blockquote>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=iVeUKIYBbctEMozc-bO8JiTPCteuxVPGB1pQR1kWfWA&s=zDZXKaPhPh2j3s_G5xT_1ySr2bfkxAuNTKhlbX25HMY&e=" target="_blank">https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=iVeUKIYBbctEMozc-bO8JiTPCteuxVPGB1pQR1kWfWA&s=zDZXKaPhPh2j3s_G5xT_1ySr2bfkxAuNTKhlbX25HMY&e=</a>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div>