[ndnSIM] Setting PIT size

Mateus Sousa mateus.aluufc at gmail.com
Mon Dec 4 07:34:43 PST 2017


Hi, Junxiao. Thanks for replying. To limit the PIT I put the following line
code in onInconmingInterest at forwarder.cpp:

if (m_pit.size() <= MAX_PIT_SIZE) {
  // Do the Interest pipeline process
  ...
} else
return;  // Drop interest

Is that a "correct" way to achieve a PIT limitation?


2017-12-04 11:37 GMT-03:00 Junxiao Shi <shijunxiao at email.arizona.edu>:

> Hi Mateus
>
> can someone tell me how can I set the default PIT size (1) and the entry
>> lifetime (2)?
>>
>
> NFD does not limit PIT size. It crashes when running out memory.
> https://redmine.named-data.net/issues/1301 aims at limiting table size
> when memory becomes scarce. However, it's never assigned or worked on.
>
> PIT entry lifetime is set according to InterestLifetime received from
> downstream, among other factors such as strategy.
> You may influence PIT entry lifetime by increasing or decreasing
> InterestLifetime set at consumer.
>
> Yours, Junxiao
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171204/55c11c3d/attachment.html>


More information about the ndnSIM mailing list