20-13
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS Understanding QoS
During the queueing and scheduling process, the switch uses eg re ss que ue s and WRR fo r conge sti on
management, and tail drop or WRED algorithms for congestion avoidance on Gigabi t-capable Ethernet
ports.
Each Gigabit-capable Ethernet port has four egress queues, one of which can be the egress expedite
queue. You can configure the buffer space allocated to each queue as a ratio of weights by using the
wrr-queue queue-limit interface configuration command, where the relative size differences in the
numbers indicates the relative differences in the queue sizes. To display the abs olute value of the queue
size, use the show mls qos interface interface-id statistics privileged EXEC command, and examine
the FreeQ information.
You assign two drop thresholds to each queue, map DSCPs to the thresholds through th e
DSCP-to-threshold map, and enable either tail drop or WR ED o n t h e i nter face . The qu eu e size , dr op
thresholds, tail-drop or WRED algorithm, and the DSCP-to-threshold map work together to determine
when and which packets are dropped when the thresholds a re e xce eded. You configure the drop
percentage thresholds by using either the wrr-queue threshold interface configuration command f or tail
drop or the wrr-queue random-detect max-threshold interface configuration command for WRED; in
either case, you map DSCP values to the thresholds (DSCP-to-threshold map) by using the wrr-queue
dscp-map interface configuration command. For more information, see the Tail Dr op section on
page 20-13 and WRED section on page 20-14.
The available bandwidth of the egress link is divi ded among the queues. You configure the queues to be
serviced according to the ratio of WRR weights by using the wrr-queue bandwidth interface
configuration command. Queues are selected by the CoS value that is mapped to an egress queue
(CoS-to-egress-queue map) through the wrr-queue cos-map interface configuration comman d.
All four queues participate in the WRR unless the expedite queue is enabled, in which case, the fourt h
bandwidth weight is ignored and not used in the ratio calculation. The expedite queue is a strict-priority
queue, and it is serviced until empty before the other queues are servi ced. You enable the expedite queue
by using the priority-queue out interface configuration command.
You can combine the commands described in this section to prioritize traffic by placing packets with
particular DSCPs into certain queues, allocate a larger queue size or service the particular queue more
frequently, and adjust queue thresholds so that packets with lower priorities are dropped. For configuration
information, see the Configuring Egress Queues on Gigabit-C apable Ethernet Ports section on page 20-44.
Tail Drop
Tail drop is the default congestion-avoidance technique on Gigabit-ca pabl e E the rnet p orts. With tail
drop, packets are queued until the thresholds are exceeded. Specifically, all packets with DSCPs
assigned to the first threshold are dropped until the thre sh old is no l onger e xcee ded. Ho we ver, packets
assigned to the second threshold continue to be queued and sent as l ong a s t he se cond thr esh old is no t
exceeded.
You can modify the two tail-drop threshold percentages assigned to the four egress queues by using the
wrr-queue threshold interface configuration command. Each threshold value is a percentage of the total
number of allocated queue descriptors for the queue. The default threshold is 100 perc ent for
thresholds1 and 2.
You modify the DSCP-to-threshold map to determine which DSCPs are mapped to which thres hold I D
by using the wrr-queue dscp-map interface configuration command. By default, all DSCP s are map ped
to threshold 1, and when this threshold is exceeded, all the packets are dropped.
If you use tail-drop thresholds, you cannot use WRED, and v ice versa. If tail drop is disabled, WRED is
automatically enabled with the previous configuration (or the default if it was not previously
configured).