595
Configuring QoS
QoS Treatment for Performance-Monitoring Protocols
This example shows how to configure a policy map that shapes a port to 90 Mbps, allocated according 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 also supports
parent
policy levels and
child
policy levels for traffic shaping. 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 can specific only one class 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 queue 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
Class-Based Weighted Fair Queuing
You can configure class-based weighted fair queuing (CBWFQ) to set the relative precedence of a queue by allocating
a portion of the total bandwidth that is available for the port. You use the
bandwidth
policy-map class configuration
command to set the output bandwidth for a class of traffic as a rate (kilobits per second), a percentage of total
bandwidth, or a percentage of remaining bandwidth.
Note:
When you configure bandwidth in a policy map, you must configure all rates in the same format, either a configured
rate or a percentage. The total of the minimum bandwidth guarantees (CIR) for each queue of the policy cannot exceed
the total speed of the parent.
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...