Policy-Map Commands
12-92 Configuring Quality of Service
XSR(config)#policy-map policy75
XSR(config-pmap<policy75>)#class acl203
XSR(config-pmap-c<acl203>)#bandwidth percent 35
XSR(config-pmap-c<acl203>)#queue-limit 50

random-detect (RED)

ThiscommandconfiguresREDforapolicymap.
ThiscommandconfiguresandenablesRandomEarlyDetect(RED)fortheclass.REDisa
congestionavoidancemechanismthatslowstrafficbyrandomlydroppingpacketsduring
congestionandisusefulwithprotocolslikeTCPthatrespondtodroppedpacketsbyreducingthe
transmissionrate.WhileREDmaybeimplementedusingWRED,thiscommandisretainedfor
compatibilitywithearlierreleasesandsimplicityofconfigurationwhenonlyREDisrequired.
Syntax
random-detect min-thres max-thres [mark-prob]
Syntax of the “no” Form
ThenoformofthiscommanddisableREDonaninterface:
no random-detect
Mode
PolicyMapClassconfiguration:XSR(config-pmap-c-<xx>)#
Defaults
• Disabled
•Markprob:10
Example
ThefollowingexampleenablesRED.Theminimumandmaximumthresholdsare24and40,
respectively.Thedroppingprobabilityis1/4.
XSR(config)#policy-map foobar
XSR(config-pmap<foobar>)#class alpha
XSR(config-pmap-c<alpha>)#random-detect 24 40 4
min-thres Peaklimitofaveragepacketqueuelength,rangingfrom1to4096,beyond
whichtheXSRrandomlydropspackets.
max-thres Peaklimitofaveragepacketqueuelength,rangingfrom1to4096,beyond
whichallpacketsaredropped.
mark-prob Markprobabilitydenominator,rangingfrom1to65,536.Thisistheliklihood
ofqueuedpacketsbeingdroppedwhentheirnumberexceedingthe
minimumthresholdisbetween0and(1/markprob).Whenthepeakthreshold
isreached,dropprobabilityis1dividedbythepeakprobability.