VOIP & QOS

We have a 6mbps gateway Internet connection right now soon to update to 9mbps. Anyway, at peak times my Packet8 phone cuts out. Is there anyway with Mikrotik to automtically prioritize higher QOS traffic at the gateway? The only way that comes to mind to me is to limit all traffic but high QOS traffic to 95% of the bandwidth and reserve 5% for VOIP and higher QOS. This seems like a waste when there are no calls occurring.

Any other ways to do it?

Matt

I think you may try to use ‘priority’ option in the queues.

  • Create mangle, that marks VoIP traffic.
  • Create queue entry, that has priority=1 configured.

Have you ideas marking skype, msn and any other sip packets?
5060-506x is not enough, because it is possibe to use random ports etc.

Since, at this time I have 6mbps, would I create one 6mbps queue then create other 6mbps queues that call this parent with various prioritys? Is priority 1 the highest or lowest priority?

Can we get an example of this on wiki?

Matt

SIP marking is/will be easier in 3.0 version. SIP helper is included to NAT traversal helpers, as well mangle contains ‘connection-type=sip’.
I have no idea about skype.

Matt,
1 is highest priority, you can create queue with priority enabled, but without rate-limit configuration.
Using queue tree, you can create parent with 6 Mbps and two child queues one with priority=1 for VoIP and another with priority=8 (>1) for another traffic, that should be mangled.

I try MT 3.0b5 but i found only h323 on nat, connection-type rules.

[admin@MikroTik] /ip firewall nat> add connection-type= 
ftp  gre  h323  irc  mms  pptp  quake3  tftp  !

I’m very impatient? :slight_smile:

yes :slight_smile:
actually you may try to add type ‘sip’ manually in the field, it will be present in the upcoming versions.

Serges,

I want to create a generic rule on all our high sites to prioritise SIP traffic. All normal traffic should come second and all SIP traffic should come highest priority. Please could you give me some ideas how to do this.

eugenevdm, you should start reading, my friend: http://forum.mikrotik.com/t/help-please-on-shaping/25634/4 http://forum.mikrotik.com/t/tree-queues-and-traffic-priority/25135/3 I have the humble request that you let us know the QoS design you found to work for you.

Best Regards.

NetworkPro, I joined this forum Jun 01 2004 and since then I have been reading a lot.
I have also been building up a company that is running fairly successfully and since I am running the company a lot of my time is spent managing the company, not reading technical stuff.

That’s why I came to this forum. I really don’t have the time to read every single bit of documentation to get a simple QoS design.

I’m sure many people are in the same situation as I am. They have a network with high sites and a data feed and clients and they want to prioritise one or two protocols.

I use forums because I don’t have the time to always RTFM.
If you have an answer for me, please give me something.
If not then I prefer to hear from someone in the community who has.

What I am after is something like this:

  • Create mangle, that marks VoIP traffic.
  • Create queue entry, that has priority=1 configured.

I need to know:

(1) Does this need to be created on every high site, or should it just be created in the data centre.
(2) What is the actual rule? e.g.:

/ip firewall mangle mark protocol=sip name=sip_marking
/ip firewall mangle mark protocol=!sip name=all_other_traffic
/queue simple add name=sip_queue priority=1
/queue simple add name=all_other_traffic  priority=8
[bind queue to some queueing discipline]

(3) Is is possible to create the rule generically, without specifying bandwidth sizes. I don’t want to tie the rule to a specific bandwidth size, I merely want it prioritised.

[/quote]
If I find a solution, I will be sure to share it. That’s why I came to this forum. Not to go off into the corner and read some manuals like a good old nerd but to try and find information that is easily shared.

I agree with your point of view.

There are a lot of problems associated with QoS. It’s a science of it’s own. But I guess we can try something and see if it will work, if you are lucky.

Usually QoS must be implemented only on the main Internet Gateway, where hopefully, you know your exact bandwidth and hopefully, it is stable and not varying due to 1% loss or other reasons.

Can you please draw a simple diagram in paint, showing VoIP traffic’s path over the congested interface you want to manage? So that I can have an idea where QoS needs to be set up.

Generally, connection-type=sip can be used to catch SIP traffic, which is going over the router.
connection-type option is available in

/ip firewall mangle add connection-type

is SIP helper needed to use this option?

i have created the rule as below:

chain=prerouting action=passthrough connection-type=sip
chain=prerouting action=passthrough connection-type=h323

but i don’t see any bytes or packets counter increased. and i am sure that there are a lot of SIP/H323 traffic are forwarded by my router.

any idea?

PS:
1- Which one is better between connection-type=sip/h323 and L7 protocol(sip/h323)?
2- Does L7 protocol and connection-type=sip/h323 100% work? does anyone test them successfully?

I would first mark by port, if we know the port for sure, like port 80 is for sure http 99.99% of the time. Then maybe I would test to mark by connection-type. And the last marking will be by L7. All would be passthrough=no to not mark them three times. I do not trust either of the three to recognize and mark it all. And by the way, (most of the) L7 is not usable for routing marks, just for QoS.

i have created the rule as below:

chain=prerouting action=passthrough connection-type=sip
chain=prerouting action=passthrough connection-type=h323

but i don't see any bytes or packets counter increased. and i am sure that there are a lot of SIP/H323 traffic are forwarded by my router.

any idea?

any idea?

connection-type cannot work. it can caught any SIP or H323.
any idea??