[ndnSIM] ndnSIM: Modifying Interest Packet

Muhammad Hosain Abdollahi Sabet mhasabet at gmail.com
Mon Feb 20 11:37:33 PST 2017


Could you please refer me to the actual code? To the best of my knowledge,
it is in Forwader::onContentStoreMiss that nfd decides whether to look up
fib with interest's name or with selectedDelegation. So it is before
strategy taking control of forwarding interest.

BTW, for that issue, I guess it would be nicer if every application as soon
as starting, update NRT with its prefix. Furthermore , I believe every
router in a domain should have the same NRT, or at least there must be
certain conjuctions.


On Mon, Feb 20, 2017 at 10:52 PM, Junxiao Shi <shijunxiao at email.arizona.edu>

> Hi Sabet
> You are actually able to change the Link object from strategy in NFD
> 0.5.1, but this is an undocumented feature and can disappear in NFD 0.6.0
> https://redmine.named-data.net/issues/3162
> Yours, Junxiao
> On Feb 20, 2017 12:19, "Muhammad Hosain Abdollahi Sabet" <
> mhasabet at gmail.com> wrote:
>> Dear Junxaio,
>> The point is that I want to substitute Link object. So I need to have the
>> interest processed again, because this time it will be out of
>> producerRegion and should be forwarded based on forwarding hint.
>> Thanks,
>> Sabet
>> On Mon, Feb 20, 2017 at 10:42 PM, Junxiao Shi <
>> shijunxiao at email.arizona.edu> wrote:
>>> Hi Sabet
>>> Starting NFD 0.5.0, Strategy::sendInterest function allows the strategy
>>> to directly specify the Interest packet to be sent out, so that you can
>>> make a copy of the Interest and modify it as you need.
>>> auto outInterest = make_shared<Interest>(inInterest);
>>> outInterest->setInterestLifetime(time::milliseconds(500));
>>> this->sendInterest(pitEntry, outFace, *outInterest);
>>> Just make sure the copy of Interest is created in make_shared, and it
>>> still matches the PIT entry which means you can't change
>>> Name+Selectors+Link.
>>> I can make a copy of Interest and modify it. How can I get it
>>> Forwarder::startProcessInterest to make it pass forwarding pipeline
>>> again? I mean, what about the incoming face? Any suggestion?
>>> I don't know why you want the Interest to enter as an incoming Interest.
>>> Where does it come from? (and that will be your incoming face)
>>> Yours, Junxiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170220/bd729ba0/attachment.html>

More information about the ndnSIM mailing list