Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Traffic policing - Mixing Bandwidth and Bandwidth Percent

Status
Not open for further replies.

GM2005

ISP
Sep 28, 2005
118
GB
Hi

I have been asked if the following config will work. It is the output from a QoS calculator. The issue I have is that the bandwidth is specified in Kbps to start then moves on to bandwidth specified in percent. I understand this will not work. Am I correct, and is there a woraround?

Two points.
1. This is a cut down config
2. The class names are purely for example.

policy-map DSCP_CoS_Policy
class Class1_traffic
police 8000 8000 8000 conform-action set-prec-transmit 6 exceed-action set-prec-transmit 6
bandwidth 51
random-detect
random-detect exponential-weighting-constant 3
random-detect precedence 6 20 32 10
random-detect precedence 0 20 32 10
class Class2_traffic
police 408000 38000 76000 conform-action set-dscp-transmit af11 exceed-action set-dscp-transmit af12
bandwidth 1482
random-detect dscp-based
random-detect exponential-weighting-constant 6
random-detect dscp 10 38 61 10
random-detect dscp 12 38 61 10
class Class3_traffic
police 8000 8000 8000 conform-action set-dscp-transmit default exceed-action set-dscp-transmit default
bandwidth percent 10
queue-limit 400
class Class4_traffic
police 8000 8000 8000 conform-action set-dscp-transmit default exceed-action set-dscp-transmit default
bandwidth percent 3
queue-limit 200

Thanks in advance to anyone who takes a look at this.
 
You're right. You cannot specify mixed bandwidth values (i.e. some in percentage and others a fixed value) in the same policy.

The workaround is to specify one or the other consistently throughout your policy. I prefer to use bandwidth % because if you upgrade your WAN pipe in the future, the QoS policy adjusts automatically.

I think all you should have to do is understand how big your pipe is and convert the statements above like "bandwidth 1482" to the equivalent % value.

So for example, if your total WAN bandwidth was 2048Kbps,
"bandwidth 1482" is equivalent to "bandwidth percent 72"

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top