RE: converting custom queue to cbwfq

From: asadovnikov (asadovnikov@comcast.net)
Date: Sun Mar 14 2004 - 13:21:01 GMT-3


Does not work on 12.3.6

R1(config-cmap)# class-map match-all P1
R1(config-cmap)# match ip precedence 1
R1(config)# class-map match-all P2
R1(config-cmap)# match ip precedence 2
R1(config-cmap)# policy-map myPolicy
R1(config-pmap)# class P1
R1(config-pmap-c)# bandwidth percent 30
R1(config-pmap-c)# class P2
R1(config-pmap-c)# bandwidth percent 20
R1(config-pmap-c)#bandw
R1(config-pmap-c)#bandwidth rem
R1(config-pmap-c)#bandwidth remaining p
R1(config-pmap-c)#bandwidth remaining percent 30
All classes with bandwidth should have consistent units
R1#do show ver | i 12.3
IOS (tm) C806 Software (C806-K9OSY6-M), Version 12.3(6), RELEASE SOFTWARE
(fc3)

I think documentation referenced earlier is no good. Anybody opened a case
with Cisco TAC yet?

Best regards,
Alexei

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of John
Matijevic
Sent: Sunday, March 14, 2004 9:28 AM
To: 'William Chen'; 'Brian McGahan'; alsontra@hotmail.com; 'Tom Wojahn'
Cc: ccielab@groupstudy.com
Subject: RE: converting custom queue to cbwfq

Hello William,
I believe that you would want to use the bandwidth remaining-percent, only
if you have configured the bandwidth-percent. Because then if you have
allocated bandwidth above the 75%. Then you decide how the remaining
percentage will be allocated. Here is an example from Cisco:

the first example, policy-map foo guarantees 30 percent of the bandwidth to
class bar and 60 percent of the bandwidth to class baz.

policy-map foo
  class bar
    bandwidth percent 30
 class baz
  bandwidth percent 60
Applying this policy to a 1 Mbps link means 300 kbps is guaranteed to class
bar, and 600 kbps is guaranteed to class baz. Importantly, 100 kbps is
leftover for class-default. If class-default does not need it, the unused
100 kbps is available for use by class bar and class baz. If both classes
need the bandwidth, they share it in proportion to the configured rates. In
this configuration, the sharing ratio is 30:60 or 1:2.

This next example combines the bandwidth percent command with the bandwidth
remaining percent command to explicitly control the allocation of the unused
100 kbps of bandwidth. With this configuration, the 100 kbps is shared
between class bar and baz in an 80:10 (8:1) ratio.

policy-map foo
 class bar
   bandwidth percent 30
   bandwidth remaining percent 80
 class baz
   bandwidth percent 60
   bandwidth remaining percent 10

Hopefully this helps clarify :)

As far as not being able to use the commands together I think, it probably
is an IOS issue, as I have 12.2 running at home, and I don't even see the
bandwidth remaining-percent. I would try to see if it works on another 12.2
IOS version. Sincerely, John Matijevic

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
William Chen
Sent: Saturday, March 13, 2004 10:29 PM
To: Brian McGahan; alsontra@hotmail.com; 'Tom Wojahn'
Cc: ccielab@groupstudy.com
Subject: Re: converting custom queue to cbwfq

Dear Brian,

   I tried your example of using bandwidth remaining percent command, but I
can't make it working.

> Now suppose that you want class C to get more of the default class
> when there is saturation of everything except the default class. This
is
> the case where it is appropriate to configure the "bandwidth remaining
> percent" such as follows:
>
> Policy-map XYZ
> Class A
> Bandwidth percent 30
> bandwidth remaining percent 25
> Class B
> Bandwidth percent 20
> bandwidth remaining percent 25
> Class C
> Bandwidth percent 10
> bandwidth remaining percent 50
>

### My Testnig:
R1#sh ver
Cisco Internetwork Operating System Software
IOS (tm) 3600 Software (C3640-JK9O3S-M), Version 12.2(15)T7, RELEASE
SOFTWARE (fc2) ...... R1#sh run ...... ! class-map match-all P1
  match ip precedence 1
 class-map match-all P2
  match ip precedence 2
 class-map match-all P3
  match ip precedence 3
!
!
 policy-map myPolicy
  class P1
   bandwidth percent 30
  class P2
   bandwidth percent 20
  class P3
   bandwidth percent 10
!
......
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#policy-map myPolicy R1(config-pmap)#class P1
R1(config-pmap-c)#bandwidth remaining percent 25 All classes with bandwidth
should have consistent units ....

    It seems I can only apply either "bandwidth percent" or "bandwidth
remaining percent". Moreover, what is the difference between using
"bandwidth percent" with "bandwidth remaing percent" alone, if the
"bandwidth remaining percent" is to reserved bandwidth out of class-default
(i.e 100% if I don't make any reservation before)?

Best Regards,
William Chen



This archive was generated by hypermail 2.1.4 : Thu Apr 01 2004 - 08:15:20 GMT-3