Lamer needs help for basic tc setup

Linux Advanced Routing and Traffic Control

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

 



Hi fellows,


i'm just a newbie to use the cool tc and played around
the last 2 weeks.

I'm quite confident - in theory - what's possible and
the basic difference
between the queuing disciplines.

We're using a Fedora Core 3 box as Gateway
(iptables,tc,iproute2 with NAT).
Clients are coming in via eth1 and outgouing traffic
(2Mbit/s SDSL) through
eth0.

So we would like to enable bandwidth limitation
per-user, so i just used
several scripts (htp from sourceforge,cbq.init
,wondershaper etc).
(Each client: Downstream max 128kbit/s, Upstream max
90kbit/s)

Shaping is working fine if i mark this specific source
with a iptables
rule, but as soon i apply multiple different source
ip's to mark it within
the same queue, all are sharing my limitation and i
thought each of them
will get the rate-limiting.

Example firewall rule:
$IPTABLES -t mangle -A FORWARD -s ! 10.0.0.30 -d
10.0.0.30 -j MARK --set-mark 1  #downstream
$IPTABLES -t mangle -A FORWARD -s 10.0.0.30 -j MARK
--set-mark 2  #upstream


I also tried the u23 matching within tc, but same
effect, i'm also not
sure if i can use this kind of matching in a nat
environment ?

I'm really done, no ideas what i'm doing wrong !
BTW: Anyone using tcng on FC3 and kernel 2.6x :-)


My tc output:
*************
### eth0: queueing disciplines

qdisc cbq 1: rate 2Mbit (bounded,isolated) prio
no-transmit
qdisc tbf 90: parent 1:90 rate 90Kbit burst 10Kb lat
444.4ms

### eth0: traffic classes

class cbq 1: root rate 2Mbit (bounded,isolated) prio
no-transmit
class cbq 1:90 parent 1: leaf 90: rate 90Kbit
(bounded) prio 5
class tbf 90:1 parent 90:

### eth0: filtering rules

filter parent 1: protocol ip pref 200 fw
filter parent 1: protocol ip pref 200 fw handle 0x2
classid 1:90

### eth1: queueing disciplines

qdisc cbq 1: rate 10Mbit (bounded,isolated) prio
no-transmit
qdisc tbf 128: parent 1:128 rate 128Kbit burst 10Kb
lat 312.5ms

### eth1: traffic classes

class cbq 1: root rate 10Mbit (bounded,isolated) prio
no-transmit
class cbq 1:128 parent 1: leaf 128: rate 128Kbit
(bounded) prio 5
class tbf 128:1 parent 128:

### eth1: filtering rules

filter parent 1: protocol ip pref 200 fw
filter parent 1: protocol ip pref 200 fw handle 0x1
classid 1:128

### eth2: queueing disciplines

qdisc pfifo_fast 0: bands 3 priomap  1 2 2 2 1 2 0 0 1
1 1 1 1 1 1 1


THANKS for any hints
Cheers
Geri


_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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