<div dir="auto"><div>Hi Abbas</div><div dir="auto"><br></div><div dir="auto">PIT entry is created when an Interest arrives at a node and is accepted for forwarding.</div><div dir="auto">It is deleted as soon as the Interest is satisfied by Data or when it times out without being satisfied.</div><div dir="auto">In the latter case, the timeout is, by default, the InterestLifetime field in the packet.</div><div dir="auto"><br></div><div dir="auto">When you set a lifetime on the consumer, it specifies the InterestLifetime value that the consumer puts into the packets, which in turn influences the lifetime of a PIT entry.</div><div dir="auto">In the absence of retransmission and aggregation, it would be the maximum lifetime of a PIT entry.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sun, Sep 12, 2021, 15:04 Abbas Hussain via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr"><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">I want to set the PITEntry lifetime to 4S. For  NDNSim version 2.8, I came to know that the
PITEntry Lifetime can be set by setting the Lifetime as follows:</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">consumerHelper.SetAttribute("LifeTime",
StringValue("6s"));</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">I need information that by using the aforementioned command, what will be the lifetime of PITEntry??? How can I verify it?????</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"> How can I check the
PITEntry lifetime??? The following two different codes is giving me error</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">ns3::Time time;</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">      
shared_ptr<pit::Entry> pitEntry1;</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">              pitEntry1
= m_pit.insert(interest).first;</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">       time =
m_pit.MaxPitEntryLifetime();</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">              or</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">ns3::Time time;</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">      
shared_ptr<pit::Entry> pitEntry1;</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">              pitEntry1
= m_pit.insert(interest).first;</p>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">       time =
pitEntry1.MaxPitEntryLifetime();</p></div></div></div></div><br>
</blockquote></div></div></div>