From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Talikov Date: Tue, 04 Jun 2002 04:36:08 +0000 Subject: Re: Re: [LARTC] a question about TBF Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Read shapter=20 9.2.2.1. Parameters & usage in Advanced Routing HOWTO mpu A zero-sized packet does not use zero bandwidth. For ethernet, no packet us= es less than 64 bytes.=20 The Minimum Packet Unit determines the minimal token usage for a packet 15.02.2000 8:37:10, Huang Xin Gang wrote: >Alexey Talikov,hello! > >Thanks for your help! >But my problem is still here.I found that if a packet is too short,the tic= k value which=20 corresponds to it in the "rtab" is zero.That means the packet doesn't consu= me any tokens when it's=20 being sent. > >Is my knowledge right? > > >=3D=3D=3D=3D 2002-06-03 09:09:00 you wrote:=3D=3D=3D> >>Increase your burst it value at list MTU i.e 1500 byte=20 >> >>rate=3DST*burst (ST system timer 100HZ for intel/amd 1024 for alpha) >> rate >>burst=3D------- and burst>MTU >> ST >> >>See: Advanced routing HOWTO and for more details=20 >>Short Evaluation of Linux's TBF Queueing Discipline. Kurt Wagner 17 May 2= 001=20 >> >>03.06.2002 7:27:30, Huang Xin Gang wro= te: >> >>>LARTC=A3=AChello=A3=A1 >>> >>>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 sen= t is only 120bytes,the=20 >>above command is useless. >>> >>>I thinks because the time occupied when sent a packet only 120 bytes is = 120*8/(100*1024)<10ms, >>>but Linux system produces a tick every 10ms,so every time when a packet = only 120 bytes=20 >>>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 1= 00kbit. >>> >>>How can I deal with this problem? >>> >>>=A1=A1=A1=A1=A1=A1best regards! >>> >>> =09 >>>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1= =A1=A1=A1=A1Huang Xin Gang >>>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1= =A1=A1=A1=A1hxgang@csnet4.cs.tsinghua.edu.cn >>>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1= =A1=A1=A1=A1=A1=A1=A1=A1=A1=A12002-06-03 >>>,=04S >>>f=A2=96)=E0=96+-=FC=B0=11L)=9A=8AY=9A=9D?jya=B6=DA?=FEf=A2=96f=A7v=CFZ= =9E_=E6j)fj?=E5=8A=CBb=9D=FA?=95=AA=EDps=96L=E8m=B6=9F?=95=AA=EDr=8A=E0 >> >>----------------------------------- >>mailto:alexey_talikov@texlab.com.uz >>BR >>Alexey Talikov >>FORTEK >>----------------------------------- > >=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D = =3D > =09 > > best regards! > =20 > Huang Xin Gang > hxgang@csnet4.cs.tsinghua.edu.cn > 2000-02-15=20 ----------------------------------- mailto:alexey_talikov@texlab.com.uz BR Alexey Talikov FORTEK ----------------------------------- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/