[ndnSIM] access stored content in cache from forward.cpp

Spyridon Mastorakis smastorakis at unomaha.edu
Fri Nov 29 17:56:07 PST 2019


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.

Thanks,

Spyridon (Spyros) Mastorakis
Assistant Professor
Computer Science Department
University of Nebraska, Omaha
Peter Kiewit Institute Room 175A
https://sites.google.com/site/spyridonmastorakis

On Nov 28, 2019, at 11:57 PM, Zeinab Rezaiefar via ndnSIM <ndnsim at lists.cs.ucla.edu<mailto:ndnsim at lists.cs.ucla.edu>> wrote:

Dear Junxiao,
Thanks for your reply. However, may I know how to just get the name of data that the is requested by consumers.
Thanks
Best regards

On Thu, Nov 28, 2019 at 8:18 PM Junxiao Shi <shijunxiao at email.arizona.edu<mailto:shijunxiao at email.arizona.edu>> wrote:
Hi Zeinab

/localhost/nfd/faces/events/%FE%02 is indeed a Data packet stored in the CS.
It’s created by face management
https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Face-Status-Change-Notification<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=>

Yours, Junxiao

On Thu, Nov 28, 2019 at 00:39 Zeinab Rezaiefar via ndnSIM <ndnsim at lists.cs.ucla.edu<mailto:ndnsim at lists.cs.ucla.edu>> wrote:
Hello,
I would like to get name of content that are stored in the cache in forward.cpp so I wrote the below lines:
for(ns3::Ptr<ns3::ndn::cs::Entry> csentry= m_csFromNdnSim->Begin(); csentry!= m_csFromNdnSim->End(); csentry=m_csFromNdnSim->Next(csentry))
{
std::cout<<"the name"<<csentry->GetName()<<"is stored in  node with id"<<node->GetId()<<"\n";

}

However, I notice this not only gives prefix that stored but also gives some event such as :
the name/localhost/nfd/faces/events/%FE%02is stored in node with id3

what is the reason. how I can just access just the name of contents that are stored.
I will appreciate any help
best regards
Zeinab
_______________________________________________
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu<mailto:ndnSIM at lists.cs.ucla.edu>
http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<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=>
_______________________________________________
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu<mailto:ndnSIM at lists.cs.ucla.edu>
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=

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20191130/d155e574/attachment.html>


More information about the ndnSIM mailing list