QOS ip filter does no work with 2 queues below top level queue ...

Linux Advanced Routing and Traffic Control

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

 



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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux