30-20
Cisco ME 3400 EthernetAccess Switch SoftwareConfiguration Guide
78-17058-01
Chapter30 Co nf iguring QoS
Understanding QoS
Port Shaping
To configure port shaping (a transmit port shaper), create a policy map that cont ains only a default class,
and use the shape average command to specify the maximum bandwidth for a port.
This example shows how to configure a policy map that shapes a port to 90 M bps, al loca te d ac cordi ng
to the out-policy policy map configured in the previous example. The service-policy policy map class
command is used to create a child policy to the parent:
Switch(config)# policy-map out-policy-parent
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# shape average 90000000
Switch(config-pmap-c)# service-policy out-policy
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface fastethernet0/1
Switch(config-if)# service-policy output out-policy-parent
Switch(config-if)# exit
Parent-Child Hierarchy
The switch supports two policy levels: a parent level and a child level. The QoS parent-child structure
is used for specific purposes where a child policy is referenced in a parent policy to provide additional
control of a specific traffic type.
The first policy level, the parent level, is used for port shaping, and you ca n s peci fic only one cla ss of
type class-default within the policy. This is an example of a parent-level policy map:
Switch(config)# policy-map parent
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# shape average 50000000
Switch(config-pmap-c)# exit
The second policy level, the child level, is used to control a specific traffic stream or class, as in this
example:
Switch(config)# policy-map child
Switch(config-pmap)# class class1
Switch(config-pmap-c)# priority
Switch(config-pmap-c)# exit
Note The total of the minimum bandwidth guarantees (CIR) for each q ueue of the child policy cannot exceed
the total port-shape rate.
This is an example of a parent-child configuration:
Switch(config)# policy-map parent
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# shape average 50000000
Switch(config-pmap-c)# service-policy child
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface fastethernet0/1
Switch(config-if)# service-policy output parent
Switch(config-if)# exit