From: Anton Yurchenko <phila@dg.net.ua>
To: lartc@vger.kernel.org
Subject: [Fwd: Re: [LARTC] borrowing only from parent]
Date: Fri, 26 Apr 2002 10:57:14 +0000 [thread overview]
Message-ID: <marc-lartc-101981879204802@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101981864904728@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: Re: [LARTC] borrowing only from parent --]
[-- Type: message/rfc822, Size: 3924 bytes --]
From: Anton Yurchenko <phila@dg.net.ua>
To: Stef Coene <stef.coene@docum.org>
Subject: Re: [LARTC] borrowing only from parent
Date: Fri, 26 Apr 2002 13:45:28 +0300
Message-ID: <3CC92FC8.8060504@dg.net.ua>
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
next prev parent reply other threads:[~2002-04-26 10:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-26 10:56 [Fwd: Re: [LARTC] borrowing only from parent] Anton Yurchenko
2002-04-26 10:57 ` Anton Yurchenko [this message]
2002-04-26 10:57 ` Anton Yurchenko
2002-04-26 11:17 ` Martin Devera
2002-04-26 11:26 ` Anton Yurchenko
2002-04-26 11:31 ` Martin Devera
2002-04-26 11:54 ` Anton Yurchenko
2002-04-26 12:09 ` Martin Devera
2002-04-26 12:24 ` Anton Yurchenko
2002-04-26 12:28 ` Martin Devera
2002-05-15 6:57 ` Herman Cremer
2002-05-15 7:07 ` Herman Cremer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-101981879204802@msgid-missing \
--to=phila@dg.net.ua \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.