[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

about TBF(Token Bucket Filter)



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		      	[email protected]
Computer Science Department	http://www.cs.umn.edu/~duan
University of Minnesota, TC	Phone: (612)626-7526(O)
--------------------------------------------------------------