[Nfd-dev] OnContentSoreMiss pipline

Muhammad Hosain Abdollahi Sabet mhasabet at gmail.com
Tue Aug 2 09:24:01 PDT 2016


Junxiao,

Why is it moved from pipelines to strategy? What is the reason to have Link
objects handled in local strategies instead of global pipelines?

Thanks,
Sabet


خندان باشید
با تشکر

On Tue, Jul 26, 2016 at 11:18 PM, Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> Hi Sabet
>
> I'm doing refactoring these days, and devguide isn't updated yet.
> In short, FIB lookup, including handling Link objects, is in
> Forwarder::lookupFib method but it's invoked by the strategy instead of
> pipelines.
> See https://redmine.named-data.net/issues/3664#note-4
>
> Yours, Junxiao
>
> On Mon, Jul 25, 2016 at 1:39 AM, Muhammad Hosain Abdollahi Sabet <
> mhasabet at gmail.com> wrote:
>
>> ​Hi there,
>> According to developer guid​e, section 4.2.3 ContentStore Miss Pipeline
>>
>> [image: Inline image 1]
>>
>> there should be some checkings on if incoming Interest has Link object,
>> so to decide on how to forward the Interest. But in daemon/fw/forwarder.cpp
>> there is no such checks in Forwarder::onContentStoreMiss:
>>
>> void
>> Forwarder::onContentStoreMiss(const Face& inFace,
>>                               shared_ptr<pit::Entry> pitEntry,
>>                               const Interest& interest)
>> {
>>   NFD_LOG_DEBUG("onContentStoreMiss interest=" << interest.getName());
>>
>>   shared_ptr<Face> face =
>> const_pointer_cast<Face>(inFace.shared_from_this());
>>   // insert InRecord
>>   pitEntry->insertOrUpdateInRecord(face, interest);
>>
>>   // set PIT unsatisfy timer
>>   this->setUnsatisfyTimer(pitEntry);
>>
>>   // FIB lookup
>>   shared_ptr<fib::Entry> fibEntry =
>> m_fib.findLongestPrefixMatch(*pitEntry);
>>
>>   // dispatch to strategy
>>   this->dispatchToStrategy(pitEntry,
>> bind(&Strategy::afterReceiveInterest, _1,
>>                                           cref(inFace), cref(interest),
>> fibEntry, pitEntry));
>> }
>>
>>  Am I missing something?
>>
>> Actually I was wondering why setting Link object doesn't affect
>> forwarding decisions in ndnSIM. I guess this the reason, right?
>>
>> Thanks,
>> Sabet
>>
>> _______________________________________________
>> Nfd-dev mailing list
>> Nfd-dev at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160802/686a4ab5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 39565 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160802/686a4ab5/attachment.png>


More information about the Nfd-dev mailing list