Configuring WRED Templates

Configure the lower percentage threshold, upper percentage threshold, and discarding probability for packets of different colors in WRED templates.

Context

With a WRED template, you can set the parameters for processing packets of three colors, that is, red, yellow, and green. Generally, green packets have the smallest discarding probability and the highest thresholds (both lower and higher); yellow packets have the medium discarding probability and thresholds; the red packets have the highest discarding probability and the lowest thresholds.

By configuring a WRED template, you can set the upper threshold, lower threshold, and discarding probability for queues.

  • When the length of a queue is below the lower percentage threshold, no packet is dropped.

  • When the length of a queue is between the lower and upper percentage thresholds, incoming packets are dropped randomly. The longer the queue, the higher the discarding probability.

  • When the length of a queue exceeds the upper percentage threshold, all the incoming packets are dropped.

You can configure limits and discarding probability for packets of every color.

  • If you do not configure a port-wred object, the system uses the default tail-drop policy.

  • You can configure the smallest upper and lower percentage thresholds for the queue containing red packets, medium upper and lower percentage thresholds for the queue containing yellow packets, and the highest upper and lower percentage thresholds for the queue containing green packets.

  • In actual configurations, it is recommended that the lower percentage threshold for WRED start from 50%, with the thresholds for packets of different colors being adjusted accordingly. The recommended discarding probability is 100%.

Do as follows on the router:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run port-wred port-wred-name

    A WRED profile is created, and the WRED profile view is displayed.

  3. Run color { green | yellow | red } low-limit low-limit-percentage high-limit high-limit-percentage discard-percentage discard-percentage

    The lower drop threshold, upper drop threshold, and drop probability are set for packets of different colors.

  4. (Optional) Run queue-depth queue-depth-value

    The depth of a port queue is adjusted.

  5. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >