<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 7, 2017, at 11:12 PM, 中村真也 <<a href="mailto:nakamura@c.info.eng.osaka-cu.ac.jp" class="">nakamura@c.info.eng.osaka-cu.ac.jp</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">>>all<br class=""><div class="">Thanks all for replying. I read well your advice. </div><div class="">Then I would use API “consumer” from ndn-cxx examples as new Interest generator.</div><div class="">[ <a href="https://github.com/named-data/ndn-cxx/blob/master/examples/consumer.cpp" class="">https://github.com/named-data/ndn-cxx/blob/master/examples/consumer.cpp</a> ]</div><div class="">Its my bad not to explain my purpose. I want use NFD as a central calculation node.</div><div class="">So, first send Interest /calc1/arg1/arg2, second NFD gather /arg1 and /arg2 then calculate from them.</div><div class="">Finally send back this as “/calc1/arg1/arg2”</div><div class="">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.</div></div></div></blockquote><div><br class=""></div>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).</div><div><br class=""></div><div>-- Nick</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">>>Nick</div><div class="">Thanks, and sorry for my lack of explanation.</div><div class="">I dont care about load balancing on the current stage.</div><div class=""><br class=""></div><div class="">>>Lan</div><div class="">I was trying to implement this with forwardInterest method from ASF.</div><div class="">Thanks your advice. I will go another choice.</div><div class="">--------------------------------------------------- </div><div class=""><div class=""><div class=""><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">大阪市立大学 工学部 電子情報系専攻<br class="">情報通信領域 M1<br class="">中村 真也(Masaya Nakamura )<br class=""><a href="mailto:nakamura@c.info.eng.osaka-cu.ac.jp" class="">nakamura@c.info.eng.osaka-cu.ac.jp</a> <br class="">---------------------------------------------------<br class=""><br class=""></div></div></div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">2017/07/08 9:54、Lan Wang (lanwang) <<a href="mailto:lanwang@memphis.edu" class="">lanwang@memphis.edu</a>>のメール:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
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.<br class="">
<div class="">
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div class=""><br class="Apple-interchange-newline">
Lan</div>
</div>
</span></div>
</div>
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Jul 7, 2017, at 9:59 AM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="auto" class="">
<div class="">Hi 真也<br class="">
<div class="gmail_extra" dir="auto"><br class="">
</div>
<div class="gmail_extra" dir="auto">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.</div>
<div class="gmail_extra" dir="auto"><br class="">
</div>
<div class="gmail_extra" dir="auto">You can, however, forward /collect prefix to an application, and let that application send the new Interest.</div>
<div class="gmail_extra" dir="auto">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.</div>
<div class="gmail_extra" dir="auto">Both fields require enabling LocalField feature through faces/update management command.</div>
<div class="gmail_extra" dir="auto"><br class="">
</div>
<div class="gmail_extra">Yours, Junxiao</div>
<div class="gmail_extra" dir="auto"><br class="">
<div class="gmail_quote" dir="auto">On Jul 7, 2017 07:13, "中村真也" <<a href="mailto:nakamura@c.info.eng.osaka-cu.ac.jp" class="">nakamura@c.info.eng.osaka-cu.ac.jp</a>> wrote:<br type="attribution" class="">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">Dear ndn users.
<div class=""><br class="">
</div>
<div class="">I would like to ask how to send new Interest from strategy.</div>
<div class="">For example, when daemon receives Interest:/collect/arg1/arg2, I want to make daemon send Interest:/arg1, /arg2.</div>
<div class="">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</div>
<div class=""><br class="">
</div>
<div class="">Best regards.</div>
<div class="">
<div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="word-wrap:break-word" class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
------------------------------<wbr class="">--------------------- <br class="">
中村 真也(Masaya Nakamura )<br class="">
<a href="mailto:nakamura@c.info.eng.osaka-cu.ac.jp" target="_blank" class="">nakamura@c.info.eng.osaka-cu.<wbr class="">ac.jp</a> <br class="">
------------------------------<wbr class="">---------------------<br class="">
<br class="">
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
<br class="">
______________________________<wbr class="">_________________<br class="">
Ndn-interest mailing list<br class="">
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" class="">Ndn-interest@lists.cs.ucla.edu</a><br class="">
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" rel="noreferrer" target="_blank" class="">http://www.lists.cs.ucla.edu/<wbr class="">mailman/listinfo/ndn-interest</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
_______________________________________________<br class="">
Ndn-interest mailing list<br class="">
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" class="">Ndn-interest@lists.cs.ucla.edu</a><br class="">
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>

</div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></body></html>