Sei sulla pagina 1di 16

3/3/2017 Another I.T.

blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones

ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.

AnotherI.T.blog LEARNMORE GOTIT

IdeasandsolutionsonITarchitecture,UNIX,Linux,Oracle,Telecommunication,storageandvirtualizationinordertohelpothersystemsadministratorsand
DBAs.

Friday,September28,2012 Labels

VoIPQoSonCisco3560SwitcheswithPolycomandCiscoIP linux ldap bsd backup


oracle ssh cisco kerberos
Phones pam storage unix 11gR2 nfs
rsnapshotsansudo 11.2.0.1 RAC
TodaywearegoingtosetupnetworkQualityofService(QoS)forVoiceoverIP(VoIP)trafficgeneratedbyPolycom
apple asm asmlib audit autofs
andCiscoIPphones.OurgoalhereistotagtheVoIPpacketssothattheyareplacedinapriorityoutgoingqueueso
console consumer gssapi history
thatiftheavailablebandwithissaturated,thentheVoIPpacketswillbethelastonestobedroppedbytheswitch.VoIP iscsi lvm mysql netgroup patch
isadelaysensitiveapplicationwhilebulkdatatransfersarenot.Whenaswitchportgetsmoredatathatitcanhandle, project provider qos recovery
theswitchwillstartdroppingpackets.IfaVoIPpacketisdropped,peoplehavingaconversationwillhearaglitch.We replication rssh sasl serial solaris
don'twantthatandthisiswhywemusttreattheVoIPpacketsdifferentlythanotherdatapackets. udevvoipzfs

Topology
SubscribeTo
It'salwayseasiertounderstandnetworkmodificationswhenwehaveatopologyplan.Sohereitis:

Posts

Comments

BlogArchive

2014(2)
2013(8)
2012(19)
September(2)
VoIPQoSon
Cisco3560
Switcheswith
Polycomand
C...
IOSUpgradeon
CiscoWS
C4507R
Chassiswith
DualS...

August(3)
June(3)
May(8)
March(1)
Figure1:ExampleNetworkTopology
February(2)

AlargerPDFversionisalsoavailable. 2011(6)
2010(1)
Fromthetopology,wecanseethatvoicetrafficfollowsthispath:

IPphone>WSC356048PSS>WSC3560G24TSS>SonicWall2400X4VoIPinterface>SonicWall2400X1WAN
interface>WSC3560G24TSS>ISP AboutMe

Asyoumightimagine,theISPconnectedWSC3560G24TSswitchhasthreeVLANs:

VLAN300istheVoIPVLAN.

VLAN144istheWAN(orISP)VLAN.

VLAN200istheManagementVLAN. DavidRobillard
Inthisexample,theWSC356048PSswitchesareconnectedtotwotypesofIPphones:

PolycomSoundPointIP335

CiscoSPA504GIPphone LinkedInprofile
CISSP,RHCE,SCSA,
SCSECA&CSSA
ALittleTheory
UNIXteamleader.
leadOracleDBA.
Bydefault,bothPolycomandCiscoIPphoneswilladdavoicetagtoallthepacketstheygenerate.Thistagcan leadstorageadmin.

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 1/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
taketwodifferentforms: technicalarchitect.
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
DifferentiatedServicesCodePoint(DSCP)
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
Viewmycompleteprofile
ClassofService(COS)
LEARNMORE GOTIT
ThePolycomIPphoneswilluseDSCPwhiletheCiscoIPphonesuseCOS(I'mnot100%sureonthis,anyone?).The
ideahereistoconfigureeachdevicesinthepacketpathtotrustthepackettagfromtheotherdevice.Otherwise
thepacket'stagisnothonored.

Configuration

WewillstartourconfigurationwithbothdevicesintowhichtheIPphonesareconnected:thesearethetwoWS
C356048PS.Theycanbereachedat172.16.1.2/24and172.16.1.3/24.Oncebothofthosedevicesareconfigured,we
willconfiguretheswitchfoundat172.16.1.1/24.IassumethatallswitchesalreadyhaveIPaddressesandthatSSHis
workingonallofthem.Ialsoassumeyouhaveauserthatcanperformadministrativefonctions.

FirstWSC356048PSSwitch

Connecttotheswitchandchecktheinterfaces.Inthisexample,alsoassumethatinterfacesFa0/1toFa0/47allstart
withthesameconfiguration.Inareallifescenario,makesurethisistrue!

ssh172.22.1.2
switch>enable
switch#shrunintfa0/1
!
interfaceFastEthernet0/1
switchportaccessvlan300
switchportmodeaccess
speed100
duplexfull
nocdpenable
end

Theinterfaceissetto100Mb/sfullduplex.ItdoesnotsendCDPpackets.ItisinaccessmodeandintoVLAN300,but
wedon'tknowwhatthatVLANisatthemoment.Let'scheckourVLANTransferProtocol(VTP)status?

switch#shvtpstatus
VTPVersioncapable:1to3
VTPversionrunning:1
VTPDomainName:dmz
VTPPruningMode:Disabled
VTPTrapsGeneration:Enabled
DeviceID:0018.19a9.2800
Configurationlastmodifiedby172.16.1.2at389323:56:45

FeatureVLAN:

VTPOperatingMode:Client
MaximumVLANssupportedlocally:1005
NumberofexistingVLANs:9
ConfigurationRevision:20
MD5digest:0x3B0x540xC10x4F0x880x4B0x840xBB
0xC10x820x8C0x070x5B0x270x960x28

Ok,soweareaVTPclient.Let'scheckourcurrentVLANstatusthen.

switch#shvlanbrief

VLANNameStatusPorts

1defaultactiveGi0/1,Gi0/2,Gi0/4
19DMZactive
144WANISPactive
200ManagementactiveFa0/48
300VoIPactiveFa0/1,Fa0/2,Fa0/3,Fa0/4,Fa0/5,
Fa0/6,Fa0/7,Fa0/8,Fa0/9,Fa0/10,Fa0/11,Fa0/12,Fa0/13,Fa0/14,Fa0/15,Fa0/16,
Fa0/17,Fa0/18,Fa0/19,Fa0/20
Fa0/21,Fa0/22,Fa0/23,Fa0/24,Fa0/25,
Fa0/26,Fa0/27,Fa0/28,Fa0/29,Fa0/30,Fa0/31,Fa0/32,Fa0/33,Fa0/34,Fa0/35,Fa0/36,
Fa0/37,Fa0/38
Fa0/39,Fa0/40,Fa0/41,Fa0/42,Fa0/43,
Fa0/44,Fa0/45,Fa0/46,Fa0/47
1002fddidefaultact/unsup
1003tokenringdefaultact/unsup
1004fddinetdefaultact/unsup
1005trnetdefaultact/unsup

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 2/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
WecanseethatVLAN300isindeedourVoIPVLAN.WealsoseethatinterfaceFa0/48isconnectedtothe
ManagementVLAN.Accordingtoourtopologymap,interfaceGi0/3isourconnectiontotheWSC3560G24TSswitch.
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
Ifit'snotlistedhere,itmustbeatrunkthen.Let'scheck.
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.

switch#shintstatus|incGi0/3 LEARNMORE GOTIT


Gi0/3c3560gVoIPtrunkconnectedtrunkafulla10001000BaseSXSFP

switch#shrunintgi0/3
!
interfaceGigabitEthernet0/3
descriptionc3560gVoIPtrunk
switchporttrunkencapsulationdot1q
switchportmodetrunk
end

Soindeeditis.OurfirsttaskistodiscoverwhichportshavewhichIPphone?Thereasonissimple:PolycomIP
phonesandCiscoIPphonesdonothavethesameconfiguration.CiscoIPphonessupportatightlyintegrated
configurationwiththeCiscoswitches.ButthePolycomdonot.Wethusneedtoconfigureeachportsdifferently
dependingonwhichtypeofphoneisconnectedtoit.

Lucklyforus,bothtypesofdevicessupportCisco'sCiscoDiscoveryProtocol(CDP).Solet'sstartCDPandcheckit's
status.

switch#conft
switch(config)#cdprun
switch(config)#end
switch#shcdpneighbors
CapabilityCodes:RRouter,TTransBridge,BSourceRouteBridge
SSwitch,HHost,IIGMP,rRepeater,PPhone,
DRemote,CCVTA,MTwoportMacRelay

DeviceIDLocalIntrfceHoldtmeCapabilityPlatformPortID
core.company.com
Fas0/48129RSIWSC4507RFas5/44
wan.company.com
Gig0/3130SIWSC3560GGig0/27

Hummm,wedon'tseeanyIPphoneshere.That'sbecauseCDPisdisabledonallinterfacesexceptthosetwo.Let's
enableittoalltheotherFastEthernetinterfaces.

switch#conft
switch(config)#intrangefa0/147
switch(configifrange)#cdpenable
switch(configifrange)#end

Nowlet'sseeifwehavethosephonesnow.

switch#shcdpneighbors
CapabilityCodes:RRouter,TTransBridge,BSourceRouteBridge
SSwitch,HHost,IIGMP,rRepeater,PPhone,
DRemote,CCVTA,MTwoportMacRelay

DeviceIDLocalIntrfceHoldtmeCapabilityPlatformPortID
core.company.com
Fas0/48129RSIWSC4507RFas5/44
wan.company.com
Gig0/3130SIWSC3560GGig0/27

Weird,stillnophones.I'mnotquitesurewhy(someoneknows?),butonetricktogetthemtotalkCDPagainisto
shutdowntheinterfacesandbringthembackonlineagain.

WARNING:thiscommandwillshutdwonallvoiceoperationsfromthatswitch.Makesureyouhaveauthorizationtodo
this!

switch#conft
switch(config)#intrangefa0/147
switch(configifrange)#shutdown
switch(configifrange)#noshutdown
switch(configifrange)#end

MostIPphonesarePoweroverEthernet(PoE)devices.Sobydoingashutdownontheinterfaces,wealsocutthe
powersupplyofalltheconnectedIPphones.SoifwelookedatCDPrightafterthat,wewouldnotseeanythingnew.
Why?BecauseweneedtowaitfortheIPphonestobootandstartsendingCDPpackets.Thistakesabouttwoorthree
minutes.Afterthatdelay,wechecktheCDPagain.

switch#shcdpnei
CapabilityCodes:RRouter,TTransBridge,BSourceRouteBridge
SSwitch,HHost,IIGMP,rRepeater,PPhone,

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 3/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
DRemote,CCVTA,MTwoportMacRelay
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
DeviceIDLocalIntrfceHoldtmeCapabilityPlatformPortID
SEP0004f22ebe3eFas0/30144HPPolycomSPort1
LEARNMORE GOTIT
SEP0004f235b3f6Fas0/12145HPPolycomSPort1
SEP0004f22ec344Fas0/6143HPPolycomSPort1
SEP0004f22ebe3fFas0/36146HPPolycomSPort1
SEP0004f22ec122Fas0/28136HPPolycomSPort1
SEP0004f22c72b3Fas0/33141HPPolycomSPort1
SEP0004f22ec100Fas0/9136HPPolycomSPort1
SEP0004f22cce0bFas0/37124HPPolycomSPort1
SEP0004f235ad32Fas0/8140HPPolycomSPort1
SEP0004f2318999Fas0/34142HPPolycomSPort1
SEP0004f22ed7faFas0/14141HPPolycomSPort1
SEP0004f216a70aFas0/47142HPPolycomSPort1
SEP0004f22ed0baFas0/15141HPPolycomSPort1
SEP0004f22ec3faFas0/19138HPPolycomSPort1
SEP0004f22eb0fcFas0/10140HPPolycomSPort1
SEP0004f22eb037Fas0/13140HPPolycomSPort1
SEP0004f2318675Fas0/16143HPPolycomSPort1
SEP0004f22ec282Fas0/29142HPPolycomSPort1
SEP0004f22ed619Fas0/23139HPPolycomSPort1
SEP0004f22ed718Fas0/21143HPPolycomSPort1
SEP0004f22eb109Fas0/3141HPPolycomSPort1
SEP0004f22ebdb9Fas0/26144HPPolycomSPort1
core.company.com
Fas0/48133RSIWSC4507RFas5/44
SEP0004f22ed758Fas0/46139HPPolycomSPort1
SEP0004f2358788Fas0/5138HPPolycomSPort1
wan.company.com
Gig0/3134SIWSC3560GGig0/27
SIP1CDF0F4A6A5BFas0/38168HPIPPhonePort1
SEP0004f22eb17dFas0/32139HPPolycomSPort1
SEP0004f22ed72bFas0/35140HPPolycomSPort1
SEP0004f22ec3d7Fas0/24146HPPolycomSPort1
SEP0004f22eb3e7Fas0/31145HPPolycomSPort1
SEP0004f22ed03dFas0/4136HPPolycomSPort1
SEP0004f22ec13cFas0/20140HPPolycomSPort1
SEP0004f22ec05dFas0/7145HPPolycomSPort1
SEP0004f2e4c11aFas0/44138HPPolycomSPort1
SEP0004f22ed6a5Fas0/17136HPPolycomSPort1
SEP0004f22ec2e9Fas0/25145HPPolycomSPort1
SIP1CDF0F4A676BFas0/18164HPIPPhonePort1
SEP0004f22902f7Fas0/42139HPPolycomSPort1
SIP1CDF0F4A6A66Fas0/27132HPIPPhonePort1

Ahha!That'sbetter.Wenowhaveacompletelistofwhichtypeofphoneisconnectedtowhichport.TheCiscoIP
phonesconnectedportsare:

switch#shcdpnei|incIPPhone
SIP1CDF0F4A6A5BFas0/38152HPIPPhonePort1
SIP1CDF0F4A676BFas0/18145HPIPPhonePort1
SIP1CDF0F4A6A66Fas0/27172HPIPPhonePort1

WhilethePolycomphonesconnectedportsare:

switch#shcdpnei|incPolycom
SEP0004f22ebe3eFas0/30123HPPolycomSPort1
SEP0004f235b3f6Fas0/12123HPPolycomSPort1
SEP0004f22ec344Fas0/6122HPPolycomSPort1
SEP0004f22ebe3fFas0/36125HPPolycomSPort1
SEP0004f22ec122Fas0/28174HPPolycomSPort1
SEP0004f22c72b3Fas0/33179HPPolycomSPort1
SEP0004f22ec100Fas0/9175HPPolycomSPort1
SEP0004f22cce0bFas0/37163HPPolycomSPort1
SEP0004f235ad32Fas0/8178HPPolycomSPort1
SEP0004f2318999Fas0/34120HPPolycomSPort1
SEP0004f22ed7faFas0/14120HPPolycomSPort1
SEP0004f216a70aFas0/47120HPPolycomSPort1
SEP0004f22ed0baFas0/15179HPPolycomSPort1
SEP0004f22ec3faFas0/19177HPPolycomSPort1
SEP0004f22eb0fcFas0/10178HPPolycomSPort1
SEP0004f22eb037Fas0/13178HPPolycomSPort1
SEP0004f2318675Fas0/16121HPPolycomSPort1
SEP0004f22ec282Fas0/29120HPPolycomSPort1
SEP0004f22ed619Fas0/23177HPPolycomSPort1

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 4/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
SEP0004f22ed718Fas0/21122HPPolycomSPort1
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
SEP0004f22eb109Fas0/3120HPPolycomSPort1
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
SEP0004f22ebdb9Fas0/26123HPPolycomSPort1
SEP0004f22ed758Fas0/46178HPPolycomSPort1
LEARNMORE GOTIT
SEP0004f2358788Fas0/5176HPPolycomSPort1
SEP0004f22eb17dFas0/32177HPPolycomSPort1
SEP0004f22ed72bFas0/35178HPPolycomSPort1
SEP0004f22ec3d7Fas0/24124HPPolycomSPort1
SEP0004f22eb3e7Fas0/31123HPPolycomSPort1
SEP0004f22ed03dFas0/4175HPPolycomSPort1
SEP0004f22ec13cFas0/20178HPPolycomSPort1
SEP0004f22ec05dFas0/7123HPPolycomSPort1
SEP0004f2e4c11aFas0/44177HPPolycomSPort1
SEP0004f22ed6a5Fas0/17175HPPolycomSPort1
SEP0004f22ec2e9Fas0/25123HPPolycomSPort1
SEP0004f22902f7Fas0/42178HPPolycomSPort1

PolycomSoundPointIP335PortsConfiguration
Ok,nowthatweknowallthis,wecannowconfigurethetelephoneports.Let'sstartwiththePolycomports.

switch#conft
switch(config)#intrangefa0/310,fa0/1217,fa0/1921,fa0/2326,fa0/2837,fa0/42,
fa0/44,fa0/4647
switch(configifrange)#descriptionPolycomphoneport
switch(configifrange)#mlsqostrustdscp
switch(configifrange)#autoqostrust
switch(configifrange)#priorityqueueout
switch(configifrange)#spanningtreeportfast
switch(configifrange)#end

IfQoSwasnotenabledonthisswitch,thenthemlsqostrustdscpcommandwillenableit.Nowcheckan
interfacetoseewhathashappened?

switch#shrunintfa0/42
!
interfaceFastEthernet0/42
descriptionVoIPtelephoneport
switchportaccessvlan300
switchportmodeaccess
speed100
duplexfull
srrqueuebandwidthshare130355
priorityqueueout
mlsqostrustdscp
autoqostrust
spanningtreeportfast
end

Noticehowthesrrqueuebandwidthshare130355configurationisnowlisted.Thisisplaced
automaticallybytheautoqostrustcommand.

CiscoSPA504GIPPhonePortsConfiguration
Good,nowlet'sconfiguretheCiscoIPphoneconnectedports.

switch#conft
switch(config)#intrangefa0/18,fa0/27,fa0/38
switch(configifrange)#descriptionCiscoIPphoneport
switch(configifrange)#mlsqostrustcos
switch(configifrange)#mlsqostrustdeviceciscophone
switch(configifrange)#autoqosvoipciscophone
switch(configifrange)#priorityqueueout
switch(configifrange)#spanningtreeportfast
switch(configifrange)#end

Noticehowit'salittledifferentfromthePolycomconfiguration.Let'sseewhathappenstotheinterface?

switch#shrunintfa0/18
!
interfaceFastEthernet0/18
descriptionVoIPtelephoneport
switchportaccessvlan300
switchportmodeaccess
speed100
duplexfull

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 5/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
srrqueuebandwidthshare130355
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
priorityqueueout
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
mlsqostrustdeviceciscophone
mlsqostrustcos
LEARNMORE GOTIT
autoqosvoipciscophone
spanningtreeportfast
servicepolicyinputAUTOQOSSRND4CISCOPHONEPOLICY
end

Againthesrrqueuebandwidthshare130355configurationwasinstalledalongwiththeservice
policyinputAUTOQOSSRND4CISCOPHONEPOLICY.

RunningConfiguration
Thosenewinterfaceconfigurationsnowhavemlsandpolicymap.Ifwehavethose,thentheymustbe
definedintheconfiguration.Let'sfindoutbycheckingtherunningconfig.I'velistedhereonlytherelevantpartsforthis
blogpost:

switch#shrun

mlsqosmappoliceddscp010182446to8
mlsqosmapcosdscp08162432464856
mlsqossrrqueueinputbandwidth7030
mlsqossrrqueueinputthreshold18090
mlsqossrrqueueinputpriorityqueue2bandwidth30
mlsqossrrqueueinputcosmapqueue1threshold23
mlsqossrrqueueinputcosmapqueue1threshold367
mlsqossrrqueueinputcosmapqueue2threshold14
mlsqossrrqueueinputdscpmapqueue1threshold224
mlsqossrrqueueinputdscpmapqueue1threshold34849505152535455
mlsqossrrqueueinputdscpmapqueue1threshold35657585960616263
mlsqossrrqueueinputdscpmapqueue2threshold33233404142434445
mlsqossrrqueueinputdscpmapqueue2threshold34647
mlsqossrrqueueoutputcosmapqueue1threshold345
mlsqossrrqueueoutputcosmapqueue2threshold12
mlsqossrrqueueoutputcosmapqueue2threshold23
mlsqossrrqueueoutputcosmapqueue2threshold367
mlsqossrrqueueoutputcosmapqueue3threshold30
mlsqossrrqueueoutputcosmapqueue4threshold31
mlsqossrrqueueoutputdscpmapqueue1threshold33233404142434445
mlsqossrrqueueoutputdscpmapqueue1threshold34647
mlsqossrrqueueoutputdscpmapqueue2threshold11617181920212223
mlsqossrrqueueoutputdscpmapqueue2threshold12627282930313435
mlsqossrrqueueoutputdscpmapqueue2threshold136373839
mlsqossrrqueueoutputdscpmapqueue2threshold224
mlsqossrrqueueoutputdscpmapqueue2threshold34849505152535455
mlsqossrrqueueoutputdscpmapqueue2threshold35657585960616263
mlsqossrrqueueoutputdscpmapqueue3threshold301234567
mlsqossrrqueueoutputdscpmapqueue4threshold189111315
mlsqossrrqueueoutputdscpmapqueue4threshold2101214
mlsqosqueuesetoutput1threshold110010050200
mlsqosqueuesetoutput1threshold2125125100400
mlsqosqueuesetoutput1threshold3100100100400
mlsqosqueuesetoutput1threshold46015050200
mlsqosqueuesetoutput1buffers15254020
mlsqos
!
autoqossrnd4
classmapmatchallAUTOQOS_VOIP_DATA_CLASS
matchipdscpef
classmapmatchallAUTOQOS_DEFAULT_CLASS
matchaccessgroupnameAUTOQOSACLDEFAULT
classmapmatchallAUTOQOS_VOIP_SIGNAL_CLASS
matchipdscpcs3
!
policymapAUTOQOSSRND4CISCOPHONEPOLICY
classAUTOQOS_VOIP_DATA_CLASS
setdscpef
police1280008000exceedactionpoliceddscptransmit
classAUTOQOS_VOIP_SIGNAL_CLASS
setdscpcs3
police320008000exceedactionpoliceddscptransmit
classAUTOQOS_DEFAULT_CLASS
setdscpdefault
police100000008000exceedactionpoliceddscptransmit

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 6/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones

Asyoucansee,thereisalotgoingonwhenweusetheautokeywordstoconfigureVoIPQoS.
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
TrunkPortConfiguration LEARNMORE GOTIT

WenowhaveallIPphoneconnectedportsconfigured.Butwehaven'tconfiguredthetrunkportyet.Sodothisnow.

switch#conft
switch(config)#intgi0/3
switch(configif)#descriptionc3560gVoIPtrunk
switch(configif)#mlsqostrustdscp
switch(configif)#autoqostrust
switch(configif)#priorityqueueout
switch(configif)#end

Andoncewe'refinished,thisiswhattheinterfacelookslike:

switch#shrunintgi0/3
!
interfaceGigabitEthernet0/3
descriptionc3560gVoIPtrunk
switchporttrunkencapsulationdot1q
switchportmodetrunk
srrqueuebandwidthshare130355
priorityqueueout
mlsqostrustdscp
autoqostrust
end

Again,wecanseethesrrqueueconfighasbeeninstalledevenifwedidnotexplicitlyconfiguredit.

SaveConfiguration
Thelasttasktodoonthisswitchistosavetheconfiguration.Veryeasytodo,butohsoimportant!

switch#writememory
switch#copyrunstart
switch#copystarttftp

That'sitforourfirstWSC356048PSSwitch.Let'sconfigurethesecondonenow.

SecondWSC356048PSSwitch

Onthisswitch,wesimplyneedtodoallwhatwedidonthefirstone:checkVLAN,VTPstatus,CDPandthen
configurephoneportsandtrunkport.I'llskipmostofthediscussionasIhopeI'vebeenclearenoughonthefirst
switch.

ssh172.22.1.3
switch>enable
switch#shvtpstatus
switch#shvlanbrief
switch#shintstatus|incGi0/3
switch#shrunintgi0/3
switch#conft
switch(config)#cdprun
switch(config)#end
switch#shcdpneighbors
switch#conft
switch(config)#intrangefa0/147
switch(configifrange)#cdpenable

WARNING:thiscommandwillshutdwonallvoiceoperationsfromthatswitch.Makesureyouhaveauthorizationtodo
this!

switch(configifrange)#shutdown
switch(configifrange)#noshutdown
switch(configifrange)#end
switch#
switch#shcdpneighbors
CapabilityCodes:RRouter,TTransBridge,BSourceRouteBridge
SSwitch,HHost,IIGMP,rRepeater,PPhone,
DRemote,CCVTA,MTwoportMacRelay

DeviceIDLocalIntrfceHoldtmeCapabilityPlatformPortID
SEP0004f22ec3edFas0/5123HPPolycomSPort1
SEP0004f22ed793Fas0/6135HPPolycomSPort1

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 7/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
SEP0004f22ec090Fas0/1130HPPolycomSPort1
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
core.company.com
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
Fas0/48143RSIWSC4507RFas5/43
wan.company.com
LEARNMORE GOTIT
Gig0/3136SIWSC3560GGig0/28
SIP1CDF0F4A6A9CFas0/42166HPIPPhonePort1
SIP1CDF0F4A6AA8Fas0/4169HPIPPhonePort1
SIP1CDF0F4A6AA7Fas0/36164HPIPPhonePort1
SIP1CDF0F4A66EEFas0/31165HPIPPhonePort1
SIP1CDF0F4A6713Fas0/30165HPIPPhonePort1
SIP1CDF0F4A6714Fas0/44164HPIPPhonePort1
SIP1CDF0F4A6AA1Fas0/39164HPIPPhonePort1
SIP1CDF0F4A6AC2Fas0/35165HPIPPhonePort1
SEP0004f22ec05fFas0/7135HPPolycomSPort1
SEP0004f22ed7f0Fas0/3132HPPolycomSPort1
SEP0004f22eb3e3Fas0/46132HPPolycomSPort1
SIP1CDF0F4A6A53Fas0/34164HPIPPhonePort1
SIP1CDF0F4A6A52Fas0/43165HPIPPhonePort1
SIP1CDF0F4A6A50Fas0/2164HPIPPhonePort1
SIP1CDF0F4A6AACFas0/37164HPIPPhonePort1
SIP1CDF0F4A6A57Fas0/38163HPIPPhonePort1
SIP1CDF0F4A6AABFas0/40166HPIPPhonePort1
SIP1CDF0F4A6AAAFas0/33165HPIPPhonePort1
SIP1CDF0F4A6A54Fas0/41166HPIPPhonePort1

WethusneedtoconfigureportsdiffrentlybecausethisswitchalsohasamixofPolycomandCiscophones.

PolycomSoundPointIP335PortsConfiguration
Again,aswedidonthefirstVoIPaccessswitch,let'sconfigurethePolycomportsfirst.Inordertodothat,weneedto
narrowoursearchinCDPtoonlythePolycomdevices.

switch#shcdpnei|incPolycom
SEP0004f22ec3edFas0/5125HPPolycomSPort1
SEP0004f22ed793Fas0/6137HPPolycomSPort1
SEP0004f22ec090Fas0/1131HPPolycomSPort1
SEP0004f22ec05fFas0/7136HPPolycomSPort1
SEP0004f22ed7f0Fas0/3133HPPolycomSPort1
SEP0004f22eb3e3Fas0/46133HPPolycomSPort1

Thenconfigureonlythoseports.

switch#conft
switch(config)#intrangefa0/1,fa0/3,fa0/57,fa0/46
switch(configifrange)#descriptionPolycomphoneport
switch(configifrange)#mlsqostrustdscp
switch(configifrange)#autoqostrust
switch(configifrange)#priorityqueueout
switch(configifrange)#spanningtreeportfast
switch(configifrange)#end

CiscoSPA504GIPPhonePortsConfiguration
Nowlet'sconfiguretheCiscoIPphoneconnectedports.WefirstlistourCiscoIPPhoneports.

switch#shcdpnei|incIPPhone
SIP1CDF0F4A6A9CFas0/42145HPIPPhonePort1
SIP1CDF0F4A6AA8Fas0/4124HPIPPhonePort1
SIP1CDF0F4A6AA7Fas0/36151HPIPPhonePort1
SIP1CDF0F4A66EEFas0/31147HPIPPhonePort1
SIP1CDF0F4A6713Fas0/30143HPIPPhonePort1
SIP1CDF0F4A6714Fas0/44151HPIPPhonePort1
SIP1CDF0F4A6AA1Fas0/39147HPIPPhonePort1
SIP1CDF0F4A6AC2Fas0/35150HPIPPhonePort1
SIP1CDF0F4A6A53Fas0/34150HPIPPhonePort1
SIP1CDF0F4A6A52Fas0/43127HPIPPhonePort1
SIP1CDF0F4A6A50Fas0/2139HPIPPhonePort1
SIP1CDF0F4A6AACFas0/37152HPIPPhonePort1
SIP1CDF0F4A6A57Fas0/38146HPIPPhonePort1
SIP1CDF0F4A6AABFas0/40170HPIPPhonePort1
SIP1CDF0F4A6AAAFas0/33151HPIPPhonePort1
SIP1CDF0F4A6A54Fas0/41159HPIPPhonePort1

OnceweknowourCiscoIPPhoneconnectedports,wecanconfigurethem.

switch#conft

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 8/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
switch(config)#intrangefa0/2,fa0/4,fa0/3031,fa0/3344
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
switch(configifrange)#descriptionCiscoIPphoneport
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
switch(configifrange)#mlsqostrustcos
switch(configifrange)#mlsqostrustdeviceciscophone
LEARNMORE GOTIT
switch(configifrange)#autoqosvoipciscophone
switch(configifrange)#priorityqueueout
switch(configifrange)#spanningtreeportfast
switch(configifrange)#end

TrunkPortConfiguration
Aswedidwithourfirstaccessswitch,weneedtoconfigureourtrunkport.

switch#conft
switch(config)#intgi0/3
switch(configif)#descriptionc3560gVoIPtrunk
switch(configif)#mlsqostrustdscp
switch(configif)#autoqostrust
switch(configif)#priorityqueueout
switch(configif)#end

SaveConfiguration
Andfinally,savetheconfiguration.

switch#writememory
switch#copyrunstart
switch#copystarttftp

That'sitforoursecondWSC356048PSaccessswitch.WemustnowmoveontotheWSC3560G24TSSswitch
whichisthecentralconnectionforboththeVoIPandWANVLANs,bothVoIPaccessswitchesandourfirewall.

CiscoWSC3560G24TSSSwitchConfiguration

Thisswitchconnectsallofourpiecestogether:bothaccessswitches,thefirewallandourISPuplink.Soweneedto
configuretheseports:

Gi0/1whichisconnectedtoourISPuplink.

Gi0/4whichisconnectedtotheWANinterfaceinourfirewall.

Gi0/17whichisconnectedtotheVoIPinterfaceinourfirewall.

Gi0/2728whichareconnectedtotheWSC356048PSaccessswitch.

Butbeforeweconfigureanyports,let'schecktheVTP,VLANandinterfacestatus.

ssh172.16.1.1
switch>enable
switch#shvtpstatus
VTPVersioncapable:1to3
VTPversionrunning:1
VTPDomainName:dmz
VTPPruningMode:Disabled
VTPTrapsGeneration:Enabled
DeviceID:001a.2f98.2f00
Configurationlastmodifiedby172.22.200.6at389323:56:45
LocalupdaterIDis172.16.1.1oninterfaceVl200(preferredinterface)
Preferredinterfacenameisvlan200

FeatureVLAN:

VTPOperatingMode:Server
MaximumVLANssupportedlocally:1005
NumberofexistingVLANs:9
ConfigurationRevision:20
MD5digest:0x3B0x540xC10x4F0x880x4B0x840xBB
0xC10x820x8C0x070x5B0x270x960x28

Ok,sothisistheVTPmasterforVTPdomaindmz.ItmeansifweeverneedtochangeVLANforourthreeswitches,
it'sviathisonethatweneedtodoso.

switch#shvlanbrief

VLANNameStatusPorts

1defaultactiveGi0/2,Gi0/5,Gi0/7,Gi0/8,Gi0/14,
Gi0/15,Gi0/16,Gi0/19,Gi0/20,Gi0/21,Gi0/22,Gi0/23,Gi0/25,Gi0/26

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 9/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
19DMZactiveGi0/9,Gi0/10,Gi0/11,Gi0/12,Gi0/13
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
144WANactiveGi0/1,Gi0/3,Gi0/4,Gi0/6
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
200ManagementactiveGi0/24
300VoIPactiveGi0/17,Gi0/18
LEARNMORE GOTIT
1002fddidefaultact/unsup
1003tokenringdefaultact/unsup
1004fddinetdefaultact/unsup
1005trnetdefaultact/unsup

WehaveallthesameVLANasourtwootherswitchesplusanewone:VLAN19(DMZ).Thatmeansthisswitchalso
hassomeDMZports.ThisisnotshowedintheVoIPtopologyandit'snotrequiredforourpurposes.

Let'sseewhatinterfacesareconnectedonthisdevice?

switch#shintstatus|incconnected
Gi0/1WANISPconnected144afulla100010/100/1000BaseTX
Gi0/4firewallX2WANconnected144fulla10010/100/1000BaseTX
Gi0/9firewallX3DMZconnected19fulla10010/100/1000BaseTX
Gi0/10www.company.comconnected19fulla10010/100/1000BaseTX
Gi0/12ftp.company.comconnected19afulla10010/100/1000BaseTX
Gi0/17firewallX4VoIPconnected300ahalfa10010/100/1000BaseTX
Gi0/24Switchmgmtportconnected200fulla10010/100/1000BaseTX
Gi0/27VoIP1trunkconnectedtrunkafulla10001000BaseSXSFP
Gi0/28VoIP2trunkconnectedtrunkafulla10001000BaseSXSFP

Asperourtopology,wecanseethatportGi0/1isourWANport.WealsoseesomeDMZhosts(thefirewall,aweb
serverandanFTPserver).Weclearlyseethatthefirewallisconnectedonthreeinterfacesonthisdevice:Gi0/4in
VLAN144whichconnectstothefirewalltotheWAN,Gi0/9inVLAN19fortheDMZandGi0/17inVLAN300whichis
theVoIPVLAN.PortsGi0/27andGi0/28arethetrunkportsgoingtotheWSC356048PSaccessswitches.While
we'rehere,let'sconfigurethem.

Gi0/2728TrunkPortsConfiguration
switch#conft
switch(config)#intrangegi0/2728
switch(ifrange)#descriptionVoIPtrunk
switch(ifrange)#switchporttrunkallowedvlan200,300
switch(ifrange)#priorityqueueout
switch(ifrange)#mlsqostrustdscp
switch(ifrange)#autoqosvoiptrust
switch(ifrange)#end

Sothisconfigurebothtrunkports.Let'sseewhatthatgivesus?

switch#shrunintgi0/27
!
interfaceGigabitEthernet0/27
descriptionVoIPtrunk
switchporttrunkallowedvlan200,300
srrqueuebandwidthshare10106020
queueset2
priorityqueueout
mlsqostrustdscp
autoqosvoiptrust
end

switch#shrunintgi0/28
!
interfaceGigabitEthernet0/28
descriptionVoIPtrunk
switchporttrunkallowedvlan200,300
srrqueuebandwidthshare10106020
queueset2
priorityqueueout
mlsqostrustdscp
autoqosvoiptrust
end

Asfortheotherports,thesrrqueuebandwidthshare10106020andthequeueset2were
installedwithoutushavingtotypethem.

Noticetheswitchporttrunkallowedvlan200,300config.ItpreventstheDMZandtheWANVLANsto
reachtheVoIPaccessswitchesforsecurityreasons.Let'smakesurethatisthecase.

switch#shinttrunk

PortModeEncapsulationStatusNativevlan

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 10/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
Gi0/27auton802.1qtrunking200
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
Gi0/28auton802.1qtrunking200
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
PortVlansallowedontrunk
LEARNMORE GOTIT
Gi0/27200,300
Gi0/28200,300

PortVlansallowedandactiveinmanagementdomain
Gi0/27200,300
Gi0/28200,300

PortVlansinspanningtreeforwardingstateandnotpruned
Gi0/27300
Gi0/28300

Indeed,thatisthecase.ThesetrunkportswillonlyallowtheManagementandtheVoIPVLANstoreachtheVoIP
accessswitches.Whichisgood.

Gi0/17FirewallVoIPInterfacePortConfiguration
WecontinuewithoursetupbyconfiguringtheGi0/17portthatconnectstothefirewall'sVoIPinterface.Ourgoalis
alwaysthesame:makesuretheDSCPandCoStagsarehonoredandnotstripedwhenpassingontheinterface.
That'swhyweaddthosetrustcommands.

switch#conft
switch(config)#intgi0/17
switch(configif)#descriptionfirewallX4VoIPinterface
switch(configif)#switchportaccessvlan300
switch(configif)#switchportmodeaccess
switch(configif)#priorityqueueout
switch(configif)#mlsqostrustdscp
switch(configif)#autoqosvoiptrust
switch(configif)#nocdpenable
switch(configif)#end

Thesecommandscreatetheconfiguration:

switch#shrunintgi0/17
!
interfaceGigabitEthernet0/17
descriptionfirewallX4VoIPinterface
switchportaccessvlan300
switchportmodeaccess
srrqueuebandwidthshare10106020
queueset2
priorityqueueout
mlsqostrustdscp
autoqosvoiptrust
nocdpenable
end

OurnextstepistoconfigureinterfaceGi0/4whichconnectsourfirewalls'sWANinterfacetothecurrentswitch.

Gi0/4FirewallWANInterfacePortConfiguration
Soagain,wesetuptrustcommandsonthisinterface.

switch#conft
switch(config)#intgi0/4
switch(configif)#descriptionfirewallX4WANinterface
switch(configif)#switchportaccessvlan144
switch(configif)#switchportmodeaccess
switch(configif)#priorityqueueout
switch(configif)#mlsqostrustdscp
switch(configif)#autoqosvoiptrust
switch(configif)#nocdpenable
switch(configif)#end

Andtheconfigurationcreatedbythesecommandsisthatone:

switch#shrunintgi0/4
!
interfaceGigabitEthernet0/4
descriptionfirewallX4WANinterface
switchportaccessvlan144
switchportmodeaccess

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 11/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
srrqueuebandwidthshare10106020
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
queueset2
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
priorityqueueout
mlsqostrustdscp
LEARNMORE GOTIT
autoqosvoiptrust
nocdpenable
end

We'realmostthere.Onemoreinterfacetoconfigure:theWANISPinterface.

Gi0/1ISPUplinkPortConfiguration
OurlastinterfacetoconfigureistheGi0/1whichconnectstoourISP'sswitchinstalledinourdatacenter.

switch#conft
switch(config)#intgi0/1
switch(configif)#descriptionISPuplink
switch(configif)#switchportaccessvlan144
switch(configif)#switchportmodeaccess
switch(configif)#priorityqueueout
switch(configif)#mlsqostrustdscp
switch(configif)#autoqosvoiptrust
switch(configif)#nocdpenable
switch(configif)#spanningtreeportfast
switch(configif)#end

Andtheresultingconfigurationis:

switch#shrunintgi0/1
!
interfaceGigabitEthernet0/1
descriptionISPuplink
switchportaccessvlan144
switchportmodeaccess
srrqueuebandwidthshare10106020
queueset2
priorityqueueout
mlsqostrustdscp
autoqosvoiptrust
nocdpenable
spanningtreeportfast
end

SaveConfiguration
Thelasttask,asalways,istosavetheconfiguration.

switch#writememory
switch#copyrunstart
switch#copystarttftp

Great!WenowhaveconfiguredourentiretopologyforVoIPQoS!

Buthowdoweknowitworks?

TestingandMonitoring

Tocheckiftheconfigurationisworking,onemustfirstclearthestatisticsoftheWANportGi0/1thatwejustconfigured.
Todothis,connecttotheswitchandissuethefollowing.

switch#clearmlsqosinterfacegi0/1statistics

Then,weneedtogenerateVoIPtraffic.That'squiteeasy,pickupthephoneandcallafriend)Placehimonspearkers
andwhileyou'retalking,checkthestatisticsontheinterface.Itwillstartbyacompletezerorightaftertheclear
command.Butafterawhile,counterswillstarttoincrease.Toseethestatisticsdata,dothis:

switch#shmlsqosinterfacegi0/1statistics
GigabitEthernet0/1(Allstatisticsareinpackets)

dscp:incoming

04:86486761619845320751
59:015156550264
1014:461105704
1519:04490150

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 12/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
2024:10000304172
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
2529:025010
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
3034:4033068
3539:00011670
LEARNMORE GOTIT
4044:2160000
4549:0440822302710
5054:00000
5559:11820000
6064:0000
dscp:outgoing

04:943290000011952
59:000588290
1014:00000
1519:00000
2024:00000
2529:028328000
3034:00000
3539:00000
4044:0000459249
4549:04165178000
5054:00000
5559:00000
6064:0000
cos:incoming

04:153657640000
57:000
cos:outgoing

04:9444939588290283280
57:462442700
outputqueuesenqueued:
queue:threshold1threshold2threshold3

queue0:004624427
queue1:0379124143
queue2:000
queue3:5882909445149

outputqueuesdropped:
queue:threshold1threshold2threshold3

queue0:000
queue1:000
queue2:000
queue3:000

Policer:Inprofile:0OutofProfile:0

Hummm,ok,whatdoallthesenumbersmean?

Relax.Backoffandlookattheentireoutput,notatthenumbers.YouwillfindthatwehavebothDSCPincomingand
outgoingtables.WealsohaveCOSincomingandoutgoingtables.Andthenwehavebothincomingandoutgoing
queues.Solet'sbreakthisdowntothreesubjects:

DSCPStatistics

COSStatistics

QueueStatistics

DSCPStatistics
DSCPstatsaredisplayedliketwotables:oneforincomingpackets(i.e.dscp:incoming)andanotherforoutgoing
packets(i.e.dscp:outgoing).I'vehighlightedthesetwotablesinboldrighthere:

switch#shmlsqosinterfacegi0/1statistics
GigabitEthernet0/1(Allstatisticsareinpackets)

dscp:incoming

04:86486761619845320751

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 13/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
59:015156550264
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
1014:461105704
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
1519:04490150
2024:10000304172
LEARNMORE GOTIT
2529:025010
3034:4033068
3539:00011670
4044:2160000
4549:0440822302710
5054:00000
5559:11820000
6064:0000
dscp:outgoing

04:943290000011952
59:000588290
1014:00000
1519:00000
2024:00000
2529:028328000
3034:00000
3539:00000
4044:0000459249
4549:04165178000
5054:00000
5559:00000
6064:0000

Bothtablearequitethesame.OnetheXaxis,orthefirstcolumnofthetableifyouprefer,weseealistofranges:0
4isfollowedby59allthewaydownto6064.TheserepresentthevariouspossibleDSCPvalueswhich
rangefromzeroto64.

EachlinesrepresentapossibleDSCPvalueintherangefoundonthelefthandside.Forexample,takeline4549
fromthedscp:outgoingtable.Rightafterthe4549:therearefourcolumnswiththesevalues:0,4165178,0
and0.Sincewe'relookingatthe4549line,thistellsusthatDSCPvalue45has0packets,DSCPvalue46
has4165178packets,DSCPvalues48and49bothdon'thaveanypacketsatall,sotheybothshowa0.Soweknow
thatthisinterface(gi0/1)hassent4165178packetstaggedasDSCPvalue46.

NowIdidn'tchooseDSCPvalue46byerror:thisisthestandardVoIPDSCPpackettag!That'sbecauseDSCP46is
theExpeditedForwardingDSCPvalue.Soithasaveryhighpriority.
SinceweknowthatthePolycomIPphonestagalltheirpacketswithDSCP46andweconfiguredallofourequipement
totrusteachother'sQoSvalues,thenweknowthataPolycomtelephonegeneratingpackettaggedasDSCP46from
eitheroftheVoIPaccessswitchesfindsit'swaytothisswitchstilltaggedasaDSCP46packet:aVoIPpacket.

Nowlookatboththedscp:incomingtableandthedscp:outgoingtable.Noticehowtheybothhavea
veryhighvalueintheDSCP46spot.ThatmeansVoIPtrafficflowsinbothdirections:incomingandoutgoing.Ifyou
haveahighDSCP46valueinthedscp:outgoingtable,butavalueof0inthedscp:incomingtable,
youknowsomethingiswrong(orviceversa).Simplybecauseatelephoneconversationisneverflowinginone
directiononly.

COSStatistics
TheCOStablesareabitsmallerthantheDSCPones.Again,wehavetwoofthem:oneforincomingpacketsandthe
otherforoutgoingpackets.

cos:incoming

04:153657640000
57:000
cos:outgoing

04:9444939588290283280
57:462442700

ThetricktoreadthesetwotableisthesametoreadtheDSCPtable:eachrow(either04and57)representa
COSvalue.Thesevaluesrangefrom0to7.TofindtheamountofincomingpacketswithaCOSvalueoffour,wemust
checkthecos:outgoingtable,selectrow04andcheckthefourthvalue(28328).Simple!

VoicetraffichasaCOSvalueof5bydefault.

Fromcos:outgoingtable,wecanseethatthisswitchhassent4624427packetswithaCOSvalueof5.But
unfortunately,ourISPsendseverythinginCOSvalue0.That'swhywesee15365764packetswithCOSvalue0inthe
cos:incomingtable.

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 14/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones

QueueStatistics
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
Thelastsetoftablesdisplayedbytheshmlsqosinterfacegi0/1statisticscommandarethequeue
tables: LEARNMORE GOTIT

outputqueuesenqueued:
queue:threshold1threshold2threshold3

queue0:004624427
queue1:0379124143
queue2:000
queue3:5882909445149

outputqueuesdropped:
queue:threshold1threshold2threshold3

queue0:000
queue1:000
queue2:000
queue3:000

Therearetwotables:theoutputqueuesenqueuedandtheoutputqueuesdropped.Obviously,we
don'twantanypacketstobelistedintheoutputqueuesdroppedtable.Thatwouldmeanthattheinterfaceis
droppingpackets.Therearemanyreasonstodroppackets,butahighvalueshouldindicatethatyouneedtocheck
thisproblemandfixit(newhardware?betterQoS?largerbandwith?YMMV)

Therearefourqueuesoneachinterfaces:queue0toqueue3.Andeachqueuehasthreethresholds
:threshold1,threshold2andthreshold3.Thesequeuesaretheonesreferencedbythesrrqueuebandwidth
commandsfoundonalltheinterfacesweworkedwith.Forexample,srrqueuebandwidthshare130355
assignsdifferentweightstoeachqueue.Queue0getsaweightof1,queue1getaweightof30,35forqueue2and
5forqueue3.CheckoutCatalyst3560SwitchSoftwareConfigurationGuideConfiguringQoSforacomplete
descriptionofthequeues.

HTH,

David

References

Catalyst3560SwitchSoftwareConfigurationGuideConfiguringQoS
PacketLifedotnetQoScheatcheat
QualityofService
VoIPandQoS

Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers

Classifying VoIP Signaling and Media with DSCP for QoS

PostedbyDavidRobillardat16:09

Labels:cisco,qos,voip

5comments:

MartinHudon 22February,201316:19

Nicewriteup!Deuxmorceauxderobot!
Reply

Sean 12December,201305:54

Dudeithankyouforthis!!!
Reply

Replies

DavidRobillard 12December,201310:00
HeySean,gladIcouldhelp!:)

Reply

nyITguy 12February,201411:54
Veryhelpful,thankyou.

Reply
http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 15/16
3/3/2017 Another I.T. blog: VoIP QoS on Cisco 3560 Switches with Polycom and Cisco IP Phones
Reply
ThissiteusescookiesfromGoogletodeliveritsservices,topersonaliseadsandtoanalysetraffic.Information
aboutyouruseofthissiteissharedwithGoogle.Byusingthissite,youagreetoitsuseofcookies.
Ralph 25September,201421:21
LEARNMORE GOTIT
onthemain24portswitch,whydidyouuse"autoqosvoiptrust"vs"autoqostrust"asontheaccesslayer
switches?thanks.

Reply

NewerPost Home OlderPost

Subscribeto:PostComments(Atom)

Freeforanyonetouse,butofcourseIcan'tbehelpresponsibleifsomethinggoeswrong.AwesomeInc.theme.PoweredbyBlogger.

http://itdavid.blogspot.com.es/2012/09/voip-qos-on-cisco-3560-switches-with.html 16/16

Potrebbero piacerti anche