<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I see. Yeah, 1 second randomization could be a bad choice (any small randomization would be sufficient), but I wouldn't rely too much on users to take care of that.   </div><div><br></div><div>I can actually put a configurable option to enable/disable this randomization, as well as to configure randomization interval, keeping it ON by default with 1 ms randomization interval.</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Feb 13, 2013, at 11:23 AM, Yaogong Wang <<a href="mailto:ywang15@ncsu.edu">ywang15@ncsu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I see your point. Such kind of synchronization could lead to some simulation artifacts. But I believe this should be taken care of by the users. They should be aware of this (such synchronization problems could happen in any simulator) and incur some randomness in their simulation setup.<div>
<br></div><div>My concern with the current implementation is that the leak start time is randomly picked between 0s and 1s. It is fairly possible that lots of packets have already been sent before the leak start time. These packets may get stuck in the network because the bucket didn't start leaking when it should have. This might not be a big issue most of the time but did cause me some headache in some particular setup.<div>
<div><br></div><div>Thanks,</div><div>Yaogong<br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 1:57 PM, 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">True. But if two guys receive a packet at the same time (can happen in some simple topologies), they would start leaking at the same time, resulting in synchronized decision, which may lead to unexpected results (I had them with simplistic topologies).<div>
<br></div><div>---</div><div>Alex</div><div><br><div><div><div class="h5"><div>On Feb 13, 2013, at 10:39 AM, Yaogong Wang <<a href="mailto:ywang15@ncsu.edu" target="_blank">ywang15@ncsu.edu</a>> wrote:</div><br></div>
</div><blockquote type="cite"><div><div class="h5">It doesn't seem to make much sense. The bucket anyway starts out as empty. Leaking won't really happen until someone calls BorrowLimit().<div><br></div><div>Yaogong<br>
<br><div class="gmail_quote">On Wed, Feb 13, 2013 at 1:17 PM, 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">Hi!<br>
<br>
I've put it there to ensure that nodes don't make a synchronized leaks of buckets, which impossible in real life, but could happen in some cases in the simulations.<br>
<br>
---<br>
Alex<br>
<div><br>
<br>
On Feb 13, 2013, at 9:45 AM, Yaogong Wang <<a href="mailto:ywang15@ncsu.edu" target="_blank">ywang15@ncsu.edu</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I'm curious why do we randomize the leak start time in LimitsRate::NotifyNewAggregate() under untils/ndn-limits-rate.cc. Why can't we just start leaking at 0.0?<br>
><br>
> Thanks,<br>
> Yaogong<br>
</div></blockquote></div><br><br clear="all"><div><br></div>-- <br>============================<br>Yaogong Wang, PhD Candidate<br>Department of Computer Science<br>North Carolina State University<br><a href="http://www4.ncsu.edu/~ywang15/" target="_blank">http://www4.ncsu.edu/~ywang15/</a><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></blockquote></div><br><br clear="all"><div><br></div>-- <br>============================<br>Yaogong Wang, PhD Candidate<br>Department of Computer Science<br>North Carolina State University<br>
<a href="http://www4.ncsu.edu/~ywang15/" target="_blank">http://www4.ncsu.edu/~ywang15/</a><br>============================
</div></div></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>