[ndnSIM] A question about the expiry of PIT entry

Spyridon (Spyros) Mastorakis mastorakis at CS.UCLA.EDU
Mon Mar 27 15:30:00 PDT 2017


Hi,

most probably, you do not set the Interest lifetime in the appropriate way.

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

> On Feb 23, 2017, at 11:59 PM, xinyonghui at iie.ac.cn wrote:
> 
> 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. 
> <Catch.jpg>
>     I need your help and looking forward to your reply. Thanks very much.
> 祝好!
> 辛永辉
> 中国科学院信息工程研究所 5室
> 地址:北京市海淀区杏石口路益园创意文化园C1 北段
> 邮编:100093
> 电话:15600615794
> 邮箱:xinyonghui at iie.ac.cn <mailto:xinyonghui at iie.ac.cn>

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


More information about the ndnSIM mailing list