cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
855
Views
20
Helpful
7
Replies

QoS for VoIP

John Blakley
VIP Alumni
VIP Alumni

All,

I'm about to run our first site using voip through our ISP's mpls network. I was going to mark the traffic outbound, but I want to guarantee that the phones get a minimum amount of bandwidth when needed. I'm not sure if priority is a good choice since it polices the traffic also, so is using the priority command better than the bandwidth command under a  policy map for voip?

Also, should I mark the traffic outbound on the serial interface with the EF tag, or should I mark it inbound on the lan side of the router?

Thanks!

John

HTH, John *** Please rate all useful posts ***
1 Accepted Solution

Accepted Solutions

Hi John

You need to make sure that your ISP runs the QoS policies throughout their whole network till the egress PE after which the packets will be handed over to your remote end (CE) location. (thts the default case with most of the ISPs)

You need to apply the service policy command outbound on the serial interface.

Make sure you have similar configs at the remote end router as well so that you have policies applied on both the sides.

regds

View solution in original post

7 Replies 7

spremkumar
Level 9
Level 9

Hi John

You should apply priority to the voice class instead of bandwidth, thats the best practice being used and followed.

And of course if you dont have voice traffic then the bandwidth will be available for other traffic class.

regds

Is there a calculation that I can use to figure out what a good minimum would be? I'm not sure how many phones I'm going to end up with....

Thanks,

John

HTH, John *** Please rate all useful posts ***

Hi

You need to arrive at a no of approx simultaneous calls which needs the WAN bandwidth, based on the same you can allocate the priority for the voice traffic.

Coding algorithm

BandwidthSampleIP bandwidth
G.711PCM64kbps0.125ms80kbps
G.723.1ACELP5.6kbps30ms16.27kbps
MP-MLQ6.4kbps17.07kbps
G.726ADPCM32kbps0.125ms48kbps
G.728LD-CELP16kbps0.625ms32kbps
G.729(A)CS-ACELP8kbps10ms24kbps

Above table for your reference, you can consider using G.729(A) codec and use it along with no of calls to arrive at the approx bandwidth required for voice traffic.

http://www.erlang.com/bandwidth.html

regds

Jon Marshall
Hall of Fame
Hall of Fame

John

Just to expand on Edwin's answer . You said -

I'm not sure if priority is a good choice since it polices the traffic also, so is using the priority command better than the bandwidth command under a  policy map for voip?

That's actually what you want ie. you want the priority traffic to be policed otherwise priority traffic could end up starving the other queues. And if you have not setup your trust boundaries correctly someone could in theory mark all their traffic as priority in which case the policer will save you from that user having all bandwidth, although it could degrade the VOIP calls themselves.

So the trick is to estimate how many calls together with the codec to work out how much bandwidth you will need in the prioriy queue.

Also bear in mind if this is across an MPLS network then unless the provider is also prioritising this traffic it will be treated as best effort across the MPLS cloud.

Jon

Yeah, we've contacted the ISP to put qos on the link. So, should I apply the policy inbound on the inside interface or outbound on the serial side, or both inbound and outbound on the serial side?

John

HTH, John *** Please rate all useful posts ***

j.blakley wrote:

Yeah, we've contacted the ISP to put qos on the link. So, should I apply the policy inbound on the inside interface or outbound on the serial side, or both inbound and outbound on the serial side?

John

John

Presumably the traffic will already be marked by the time it reaches your MPLS router ? If so then apply your queueing policy outbound on the serial interface.

Jon

Hi John

You need to make sure that your ISP runs the QoS policies throughout their whole network till the egress PE after which the packets will be handed over to your remote end (CE) location. (thts the default case with most of the ISPs)

You need to apply the service policy command outbound on the serial interface.

Make sure you have similar configs at the remote end router as well so that you have policies applied on both the sides.

regds

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco