HTB with SFQ in leaf classes. & setups question

Linux Advanced Routing and Traffic Control

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

 



Hello,

I wrote something yesterday.
Now the situation is even worse. Communicatin with some clients wont work at all
until i restart the traffic shaping box.
(It works for some hours, then suddenly dies (meaning the client cant be pinged.
Suspected at peak hours)
Maybe the computer resources are weak, maybe its setup faulty

It's a PIII 1.13Ghz, 512mb ram.

~250 users are shaped. From 32kbit/s to 256kbit/s
Traffic is to be shaped as following:

(1) [ 8 Mbit. In (internet->us) ]
    `- (2) client 1 .
   |                `` (3) Local Traffic (can borrow from Foreign)
   |                 ` (4) Foreign Traffic
    `- (2) client 2 .
   |                `` (3) Local Traffic (can borrow from Foreign)
   |                 ` (4) Foreign Traffic
    `- (2) client N .
                    `` (3) Local Traffic (can borrow from Foreign)
                     ` (4) Foreign Traffic

To achieve the following i have set it up as:

# root handle for 8Mbit (1)
/sbin/tc qdisc add dev eth2 root handle 1: htb

# client class (2) with maximum allowed traffic (256kbit for example)
/sbin/tc class add dev eth2 parent 1: classid 1:1 htb rate 256kbit ceil 256kbit

# Local traffic (3) class (Local should work at maximum, tho if Foreign is used,
it should get 1/4th)
# So, Foreign should be 1/4th of Local traffic.
# (Is this class correct? Its meant to have 192kbit/s for Local traffic and if
Foreign is not used
# then it can have 256kbit)
/sbin/tc class add dev eth2 parent 1:1 classid 1:2 htb rate 192kbit ceil 256kbit

# Foreign traffic (4) class (Not more than 64kbit/s)
/sbin/tc class add dev eth2 parent 1:1 classid 1:3 htb rate 64kbit ceil 64kbit

# Now I attach SFQ to classes
# (to Local traffic class)
/sbin/tc qdisc add dev eth2 parent 1:2 handle 1500: sfq perturb 10

# (to Foreign traffic class)
/sbin/tc qdisc add dev eth2 parent 1:3 handle 1501: sft perturb 10


# Now add filters
# (wont write)
# flowid 1:2
# flowid 1:#

.. everything repeated for all users. (changing data rate and class IDs)

Is there anything wrong with my setup?


P.Krumins



 ____________________________________________________________
 
 Sign up for your Apollo mail account www.e-apollo.lv
 
 www.apollo.lv

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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