home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Configure the WRED algorithm on an individual profile queue

An example of how to configure the WRED algorithm thresholds in packets, and then configure a profile queue to randomly drop packets when the queue is active.

Note: It is possible to configure each profile queue with up to three different settings of the WRED algorithm, where each setting processes a set of packets with particular DSCP values.
  1. Configure a DSCP group. This group may contain multiple DSCP values.
    user@system# set resources group dscp-group group-1 dscp 0
  2. Determine which profile queue you will configure with the WRED algorithm. Then assign this profile queue to a traffic class.
    user@system# set policy qos name policy-2 shaper profile profile-2 queue 0 traffic-class 0
  3. Map the DSCP group that you defined earlier — group-1 — to queue 0.
    user@system# set policy qos name policy-2 shaper profile-2 map dscp-group group-1 to 0
  4. Configure the mark-probability attribute of the WRED algorithm for DSCP group group-1.
    user@system# set policy qos name policy-2 shaper profile profile-2 queue 0 wred-map dscp-group group-1 mark-probability 32
  5. Configure the max-threshold attribute, in packets, of the WRED algorithm for DSCP group group-1.
    user@system# set policy qos name policy-2 shaper profile profile-2 queue 0 wred-map dscp-group group-1 max-threshold 36
  6. Configure the min-threshold attribute, in packets, for DSCP group group-1.
    user@system# set policy qos name policy-2 shaper profile profile-2 queue 0 wred-map dscp-group group-1 min-threshold 16
  7. Configure the filter-weight attribute for the WRED algorithm for queue 0. This attribute is common to all DSCP groups on this queue.
    user@system# set policy qos name policy-2 shaper profile profile-2 queue 0 wred-map filter-weight 5
You have configured the WRED algorithm in packets on queue 0 of profile profile-2 of policy policy-2.