class-based shaping

From: Pankaj Madhukar Kulkarni (PankajKu@hclcomnet.co.in)
Date: Tue Jul 20 2004 - 09:38:42 GMT-3


Hello everybody,

I have come across configuration problem while implementing "Hierarchical
Policy Maps Using Class-Based Shaping". I have configured a class-map
(class-map icmp - to match icmp traffic) and allocated 10% of bandwidth to
it (policy-map icmp). When I apply the service-policy directly to the
interface I see hits aganist the class-map icmp.

The behaviour is as expected till now.

Now, I created a parent policy-map (icmp1) and called the service-policy
icmp under class-map icmp1 and applied a bandwidth restriction of 512 kbps
under this class. Upon applying the service-policy to the interface, I donot
see any matches under class icmp. The counters in the default queue are
incrementing, neither are the matches aganist the ACL. this is a bit
strange.

Am I missing on something here? Can someone help me out.

On the other hand when I call the service-policy icmp under class-default in
policy-map icmp1 I see matches.

I've done the configuration as suggested in the link below:

http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuratio
n_guide_chapter09186a00800bd8f0.html

configuration -

access-list 171 permit icmp any any

 class-map match-all icmp
  match access-group 171

 class-map match-all icmp1

 policy-map icmp
  class icmp
   bandwidth percent 10

  policy-map icmp1
  class icmp1
   shape average 512000
   service-policy icmp
  class class-default

interface Serial1/1
 bandwidth 2048
 service-policy output icmp1
 encapsulation ppp

R7#sho policy-map inter s 1/1
 Serial1/1

  Service-policy output: icmp1

    Class-map: icmp1 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: none
      Traffic Shaping
           Target/Average Byte Sustain Excess Interval Increment
             Rate Limit bits/int bits/int (ms) (bytes)
           512000/512000 3200 12800 12800 25 1600

        Adapt Queue Packets Bytes Packets Bytes Shaping
        Active Depth Delayed Delayed Active
        - 0 0 0 0 0 no

      Service-policy : icmp

        Class-map: icmp (match-all)
          0 packets, 0 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: access-group 171
          Queueing
            Output Queue: Conversation 41
            Bandwidth 10 (%)
            Bandwidth 51 (kbps) Max Threshold 64 (packets)
            (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0

        Class-map: class-default (match-any)
          0 packets, 0 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: any

    Class-map: class-default (match-any)
      3300 packets, 346540 bytes
      5 minute offered rate 2000 bps, drop rate 0 bps
      Match: any
R7#

Would appreciate any help in this front.

Regards,
Pankaj K



This archive was generated by hypermail 2.1.4 : Sun Aug 01 2004 - 10:11:59 GMT-3