LARTC
[Top] [All Lists]

Re: [LARTC] Re: tc questions

To: Alejandro Ramos Encinosa <alex@uh.cu>
Subject: Re: [LARTC] Re: tc questions
From: Andy Furniss <lists@andyfurniss.entadsl.com>
Date: Fri, 13 Apr 2007 20:16:26 +0100
Cc: lartc@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <200704130050.36834.alex@uh.cu>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <1175788853.3947.6.camel@benve-laptop> <200704092349.09428.alex@uh.cu> <461C0B7A.8050601@andyfurniss.entadsl.com> <200704130050.36834.alex@uh.cu>
Reply-to: lists@andyfurniss.entadsl.com
Sender: lartc-bounces@mailman.ds9a.nl
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.2) Gecko/20070227 SeaMonkey/1.1.1
Alejandro Ramos Encinosa wrote:
On Tuesday 10 April 2007 22:11, Andy Furniss wrote:
Alejandro Ramos Encinosa wrote:
tc qdisc add dev eth1 parent 1:20 handle 120: sfq perturb 10

tc class add dev eth1 parent 1:20 classid 1:21 htb rate 49mbit
This is a misconfiguration, it doesn't make sense to add sfq and another
htb class to 1:20.
...why? The case I am trying to deal with is an scenario where some traffic goes into 1:20 (something like the traffic from/to the subnet 10.6.70.0/24) and then, I want to shape specifically some other traffic type (for example, the ssh connections from/to subnet 10.6.70.0/24). Is there another way to do it? Please, take a in mind that (in my example) I want to enclose the whole traffic from/to the subnet 10.6.70.0/24 and from that traffic I want to give an special treatment to ssh traffic.
Andy.
Regards, Ale.


You could add two htb classes under 1:20 and give one higher prio, or you could use the prio qdisc. If you really care about latency and have many bulk classes on a slow link then hfsc is better than htb. Linux hfsc could still be improved.

sfq and b/pfifo should be added on leafs, so you could still use them if you created two classes under 1:20.

If you don't specify a qdisc on htb leafs you get pfifo - but the queue length will be chosen from the interface that htb is added to - 1000 for eth (possibly too long) or 3 on ppp/vlan (too short), so it's worth thinking about queue lengths, adding a qdisc and using the limit parameter common to b/pfifo and sfq. (default sfq is 128).

Andy.

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

<Prev in Thread] Current Thread [Next in Thread>