LARTC
[Top] [All Lists]

[LARTC] HTB: is root a class really necessary?

To: lartc@mailman.ds9a.nl
Subject: [LARTC] HTB: is root a class really necessary?
From: brick@caramidaru.botosani.rdsnet.ro
Date: Sun, 25 Mar 2007 12:27:13 +0300 (EEST)
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
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>
Sender: lartc-bounces@mailman.ds9a.nl
i have been using a HTB setup for almost a year now, and i have created it w/o a root class.
i ll try to draw it here:
1:0---1:3---1:30-local small traffic
         ---1:31-local rest of traffic
---1:5---1:5xxx- classes for the trafic that comes from the metro part of the ISP that i use ---1:7---1:7xxx- classes for the trafic that does not enter the previous 2 classes(the internet traffic)
   ---1:4- default class

all these classes: 1:3, 1:5, 1:7, 1:4 have as their parent the root qdisc.

the motive behind this setup is that i don t want any borrowing between these classes

as for the  filters, i have 2 of them
-a prio 1 filter, atached to 1:0 that sends
        local traffic to 1:30,1:31;
        metro traffic to 1:5
        internet traffic to 1:7xxx
-a prio 3 filter, atached to 1:5, that sends traffic to 1:5xxx

by using this setup of filters i reduce the number of tc commands to be given in order to create the filter

i ask this, because in all the examples i saw, all scripts use a root class, between the root qdisc and the other classes.
also i saw that many examples atach filters directly to the root qdisc.
my seup seems to be running well, but i want to know if using a root class, or filters of the same prio will improve my setup.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [LARTC] HTB: is root a class really necessary?, brick <=