Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] QOS ip filter does no work with 2 queues below top level
@ 2007-10-14 21:44 Beat Meier
  0 siblings, 0 replies; only message in thread
From: Beat Meier @ 2007-10-14 21:44 UTC (permalink / raw)
  To: lartc

Hello

First thanks for the answers I have received from the list!!

I have now a working qos configuration which bases of the lartc howto 
capitel 15.10.
One Problem I have is that I have limited the upload stream to 100kps 
because my
upstream is only 128kbps.
Everything works fine EXCEPT Voip.
I have a VoiP phone which is connected on the same net as the adsl modem BUT
does not use upstream it goes to the public phone line not the internet 
i.e. Voip is only in my internal red.
Now what I try is to have 2 queues below the top level
  - one for internet conections (1:1)
  - one for the voip phone (1:2)

I have not 2 interfaces in my embedded linux platform so I cannot route 
seperate :-(
What I've tried is:

### Normal stuff
tc qdisc add dev eth0 root handle 1: htb default 15
tc class add dev eth0 parent 1: classid 1:1 htb rate100kbit ceil 100kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 33kbit ceil 
33kbit prio 0
...

### Aditional 2. queue at "toplevel"
tc class add dev eth0 parent 1: classid 1:2 htb rate 10mbps ceil 10mbps
tc class add dev eth0 parent 1:2 classid 1:99 htb rate 100kbit ceil 
100kbit prio 0

### Add filter for Voip phone with ip address of it
tc filter add dev eth0 parent 1:0 protocol ip prio 7 u32 match ip dst 
192.168.99.240/32 flowid 1:99
tc filter add dev eth0 parent 1:0 protocol ip prio 7 u32 match ip src 
192.168.99.240/32 flowid 1:99
 
What does not work are the filters...
The packets don't go to class 1:99 they go still to the default one 
which is 1:15 ...

BTW: The packets are udp but this should be matched with ip, or not?

What do I wrong?

Thanks for any help

Beat



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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-14 21:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-14 21:44 [LARTC] QOS ip filter does no work with 2 queues below top level Beat Meier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox