OpenWrt Forum Archive

Topic: simple QoS for VOIP

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm trying to setup QoS for my VOIP account. Here's my setup:

    * VOIP service provider: mybbvoice.com
    * adapter: Linksys SPA2102
    * router: Asus WL-500gP v1
    * firmware: Kamikaze 8.09.1

I've installed luci-app-qos and measured my bandwidth with  http://www.speedtest.net to set the uplink and downlink thresholds.

For my purposes, I want VOIP to be prioritized as Express and I'll leave everything else set to the default of the QoS script: e.g. UDP > Express, SSH > Priority, etc.

The QoS MiniHowto (http://oldwiki.openwrt.org/MiniHowtos%2 … Howto.html) says "or do something simple, like mark any traffic coming from my MAC address of my ATA as 1, High." Since I can't use MAC addresses in /etc/config/qos, I created two prioritizations:

config 'classify'
        option 'target' 'Express'
        option 'srchost' '192.168.1.1'
        option 'dsthost' '192.168.1.100'

config 'classify'
        option 'target' 'Express'
        option 'srchost' '192.168.1.100'
        option 'dsthost' '192.168.1.1'

Is this correct? Do I need to do anything else?

Thanks.

Hi, Dan:

If you have LuCI installed, just add the QoS application and it allows you to properly configure TC with priorities for different types of services and protocols.

I specify the ports I use on my IP PBX and IP phones behind my OpenWRT router and prioritize them accordingly. For example, I use 5060-5080, 6060-6070 and 30000-30050 for UDP and priority. With the downstream and upstream bandwidth set for 85% of my average speed, it sounds very good with no choppiness even when doing about 10 FTP sessions down.

I've tested this a LOT.

marc.

Thanks for your note.

I do have luci-app-qos and all its dependencies installed. The QoS app has only 4 priorities:

  * Priority
  * Express
  * Normal
  * Low

And now that I look at the list (taken from the priority pop-up menu), I'm pretty sure that Priority is a higher priority than Express.

But my real question is whether my prioritizations are properly configured. I specified them using the LuCI app and then copied them out of /etc/config/qos.

config 'classify'
        option 'target' 'Express'
        option 'srchost' '192.168.1.1'
        option 'dsthost' '192.168.1.100'

config 'classify'
        option 'target' 'Express'
        option 'srchost' '192.168.1.100'
        option 'dsthost' '192.168.1.1'

And/or, dumb question, should I include a prioritization between the SIP proxy server and my router?

To answer my own question about prioritization between the SIP proxy server and my router, it seems that residential/consumer ISPs don't look at the QoS tags in an IP packet. QoS is a feature of more expensive business class services. For most consumers, the bottleneck is the upstream traffic to their ISP which QoS can help shape.

I changed this to simply:

config 'classify'
    option 'srchost' '192.168.1.100'
    option 'target' 'Priority'

Dan:

The QoS configuration does not tag bits from the WAN to the ISP. It merely (!) prioritizes the bits you choose to go first if there is contention for bandwidth on the upstream on your OpenWRT box.

This means that you don't need the ISP upstream to do anything.

It also means that if there is no contention, then all packets are treated the same. The way to test if you have it configured properly is setup a few long FTP sessions to a remote host and then make some calls. If you don't hear clearly its not working. If you can keep adding more FTP sessions while on a call, and the call still sounds clear, then it works.

marc.

The discussion might have continued from here.