Use Congestion Avoidance (WRED) when TCP data classes congest and tail drop causes throughput collapse: drop or ECN-mark early, lowest drop precedence last.
Congestion Avoidance
Congestion avoidance drops some packets early as a queue fills, for example with WRED, so TCP senders slow down before the queue overflows and drops everything (tail drop).
1. Congestion avoidance (WRED) drops some packets early to prevent tail drop.
2. Works with TCP backoff.
3. Not useful for UDP voice.
4. DSCP-based profiles.
5. Monitor random vs tail drops.
queue fills → WRED probability → early drops → TCP backs off
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification & troubleshooting Narrow the fault
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| Only tail drops | show policy-map interface Gi0/0/1 output | Random drops vs tail drops per class/DSCP | Thresholds above the queue limit, or the queue is too short |
| High-priority AF dropped first | same | Drops per DSCP (AF11/AF12/AF13) | random-detect dscp-based configured; DSCP marking correct |
| ECN not used | same | ECN-marked counters | Endpoints negotiate ECN; random-detect ecn configured |
Step 2 Common mistakes Narrow the fault
- WRED on voice queues.
- Tail drop causing TCP global synchronisation.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Congestion avoidance drops some packets early to prevent queues filling (WRED).
- TCP flows slow down when they see drops.
- Not useful for UDP voice traffic.
show policy-map interface <interface>— random drops (WRED)show interfaces <interface>— output drops
ReferenceWhat it is1 section · depth on demand
What it is
Congestion avoidance drops some packets before a queue is full, so TCP senders slow down gradually instead of all backing off at once after tail drop (global synchronization).
On IOS XE this is WRED: random-detect with minimum and maximum thresholds and a mark probability. random-detect dscp-based drops higher drop-precedence packets first: AF13 before AF12 before AF11. With random-detect ecn, ECN-capable flows are marked instead of dropped.
WRED helps TCP only. Keep voice and video in the priority queue, not under WRED.
ReferenceWhy it matters1 section · depth on demand
When to use it
Enable WRED in TCP-heavy data classes (critical data, bulk, class-default) on egress queues that actually congest. Do not apply it to the priority class or to UDP real-time traffic.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Congestion avoidance drops less important packets before a queue is full
The Catalyst 9300 QoS guide describes weighted tail drop (WTD) as its congestion avoidance mechanism. Each queue has three thresholds. Packets are assigned to a threshold, and when the queue fills past that threshold, packets assigned to it are dropped, while packets on higher thresholds are still accepted. The documented defaults are 80 %, 90 % and 400 %.
C9300(config)# policy-map PM-UPLINK-OUT
C9300(config-pmap)# class CM-BULK
C9300(config-pmap-c)# bandwidth remaining percent 20
C9300(config-pmap-c)# queue-limit dscp af11 percent 100
C9300(config-pmap-c)# queue-limit dscp af12 percent 90
C9300(config-pmap-c)# queue-limit dscp af13 percent 80
C9300# show platform hardware fed switch active qos queue config interface Te1/1/1
C9300# show platform hardware fed switch active qos queue stats interface Te1/1/1
In the example, AF13 (high drop probability) is dropped first, AF12 next, and AF11 last.
Thresholds
| Threshold | Default | Typical use |
|---|---|---|
| 1 | 80 % | Traffic marked as most droppable |
| 2 | 90 % | Middle drop precedence |
| 3 | 400 % | Effectively the queue's full limit, including borrowed buffers |
Why it matters
| Without avoidance | With WTD |
|---|---|
| All traffic in a queue is dropped equally when it's full | Lower-priority markings drop first |
| Bursts hurt important flows in the same queue | Important flows in the queue are protected |
WTD versus WRED
Routers often use WRED, which drops randomly as average queue depth grows and so avoids TCP global synchronisation. The Catalyst 9300 uses WTD: drops are deterministic per threshold. Design classes so that WTD thresholds map to AF drop precedence.
Monitoring
Per-threshold drop counters in show platform hardware fed … qos queue stats show which drop precedence is losing packets. If AF11 traffic is dropped, the queue itself is too small or under-allocated.
Documented example, not captured output.
Quick reference
Congestion avoidance drops some packets before a queue is completely full, so TCP senders slow down gradually instead of all losing packets at once. When a queue overflows (tail drop), many TCP flows back off simultaneously and then ramp up together, causing waves of congestion and under-used links — known as global synchronisation. WRED (weighted random early detection) avoids this by randomly dropping a growing share of packets as the queue fills, with lower-priority markings dropped earlier.
| Setting | Effect |
|---|---|
| Minimum threshold | Queue depth where random drops start |
| Maximum threshold | Depth where all packets of that profile drop |
| Mark probability | Drop share at maximum threshold |
WRED only helps TCP-like traffic that reacts to loss; never apply it to voice or other UDP real-time classes. ECN can replace drops with marks where endpoints support it.
policy-map WAN-OUT
class BULK
bandwidth percent 10
random-detect dscp-based
show policy-map interface Gi0/0/0 output | include drops|random
ReferenceConfiguration & state1 section · depth on demand
Configuration example (Cisco IOS XE)
policy-map WAN-OUT
class VOICE
priority percent 10
class CRITICAL-DATA
bandwidth percent 30
random-detect dscp-based
class class-default
bandwidth percent 25
random-detect
!
interface GigabitEthernet0/0/1
service-policy output WAN-OUT
WRED in a class requires bandwidth or fair-queue in that class. Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → QoS → Congestion Avoidance. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%