[ndnSIM] LIfetime of PIT entry for differents routers

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed May 1 16:13:06 PDT 2013


Hi Flávio,

I just pushed an update to ndnSIM repo.  You can also check out an example how to set this limit in here https://github.com/cawka/ndnSIM-examples/blob/master/scenarios/ndn-simple-max-pit-entry-lifetime.cc, but it is very similar to what you were thinking originally, just slightly different names.

---
Alex

> Hi Alex,
> I think that the option for define a maximum lifetime of PIT entry on
> a router is a appropriate solution.
> Thank you so much!
> Best Regards,
> Flavio
> 
> Em 01/05/13 19:35, Alex Afanasyev escreveu:
>> Hi Flavio,
>> 
>> This function may not be the right way to do, since it is just a
>> method to set lifetime after PIT entry has been created, and which
>> is called by the forwarding strategy with an InterestLifetime value
>> from the incoming Interest.
>> 
>> I see two ways how to implement.  One way (which is easier to
>> implement and makes more sense for me) is to add a configuration
>> parameter for PIT to limit the maximum liftime of PIT entry on a
>> router.  If you think that this option can work for you, I can
>> actually add it later today.
>> 
>> Another, more complicated way, is to create custom forwarding
>> strategy (modify the existing one) and explicitly configure what
>> should be the lifetime for PIT entry, regardless of what is
>> specified in the Interests.
>> 
>> --- Alex
>> 
>> On May 1, 2013, at 3:28 PM, Flávio Queiroz
>> <flavioqueiroz2004 at hotmail.com> wrote:
>> 
>>> Hello Alex, How can I implement differents lIfetimes of PIT entry
>>> for each router?
>>> 
>>> How can I implement the functions virtual void UpdateLifetime
>>> (const Time &lifetime) 
>>> (https://github.com/NDN-Routing/ndnSIM/blob/master/model/pit/ndn-pit-entry.h#L125)
>>> 
>>> 
>>> 
> or
>>> virtual void OffsetLifetime (const Time &offsetTime) 
>>> (https://github.com/NDN-Routing/ndnSIM/blob/master/model/pit/ndn-pit-entry.h#L135)
>>> 
>>> 
>>> 
>>> 
> as atributes and use for example:
>>> 
>>> default      PIT entry      PIT entry      PIT entry lifetime=2s
>>> lifetime=1.5s  lifetime=1s    lifetime=0.5s - -----        ------
>>> ------         ------       ----- | C
>>> |<======>|Rtr1|<=======>|Rtr2|<=======>|Rtr3|<=====>| P | - -----
>>> ------         ------         ------       -----
>>> 
>>> 
>>> Config::Set 
>>> ("/NodeList/1/$ns3::ndn::pit::Persistent::AggregateStats/UpdateLifetime",
>>> 
>>> 
> Value (1.5));
>>> 
>>> Config::Set 
>>> ("/NodeList/2/$ns3::ndn::pit::Persistent::AggregateStats/UpdateLifetime",
>>> 
>>> 
> Value (1));
>>> 
>>> Config::Set 
>>> ("/NodeList/3/$ns3::ndn::pit::Persistent::AggregateStats/UpdateLifetime",
>>> 
>>> 
> Value (0.5));
>>> 
>>> is this possible?
>>> 
>>> Thanks in advance, Flavio Queiroz





More information about the ndnSIM mailing list