[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about TBF(Token Bucket Filter)
HI Zhen,
Did u consider the two token rate tbf (as defined in )
ftp://lohi.eng.telia.fi/tmp/draft-heinanen-diffserv-trtcm-00.txt
It is simple...
Just put two tbfs in succession::
Pkt flow----> TBF1 ----> TBF2---->Pkt Flow
TBF1 parameters: rate = average rate of the flow= token rate
TBF2 parameters: rate = peak rate of the flow= token rate
The bucket depths are left to your choice...
Will this work for u?? Just thought I should tell you..
Arni
On Tue, 2 Mar 1999, Zhenhai Duan wrote:
> I just checked the code of tbf, and I want to add in the Peak Rate
> contraint. But I am not sure how I should use this value. The way in my
> mind is this: Whenever I have enough tokens to send one packet, I postpone
> (scheduling a event) the sending by a delay(packetLength/peakRate), after
> timeout, I call target_->recv(p).
>
> Any comments are appreciated.
> --Zhenhai
> --------------------------------------------------------------
> Zhenhai Duan duan@cs.umn.edu
> Computer Science Department http://www.cs.umn.edu/~duan
> University of Minnesota, TC Phone: (612)626-7526(O)
> --------------------------------------------------------------
>
>