<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>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><div>#include <ns3/ndnSIM/utils/tracers/ndn-l3-rate-tracer.h></div></div><div>)</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div><div>On Apr 18, 2013, at 7:07 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="">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 style=""><br></div><div style="">Regards,</div><div style="">huyao</div><div style=""><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; position: static; z-index: auto; "><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><div class="h5"><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></div></blockquote></div><br></div>
</blockquote></div><br></div></div></body></html>