shape peak and shape average confusion

From: Huan Pham (Huan.Pham@peopletelecom.com.au)
Date: Mon Jun 30 2008 - 00:31:53 ART


I am not sure about using shape peak command. Appreciate if someone can
share some clarification.

The most confusing fact is that if you configure "shape peak 512000",
without optional Bc and Be parrameters (i.e. using default), you are
actually allow traffic to burst to 1024K (double the configured rate).

R5#
!
policy-map SHAPE
 class WEB
  shape peak 512000

int s0/0
 service-policy output SHAPE

R5# sh policy-map int s0/0

 Serial0/0

  Service-policy output: SHAPE

    Class-map: WEB (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: protocol http
      Traffic Shaping
           Target/Average Byte Sustain Excess Interval
Increment
             Rate Limit bits/int bits/int (ms) (bytes)

          1024000/512000 3200 12800 12800 25 3200

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

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

So how will you best answer this question?

Assign WEB traffic the minimum of 128K, and allow it to peak at 512K.



This archive was generated by hypermail 2.1.4 : Tue Jul 01 2008 - 06:23:23 ART