QoS: Classification Configuration Guide, Cisco IOS XE Release 3S(Cisco ASR 1000)
Class Based Ethernet CoS Matching and Marking (802.1p and ISL CoS)
Class-Based Ethernet CoS Matching and Marking
Last Updated: November 26, 2012
The Class-Based Ethernet CoS Matching and Marking (801.1p and ISL CoS) feature allows you to mark and match packets using Class of Service (CoS) values.
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and 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 module.
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 Class-Based Ethernet CoS Matching and Marking
When configuring this feature, you must first create a policy map (sometimes referred to as a service policy or a traffic policy) using the Modular QoS Command-Line Interface (CLI) (MQC). Therefore, you should be familiar with the procedure for creating a policy map using the MQC.
For more information about creating a policy map (traffic policy) using the MQC, see the "Applying QoS Features Using the MQC" module.
Information About Class-Based Ethernet CoS Matching and Marking
Layer 2 CoS Values
Layer 2 (L2) Class of Service (CoS) values are relevant for IEEE 802.1Q and Interswitch Link (ISL) types of frames. The Class-based Ethernet CoS Matching and Marking feature extends Cisco software capabilities to match packets by looking at the CoS value of the packet and marking packets with user-defined CoS values. This feature can be used for L2 CoS to L3 Terms of Service (TOS) mapping. CoS matching and marking can be configured via the Cisco Modular QoS CLI framework.
How to Configure Class-Based Ethernet CoS Matching and Marking
Configuring Class-Based Ethernet CoS Matching
In the following task, classes named voice and video-and-data are created to classify traffic based on the CoS values. The classes are configured in the CoS-based-treatment policy map, and the service policy is attached to all packets leaving Gigabit Ethernet interface 1/0/1.
Configuring Class-Based Ethernet CoS Marking
In the following task, the policy map called cos-set is created to assign different CoS values for different types of traffic.
Configuration Examples for Class-Based Ethernet CoS Matching and Marking
Example: Configuring Class-Based Ethernet CoS Matching
This example creates two classes, voice and video-and-data, to classify traffic based on the CoS values. The CoS-based-treatment policy map is used to set priority and bandwidth values for the classes. The service policy is attached to all packets leaving interface Gigabit Ethernet1/0/1.
Device(config)# class-map voice Device(config-cmap)# match cos 7 Device(config-cmap)# exit Device(config)# class-map video-and-data Device(config-cmap)# match cos 5 Device(config-cmap)# exit Device(config)# policy-map cos-based-treatment Device(config-pmap)# class voice Device(config-pmap-c)# priority level 1 Device(config-pmap-c)# exit Device(config-pmap)# class video-and-data Device(config-pmap-c)# bandwidth remaining percent 20 Device(config-pmap-c)# exit Device(config-pmap)# exit Device(config)# interface gigabitethernet1/0/1 Device(config-if)# service-policy output cos-based-treatment
Example: Class-Based Ethernet CoS Marking
Additional References for Class-Based Ethernet CoS Matching and Marking
Feature Information for Class-Based Ethernet CoS Matching & Marking
The 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.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: 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. (1110R)
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.