![]() |
QoS: Regulating Packet Flow Configuration Guide, Cisco IOS XE Release 3S
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Regulating Packet Flow Using Class-Based Traffic Shaping
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contents
Regulating Packet Flow on a Per-Class Basis Using Class-Based Traffic ShapingLast Updated: January 24, 2012
Packet flow on a network can be regulated using a traffic shaping mechanism. One such traffic shaping mechanism is a Cisco feature called Class-Based Traffic Shaping. Class-Based Traffic Shaping allows you to regulate the flow of packets (on a per-traffic-class basis) going out an interface, matching the packet flow to the speed of the interface. This module describes the concepts and tasks related to configuring Class-Based Traffic Shaping.
Finding Feature InformationYour software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Prerequisites for Configuring Class-Based Traffic ShapingA policy map and a class map must be created first using the Modular Quality of Service (QoS) Command-Line Interface (MQC). Restrictions for Configuring Class-Based Traffic ShapingClass-based traffic shaping applies to outbound traffic only. Class-based traffic shaping does not support the following commands:
Information About Class-Based Traffic Shaping
Class-Based Traffic-Shaping FunctionalityClass-based traffic shaping is a traffic-shaping mechanism (also known as a "traffic shaper"). A traffic shaper typically delays excess traffic using a buffer, or queueing mechanism, to hold packets and shape the flow when the data rate of the source is higher than expected. It holds and shapes traffic to a particular bit rate by using the token bucket mechanism. Class-based traffic shaping is the Cisco-recommended traffic-shaping mechanism. Using class-based traffic shaping, you can perform the following tasks:
Benefits of Class-Based Traffic ShapingAll of the benefits associated with traffic shaping also apply to Class-Based Traffic Shaping, but on a more granular level. For information about the benefits of traffic shaping, see the "Regulating Packet Flow Using Traffic Shaping" module. Hierarchical Policy Map Structure of Class-Based Traffic ShapingWith the class-based traffic shaping mechanism, traffic shaping can be configured in a hierarchical policy map structure; that is, traffic shaping is enabled in a primary-level (parent) policy map and other QoS features used with traffic shaping, such as class-based WFQ (CBWFQ) and traffic policing, can be enabled in a secondary-level (child) policy map. Traffic shaping is enabled by using the shape command (and specifying a rate) in a policy map. CBWFQ allows you to fine-tune the way traffic is placed in a queue. For instance, you can specify that all voice traffic be placed in a high-priority queue and all traffic from a specific class be placed in a lower-priority queue. If you want to use CBWFQ with the class-based traffic shaping mechanism a secondary-level (child) policy map must be created. This secondary-level (child) policy map is then used to configure CBWFQ by enabling the bandwidth command. The following sample configuration illustrates how the class-based traffic shaping mechanism is configured in a hierarchical policy map structure: enable configure terminal policy-map policy_parent ! This is the primary-level policy map. class class-default shape average 1000000 ! This enables traffic shaping. service-policy policy_child ! This associates the policy maps. With this configuration, WFQ is used as the default queueing mechanism for placing all the traffic in a queue. In the following secondary-level (child) policy map, the alternative queueing mechanism CBWFQ is configured: enable configure terminal policy-map policy_child ! This is the secondary-level policy map. class class-default bandwidth percent 50 ! This enables CBWFQ. How to Configure Class-Based Traffic ShapingTraffic shaping is configured in a policy map. Policy maps determine the specific quality of service (QoS) feature that will be applied to traffic on a network. In this module, the QoS feature being applied is traffic shaping.Traffic shaping is configured in the primary-level (parent) policy map in the hierarchy. In the secondary-level (child) policy map, additional QoS features used with traffic shaping (for example, CBWFQ and traffic policing) are typically configured.
Configuring Class-Based Traffic Shaping in a Primary-Level Policy MapBefore You Begin
SUMMARY STEPS
Before configuring traffic shaping, you must use the MQC to create a policy map and a class map. DETAILED STEPS
Configuring the Secondary-Level Policy MapSUMMARY STEPS
DETAILED STEPS
Configuration Examples for Class-Based Traffic ShapingExample Class-Based Traffic Shaping ConfigurationThe following is an example of Class-Based Traffic Shaping configured in a hierarchical policy map structure. In this example, two policy maps have been created; the primary-level (parent) policy map called "policy_parent," and a secondary-level (child) policy map called "policy_child." Traffic shaping is configured in the policy_parent policy map, and CBWFQ has been configured in the policy_child policy map. The service-policy command associates the two policy maps in the hierarchical policy map structure. enable configure terminal policy-map policy_parent class class-default shape average 1000000 ! This enables traffic shaping. service-policy policy_child ! This associates the policy maps. exit exit policy-map policy_child class class-default bandwidth percent 50 ! This enables CBWFQ. end Additional ReferencesRelated Documents
MIBsTechnical Assistance
Feature Information for Class-Based Traffic ShapingThe following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at www.cisco.com/go/trademarks. Third party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1005R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. © 2012 Cisco Systems, Inc. All rights reserved.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|