WRED algorithm
The weighted random early detection (WRED) algorithm is designed to prevent global TCP synchronization. You can configure the WRED algorithm to operate on profile queues.
The WRED algorithm is only designed for multiple streams of TCP traffic. For traffic of mixed UDP/TCP streams, the UDP streams will edge out the TCP streams.
The WRED algorithm drops random packets when the average queue length exceeds a defined threshold. The sender of the TCP stream detects the dropped packet and reduces its transmit credit window which in turn reduces the offered load.
- Attributes
-
min-threshold
-
If the average queue length value is below this threshold then the WRED algorithm will not randomly drop packets.
-
max-threshold
-
If the average queue length value is greater than this threshold then the WRED algorithm will drop all packets.
-
- 1/
mark-probability
- The
mark-probability
attribute determines the gradient of the slope in the WRED probability graph.
- 1/
-
- Random drops
-
If the average queue length value is between the
min-threshold
andmax-threshold
values, then the WRED algorithm will drop a packet if a random selected number is less than the WRED probability value for the current average queue length value.
The filter-weight
attribute controls how quickly, or how slowly, the average queue length will track the actual queue length.
Ways to configure the WRED algorithm on profile queues
On the software platforms, you can configure WRED at one of two different locations in the scheduling hierarchy:
- At the policy's traffic class level, so that all the profile queues assigned to a traffic class share the same configuration.
- At the individual profile queue level, so that each profile queue has its own individual WRED configuration.
On hardware platforms you can only configure WRED at the individual profile queue level.