Chapter 11
Managing Packet Queue Congestion
Average Queue Size and the Exponential Weight Constant
The router calculates the average queue size based on the previous average and the current size of the
queue, using the following formula:
You can configure the exponential weight constant; however, we recommend that you use the default
value of 9. Valid values are from 1 to 16.
•
•
•
Interfaces Supporting Layer 3 Packet Drop Policies
The following describes interface support for tail drop, random early detection (RED), and weighted
random early detection (WRED) drop policies using the queue-limit and random-detect commands:
Interfaces Supporting the queue-limit and random-detect Commands (Outbound Only)
•
•
•
•
•
•
•
•
* The PRE3 does not support the queue-limit and random-detect commands on ATM subinterfaces
because the PRE3 only supports MQC policy maps on ATM PVCs.
** Requires a specific type of hierarchical policy. For more information, see the
QoS for Multiple Policy Levels."
The router supports the queue-limit and random-detect commands on outbound interfaces only.
Note
OL-7433-09
Average = (old-average * (1 – 2 – n)) + (current-queue-size * 2 – n)
where n is the exponential weight constant
A high exponential weight constant smooths out the peaks and lows in queue length. The average
queue size is unlikely to change very quickly, avoiding drastic swings in size. WRED might be slow
to start dropping packets and can continue dropping packets for a time after the actual queue size
has fallen below the minimum threshold. The slow-moving average accommodates temporary bursts
in traffic.
If the exponential weight constant is too high, WRED does not react to congestion and packets are
transmitted or dropped as if WRED were not in effect.
If the exponential weight constant is too low, the average queue size might fluctuate with changes
in the traffic levels. As a result, WRED responds quickly to long queues, overreacts to temporary
traffic bursts, and drops traffic unnecessarily. After the queue falls below the minimum threshold,
WRED stops dropping packets.
Physical
Multilink PPP and Multilink Frame Relay
ATM shaped (peak cell rate is specified) unspecified bit rate (UBR) PVCs and point-to-point
subinterfaces *
ATM constant bit rate (CBR) PVCs and point-to-point subinterfaces *
ATM variable bit rate (VBR) PVCs and point-to-point subinterfaces *
Label-controlled ATM (LC-ATM) subinterfaces **
Frame Relay PVCs, point-to-point subinterfaces, and map classes **
Ethernet VLANs **
Interfaces Supporting Layer 3 Packet Drop Policies
Cisco 10000 Series Router Quality of Service Configuration Guide
Chapter 13, "Defining
11-21