Professional Documents
Culture Documents
Congestion Management
Congestion and Queuing
• HQO is the maximum number of packets that the WFQ system can hold.
• CDT is the threshold when WFQ starts dropping packets of the most aggressive
flow.
• N is the number of packets in the WFQ system when the N-th packet arrives.
Finish Time Calculation
The length of queues (for scheduling purposes)
is not in packets but in the time it would take to
transmit all the packets in the queue.
• Early dropping (of aggressive flows) should start when there are eight packets
(congestive discard threshold) in the WFQ system
• CDT exceeded (CDT=8), new packet would be the last in the TDM system and is
dropped.
Benefits and Drawbacks of WFQ
• + Benefits
– Simple configuration (classification does not have to
be configured)
– Guarantees throughput to all flows
– Drops packets of most aggressive flows
– Supported on most platforms
• – Drawbacks
– Multiple flows can end up in one queue
– Does not support the configuration of classification
– Cannot provide fixed bandwidth guarantees
– Complex classification and scheduling mechanisms
Summary
• The software FIFO queue is basically an extension of
the hardware FIFO queue.
• WFQ was developed to overcome the limitations of
the more basic queuing methods. Traffic is sorted
into flows
• WFQ classification uses as parameters: source and
destination IP addresses, source and destination TCP
or UDP ports, transport protocol, and ToS field.
• With WFQ, the CDT is used to start dropping packets
of the most aggressive flow, even before the hold-
queue limit is reached, and the hold-queue out limit
defines the total maximum number of packets that
can be in the WFQ system at any time
Summary (Cont.)
• Finish time, the time it takes to transmit the packet, is
divided by IP precedence increased by one (to prevent
division by zero).
• WFQ benefits: Simple configuration, drops packets of the
most aggressive flows. WFQ drawbacks: Not always
possible to have one flow per queue, does not allow
manual classification, and cannot provide fixed guarantees.
• WFQ is automatically enabled on all interfaces that have a
default bandwidth of less than 2 Mbps. The fair-queue
command is used to enable WFQ on interfaces where it is
not enabled by default or was previously disabled.
• The same show commands can be used as with other
queuing mechanisms: show interface, show queue, and
show queuing.
CBWFQ and LLQ
• Basic methods are combined to create more
versatile queuing mechanisms
Class-Based Weighted Fair Queuing
• CBWFQ is a mechanism that is used to guarantee
bandwidth to classes.
• CBWFQ extends the standard WFQ functionality
to provide support for user-defined traffic
classes.
– Classes are based on user-defined match criteria.
– Packets satisfying the match criteria for a class
constitute the traffic for that class.
• A queue is reserved for each class, and traffic
belonging to a class is directed to that class
queue.
CBWFQ Architecture