Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Error: "Cannot mix Queue length and WRED threshold units (Bytes/Msec) within a policy"

Cause

You tried to configure a mix of units (bytes and time) for the traffic class's queue limit and the WRED map's thresholds.

There is a relationship between a traffic class's queue limit and the thresholds of a WRED map. The queue-limit <number> value must be larger than the WRED map threshold values. For this to be a meaningful relationship,you must specify both attributes in the same units.

You will trigger this error if you mix different unit commands in the configuration. For example, any combination of commands like these:

set policy qos name <policy-name> shaper profile <profile-name> queue <queue-id> wred-map-bytes ...
set policy qos name <policy-name> shaper traffic-class <traffic-class> queue-limit-time <X> 

or

set policy qos name <policy-name> shaper traffic-class <traffic-class> queue-limit-bytes <limit>
set policy qos name <policy-name> shaper profile <profile-name> queue <queue-id> wred-map-time ...

or

set policy qos name <policy-name> shaper traffic-class <traffic-class> queue-limit-time <limit>
set policy qos name <policy-name> shaper profile <profile-name> queue <queue-id> wred-map-bytes ...

Remedy

Decide whether you want to use bytes-based or time-based limits and thresholds. Then make the queue limit and WRED map units consistent.