Policy-Map Commands
XSR CLI Reference Guide 12-95
Examples
ThefollowingexampleenablesWREDwithaminimumthresholdforDSCPaf21of24and
maximumthresholdof40.Thedroppingprobabilityis1/4th.AllotherDSCPshavedefaultvalues.
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
ThefollowingexamplesetsWREDItsetsDSCP33WREDparametersto10,20,10andchangesthe
settingforallotherDSCPvaluesfrominitialtodefault5,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

ThiscommandconfigurestheWeightedRandomEarlyDetect(WRED)exponentialweightfactor
fortheaveragequeuesizecalculation.Theweightconstantisexpressedasapowerof2.
WREDusestheexponentialweightingfactortocalculateaveragequeuesize.Tosimplify
computingaveragequeuesize,theweightconstantisallowedtobeapowerof2.Choosingthe
rightvalueofthisconstantisimportantforproperWREDoperation.Thedefaultvalueisbasedon
availabledataandshouldbechangedonlyifyourapplicationsbenefitfromadifferentvalue.
Syntax
random-detect exponential-weighting-constant value
Cs1 32 40 1/10
Cs2 28 40 1/10
Cs3 24 40 1/10
Cs4 32 40 1/10
Cs5 28 40 1/10
Cs6 24 40 1/10
Cs7 32 40 1/10
Ef 28 40 1/10
Initialparametersforall
otherDSCPvalues
24 40 1/10
Table 12-1 DSCP Threshold/Max Drop Probability Parameters (continued)
DSCP Min Threshold Max Threshold Max Drop Probability
value Exponentrangingfrom1to16.