[ndnSIM] A question about the expiry of PIT entry

xinyonghui at iie.ac.cn xinyonghui at iie.ac.cn
Fri Feb 24 00:00:01 PST 2017


Dear all:
     Recently, I wonder about the expiry of PIT entry recorded in the PIT module, and I print the expiry in the Inrecord of each entry by adding print information  in the  "Forwarder::onIncomingInterset()" and move function "compare_InRecord_expiry" ahead to avoid error. I run the "./waf --run ndn-simple" successfully and redirect the output into a text file.
//+++++++++++++++++++++++++++++++++++++++
double tt = ns3::Simulator::Now().ToDouble(ns3::Time::S);
std::cout <<"==========Forwarder::onIncomingInterest==================" << interest.getName().toUri()  << "\t"  << m_pit.size() << std::endl;
auto it = m_pit.begin();
for(it = m_pit.begin(); it != m_pit.end(); it++)
{
        pit::InRecordCollection::iterator lastExpiring = std::max_element(it->in_begin(), it->in_end(), &compare_InRecord_expiry);
        time::nanoseconds time_s = lastExpiring->getExpiry()- time::steady_clock::now();
        std::cout << tt << "\t" << it->getName().toUri() << "\t" <<  time_s << std::endl;
}
//+++++++++++++++++++++++++++++++++++++++
     In general, the expiry should be a non-negetive value since it means the time interval to be expired. However, I find there are negetive values and huge positive values in the result file. As shown below fig. and I doubt the entry satisfied by Data is not clear timely, but I still cannot convince myself. 
    I need your help and looking forward to your reply. Thanks very much.


祝好!
辛永辉
中国科学院信息工程研究所 5室
地址:北京市海淀区杏石口路益园创意文化园C1 北段
邮编:100093
电话:15600615794
邮箱:xinyonghui at iie.ac.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170224/a225cfb2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 292753 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170224/a225cfb2/attachment-0001.jpe>


More information about the ndnSIM mailing list