Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Beat Meier <mbe_ml@swiss-wireless.com.ar>
To: lartc@vger.kernel.org
Subject: [LARTC] QOS ip filter does no work with 2 queues below top level
Date: Sun, 14 Oct 2007 21:44:04 +0000	[thread overview]
Message-ID: <47128DA4.7070805@swiss-wireless.com.ar> (raw)

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

                 reply	other threads:[~2007-10-14 21:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47128DA4.7070805@swiss-wireless.com.ar \
    --to=mbe_ml@swiss-wireless.com.ar \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox