[ndnSIM] Accessing the interest in the OnTimeout method of ndn-consumer.cpp

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Wed Jan 31 12:30:34 PST 2018


Hi,

> On Jan 30, 2018, at 2:36 PM, Rajvardhan Deshmukh <rdeshmukh at umass.edu> wrote:
> 
> Hi All,
> 
> We intend to include a field in the interest packet to flag a retransmission (when the OnTimeout method of ndn-consumer.cpp is called). We created a packet tag following the steps from (http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003254.html). How do we set this field on the method 'OnTimeout'? (Specifically: How do we pass the interest to this method?)
> 

A way to do that is to maintain a list of the sent Interests as a part of the consumer application, then find the Interest that caused the timeout based on the sequence number.

After that, you can set the Interest field that you like.

> Main Goal:
> The final goal of this was to include a tag in the interest to indicate if it is a retransmission or not, and use that information in the forwarding strategy to take further steps (choose out face).
> 
> Any thoughts on a different method to achieve this result are also welcome.
> 
> Thanks,
> Raj
> 

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180131/1ad43f1b/attachment.html>


More information about the ndnSIM mailing list