Re: [LARTC] problem with htb rates | small rates question

Linux Advanced Routing and Traffic Control

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

 



----- Original Message ----- 
From: "Arkadiusz Miskiewicz" <misiek@xxxxxxxxxx>
To: "LARTC" <lartc@xxxxxxxxxxxxxxx>
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



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