Re: Shaping/Queuing Confusion

From: Scott Strobeck (scott@strobeck.net)
Date: Tue Aug 05 2008 - 13:09:40 ART


 I think you almost nailed it, Hobbs. The way I read it is that the
Prec4 class doesn't require shaping. I think this would do it:

policy-map policy
class fa0/0
bandwidth 128
shape average 256000
class prec4
bandwidth 384

The bandwidth statement is a minimum guarantee, but will allow the
traffic to go up to the full bandwidth, if it is available.

Scott

Hobbs wrote:

  I did it like this and it works:
  
  policy-map policy
    class fa0/0
     bandwidth 128
     shape average 256000
    class prec4
     bandwidth 384
     shape peak 512000
  
  Does that satisfy the requirements?
  
  Not sure why you are using nested policies...

  On Tue, Aug 5, 2008 at 3:09 AM, Ahsan Mohiuddin <ahsan.mohiuddin@gmail.com> wrote:

    Dear Experts,
    
    I am confused what would be the solution to below requirements. Please
    help!
    
    Define two classes of service besides the default.
    
    Class Fa0/0 matches all the traffic coming from input interface fa0/0.
    
    Class IP-Prec matches all the traffic with an IP Precedence of 4.
    
    Class Fa0/0 is ensured a bandwidth of 128 Kbps and the output is shaped to
    256 Kbps.
    
    Class IP-Prec is ensured a bandwidth of 384 Kbps. But if enough bandwidth
    is available, the class can obtain the throughput up to the peak of 512
    Kbps

    I tried the following configuration but when I apply it to interface, I get
    *"GTS : Can be enabled only at the first level"*
    
    Class Map match-all Fa0/0 (id 1)
      Match input-interface FastEthernet0/0
    
     Class Map match-all IP-Prec (id 2)
      Match ip precedence 4
    
    Policy Map Fa0/0
       Class Fa0/0
         Traffic Shaping
            Average Rate Traffic Shaping
            CIR 256000 (bps) Max. Buffers Limit 1000 (Packets)
     Policy Map IP-Prec
       Class IP-Prec
         Traffic Shaping
            Peak Rate Traffic Shaping
            CIR 512000 (bps) Max. Buffers Limit 1000 (Packets)
     Policy Map SHAPE
       Class Fa0/0
         Bandwidth 128 (kbps) Max Threshold 64 (packets)
         service-policy Fa0/0
       Class IP-Prec
         Bandwidth 384 (kbps) Max Threshold 64 (packets)
         service-policy IP-Prec

    Blogs and organic groups at http://www.ccie.net
    _______________________________________________________________________
    Subscription information may be found at: http://www.groupstudy.com/list/CCIELab.html

  Blogs and organic groups at http://www.ccie.net
  _______________________________________________________________________
  Subscription information may be found at: http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Mon Sep 01 2008 - 08:15:29 ART