From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Atahualpa Jones" Date: Tue, 15 Jul 2003 16:54:30 +0000 Subject: Re: [LARTC] problem with htb rates | small rates question Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org ----- Original Message ----- From: "Arkadiusz Miskiewicz" To: "LARTC" Sent: Tuesday, July 15, 2003 5:17 PM Subject: [LARTC] problem with htb rates | small rates question > Hi, > > I'm using 2.4.20 kernel with htb updated to match htb from 2.4.21 + > patches on devik's page. > > My setup is simple: > 192.168.0.134(LAN machine)--eth0-linuxRT-ppp0 (adsl, pppoe involved) > 192.168.0.234(LAN machine)+ > > tc qdisc add dev eth0 root handle 1:0 htb default 22 r2q 1 > tc class add dev eth0 parent 1:1 classid 1:2 htb rate 506kbit ceil 506kbit quantum 10000 > tc class add dev eth0 parent 1:1 classid 1:3 htb rate 98494kbit ceil 98494kbit prio 9 > tc qdisc add dev eth0 parent 1:3 sfq perturb 10 Its just a guess but are you sure this works? parent 1:1? where is the class with classid 1:1? What are these classes children of? try it with this setting, it should do the same: tc qdisc add dev eth0 handle 1:0 root htb default 11 tc class add dev eth0 parent 1:0 classid 1:1 rate 512kbit ceil 512kbit # 128+384 = 512 tc class add dev eth0 parent 1:1 classid 1:10 rate 128kbit ceil 512kbit tc qdisc add dev eth0 handle 2:0 parent 1:10 sfq perturb 10 tc class add dev eth0 parent 1:1 classid 1:11 rate 384kbit ceil 512kbit tc qdisc add dev eth0 handle 3:0 parent 1:11 sfq perturb 10 tc filter add dev eth0 protocol ip parent 1:0 u32 match ip dst 192.168.0.134 flowid 1:10 In your config it shows you have two root classes (in your output). I dont know if this affects anything, but I do not think this is desired. Let me know if the setting above worked. Andreas _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/