From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas SPECK" Date: Thu, 08 Aug 2002 11:10:36 +0000 Subject: Re: [LARTC] pb with ingress policy Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org >Messsage du 07/08/2002 21:09 >De : Stef Coene >A : Thomas SPECK , >Copie =E0 :=20 >Objet : Re: [LARTC] pb with ingress policy =20 > > On Wednesday 07 August 2002 16:43, Thomas SPECK wrote: > > Hi ! > > > > I have a single host which is connected via an 512kbit ADSL link to the > > net. I quite often use some realaudio application that uses some bandwi= dth > > and I want to avoid other traffic to scale that bandwidth down. So I us= ed > > some classes (with htb) on imq0 device and applied some filters and it > > seems to work in most cases. However, there are some sites with which > > download is interrupted if bandwidth is limited. I tried to trace it do= wn > > and did some simple test: > > > > modprobe imq numdevs=3D1 > > tc qdisc add dev imq0 root handle 1: htb default 10 > > tc class add dev imq0 parent 1: classid 1:10 htb rate 60kbit ceil 512kb= it > > burst 15k tc qdisc add dev imq0 parent 1:10 handle 10: sfq perturb 10 > > iptables -t mangle -A PREROUTING -i ppp0 -j IMQ --todev 0 > > ip li set imq0 up > > > > So now all traffic is limited to 60kbit.=20 > You limit all traffic to 512 kbit with the ceil parameter, not 60 kbit. = The=20 > rate is used when you have 2 or more child classes with the same parent. I would like to believe you but I observe even with one class, that traffic= is decreasing to something around 60kbit. Is there something I am doing wr= ong ? BTW looking into the howto I wonder if it is a good idea to set ceil for in= gress to the maximum rate I get.=20 -- Thomas _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/