User's Manual

Table Of Contents
373
Users Manual of CS-6306R
40.1.1.4 Weighted Random Early Detection
Congestion avoidance and traditional packet loss mechanism
Excessive congestion may inflict damage on network resources, so network congestion should be resolved
through some measures. Congestion avoidance is a sort of flow control method of positively dropping packets
and regulating network flows to solve network overload via network resource monitoring. The traditional way
of resolving network congestion is to drop all incoming packets when the queue length reaches its threshold.
But for TCP packets, heavy packet loss may cause TCP timeout and lead to slow TCP startup and congestion
avoidance, which is called as TCP global synchronization.
WRED
The WRED algorithm is adopted to prevent TCP global synchronization. WRED helps users to set the queue
threshold. When the queue length is less than the configured threshold, the packets will not be dropped;
otherwise, the packets will be dropped randomly. Because WRED drops packets randomly, it is avoided for
multiple TCP connections to slow down the transmission speed at the same time, which is the reason why
TCP global synchronization is avoided. WRED enables other TCP connections to maintain a relatively high
transmission speed when the packets of a certain TCP connection begin to be dropped and their transmission
speed is slowed down. No matter what time it is, there are always some TCP connections to transmit packets
with a high speed, which ensures effective bandwidth usability.
WRED cooperation is conducted when packets enter the outgoing queue and are checked for their size and
packets in different ranges get different treatments. The key parameters include Start, Slop and Drop
priority.
When the queue length is less than start, packets will not be dropped.
When the queue length is bigger than start, the incoming packets begin to be dropped randomly.The
longer the queue is, the higher the dropping rate is.
The rate for packet loss rises along with the increase of the queue length.
start
100%
0%
Average queue length
Packet loss