© Copyright Lenovo 2017 Chapter 12: Quality of Service 225
Queuing and Scheduling
TheCN4093canbeconfiguredtohaveeither2or8outputClassofService(COS)
queuesperport,intowhicheachpacketisplaced.Eachpacket’s802.1ppriority
determinesitsCOSqueue,exceptwhenanACLactionsetstheCOSqueueofthe
packet.
Youcanconfigurethefollowingattributes
forCOSqueues:
Map802.1ppriorityvaluetoaCOSqueue
DefinetheschedulingweightofeachCOSqueue
Youcanmap802.1ppriorityvaluetoaCOSqueue,asfollows:
Tosetthe COSqueueschedulingweight,usethefollowingcommand.
Theschedulingweightcanbesetfrom0to15.Weightvaluesfrom1to15setthe
queuetouse
weightedround‐robin(WRR)scheduling,whichdistributeslarger
numbersofpacketstoqueueswiththehighestweightvalues.Fordistribution
purposes,eachpacketiscountedthe same,regardlessofthepacket’ssize.
Aschedulingweightof0(zero)indicatesstrictpriority.Trafficinstrictpriority
queuehasprecedenceoverother
allqueues.Ifmorethanonequeueisassigneda
weightof0,thestrictqueuewithhighestqueuenumberwillbeservedfirst.Once
alltrafficinstrictqueuesisdelivered,anyremainingbandwidthwillbeallocated
totheWRRqueues,dividedaccordingtotheirweightvalues.
Note: Usecautionwhen
assigningstrictschedulingtoqueues.Heavytrafficin
queuesassignedwithaweightof0canstarvelowerpriorityqueues.
Foraschedulingmethodthatusesaweighteddeficitround‐robin(WDRR)
algorithm,distributingpacketswithanawarenessofpacketsize,see“Enhanced
TransmissionSelection”onpage 352.
CN 4093(config)# qos transmit-queue mapping <priorityvalue(0‐7)> <COS queue(0‐7)>
CN 4093(config)# qos transmit-queue weight-cos <COSqnumber><COSq weight (0‐15)>