I have no idea which flavour of voip they intend to run… what is the best way of prioritizing voip?
I can’t possibly rely on QOS flag because the routers they’re using is to cheap for that…
I don’t particularily care about prioritizing last mile (would be nice if it was availible so I can say “I’ve done my bit”) but I need to prioritize the backbone…
Well, in general you could use mangle to get UDP port 5060 for the SIP, you could connection mark it, and then prioritize based on the conn. mark - that’s what I do, except I use my source IP / dest IP and only prioritize my own VOIP services (not others ).
You could mark just SIP and prioritize the whole connection, if you’re lucky the RTP and SIP will have the same destination IP. I don’t do it that way, but you should be able to tell immediately if it’s marking properly, you’ll see that queue tree entry bps increase. If it goes up a little, you only got SIP, if it goes up a lot, you got the audio stream as well.
I know my VOIP over 802.11b to Mikrotik works great with queuing, I get about 2.3Mbps (actual speed) out of my connection using many downloads, I can max it out while talking on the phone and not lose a single bit of audio.
I ask another way: should I mark connections or packets? where is a difference in working? I mark only packets now and QoS system seems to be working. Am I wrong?
kj
in mangle you can mark packets, connections or routes. you can mark packets basing on specific rules (ports, protocols, addresses etc) or basing on connection mark - if you previously marked connection. there is example of such marking in manual. my question is - what is the difference between “direct” packet marking and marking packets basing on connection mark?
thanks for the explaination but of course I already know what you say, I hav ethe same question, I see 3 different ways of mangling and it would be nice if someone would explain it to us:
mark directly the packets and then use this packet flow in the queue
mark connection and then mark the packets of this connection and use this packet flow on queue
mark connection and use the mark connection on queue
First off, different voip solutions use different protocols/ports. So the task is close to impossible. Ask your customers what systems they use and base your QoS on that. QoS is best used where bandwidth is tight. If your backbone is 100mbit or more then why waste router resources?
Maybe it would be good to create public QoS database, where every of us could publish known application mangle rules? (voip, games, etc). Or maybe such database already exist? It is hard to know all connection rules - together we can know more.
Hello, I want to priotirized my VOIP Vonage, I know that they use port 5061 UDP and 10000-20000. If I want to mangle this ports, how would it look like? “/ip firewall mangle ???” can you help me out?