<div dir="ltr">hi alex and all, let me explain my project scenario. I wanted to have all the packet of a file is in the Producer buffer/cache.<div>for example, let say file A consist of 100 chunks and all the chunks of the content object (namely /prefix0, /prefix1,,,,/prefix99) is already in the cache of Producer node, so when consumer send interest for content object name /prefix, Producer will reply directly from his cache. I really have no idea on this (relatively new user), please give me suggestion on this matter. thank you</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 19, 2013 at 3:48 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Masri,</div><div><br></div><div>If I understand correctly, you want to do some kind of "prefetching"/Data "pre-publishing".  What you can do is to enable unrestrictive caching from local applications using <b style="line-height:16px;font-size:13px;font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif">CacheUnsolicitedDataFromApps</b> attribute.</div>
<div><br></div><div>Config::SetDefault("ns3::ndn::ForwardingStrategy::CacheUnsolicitedDataFromApps", BooleanValue(true));</div><div><br></div><div>After that, you can simply "publish" any number of data packets into local node's cache as a response to the incoming Interests; and any further Interests for the published Data will be answered directly from the cache.</div>
<div><br></div><div>Would that work for you?</div><div><br></div><div>---</div><div>Alex</div><div><div class="h5"><br><div><div>On Nov 17, 2013, at 4:45 PM, nor masri sahri <<a href="mailto:masri.sahri@gmail.com" target="_blank">masri.sahri@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">hi alex, thank you for the clarification. <div>need idea from sifu Alex ;)</div><div>1. i plan to break packets into segment. </div><div>default size of payload is 1024 and i plan to break into 4 packets BUT named in one segment. For example, /prefix 0 to /prefix 4 is named under Segment 1. When Consumer send FIRST Interest , it will fetch the segment name (in this case Segment 1, and Producer will reply packet /prefix 0 to /prefix 4, 256 bytes each). And the following Interest will fetch Segment 2 and so on.</div>

<div>Can you give some advice on how to do this, your help is really appreciated.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 1:41 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Masri,<div><br></div><div>You're seeing the correct behavior.  The consumer application explicitly requests (as it is done in majority cases in NDN) specific Data packets, which can be interpreted as a part of a large content.</div>

<div><br></div><div>Another small comment.  None of the implemented consumer applications in ndnSIM wait for the arrival of Data before sending another Interest.  Instead, the number of sent interest is controlled either by rate (ConsumerCbr) or "outstanding Interest window" (ConsumerWindow).</div>

<div><br></div><div>---</div><div>Alex</div><div><br><div><div><div><div>On Nov 12, 2013, at 9:54 PM, nor masri sahri <<a href="mailto:masri.sahri@gmail.com" target="_blank">masri.sahri@gmail.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div><div dir="ltr">hi alex and all,<div>correct me if i am wrong about my interpretation.</div><div>from the example file (<a href="http://ndn-simple.cc/" target="_blank">ndn-simple.cc</a>), i just did simple rule to set maximum number of prefix to be requested (i set to max = 200) to see how it works.(assuming the size of /prefix name file is consist of 200 segment)</div>


<div><br></div><div>1. consumer send interest for data name /prefix</div><div>2. Producer will reply /prefix 0 (part or chunk or segment of /prefix named file)</div><div>3. when consumer receive /prefix 0, consumer will send another interest for the same file name (/prefix) </div>


<div>4. producer will reply /prefix 1 since that is the sequence number for the complete named data of /prefix</div><div><br></div><div>im quite confused when i see the ns log file</div><div><br></div><div><div>0s 0 ndn.Consumer:SendPacket()</div>


<div>0s 0 ndn.Consumer:SendPacket(): [INFO ] > <font color="#ff0000">Interest for 0</font></div><div>0s 0 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 0 with +0.0ns. already 0 items</div><div>0.020496s 2 ndn.Producer:OnInterest(0x8c01308, 0x8c0db70)</div>


<div>0.020496s 2 ndn.Producer:OnInterest(): [INFO ] node(2) respodning with Data: /prefix/%00</div><div>0.057472s 0 ndn.Consumer:OnData(0x8c00d38, 0x8c0d260)</div><div>0.057472s 0 ndn.Consumer:OnData(): [INFO ] < <font color="#ff0000">DATA for 0</font></div>


<div>0.1s 0 ndn.Consumer:SendPacket()</div><div>0.1s 0 ndn.Consumer:SendPacket(): [INFO ] > <font color="#ff0000">Interest for 1</font></div><div>0.1s 0 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 1 with +100000000.0ns. already 0 items</div>


<div>0.120512s 2 ndn.Producer:OnInterest(0x8c01308, 0x8c0f7f0)</div><div>0.120512s 2 ndn.Producer:OnInterest(): [INFO ] node(2) respodning with Data: /prefix/%00%01</div><div>0.157504s 0 ndn.Consumer:OnData(0x8c00d38, 0x8c0f5b0)</div>


<div>0.157504s 0 ndn.Consumer:OnData(): [INFO ] <font color="#ff0000">< DATA for 1</font></div></div><div><br></div><div>Is Consumer request specifically for /prefix 0 at the first time and when he get the data, the consumer send another interest for next data which is /prefix 1?</div>


<div><br></div><div>In this scenario, it is presumed that the size of /prefix is max 200 segment.</div><div><br></div><div><br></div><div>Sorry about my question, little confused. </div><div><br></div><div>I am planning to do research on window on NDNsim. Need advice. Many thanks</div>


<div><br></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<div><br></div><div>masri.sahri</div><div><br></div></div>
</div></div></div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>

</blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<div><br></div><div>masri.sahri</div><div><br></div></div>
</div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<div><br></div><div>masri.sahri</div><div><br></div></div>
</div>