In my previous post in this series I covered the difference between Shape Average, Shape Peak and Shape with no Excess. Now that that’s out of the way, let’s get down to configuration examples. I’ll use similar specifications to the ones I used last time:
- CIR = 512kbps (512,000 bps)
- Bc = 5,120 bps
- Tc = 10ms (0.001 seconds)
- Be = 5,120 bps for Shape Average and Shape Peak. (Shaping with no Excess will be covered in my next post).
Shape Average
Below is a basic Shape Average policy map with a 512kb shaper applied.
R1(config)#policy-map ShapeAverage-512k R1(config-pmap)# class class-default R1(config-pmap-c)#shape average 512000 R1(config-pmap-c)#interface fa0/0 R1(config-if)#service-policy output ShapeAverage-512k R1(config-if)#do sh policy-map int f0/0 FastEthernet0/0 Service-policy output: ShapeAverage-512k Class-map: class-default (match-any) 0 packets, 0 bytes 5 minute offered rate 0 bps, drop rate 0 bps Match: any 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