Vous êtes sur la page 1sur 66

5

QualityofService(QoS):Managing
BandwidthMoreEffectively
Contents
Introduction .................................................. 5-3
Terminology ................................................ 5-6
Overview................................................... 5-7
ClassifiersforPrioritizingOutboundPackets ................... 5-10
PacketClassifiersandEvaluationOrder ................... 5-10
PreparationforConfiguringQoS.............................. 5-11
Preserving802.1pPriority ................................... 5-11
StepsforConfiguringQoSontheSwitch....................... 5-11
UsingQoSClassifiersToConfigure
QualityofServiceforOutboundTraffic ....................... 5-13
Assigningan802.1pPriorityBasedonTCP
Assigningan802.1pPrioritytoIPv4PacketsontheBasis
Assigningan802.1pPrioritytoIPv4Packetsonthe
AssigningaDSCPPolicyontheBasisoftheDSCPinIPv4
ViewingtheQoSConfiguration ............................... 5-14
NoOverride............................................... 5-15
QoSUDP/TCPPriority...................................... 5-15
orUDPPortNumber .................................... 5-16
OperatingNotesonUsingTCP/UDPPortRanges ............ 5-17
AssigningaDSCPPolicyBasedonTCPorUDPPortNumber . 5-18
QoSIP-DevicePriority...................................... 5-22
AssigningaPriorityBasedonIPAddress................... 5-22
AssigningaDSCPPolicyBasedonIPAddress .............. 5-23
QoSIPType-of-Service(ToS)PolicyandPriority ............... 5-26
oftheToSPrecedenceBits............................... 5-27
BasisofIncomingDSCP ................................. 5-28
PacketsReceivedfromUpstreamDevices .................. 5-32
5-1
QualityofService(QoS):ManagingBandwidthMoreEffectively
Contents
DetailsofQoSIPType-of-Service . . ....................... 5-34
AssigningaPriorityBasedonLayer-3 Protocol ................. 5-37
QoSVLAN-ID(VID)Priority ................................. 5-40
AssigningaPriorityBasedonVLAN-ID .................... 5-40
AssigningaDSCPPolicyBasedonVLAN-ID(VID)........... 5-42
QoSSource-PortPriority .................................... 5-45
AssigningaPriorityBasedonSource-Port.................. 5-45
AssigningaDSCPPolicyBasedontheSource-Port .......... 5-47
DifferentiatedServicesCodepoint(DSCP)Mapping ........... 5-50
ConfiguringDSCPPoliciesforCodepoints ..................... 5-51
StepsforConfiguringCodepoints......................... 5-53
DefaultPrioritySettingsforSelectedCodepoints ............... 5-54
QuicklyListingNon-DefaultCodepointSettings ............. 5-54
NoteOn ChangingaPrioritySetting... . ....................... 5-56
ExampleofChangingthePrioritySettingonaPolicy
WhenOneorMoreClassifiersAreCurrentlyUsingthePolicy . 5-56
IPMulticast(IGMP)InteractionwithQoS..................... 5-59
QoSMessagesintheCLI ..................................... 5-60
QoSQueueConfiguration .................................... 5-61
ConfiguringtheNumberofPriorityQueues.................... 5-62
ViewingtheQoSQueueConfiguration......................... 5-63
QoSOperatingNotesandRestrictions ........................ 5-64
5-2
QualityofService(QoS):ManagingBandwidthMoreEffectively
Introduction
Introduction
QoSFeature Default Menu CLI Web
UDP/TCPPriority Disabled page5-15 RefertotheOnlineHelp.
IP-DevicePriority Disabled page5-22
IPType-of-ServicePriority Disabled page5-26
LANProtocolPriority Disabled 5-37
VLAN-IDPriority Disabled page5-40
Source-PortPriority Disabled page5-45
DSCPPolicyTable Various page5-50
QueueConfiguration 4Queues page5-61
Asthetermsuggests,networkpolicyreferstothenetwork-widecontrolsyou
canimplementto:
Ensureuniformandefficienttraffichandlingthroughoutyournetwork,
whilekeepingthemostimportanttrafficmovingatanacceptablespeed,
regardlessofcurrentbandwidthusage.
Exercisecontrolovertheprioritysettingsofinboundtrafficarrivingin
andtravellingthroughyournetwork.
Addingbandwidthisoftenagoodidea,butitisnotalwaysfeasibleanddoes
notcompletelyeliminatethepotentialfornetworkcongestion.Therewill
alwaysbepointsinthenetworkwheremultipletrafficstreamsmergeorwhere
networklinkswillchangespeedandcapacity.Theimpactandnumberofthese
congestionpointswillincreaseovertimeasmoreapplicationsanddevices
areaddedtothenetwork.
When(notif)networkcongestionoccurs,itisimportanttomovetrafficon
thebasisofrelativeimportance.However,withoutQualityofService(QoS)
prioritization,lessimportanttrafficcanconsumenetworkbandwidthand
slowdownorhaltthedeliveryofmoreimportanttraffic.Thatis,withoutQoS,
mosttrafficreceivedbytheswitchisforwardedwiththesamepriorityithad
uponenteringtheswitch.Inmanycases,suchtrafficisnormalpriorityand
competesforbandwidthwithallothernormal-prioritytraffic,regardlessof
itsrelativeimportancetoyourorganizationsmission.
ThissectiongivesanoverviewofQoSoperationandbenefits,anddescribes
howtoconfigureQoSintheconsoleinterface.
5-3
QualityofService(QoS):ManagingBandwidthMoreEffectively
Introduction
QualityofServiceisageneraltermforclassifyingandprioritizingtraffic
throughoutanetwork.Thatis,QoSenablesyoutoestablishanend-to-end
trafficprioritypolicytoimprovecontrolandthroughputofimportantdata.
Youcanmanageavailablebandwidthsothatthemostimportanttrafficgoes
first.Forexample,youcanuseQualityofServiceto:
Upgradeordowngradetrafficfromvariousservers.
ControlthepriorityoftrafficfromdedicatedVLANsorapplications.
Changetheprioritiesoftrafficfromvarioussegmentsofyournetworkas
yourbusinessneedschange.
Setprioritypoliciesinedgeswitchesinyournetworktoenabletraffic-
handlingrulesacrossthenetwork.
EdgeSwitch
HonorPriority
Downstream
Switch
Classifyinboundtraffic
ontheseClass-of-
HonorNewPriority
Downstream Downstream
TaggedVLANsonsome
Service(CoS)types:
Switch Switch orallinboundand
IP-device(address) outboundports.
TaggedVLANson TaggedVLANsonat
Protocol(LAN) inboundandoutbound leastsomeinbound
ports.
Classifyinboundtraffic
ports. onCoStypes.
VLAN-ID(VID).
Trafficarriveswith Trafficarriveswiththe
prioritysetbyedge
Changepriorityon Source-Port
prioritysetintheVLAN
Apply802.1ppriorityto
selectedCoStype(s).
switch tag.Carrypriority
Forwardwith802.1p
selectedoutbound
downstreamontagged
priority. Forwardwith802.1p
trafficontaggedVLANs.
VLANs.
SetPriority
priority.
ChangePriority
Figure5-1. Exampleof802.1pPriorityBasedonCoS(Class-of-Service)Typesand
UseofVLANTags
EdgeSwitch HonorPolicy Downstream
Switch
Classifyinboundtraffic
onIP-device(address)
HonorNewPolicy
Downstream Downstream
ClassifyonToSDiffServ
andVLAN-ID(VID).
Switch Switch andOtherCoS
ApplyDSCPmarkersto
TrafficarriveswithDSCP ClassifyonToSDiffserv
selectedtraffic.
ApplynewDSCPmarkers
markerssetbyedge toselectedtraffic.
switch
SetPolicy ClassifyonToSDiffServ.
ChangePolicy
Figure5-2. ExampleApplicationofDifferentiatedServicesCodepoint(DSCP)Policies
5-4
QualityofService(QoS):ManagingBandwidthMoreEffectively
Introduction
Attheedgeswitch,QoSclassifiescertaintraffictypesandinsomecases
appliesaDSCPpolicy.Atthenexthop(downstreamswitch)QoShonorsthe
policiesestablishedattheedgeswitch.Furtherdownstream,anotherswitch
mayreclassifysometrafficbyapplyingnewpolicies,andyetotherdown-
streamswitchescanbeconfiguredtohonorthenewpolicies.
QoSisimplementedintheformofrulesorpoliciesthatareconfiguredonthe
switch.WhileyoucanuseQoStoprioritizeonlytheoutboundtrafficwhileit
ismovingthroughtheswitch,youderivethemaximumbenefitbyusingQoS
inan802.1QVLANenvironment(with802.1pprioritytags)orinanuntagged
VLANenvironment(withDSCPpolicies)whereQoScansetprioritiesthat
downstreamdevicescansupportwithoutre-classifyingthetraffic.
Byprioritizingtraffic,QoSsupportstrafficgrowthonthenetworkwhile
optimizingtheuseofexistingresourcesanddelayingtheneedforfurther
investmentsinequipmentandservices.Thatis,QoSenablesyouto:
Specifywhichtraffichashigherorlowerpriority,regardlessofcurrent
networkbandwidthortherelativeprioritysettingofthetrafficwhenitis
receivedontheswitch.
Change(upgradeordowngrade)thepriorityofoutboundtraffic.
Overrideillegalpacketprioritiessetbyupstreamdevicesorapplications
thatuse802.1QVLANtaggingwith802.1pprioritytags.
QoSontheswitchescoveredinthisguidesupportthesetypesoftraffic
marking:
802.1pprioritization:Controlstheoutboundportqueuepriorityfor
trafficleavingtheswitch,and(iftrafficexitsthroughaVLAN-taggedport)
sendstheprioritysettingwiththeindividualpacketstothedownstream
devices.
IPType-of-Service(ToS):Enablestheswitchtoset,change,andhonor
prioritizationpoliciesbyusingtheDifferentiatedServices(diffserv)bits
intheToSbyteofIPv4packetheaders.
5-5
QualityofService(QoS):ManagingBandwidthMoreEffectively
Introduction
Terminology
Term UseinThisDocument
802.1ppriority AtrafficprioritysettingcarriedbyaVLAN-taggedpacketmovingfromonedevicetoanotherthrough
portsthataretaggedmembersoftheVLANtowhichthepacketbelongs.Thissettingcanbefrom0-
7.Theswitchhandlesanoutboundpacketonthebasisofits802.1ppriority.However,ifthepacket
leavestheswitchthroughaVLANonwhichtheportisanuntaggedmember,thispriorityisdropped,
andthepacketarrivesatthenext,downstreamdevicewithoutan802.1ppriorityassignment.
802.1Qfield Afour-bytefieldthatispresentintheheaderofEthernetpacketsenteringorleavingtheswitchthrough
aportthatisataggedmemberofaVLAN.Thisfieldincludesan802.1pprioritysetting,aVLANtag,or
IDnumber(VID),andotherdata.Apacketenteringorleavingtheswitchthroughaportthatisan
untaggedmemberoftheoutboundVLANdoesnothavethisfieldinitsheaderandthusdoesnotcarry
aVIDoran802.1ppriority.Seealso802.1ppriority.
codepoint RefertoDSCP,below.
downstream Adevicelinkeddirectlyorindirectlytoanoutboundswitchport.Thatis,theswitchsendstrafficto
device downstreamdevices.
DSCP DifferentiatedServicesCodepoint.(Alsotermedcodepoint.)ADSCPiscomprisedoftheuppersixbits
oftheToS(Type-of-Service)byteinIPpackets.Thereare64possiblecodepoints.InthedefaultQoS
configurationfortheswitchescoveredinthisguide,somecodepointsareconfiguredwithdefault
802.1pprioritysettingsforAssured-ForwardingandExpeditedForwarding.Allothercodepointsare
unused(andlistedwithNo-overrideforapriority).
DSCPpolicy ADSCPconfiguredwithaspecific802.1ppriority(0- 7).(Default:No-override).UsingaDSCPpolicy,
youcanconfiguretheswitchtoassignprioritytoIPpackets.Thatis,foranIPpacketidentifiedbythe
specifiedclassifier,youcanassignanewDSCPandan802.1ppriority(0-7).FormoreonDSCP,refer
toDetailsofQoSIPType-of-Serviceonpage5-34.FortheDSCPmap,seefigure5-9onpage5-36.
edgeswitch IntheQoScontext,thisisaswitchthatreceivestrafficfromtheedgeoftheLANorfromoutsidethe
LANandforwardsittodeviceswithintheLAN.Typically,anedgeswitchisusedwithQoStorecognize
packetsbasedonclassifierssuchasTCP/UDPapplicationtype,IP-device(address),Protocol(LAN),
VLAN-ID(VID),andSource-Port(althoughitcanalsobeusedtorecognizepacketsonthebasisofToS
bits).Usingthispacketrecognition,theedgeswitchcanbeusedtoset802.1pprioritiesorDSCPpolicies
thatdownstreamdeviceswillhonor.
inboundport Anyportontheswitchthroughwhichtrafficenterstheswitch.
IPOptions InanIPv4packet,optional,theseareextrafieldsinthepacketheader.
IP-precedence TheupperthreebitsintheTypeofService(ToS)fieldofanIPpacket.
bits
IPv4 Version4oftheIPprotocol.
outbound ApacketleavingtheswitchthroughanyLANport.
packet
outboundport Anyportontheswitchthroughwhichtrafficleavestheswitch.
outboundport Foranyport,abufferthatholdsoutboundtrafficuntilitcanleavetheswitchthroughthatport.By
queue defaulttherearefouroutboundqueuesforeachportintheswitch.Trafficinaportshighpriorityqueue
leavestheswitchbeforeanytrafficintheportsmediumorlowpriorityqueues.Default:4queues
5-6
QualityofService(QoS):ManagingBandwidthMoreEffectively
Introduction
Term UseinThisDocument
re-marking AssignsanewQoSpolicytoanoutboundpacketbychangingtheDSCPbitsettingsintheToSbyte.
(DSCPre-
marking)
taggedport IdentifiesaportasbelongingtoaspecificVLANandenablesVLAN-taggedpacketsbelongingtothat
membership VLANtocarryan802.1pprioritysettingwhenoutboundfromthatport.Whereaportisanuntagged
memberofaVLAN,outboundpacketsbelongingtothatVLANdonotcarryan802.1pprioritysetting.
Type-of-Service Comprisedofathree-bit(high-order)precedencefieldandafive-bit(low-order)Type-of-Servicefield.
(ToS)byte Laterimplementationsmayusethisbyteasasix-bit(high-order)DifferentiatedServicesfieldanda
two-bit(low-order)reservedfield.SeealsoIP-precedencebitsandDSCPelsewhereinthistable.
upstream Adevicelinkeddirectlyorindirectlytoaninboundswitchport.Thatis,theswitchreceivestrafficfrom
device upstreamdevices.
Overview
QoSsettingsoperateontwolevels:
Controllingthepriorityofoutboundpacketsmovingthroughthe
switch:Configuringanew802.1ppriorityvalueallowsyoutosetthe
outboundpriorityqueuetowhichapacketissent.Forexample,youcan
configurean802.1ppriorityof0through7foranoutboundpacket.When
thepacketissenttoaport,theQoSprioritydeterminestheoutbound
queuetowhichthepacketisassignedasshownintable5-1.
Table5-1. 802.1pPrioritySettingsandOutboundQueueAssignment
802.1pPrioritySetting OutboundPortQueue
1and2 Lowpriority(1,2)
0or3 Normalpriority(3,4)
4and5 Mediumpriority(5,6)
6and7 Highpriority(7,8)
(Inan802.1QVLANenvironmentwithVLAN-taggedports,ifQoSisnot
configuredontheswitch,butisconfiguredonanupstreamdevice,the
prioritiescarriedinthepacketsdeterminetheforwardingqueuesinthe
switch.)
Configuringapriorityforoutboundpacketsandaservice(prior-
ity)policyforusebydownstreamdevices:
DSCPPolicy:Thisfeatureenablesyoutosetaprioritypolicyin
outboundIPpackets.(Youcanconfiguredownstreamdevicestoread
andusethispolicy.)ThismethodisnotdependentonVLAN-tagged
portstocarryprioritypolicytodownstreamdevices,andcan:
5-7
QualityofService(QoS):ManagingBandwidthMoreEffectively
Introduction
Changethecodepoint(theuppersixbits)intheToSbyte.
Setanew802.1ppriorityforthepacket.
(SettingDSCPpoliciesrequiresIPv4inboundpackets.Refertothe
IPv4entryunderTerminologyonpage5-6.)
802.1pPriorityRules:Anoutbound,VLAN-taggedpacketcarries
an802.1pprioritysettingthatwasconfigured(orpreserved)inthe
switch.Thisprioritysettingrangesfrom0to7,andcanbeusedby
downstreamdeviceshavinguptoeightoutboundportqueues.Thus,
ifpacketswithintheswitchmoveatthefourprioritylevelsshownin
table5-1,above,theystillcancarryan802.1pprioritythatcanbeused
bydownstreamdeviceshavingmoreorlessthanthefourpriority
levelsintheswitchescoveredinthisguide.Also,ifthepacketenters
theswitchwithan802.1pprioritysetting,QoScanoverridethis
settingifconfiguredwithan802.1ppriorityruletodoso.
No t e s IfyournetworkusesonlyoneVLAN(andthereforedoesnotrequire
VLAN-taggedports)youcanstillpreserve802.1pprioritysettingsin
yourtrafficbyconfiguringtheportsastaggedVLANmembersonthe
linksbetweendevicesyouwanttohonortrafficpriorities.
RuleandPolicyLimits:Theswitchescoveredinthisguideallow
uptofourhundred802.1ppriorityrulesand/orDSCPpoliciesinany
combination.Formoreinformation,refertoMaximumQoSConfig-
urationEntriesunderQoSOperatingNotesandRestrictionson
page5-64.
YoucanconfigureaQoSpriorityof0through7foranoutboundpacket.When
thepacketisthensenttoaport,theQoSprioritydetermineswhichoutbound
queuethepacketuses:
Table5-2. QoSPrioritySettingsandOperation
QoSPrioritySetting OutboundPortQueue
1-2 lowpriority
0-3 normalpriority
4-5 mediumpriority
6-7 highpriority
IfapacketisnotinaVLAN-taggedportenvironment,thentheQoSsettingsin
table5-2controlonlytowhichoutboundqueuethepacketgoes.WithoutVLAN
tagging,no802.1ppriorityisaddedtothepacketfordownstreamdeviceuse.
ButifthepacketisinaVLAN-taggedenvironment,thentheabovesettingis
5-8
QualityofService(QoS):ManagingBandwidthMoreEffectively
Introduction
alsoaddedtothepacketasan802.1ppriorityforusebydownstreamdevices
andapplications(shownintable5-3).Ineithercase,anIPpacketcanalso
carryaprioritypolicytodownstreamdevicesbyusingDSCP-markinginthe
ToSbyte.
Table5-3.MappingSwitchQoSPrioritySettingstoDeviceQueues
PrioritySetting OutboundPort 802.1pPrioritySettingAdded QueueAssignmentinDownstreamDevicesWith:
Queuesinthe
Switch
toTaggedVLANPackets
LeavingtheSwitch
8Queues 3Queues 2Queues
1
2
Queue1 1(lowpriority)
2
Queue1
Queue2
Queue1
Queue1
0
3
Queue2 0(normalpriority)
3
Queue3
Queue4
Queue2
4
5
Queue3 4(mediumpriority)
5
Queue5
Queue6
Queue7
Queue8
Queue3
Queue2
6
7
Queue4 6(highpriority)
7
Not e TheQoSqueueconfigurationfeaturecanchangethenumberofoutboundport
queuesintheswitchfromfour(thedefault)toeightqueuesortwoqueues.
Formoreinformation,seeQoSQueueConfigurationonpage5-61.
5-9
QualityofService(QoS):ManagingBandwidthMoreEffectively
Introduction
ClassifiersforPrioritizingOutboundPackets
Not e On Us i ng
Mul t i pl e
Cr i t er i a
ProCurverecommendsthatyouconfigureaminimumnumberoftheavailable
QoSclassifiersforprioritizinganygivenpackettype.Increasingthenumber
ofactiveclassifieroptionsforapackettypeincreasesthecomplexityofthe
possibleoutcomesandconsumesswitchresources.
PacketClassifiersandEvaluationOrder
TheswitchescoveredinthisguideprovidesixQoSclassifiers(packetcriteria)
youcanusetoconfigureQoSpriority.
Table5-4. ClassifierSearchOrderandPrecedence
Search
Order
Precedence QoSClassifierType
1 1(highest) UDP/TCPApplicationType(port)
2 2 DevicePriority(destinationorsourceIPaddress)
3 3 IPTypeofService(ToS)field(IPpacketsonly)
4 4 ProtocolPriority(IP,IPX,ARP,AppleTalk,SNA,andNetBeui)
5 5 VLANPriority
6 6 Incomingsource-portontheswitch
7 7(lowest) Incoming802.1ppriority(ThisdefaultvalueispresentintaggedVLAN
environments)
Wheremultipleclassifiertypesareconfigured,aswitchusesthehighest-to-
lowestsearchordershownintable5-4toidentifythehighest-precedence
classifiertoapplytoanygivenpacket.Whenamatchbetweenapacketanda
classifierisfound,theswitchappliestheQoSpolicyconfiguredforthat
classifierandthepacketishandledaccordingly.
Notethatontheswitchescoveredinthisguide,iftheswitchisconfigured
withmultipleclassifiersthataddressthesamepacket,theswitchusesonly
theQoSconfigurationfortheQoSclassifierthathasthehighestprecedence.
Inthiscase,theQoSconfigurationforanother,lower-precedenceclassifier
thatmayapplyisignored.Forexample,ifQoSassignshighprioritytopackets
belongingtoVLAN100,butnormalprioritytoallIPprotocolpackets,since
protocolpriority(4)hasprecedenceoverVLANpriority(5),IPprotocol
packetsonVLAN100willbesettonormalpriority.
5-10
QualityofService(QoS):ManagingBandwidthMoreEffectively
PreparationforConfiguringQoS
PreparationforConfiguringQoS
Preserving802.1pPriority
QoSoperatesinVLAN-taggedandVLAN-untaggedenvironments.Ifyour
networkdoesnotusemultipleVLANs,youcanstillimplementthe802.1Q
VLANcapabilityforpacketstocarrytheir802.1pprioritytothenextdown-
streamdevice.Todoso,configureportsasVLAN-taggedmembersonthelinks
betweenswitchesandroutersinyournetworkinfrastructure.
Table5-5. SummaryofQoSCapabilities
OutboundPacketOptions PortMembershipinVLANs
Tagged Untagged
ControlPortQueuePriorityforPacketTypes Yes Yes
Carry802.1pPriorityAssignmenttoNextDownstreamDevice Yes No
CarryDSCPPolicytoDownstreamDevices.Thepolicyincludes: Yes
1
Yes
1
AssigningaToSCodepoint
Assigningan802.1pPriority
2
totheCodepoint
1
Exceptfornon-IPv4packetsorpacketsprocessedusingeithertheLayer3ProtocolorQoS
IP-Precedencemethods,whichdonotincludetheDSCPpolicyoption.Also,touseaservice
policyinthismanner,thedownstreamdevicesmustbeconfiguredtointerpretandusethe
DSCPcarriedintheIPpackets.
2
Thisprioritycorrespondstothe802.1ppriorityschemeandisusedtodeterminethepackets
portqueuepriority.WhenusedinaVLAN-taggedenvironment,thispriorityisalsoassigned
asthe802.1pprioritycarriedoutboundinpacketshavingan802.1Qfieldintheheader.
StepsforConfiguringQoSontheSwitch
1. DeterminetheQoSpolicyyouwanttoimplement.Thisincludesanalyzing
thetypesoftrafficflowingthroughyournetworkandidentifyingoneor
moretraffictypestoprioritize.InorderofQoSprecedence,theseare:
a. UDP/TCPapplications
b. DevicePrioritydestinationorsourceIPaddress(Notethatdestina-
tionhasprecedenceoversource.SeeTable5-6.)
c. IPType-of-ServicePrecedenceBits(LeftmostthreebitsintheToS
fieldofIPpackets)
d. IPType-of-ServiceDifferentiatedServicebits(Leftmostsixbitsinthe
ToSfieldofIPpackets)
e. Layer3ProtocolPriority
5-11
QualityofService(QoS):ManagingBandwidthMoreEffectively
PreparationforConfiguringQoS
f. VLANPriority(requiresatleastonetaggedVLANonthenetwork)
g. Source-Port
h. Incoming802.1pPriority(requiresatleastonetaggedVLANonthe
network).InataggedVLANenvironment,theincoming802.1pprior-
ityisusedasthedefaultQoSclassifierifnoQoSclassifierwitha
higherprecedencematches
2. SelecttheQoSoptionyouwanttouse.Table5-6liststhetraffictypes(QoS
classifiers)andtheQoSoptionsyoucanuseforprioritizingorsettinga
policyonthesetraffictypes:
Table5-6. QoSMarkingSupportedbyQoSClassifiers
QoSClassifiers
TypeofQoSMarkingUsedto
PrioritizeOutboundTraffic
802.1pPriority
1
Only DSCPPolicy
2
:DSCPcodepointwith
802.1pPriority
UDP/TCP Supported Supported
IPDevice Supported Supported
IPPrecedence Supported
3
NotSupported
IPDiffServ Supported Supported
L3Protocol Supported NotSupported
VLANID Supported Supported
SourcePort Supported Supported
1
Whenyouconfigureonlythe802.1pprioritytomarkpacketsthatmatchaQoSclassifier,the
selectedtrafficisprioritizedandsenttothecorrespondingoutboundportqueueonthe
switch(seeTable5-1).VLAN-taggedportsarenecessarytocarrythe802.1ppriorityina
packetheadertodownstreamdevices.
2
WhenyouconfigureaDSCPpolicytomarkpacketsthatmatchaQoSclassifier,theselected
trafficisalsoprioritizedaccordingtotheassociated802.1ppriorityandsenttothe
correspondingoutboundportqueueontheswitch.VLAN-taggedportscarrythe802.1p
priorityinapacketheadertodownstreamdevices.Inaddition,youcanconfigure
downstreamdevicestoreadtheDSCPvalueinIPpacketsandimplementtheservicepolicy
impliedbythecodepoint.
3
WhenusingaQoSIPPrecedenceclassifier,the802.1ppriorityisautomaticallyassignedto
matchingpacketsbasedontheIPprecedencebitsetinthepacketheader.
3. Ifyouwant802.1pprioritysettingstobeincludedinoutboundpackets,
ensurethattaggedVLANsareconfiguredontheappropriatedownstream
links.
5-12
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
4. DeterminetheactualQoSconfigurationchangesyouwillneedtomake
oneachQoS-capabledeviceinyournetworkinordertoimplementthe
desiredpolicy.Also,ifyouwantdownstreamdevicestoreadanduse
DSCPsinIPpacketsfromtheswitch,configurethemtodosobyenabling
ToSDifferentiatedServicemodeandmakingsurethesameDSCPpolicies
areconfigured.
DemonstratingHowtheSwitchUsesResourcesinDSCP
Configurations. IfToSDiff-Servicesmodeisenabled,thenthirteenrules
areimmediatelyusedforthesecodepoints.AddinganewDSCPpolicy(for
example,001111witha5priority)andthenconfiguringToSDiff-Servicesto
assigninboundpacketswithacodepointof001010tothe001111policy
implementsallpoliciesconfiguredintheDSCPmapand,inthiscase,uses13
rulesoneforeachcodepointinvokedintheswitchscurrentDSCPconfigu-
ration(the13defaultcodepoints).AddinganotherDiff-Servicesassignment,
suchasassigninginboundpacketswithacodepointof000111totheExpe-
ditedForwardingpolicy(101110),woulduseonemoreruleonallports.
UsingQoSClassifiersToConfigure
QualityofServiceforOutboundTraffic
QoSFeature Default Menu CLI Web
UDP/TCPPriority Disabled page5-15 RefertoOnlineHelp.
IP-DevicePriority Disabled page5-22
IPType-of-ServicePriority Disabled page5-26
ProtocolPriority Disabled page5-37
VLAN-IDPriority Disabled page5-40
Source-PortPriority Disabled page5-45
Not e InadditiontotheinformationinthissectiononthevariousQoSclassifiers,
refertoQoSOperatingNotesandRestrictionsonpage5-64.
5-13
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
ViewingtheQoSConfiguration
Allofthesecommandsareavailableontheswitchescoveredinthisguide.
Examplesoftheshowqosoutputareincludedwiththeexampleforeach
prioritytype.
Syntax: showqos<priority-classifier>
tcp-udp-port-priority
DisplaysthecurrentTCP/UDPportpriorityconfigura-
tion.Refertofigure5-5onpage5-21.
device-priority
Displaysthecurrentdevice(IPaddress)prioritycon-
figuration.Refertofigure5-6onpage5-23.
dscp-map
DisplaysmappingsbetweenDSCPpolicyand802.1p
priority.
port-priority
Displaysthecurrentsource-portpriorityconfigura-
tion.Refertofigure5-19onpage5-46.
protocol-priority
Displaysthecurrentprotocolpriorityconfiguration.
queue-config
Displaystheoutboundportqueueconfigurationinfor-
mation.
resources
DisplaystheresourcesusedbythePolicyEnforcement
Engine.
type-of-service
Displaysthecurrenttype-of-servicepriorityconfigu-
ration.ThedisplayoutputdiffersaccordingtotheToS
optionused:
IPPrecedence:Refertofigure5-8onpage5-27.
Diffserve:Refertofigure5-11onpage5-31.
vlan-priority
DisplaysthecurrentVLANpriorityconfiguration.
Refertofigure5-16onpage5-42.
5-14
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
NoOverride
Bydefault,theIPToS,Protocol,VLAN-ID,and(source)portshowoutputs
automaticallylistNo-overrideforpriorityoptionsthathavenotbeenconfig-
ured.Thismeansthatifyoudonotconfigureapriorityforaspecificoption,
QoSdoesnotprioritizepacketstowhichthatoptionapplies,resultinginthe
Nooverridestate.
IPpacketsreceivedthroughaVLAN-taggedportaremanagedusingthe
802.1pprioritytheycarryinthe802.1Qfieldintheirheaders.
VLAN-taggedpacketsreceivedthroughanuntaggedportarehandledby
theswitchwithnormalpriority.
Forexample,Figure5-3belowshowstheQoSconfigurationsontheswitch
thatareconfiguredwiththeVLANIDclassifier.Notethatnon-default802.1p
prioritieshavebeenconfiguredforVLANIDs22and33;packetsreceivedon
VLAN1aremanagedwiththedefaultsettings,asdescribedinthetwobulleted
itemsabove.
Thisoutputshowsthat
VLAN1isinthedefault
state,whileVLANs22and
33havebeenconfigured
for802.1pandDSCPPolicy
prioritiesrespectively.
Figure5-3. ExampleoftheShowQoSOutputforVLANPriority
QoSUDP/TCPPriority
QoSClassifierPrecedence:1
WhenyouuseUDPorTCPandalayer4ApplicationportnumberasaQoS
classifier,trafficcarryingthespecifiedUDP/TCPportnumber(s)ismarked
withtheUDP/TCPclassifiersconfiguredprioritylevel,withoutregardforany
otherQoSclassifiersintheswitch.
Not e UDP/TCPQoSapplicationsaresupportedonlyforIPv4packetsonly.Formore
informationonpacket-typerestrictions,refertoDetailsofPacketCriteria
andRestrictionsforQoSSupport,onpage5-64.
5-15
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
OptionsforAssigningPriority.PrioritycontroloptionsforTCPorUDP
packetscarryingaspecifiedTCPorUDPportnumberinclude:
802.1ppriority
DSCPpolicy(AssigninganewDSCPandanassociated802.1ppriority;
inboundpacketsmustbeIPv4.)
ForagivenTCPorUDPportnumber,youcanuseonlyoneoftheabove
optionsatatime.However,fordifferentportnumbers,youcanusedifferent
options.Youcanhaveupto30rulesmaximumforallTCPorUDPportswith
assignedpriorities.
TCP/UDPPortNumberRanges. Therearethreeranges:
Well-KnownPorts:0-1023
RegisteredPorts:1024-49151
Dynamicand/orPrivatePorts:49152-65535
Formoreinformation,includingalistingofUDP/TCPportnumbers,gotothe
InternetAssignedNumbersAuthority(IANA)websiteat:
www.iana.org
Thenclickon:
ProtocolNumberAssignmentServices
P(UnderDirectoryofGeneralAssignedNumbersheading)
PortNumbers
Assigningan802.1pPriorityBasedonTCP
orUDPPortNumber
Thisoptionassignsan802.1ppriorityto(IPv4)TCPorUDPpacketsas
describedbelow.
Syntax: qos<udp-port|tcp-port><tcporudpportnumber|range<start end>>
priority<0-7>
Configuresan802.1ppriorityforoutboundpackets
havingthespecifiedTCPorUDPapplicationport
number.Thisprioritydeterminesthepacketsqueuein
theoutboundporttowhichitissent.Ifthepacketleaves
theswitchonataggedport,itcarriesthe802.1p
prioritywithittothenextdownstreamdevice.
(Default:Disabled)
5-16
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
port-numberisaTCP/UDPportnumberfrom1to
65535.
range<startend> specifiesarangeofTCP/UDPports;
seeOperatingNotesonUsingTCP/UDPPortRanges
onpage5-17.Ifyouspecifyarange,theminimumport
numbermustprecedethemaximumportnumberin
therange.
priority<0-7>marksthespecified802.1ppriorityin
matchingTCPorUDPpackets.
noqos<udp-port|tcp-port><tcp-udpportnumber|range<startend>>
DeletesthespecifiedUDPorTCPportnumberorrange
ofnumbersasQoSclassifiers.SeeOperatingNoteson
UsingTCP/UDPPortRangesonpage5-17
showqostcp-udp-port-priority
DisplaysalistingofallTCPandUDPQoSclassifiers
currentlyintherunning-configfile.
OperatingNotesonUsingTCP/UDPPortRanges
Youcanonlyhave6concurrentpolicieswhenusinguniqueranges.The
numberofpoliciesallowedislowerifACLsarealsousingportranges.
Youcannothaverangesthatincludeanyportnumbersthathavebeen
configuredaspartofanotherQoSapplicationportnumberpolicy.
Anerrormessageisgeneratediftherearenotenoughhardwareresources
availablewhenconfiguringapolicy.
Youmustspecifytheentirerangeofconfiguredportnumberswhenusing
thenoformofthecommand,forexample:
Pr oCur ve( conf i g) # qos udp- por t r ange 1300 1399 dscp 8
Pr oCur ve( conf i g) # no qos r ange 1300 1399
5-17
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Forexample,configureandlist802.1ppriorityforthefollowingUDPandTCP
portprioritization:
TCP/UDPPort 802.1pPriority
forTCP
802.1pPriority
forUDP
TCPPort23(Telnet) 7 7
UDPPort23(Telnet) 7 7
TCPPort80(World
WideWebHTTP)
2 2
UDPPort80(World
WideWebHTTP)
1 1
Valuesinthesetwo
columnsdefinethe
QoSclassifiersto
useforidentifying
packetstoprioritize.
Indicates802.1ppriority Showsthe802.1ppriority
assignmentsareinusefor assignmentforpackets
packetswith23or80asa withtheindicatedQoS
TCPorUDPApplication classifiers.
portnumber.
Figure5-4. ExampleofConfiguringandListing802.1pPriorityAssignmentson
TCP/UDPPorts
AssigningaDSCPPolicyBasedonTCPorUDPPortNumber
ThisoptionassignsapreviouslyconfiguredDSCPpolicy(codepointand
802.1ppriority)to(IPv4)TCPorUDPpacketshavingthespecifiedport
number.Theswitchdoesthefollowing:
5-18
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
1. SelectsanincomingIPpacketiftheTCPorUDPportnumberitcarries
matchestheportnumberspecifiedintheTCPorUDPclassifier(asshown
infigure5-4,above).
2. Overwrites(re-marks)thepacketsDSCPwiththeDSCPconfiguredinthe
switchforsuchpackets.
3. Assignsthe802.1ppriorityconfiguredintheswitchforthenewDSCP.
(RefertoDifferentiatedServicesCodepoint(DSCP)Mappingonpage5-
50.)
4. Forwardsthepacketthroughtheappropriateoutboundportqueue.
StepsforCreatingaDSCPPolicyBasedonTCP/UDPPortNumber
Classifiers.ThisprocedurecreatesaDSCPpolicyforIPv4packetscarrying
theselectedUDPorTCPport-numberclassifier.
1. IdentifytheTCPorUDPport-numberclassifieryouwanttousefor
assigningaDSCPpolicy.
2. DeterminetheDSCPpolicyforpacketscarryingtheselectedTCPorUDP
portnumber.
a. DeterminetheDSCPyouwanttoassigntotheselectedpackets.(This
codepointwillbeusedtooverwrite(re-mark)theDSCPcarriedin
packetsreceivedfromupstreamdevices.)
b. Determinethe802.1ppriorityyouwanttoassigntotheDSCP.
3. ConfiguretheDSCPpolicybyusingqosdscp-maptoconfigurethepriority
tothecodepointyouselectedinstep2a.(SeeDifferentiatedServices
Codepoint(DSCP)Mappingonpage5-50formoreinformation.)
4. ConfiguretheswitchtoassigntheDSCPpolicytopacketswiththe
specifiedTCPorUDPportnumber.
5-19
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Syntax: qos<udp-port|tcp-port><tcporudpportnumber|range<startend>>
dscp<codepoint>
AssignsaDSCPpolicytooutboundpacketshavingthe
specifiedTCPorUDPapplicationportnumberand
overwritestheDSCPinthesepacketswiththeassigned
<codepoint>value.Thispolicyincludesan802.1ppri-
orityanddeterminesthepacketsqueueintheout-
boundporttowhichitissent.(The<codepoint>mustbe
configuredwithan802.1psetting.Seestep3on5-19.)
Ifthepacketleavestheswitchonataggedport,it
carriesthe802.1pprioritywithittothenextdown-
streamdevice.(Default:No-override)
range<startend>specifiesarangeofTCP/UDPports;see
OperatingNotesonUsingTCP/UDPPortRangeson
page5-17.Ifyouspecifyarange,theminimumport
numbermustprecedethemaximumportnumberin
therange.
dscpcodepointoverwritestheDSCPcodepointinthe
IPv4ToSbyteorIPv6TrafficClassbyteofmatching
packetswiththespecifiedvalue.
ValidvaluesfortheDSCPcodepointareasfollows:
-Abinaryvalueforthesix-bitcodepointfrom000000
to111111.
-Adecimalvaluefrom0(lowpriority)to63(high
priority)thatcorrespondstoabinaryDSCPbitset
-AnASCIIstandardnameforabinaryDSCPbitset
Type?todisplaythelistofvalidcodepointentries.
noqos<udp-port|tcp-port><tcp-udpportnumber|range<startend>>
ThenoformofthecommanddeletesthespecifiedUDP
orTCPportnumberorrangeofportnumbersasaQoS
classifier.Ifyouconfiguredarangeofportnumbersas
theQoSclassifier,youmustentertheentirerangein
thenocommand;youcannotremovepartofarange.
showqostcp-udp-port-priority
DisplaysalistingofallTCPandUDPQoSclassifiers
currentlyintherunning-configfile.
5-20
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Forexample,supposeyouwantedtoassigntheseDSCPpoliciestothepackets
identifiedbytheindicatedUDPandTDPportapplications:
PortApplications DSCPPolicies
DSCP Priority
23-UDP 15 7
80-TCP 16 5
914-TCP 17 1
1001-UDP 17 1
AfterconfiguringtheDSCPpoliciesforthecodepointsyouwanttouse,assign
theDSCPpoliciestotheselectedUDP/TCPportapplicationsanddisplaythe
result.
Pr oCur ve( conf i g) # qos udp- por t 23 dscp 15
Pr oCur ve( conf i g) # qos t cp- por t 80 dscp 16
Pr oCur ve( conf i g) # qos t cp- por t 914 dscp 17
Pr oCur ve( conf i g) # qos udp- por t 1001 dscp 17
Pr oCur ve( conf i g) # show qos t cp- udp- por t - pr i or i t y
TCP/ UDP por t based pr i or i t i es
| I P Packet Appl i cat i on |
Pr ot ocol | Type Por t Appl y r ul e | DSCP Pr i or i t y
- - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - -
UDP | I PV4 23 DSCP | 15 7
TCP | I PV4 80 DSCP | 16 5
UDP | I PV4 1001
TCP | I PV4 914 DSCP | 17
| 17 1
1
DSCP
DSCPPolicy
Classifier
Figure5-5. TheCompletedDSCPPolicyConfigurationfortheSpecifiedUDP/TCPPortApplications
TheswitchwillnowapplytheDSCPpoliciesinfigure5-5toIPV4packets
receivedintheswitchwiththespecifiedUDP/TCPportapplications.This
meanstheswitchwill:
OverwritetheoriginalDSCPsintheselectedpacketswiththenewDSCPs
specifiedintheabovepolicies.
Assignthe802.1pprioritiesintheabovepoliciestotheselectedpackets.
5-21
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
QoSIP-DevicePriority
QoSClassifierPrecedence:2
TheIPdeviceoption,whichappliesonlytoIPv4packets,enablesyoutouse
upto256IPaddresses(sourceordestination)asQoSclassifiers.
Whereaparticulardevice-IPaddressclassifierhasthehighestprecedencein
theswitchfortrafficaddressedtoorfromthatdevice,thentrafficreceived
ontheswitchwiththataddressismarkedwiththeIPaddressclassifiers
configuredprioritylevel.DifferentIPdeviceclassifierscanhavediffering
prioritylevels.
Not e TheswitchdoesnotallowaQoSIP-devicepriorityfortheManagementVLAN
IPaddress,ifconfigured.IfthereisnoManagementVLANconfigured,then
theswitchdoesnotallowconfiguringaQoSIP-devicepriorityfortheDefault
VLANIPaddress.
OptionsforAssigningPriority.Prioritycontroloptionsforpacketscarry-
ingaspecifiedIPaddressinclude:
802.1ppriority
DSCPpolicy(AssigninganewDSCPandan802.1ppriority;inbound
packetsmustbeIPv4.)
(ForoperationwhenotherQoSclassifiersapplytothesametraffic,referto
ClassifiersforPrioritizingOutboundPacketsonpage5-10.)
ForagivenIPaddress,youcanuseonlyoneoftheaboveoptionsatatime.
However,fordifferentIPaddresses,youcanusedifferentoptions.
AssigningaPriorityBasedonIPAddress
Thisoptionassignsan802.1pprioritytoallIPv4packetshavingthespecified
IPaddressaseitherasourceordestination.(Ifbothmatch,thepriorityfor
theIPdestinationaddresshasprecedence.)
Syntax: qosdevice-priority<ip-address>priority<0-7>
Configuresan802.1ppriorityforoutboundpackets
havingthespecifiedIPaddress.Thisprioritydeter-
minesthepacketsqueueintheoutboundporttowhich
itissent.Ifthepacketleavestheswitchonatagged
port,itcarriesthe802.1pprioritywithittothenext
downstreamdevice.(Default:Disabled)
5-22
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
noqosdevice-priority<ip-address>
RemovesthespecifiedIPdevice-priorityQoSclassifier
andresetsthepriorityforthatVLANtoNo-override.
showqosdevice-priority
DisplaysalistingofallIPdevice-priorityQoSclassi-
fierscurrentlyintherunning-configfile.
Forexample,configureandlistthe802.1ppriorityforpacketscarryingthe
followingIPaddresses:
IPAddress 802.1pPriority
10.28.31.1 7
10.28.31.130 5
10.28.31.100 1
10.28.31.101 1
Figure5-6. ExampleofConfiguringandListing802.1pPriorityAssignmentsfor
PacketsCarryingSpecificIPAddresses
AssigningaDSCPPolicyBasedonIPAddress
ThisoptionassignsapreviouslyconfiguredDSCPpolicy(codepointand
802.1ppriority)tooutboundIPpacketshavingthespecifiedIPaddress(either
sourceordestination).Thatis,theswitch:
1. SelectsanincomingIPv4packetonthebasisofthesourceordestination
IPaddressitcarries.
5-23
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
2. OverwritesthepacketsDSCPwiththeDSCPconfiguredintheswitchfor
suchpackets,andassignsthe802.1ppriorityconfiguredintheswitchfor
thenewDSCP.(RefertoDifferentiatedServicesCodepoint(DSCP)
Mappingonpage5-50.)
3. Forwardsthepacketthroughtheappropriateoutboundportqueue.
StepsforCreatingaPolicyBasedonIPAddress.Thisprocedurecre-
atesaDSCPpolicyforIPv4packetscarryingtheselectedIPaddress(source
ordestination).
1. IdentifytheIPaddresstouseasaclassifierforassigningaDSCPpolicy.
2. DeterminetheDSCPpolicyforpacketscarryingtheselectedIPaddress:
a. DeterminetheDSCPyouwanttoassigntotheselectedpackets.(This
codepointwillbeusedtooverwritetheDSCPcarriedinpackets
receivedfromupstreamdevices.)
b. Determinethe802.1ppriorityyouwanttoassigntotheDSCP.
3. ConfiguretheDSCPpolicybyusingdscp-maptoconfigurethepriorityto
thecodepointyouselectedinstep2a.(Fordetails,refertoDifferentiated
ServicesCodepoint(DSCP)Mappingonpage5-50.)
4. ConfiguretheswitchtoassigntheDSCPpolicytopacketswiththe
specifiedIPaddress.
Syntax: qosdevice-priority<ip-address>dscp<codepoint>
AssignsaDSCPpolicytopacketscarryingthespecifiedIP
address,andoverwritestheDSCPinthesepacketswiththe
assigned<codepoint>value.Thispolicyincludesan802.1p
priorityanddeterminesthepacketsqueueintheoutbound
porttowhichitissent.Ifthepacketleavestheswitchona
taggedport,itcarriesthe802.1pprioritywithittothenext
downstreamdevice.(Default:No-override)
noqosdevice-priority<ip-address>
DeletesthespecifiedIPaddressasaQoSclassifier.
showqosdevice-priority
DisplaysalistingofallQoSDevicePriorityclassifiers
currentlyintherunning-configfile.
5-24
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Forexample,supposeyouwantedtoassigntheseDSCPpoliciestothepackets
identifiedbytheindicatedIPaddresses:
IPAddress DSCPPolicies
DSCP Priority
10.28.31.1 15 7
10.28.31.130 16 5
10.28.31.100 17 1
10.28.31.101 17 1
AssigntheDSCPpoliciestotheselecteddeviceIPaddressesanddisplaythe
result.
.
Pr oCur ve( conf i g) # qos devi ce- pr i or i t y 10. 28. 31. 1 dscp 15
Pr oCur ve( conf i g) # qos devi ce- pr i or i t y 10. 28. 31. 130 dscp 16
Pr oCur ve( conf i g) # qos devi ce- pr i or i t y 10. 28. 31. 100 dscp 17
Pr oCur ve( conf i g) # qos devi ce- pr i or i t y 10. 28. 31. 101 dscp 17
Pr oCur ve( conf i g) # show qos devi ce- pr i or i t y
Devi ce pr i or i t i es
Devi ce Addr ess Appl y r ul e | DSCP Pr i or i t y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - -
10. 28. 31. 1 DSCP 15 7
10. 28. 31. 130 DSCP 16 5
10. 28. 31. 100 DSCP 17 1
10. 28. 31. 101 DSCP 17 1
Figure5-7. TheCompletedDevice-Priority/CodepointConfiguration
TheswitchwillnowapplytheDSCPpoliciesinfigure5-7toIPv4packets
receivedontheswitchwiththespecifiedIPaddresses(sourceordestination).
Thismeanstheswitchwill:
OverwritetheoriginalDSCPsintheselectedpacketswiththenewDSCPs
specifiedintheabovepolicies.
Assignthe802.1pprioritiesintheabovepoliciestotheappropriate
packets.
5-25
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
QoSIPType-of-Service(ToS)PolicyandPriority
QoSClassifierPrecedence:3
Youcanassignamaximumof64ToSrules.ThisfeatureappliesonlytoIPv4
trafficandperformseitherofthefollowing:
ToSIP-PrecedenceMode:AllIPpacketsgeneratedbyupstreamdevices
andapplicationsincludeprecedencebitsintheToSbyte.Usingthismode,
theswitchusesthesebitstocomputeandassignthecorresponding802.1p
priority.
ToSDifferentiatedServices(Diffserv)Mode:Thismoderequires
knowledgeofthecodepointssetinIPpacketsbytheupstreamdevices
andapplications.ItusestheToScodepointinIPpacketscomingfrom
upstreamdevicesandapplicationstoassign802.1pprioritiestothepack-
ets.Youcanusethisoptiontodobothofthefollowing:
AssignaNewPrioritizationPolicy:Apolicyincludesbotha
codepointandacorresponding802.1ppriority.Thisoptionselectsan
incomingIPv4packetonthebasisofitscodepointandassignsanew
codepointandcorresponding802.1ppriority.(Usetheqosdscp-map
commandtospecifyapriorityforanycodepoint,seeDifferentiated
ServicesCodepoint(DSCP)Mappingonpage5-50.)
Assignan802.1pPriority:ThisoptionreadstheDSCPofan
incomingIPv4packetand,withoutchangingthiscodepoint,assigns
the802.1pprioritytothepacket,asconfiguredintheDSCPPolicy
Table(page5-50).Thismeansthatapriorityvalueof0-7mustbe
configuredforaDSCPbeforetheswitchwillattempttoperforma
QoSmatchonthepacketsDSCPbits.
BeforeconfiguringtheToSDiffservmode,youmustusetheqosdscp-map
commandtoconfigurethedesired802.1pprioritiesforthecodepointsyou
wanttouseforeitheroption.SeeDifferentiatedServicesCodepoint
(DSCP)Mappingonpage5-50formoreinformation.
UnlessIP-PrecedencemodeandDiffservmodearebothdisabled(thedefault
setting),enablingoneautomaticallydisablestheother.FormoreonToS
operation,refertoDetailsofQoSIPType-of-Serviceonpage5-34.
5-26
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Assigningan802.1pPrioritytoIPv4PacketsontheBasis
oftheToSPrecedenceBits
Ifadeviceorapplicationupstreamoftheswitchsetstheprecedencebitsin
theToSbyteofIPv4packets,youcanusethisfeaturetoapplythatsettingfor
prioritizingpacketsforoutboundportqueues.Iftheoutboundpacketsarein
ataggedVLAN,thispriorityiscarriedasan802.1pvaluetotheadjacent
downstreamdevices.
Syntax:qostype-of-serviceip-precedence
Causestheswitchtoautomaticallyassignan802.1pprior-
itytoallIPv4packetsbycomputingeachpackets802.1p
priorityfromtheprecedencebitsthepacketcarries.This
prioritydeterminesthepacketsqueueintheoutboundport
towhichitissent.Ifthepacketleavestheswitchonatagged
port,itcarriesthe802.1pprioritywithittothenext
downstreamdevice.(ToSIPPrecedenceDefault:Disabled)
noqostype-of-service
DisablesallToSclassifieroperation,includingprioritiza-
tionusingtheprecedencebits.
showqostype-of-service
Whenip-precedenceisenabled(orifneitherToSoptionis
configured),showstheToSconfigurationstatus.Ifdiff-
servicesisenabled,listscodepointdataasdescribedunder
AssigningaDSCPPolicyontheBasisoftheDSCPinIPv4
PacketsReceivedfromUpstreamDevicesonpage5-32.
Withthisoption,prioritizationofoutboundpacketsreliesontheIP-Prece-
dencebitsettingthatIPpacketscarrywiththemfromupstreamdevicesand
applications.Toconfigureandverifythisoption:
DefaultToSConfiguration CurrentToSConfiguration
Figure5-8. ExampleofEnablingToSIP-PrecedencePrioritization
5-27
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
ToreplacethisoptionwiththeToSdiff-servicesoption,justconfigurediff-
servicesasdescribedbelow,whichautomaticallydisablesIP-Precedence.To
disableIP-Precedencewithoutenablingthediff-servicesoption,usethis
command:
ProCurve(config)#noqostype-of-service
Assigningan802.1pPrioritytoIPv4Packetsonthe
BasisofIncomingDSCP
Oneofthebestusesforthisoptionisonaninteriorswitchwhereyouwant
tohonor(continue)apolicysetonanedgeswitch.Thatis,itenablesyouto
selectincomingpacketshavingaspecificDSCPandforwardthesepackets
withthedesired802.1ppriority.Forexample,ifanedgeswitchAmarksall
packetsreceivedonportA5withaparticularDSCP,youcanconfigurea
downstream(interior)switchBtohandlesuchpacketswiththedesired
priority(regardlessofwhether802.1QtaggedVLANsareinuse).
LAN
A5
Edge
Switch
A
LAN
Interior
Switch
B
Work-
Group
Work-
Group
MarkedTrafficfromportA5onEdgeSwitchA
OtherTraffic
Figure5-9. InteriorSwitchBHonorsthePolicyEstablishedinEdgeSwitchA
Todoso,assignthedesired802.1pprioritytothesamecodepointthatthe
upstreamoredgeswitchassignstotheselectedpackets.Whenthedown-
streamswitchreceivesanIPv4packetcarryingoneofthesecodepoints,it
assignstheconfiguredprioritytothepacketandsendsitouttheappropriate
priorityqueue.(Thepacketretainsthecodepointitreceivedfromthe
upstreamoredgeswitch).Youcanusethisoptionconcurrentlywiththe
diffservDSCPPolicyoption(describedlaterinthissection),aslongasthe
DSCPsspecifiedinthetwooptionsdonotmatch.
5-28
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
OperatingNotes DifferentapplicationsmayusethesameDSCPintheirIPpackets.Also,the
sameapplicationmayusemultipleDSCPsiftheapplicationoriginateson
differentclients,servers,orotherdevices.Usinganedgeswitchenablesyou
toselectthepacketsyouwantandmarkthemwithpredictableDSCPsthat
canbeusedbydownstreamswitchestohonorpoliciessetintheedgeswitch.
Whenenabled,theswitchappliesdirect802.1pprioritizationtoallpackets
havingcodepointsthatmeetthesecriteria:
Thecodepointisconfiguredwithan802.1ppriorityintheDSCPtable.
(CodepointsconfiguredwithNo-overridearenotused.)
ThecodepointisnotconfiguredforanewDSCPpolicyassignment.
Thus,theswitchdoesnotallowthesameincomingcodepoint(DSCP)tobe
usedsimultaneouslyfordirectlyassigningan802.1ppriorityandalsoassign-
ingaDSCPpolicy.Foragivenincomingcodepoint,ifyouconfigureoneoption
andthentheother,thesecondoverwritesthefirst.
Tousethisoption:
1. IdentifyaDSCPusedtosetapolicyinpacketsreceivedfromanupstream
oredgeswitch.
2. Determinethe802.1ppriority(0-7)youwanttoapplytopacketscarrying
theidentifiedDSCP.(Youcaneithermaintainthepriorityassignedinthe
upstreamoredgeswitch,orassignanewpriority.)
3. Useqosdscp-map<codepoint>priority<0-7>toassignthe802.1ppriority
youwanttothespecifiedDSCP.(Formoreonthistopic,refertoDiffer-
entiatedServicesCodepoint(DSCP)Mappingonpage5-50.)
4. Enablediff-services.
5-29
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
.
Syntax:qostype-of-servicediff-services<codepoint>
Causestheswitchtoreadthe<codepoint>(DSCP)ofan
incomingIPv4packetand,whenamatchoccurs,assigna
corresponding802.1ppriority,asconfiguredintheswitchs
DSCPtable(page5-50).
noqostype-of-service
DisablesallToSclassifieroperation.
noqosdscp-map<codepoint>
Disablesdirect802.1ppriorityassignmenttopacketscarry-
ingthe<codepoint>byreconfiguringthecodepointpriority
assignmentintheDSCPtabletoNo-override.Notethatifthis
codepointisinuseasaDSCPpolicyforanotherdiffserv
codepoint,youmustdisableorredirecttheotherdiffserv
codepointsDSCPpolicybeforeyoucandisableorchangethe
codepoint.Forexample,infigure5-11youcannotchange
thepriorityforthe000000codepointuntilyouredirectthe
DSCPpolicyfor000001awayfromusing000000asapolicy.
(RefertoNoteOnChangingaPrioritySettingonpage5-
56.ReferalsotoDifferentiatedServicesCodepoint(DSCP)
Mappingonpage5-50.)
showqostype-of-service
DisplayscurrentType-of-Serviceconfiguration.Indiffserv
modeitalsoshowsthecurrentdirect802.1passignments
andthecurrentDSCPassignmentscoveredlaterinthis
section.
Forexample,anedgeswitchAinanuntaggedVLANassignsaDSCPof
001000onIPpacketsitreceivesonportA6,andhandlesthepacketswithhigh
priority(7).WhenthesepacketsreachinteriorswitchByouwanttheswitch
tohandlethemwiththesamehighpriority.Toenablethisoperationyouwould
configurean802.1ppriorityof7forpacketsreceivedwithaDSCPof001000,
andthenenablediff-services:
5-30



QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Pr oCur ve( conf i g) # show qos t ype- of - ser vi ce
Type of Ser vi ce : Di f f er ent i at ed Ser vi ces
Executingthiscommand
displaysthecurrentToS
configurationandshowsthatthe
Codepoi nt DSCP Pol i cy | Pr i or i t y
selectedDSCPisnotcurrentlyin
use.
- - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - -
000000 | No- over r i de
000001 | No- over r i de
000010 | No- over r i de
000011 | No- over r i de
000100 | No- over r i de
000101 | No- over r i de
000110 | No- over r i de
000111 | No- over r i de
001000 | No- over r i de
001001 | No- over r i de
The001000codepointisunused,
andthusavailablefordirectly
assigningan802.1ppriority
withoutchangingthepackets
DSCP.
Note:Allcodepointswithouta
DSCPPolicyentryare
availablefordirect802.1ppriority
assignment.
Figure5-10. ExampleShowingCodepointsAvailableforDirect802.1pPriorityAssignments
Pr oCur ve( conf i g) # qos t ype- of - ser vi ce di f f - ser vi ces 8 dscp 11
Pr oCur ve( conf i g) # show qos t ype- of - ser vi ce
Type of Ser vi ce : Di f f er ent i at ed Ser vi ces
Codepoi nt DSCP Pol i cy | Pr i or i t y
- - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - -
000000 | No- over r i de
000001 | No- over r i de
000010 | No- over r i de
000011 | No- over r i de
000100 | No- over r i de
000101 16 | No- over r i de
000110 | No- over r i de
000111 15 | No- over r i de
001000 11 | 7
001001 | No- over r i de
OutboundIPpackets
withaDSCPof001000
willhaveapriorityof7.
Figure5-11. ExampleofaType-of-ServiceConfigurationEnablingBothDirect802.1pPriorityAssignment
andDSCPPolicyAssignment
5-31
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
AssigningaDSCPPolicyontheBasisoftheDSCPinIPv4
PacketsReceivedfromUpstreamDevices
Theprecedingsectiondescribeshowtoforwardapolicysetbyanedge(or
upstream)switch.ThisoptionchangesaDSCPpolicyinanIPv4packetby
changingitsIPToScodepointandapplyingthepriorityassociatedwiththe
newcodepoint.(ADSCPpolicyconsistsofadifferentiatedservicescodepoint
andanassociated802.1ppriority.)Youcanusethisoptionconcurrentlywith
thediffserv802.1ppriorityoption(above),aslongastheDSCPsspecifiedin
thetwooptionsdonotmatch.
Tousethisoptiontoconfigureachangeinpolicy:
1. IdentifyaDSCPusedtosetapolicyinpacketsreceivedfromanupstream
oredgeswitch.
2. Createanewpolicybyusingqosdscp-map<codepoint>priority<0- 7>to
configurean802.1ppriorityforthecodepointyouwillusetooverwrite
theDSCPthepacketcarriesfromupstream.(Formoreonthistopic,refer
toDifferentiatedServicesCodepoint(DSCP)Mappingonpage5-50.)
3. Useqostype-of-servicediff-services<incoming-DSCP>dscp<outgoing-
DSCP>tochangethepolicyonpacketscomingfromtheedgeorupstream
switchwiththespecifiedincomingDSCP.
(Figure5-9onpage5-28illustratesthisscenario.)
5-32
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
.
Syntax:qostype-of-servicediff-services
EnablesToSdiff-services.
Syntax:qostype-of-servicediff-services<current-codepoint>dscp
<new-codepoint>
ConfigurestheswitchtoselectanincomingIPpacketcarry-
ingthe<current-codepoint>andthenusethe<new-codepoint>
toassignanew,previouslyconfiguredDSCPpolicytothe
packet.Thepolicyoverwritesthe<current-codepoint>withthe
<new-codepoint>andassignsthe802.1ppriorityspecified
bythepolicy.(Usetheqosdscp-mapcommandtodefinethe
priorityfortheDSCPs5-50.)
Syntax:noqostype-of-service
DisablesallToSclassifieroperation.CurrentToSDSCP
policiesandprioritiesremainintheconfigurationandwill
becomeavailableifyoure-enableToSdiff-services.
Syntax:noqostype-of-service[diff-services<codepoint>]
DeletestheDSCPpolicyassignedtothe
<codepoint>andreturnsthe<codepoint>tothe802.1p
prioritysettingithadbeforetheDSCPpolicywasassigned.
(Thiswillbeeitheravaluefrom0-7orNo-override.)
Syntax:showqostype-of-service
Displaysalistingofcodepoints,withanycorresponding
DSCPpolicyre-assignmentsforoutboundpackets.Alsolists
the(802.1p)priorityforeachcodepointthatdoesnothavea
DSCPpolicyassignedtoit.
Forexample,supposeyouwanttoconfigurethefollowingtwoDSCPpolicies
forpacketsreceivedwiththeindicatedDSCPs.
Received Policy 802.1p PolicyName
DSCP DSCP Priority (Optional)
001100 17 6 Level6
001101 16 4 Level4
1. DeterminewhethertheDSCPsalreadyhavepriorityassignments,which
couldindicateusebyexistingapplications.Thisisnotaproblemaslong
astheconfiguredprioritiesareacceptableforallapplicationsusingthe
sameDSCP.(RefertotheNoteOnChangingaPrioritySettingonpage5-
5-33



QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
56.Also,aDSCPmusthaveapriorityconfiguredbeforeyoucanassign
anyQoSclassifierstouseit.SeeDifferentiatedServicesCodepoint
(DSCP)Mappingonpage5-50.)
2. AfterconfiguringtheDSCPpoliciesforthecodepointsyouwanttouse,
assignthepoliciestothecodepointsintheselectedpackettype.
.
Pr oCur ve( conf i g) # qos t ype- of - ser vi ce di f f - ser vi ces 001100 dscp 17
Pr oCur ve( conf i g) # qos t ype- of - ser vi ce di f f - ser vi ces 001101 dscp 16
Pr oCur ve( conf i g) # show qos t ype- of - ser vi ce
Type of Ser vi ce : Di f f er ent i at ed Ser vi ces
Codepoi nt DSCP Pol i cy | Pr i or i t y
- - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - -
000000 | No- over r i de
000001 | No- over r i de
000010 | No- over r i de
000011 | No- over r i de
000100 | No- over r i de
000101 | No- over r i de
000110 | No- over r i de
000111 | No- over r i de
001000 11 | 7
001001 | No- over r i de
001010
001011
| 1
| 7
ThespecifiedDSCPpolicies
overwritetheoriginalDSCPs
001110 | 2
001111 | No- over r i de
010000 | No- over r i de
010001 | No- over r i de
001100 17 | 6
001101 16 | 4
ontheselectedpackets,and
usethe802.1ppriorities
previouslyconfigured.
Figure5-12. ExampleofPolicyAssignmenttoOutboundPacketsontheBasisoftheDSCPinthePackets
ReceivedfromUpstreamDevices
DetailsofQoSIPType-of-Service
IPpacketsincludeaTypeofService(ToS)byte.TheToSbyteincludes:
ADifferentiatedServicesCodepoint(DSCP):Thiselementiscom-
prisedoftheuppersixbitsoftheToSbyte).Thereare64possible
codepoints.
5-34
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Intheswitchescoveredinthisguide,thedefaultqosconfiguration
includessomecodepointswith802.1pprioritysettingsforAssured-
ForwardingandExpeditedForwarding(codepoint101110),while
othersareunused(andlistedwithNo-overrideforaPriority).
Refertotable5-9on5-50foranillustrationofthedefaultDSCPpolicy
table.
Usingtheqosdscpmapcommand,youcanconfiguretheswitchtoassign
differentprioritizationpoliciestoIPv4packetshavingdifferentcode-
points.Asanalternative,youcanconfiguretheswitchtoassignanew
codepointtoanIPv4packet,alongwithacorresponding802.1ppriority
(0-7).Tousethisoptioninthesimplestcase,youwould:
a. ConfigureaspecificDSCPwithaspecificpriorityinanedgeswitch.
b. Configuretheswitchtomarkaspecifictypeofinboundtrafficwith
thatDSCP(andthuscreateapolicyforthattraffictype).
c. ConfiguretheinternalswitchesinyourLANtohonorthepolicy.
(Forexample,youcouldconfigureanedgeswitchtoassignacodepoint
of000001toallpacketsreceivedfromaspecificVLAN,andthenhandle
alltrafficwiththatcodepointathighpriority.)
Foracodepointlistingandthecommandsfordisplayingandchangingthe
DSCPPolicytable,refertoDifferentiatedServicesCodepoint(DSCP)
Mappingonpage5-50.
PrecedenceBits:ThiselementisasubsetoftheDSCPandiscomprised
oftheupperthreebitsoftheToSbyte.Whenconfiguredtodoso,the
switchusestheprecedencebitstodetermineapriorityforhandlingthe
associatedpacket.(Theswitchdoesnotchangethesettingoftheprece-
dencebits.)UsingtheToSPrecedencebitstoprioritizeIPv4packetsrelies
onprioritiessetinupstreamdevicesandapplications.
5-35
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Figure5-13showsanexampleoftheToSbyteintheheaderforanIPv4packet,
andillustratesthediffservbitsandprecedencebitsintheToSbyte.(Notethat
thePrecedencebitsareasubsetoftheDifferentiatedServicesbits.)
Field: Destination
MACAddress
SourceMAC
Address
802.1QField Type&
Version
ToSByte
Packet: FFFFFFFFFFFF 080009000016 0800 45 E0 ...
DifferentiatedServicesCodepoint
Rsvd.
Precedence
Bits
1 1 1 0 0 0 0 0
E 0
Figure5-13. TheToSCodepointandPrecedenceBits
Table5-7.HowtheSwitchUsestheToSConfiguration
OutboundPort ToSOption:
802.1p(Value=0-7) DifferentiatedServices
IPPacketSentOut DependingonthevalueoftheIP
anUntaggedPort PrecedencebitsinthepacketsToS
inaVLAN field,thepacketwillgotooneofeight
outboundportqueuesintheswitch.
SeetableTable5-1onpage5-7.
ForagivenpacketcarryingaToScodepointthattheswitch
hasbeenconfiguredtodetect:
Changethecodepointaccordingtotheconfiguredpolicy
andassignthe802.1ppriorityspecifiedforthenew
codepointintheDSCPPolicyTable(5-50).
Donotchangethecodepoint,butassignthe802.1ppriority
specifiedfortheexistingcodepointintheDSCPPolicy
Table(5-50).
Dependingonthe802.1ppriorityused,thepacketwillleave
theswitchthroughoneofthefollowingqueues:
1and2=lowpriority,exitsqueues1or2
0or3=normalpriority,exitsqueues3or4
4and5=mediumpriority,exitsqueues5or6
6and7=highpriority,exitsqueues7or8
IfNo-override(thedefault)hasbeenconfiguredfora
specifiedcodepoint,thenthepacketisnotprioritizedbyToS
and,bydefault,issenttothenormalpriorityqueue.
5-36
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
OutboundPort ToSOption:
802.1p(Value=0-7) DifferentiatedServices
IPPacketSentOut Sameasabove,plustheIPPrece-
anUntaggedPort dencevalue(0-7)willbeusedtoset
inaVLAN acorresponding802.1ppriorityinthe
VLANtagcarriedbythepackettothe
nextdownstreamdevice.Referto
table5-8,below.
Sameasabove,plusthePriorityvalue(0-7)willbeusedto
setacorresponding802.1ppriorityintheVLANtagcarriedby
thepackettothenextdownstreamdevice.WhereNo-over-
rideistheassignedpriority,theVLANtagcarriesa0(normal
priority)802.1psettingifnotprioritizedbyotherQoSclassi-
fiers.
Table5-8. ToSIP-PrecedenceBitMappingsto802.1pPriorities
ToSByteIP
PrecedenceBits
Corresponding
802.1pPriority
ServicePriorityLevel
000 1 Lowest
001 2 Low
002 0 Normal
003 3
004 4
005 5
006 6
007 7 Highest
AssigningaPriorityBasedonLayer-3Protocol
WhenQoSontheswitchisconfiguredwithaLayer-3protocolasthehighest-
precedenceclassifierandtheswitchreceivestrafficcarryingthatprotocol,
thenthistrafficisassignedthepriorityconfiguredforthisclassifier.(For
operationwhenotherQoSclassifiersapplytothesametraffic,referto
ClassifiersforPrioritizingOutboundPacketsonpage5-10.)
Syntax: qosprotocol
<ip|ipx|arp|appletalk|sna|netbeui>priority<0-7>
Configuresan802.1ppriorityforoutboundpackets
havingthespecifiedprotocol.Thisprioritydetermines
thepacketsqueueintheoutboundporttowhichitis
sent.Ifthepacketleavestheswitchonataggedport,it
carriesthe802.1pprioritywithittothenextdown-
streamdevice.YoucanconfigureoneQoSclassifierfor
eachprotocoltype.(Default:No-override)
5-37
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
noqosprotocol
<ip|ipx|arp|appletalk|sna|netbeui>
DisablesuseofthespecifiedprotocolasaQoSclassifier
andresetstheprotocolprioritytoNo-override.
showqosprotocol
ListstheQoSprotocolclassifierswiththeirpriority
settings.
Forexample:
1. ConfigureQoSprotocolclassifierswithIPat0(normal),ARPat5
(medium),andAppleTalkat7(high)anddisplaytheQoSprotocolconfig-
uration.
2. DisabletheQoSIPprotocolclassifier,downgradetheARPpriorityto4,
andagaindisplaytheQoSprotocolconfiguration.
Figure5-14showsthecommandsequenceanddisplaysfortheabovesteps.
5-38
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Pr oCur ve( conf i g) # qos pr ot ocol i p pr i or i t y 0
Pr oCur ve( conf i g) # qos pr ot ocol appl et al k pr i or i t y 7
Pr oCur ve( conf i g) # qos pr ot ocol ar p pr i or i t y 5
Pr oCur ve( conf i g) # show qos pr ot ocol
Pr ot ocol pr i or i t i es
Pr ot ocol Pr i or i t y
- - - - - - - - - - - - - - - - - -
I P 0
I PX No- over r i de
ARP 5
Appl eTal k 7
SNA No- over r i de
Net BEUI No- over r i de
Pr oCur ve( conf i g) # no qos pr ot ocol i p
Pr oCur ve( conf i g) # qos pr ot ocol ar p pr i or i t y 4
Pr oCur ve( conf i g) # show qos pr ot ocol
Pr ot ocol pr i or i t i es
Pr ot ocol Pr i or i t y
- - - - - - - - - - - - - - - - - -
I P No- over r i de
I PX No- over r i de
ARP 4
Appl eTal k 7
SNA No- over r i de
Net BEUI No- over r i de
ConfiguresIP,Appletalk,andARPas
QoSclassifiers.
Displaystheresultoftheabove
commands.
RemovesIPasaQoSclassifier.
ChangesthepriorityoftheARPQoS
classifier.
Displaystheresultofthesechanges.
Figure5-14. Adding,Displaying,Removing,andChangingQoSProtocolClassifiers
5-39
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
QoSVLAN-ID(VID)Priority
QoSClassifierPrecedence:5
TheQoSprotocoloptionenablesyoutouseupto256VIDsasQoSclassifiers.
WhereaparticularVLAN-IDclassifierhasthehighestprecedenceintheswitch
fortrafficinthatVLAN,thentrafficreceivedinthatVLANismarkedwiththe
VIDclassifiersconfiguredprioritylevel.DifferentVLAN-IDclassifierscan
havedifferingprioritylevels.
OptionsforAssigningPriority.Prioritycontroloptionsforpacketscarry-
ingaspecifiedVLAN-IDinclude:
802.1ppriority
DSCPpolicy(AssigninganewDSCPandanassociated802.1ppriority;
inboundpacketsmustbeIPv4.)
(ForoperationwhenotherQoSclassifiersapplytothesametraffic,referto
ClassifiersforPrioritizingOutboundPacketsonpage5-10.)
Not e QoSwithVIDpriorityappliestostaticVLANsonly,andapplyingQoSto
dynamicVLANscreatedbyGVRPoperationisnotsupported.AVLANmust
existwhileasubjectofaQoSconfiguration,andeliminatingaVLANfromthe
switchcausestheswitchtoclearanyQoSfeaturesconfiguredforthatVID.
AssigningaPriorityBasedonVLAN-ID
Thisoptionassignsaprioritytoalloutboundpacketshavingthespecified
VLAN-ID(VID).YoucanconfigurethisoptionbyeitherspecifyingtheVLAN-
IDaheadoftheqoscommandormovingtotheVLANcontextfortheVLAN
youwanttoconfigureforpriority.
5-40
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Syntax: vlan<vid>qospriority<0-7>
Configuresan802.1ppriorityforoutboundpacketsbelong-
ingtothespecifiedVLAN.Thisprioritydeterminesthe
packetsqueueintheoutboundporttowhichitissent.Ifthe
packetleavestheswitchonataggedport,itcarriesthe802.1p
prioritywithittothenextdownstreamdevice.Youcan
configureoneQoSclassifierforeachVLAN-ID.(Default:No-
override)
Syntax:novlan<vid>qos
RemovesthespecifiedVLAN-IDasaQoSclassifierandresets
thepriorityforthatVLANtoNo-override.
Syntax:showqosvlan-priority
DisplaysalistingoftheQoSVLAN-IDclassifierscurrently
intherunning-configfile,withtheirprioritydata.
1. Forexample,supposethatyouhavethefollowingVLANsconfiguredon
theswitchandwanttoprioritizethemasshown:
Pr oCur ve( conf i g) # show vl an
St at us and Count er s - VLAN I nf or mat i on
Maxi mumVLANs t o suppor t : 8
Pr i mar y VLAN : DEFAULT_VLAN
802. 1Q VLAN I D Name St at us
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 DEFAULT_VLAN st at i c
22 VLAN_22 st at i c
Figure5-15. ExampleofaListofVLANsAvailableforQoSPrioritization
2. YouwouldthenexecutethefollowingcommandstoprioritizetheVLANs
byVID:
5-41


QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Pr oCur ve( conf i g) # vl an 1 qos dscp 9
Pr oCur ve( conf i g) # vl an 22 qos dscp 8
Pr oCur ve( conf i g) # show qos vl an- pr i or i t y
VLAN pr i or i t i es
VLAN I D Appl y r ul e | DSCP Pr i or i t y
- - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - -
1 DSCP | 9 7
22 DSCP | 8 6
Figure5-16. ConfiguringandDisplayingQoSPrioritiesonVLANs
IfyouthendecidedtoremoveVLAN_22fromQoSprioritization:
Pr oCur ve( conf i g) # no vl an 22 qos
Pr oCur ve( conf i g) # show qos vl an
VLAN pr i or i t i es
VLAN I D Appl y r ul e | DSCP Pr i or i t y
- - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - -
1 DSCP | 9 7
22 No- over r i de | No- over r i de
Inthisinstance,No-override
indicatesthatVLAN22isnot
prioritizedbyQoS.
Figure5-17. ReturningaQoS-PrioritizedVLANtoNo-overrideStatus
AssigningaDSCPPolicyBasedonVLAN-ID(VID)
ThisoptionassignsapreviouslyconfiguredDSCPpolicy(codepointand
802.1ppriority)tooutboundIPpacketshavingthespecifiedVLAN-ID(VID).
Theswitchperformsthefollowing:
1. SelectsanincomingIPpacketonthebasisoftheVLAN-IDitcarries.
2. OverwritesthepacketsDSCPwiththeDSCPconfiguredintheswitchfor
suchpackets.
3. Assignsthe802.1ppriorityconfiguredintheswitchforthenewDSCP.
(RefertoDifferentiatedServicesCodepoint(DSCP)Mappingonpage5-
50.)
4. Forwardsthepacketthroughtheappropriateoutboundportqueue.
5-42
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
StepsforCreatingaPolicyBasedonVLAN-IDClassifier.
1. DeterminetheVLAN-IDclassifiertowhichyouwanttoassignaDSCP
policy.
2. DeterminetheDSCPpolicyforpacketscarryingtheselectedVLAN-ID:
a. DeterminetheDSCPyouwanttoassigntotheselectedpackets.(This
codepointwillbeusedtooverwritetheDSCPcarriedinpackets
receivedfromupstreamdevices.)
b. Determinethe802.1ppriorityyouwanttoassigntotheDSCP.
3. ConfiguretheDSCPpolicybyusingqosdscp-maptoconfigurethepriority
foreachcodepoint.(SeeDifferentiatedServicesCodepoint(DSCP)Map-
pingonpage5-50formoreinformation.)
4. ConfiguretheswitchtoassigntheDSCPpolicytopacketswiththe
specifiedVLAN-ID.
Syntax: vlan<vid>qosdscp<codepoint>
AssignsaDSCPpolicytopacketscarryingthespecified
VLAN-ID,andoverwritestheDSCPinthesepacketswiththe
assigned<codepoint>value.Thispolicyincludesan802.1p
priorityanddeterminesthepacketsqueueintheoutbound
porttowhichitissent.Ifthepacketleavestheswitchona
taggedport,itcarriesthe802.1pprioritywithittothenext
downstreamdevice.(Default:No-override)
Syntax:novlan<vid>qos
RemovesQoSclassifierforthespecifiedVLAN.
Syntax:showqosvlan-priority
DisplaysalistingofallQoSVLAN-IDclassifierscurrently
intherunning-configfile.
Forexample,supposeyouwantedtoassignthissetofpriorities:
VLAN-ID DSCP Priority
40 15 7
30 16 5
20 17 1
1 17 1
5-43
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
AssigntheDSCPpoliciestotheselectedVIDsanddisplaytheresult.
Pr oCur ve( conf i g) # vl an 1 qos dscp 17
Pr oCur ve( conf i g) # vl an 20 qos dscp 17
Pr oCur ve( conf i g) # vl an 30 qos dscp 16
Pr oCur ve( conf i g) # vl an 40 qos dscp 15
Pr oCur ve( conf i g) # show qos vl an- pr i or i t y
VLAN pr i or i t i es
VLAN I D Appl y r ul e | DSCP Pr i or i t y
- - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - -
1 DSCP | 17 1
20 DSCP | 17 1
30 DSCP | 16 5
40 DSCP | 15 7
Figure5-18. TheCompletedVID-DSCPPriorityConfiguration
TheswitchwillnowapplytheDSCPpoliciesinfigure5-18topacketsreceived
ontheswitchwiththespecifiedVLAN-IDs.Thismeanstheswitchwill:
OverwritetheoriginalDSCPsintheselectedpacketswiththenewDSCPs
specifiedintheabovepolicies.
Assignthe802.1pprioritiesintheabovepoliciestotheappropriate
packets.
5-44
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
QoSSource-PortPriority
QoSClassifierPrecedence:6
TheQoSsource-portoptionenablesyoutouseapacketssource-portonthe
switchasaQoSclassifier.Whereaparticularsource-portclassifierhasthe
highestprecedenceintheswitchfortrafficenteringthroughthatport,then
trafficreceivedfromtheportismarkedwiththesource-portclassifiers
configuredprioritylevel.Differentsource-portclassifierscanhavedifferent
prioritylevels.
OptionsforAssigningPriorityontheSwitch.Prioritycontroloptions
forpacketsfromaspecifiedsource-portinclude:
802.1ppriority
DSCPpolicy(AssigninganewDSCPandanassociated802.1ppriority;
inboundpacketsmustbeIPv4.)
(ForoperationwhenotherQoSclassifiersapplytothesametraffic,referto
ClassifiersforPrioritizingOutboundPacketsonpage5-10.)
OptionsforAssigningPriorityFromaRADIUSServer.Youcanusea
RADIUSservertoimposeaQoSsource-portpriorityduringan802.1Xport-
accessauthenticationsession.RefertotheRADIUSchapterintheAccess
SecurityGuideforyourswitch.
AssigningaPriorityBasedonSource-Port
Thisoptionassignsaprioritytoalloutboundpacketshavingthespecified
source-port.Youcanconfigurethisoptionbyeitherspecifyingthesource-port
aheadoftheqoscommandormovingtotheportcontextfortheportyouwant
toconfigureforpriority.(Ifyouareconfiguringmultiplesource-portswiththe
samepriority,youmayfinditeasiertousetheinterface<port-list>command
togototheportcontextinsteadofindividuallyconfiguringthepriorityfor
eachport.)
Syntax: interface<port-list>qospriority<0-7>
Configuresan802.1ppriorityforpacketsenteringthe
switchthroughthespecified(source)ports.Thispriority
determinesthepacketqueueintheoutboundport(s)towhich
trafficissent.Ifapacketleavestheswitchonataggedport,
itcarriesthe802.1pprioritywithittothenextdownstream
device.YoucanconfigureoneQoSclassifierforeachsource-
portorgroupofsource-ports.(Default:No-override)
5-45
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Syntax:nointerface<port-list>qos
Disablesuseofthespecifiedsource-port(s)forQoSclassi-
fier(s)andresetsthepriorityforthespecifiedsource-port(s)
toNo-override.
Syntax:showqosport-priority
ListstheQoSport-priorityclassifierswiththeirpriority
data.
Forexample,supposethatyouwanttoprioritizeinboundtrafficonthe
followingsource-ports:
Source-Port Priority
A1-A3 2
A4 3
B1,B4 5
C1-C3 6
Youwouldthenexecutethefollowingcommandstoprioritizetrafficreceived
ontheaboveports:
Figure5-19. ConfiguringandDisplayingSource-PortQoSPriorities
5-46
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
IfyouthendecidedtoremoveportA1fromQoSprioritization:
Inthisinstance,No-overrideindicates
thatportA1isnotprioritizedbyQoS.
Figure5-20. ReturningaQoS-PrioritizedVLANtoNo-overrideStatus
AssigningaDSCPPolicyBasedontheSource-Port
ThisoptionassignsapreviouslyconfiguredDSCPpolicy(codepointand
802.1ppriority)tooutboundIPpackets(receivedfromthespecifiedsource-
ports).Thatis,theswitch:
1. SelectsanincomingIPpacketonthebasisofitssource-portontheswitch.
2. OverwritesthepacketsDSCPwiththeDSCPconfiguredintheswitchfor
suchpackets.
3. Assignsthe802.1ppriorityconfiguredintheswitchforthenewDSCP.
(SeeDifferentiatedServicesCodepoint(DSCP)Mappingonpage5-50
formoreinformation.)
4. Forwardsthepacketthroughtheappropriateoutboundportqueue.
StepsforCreatingaPolicyBasedonSource-PortClassifiers.
Not e YoucanselectoneDSCPpersource-port.Also,configuringanewDSCPfor
asource-portautomaticallyoverwrites(replaces)anypreviousDSCPor
802.1ppriorityconfigurationforthatport.)
1. Identifythesource-portclassifiertowhichyouwanttoassignaDSCP
policy.
2. DeterminetheDSCPpolicyforpacketshavingtheselectedsource-port:
a. DeterminetheDSCPyouwanttoassigntotheselectedpackets.(This
codepointwillbeusedtooverwritetheDSCPcarriedinpackets
receivedthroughthesource-portfromupstreamdevices.)
b. Determinethe802.1ppriorityyouwanttoassigntotheDSCP.
5-47
QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
3. ConfiguretheDSCPpolicybyusingqosdscp-maptoconfigurethepriority
foreachcodepoint.(SeeDifferentiatedServicesCodepoint(DSCP)Map-
pingonpage5-50formoreinformation.)
4. ConfiguretheswitchtoassigntheDSCPpolicytopacketsfromthe
specifiedsource-port.
Syntax: interface<port-list>qosdscp<codepoint>
AssignsaDSCPpolicytopacketsfromthespecifiedsource-
port(s),andoverwritestheDSCPinthesepacketswiththe
assigned<codepoint>value.Thispolicyincludesan802.1p
priorityanddeterminesthepacketsqueueintheoutbound
porttowhichitissent.Ifthepacketleavestheswitchona
taggedport,itcarriesthe802.1pprioritywithittothenext
downstreamdevice.(Default:No-override)
Syntax:nointerface<port-list>qos
RemovesQoSclassifierforthespecifiedsource-port(s).
Syntax:showqossource-port
Displaysalistingofallsource-portQoSclassifierscurrently
intherunning-configfile.
5-48








QualityofService(QoS):ManagingBandwidthMoreEffectively
UsingQoSClassifiersToConfigureQualityofServiceforOutboundTraffic
Forexample,supposeyouwantedtoassignthissetofpriorities:
Source-Port DSCP Priority
2 15 7
1,3 16 5
4,5 17 1
AssigntheDSCPpoliciestotheselectedsource-portsanddisplaytheresult.
Pr oCur ve( conf i g) # i nt 4, 5
Pr oCur ve( et h- 4, 5) # qos dscp 17
Pr oCur ve( et h- 4, 5) # i nt 1, 3
Pr oCur ve( et h- 1, 3) # qos dscp 16
Pr oCur ve( et h- 1, 3) # i nt 2
Pr oCur ve( et h- 2) # qos dscp 15
Pr oCur ve( et h- 2) # show qos por t - pr i or i t y
Por t pr i or i t i es
Por t Appl y r ul e | DSCP Pr i or i t y Radi us Over r i de
- - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 No- over r i de | 16 5 No- over r i de
2 DSCP | 15 7 No- over r i de
3 No- over r i de | 16 5 No- over r i de
4 No- over r i de | 17 1 No- over r i de
5 No- over r i de | 17 1 No- over r i de
6 No- over r i de | No- over r i de No- over r i de
7 No- over r i de | No- over r i de No- over r i de
Figure5-21. TheCompletedSource-PortDSCP-PriorityConfiguration
RadiusOverrideField.DuringaclientsessionauthenticatedbyaRADIUS
server,theservercanimposeaportprioritythatappliesonlytothatclient
session.RefertotheRADIUSchapterintheAccessSecurityGuideforyour
switch.
5-49
QualityofService(QoS):ManagingBandwidthMoreEffectively
DifferentiatedServicesCodepoint(DSCP)Mapping
DifferentiatedServicesCodepoint
(DSCP)Mapping
Acodepointmusthavean802.1ppriorityassignment(0-7)beforeyoucan
configureapolicyforprioritizingpackets.Ifacodepointyouwanttouse
showsNo-overrideinthePrioritycolumnoftheDSCPmap(showqosdscp-map),
thenyoumustassigna0-7prioritybeforeproceeding(qosdscp-mappriority
command).
TheDSCPPolicyTableassociatesan802.1pprioritywithaspecificToSbyte
codepointinanIPv4packet.ThisenablesyoutosetaLANpolicythatoperates
independentlyof802.1QVLAN-tagging.
Inthedefaultstate,mostofthe64codepointsdonotassignan802.1ppriority,
asindicatedbyNo-overrideintable5-9.
YoucanusethefollowingcommandtolistthecurrentDSCPPolicytable.
Syntax: showqosdscp-map
DisplaystheDSCPPolicyTable.
Table5-9.TheDefaultDSCPPolicyTable
DSCPPolicy 802.1pTag PolicyName DSCPPolicy 802.1pTag PolicyName
0 No-override 32 No-override
1 No-override 33 No-override
2 No-override af41 6
3 No-override 35 No-override
4 No-override af42 6
5 No-override 37 No-override
6 No-override af43 7
7 No-override 39 No-override
8 No-override 40 No-override
9 No-override 41 No-override
af11 1 42 No-override
11 No-override 43 No-override
5-50
QualityofService(QoS):ManagingBandwidthMoreEffectively
DifferentiatedServicesCodepoint(DSCP)Mapping
af12 1 44 No-override
DSCPPolicy 802.1pTag PolicyName DSCPPolicy 802.1pTag PolicyName
13 No-override 45 No-override
af13 2 ef 7
15 No-override 47 No-override
16 No-override 48 No-override
17 No-override 49 No-override
af21 No-override 50 No-override
19 No-override 51 No-override
af22 0 52 No-override
21 No-override 53 No-override
af23 3 54 No-override
23 No-override 55 No-override
24 No-override 56 No-override
25 No-override 57 No-override
af31 4 58 No-override
27 No-override 59 No-override
af32 4 60 No-override
29 No-override 61 No-override
af33 5 62 No-override
31 No-override 63 No-override
ConfiguringDSCPPoliciesforCodepoints
UsethefollowingcommandstoconfigureorreconfigureDSCPpoliciesfor
codepoints.
5-51
QualityofService(QoS):ManagingBandwidthMoreEffectively
DifferentiatedServicesCodepoint(DSCP)Mapping
Syntax: qosdscp-map<codepoint>priority<0-7>[name<ascii-string>]
(Optional)Thiscommandisrequiredonlyifan802.1p
priorityisnotalreadyassignedtothespecified<codepoint>
intheDSCPPolicytable(seeTable5-9onpage5-50).
ValidvaluesforaDSCPcodepointareasfollows:
-Abinaryvalueforthesix-bitcodepointfrom000000to
111111.
-Adecimalvaluefrom0(lowpriority)to63(highpriority)
thatcorrespondstoabinaryDSCPbitset
-AnASCIIstandardnameforabinaryDSCPbitset:
af11(001010) af42(100100)
af12(001100) af43(100110)
af13(001110) ef(101110)
af21(010010)
af22(010100)
af23(010110)
af31(011010)
af32(011100)
af33(011110)
af41(100010)
default(000000)
Type?todisplaythelistofvalidcodepointentries.
WhentheswitchappliesthespecifiedDSCPpolicytoa
packet,theprioritydeterminesthepacketsqueueinthe
outboundporttowhichitissent.Ifthepacketleavesthe
switchonataggedport,itcarriesthe802.1pprioritywith
ittothenextdownstreamdevice.ForIPpackets,theDSCP
willbereplacedbythecodepointspecifiedinthiscommand.
(Default:No-overrideformostcodepoints.
noqosdscp-map<codepoint>
Reconfiguresthe802.1ppriorityfor<codepoint>toNo-over-
ride.Alsodeletesthecodepointpolicyname,ifconfigured.
noqosdscp-map<codepoint>name
Deletesonlythepolicyname,ifconfigured,for<codepoint>.
5-52
QualityofService(QoS):ManagingBandwidthMoreEffectively
DifferentiatedServicesCodepoint(DSCP)Mapping
StepsforConfiguringCodepoints
1. DeterminewhethertheDSCPsalreadyhavepriorityassignments,which
couldindicateusebyexistingapplications.(Also,aDSCPmusthavea
priorityconfiguredbeforeyoucanassignanyQoSclassifierstouseit.)
Pr oCur ve( conf i g) # show qos dscp- map
DSCP - > 802. p pr i or i t y mappi ngs
DSCP pol i cy 802. 1p t ag Pol i cy name
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0 No- over r i de
1 No- over r i de
2 No- over r i de
3 No- over r i de
4 No- over r i de
5 No- over r i de
6 No- over r i de
7 No- over r i de
8 No- over r i de
9 No- over r i de
af 11 1
11 7
af 12 1
13 No- over r i de
af 13 2
15 No- over r i de
16 No- over r i de
17 No- over r i de
TheDSCPsforthisexample
havenotyetbeenassigned
an802.1pprioritylevel.
af 21 0
Figure5-22. DisplaytheCurrentDSCPMapConfiguration
2. ConfiguretheDSCPpoliciesforthecodepointsyouwanttouse.
5-53
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
QualityofService(QoS):ManagingBandwidthMoreEffectively
DifferentiatedServicesCodepoint(DSCP)Mapping
Pr oCur ve( conf i g) # qos dscp- map 15 pr i or i t y 7
Pr oCur ve( conf i g) # qos dscp- map 16 pr i or i t y 5
Pr oCur ve( conf i g) # qos dscp- map 17 pr i or i t y 1
Pr oCur ve( conf i g) # show qos dscp- map
DSCP - > 802. p pr i or i t y mappi ngs
DSCP pol i cy 802. 1p t ag Pol i cy name
0 No- over r i de
1 No- over r i de
2 No- over r i de
3 No- over r i de
4 No- over r i de
5 No- over r i de
6 No- over r i de
7 No- over r i de
8 No- over r i de
9 No- over r i de
af 11 1
11 7
af 12 1
13 No- over r i de
af 13 2
15
16
17
7
5
1
DSCPPolicies
ConfiguredinthisStep
Figure5-23. AssignPrioritiestotheSelectedDSCPs
DefaultPrioritySettingsforSelectedCodepoints
Inafewcases,suchas001010(af21)and001100(af43),adefaultpolicy
(impliedbytheDSCPstandardsforAssured-ForwardingandExpedited-
Forwarding)isused.Youcanchangetheprioritiesforthedefaultpoliciesby
usingqosdscp-map<codepoint>priority<0-7>.(Thesepoliciesarenotin
effectunlessyouhaveeitherappliedthepoliciestoaQoSclassifieror
configuredQoSType-of-Servicetobeindiff-servicesmode.)
QuicklyListingNon-DefaultCodepointSettings
Table5-9liststheswitchsdefaultcodepoint/prioritysettings.Ifyouchange
thepriorityofanycodepointsettingtoanon-defaultvalueandthenexecute
writememory,theswitchwilllistthenon-defaultsettingintheshowconfig
display.Forexample,inthedefaultconfiguration,thefollowingcodepoint
settingsaretrue:
5-54
13
QualityofService(QoS):ManagingBandwidthMoreEffectively
DifferentiatedServicesCodepoint(DSCP)Mapping
Codepoint Default
Priority
af11 1
No-override
af13 2
Ifyouchangeallthreesettingstoapriorityof3,andthenexecutewritememory,
theswitchwillreflectthesechangesintheshowconfiglisting:
Pr oCur ve( conf i g) # qos dscp- map af 11 pr i or i t y 3
Pr oCur ve( conf i g) # qos dscp- map 13 pr i or i t y 3
Pr oCur ve( conf i g) # qos dscp- map af 13 pr i or i t y 3
Pr oCur ve( conf i g) # wr i t e memor y
Configurethesethreecodepoints
Pr oCur ve( conf i g) # show conf i g
withnon-defaultpriorities.
St ar t up conf i gur at i on:
; J 9146 Conf i gur at i on Edi t or ; Cr eat ed on r el ease W. 14. XX
host name Pr oCur ve
t i me dayl i ght - t i me- r ul e None
qos dscp- map af 11 pr i or i t y 3
qos dscp- map 13 pr i or i t y 3
qos dscp- map af 13 pr i or i t y 3
.
Showconfigliststhenon
defaultcodepointsettings.
.
.
Figure5-24. ExampleofShowConfigListingwithNon-DefaultPrioritySettingsin
theDSCPTable
EffectofNo-override. IntheQoSType-of-Servicedifferentiatedservices
mode,aNo-overrideassignmentforthecodepointofanoutboundpacket
meansthatQoSiseffectivelydisabledforsuchpackets.Thatis,QoSdoesnot
affectthepacketqueuingpriorityorVLANtagging.Inthiscase,thepackets
arehandledasfollows(aslongasnootherQoSfeaturecreatespriority
assignmentsforthem):
802.1QStatus Outbound802.1p
Priority
ReceivedandForwardedonataggedportmemberofaVLAN. Unchanged
ReceivedonanUntaggedportmemberofaVLAN;Forwardedona 0(zero)normal
taggedportmemberofaVLAN.
ForwardedonanUntaggedportmemberofaVLAN. None
5-55
QualityofService(QoS):ManagingBandwidthMoreEffectively
DifferentiatedServicesCodepoint(DSCP)Mapping
NoteOnChangingaPrioritySetting
IfaQoSclassifierisusingapolicy(codepointandassociatedpriority)inthe
DSCPPolicytable,youmustdeleteorchangethisusagebeforeyoucan
changetheprioritysettingonthecodepoint.Otherwisetheswitchblocksthe
changeanddisplaysthismessage:
CannotmodifyDSCPPolicy<codepoint>-inusebyotherqosrules.
Inthiscase,useshowqos<classifier>toidentifythespecificclassifiersusing
thepolicyyouwanttochange;thatis:
showqosdevice-priority
showqosport-priority
showqostcp-udp-port-priority
showqosvlan-priority
showqostype-of-service
Forexample,supposethatthe000001(dscp1)codepointhasapriorityof6,
andseveralclassifiersusethe000001codepointtoassignaprioritytotheir
respectivetypesoftraffic.Ifyouwantedtochangethepriorityofcodepoint
000001youwoulddothefollowing:
1. IdentifywhichQoSclassifiersusethecodepoint.
2. ChangetheclassifierconfigurationsbyassigningthemtoadifferentDSCP
policy,ortoan802.1ppriority,ortoNo-override.
3. Reconfigurethedesiredpriorityforthe000001(dscp1)codepoint.
4. Eitherreassigntheclassifierstothe00001(dscp1)codepointpolicyor
leavethemastheywereafterstep2,above.
ExampleofChangingthePrioritySettingonaPolicy
WhenOneorMoreClassifiersAreCurrentlyUsingthePolicy
Supposethatcodepoint1isinusebyoneormoreclassifiers.Ifyoutryto
changeitspriority,youseearesultsimilartothefollowing:
Pr oCur ve( conf i g) # qos dscp- map 1 pr i or i t y 2
Cannot modi f y DSCP Pol i cy 1 - i n use by ot her qos r ul es.
Figure5-25. ExampleofTryingToChangethePriorityonaPolicyInUsebya
Classifier
Inthiscase,youwouldusestepssimilartothefollowingtochangethepriority.
5-56







QualityofService(QoS):ManagingBandwidthMoreEffectively
DifferentiatedServicesCodepoint(DSCP)Mapping
1. Identifywhichclassifiersusethecodepointyouwanttochange.
Pr oCur ve( conf i g) # show qos devi ce- pr i or i t y
Devi ce pr i or i t i es
Devi ce Addr ess Appl y Rul e | DSCP Pr i or i t y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
10. 26. 50. 104 DSCP | 1 6
Pr oCur ve( conf i g) # show qos por t - pr i or i t y
Por t pr i or i t i es
Por t Appl y r ul e | DSCP Pr i or i t y Radi us Over r i de
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 No- over r i de | No- over r i de No- over r i de
2 No- over r i de |
| 1
No- over r i de No- over r i de
3 DSCP 6 No- over r i de
4 No- over r i de | No- over r i de No- over r i de
.
.
.
Pr oCur ve( conf i g) # show qos t cp- udp- por t - pr i or i t y
Threeclassifiersuse
thecodepointthatis
tobechanged.
TCP/ UDP por t based pr i or i t i es
| Appl i cat i on |
Pr ot ocol | Por t Appl y r ul e | DSCP Pr i or i t y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
UDP | 1260 DSCP 6 | 1
Figure5-26. ExampleofaSearchtoIdentifyClassifiersUsingaCodepointYouWantToChange
5-57
QualityofService(QoS):ManagingBandwidthMoreEffectively
DifferentiatedServicesCodepoint(DSCP)Mapping
2. ChangetheclassifierconfigurationsbyassigningthemtoadifferentDSCP
policy,ortoan802.1ppriority,ortoNo-override.Forexample:
a. Deletethepolicyassignmentforthedevice-priorityclassifier.(Thatis,
assignittoNo-override.)
b. CreateanewDSCPpolicytouseforre-assigningtheremaining
classifiers.
c. Assigntheport-priorityclassifiertothenewDSCPpolicy.
d. Assigntheudp-port1260classifiertoan802.1ppriority.
a) Pr oCur ve( conf i g) # no qos devi ce- pr i or i t y 10. 26. 50. 104
b) Pr oCur ve( conf i g) # qos dscp- map 5 pr i or i t y 6
c) Pr oCur ve( conf i g) # i nt 3 qos dscp 5
d) Pr oCur ve( conf i g) # qos udp- por t 1260 pr i or i t y 2
3. Reconfigurethedesiredpriorityforthe000001(dscp1)codepoint.
ProCurve(config)#qosdscp-map1priority4
4. Youcouldnowre-assigntheclassifierstotheoriginalpolicycodepointor
leavethemascurrentlyconfigured.
5-58
QualityofService(QoS):ManagingBandwidthMoreEffectively
IPMulticast(IGMP)InteractionwithQoS
IPMulticast(IGMP)Interactionwith
QoS
IGMPhigh-priority-forwardcausestheswitchtoservicethesubscribedIP
multicastgrouptrafficathighpriority,evenifQoSontheswitchhasrelegated
thetraffictoalowerpriority.ThisdoesnotaffectanyQoSprioritysettings,
sotheQoSpriorityishonoredbydownstreamdevices.However,QoSdoes
takeprecedenceoverIGMPnormal-prioritytraffic.
TheswitchsabilitytoprioritizeIGMPtrafficforeitheranormalorhigh
priorityoutboundqueueoverridesanyQoScriteria,anddoesnotaffectany
802.1pprioritysettingstheswitchmayassign.Foragivenpacket,ifbothIGMP
highpriorityandQoSareconfigured,theQoSclassificationoccursandthe
switchmarksthepacketfordownstreamdevices,butthepacketisserviced
bythehigh-priorityqueuewhenleavingtheswitch.
IGMPHigh
Priority
QoSConfiguration
AffectsPacket
SwitchPortOutput
Queue
Outbound802.1pSetting
(RequiresTaggedVLAN)
NotEnabled Yes DeterminedbyQoS DeterminedbyQoS
Enabled Seeabovepara- High AsdeterminedbyQoSifQoSis
graph. active.
5-59
QualityofService(QoS):ManagingBandwidthMoreEffectively
QoSMessagesintheCLI
QoSMessagesintheCLI
Message Meaning
DSCPPolicy<decimal-codepoint>not
configured
CannotmodifyDSCPPolicy<codepoint>-in
usebyotherqosrules.
YouhaveattemptedtomapaQoSclassifierto
acodepointforwhichthereisnoconfigured
priority(No-override).Usetheqosdscp-map
commandtoconfigureapriorityforthe
codepoint,thenmaptheclassifiertothe
codepoint.
YouhaveattemptedtomapaQoSclassifierto
acodepointthatisalreadyinusebyotherQoS
classifiers.Beforeremappingthecodepoint
toanewpriority,youmustreconfigurethe
otherQoSclassifierssothattheydonotuse
thiscodepoint.YoucanhavemultipleQoS
classifiersusethissamecodepointaslongas
itisacceptableforallsuchclassifierstouse
thesamepriority.
5-60
QualityofService(QoS):ManagingBandwidthMoreEffectively
QoSQueueConfiguration
QoSQueueConfiguration
QoSqueueconfigurationallowsyoutoreducethenumberofoutboundqueues
thatallswitchportswillusetobufferpacketsfor802.1puserpriorities.By
default,therearefourpriorityqueuesortrafficclasses.Usingthisfeature,you
canreconfiguretheswitchtoeight-queuemode,ortwo-queuemode,to
increasetheavailablebandwidthperqueue.
Usethefollowingcommandstochangethenumberofqueuesperportand
displaythecurrentpriorityqueueconfigurationontheswitch.
Syntax: qosqueue-config<2-queues|4-queues|8-queues>
Configuresthenumberofoutboundpriorityqueuesforall
portsontheswitchusingoneofthefollowingoptions:
2-queues,4-queues,or8-queues.
(Default:4queues)
Caution: Thiscommandwillexecuteawritememory
followedbyanimmediatereboot,replacingtheStartupcon-
figurationwiththecontentofthecurrentRunningconfigu-
ration.
Thenewconfigurationwill:
1. Remove any previously configured bandwidth-min
output settings
2. Set the new number of outbound port queues
Ifyouselectanythingbutyesforthisoperation,theoper-
ationisabortedandamessagestatingOperationaborted
appears.
showqosqueueconfig
Displaysthecurrentqosqueueconfiguration.
MappingofOutboundPortQueues.Themappingof802.1pprioritiesto
outboundportqueuesisshowninTable5-10.
5-61
QualityofService(QoS):ManagingBandwidthMoreEffectively
QoSQueueConfiguration
Table5-10. Mapping802.1pPrioritiestoOutboundQueues
802.1p
Priority
8Queues
(default)
4Queues 2Queues
1(lowest) 1
1
1
2 2
0(normal) 3
2
3 4
4 5
3
2
5 6
6 7
4
7(highest) 8
ConfiguringtheNumberofPriorityQueues
Tochangethenumberofoutboundpriorityqueuesforallportsontheswitch,
usetheqosqueue-configcommand.
Ca u t i o n Thiscommandwillexecuteawritememoryfollowedbyanimmediatereboot,
replacingtheStartupconfigurationwiththecontentsofthecurrentRunning
configuration.
Forexample,tochangethenumberofoutboundpriorityqueuesforallports
ontheswitchfromfourqueues(thedefault)totwo:
1. Specifythenumberofoutboundpriorityqueuestobeconfiguredusing
theqosqueue-configcommand.
Pr oCur ve( conf i g) # qos queue- conf i g 2- queues
Acautionmessageappears(seeCautionabovefordetails)concluding
withthefollowingprompt.
Do you wi sh t o pr oceed? [ Pr oceed/ Cancel ]
2. TypeProceedtocontinue.
Asecondconfirmationpromptappears:
Pl ease conf i r mr eset . [ Yes/ Cancel ]
3. TypeYestoinitiateawritememoryfollowedbyanimmediatereboot
(enteringCancelateitherofthetwopromptswillcancelthecommand
andmaintainthecurrentqueueconfigurationontheswitch).
5-62


QualityofService(QoS):ManagingBandwidthMoreEffectively
QoSQueueConfiguration
Thechangeswillbecommittedtothestartupconfigurationandtheswitch
willrebootautomaticallywiththenewpriorityqueuechangesineffect.
ViewingtheQoSQueueConfiguration
Todisplaythecurrentpriorityqueueconfigurationandmemoryallocations
perqueue,usetheshowqosqueue-configcommand.
Pr oCur ve( conf i g) # show qos queue- conf i g
Out bound Por t Queue Conf i gur at i on
802. 1p
Queue Pr i or i t y Memor y %
- - - - - - - - - - - - - - - - - - - - -
1 1- 2 30
2 0, 3 70
Figure5-27. DisplayingQoSQueueConfiguration
5-63
QualityofService(QoS):ManagingBandwidthMoreEffectively
QoSOperatingNotesandRestrictions
QoSOperatingNotesandRestrictions
Table5-11.DetailsofPacketCriteriaandRestrictionsforQoSSupport
Packet
Criteriaor
Restriction
QoSClassifiers DSCP
Overwrite
(Re-
Marking)
UDP/TCP Device
Priority(IP
Address)
IPType-of-
Service
Layer3
Protocol
VLAN Source
Port
Incoming
802.1p
Restrictedto
IPv4Packets
Only
Yes Yes Yes No No No No Yes
AllowPackets
withIPOptions
1
Yes Yes Yes Yes Yes Yes Yes No
SupportIPv6
Packets
1
No No No Yes Yes Yes Yes No
1
ForexplicitQoSsupportofIPv6packets,forceIPv6trafficintoitsownsetofVLANsandthenconfigureVLAN-based
classifiersforthoseVLANs.
AllSwitches:ForexplicitQoSsupportofIPsubnets,ProCurverecom-
mendsforcingIPsubnetsontoseparateVLANsandthenconfiguring
VLAN-basedclassifiersforthoseVLANs.
ForDevicesthatDoNotSupport802.1QVLAN-TaggedPorts:
Forcommunicationbetweenthesedevicesandtheswitch,connect
thedevicetoaswitchportconfiguredasUntaggedfortheVLANin
whichyouwantthedevicestraffictomove.
PortTaggingRules:Foraportontheswitchtobeamemberofa
VLAN,theportmustbeconfiguredaseitherTaggedorUntaggedfor
thatVLAN.AportcanbeanuntaggedmemberofonlyoneVLANof
agivenprotocoltype.Otherwise,theswitchcannotdeterminewhich
VLANshouldreceiveuntaggedtraffic.FormoreonVLANs,referto
chapter2,StaticVirtualLANs(VLANs).
MaximumQoSConfigurationEntries:Theswitchescoveredinthis
guideacceptthemaximumoutboundpriorityand/orDSCPpolicyconfig-
urationentriesshownintable5-12.
5-64
QualityofService(QoS):ManagingBandwidthMoreEffectively
QoSOperatingNotesandRestrictions
Table5-12. MaximumQoSEntries.
Switch Software
Version
Maximum
QoSEntries
Notes
Switch2910al W.14.XX 250 Eachdevice(IPaddress)QoS
configurationusestwoentries.
EachTCP/UDPportQoSconfiguration
usesfourentries.
Allotherclassifierconfigurationsuse
oneentryeach.
*Configuringdevice(IPaddress)orTCP/UDPQoSentriesreducesthismaximum.Seethe
Notescolumn.
Attemptingtoexceedtheabovelimitsgeneratesthefollowingmessageinthe
CLI:
Unabl e t o add t hi s QoS r ul e.
NotSupported:Useofaninbound802.1ppacketpriorityasaclassifier
forremappingapacketsoutboundprioritytodifferent802.1ppriority.
Forexample,whereinboundpacketscarryan802.1ppriorityof1,QoS
cannotbeconfiguredusethispriorityasaclassifierforchangingthe
outboundpriorityto0.
MonitoringSharedResources:TheQoSfeaturesharesinternalswitch
resourceswithseveralotherfeatures.Forinformationondeterminingthe
currentresourceavailabilityandusage,refertotheappendixtitledMon-
itoringResourcesintheManagementandConfigurationGuideforyour
switch.
5-65
QualityofService(QoS):ManagingBandwidthMoreEffectively
QoSOperatingNotesandRestrictions
5-66

Vous aimerez peut-être aussi