[LARTC] a question about TBF

Linux Advanced Routing and Traffic Control

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

 



LARTC£¬hello£¡

I set the command following:

tc qdisc add dev eth0 root tbf rate 100kbit latency 50ms burst 120

and then I send flow with speed of 115.2kbit, and if all the packets sent is only 128bytes,the above command is useless.

I thinks because the time occupied when sent a packet only 128 bytes is 120*8/(100*1024)<10ms,
but Linux system produces a tick every 10ms,so every time when a packet only 120 bytes 
is being sent, the "toks" equals to zero always, and this packet can be sent immediately.

all the packets are sent immediately, then the speed is not limited to 100kbit.

How can I deal with this problem?

¡¡¡¡¡¡best regards!

 				
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Huang Xin Gang
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hxgang@csnet4.cs.tsinghua.edu.cn
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2002-06-03
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿË™¨¥Šx%ŠË,SùšŠYšŸ÷lõ¯ç–m§ÿÿ™¨¥™©ÿvÏZþy™¨¥™©ÿ–+-ŠwèþV«µÁÎY3ÿ†Ûiÿÿåj»\þŠà

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux