Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Congestion Avoidance

Direct answer

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).

When to use this

Use Congestion Avoidance (WRED) when TCP data classes congest and tail drop causes throughput collapse: drop or ECN-mark early, lowest drop precedence last.

First 30 seconds

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.

Operational verification

queue fills → WRED probability → early drops → TCP backs off

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Scope / prerequisiteUse Congestion Avoidance (WRED) when TCP data classes congest and tail drop causes throughput collapse: drop or ECN-mar…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification & troubleshooting Narrow the fault
SymptomCommandLook forNext check
Only tail dropsshow policy-map interface Gi0/0/1 outputRandom drops vs tail drops per class/DSCPThresholds above the queue limit, or the queue is too short
High-priority AF dropped firstsameDrops per DSCP (AF11/AF12/AF13)random-detect dscp-based configured; DSCP marking correct
ECN not usedsameECN-marked countersEndpoints negotiate ECN; random-detect ecn configured
Step 2 Common mistakes Narrow the fault
  • WRED on voice queues.
  • Tail drop causing TCP global synchronisation.
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • 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

ThresholdDefaultTypical use
180 %Traffic marked as most droppable
290 %Middle drop precedence
3400 %Effectively the queue's full limit, including borrowed buffers

Why it matters

Without avoidanceWith WTD
All traffic in a queue is dropped equally when it's fullLower-priority markings drop first
Bursts hurt important flows in the same queueImportant 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

SettingEffect
Minimum thresholdQueue depth where random drops start
Maximum thresholdDepth where all packets of that profile drop
Mark probabilityDrop 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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2475

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%
Confirmation

Confirm action

Continue?