use of tc and cbq for queing discipline
hi all, SuSE 7.3 kernel 2.4.16 iproute2 iptables etc. i have a SuSElinux router natting public IP(eth0) to pvt IP(eth1) range. i need to limit the bandwidth(rate) on pub(eth0) so that eth0 uses only 32K and have tried as follows : tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth 10Mbit \ rate 32Kbit weight 3Kbit prio 5 allot 1514 cell 8 maxburst 20 \ avpkt 1000 but get : RTNETLINK answers: No such file or directory if i remove allot 1514 i get: CBQ: allot is required to set WRR paramaters what am i missing ? i know the cbq algo is a bit buggy but need limits at 32K, ideas suggestions ? (constructive flames ;) ) thx andre -- +27 834433455 Atp (Pty) Ltd.
* andre@do;
hi all, tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth 10Mbit \ rate 32Kbit weight 3Kbit prio 5 allot 1514 cell 8 maxburst 20 \ avpkt 1000
but get : RTNETLINK answers: No such file or directory if i remove allot 1514 i get: CBQ: allot is required to set WRR paramaters
what am i missing ?
You need to recompile iproute (which has the tc) with CONFIG_DIFFSERVER=y option -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
Togan Muftuoglu wrote:
* andre@do;
on 10 Mar, 2002 wrote: hi all, tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth 10Mbit \ rate 32Kbit weight 3Kbit prio 5 allot 1514 cell 8 maxburst 20 \ avpkt 1000
but get : RTNETLINK answers: No such file or directory if i remove allot 1514 i get: CBQ: allot is required to set WRR paramaters
what am i missing ?
You need to recompile iproute (which has the tc) with CONFIG_DIFFSERVER=y option
Thanks Togan ! i will do so. the parent 1:1 classid 1:3 is wrong also ? (parent 1:1 classid :2 ??) thx andre -- +27 834433455 Atp (Pty) Ltd.
* andre@do;
Togan Muftuoglu wrote:
i will do so. the parent 1:1 classid 1:3 is wrong also ? (parent 1:1 classid :2 ??)
what does tc -s -d class show dev [your_eth1] give Also you may want to check http://lartc.org -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
Togan Muftuoglu wrote:
* andre@do;
on 10 Mar, 2002 wrote: Togan Muftuoglu wrote:
i will do so. the parent 1:1 classid 1:3 is wrong also ? (parent 1:1 classid :2 ??)
what does tc -s -d class show dev [your_eth1] give
Also you may want to check http://lartc.org
class cbq 1: root rate 10Mbit cell 8b mpu 64b (bounded,isolated) prio no-transmit/8 weight 10Mbit allot 1514b level 1 ewma 5 avpkt 1000b maxidle 23us Sent 839072 bytes 1898 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 624 undertime 0 class cbq 1:1 parent 1: rate 32Kbit cell 8b mpu 64b prio 5/5 weight 3Kbit allot 1514b level 0 ewma 5 avpkt 1000b maxidle 215869us Sent 0 bytes 0 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 5.65889e+06 undertime 0 The recompile worked thanks Togan, It still doesn't limit the bandwidth though :( checked the lartc.org site -- hmmm, i'm still missing something ? Thanks so much, andre -- +27 834433455 Atp (Pty) Ltd.
* andre@do;
class cbq 1:1 parent 1: rate 32Kbit cell 8b mpu 64b prio 5/5 weight 3Kbit allot 1514b level 0 ewma 5 avpkt 1000b maxidle 215869us Sent 0 bytes 0 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 5.65889e+06 undertime 0
this is weird 5.65889e+06 you should not be getting things like that. Did you check the howto on the http://lartc.org also the lartc mailinglist can be helpfull as my knowledge is also limited -:( -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
participants (2)
-
andre@do
-
Togan Muftuoglu