random-detect discard-class
To configure the Weighted Random Early Detection (WRED) thresholds for packets with a specific discard
class value, use the random-detect discard-class command in policy map class configuration mode. To
return the thresholds to the default for the discard class, use the no form of this command.
random-detect discard-class discard-value min-threshold [ units ] max-threshold [ units ]
no random-detect discard-class discard-value min-threshold [ units ] max-threshold [ units ]
Syntax Description
Discard class value. Valid values are from 0 to 7. Up to eight values can be entered
separated by commas.
discard-value
Minimum threshold in number of packets. The value range of this argument is from
0 to 1073741823 in bytes.
min-threshold
Maximum threshold in number of packets. The value range of this argument is
from the value of the min-threshold argument to 1073741823. When the average
queue length exceeds the maximum threshold, WRED drops all packets with the
specified discard class value.
max-threshold
(Optional) Units for the threshold values. Values can be:
• bytes—bytes
• gbytes—gigabytes
• kbytes—kilobytes
• mbytes—megabytes
• ms—milliseconds
• packets—packets (default)
• us—microseconds
units
Command Default
Default unit for max-threshold and min-threshold is packets .
Command Modes
Policy map class configuration
Command History
ModificationRelease
This command was introduced.Release 2.0
Range of values for the thresholds changed from 512 to 1073741823 to 0 to
1073741823.
Release 3.2
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
OL-23235-03 81
Quality of Service Commands on the Cisco IOS XR Software
random-detect discard-class