<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi huyao,</div><div><br></div><div>I run the grid scenario in visualizer with displaying interface statistics and i got exactly 2000 for interface 0 and 0 for interface 1:</div><div><br></div><div><img id="c93cd89f-08b9-44f4-8486-e930f6c46d70" height="111" width="640" apple-width="yes" apple-height="yes" src="cid:56FB97C0-CC0B-4D48-A1FA-4251AEC04709@cs.ucla.edu"></div><div><br></div><div>Did you make any other modification to the scenario?  I really wonder how can you get any traffic on interface 1 in this scenario, as there should not be anything at all...</div><div><br></div><div>About L3RateTracer. The line "20<span class="" style="white-space: pre; ">   </span>Node0<span class="" style="white-space: pre; ">  </span>2<span class="" style="white-space: pre; ">      </span>dev=local(2)<span class="" style="white-space: pre; ">   </span>InInterests" tells you rate/number of interests that were received by NDN stack from the application face.  From the application point of view, these are outgoing interests, but from the NDN stack point of view (since L3 tracer presents NDN stack point of view), these are incoming.   I still don't really understand why do you have traffic on both interfaces... I suppose this is something that your custom forwarding strategy is doing?</div><div><br></div><div>Btw. If in your strategy you're not using "TrySendOutInterest" method of the base class, then to have proper L3 logging you need to call DidSendOutInterest after interest were successfully sent out.  Right now I see inconsistencies in numbers reported by L3RateTracer: line "20<span class="" style="white-space: pre; ">        </span>Node0<span class="" style="white-space: pre; ">  </span>0<span class="" style="white-space: pre; ">      </span>dev[0]=net(0,0-1)<span class="" style="white-space: pre; ">      </span>OutInterests<span class="" style="white-space: pre; ">   </span>0<span class="" style="white-space: pre; ">      </span>0<span class="" style="white-space: pre; ">      </span>0<span class="" style="white-space: pre; ">      </span>0" should be non-zero.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On Apr 19, 2013, at 8:16 AM, yao hu <<a href="mailto:huyao0107@gmail.com">huyao0107@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Alex,<div><br></div><div style="">"Tx Packets" is from the "interface statistics" (right click the node from the ns3 visualizer) of the node0 which is the data requester in this grid scenario. Just now I tried it again by setting interest frequency as 100 (for 20 seconds), still the "Tx Packets" is 1805 (interface 0) and 22 (interface 1). The missing "Tx Packets" (around 200) are from the interest retransmission? I also used the L3RateTracer following your instruction (as follows).  The "PacketRaw" column of </div>
<div style="">20<span class="" style="white-space:pre">       </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>InInterests </div>
<div style="">refers the number of outgoing interest packets? Then what is the difference between this "2000" and that "1805"?</div><div style=""><br></div><div style="">Thanks very much for your time!</div><div>
<br></div><div><div>Time<span class="" style="white-space:pre">       </span>Node<span class="" style="white-space:pre">      </span>FaceId<span class="" style="white-space:pre">    </span>FaceDescr<span class="" style="white-space:pre"> </span>Type<span class="" style="white-space:pre">      </span>Packets<span class="" style="white-space:pre">   </span>Kilobytes<span class="" style="white-space:pre"> </span>PacketRaw<span class="" style="white-space:pre"> </span>KilobytesRaw</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>dev[0]=net(0,0-1)<span class="" style="white-space:pre"> </span>InInterests<span class="" style="white-space:pre">       </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>dev[0]=net(0,0-1)<span class="" style="white-space:pre"> </span>OutInterests<span class="" style="white-space:pre">      </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>dev[0]=net(0,0-1)<span class="" style="white-space:pre"> </span>DropInterests<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>dev[0]=net(0,0-1)<span class="" style="white-space:pre"> </span>InNacks<span class="" style="white-space:pre">   </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>dev[0]=net(0,0-1)<span class="" style="white-space:pre"> </span>OutNacks<span class="" style="white-space:pre">  </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>dev[0]=net(0,0-1)<span class="" style="white-space:pre"> </span>DropNacks<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>dev[0]=net(0,0-1)<span class="" style="white-space:pre"> </span>InData<span class="" style="white-space:pre">    </span>71.72<span class="" style="white-space:pre">     </span>74.0581<span class="" style="white-space:pre">   </span>1793<span class="" style="white-space:pre">      </span>1851.45</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>dev[0]=net(0,0-1)<span class="" style="white-space:pre"> </span>OutData<span class="" style="white-space:pre">   </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>0<span class="" style="white-space:pre"> </span>dev[0]=net(0,0-1)<span class="" style="white-space:pre"> </span>DropData<span class="" style="white-space:pre">  </span>0.12<span class="" style="white-space:pre">      </span>0.12375<span class="" style="white-space:pre">   </span>3<span class="" style="white-space:pre"> </span>3.09375</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>1<span class="" style="white-space:pre"> </span>dev[0]=net(1,0-3)<span class="" style="white-space:pre"> </span>InInterests<span class="" style="white-space:pre">       </span>0.04<span class="" style="white-space:pre">      </span>0.00105469<span class="" style="white-space:pre">        </span>1<span class="" style="white-space:pre"> </span>0.0263672</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>1<span class="" style="white-space:pre"> </span>dev[0]=net(1,0-3)<span class="" style="white-space:pre"> </span>OutInterests<span class="" style="white-space:pre">      </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>1<span class="" style="white-space:pre"> </span>dev[0]=net(1,0-3)<span class="" style="white-space:pre"> </span>DropInterests<span class="" style="white-space:pre">     </span>0.04<span class="" style="white-space:pre">      </span>0.00105469<span class="" style="white-space:pre">        </span>1<span class="" style="white-space:pre"> </span>0.0263672</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>1<span class="" style="white-space:pre"> </span>dev[0]=net(1,0-3)<span class="" style="white-space:pre"> </span>InNacks<span class="" style="white-space:pre">   </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>1<span class="" style="white-space:pre"> </span>dev[0]=net(1,0-3)<span class="" style="white-space:pre"> </span>OutNacks<span class="" style="white-space:pre">  </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>1<span class="" style="white-space:pre"> </span>dev[0]=net(1,0-3)<span class="" style="white-space:pre"> </span>DropNacks<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>1<span class="" style="white-space:pre"> </span>dev[0]=net(1,0-3)<span class="" style="white-space:pre"> </span>InData<span class="" style="white-space:pre">    </span>0.84<span class="" style="white-space:pre">      </span>0.865859<span class="" style="white-space:pre">  </span>21<span class="" style="white-space:pre">        </span>21.6465</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>1<span class="" style="white-space:pre"> </span>dev[0]=net(1,0-3)<span class="" style="white-space:pre"> </span>OutData<span class="" style="white-space:pre">   </span>0.04<span class="" style="white-space:pre">      </span>0.0412891<span class="" style="white-space:pre"> </span>1<span class="" style="white-space:pre"> </span>1.03223</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>1<span class="" style="white-space:pre"> </span>dev[0]=net(1,0-3)<span class="" style="white-space:pre"> </span>DropData<span class="" style="white-space:pre">  </span>0.72<span class="" style="white-space:pre">      </span>0.742109<span class="" style="white-space:pre">  </span>18<span class="" style="white-space:pre">        </span>18.5527</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>InInterests<span class="" style="white-space:pre">       </span>80<span class="" style="white-space:pre">        </span>2.12891<span class="" style="white-space:pre">   </span>2000<span class="" style="white-space:pre">      </span>53.2227</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>OutInterests<span class="" style="white-space:pre">      </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>DropInterests<span class="" style="white-space:pre">     </span>0.2<span class="" style="white-space:pre">       </span>0.00507813<span class="" style="white-space:pre">        </span>5<span class="" style="white-space:pre"> </span>0.126953</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>InNacks<span class="" style="white-space:pre">   </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>OutNacks<span class="" style="white-space:pre">  </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>DropNacks<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>InData<span class="" style="white-space:pre">    </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>OutData<span class="" style="white-space:pre">   </span>71.72<span class="" style="white-space:pre">     </span>74.0581<span class="" style="white-space:pre">   </span>1793<span class="" style="white-space:pre">      </span>1851.45</div>
<div>20<span class="" style="white-space:pre">  </span>Node0<span class="" style="white-space:pre">     </span>2<span class="" style="white-space:pre"> </span>dev=local(2)<span class="" style="white-space:pre">      </span>DropData<span class="" style="white-space:pre">  </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>0</div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/19 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div style="word-wrap:break-word"><div>Hi huyao,</div><div><br></div>Hmm.  I just run ndn-grid scenario with frequency 10, 100, and 1000 and in all of the cases I see that the consumer send out exactly the theoretical amount of interests within 20 seconds (200, 2000, and 20000), though the same consumer has received different number of Data packets back due to buffer overflows (199, 1989, 2342).<div>
<br></div><div>How exactly did you measure number of Interests and I'm not very sure what is "Tx Packets" you were referring to?  I obtained my data using ndn::L3RateTracer.  I put the following before Simulation::Run() in ndn-grid scenario (assuming the total simulation time is 20 seconds):</div>
<div><br></div><div><div>boost::tuple< boost::shared_ptr<std::ostream>, std::list<Ptr<ndn::L3RateTracer> > ></div><div>    rateTracers = ndn::L3RateTracer::InstallAll ("rate-trace.txt", Seconds (19.99999999));</div>
</div><div><br></div><div>(don't forget to include the header file:</div><div>#include <ns3/ndnSIM/utils/tracers/ndn-l3-rate-tracer.h></div><div>)</div><div><br></div><div>---</div><div>Alex</div><div>
<div class="h5"><br><div><div><div>On Apr 18, 2013, at 7:07 AM, yao hu <<a href="mailto:huyao0107@gmail.com" target="_blank">huyao0107@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">Hi Alex,<div>
<br></div><div>The scenario I tested in is just the 9-node grid topology. I think maybe it has something wrong with my modified algorithm, since it shows no problem with a certain interest frequency, while with larger interest frequency (generally speaking) , the missing interest packets become obvious. I will check it soon. Thanks for your reply about routingCost. I see. :)</div>

<div><br></div><div>Regards,</div><div>huyao</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/18 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Can you send out scenario (or link to scenario), so I can try to debug the problem on my machine?<div>

<br></div><div>routingCost is basically an aggregated cost for the specific path.  If you're using globalRoutingController, it sums up all the specified metrics on the path.  For example, if you have this topology</div>

<div><br></div><div>node1 ------ node2 ------- node3 ------- node4</div><div><br></div><div>and all metrics for each link is 10, then routing cost on node1 to forward towards node4 using the only available face would be 30.</div>

<div><br></div><div>If you are using "EnableDefaultRoute" in ndn::StackHelper, then this value doesn't really mean anything and suggests only that this "default" is the least preferred option to forward interests.</div>

<div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Apr 17, 2013, at 8:36 AM, yao hu <<a href="mailto:huyao0107@gmail.com" target="_blank">huyao0107@gmail.com</a>> wrote:</div><br>
<blockquote type="cite"><div dir="ltr">Hi Alex,<div><br></div><div>I did not specify any randomization using Randomize parameter. I am not sure whether all the interests are consumed at the first attempt, but if that is a reason, the retransmitted Interest packets are not counted into "Tx Packets"? Besides, I am not sure about the meaning of routingCost column <a href="tel:%282147483647" value="+12147483647" target="_blank">(2147483647</a>) in FIB. Does it has something different from the 'metric' which affects the forwarding strategy to select the BestRoute? Could I specify it somewhere?</div>


<div><br></div><div>Sorry for many questions. Thanks very much!</div><div><br></div><div>Regards,</div><div>huyao</div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/4/17 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi huyao,<br>
<br>
Did you specify any randomization for inter-interest gap using Randomize parameter (uniform, exponential)?  Though, by default there is no randomization.<br>
<br>
Btw. Do all your interest are getting satisfied from the first attempt?  If not, the difference can come from the interest retransmission, since those that needs to be retransmitted are sharing the same "cbr" constraints as new interests.<br>



<br>
---<br>
Alex<br>
<div><br>
On Apr 16, 2013, at 8:32 AM, yao hu <<a href="mailto:huyao0107@gmail.com" target="_blank">huyao0107@gmail.com</a>> wrote:<br>
<br>
> Hi Alex,<br>
><br>
> Just now, in order to verify my modification I used CustomerCbr to produce a certain number of Interest from a specific consumer, however, I found that there is a little difference between expectation and simulation result. For example, I set the Interest frequency as 10 (packets per second) for 20 seconds, the result is the number of sent packets is 200 which is the same as theoretic value. But if I set the Interest frequency as 100 for 20 seconds, the simulation result is the number of sent packets is 1805 which is less than the theoretic value 2000. What is the possible reason for this phenomenon? (No packets are sent from other faces)<br>



><br>
> Thanks for your reply!<br>
><br>
> Regards,<br>
> huyao<br>
</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>
<br>
</blockquote></div><br></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></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></body></html>