[LARTC] Traffic Control question

Linux Advanced Routing and Traffic Control

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

 



Hey everyone,

Here's my problem, i've got a Cable modem (512/128kbit down/up) and a
100mbit router/switch connected to the cable modem. And in total 4 other
computers connected to the router/switch. 3 of those are workstations and
one of them is a server which has a few websites running on it, and which I
use as a fileserver for my internal network.
Now I had the problem that whenever I was uploading the connection would pop
out, so I started googling and found wshaper, unfortunately though my server
only has the 1 network card, and I don't want to limit the speed to my
internal network.

After some more looking I found the cbq-init script, and I've got it to sort
of work now with these 2 files:

cbq-02.local_network  => 90% the upload of this server can take up to 90% of
the network speed
====
DEVICE=eth0,100Mbit,10Mbit
RATE=90Mbit
WEIGHT=9Mbit
PRIO=5
RULE=192.168.1.0/24

cbq-03.inet   => the upload to the rest of the internut can only go at about
90kbit,.. anything more will upset my connection
====
DEVICE=eth0,100Mbit,10Mbit
PARENT=02
RATE=90Kbit
WEIGHT=9kbit
PRIO=5
RULE=0.0.0.0/32

Which generate the following:

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 cbq bandwidth 100Mbit avpkt 1000 cell 8
tc class change dev eth0 root cbq weight 10Mbit allot 1514

tc class add dev eth0 parent 1: classid 1:2 cbq bandwidth 100Mbit rate
90Mbit weight 90Mbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
tc qdisc add dev eth0 parent 1:2 handle 2 tbf rate 90Mbit buffer 10Kb/8
limit 15Kb mtu 1500
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
192.168.1.0/24 classid 1:2
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip src
192.168.1.0/24 classid 1:2

tc class add dev eth0 parent 1:02 classid 1:3 cbq bandwidth 100Mbit rate
90Kbit weight 9kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
tc qdisc add dev eth0 parent 1:3 handle 3 tbf rate 90Kbit buffer 10Kb/8
limit 15Kb mtu 1500
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
0.0.0.0/32 classid 1:3


Now the only problem is that uploading to my internal network is still
limited, and this time it seems to be limited to about 1mbit, instead of the
supposed 90mbit possible, and about 10mbit I used to get before these
traffic control settings where set.

So my question is,.. what may cause this? and any suggestion on fixing this?
or should I take on another approach?

Greetings
Timothy





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