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

[altq 699] Configuration of CBQ (filtering)



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

3 connections will be established between server and client
whose port No. is 5001, 5002, 5003 respectively.
And I'd like to configure that 3 connections share whole
bandwidth to 50%(con1), 30%(con2), 20%(con3)
which is all TCP connections.

I expect that sharing bandwidth with different percentage with
RED produce different packet loss percentage.

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

cetus altqd[33014]: syscall error: add filter failed! 
altqd[33014]: : Invalid argument
altqd[33014]: can't add ctl class IPv6 filter on interface 'ti0'

altqd[33014]: cbq enabled on interface ti0 (mtu:1500)

Jan 20 07:08:05 cetus altqd[33014]: syscall error: add filter failed! 
altqd: going into the daemon mode.
cetus# Jan 20 07:08:05 cetus altqd[33014]: : Invalid argument
Jan 20 07:08:05 cetus altqd[33014]: : Invalid argument
Jan 20 07:08:05 cetus altqd[33014]: can't add ctl class IPv6 filter on interface 'ti0' 

what should I modify?
This kernel is now turned off option'IPV6'

Do you have any idea of that?

Thank you very much.

Tatsuhiko Terai.