<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">most probably, you do not set the Interest lifetime in the appropriate way.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Feb 23, 2017, at 11:59 PM, <a href="mailto:xinyonghui@iie.ac.cn" class="">xinyonghui@iie.ac.cn</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: 'Microsoft YaHei UI'; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span class=""></span>Dear all:</div><div style="font-family: 'Microsoft YaHei UI'; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">     Recently, I wonder about the <span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;" class="">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;" class="">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;" class="">./waf --run ndn-simple" successfully and redirect the output into a text file.</span></div><div style="font-family: 'Microsoft YaHei UI'; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span 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;'="" style="font-family: '} ';" class="">//+++++++++++++++++++++++++++++++++++++++<br class="">double tt = ns3::Simulator::Now().ToDouble(ns3::Time::S);<br class="">std::cout <<"==========Forwarder::onIncomingInterest==================" << interest.getName().toUri()  << "\t"  << m_pit.size() << std::endl;<br class="">auto it = m_pit.begin();<br class="">for(it = m_pit.begin(); it != m_pit.end(); it++)<br class="">{<br class="">        pit::InRecordCollection::iterator lastExpiring = std::max_element(it->in_begin(), it->in_end(), &compare_InRecord_expiry);<br class="">        time::nanoseconds time_s = lastExpiring->getExpiry()- time::steady_clock::now();<br class="">        std::cout << tt << "\t" << it->getName().toUri() << "\t" <<  time_s << std::endl;<br class="">}<br class="">//+++++++++++++++++++++++++++++++++++++++</span></div><div style="font-family: 'Microsoft YaHei UI'; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;" class="">     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 style="font-family: 'Microsoft YaHei UI'; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span id="cid:_Foxmail.1@e939d574-8164-c283-297b-f73a61d5eb9b"><Catch.jpg></span></div><div style="font-family: 'Microsoft YaHei UI'; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">    I need your help and looking forward to your reply. Thanks very much.</div><hr size="1" align="left" style="font-family: 'Microsoft YaHei UI'; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; width: 210px; height: 1px;" class=""><div style="font-family: 'Microsoft YaHei UI'; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span class=""><div class="">祝好!</div><div class="">辛永辉</div><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: '} ';" class="">中国科学院信息工程研究所 5室<br class="">地址:北京市海淀区杏石口路益园创意文化园C1 北段<br class="">邮编:100093<br class="">电话:15600615794<br class="">邮箱:<a href="mailto:xinyonghui@iie.ac.cn" class="">xinyonghui@iie.ac.cn</a></span></span></div><br class=""></div></blockquote></div><br class=""></div></body></html>