Table 12-1 DSCP Threshold/Max Drop Probability Parameters (continued)
DSCP
Cs1
Cs2
Cs3
Cs4
Cs5
Cs6
Cs7
Ef
Initial parameters for all
other DSCP values
Examples
The following example enables WRED with a minimum threshold for DSCP af21 of 24 and
maximum threshold of 40. The dropping probability is 1/4th. All other DSCPs have default values.
XSR(config)#policy-map wred
XSR(config-pmap<wred>)#class a
XSR(config-pmap-c<a>)#random-detect dscp-based
XSR(config-pmap-c<a>)#random-detect dscp af21 24 40 4
The following example sets WRED It sets DSCP 33 WRED parameters to 10, 20, 10 and changes the
setting for all other DSCP values from initial to default 5, 10, 20.
XSR(config)#policy-map wred
XSR(config-pmap<wred>)#class a
XSR(config-pmap-c<a>)#random-detect dscp-based
XSR(config-pmap-c<a>)#random-detect dscp 33 10 20 10
XSR(config-pmap-c<a>)#random-detect default 5 10 20
random-detect exponential-weighting-constant
This command configures the Weighted Random Early Detect (WRED) exponential weight factor
for the average queue size calculation. The weight constant is expressed as a power of 2.
WRED uses the exponential weighting factor to calculate average queue size. To simplify
computing average queue size, the weight constant is allowed to be a power of 2. Choosing the
right value of this constant is important for proper WRED operation. The default value is based on
available data and should be changed only if your applications benefit from a different value.
Syntax
random-detect exponential-weighting-constant value
value
Min Threshold
Max Threshold
32
40
28
40
24
40
32
40
28
40
24
40
32
40
28
40
24
40
Exponent ranging from 1 to 16.
Policy-Map Commands
Max Drop Probability
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
XSR CLI Reference Guide 12-95