Project

General

Profile

Feature #1756

Updated by Junxiao Shi about 10 years ago

**Pick outgoing Interest packet** step Right now the interface of *outgoing Interest pipeline* should be moved OutgoingPipeline allow to strategy.   
 Strategy can pick an Interest packet from one specify "wantNewNonce", which causes creation of the InRecords, or construct a new Interest if necessary. 

 Reasons: 

 * Although protocol allows **changing InterestLifetime to account (new memory allocation for time spent in abstraction blocks and then new allocation for the forwarder**, it's generally undesirable to change it due to the overhead wire format).    I don't think that forwarding pipelines should ever allocate new memory for Interests and strategy should make this choice.     In most of reencoding the packet. 
   The error of consumer's estimation on how long it still wants cases I can think of, the Data is usually greater than the time spent Nonce can (and should) be replaced in the forwarder. 
   However, if the strategy causes the Interest to spend non-negligible time in forwarder, existing Interest.    If nonce tracking is needed, it may want to change InterestLifetime, to save resources in other forwarders. 
 * Some strategy may want to **put a fresh Nonce in the outgoing Interest** for probing or other purposes. should be done separately.

Back