match dscp

To identify specific differentiated services code point (DSCP) values as a match criteria, use the match dscp command. To remove specified DSCP values as a match criteria, use the no form of this command.

match [ not ] dscp dscp-list

no match [ not ] dscp dscp-list

Syntax Description

not
(Optional) Negates the specified match result.
dscp-list
Specified DSCP value or list of DSCP values. See Standard DSCP Values below for a list of valid DSCP values.

Command Default

None

Command Modes

Class-map type qos configuration

Command History

Release
Modification
4.1(3)N1(1)
This command was introduced.

Usage Guidelines

The standard DSCP values are shown below.

Standard DSCP Values
DSCP Value
Description
af11
AF11 dscp (001010)—decimal value 10
af12
AF12 dscp (001100)—decimal value 12
af13
AF13 dscp (001110)—decimal value 14
af21
AF21 dscp (010010)—decimal value 18
af22
AF22 dscp (010100)—decimal value 20
af23
AF23 dscp (010110)—decimal value 22
af31
AF31 dscp (011010)—decimal value 26
af32
AF40 dscp (011100)—decimal value 28
af33
AF33 dscp (011110)—decimal value 30
af41
AF41 dscp (100010)—decimal value 34
af42
AF42 dscp (100100)—decimal value 36
af43
AF43 dscp (100110)—decimal value 38
cs1
CS1 (precedence 1) dscp (001000)—decimal value 8
cs2
CS2 (precedence 2) dscp (010000)—decimal value 16
cs3
CS3 (precedence 3) dscp (011000)—decimal value 24
cs4
CS4 (precedence 4) dscp (100000)—decimal value 32
cs5
CS5 (precedence 5) dscp (101000)—decimal value 40
cs6
CS6 (precedence 6) dscp (110000)—decimal value 48
cs7
CS7 (precedence 7) dscp (111000)—decimal value 56
default
Default dscp (000000)—decimal value 0
ef
EF dscp (101110)—decimal value 46

To specify a list of values, use one of the following options:

Examples

This example shows how to match on DSCP value af21:

switch(config)# class-map my_test
switch(config-cmap-qos)# match dscp af21
 

Related Commands

Command
Description
show class-map
Displays class maps.