<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="">
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 class=""><br class="">
</div>
<div class="">This method might be useful: <a href="https://github.com/named-data/ndn-cxx/blob/master/ndn-cxx/name.hpp#L553" class="">https://github.com/named-data/ndn-cxx/blob/master/ndn-cxx/name.hpp#L553</a></div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br 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="">
<br class="">
</div>
</div>
</div>
</div>
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Dec 1, 2019, at 6:49 PM, 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 class="">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 class="">Thanks </div>
<div class="">Best regards</div>
<div class="">Zeinab</div>
</div>
<br class="">
<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" 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="">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 class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br 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=ZVqHtcX5V2jleLUOVSCWpnr7bRu6AHAcDS4pY2pek2Q&s=YbLI2mhQk1ub0Lqq7ySNqy2FZKVz03oU7e_zfVeJqx8&e=" target="_blank" class="">https://sites.google.com/site/spyridonmastorakis</a><br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
<div class="">
<blockquote type="cite" class="">
<div class="">On Nov 28, 2019, at 11:57 PM, 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="">Dear Junxiao,</div>
<div class="">Thanks for your reply. However, may I know how to just get the name of data that the is requested by consumers.</div>
<div class="">Thanks</div>
<div class="">Best regards</div>
</div>
<br class="">
<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" class="">shijunxiao@email.arizona.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 class="">
<div dir="auto" class="">Hi Zeinab</div>
</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class=""><span style="color:rgb(49,49,49);word-spacing:1px" class="">/localhost/nfd/faces/</span><span style="color:rgb(49,49,49);word-spacing:1px" class="">events/%FE%02 is indeed a Data packet stored in the CS.</span><br class="">
</div>
<div dir="auto" class=""><span style="color:rgb(49,49,49);word-spacing:1px" class="">It’s created by face management 
<div class=""><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" class="">https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Face-Status-Change-Notification</a></div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">Yours, Junxiao</div>
</span></div>
<div class=""><br class="">
<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" class="">ndnsim@lists.cs.ucla.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 dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="">Hello,</div>
<div class="">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 class="">for(ns3::Ptr<ns3::ndn::cs::Entry> csentry= m_csFromNdnSim->Begin(); csentry!= m_csFromNdnSim->End(); csentry=m_csFromNdnSim->Next(csentry))<br class="">
{<br class="">
std::cout<<"the name"<<csentry->GetName()<<"is stored in  node with id"<<node->GetId()<<"\n";<br class="">
<br class="">
}</div>
<div class=""><br class="">
</div>
<div class="">However, I notice this not only gives prefix that stored but also gives some event such as :</div>
<div class="">the name/localhost/nfd/faces/events/%FE%02is stored in node with id3</div>
<div class=""><br class="">
</div>
<div class="">what is the reason. how I can just access just the name of contents that are stored.</div>
<div class="">I will appreciate any help</div>
<div class="">best regards</div>
<div class="">Zeinab</div>
</div>
</div>
</div>
_______________________________________________<br class="">
ndnSIM mailing list<br class="">
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">
<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" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class="">
</blockquote>
</div>
</div>
</blockquote>
</div>
_______________________________________________<br class="">
ndnSIM mailing list<br class="">
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">
<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" class="">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 class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>