Reference Guide
Queue management
Queues share buer memory space.
All packets in a queue are transmitted, until the queue size reaches a minimum threshold. When the queue size reaches that minimum
threshold, the system starts discarding packets with a certain probability. The probability of discard increases until the queue depth reaches
the maximum threshold. After a queue depth exceeds the maximum threshold, all other packets that attempt to enter the queue are
discarded.
1 Enter the policy-map name and type in CONFIGURATION mode.
policy-map policy-map-name [type {qos | queuing | control-plane}]
2 Enter WRED parameters for a queue and enter a minimum and maximum threshold drop rate in POLICY-MAP mode (1 to 12480 kbps).
random-detect minimum-threshold threshold-value maximum-threshold threshold-value
• Enter the drop probability and enter the maximum drop rate in POLICY-MAP mode (1 to 100).
drop probability percent
• Assign a yellow or green color drop precedence to the trac in POLICY-MAP mode. yellow congures a medium drop
precedence, and green congures a low drop precedence (default).
color {yellow | green}
• Congure explicit congestion notication (ECN) in POLICY-MAP mode.
ecn
• Enter the weight factor to compute average-queue size in POLICY-MAP mode (1 to 15, default 0).
weight value
3 Save the conguration.
do commit
Congure WRED queue management
OS10(config)# policy-map type queuing gold
OS10(conf-pmap-queuing)# class silver
OS10(conf-pmap-c-que)# random-detect minimum-threshold 10 maximum-threshold 100 drop-
probability 50 color yellow ecn weight 10
OS10(conf-pmap-c-que)# do commit
View congured WRED prole
OS10# show policy-map interface
Service-policy (qos) input: p1
Class (qos): c1
set qos-group 1
Class (qos): c2
set qos-group 4
Class (qos): c3
set qos-group 7
View statistics
You can display egress-queue statistics of both transmitted and dropped packets and bytes. If the Packets counter is non-zero, the
corresponding Drop Bytes counters display as “NA”.
View WRED statistics
OS10# show queuing statistics interface ethernet 1/1/1 wred
Interface ethernet1/1/1 (All queues)
Quality of service
465