set discard-class
To set the discard class and Quality of Service (QoS) group identifiers on IP Version 4 (IPv4) or Multiprotocol
Label Switching (MPLS) packets, use the
set discard-class
command in policy map class configuration
mode. To leave the discard-class values unchanged, use the
no
form of this command.
set discard-class discard-class-value
no set discard-class discard-class-value
Syntax Description
Discard class ID. An integer 0 to 1, to be marked on the packet.
discard-class-value
Command Default
No default behavior or values
Command Modes
Policy map class configuration
Command History
Modification
Release
This command was introduced.
Release 6.0
Usage Guidelines
The
set discard-class
command associates a discard class ID with a packet. After the discard class is set,
other QoS services such as Weighted Random Early Detection (WRED) can operate on the bit settings.
Discard-class indicates the discard portion of the per hop behavior (PHB). The
set discard-class
command
is typically used in Pipe mode. Discard-class is required when the input PHB marking is used to classify
packets on the output interface.
The
set discard-class
command is supported only in the ingress direction.Unconditional discard-class
marking is supported.
The discard-class values can be used to specify the type of traffic that is dropped when there is congestion.
1.
Marking of the discard class has only local significance on a node.
2.
Discard class cannot be associated with a QoS profile in peering mode.
Note
Task ID
Operations
Task
ID
read,
write
qos
Examples
This example shows how to set the discard class value to 1 for packets that match the MPLS
experimental bits 1:
RP/0/RP0/CPU0:router(config)#
class-map cust1
RP/0/RP0/CPU0:router(config-cmap)#
match mpls experimental topmost 1
Modular QoS Command Reference for Cisco NCS 5500 Series and Cisco NCS 540 Series Routers
31
QoS Classification Commands
set discard-class