[ndnSIM] leaky bucket start time

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Feb 13 10:57:02 PST 2013


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).

---
Alex

On Feb 13, 2013, at 10:39 AM, Yaogong Wang <ywang15 at ncsu.edu> wrote:

> It doesn't seem to make much sense. The bucket anyway starts out as empty. Leaking won't really happen until someone calls BorrowLimit().
> 
> Yaogong
> 
> On Wed, Feb 13, 2013 at 1:17 PM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:
> Hi!
> 
> 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.
> 
> ---
> Alex
> 
> 
> On Feb 13, 2013, at 9:45 AM, Yaogong Wang <ywang15 at ncsu.edu> wrote:
> 
> > Hi,
> >
> > 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?
> >
> > Thanks,
> > Yaogong
> 
> 
> 
> -- 
> ============================
> Yaogong Wang, PhD Candidate
> Department of Computer Science
> North Carolina State University
> http://www4.ncsu.edu/~ywang15/
> ============================
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130213/dab5b936/attachment.html>


More information about the ndnSIM mailing list