cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
416
Views
5
Helpful
9
Replies

QoS question - Is this the best way?

John Blakley
VIP Alumni
VIP Alumni

All,

I have a site that has a 20mb DS3. I want to limit them to 3mb for everything. What I have so far is this:

policy-map SHAPE

class class-default

shape average 3000000

policy-map POLICE

class class-default

police 3000000

int s1/0

service-policy output SHAPE

service-policy input POLICE

This seems to work great. On a speed test (up and down) I get 3mb. Is this the best way, or should I be doing something else?

Thanks!

John

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

Accepted Solutions

The provider may, or may not, be cooperative with your request. Plus, if the bandwidth is there for an "emergency", it might be difficult to have them remove a soft cap quickly for an emergency.

The inbound 3 Mbps policer will keep your downstream hosts from getting more than 3 Mbps, but a policer won't guarantee that the WAN link (inbound) won't exceed 3 Mbps. This because most non-TCP flows won't slow when there are drops, and even TCP flows can burst above the policer rate before they self slow.

View solution in original post

9 Replies 9

Jon Marshall
Hall of Fame
Hall of Fame

John

If it works...

Seriously, if you want to control it at one interface then yes this will work although ideally you would want the other end of the DS3 to do the policing rather than use the DS3's bandwidth and then drop at your interface.

But no problems with what you have.

Jon

Joseph W. Doherty
Hall of Fame
Hall of Fame

If you could, it might be better to shape the other side's out rather than police same side's in.

This is directly to the provider. I could ask if they could shape their side too. This link is our DR link and it's 20mb, but the full 20mb is only supposed to be used in case of an emergency. Otherwise, it will be used on a day-to-day basis for a 3-4mb link.

After policing, I ran a speed test and could easily see it "bounce" between 2.6 and 2.95, so it's working, but I don't really like the idea of dropping all of that traffic either.

Thanks,

John

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

John,

Actually ISP site will police(Inbound) you at the rate you have purchased. That's why they want you to shape at the same rate. Your configuration is good for me. A bit delay might be better than re-transmission.

Toshi

The provider may, or may not, be cooperative with your request. Plus, if the bandwidth is there for an "emergency", it might be difficult to have them remove a soft cap quickly for an emergency.

The inbound 3 Mbps policer will keep your downstream hosts from getting more than 3 Mbps, but a policer won't guarantee that the WAN link (inbound) won't exceed 3 Mbps. This because most non-TCP flows won't slow when there are drops, and even TCP flows can burst above the policer rate before they self slow.

Joseph,

I've sent an email to the provider about this, but I haven't heard back. So what's the best way about doing this then? Is policing still my best option? Are there other parameters that I should use on my policing config?

Thanks,

John

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

All,

I got a response from the provider, and they won't shape the traffic back. They said that I'm doing it the best way. What is it with UDP traffic though that policing won't help?

They said that "...if we're downloading anything with UDP, the traffic has already traversed the link and has counted toward the utilization target." I thought policing the traffic addressed both tcp and udp.

Thanks,

John

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

John

From Joseph's post -

"This because most non-TCP flows won't slow when there are drops, and even TCP flows can burst above the policer rate before they self slow."

TCP uses sequence numbers/receive and send windows/acknowledgements etc. In short TCP can adapt to changes in network congestion and if packets are dropped by the policer they will slow their transmission.

UDP has no such mechanisms and therefore cannot adapt in the same way. Hence a policer at your end of the link will not stop UDP going above the 3Mbs.

Jon

"Hence a policer at your end of the link will not stop UDP going above the 3Mbs."

Just to clarify this a bit more, UDP traffic before the policer will likely not slow its transmission rate.

UDP after the policer will be rate limited.

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:

Review Cisco Networking products for a $25 gift card