Policy-Map Commands
12-86 Configuring Quality of Service
Example
Thesecommandscreateclassmapclass1anddefineitsmatchcriteria:
XSR(config)#class-map class1
XSR(config-cmap<class1>)#match access-group 136
Thesecommandscreatethepolicymapwhichisdefinedtocontainpolicyspecificationsforclass1
andthedefaultclass:
XSR(config)#policy-map policy1
XSR(config-pmap<policy1>)#class class1
XSR(config-pmap-c<class1>)#bandwidth 2000
XSR(config-pmap-c<class1>)#queue-limit 40
XSR(config-pmap<policy1>)#class class-default
XSR(config-pmap-c<class-default>)#queue-limit 20

bandwidth

Thiscommandspecifiesormodifythebandwidthallocatedforaclassbelongingtoapolicymap.
Itisusedinconjunctionwithaclassdefinedbytheclass-mapcommand.Thebandwidth
commandspecifiesthebandwidthfortrafficinthatclass.ClassBasedWeightedFairQueueing
(CBWFQ)derivestheweightforpacketsbelongingtotheclassfromthebandwidthallocatedto
theclass.CBWFQthenusestheweighttoensurethatthequeuefortheclassisservicedfairly.
Theamountofbandwidthcanbespecifiedinpercentagesorkilobitspersecond(kbps).When
configuredinkbps,theclassweightiscalculatedasaratioofthebandwidthspecifiedforthatclass
overtheavailablelinkbandwidth.Theavailablelinkbandwidthisequaltotheinterface
bandwidthminusthesumofallbandwidthreservedforlowlatencyqueues.Whenconfiguredin
percentages,theclassweightisequaltothebandwidthpercentages.
Configuringbandwidthinpercentagesismostusefulwhentheunderlyinglinkbandwidthis
unknown,changesovertime,ortherelativeclassbandwidthdistributionsareknown.For
interfacesthathaveadaptiveshapingrates,CBWFQcanbesetbyconfiguringclassbandwidthsin
percentages.
Thefollowingrestrictionsapplytothebandwidthcommand:
•Ifthepercentkeywordisused,thesumofclassbandwidthpercentagescannotexceed100%.
•TheamountofbandwidthsetshouldbelargeenoughtoalsoaccommodateLayer2overhead.
•Apolicymapcanhavealltheclassbandwidthsspecifiedinkbpsoralltheclassbandwidths
specifiedinpercentages,butnotamixofboth.But,theunitfortheprioritycommandinthe
priorityclasscanbedifferentfromthebandwidthunitoftheCBWFQ.
Syntax
bandwidth {bandwidth-kbps | percent percent}
Note: When the bandwidth of an interface is insufficient to satisfy the bandwidth of a policy map, the
interface becomes oversubscribed and some CBFWQ classes may become unable to transmit.
bandwidth-kbps Amountofbandwidth,inkbps,assignedtotheclass.
percent Availablebandwidthpercentageassignedtotheclass.