[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


RED Configuration Examples

This section describes how to configure the RED average queue length computation, configure RED for colored traffic, and configure RED so that packets are dropped without regard to color.

Configuring Average Queue Length

To enable calculation of average queue length, create a drop profile with a nonzero average-length exponent, reference the drop profile within a QoS profile, and attach the QoS profile to an interface. The following drop profile enables the average queue length calculation, but does not initiate RED dropping behavior:

host1(config)#drop-profile averageOnly
host1(config-drop-profile)#average-length-exponent 10

Configuring Thresholds

You can specify different dropping behavior for committed (green), conformed (yellow), and exceeded (red) packets by specifying a minimum queue threshold, maximum queue threshold, and maximum drop probability for each color of traffic.

By default, conformed threshold and exceeded threshold take the same values as the committed threshold. Therefore, if you specify only a committed threshold, conformed and exceeded traffic is treated like committed traffic. Similarly, if you specify a conformed threshold without an exceeded threshold, exceeded traffic is treated like committed traffic.

The following drop profiles result in identical behavior:

host1(config)#drop-profile colorblind1
host1(config-drop-profile)#committed-threshold percent 30 90 5
host1(config-drop-profile)#exit

host1(config)#drop-profile colorblind2
host1(config-drop-profile)#committed-threshold percent 30 90 5
host1(config-drop-profile)#conformed-threshold percent 30 90 5
host1(config-drop-profile)#exit

host1(config)#drop-profile colorblind3
host1(config-drop-profile)#committed-threshold percent 30 90 5
host1(config-drop-profile)#conformed-threshold percent 30 90 5
host1(config-drop-profile)#exceeded-threshold percent 30 90 5

Configuring Color-Blind RED

You can configure RED so that packets are dropped without regard to color. To do so, you combine a drop profile that has a committed threshold configured with a queue profile that specifies the same queue length for committed, conformed, and exceeded packets, as shown in Figure 3.


Figure 3: Color-Blind RED Drop Profile with Colorless Queue Profile

In the following example, the drop profile and queue profile combine to specify the following:

host1(config)#drop-profile nocolor
host1(config-drop-profile)#committed-threshold percent 30 90 5
host1(config-drop-profile)#exit
host1(config)#queue-profile colorless
host1(config-queue)#committed-length 100000 100000 
host1(config-queue)#conformed-fraction 100
host1(config-queue)#exceeded-fraction 100 

To achieve the same drop treatment for each color, you can specify color-blind RED in combination with a color-sensitive queue profile, as shown in Figure 4.


Figure 4: Color-Blind RED Drop Profile with Color-Sensitive Queue Profile

In the following example, the drop profile and queue profile combine to specify the following:


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]