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]

 



On/Dnia Tue, Jul 15, 2003 at 06:54:30PM +0200, Atahualpa Jones wrote/napisał(a)

> 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?
Weird but there is no class 1:1.

> 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
Unfortunately that doesn't work either (btw. tc class add ... htb ... -
missed htb).

Now when I'm downloading only on .134 machine I get maks about
20 Kbyte/s - only at beggining in first second I get 40 Kbyte/s which
drops to 20 Kbyte/s...

# tc class show dev eth0

class htb 1:11 parent 1:1 leaf 3: prio 0 rate 384Kbit ceil 512Kbit burst 2090b cburst 2254b
 Sent 68140 bytes 205 pkts (dropped 0, overlimits 0)
 rate 159bps 1pps
 lended: 205 borrowed: 0 giants: 0
 tokens: 34050 ctokens: 27588

class htb 1:1 root rate 512Kbit ceil 512Kbit burst 2254b cburst 2254b
 Sent 6266075 bytes 6394 pkts (dropped 0, overlimits 0)
 rate 37034bps 38pps
 lended: 4160 borrowed: 0 giants: 0
 tokens: -32581 ctokens: -32581

class htb 1:10 parent 1:1 leaf 2: prio 0 rate 128Kbit ceil 512Kbit burst 1762b cburst 2254b
 Sent 6197935 bytes 6189 pkts (dropped 0, overlimits 0)
 rate 36871bps 37pps
 lended: 2029 borrowed: 4160 giants: 0
 tokens: -24430 ctokens: -32581

No drops?

Anyway rest works as I described in previous email... downloading
from linuxRT gives me as much bandwidtch as htb rules allow but
downloading from internet causes only half of bandwidtch to be
used even if rest is not used.

I'm going to try esfq because it seems that wrr doesn't work properly
with 2.4 kernels either (at least statistics shown by tc class are in
most cases zeros for each dynamicly created class).

> Andreas

-- 
Arkadiusz Miśkiewicz     CS at FoE, Wroclaw University of Technology
arekmatssedotpl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux


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