ModificationRelease
The units argument was added to allow specifying the units of the thresholds.
The discard-value min-threshold max-threshold arguments were deleted from
the no random-detect discard-class command.
Release 3.4.0
The discard-value argument can accept up to eight values separated by commas.
Release 3.6.0
For the random-detect discard-class command to take effect, there is no longer
a requirement to configure the shape average, bandwidth (QoS), or bandwidth
remaining commands in the user-defined policy map class.
Release 3.9.0
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
WRED is a congestion avoidance mechanism that slows traffic by randomly dropping packets when congestion
exists. WRED is most useful with protocols like TCP that respond to dropped packets by decreasing the
transmission rate.
When you configure the random-detect discard-class command on an interface, packets are given preferential
treatment based on the discard class of the packet.
When the value of the units argument is packets, packets are assumed to be 256 bytes in size.
Task ID
OperationsTask ID
read, writeqos
Examples
The following example shows how to set the discard class values for discard class 3 to a minimum byte
threshold of 1000000 and a maximum byte threshold of 2000000:
RP/0/RP0/CPU0:router(config)# policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)# class class1
RP/0/RP0/CPU0:router(config-pmap-c)# random-detect discard-class 3 1000000 2000000
Related Commands
DescriptionCommand
Specifies the name of the class whose policy you want to create or
change.
class (policy-map), on page 10
Creates or modifies a policy map that can be attached to one or more
interfaces to specify a service policy.
policy-map, on page 67
Configures the Weighted Random Early Detection (WRED)
thresholds for packets with a particular IP precedence.
random-detect precedence, on page 90
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
82 OL-23235-03
Quality of Service Commands on the Cisco IOS XR Software
random-detect discard-class