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 / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to