9-21
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 9 Shaping Traffic
Configuration Examples for Traffic Shaping
Configuration Examples for Traffic Shaping
This section provides the following sample configurations for traffic shaping:
•
Configuration Example for Class-Based Shaping, page 9-21
•
Configuration Examples for Hierarchical Shaping, page 9-21
Configuration Example for Class-Based Shaping
Example 9-6
defines one class named c1, which is configured to shape traffic to 384 kbps with a normal
burst size of 15,440 bits.
Example 9-6
Configuring Class-Based Shaping
policy-map shape
class c1
shape average 38400 15440
!
interface serial 3/3/0
service-policy output shape
Note
The
shape average
command is available only on the PRE3. The PRE2 supports the
shape
cir
command.
Configuration Examples for Hierarchical Shaping
Example 9-7
shows how to configure hierarchical shaping. In this example, the total VC bandwidth (the
sum of SCR) is above the tunnel rate. The PVP is configured with a PCR of 1000 kbps and is
oversubscribed by the total rate of the VCs (2 VCs at 256 kbps and 2 VCs at 512 kbps). The
queue-depth
command ensures the correct shaping.
Example 9-7
Configuring Hierarchical Shaping
interface ATM5/0/0
no ip address
no ip mroute-cache
atm over-subscription-factor 50
atm pvp 1 1000 cdvt 600
no atm auto-configuration
no atm ilmi-keepalive
no atm address-registration
no atm ilmi-enable
!
interface ATM5/0/0.1 point-to-point
pvc 1/33
vbr-nrt 1000 256
encapsulation aal5mux ppp Virtual-Template1
queue-depth 288 256
!
!
interface ATM5/0/0.2 point-to-point
pvc 1/34
vbr-nrt 1000 256
encapsulation aal5mux ppp Virtual-Template1
queue-depth 288 256