Connectivity Guide
Next-boot Settings : Enabled
Congestion avoidance
Congestion avoidance anticipates and takes necessary actions to avoid congestion. The following mechanisms avoid congestion:
• Tail drop—Packets are buered at trac queues. When the buers are exhausted or reach the congured threshold, excess packets
drop. By default, OS10 uses tail drop for congestion avoidance.
• Random early detection (RED)—In tail drop, dierent ows are not considered in buer utilization. When multiple hosts start
retransmission, tail drop causes TCP global re-synchronization. Instead of waiting for the queue to get lled up completely, RED starts
dropping excess packets with a certain drop-probability when the average queue length exceeds the congured minimum threshold.
The early drop ensures that only some of TCP sources slow down, which avoids global TCP re-synchronization.
• Weighted random early detection (WRED)—This allows dierent drop-probabilities and thresholds for each color — red, yellow, green
— of trac. You can congure the drop characteristics for three dierent ows by assigning the colors to the ow. Assign colors to a
particular ow or trac using various methods, such as ingress policing, qos input policy-maps, and so on.
• Explicit congestion notication (ECN)—This is an extension of WRED. Instead of dropping the packets when the average queue
length crosses the minimum threshold values, ECN marks the Congestion Experienced (CE) bit of the ECN eld in a packet as ECN-
capable trac (ECT).
1 Congure a WRED prole in CONFIGURATION mode.
OS10(config)# wred wred_prof_1
2 Congure WRED threshold parameters for dierent colors in WRED CONFIGURATION mode.
OS10(config-wred)# random-detect color yellow minimum-threshold 100 maximum-threshold 300
drop-probability 40
3 Congure the exponential weight value for the WRED prole in WRED CONFIGURATION mode.
OS10(config-wred)# random-detect weight 4
4 Enable ECN.
OS10(config-wred)# random-detect ecn
5 Enable WRED/ECN on a queue.
OS10(config)# class-map type queuing c1
OS10(config-cmap-queuing)# match queue 2
OS10(config-cmap-queuing)# exit
OS10(config)# policy-map type queuing p1
OS10(config-pmap-queuing)# class c1
OS10(config-pmap-c-que)# random-detect wred_prof_1
6 Enable WRED/ECN on a port.
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# random-detect wred_prof_1
7 Enable WRED/ECN on a service-pool.
OS10(config)# system qos
OS10(config-sys-qos)# random-detect pool 0 wred_prof_1
NOTE
: On the S4200–ON Series platform, enable ECN globally only. Also, apply ECN congurations only at the queue level. You
cannot congure ECN at the interface or service-pool levels. If you try to apply the ECN conguration at the interface or
service-pool levels, the conguration is not accepted.
1 Congure a WRED prole in CONFIGURATION mode.
OS10(config)# wred wred_prof_1
2 Congure WRED threshold parameters for dierent colors in WRED CONFIGURATION mode.
OS10(config-wred)# random-detect color yellow minimum-threshold 100 maximum-threshold 300
drop-probability 40
3 Congure the exponential weight value for the WRED prole in WRED CONFIGURATION mode.
OS10(config-wred)# random-detect weight 4
4 Congure the ECN threshold parameters in WRED CONFIGURATION mode.
OS10(config-wred)#random-detect ecn minimum-threshold 100 maximum-threshold 300 drop-
probability 40
982
Quality of service