Re: [RFC][PATCH] QoS TBF and latency configuration misbehavior
From: Alexey Kuznetsov <hidden>
Date: 2010-08-31 21:48:30
Hello!
Documentation describes latency as something intuitively clear: "the maximum amount of time a packet can sit in the TBF" but tc implementation handles it something like: "an additional time packet can sit int the TBF after main waiting queue which size is equal to the burst size is completely full.". It doesn't seem to have any sense.
Seems, I still can tell what I really meant there: burst is supposed to be handled instantly (unless peak rate is not infinite). So that, latency is really (limit - burst)/rate. Indeed, the case when limit < burst was missed in tc, latency should be 0 in this case. So, think: formula latency = limit/rate, which you suggest, is obviously wrong (correct me): everything which is out of bucket is drained with rate of tbf, but everyhing inside the burst is drained with rate of the device, which cannot even be estimated on base of tbf parameters. (Again, here I ignore the case when peak rate is set) So, it looks like tc is almost correct, only it should print 0 instead of negative value. And the phrase in documentation should sound like: "maximal queuing delay introduced by TBF". Alexey