Previous Topic

Next Topic

Book Contents

Class of Service (CoS) Commands

This section describes the commands you use to configure and view Class of Service (CoS) settings for the switch. The commands in this section allow you to control the priority and transmission rate of traffic.

NOTE: Commands you issue in the Interface Config mode only affect a single interface. Commands you issue in the Global Config mode affect all interfaces.

classofservice dot1p-mapping

This command maps an 802.1p priority to an internal traffic class. The <userpriority> values can range from 0-7. The <trafficclass> values range from 0-7. For more information about 802.1p priority, see Provisioning (IEEE 802.1p) Commands.

Note: This command is executed only when classofservice trust is not untrusted.Preferably the classofservices trust dot1p should be set.

no classofservice dot1p-mapping

This command maps each 802.1p priority to its default internal traffic class value.

classofservice ip-dscp-mapping

This command maps an IP DSCP value to an internal traffic class. The <ipdscp> value is specified as either an integer from 0 to 63, or symbolically through one of the following keywords: af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, be, cs0, cs1, cs2, cs3, cs4, cs5, cs6, cs7, ef. The <trafficclass> values can range from 0-7, although the actual number of available traffic classes depends on the platform.

no classofservice ip-dscp-mapping

This command maps each IP DSCP value to its default internal traffic class value.

classofservice trust

This command sets the class of service trust mode of an interface. You can set the mode to trust one of the Dot1p (802.1p) or IP DSCP packet markings. You can also set the interface mode to untrusted. If you configure an interface to use Dot1p, the mode does not appear in the output of the show running config command because Dot1p is the default.

NOTE: Use the no classofservice trust command to set the mode to the default value.

no classofservice trust

This command sets the interface mode to the default value.

cos-queue min-bandwidth

This command specifies the minimum transmission bandwidth guarantee for each interface queue. The total number of queues supported per interface is platform specific. A value from 0-100 (percentage of respective port capacity) must be specified for each supported queue, with 0 indicating no guaranteed minimum bandwidth. The sum of all values entered must not exceed 100.

no cos-queue min-bandwidth

This command restores the default for each queue's minimum bandwidth value.

cos-queue random-detect

This command activates weighted random early discard (WRED) for each specified queue on the interface. Specific WRED parameters are configured using the random-detect queue-parms and the random-detect exponential-weighting-constant commands.

When specified in Interface Config mode, this command affects a single interface only, whereas in Global Config mode, it applies to all interfaces. At least one, but no more than n, queue-id values are specified with this command. Duplicate queue-id values are ignored. Each queue-id value ranges from 0 to (n-1), where n is the total number of queues supported per interface. The number n is platform dependent and corresponds to the number of supported queues (traffic classes).

no cos-queue random-detect

Use this command to disable WRED, thereby restoring the default tail drop operation for the specified queues on the interface.

cos-queue strict

This command activates the strict priority scheduler mode for each specified queue.

no cos-queue strict

This command restores the default weighted scheduler mode for each specified queue.

random-detect

This command is used to enable WRED for the interface/global as a whole, and is only available when per-queue WRED activation control is not supported by the device Specific WRED parameters are configured using the random-detect queue-parms and the random-detect exponential-weighting-constant commands.

When specified in Interface Config mode, this command affects a single interface only, whereas in Global Config mode, it applies to all interfaces. The Interface Config mode command is only available on platforms that support independent per-port class of service queue configuration.

no random-detect

Use this command to disable WRED, thereby restoring the default tail drop operation for all queues on the interface.

random-detect exponential weighting-constant

This command is used to configure the WRED decay exponent for a CoS queue interface/global.

random-detect queue-parms

This command is used to configure WRED parameters for each drop precedence level supported by a queue. It is used only when per-COS queue configuration is enabled (using the cos-queue random-detect command).

Each parameter is specified for each possible drop precedence (color of TCP traffic). The last precedence applies to all non-TCP traffic. For example, in a 3-color system, four of each parameter specified: green TCP, yellow TCP, red TCP, and non-TCP, respectively

no random-detect queue-parms

Use this command to set the WRED configuration back to the default.

traffic-shape

This command specifies the maximum transmission bandwidth limit for the interface as a whole. Also known as rate shaping, traffic shaping has the effect of smoothing temporary traffic bursts over time so that the transmitted traffic rate is bounded.

no traffic-shape

This command restores the interface shaping rate to the default value.

show classofservice dot1p-mapping

This command displays the current Dot1p (802.1p) priority mapping to internal traffic classes for a specific interface. The <unit/slot/port> parameter is optional. If specified, the 802.1p mapping table of the interface is displayed. If omitted, the most recent global configuration settings are displayed. For more information, see Provisioning (IEEE 802.1p) Commands.

The display parameters for above command are:

show classofservice ip-precedence-mapping

This command displays the current IP Precedence mapping to internal traffic classes for a specific interface. The unit/slot/port parameter is optional. If specified, the IP Precedence mapping table of the interface is displayed. If omitted, the most recent global configuration settings are displayed.

The display parameters for above command are:

show classofservice ip-dscp-mapping

This command displays the current IP DSCP mapping to internal traffic classes for the global configuration settings.

The display parameters for above command are:

show classofservice trust

This command displays the current trust mode setting for a specific interface. The <unit/slot/ port> parameter is optional. If you specify an interface, the command displays the port trust mode of the interface. If you do not specify an interface, the command displays the most recent global configuration settings.

The display parameters for above command are:

show interfaces cos-queue

This command displays the class-of-service queue configuration for the specified interface. The unit/slot/port parameter is optional. If specified, the class-of-service queue configuration of the interface is displayed. If omitted, the most recent global configuration settings are displayed.

The display parameters for above command are:

If you specify the interface, the command also displays the following information.

show interfaces random-detect

This command displays the global WRED settings for each CoS queue. If you specify the slot/port, the command displays the WRED settings for each CoS queue on the specified interface.

The display parameters for above command are:

See also

Quality of Service Commands

Differentiated Services (DiffServ) Commands

DiffServ Class Commands

DiffServ Policy Commands

DiffServ Service Commands

DiffServ Show Commands

MAC Access Control List (ACL) Commands

IP Access Control List (ACL) Commands

Time Range Commands for Time-Based ACLs

Auto-Voice over IP Commands

iSCSI Optimization Commands