[Ndn-interest] How to send new Interest from strategy on NFD

Nick Briggs nicholas.h.briggs at gmail.com
Fri Jul 7 23:29:43 PDT 2017


> On Jul 7, 2017, at 11:12 PM, 中村真也 <nakamura at c.info.eng.osaka-cu.ac.jp> wrote:
> 
> >>all
> Thanks all for replying. I read well your advice. 
> Then I would use API “consumer” from ndn-cxx examples as new Interest generator.
> [ https://github.com/named-data/ndn-cxx/blob/master/examples/consumer.cpp <https://github.com/named-data/ndn-cxx/blob/master/examples/consumer.cpp> ]
> Its my bad not to explain my purpose. I want use NFD as a central calculation node.
> So, first send Interest /calc1/arg1/arg2, second NFD gather /arg1 and /arg2 then calculate from them.
> Finally send back this as “/calc1/arg1/arg2”
> I want to re-ask how to reply the result “/calc/arg1/arg2”, I think this also needs to implement with api or new system that send two Interest /order/calc/arg1/arg2 and /pull/calc/arg1/arg2 , the latter sends with some delay.

I don't understand why you would want to perform the calculation *in the NFD* -- that's like saying you want to perform a calculation and generate new packets to get needed data in the IP forwarding layer in an IP router.   It really sounds as though you're just writing a calculation application that accepts the interest /calc1/arg1/arg2, gathers additional content with interests related to /arg1 and /arg2, and on receipt of that content can perform the desired calculation and produce the signed content under the original /calc1/arg1/arg2 name.   The app that generated the original /calc1/arg1/arg2 interest should be assigning an appropriate lifetime for that interest, and managing the timeout/retry... if it times out it can re-request it.  If the application has completed the calculation it will be able to answer without redoing the calculation (and requesting the content for /arg1 and /arg2 again).

-- Nick


> 
> >>Nick
> Thanks, and sorry for my lack of explanation.
> I dont care about load balancing on the current stage.
> 
> >>Lan
> I was trying to implement this with forwardInterest method from ASF.
> Thanks your advice. I will go another choice.
> --------------------------------------------------- 
> 大阪市立大学 工学部 電子情報系専攻
> 情報通信領域 M1
> 中村 真也(Masaya Nakamura )
> nakamura at c.info.eng.osaka-cu.ac.jp <mailto:nakamura at c.info.eng.osaka-cu.ac.jp> 
> ---------------------------------------------------
> 
> 
>> 2017/07/08 9:54、Lan Wang (lanwang) <lanwang at memphis.edu <mailto:lanwang at memphis.edu>>のメール:
>> 
>> Just want to mention that when the ASF strategy does probing, it make a copy of the received Interest and sends it over a face that it wants to probe.  But this interest has the same name as the received interest, so it’s not the same as what the original poster asked for.
>> 
>> Lan
>> 
>>> On Jul 7, 2017, at 9:59 AM, Junxiao Shi <shijunxiao at email.arizona.edu <mailto:shijunxiao at email.arizona.edu>> wrote:
>>> 
>>> Hi 真也
>>> 
>>> Strategy cannot inject new packets into the network. This is because strategy operates in the middle of forwarding. An Interest injected by strategy isn't recorded in the PIT, so the response Data cannot be delivered.
>>> 
>>> You can, however, forward /collect prefix to an application, and let that application send the new Interest.
>>> If needed, the application is able to learn where the Interest comes from through IncomingFaceId header field, and control where the new Interest goes to through NextHopFaceId header field.
>>> Both fields require enabling LocalField feature through faces/update management command.
>>> 
>>> Yours, Junxiao
>>> 
>>> On Jul 7, 2017 07:13, "中村真也" <nakamura at c.info.eng.osaka-cu.ac.jp <mailto:nakamura at c.info.eng.osaka-cu.ac.jp>> wrote:
>>> Dear ndn users.
>>> 
>>> I would like to ask how to send new Interest from strategy.
>>> For example, when daemon receives Interest:/collect/arg1/arg2, I want to make daemon send Interest:/arg1, /arg2.
>>> Now I uses NFD version 0.5.0. If it is easy to implement this with version 0.5.1, I will update NFD to 0.5.1
>>> 
>>> Best regards.
>>> --------------------------------------------------- 
>>> 中村 真也(Masaya Nakamura )
>>> nakamura at c.info.eng.osaka-cu.ac.jp <mailto:nakamura at c.info.eng.osaka-cu.ac.jp> 
>>> ---------------------------------------------------
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Ndn-interest mailing list
>>> Ndn-interest at lists.cs.ucla.edu <mailto:Ndn-interest at lists.cs.ucla.edu>
>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest <http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest>
>>> 
>>> 
>>> _______________________________________________
>>> Ndn-interest mailing list
>>> Ndn-interest at lists.cs.ucla.edu <mailto:Ndn-interest at lists.cs.ucla.edu>
>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest <http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest>
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20170707/3a70fa5d/attachment.html>


More information about the Ndn-interest mailing list