Page 1 of 1

QoS Rule Examples

Posted: Thu Apr 21, 2005 3:59 am
by REDTDI
I am trying to make VoIP traffic have priority in my network. I have played with priorites of traffic in the past without much luck. Does anyone have any of their own VoIP prioritization rules that they could post hear for me to look at? I would like to try them out so that I might have better luck myself.

Thanks in advance,
Ken

Posted: Fri Apr 22, 2005 9:25 am
by Cameron Earnshaw
Not sure if this is exactly right but it seems to work for me:

ip firewall mangle>

src-address=:5004-5065 protocol=udp p2p=!any action=accept
mark-flow=VoIP-In mark-connection=VoIP-In set-tos=min-delay

dst-address=:5004-5065 protocol=udp p2p=!any action=accept
mark-flow=VoIP-Out mark-connection=VoIP-Out set-tos=min-delay

queue tree>

name="VoIP1" parent=global-in flow=VoIP-In limit-at=0 queue=default
priority=3 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0

name="VoIP2" parent=global-out flow=VoIP-Out limit-at=0
queue=default priority=3 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0

These ports are what my SIP phones and pbx use. Vonage and some other services use additional ports, but you can easily see which you need by running torch while you place a call.

Posted: Sun Apr 24, 2005 5:03 am
by GJS
Aren't those ports used just for the SIP messages? My understanding is that the voice traffic uses random UDP ports and RTP protocol, which can't be detected in MT.

Posted: Sun Apr 24, 2005 8:14 am
by Cameron Earnshaw
That might be trued with some services such as Vonage. With my IP phones, which I run through my own Asterisk PBX, I see 80-90 Kbps on these ports whenever a call is in progress, so it must be more than just messaging.

Cameron