I have search the forums and read all I have found but would like to make sure I am implementing this correctly. I have a single VOIP device (Linksys PAP2t) and would like it to have priority traffic for VOIP on my T1 connection. The linksys IP is 10.4.5.99 so here is what I set up:
On your queues, I wouldn’t use PCQ type for this application (just default) and your AllTraffic queue should have a parent of the outgoing interface (ether1 or whatever) not global-total. By using global-total, you are not using the full 1.5mpbs outbound on the T1. Further, you only really get to queue packets going out an interface – you have little to no control of packets arriving at an interface. This means, of course, that unless your ISP is prioritizing VoIP packets going out to your T1, you are only queuing half the VoIP conversations.
Well the order of the mangle matters within a chain. The mangle rules are executed multiple times in the packet flow with different chain selectors. For example, in the preroute stage, the mangle rules where chain=prerouting are executed in their order. Then later in the forward stage, the mangle rules are run again but where chain=forward, so the order of prerouting versus forwarding doesn’t matter but within the chain it does. Make sense? Study the packet flow diagram in the RouterOS documentation to make more sense of it.
As for the NONVOIP queue, I would set the limit-at to 1000000, else the queue is always over it’s CIR and attaches to it’s parent immediately. In your case it won’t matter though. Finally, I would rename your top queue from AllTraffic to InternetOut or something because that’s all you’re queuing/shaping here.
For a DSL line with 768k up 6m down and a trixbox on 192.168.10.253 that has voip phones on the lan and voip trunks to a carrier… Ether 2 is my lan interface, my wan interface is PPPoE on ether 1 Any suggestions
OK that is not quite it. I seem to be queueing all traffic backwards, maybe because I am queueing my lan interface… I tried changing to my pppoe and now the “VOIP” counter does not increase.