--- Begin Message ---
Stef Coene wrote:
>On Friday 26 April 2002 12:14, Anton Yurchenko wrote:
>
>>Hello,
>>
>>for example I have a parent class 1:1 defined as:
>>
>>tc qdisc add dev eth0 root handle 1: htb default 12
>>
>># shape at 15 kbit almost no borrowing and no bursts
>>tc class add dev eth0 parent 1: classid 1:1 htb rate 15kbit ceil 1kbit
>>burst 1b cburst 1b
>>
>># and sibling classes
>># shape at 5kbit and borrow up to 5 kbit no burst
>>tc class add dev eth0 parent 1:1 classid 1:10 htb rate 5kbit ceil 5kbit
>>burst 1b cburst 1b # shape at 10kbit and borrow up to 10 kbit no burst
>>tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbit ceil 10kbps
>>burst 1b cburst 1b
>>
>Try ceil 15kbit for the class 1:10 and 1:11.
>
>
>And 15kbit is a very low speed to shape at. Why are you doing so ? And you
>also typed kbps, but kbps = kilobyte/s = 8 kilobit/s = 8 kbit.
>
That was just a mistype i typed in actualy your test config for htb,
modified for my expalme purposes :))
this is the actual config:
tc -s -d class show dev eth0:
-----------
class htb 1:101 parent 1:1 prio 0 rate 40Kbit ceil 100Kbit burst 0b/8 mpu 0b cburst
0b/8 mpu 0b quantum 512 level 0
Sent 279738 bytes 4197 pkts (dropped 0, overlimits 9703)
lended: 4197 borrowed: 0 giants: 0 injects: 0
tokens: -95938 ctokens: -191877
class htb 1:1 root prio 0 rate 100Kbit ceil 1Kbit burst 0b/8 mpu 0b cburst 0b/8 mpu 0b
quantum 1280 level 3
Sent 605011 bytes 9017 pkts (dropped 0, overlimits 0)
rate 233bps 3pps
lended: 566 borrowed: 0 giants: 0 injects: 0
tokens: -9594 ctokens: -59999999
class htb 1:100 parent 1:1 prio 0 rate 60Kbit ceil 100Kbit burst 0b/8 mpu 0b cburst
0b/8 mpu 0b quantum 768 level 0
Sent 325273 bytes 4820 pkts (dropped 0, overlimits 12652)
rate 233bps 3pps
lended: 4254 borrowed: 566 giants: 0 injects: 0
tokens: -15989 ctokens: -9594
-----------
tc qdisc show dev eth0
-----------
qdisc htb 1: dev eth0 r2q 10 default 400 dcache 0
deq_util 1/250000 deq_rate 1 trials_per_deq 0
dcache_hits 0 direct_packets 71955
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
-----------
tc filter show dev eth0
-----------
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
filter parent 1: protocol ip pref 3 fw
filter parent 1: protocol ip pref 3 fw handle 0x1 classid 1:100
filter parent 1: protocol ip pref 3 fw handle 0x2 classid 1:101
-----------
iptables -t mangle -L:
-----------
Chain INPUT (policy ACCEPT)
target prot opt source destination
MARK all -- srchost1 anywhere MARK set 0x1
MARK all -- srchost2 anywhere MARK set 0x2
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
MARK all -- anywhere srchost1 MARK set 0x1
MARK all -- anywhere srchost2 MARK set 0x2
-----------
Also: whe I mark pakets for example only on OUTPUT chain, it will apply
only to packets from me? so I should do it for in and out right?
Anyway with this config when I download from srchost1 (I use wget to
measure) via ftp wget shows from 140 to 240 KB/s
and for srchost2 via http I get from 70 to 100 KB/s. nothing like I
expected :)
Thanks
Anton
--- End Message ---