background image
Queuing Overview 299
Discrimination of traffic conversations is based on source and destination packet header
addresses. Other factors such as source and destination MAC addresses, source and destination
port or socket numbers, data-link connection identifier (DLCI) in Frame Relay deployments,
Quality of Service (QoS) values, and Type of Service (ToS) values also provide discriminatory
criteria to the WFQ process. Figure 10-4 illustrates the WFQ concept.
Figure 10-4
Weighted Fair Queuing
Note that in Figure 10-4, there are three conversations in progress. Two of the conversations
constitute a higher volume of traffic. With WFQ, the low-volume traffic is given the priority on
the outbound interface. Therefore, the number 3 packet is given dispatch priority.
Configuring WFQ
Configuring WFQ involves issuing a command to adjust the queue limits. To keep some
conversations from overwhelming the circuit, you can configure the maximum number of
records that any high-volume conversation allows into the queue. The default setting is 64
records (packets), but the supported range is from 1­4096. If a conversation reaches the queue
limit, no further records are queued for that conversation until the percentage of the entries in
the queue for that conversation drops. Essentially, all new packets for the over-queue-limit
conversation are dropped and lost.
TCP window sizes control the amount of data that can be transmitted between two hosts without
an acknowledgement. A larger window size enables a higher transmission threshold.
Conversations using TCP that suffer a packet drop retransmit automatically as part of the Layer
4 flow control process. As a consequence, the communicating parties in the TCP conversation
are forced to reduce their window sizes.
A WFQ configuration utilizes the fair-queue command. As stated, the command requires the
discard threshold parameter. The command to configure WFQ is as follows:
RouterA(config-if)#fair-queue [congestive-discard-threshold]
1
4
6
2
5
3
3
1
2
6
5
4
Packets fair queued
Fair queue