Enterasys Networks XSR CLI Router User Manual


 
Policy-Map Commands
XSR CLI Reference Guide 12-93
random-detect (WRED)
ThiscommandconfiguresandenablesWeightedRandomEarlyDetect(WRED)fortheclass.
WREDisacongestionavoidancemechanismthatslowstrafficbyrandomlydroppingpackets
whencongestionexists.WREDisusefulwithprotocolslikeTCPthatrespondtodroppedpackets
bydecreasingthetransmissionrate.
TosetorchangeWRED
parameters,usetherandom-detect {dscp | precedence}command.
Ifnoparameterpassedtothecommand,thedefaultisprecbasedWRED.
Syntax
random-detect {dscp-based | prec-based}
Syntax of the “no” Form
ThenoformofthiscommanddisablesWREDonaninterface:
no random-detect
Mode
PolicyMapClassconfiguration:XSR(config-pmap-c-<xx>)#
Default
Precbased
Example
ThefollowingexampleenablesWREDasDSCPbasedwiththedefaultvaluesforparameters:
XSR(config)#policy-map DSCP
XSR(config-pmap<DSCP>)#class A
XSR(config-pmap-c<a>)#random-detect dscp-based
random-detect dscp
ThiscommandchangestheWeightedRandomEarlyDetect(WRED)minimumandmaximum
thresholdandmaximumdropprobabilityforaDiffServCodePoint(DSCP)value.
ThiscommandspecifiestheDiffServCodePoint(DSCP)value.TheDSCPcanbeanumberfrom0
to63,oranyofthefollowingkeywords:af1,af12
,af13,af21,af22,af23 ,af31, af32,af33,af41, af42,
af43,cs1,cs2,cs3,cs4,cs5,cs6,cs7,efordefault.EachDSCPvaluehasinitialWREDparameters.
Table121providesinitialparametersettingsforeachDSCPvalue.Thelastrowdetails
parametersforDSCPvaluesnotshowninthe
table.
dscp-based
WREDusesDSCPvalueswhencalculatingdropprobability.
prec-based
WREDusesIPprecedencevalueswhencalculatingdropprobability.
Note: This command must be used in conjunction with the random-detect (interface) command.
Also, random-detect dscp is available only if you specified the dscp-based argument when
using the random-detect (interface) command.