[ndnSIM] ContentStore order

Wassim Drira drirawassim at gmail.com
Sun Nov 17 03:30:50 PST 2013


Hi all,

I am using ContentStore to store some msgs in reception order. I am using
the fifo variant. The issue is when printing the content of the cache, it
looks not ordered as you can see below (sequence number in the end of the
name).

Do you have an idea about the cause and may be a solution to this issue...

*%%%%%%%% ----- Code ----- %%%%%%%*
ObjectFactory m_contentStoreFactory;
m_contentStoreFactory.SetTypeId ("ns3::ndn::cs::Stats::Fifo");
m_contentStoreFactory.Set("MaxSize", StringValue ("50"));
m_pubCS = m_contentStoreFactory.Create<ContentStore> ();
......
Ptr<ns3::ndn::cs::Entry> entry = m_pubCS->Begin();
while(entry){
        NS_LOG_DEBUG("Cache Entry:"<< entry->GetData()->GetName());
        entry = m_pubCS->Next(entry);
}
*%%%%%%%% ----- OutPut ----- %%%%%%%*
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%02
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%01
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%04
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%03
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%06
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%05
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%08
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%07
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0A
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%09
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0C
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0B
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0E
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0D
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%10
18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0F


Best regards
---
Wassim Drira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20131117/5caec16c/attachment.html>


More information about the ndnSIM mailing list