i need example for VOIP priority on other traffic.
What exactly i need,
I whant that all SIP phones on internal network 192.168.1.0/24 have priority on all other traffic, but I know what is my four public IPs of SIP servers (etc. public ip 172.16.16.1, 172.16.16.2, 172.16.16.3, 172.16.16.4).
I whant filter for SIP phones in internal network that have a priority1 to get public ip of servers, considering on other traffic who will have priority 8
Create a parent queue to match the LAN interface (or the LAN network, if I know that instead). Set this queue up with the customer package limit for download & upload – if you leave it unlimited, there will still be short hiccups of bad voice quality when a burst of data traffic starts, until the queue learns what the upstream limit is. The drawback is, of course, if the upstream package limit is ever increased, you’ll have to remember to edit your parent queue as well. Change the queue type from default-small to default.
Add a queue for the voice traffic. Most of the time, I match the internal IPs of the phones, but you could also have the “target” set to the whole LAN network and add a destination for the network of the external SIP servers (If they don’t fit into a single network, you’re going to have to packet mark instead). I set max-limit and limit-at of (100k * number of simultaneous calls) for upload and download on this queue, priority 1, with a parent of the above. Change the queue type from default-small to default.
Add a queue for all other traffic. Most of the time, I set this to match 0.0.0.0/0 – as long as your parent is matching specifically from the LAN side, this will work, though it may be a better practice to only match on the internal network. You can leave this unlimited if you want, but I usually set it to the same max-limits as the parent, so I can see traffic on the Traffic tab. Change the queue type from default-small to default.
So, in your network, that might look something like:
If the public IPs of the SIP servers aren’t in their own simple network (so that Destination won’t work for you), then you’ll have to either set multiple targets for all the internal phone IPs (if those are static), or use an address list and packet-marks to identify connections to or from the SIP servers and match the packet-mark into the simple queue.
If a whole /24 subnet on a dedicated interface is reserved for IP Phones, can I avoid use of packets marking / mangle rules and manage the voip traffic just using queue target ?