<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Dear all:</div><div>     Recently, I wonder about the <span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">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 "</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">compare_InRecord_expiry" ahead to avoid error. I run the "</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">./waf --run ndn-simple" successfully and redirect the output into a text file.</span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">//+++++++++++++++++++++++++++++++++++++++<br>double tt = ns3::Simulator::Now().ToDouble(ns3::Time::S);<br>std::cout <<"==========Forwarder::onIncomingInterest==================" << interest.getName().toUri()  << "\t"  << m_pit.size() << std::endl;<br>auto it = m_pit.begin();<br>for(it = m_pit.begin(); it != m_pit.end(); it++)<br>{<br>        pit::InRecordCollection::iterator lastExpiring = std::max_element(it->in_begin(), it->in_end(), &compare_InRecord_expiry);<br>        time::nanoseconds time_s = lastExpiring->getExpiry()- time::steady_clock::now();<br>        std::cout << tt << "\t" << it->getName().toUri() << "\t" <<  time_s << std::endl;<br>}<br>//+++++++++++++++++++++++++++++++++++++++</span></div><div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">     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. </span></div><div><img src="cid:_Foxmail.1@e939d574-8164-c283-297b-f73a61d5eb9b" border="0"></div>
<div>    I need your help and looking forward to your reply. Thanks very much.</div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div>祝好!</div><div>辛永辉</div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">中国科学院信息工程研究所 5室<br>地址:北京市海淀区杏石口路益园创意文化园C1 北段<br>邮编:100093<br>电话:15600615794<br>邮箱:xinyonghui@iie.ac.cn</span></span></div>
</body></html>