wred dscp
Use wred dscp to set the lower limit, upper limit, and drop probability denominator for packets with a DSCP value.
Use undo wred dscp to delete the settings for a DSCP value.
Syntax
wred dscp dscp-value low-limit low-limit high-limit high-limit [ discard-probability discard-prob ]
undo wred dscp dscp-value
Default
The lower limit is 10, and the upper limit is 30.
Views
Traffic behavior view
Predefined user roles
network-admin
Parameters
dscp-value: Specifies a DSCP value in the range of 0 to 63. This argument can also be represented by using one of the keywords listed in Table 19.
low limit low-limit: Specifies the lower WRED limit (in packets) in the range of 1 to 1024.
high-limit high-limit: Specifies the upper WRED limit (in packets) in the range of 1 to 1024.
discard-probability discard-prob: Specifies the denominator for drop probability calculation, in the range of 1 to 255. The default is 10.
Usage guidelines
Before configuring this command, make sure DSCP-based WRED is enabled by using the wred command.
The wred dscp command configuration is deleted when the undo wred command is executed.
Removing the queue af or queue wfq command configuration also removes the WRED-related parameters.
Examples
# Set the following parameters for packets with DSCP value 3: lower limit 20, upper limit 40, and drop probability denominator 15.
<Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] queue wfq [Sysname-behavior-database] wred dscp [Sysname-behavior-database] wred dscp 3 low-limit 20 high-limit 40 discard-probability 15
Related commands
queue af
queue wfq
wred