liveBook · Manning

Class-based weighted fair queuing

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

Class-Based Weighted Fair Queuing is a packet-scheduling technique that assigns traffic classes to queues and guarantees each queue a configured minimum share of bandwidth during congestion.

Class-Based Weighted Fair Queuing (CBWFQ) schedules classified packets across separate queues when an interface cannot transmit them immediately. It replaces a single FIFO queue with weighted round-robin service and protects each queue from starvation during congestion. section 10.2.3 section 10.4.2

CBWFQ operates through these core behaviors:

  • Classifies packets and places them into separate queues rather than one default FIFO queue. section 10.2.3
  • Services queues in cyclical order using weighted round-robin scheduling. section 10.4.2
  • Guarantees each queue a configured minimum bandwidth share during congestion. section 10.4.2
  • Supports up to 64 queues. section 10.4.2
  • Avoids queue starvation but does not provide the fastest service for delay-sensitive traffic, because packets may wait while other queues are serviced. section 10.4.2 section 10.7

Four-queue scheduling

With four queues, a simple round-robin sequence is 1, 2, 3, 4, 1, 2, 3, 4. CBWFQ weights the queues so each receives at least its configured bandwidth, even when other queues remain congested. section 10.4.2

Figure 10.19 Class-Based Weighted Fair Queuing (CBWFQ). Packets are classified and queued. The CBWFQ scheduler ensures that each queue receives at least its guaranteed bandwidth, even if other queues are congested.

Use the diagram to follow packet classification, queue placement, and guaranteed-bandwidth scheduling under congestion. section 10.4.2

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Explains queueing, weighted round-robin behavior, capacity, starvation avoidance, and delay limitations without configuration commands.
Examples
Uses four queues, cyclical service order, and a congestion diagram showing guaranteed bandwidth for each queue.
What it assumes
Assumes packet transmission queues and introduces the distinction between queuing and scheduling.
What you can do after
Evaluate whether weighted round-robin scheduling meets bandwidth-sharing needs without adequately minimizing delay-sensitive traffic.
How it connects
Connects QoS, FIFO, packet classification, priority queuing, low-latency queuing, queue starvation, and scheduling.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.