From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Francois Levesque Date: Wed, 25 Jun 2003 18:53:28 +0000 Subject: Re: [LARTC] 1 MBS per server Linux router Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi! I have done that script to test my router : #include "fields.tc" #include "ports.tc" #define INTERFACE eth0 #define LIMITEDRATE 1kBps dev INTERFACE { egress { /* In class selection path, the filters come first! DSmark */ class ( <$AB10CL> ) if ip_dst = 10.1.1.10 || ip_src = 10.1.1.10; class ( <$AB11CL> ) if ip_dst = 10.1.1.11 || ip_src = 10.1.1.11; class ( <$AB12CL> ) if ip_dst = 10.1.1.12 || ip_src = 10.1.1.12; class ( <$other> ) if 1 ; /* section in which we configure the qdiscs and classes */ htb () { class ( rate 10kBps, ceil 10kBps ) { $AB10CL = class ( rate LIMITEDRATE, ceil LIMITEDRATE ) { sfq; } ; $AB11CL = class ( rate LIMITEDRATE, ceil LIMITEDRATE ) { sfq; } ; $AB12CL = class ( rate LIMITEDRATE, ceil LIMITEDRATE ) { sfq; } ; $other = class ( rate 1kBps, ceil 1kBps ) { sfq; } ; } } } } I have plugged my machine behind the router but I see no difference when I download :-( What is wrong with that script? If this is not working, I'll try wrr. Thanks! Jean-Francois Trevor Warren wrote: >Hello, > > If you just wanna reduce the b/w pipe per server wrr could be a >simplistic implementation that would work. > > For real functionality see htb which works like a charm. For something >more complex see cbq. > >Trevor > > _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/