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

[altq 700] Re: Configuration of CBQ (filtering)




Tatsuhiko Terai wrote:
> Thanks you very much for the advice of previous question
> about RED router. With your advice, I can watch and use
> ALTQ as RED router.
> 
> I would like to ask another question about CBQ configuration.
> I'd like to filter each connection bandwidth like this
> 
>  Server ------- ALTQ ---------Client
>   (ti0)       (ti1) (ti0)       (ti0)
> 192.168.12.1                   192.168.11.1

As I already told you, you won't have packets backlogged at the router
so that CBQ won't be able to do much.

> With TIPS or README, I wrote the configuration file below.
> interface ti0 bandwidth 300M cbq
> class cbq ti0 root NULL pbandwidth 100
> # Meta Class
> class cbq ti0 def_class root borrow pbandwidth 95 default
> #
> class cbq ti0 con1 def_class borrow pbandwidth 40 red
> 	filter ti1 tcp1 192.168.11.1 5001 192.168.12.2 5001 6
> class cbq ti0 con2 def_class borrow pbandwidth 30 red
> 	filter ti1 tcp2 192.168.11.1 5002 192.168.12.2 5002 6
> class cbq ti0 con3 def_class borrow pbandwidth 20 red
> 	filter ti1 tcp3 192.168.11.1 5003 192.168.12.2 5003 6
> 
> However, altq don't accept this configuration with below error.
> an 20 07:06:02 cetus altqd[33008]: syscall error: add filter failed! 
> Jan 20 07:06:02 cetus altqd[33008]: : Invalid argument
> Jan 20 07:06:02 cetus altqd[33008]: : Invalid argument
> Jan 20 07:06:02 cetus altqd[33008]: can't add ctl class IPv6 filter on interface 'ti0' 
> Jan 20 07:06:02 cetus altqd[33008]: bad interface: add filter failed! 
> Jan 20 07:06:02 cetus altqd[33008]: bad interface: add filter failed! 
> Jan 20 07:06:02 cetus altqd[33008]: can't add filter to class 'tcp1' on interface 'ti1' 
> Jan 20 07:06:02 cetus altqd[33008]: can't add filter to class 'tcp1' on interface 'ti1' 
> Jan 20 07:06:02 cetus altqd[33008]: Config failed. Exiting. 
> Jan 20 07:06:02 cetus altqd[33008]: Config failed. Exiting. 
> 
> It likes syntax error or so, however, cbq.sample0 replaced sr0 to ti0
> also puts some error

2 issues:
 - if you disable IPv6 in the kernel, you have to disable IPv6 in the
   userland too.  (or, don't disable IPv6 in the kernel.)
 - your filters are for "ti1" but your classes are for "ti0".

-Kenjiro