![]() |
||||||||||||||
Quality of Service Packet Marking
![]() |
||||||||||||||
Table of ContentsQuality of Service Packet MarkingFeature Overview Supported Platforms Supported Standards, MIBs, and RFCs Prerequisites Configuration Tasks Monitoring and Maintaining Quality of Service Packet Marking Configuration Examples Command Reference set ip dscp set ip precedence set qos-group Glossary Quality of Service Packet MarkingThis document describes the Quality of Service (QoS) Packet Marking feature. It includes information on the benefits of the new feature, supported platforms, related documents, and so on. This document includes the following sections: Feature OverviewThe QoS Packet Marking feature provides users with a user-friendly command-line interface for efficient packet marking by which users can differentiate packets by designating them different identifying values. The QoS Packet Marking feature allows users to perform the following tasks: After setting the IP precedence bits or the IP DSCP, a user can classify a packet based on the IP precedence bit or IP DSCP value. These classifications are then used to apply user-defined differentiated QoS services to the packet. Associating a packet with a local QoS group allows users to associate a group ID with a packet. The group ID can be used to classify packets into QoS groups based on prefix, autonomous system, and community string. A user can assign up to 8 IP precedence markings, 64 IP DSCP markings, and 100 QoS group markings. The QoS Packet Marking feature is configured with the Modular Quality of Service Command-Line Interface (Modular QoS CLI). For additional information on the Modular QoS CLI, see the Modular Quality of Service Command-Line Interface document on CCO and the Documentation CD-ROM. BenefitsPacket Marking Through IP Precedence, QoS Group, and DSCP Value SettingPacket marking allows you to partition your network into multiple priority levels or classes of service (CoS).
Restrictions
Related Features and TechnologiesRelated DocumentsSupported PlatformsSupported Standards, MIBs, and RFCsStandardsMIBsFor descriptions of supported MIBs and how to use MIBs, see the Cisco MIB web site on CCO at http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml. RFCsPrerequisitesCisco Express Forwarding (CEF) must be configured on the interface before QoS packet marking can be used. For additional information on Cisco Express Forwarding, see the Cisco Express Forwarding and Distributed Cisco Express Forwarding feature modules. Configuration TasksSee the following sections for configuration tasks for the QoS Packet Marking feature. Configuring an IP Precedence ValueTo mark a packet by setting the IP precedence bit in the Type of Service (ToS) byte, perform the following tasks: This command is applied while creating a service policy in policy map configuration mode. This service policy is not yet attached to an interface. For information on attaching a service policy to an interface, see the Modular Quality of Service Command-Line Interface document. Configuring an IP DSCP ValueTo mark a packet by setting the IP differentiated services code point (DSCP), perform the following tasks: This command is applied while creating a service policy in policy map configuration mode. This service policy is not yet attached to an interface. For information on attaching a service policy to an interface, see the Modular Quality of Service Command-Line Interface document. Configuring a QoS Group ValueTo associate a local Quality of Service group value with a packet, perform the following steps: This command is applied while creating a service policy in policy map configuration mode. This service policy is not yet attached to an interface. For information on attaching a service policy to an interface, see the Modular Quality of Service Command-Line Interface document. Monitoring and Maintaining Quality of Service Packet MarkingUse the show policy-map [interface [interface-spec [input | output [class class-name]]]] command to display the configuration of a policy map and to retrieve information regarding QoS packet marking features that are configured in policy map configuration mode. Configuration ExamplesThis section provides the following configuration examples: Configuring an IP Precedence ValueIn the following example, a service policy called policy1 is created. This service policy is associated to a previously defined classification policy through the use of the class command. This example assumes that a classification policy called class1 was previously configured. In this example, the IP precedence bit in the ToS byte is set to 3. This command is applied while creating a service policy in policy map configuration mode. This service policy is not yet attached to an interface. For information on attaching a service policy to an interface, see the Modular Quality of Service Command-Line Interface document. Configuring an IP DSCP ValueIn the following example, a service policy called policy1 is created. This service policy is associated to a previously defined classification policy through the use of the class command. This example assumes that a classification policy called class1 was previously configured. In the following example, the IP DSCP in the ToS byte is set to 5. This command is applied while creating a service policy in policy map configuration mode. This service policy is not yet attached to an interface. For information on attaching a service policy to an interface, see the Modular Quality of Service Command-Line Interface document. Configuring a QoS Group ValueIn the following example, a service policy called policy1 is created. This service policy is associated to a previously defined classification policy through the use of the class command. This example assumes that a classification policy called class1 was previously configured. In the following example, the QoS group value is set to 4. This command is applied while creating a service policy in policy map configuration mode. This service policy is not yet attached to an interface. For information on attaching a service policy to an interface, see the Modular Quality of Service Command-Line Interface document. Command ReferenceThis section documents new or modified commands. All other commands used with this feature are documented in the Cisco IOS Release 12.1 command reference publications. set ip dscpTo mark a packet by setting the IP differentiated services code point (DSCP) in the Type of Service byte, use the set ip dscp policy map configuration command. To remove a previously set IP DSCP value, use the no form of this command.
Syntax Description Defaults No default behavior or values. Command Modes Command History Usage Guidelines Once the IP DSCP bit is set, other QoS services can then operate on the bit settings. The network gives priority (or some type of expedited handling) to marked traffic. Typically, you set IP precedence at the edge of the network (or administrative domain) and have queueing act on it thereafter. Weighted Fair Queueing (WFQ) can speed up handling for high-precedence traffic at congestion points. Weighted random early detection (WRED) ensures that high-precedence traffic has lower loss rates than other traffic during times of congestion. Examples In the following example, the IP DSCP Type of Service byte is set to 8 in the policy map named policy1: All packets that satisfy the match criteria of class1 are marked with the IP DSCP value of 8. How packets marked with the IP DSCP value of 8 are treated is determined by the network configuration. This command is applied while creating a service policy in policy map configuration mode. This service policy is not yet attached to an interface. For information on attaching a service policy to an interface, see the Modular Quality of Service Command-Line Interface document. Related Commands set ip precedenceTo set the precedence value in the IP header, use the set ip precedence policy map configuration command. To leave the precedence value alone, use the no form of this command.
Syntax Description Defaults This command is disabled by default. Command Modes Command History
Usage Guidelines Once the IP precedence bits are set, other QoS services such as weighted fair queueing (WFQ) and weighted random early detection (WRED) then operate on the bit settings. The network gives priority (or some type of expedited handling) to marked traffic through the application of WFQ or WRED at points downstream in the network. Typically, you set IP precedence at the edge of the network (or administrative domain) and have queueing act on it thereafter. WFQ can speed up handling for certain precedence traffic at congestion points. WRED can ensure that certain precedence traffic has lower loss rates than other traffic during times of congestion. Examples The following example sets the IP precedence to 5 for packets that satisfy the match criteria of class map class1: All packets that satisfy the match criteria of class1 are marked with the IP precedence value of 5. How packets marked with the IP precedence value of 5 are treated is determined by the network configuration. This command is applied while creating a service policy in policy map configuration mode. This service policy is not yet attached to an interface. For information on attaching a service policy to an interface, see the Modular Quality of Service Command-Line Interface document. Related Commands set qos-groupTo set a group ID that can be used later to classify packets, use the set ip qos-group policy map configuration command. To remove the group ID, use the no form of this command.
Syntax Description Defaults This command is disabled by default. No group ID is specified. Command Modes Command History
Usage Guidelines This command allows you to associate a group ID with a packet. The group ID can be used later to classify packets into QoS groups based on prefix, autonomous system, and community string. To display QoS group information, use the show ip cef command. Examples The following example sets the QoS group to 1 for all packets that match the class 1 class map. These packets are then rate limited based on the QoS group ID. This command is applied while creating a service policy in policy map configuration mode. This service policy is not yet attached to an interface. For information on attaching a service policy to an interface, see the Modular Quality of Service Command-Line Interface document. Related Commands GlossaryCEFCisco Express Forwarding. An advanced Layer 3 IP switching technology that optimizes network performance and scalability for networks with large and dynamic traffic patterns, such as the Internet, on networks characterized by intensive Web-based applications, or interactive sessions. DSCPdifferentiated services code point. WREDWeighted Random Early Detection. A congestion avoidance mechanism that drops packets selectively based on IP precedence. QoSThe performance of a transmission across a network. To ensure that receivers get the quality they expect---a video image that is smooth rather than choppy, for example---various strategies have been developed that enable routers to give preference to one set of packets over others that arrive at the routers at the same moment. These strategies are known as Quality of Service features. QoS groupInternal QoS group ID for a packet used to determine weighted fair queuing characteristics for that packet. Traffic PolicingRate limit, conform actions, and exceed actions that apply to traffic matching a certain criteria. Modular QoS CLIModular Quality of Service Command-Line Interface. A CLI used to configure QoS that allows users to specify a traffic class independently of QoS policies. WFQWeighted Fair Queueing. Congestion management algorithm that identifies conversations (in the form of traffic streams), separates packets that belong to each conversation, and ensures that capacity is shared fairly between these individual conversations. WFQ is an automatic way of stabilizing network behavior during congestion and results in increased performance and reduced retransmission.
|
||||||||||||||