[Fwd: Re: [LARTC] borrowing only from parent]

Linux Advanced Routing and Traffic Control

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

 



This is a multi-part message in MIME format.
--------------020502090201070809020806
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit



--------------020502090201070809020806
Content-Type: message/rfc822;
 name="Re: [LARTC] borrowing only from parent"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Re: [LARTC] borrowing only from parent"

>From - Fri Apr 26 13:45:29 2002
X-Mozilla-Status2: 00000000
Message-ID: <3CC92FC8.8060504@dg.net.ua>
Date: Fri, 26 Apr 2002 13:45:28 +0300
From: Anton Yurchenko <phila@dg.net.ua>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311
X-Accept-Language: uk, ru, en-us, en
MIME-Version: 1.0
To: Stef Coene <stef.coene@docum.org>
Subject: Re: [LARTC] borrowing only from parent
References: <3CC9287D.2070501@dg.net.ua> <OFDDA02136.5594A74A-ONC1256BA7.0038DCB3@axi.nl>
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

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


--------------020502090201070809020806--



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