color
Function
The color command sets parameters of a WRED drop file, including the upper drop threshold, lower drop threshold, and maximum drop probability.
The undo color command restores the default settings of a WRED drop profile.
By default, the upper drop threshold, lower drop threshold, and maximum drop probability of a WRED drop profile are all 100.
ACU2 do not support this command.
Format
color { green | non-tcp | red | yellow } low-limit low-limit-percentage high-limit high-limit-percentage discard-percentage discard-percentage
undo color { green | non-tcp | red | yellow }
Parameters
Parameter |
Description |
Value |
---|---|---|
green |
Sets WRED parameters for green packets. |
- |
non-tcp |
Sets WRED parameters for non-TCP packets. |
- |
red |
Sets WRED parameters for red packets. |
- |
yellow |
Sets WRED parameters for yellow packets. |
- |
low-limit low-limit-percentage |
Specifies the lower drop threshold. When the percentage of the packet count in a queue to the queue length reaches this value, packets start to be discarded. |
The value is an integer that ranges from 0 to 100, in percentage. The default value is 100. |
high-limit high-limit-percentage |
Specifies the upper drop threshold. When the percentage of the packet count in a queue to the queue length reaches this value, all subsequent packets are discarded. |
The value is an integer that ranges from low-limit-percentage to 100, in percentage. The default value is 100. |
discard-percentage discard-percentage |
Specifies the maximum drop probability. |
The value is an integer that ranges from 1 to 100, in percentage. The default value is 100. |
Usage Guidelines
Usage Scenario
- When the queue length reaches the lower drop threshold, some packets are discarded.
- When the queue length reaches the upper drop threshold, all subsequent packets to the queue are discarded.
When congestion occurs, packets with the highest drop probability are discarded first.
Precautions
If you run the color command multiple times in the same drop profile view, only the latest configuration takes effect.
Example
# Configure WRED drop profile wred1 in which the lower drop threshold, upper drop threshold, and maximum drop probability of green packets are set to 80, 100, and 10 for green packets, to 60, 80, and 20 for yellow packets, and to 40, 60, and 40 for red packets.
<AC6605> system-view [AC6605] drop-profile wred1 [AC6605-drop-profile-wred1] color green low-limit 80 high-limit 100 discard-percentage 10 [AC6605-drop-profile-wred1] color yellow low-limit 60 high-limit 80 discard-percentage 20 [AC6605-drop-profile-wred1] color red low-limit 40 high-limit 60 discard-percentage 40