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.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...