Cisco Networkers 2007-Advanced Campus QoS Design

131
© 2006 Cisco Systems, Inc. All rights reserved. BRKCAM-3006 1 Cisco Public Advanced Campus QoS Design Tim Szigeti BRKCAM-3006

Transcript of Cisco Networkers 2007-Advanced Campus QoS Design

Page 1: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 1Cisco Public

Advanced CampusQoS Design

Tim Szigeti

BRKCAM-3006

Page 2: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 2Cisco Public

HOUSEKEEPING

We value your feedback, don’t forget to complete your online session evaluations after each session and complete the Overall Conference Evaluation which will be available online from Friday.

Visit the World of Solutions on Level -01!

Please remember this is a ‘No Smoking’ venue!

Please switch off your mobile phones!Please remember to wear your badge at all times including the Party!Do you have a question? Feel free to ask them during the Q&A section or write your question on the Question form given to you and hand it to the Room Monitor when you see them holding up the Q&A sign.

Page 3: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 3Cisco Public

Agenda

QoS Best Practices (6-Slide Review)Campus QoS Design ConsiderationsCatalyst 2960/3560/3750 & 3650-E/3750-E QoS DesignCatalyst 4500 & 4948 QoS DesignCatalyst 6500 QoS DesignSummary (At-A-Glance Summaries)Appendix A: Catalyst 2950 QoS DesignAppendix B: Catalyst 3550 QoS Design

Page 4: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 4Cisco Public

QoS Best Practices6-Slide Review

Page 5: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 5Cisco Public

General QoS Design PrinciplesStart with the Objectives: Not the Tools

Clearly define the organizational objectives Protect voice? video? data? DoS/worm mitigation?

Assign as few applications as possible to be treated as “mission-critical”

Seek executive endorsement of the QoS objectives prior to design and deployment

Determine how many classes of traffic are required to meet the organizational objectives

More classes = more granular service-guarantees

Page 6: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 6Cisco Public

Classification and Marking DesignWhere and How Should Marking Be Done?

QoS policies (in general) should always be performed in hardware, rather than software, whenever a choice exists

Classify and mark applications as close to their sources as technically and administratively feasible

Use DSCP markings whenever possible

Follow standards-based DSCP PHBs to ensure interoperation and future expansion

RFC 2474 Class Selector Code Points

RFC 2597 Assured Forwarding Classes

RFC 3246 Expedited Forwarding

RFC 3662 A Lower Effort PDP (Scavenger)

RFC 4594 Configuration Guidelines for DiffServ Classes

Page 7: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 7Cisco Public

Classification and Marking DesignQoS Baseline Marking Recommendations

ApplicationL3 Classification

DSCPPHBIPP CoS

Transactional Data 18AF212 2

Call Signaling 24CS3*3 3

Streaming Video 32CS44 4

Video Conferencing 34AF414 4

Voice 46EF5 5

Network Management 16CS22 2

L2

Bulk Data 10AF111 1

Scavenger 8CS11 1

Routing 48CS66 6

Mission-Critical Data 26AF31*3 3

Best Effort 000 0

Page 8: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 8Cisco Public

Classification and Marking DesignRFC 4594 Configuration Guidelines for DiffServ Service Classes

ApplicationL3 Classification

DSCPPHB RFC

Low-Latency Data 18AF21 RFC 2597

Broadcast Video 24CS3 RFC 2474

Real-Time Interactive 32CS4 RFC 2474

Call Signaling 40CS5 RFC 2474

VoIP Telephony 46EF RFC 3246

OAM 16CS2 RFC 2474

IETF

High-Throughput Data 10AF11 RFC 2597

Low-Priority Data 8CS1 RFC 3662

Network Control 48CS6 RFC 2474

Multimedia Streaming 26AF31 RFC 2597

Best Effort 0DF RFC 2474

Multimedia Conferencing 34AF41 RFC 2597

Page 9: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 9Cisco Public

Policing Design PrinciplesWhere and How Should Policing Be Done?

Police traffic flows as close to their sources as possiblePerform markdown according to standards-based rules, whenever supported

RFC 2597 specifies how assured forwarding traffic classes should be marked down (AF11 AF12 AF13) which should be done whenever DSCP-based WRED is supported on egress queuesCisco Catalyst platforms currently do not support DSCP-based WRED, so Scavenger-class remarking is a viable alternativeAdditionally, non-AF classes do not have a standards-based markdown scheme, so Scavenger-class remarking is a viable option

Page 10: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 10Cisco Public

Queuing Design PrinciplesWhere and How Should Queuing Be Done?

The only way to provide service guarantees is to enable queuing at any node that has the potential for congestion

Regardless of how rarely—in fact—this may occur

At least 25 percent of a link’s bandwidth should be reserved for the default Best Effort classLimit the amount of strict-priority queuing to 33 percent of a link’s capacityWhenever a Scavenger queuing class is enabled, it should be assigned a minimal amount of bandwidthTo ensure consistent PHBs, configure consistent queuing policiesin the Campus + WAN + VPN, according to platform capabilitiesEnable WRED on all TCP flows, whenever supported

Preferably DSCP-based WRED

Page 11: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 11Cisco Public

Campus QoS Design Considerations

Page 12: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 12Cisco Public

Campus QoS ConsiderationsEstablishing Trust Boundaries

123

Optimal Trust Boundary: Trusted Endpoint

Suboptimal Trust Boundary

Optimal Trust Boundary: Untrusted Endpoint

SiSi

Endpoints Access Distribution Core WAN Aggregators

Trust Boundary

1

2

3

SiSiSiSiSiSi SiSiSiSiSiSi

SiSiSiSiSiSi

Page 13: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 13Cisco Public

Campus QoS ConsiderationsEndpoints and Endpoint Trust-Categories

Endpoints• Analog gateways

• IP-conferencing stations

• Videoconferencing gateways and systems

• Video surveillance units

• Wireless access points

• Wireless IP phones

• Servers

• Client PCs

Endpoint Trust-Categories• Trusted endpoints

• Untrusted endpoints

• Conditionally-trusted endpoints

Page 14: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 14Cisco Public

Phone VLAN = 110

Campus QoS ConsiderationsConditional-Trust Boundary Extension and Operation

1 So I Will Trust Your CoS”

“I See You’re an IP Phone,

Trust Boundary

PC VLAN = 10

Voice CoS 5 - Signaling CoS 32

All PC Traffic Is Reset to CoS 0 PC Sets CoS 5 for All Traffic3

“CoS 5 = DSCP 46”“CoS 3 = DSCP 24”“CoS 0 = DSCP 0”

4

Switch and Phone Exchange CDP; Trust Boundary Is Extended to IP Phone1Phone Sets CoS 5 for VoIP and CoS 3 for Call-Signaling Traffic2Phone Rewrites CoS from PC Port to 03Switch Trusts CoS from Phone and Maps CoS DSCP for Output Queuing4

Page 15: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 15Cisco Public

3TelePresence Primary Codec:

Voice + Video CoS 4 & DSCP CS4Call-Signaling CoS 3 & DSCP CS3

CoS-to-DSCP Map:CoS 5 DSCP EF (46)CoS 4 DSCP CS4 (32)CoS 3 DSCP CS3 (24)

4

Campus QoS ConsiderationsConditional-Trust Boundary for Cisco TelePresence

Trust Boundary

Note: As 2-6 data ports are available for PC connections (as part of the TelePresence tables), it is recommended to disable the PC port in the back of the Cisco Unified 7970G IP Phone (from within CallManager)

Trust is Dynamically Extended to Cisco 7970G IP Phone

Successful “Condition” Met (i.e. CDP negotiation successful)1

Cisco 7979G: Voice CoS 5 & DSCP 46Call-Signaling CoS 3 & DSCP CS3

2

Page 16: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 16Cisco Public

All end systems generate traffic spikes, but worms create sustained spikesNormal/abnormal threshold set at approximately 95% confidenceNo dropping at campus access-edge; only remarking

Policing and Remarking (If Necessary)

Campus QoS ConsiderationsScavenger-Class QoS Operation – Part One

No Dropping

Normal/Abnormal Threshold

Page 17: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 17Cisco Public

Campus QoS ConsiderationsScavenger-Class QoS Operation – Part Two

Queuing only engages if links become congestedWhen congestion occurs, drops will also occur

Scavenger class QoS allows for increased intelligence in the dropping decision

‘Abnormal’ traffic flows will be dropped aggressively‘Normal’ traffic flows will continue to receive network service

Queuing Will Engage When Links Become Congested and Traffic Previously Marked as Scavenger Is Dropped Aggressively

Police

WAN/VPN Links Will Likely Congest First

Campus Uplinks May Also Congest

Page 18: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 18Cisco Public

Campus QoS ConsiderationsAccess Edge Trust Models

Trusted endpoint model

AutoQoS—VoIP model

IP Phone + PC + Scavenger model

Page 19: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 19Cisco Public

Campus QoS ConsiderationsAccess-Edge Trusted-Endpoint Model

DSCP from endpoint is accepted and admitted onto the network unaltered

Policing is optional

Transmit Packet withDSCP Unaltered

OptionalPolicing

TrustDSCPStart

Page 20: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 20Cisco Public

Campus QoS ConsiderationsAccess-Edge AutoQoS—VoIP Model

VVLAN +DSCP CS3

Yes

DVLANANY Remark to DSCP 0 and Transmit

No

VVLAN +DSCP EF

YesTrust and TransmitStart

No

Trust and Transmit

Page 21: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 21Cisco Public

Campus QoS Design ConsiderationsAccess-Edge IP Phone + PC + Scavenger Model

VVLAN +DSCP CS3 ≤ 32 kbps YesYes

No

DVLANANY ≤ 5 Mbps

YesYes

No

VVLANANY ≤ 32 kbps

YesYes

No

Remark to DSCP 0and Transmit

Remark to DSCP 0and Transmit

No

No

VVLAN +DSCP EF ≤ 128 kbps YesYes

No

Trust and Transmit

Drop

Remark to DSCP CS1and Transmit

Remark to DSCP CS1and Transmit

Remark to DSCP CS1and Transmit

Remark to DSCP CS3 and Transmit

Start

No

Page 22: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 22Cisco Public

Campus QoS Design ConsiderationsCatalyst Hardware Queuing

All Catalyst switches perform queuing in hardware

The number of queues are fixed, but have some configurable parameters

All Catalyst queuing structures are expressed as:

1PxQyT1P3Q8T (example)

1P represents 1 strict priority queue3Q represents 3 non-priority queues8T represents 8 thresholds per queue

Page 23: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 23Cisco Public

FastEthernetGigabitEthernetTen GigabitEthernet

Campus QoS ConsiderationsWhere Is QoS Required Within the Campus?

Policing + Queuing

Conditional Trust + Policing + QueuingTrust DSCP + QueuingPer-User Microflow Policing + CoPP

WAN Aggregator

Cisco Catalyst 6500 PFC3

Server Farms IP Phones + PCs IP Phones + PCs

Page 24: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 24Cisco Public

Campus QoS ConsiderationsCatalyst Switch-Family Platforms

Catalyst 2960

Catalyst 3750-E &

Catalyst 3750Catalyst 3560-E &

Catalyst 3560

Catalyst 4500Catalyst 6500

Catalyst 4500

Catalyst 6500

Small Medium-sized Large

Number of Employees/Density

Feat

ures

, Sca

labi

lity,

Lon

gevi

ty

Wiring Closet/

Access

Datacenter Access

Distribution/Core

Blade Switches

Catalyst 4948

Catalyst 6500

Page 25: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 25Cisco Public

Cisco Catalyst2960/3560/3750 & 3560-E/3750-E QoS Design

Discover the C3750-E and C3560-E at the World of Solutions

Page 26: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 26Cisco Public

Catalyst 2960/3560/3750 + 3560-E & 3750-EPlatform-Specific QoS Design Considerations

QoS disabled by defaultFull DSCP-range is supported Classification can be done by trust states, standard and advanced IP ACLs, or MAC ACLs Supports classification, marking, and policing by port or by Switched Virtual Interface (SVI) via hierarchical class maps on Cisco Catalyst 2970, 3650, and 3750 (not yet on Cisco Catalyst 2960)Minimum policing granularity is 8 kbpsSupports 4Q3T queuing or 1P3Q3T queuing (Egress)

Q1 can be configured as a priority queueQueues can operate in shaped or sharing modesEach interface can be assigned to one of two queue-setsCongestion avoidance algorithm is Weighted Tail Drop (WTD)

Catalyst 3550, 2950G, 2950T, 2950 LRE are End-of-Life.

Page 27: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 27Cisco Public

Catalyst 2960/3560/3750 + 3560-E & 3750-EQoS Model

Classification Policing Marking

Egress Queue/Schedule

Congestion Control

QoS Actions at Ingress

QoS Actions at Egress

Inspect incoming packets

Based on ACLs or configuration, determine Classification Label

Ensure conformanceto a specified rate.

On an aggregate or Individual flow basisUp to 256 policers per Port ASIC.

Support for rate and burst

Act on Policerdecision.

Reclass or dropout-of-profile.

Four queues/portSRR servicing

WTD for congestioncontrol (3 thresholdsPer queue)

SRR supports shared orShaped modes

QoS Label is generated

Ingress Queue/Schedule

Congestion Control

2 queues per Port SRR Servicing

WTD for congestioncontrol. (3 thresholdsPer queue)

SRR supports shared mode only

Page 28: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 28Cisco Public

Catalyst 2960/3560/3750 + 3560-E & 3750-E Access-Layer QoS Design

Access-EdgesUplinks to

Distribution Layer

Enable QoS Globally

IP Phone + PC + Scavenger Model

AutoQoS–VoIP Model

Trusted-Endpoint Model

1P3Q3TQueuing + WTD

1P3Q3TQueuing + WTD

Global Commands

1P3Q3T Queuing +

WTDTrust-DSCP

Page 29: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 29Cisco Public

Catalyst 2960/3560/3750 + 3650-E & 3750-EEnabling QoS + Trusted Endpoint Example

CAT2970#show mls qosQoS is disabled ! By default QoS is disabled

CAT2970#configure terminalEnter configuration commands, one per line. End with CNTL/Z.CAT3550(config)#mls qos ! Enables QoS globallyCAT3550(config)#exitCAT3550#

CAT2970#show mls qosQoS is enabled ! Verifies that QoS is enabled globallyCAT3550#

CAT2970(config)#interface range FastEthernet0/1 - 48CAT2970(config-if)#mls qos trust dscp ! Trusted Endpoint Example

Page 30: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 30Cisco Public

!mls qos map cos-dscp 0 8 16 26 32 46 48 56mls qos srr-queue output cos-map queue 1 threshold 3 5mls qos srr-queue output cos-map queue 2 threshold 3 3 6 7mls qos srr-queue output cos-map queue 3 threshold 3 2 4mls qos srr-queue output cos-map queue 4 threshold 2 1mls qos srr-queue output cos-map queue 4 threshold 3 0mls qos srr-queue output dscp-map queue 1 threshold 3 40 41 42 43 44 45 46 47mls qos srr-queue output dscp-map queue 2 threshold 3 24 25 26 27 28 29 30 31mls qos srr-queue output dscp-map queue 2 threshold 3 48 49 50 51 52 53 54 55mls qos srr-queue output dscp-map queue 2 threshold 3 56 57 58 59 60 61 62 63mls qos srr-queue output dscp-map queue 3 threshold 3 16 17 18 19 20 21 22 23mls qos srr-queue output dscp-map queue 3 threshold 3 32 33 34 35 36 37 38 39mls qos srr-queue output dscp-map queue 4 threshold 1 8mls qos srr-queue output dscp-map queue 4 threshold 2 9 10 11 12 13 14 15mls qos srr-queue output dscp-map queue 4 threshold 3 0 1 2 3 4 5 6 7mls qos queue-set output 1 threshold 1 138 138 92 138mls qos queue-set output 1 threshold 2 138 138 92 400mls qos queue-set output 1 threshold 3 36 77 100 318mls qos queue-set output 1 threshold 4 20 50 67 400mls qos queue-set output 2 threshold 1 149 149 100 149mls qos queue-set output 2 threshold 2 118 118 100 235mls qos queue-set output 2 threshold 3 41 68 100 272mls qos queue-set output 2 threshold 4 42 72 100 242mls qos queue-set output 1 buffers 10 10 26 54mls qos queue-set output 2 buffers 16 6 17 61mls qos!!interface GigabitEthernet0/1srr-queue bandwidth share 10 10 60 20srr-queue bandwidth shape 10 0 0 0queue-set 2mls qos trust device cisco-phonemls qos trust cosauto qos voip cisco-phone!

CAT2970(config-if)#auto qos voip cisco-phone

Catalyst 2960/3560/3750 + 3650-E & 3750-EAutoQoS VoIP Model Example

Options:auto qos voip cisco-phone

auto qos voip cisco-softphone

auto qos voip trust

Note: AutoQoS-VoIP on this family of switches does not automatically provision“priority-queue out”

It is highly recommended to manually include this interface-command after you have enabled AutoQoS-VoIP.

Page 31: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 31Cisco Public

Catalyst 2960/3560/3750 + 3650-E & 3750-EIP Phone + PC + Scavenger Model Example: Part One

CAT3750(config)#mls qos map cos-dscp 0 8 16 24 32 46 48 56! Modifies CoS-to-DSCP mapping to map CoS 5 to DSCP EF

CAT3750(config)#mls qos map policed-dscp 0 24 to 8! Excess VVLAN & DVLAN traffic will be remarked to Scavenger (CS1)

CAT3750(config)#CAT3750(config)#CAT3750(config)#class-map match-all VVLAN-VOICECAT3750(config-cmap)# match access-group name VVLAN-VOICECAT3750(config-cmap)#CAT3750(config-cmap)#class-map match-all VVLAN-CALL-SIGNALINGCAT3750(config-cmap)# match access-group name VVLAN-CALL-SIGNALINGCAT3750(config-cmap)#CAT3750(config-cmap)#class-map match-all VVLAN-ANYCAT3750(config-cmap)# match access-group name VVLAN-ANYCAT3750(config-cmap)#CAT3750(config-cmap)#

Page 32: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 32Cisco Public

CAT3750(config-cmap)#policy-map IPPHONE+PC-BASICCAT3750(config-pmap)#class VVLAN-VOICECAT3750(config-pmap-c)# set ip dscp 46 ! DSCP EF (Voice)CAT3750(config-pmap-c)# police 128000 8000 exceed-action drop

! Only one voice call is permitted per switchport VVLANCAT3750(config-pmap-c)#class VVLAN-CALL-SIGNALINGCAT3750(config-pmap-c)# set ip dscp 24 ! DSCP CS3 (Call-Signaling)CAT3750(config-pmap-c)# police 32000 8000 exceed-action policed-dscp-transmit

! Out-of-profile Call-Signaling is marked down to Scavenger (CS1)CAT3750(config-pmap-c)#class VVLAN-ANYCAT3750(config-pmap-c)# set ip dscp 0CAT3750(config-pmap-c)# police 32000 8000 exceed-action policed-dscp-transmit

! Unauthorized VVLAN traffic is marked down to Scavenger (CS1)CAT3750(config-pmap-c)#class class-defaultCAT3750(config-pmap-c)# set ip dscp 0CAT3750(config-pmap-c)# police 5000000 8000 exceed-action policed-dscp-transmit

! Out-of-profile data traffic is marked down to Scavenger (CS1)CAT3750(config-pmap-c)# exitCAT3750(config-pmap)#exitCAT3750(config)#

Catalyst 2960/3560/3750 + 3650-E & 3750-EIP Phone + PC + Scavenger Model Example: Part Two

Page 33: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 33Cisco Public

CAT3750(config)#interface GigabitEthernet0/1CAT3750(config-if)# switchport access vlan 10 ! DVLANCAT3750(config-if)# switchport voice vlan 110 ! VVLANCAT3750(config-if)# service-policy input IPPHONE+PC-BASICCAT3750(config-if)#exitCAT3750(config)#CAT3750(config)#CAT3750(config)#ip access-list extended VVLAN-VOICECAT3750(config-ext-nacl)#permit udp 10.1.110.0 0.0.0.255 any

range 16384 32767! Voice is matched by VVLAN subnet and VoIP UDP port-range

CAT3750(config-ext-nacl)#exitCAT3750(config)#CAT3750(config)#ip access-list extended VVLAN-CALL-SIGNALINGCAT3750(config-ext-nacl)#permit tcp 10.1.110.0 0.0.0.255 any

range 2000 2002! Call-Signaling is matched by VVLAN subnet and TCP port-range

CAT3750(config-ext-nacl)#exitCAT3750(config)#CAT3750(config)#ip access-list extended VVLAN-ANYCAT3750(config-ext-nacl)# permit ip 10.1.110.0 0.0.0.255 any

! Matches all other traffic sourced from the VVLAN subnetCAT3750(config-ext-nacl)#endCAT3750#

Catalyst 2960/3560/3750 + 3650-E & 3750-EIP Phone + PC + Scavenger Model Example: Part Three

Page 34: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 34Cisco Public

Catalyst 2960/3560/3750 + 3650-E & 3750-E Queuing Design: 1P3Q3T

Q1Priority Queue

1P3Q3T

Queue 4 (5%)CoS 1

Network Management

Call Signaling

Streaming Video

Transactional Data

Interactive Video

Voice

Application

Bulk Data

AF21

CS3

CS4

AF41

EF

CS2

AF11

Scavenger CS1

Best Effort 0

Internetwork Control CS6

Mission-Critical Data AF31

DSCP

Network Control –

CoS 2

CoS 3

CoS 4

CoS 4

CoS 5

CoS 2

CoS 1

CoS 1

0

CoS 6

CoS 3

CoS

Queue 2(70%)

CoS 7

CoS 5

CoS 2

CoS 4

Queue 3(25%)CoS 0

Q2T3

Q2T2

Q4T2Q4T1

Q2T1

CoS 3

CoS 6

CoS 7

Page 35: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 35Cisco Public

Catalyst 2960/3560/3750 + 3650-E & 3750-EQueuing Design: 1P3Q3T – Part One

CAT3750(config)#mls qos srr-queue output cos-map queue 1 threshold 3 5! Maps CoS 5 to Queue 1 Threshold 3 (Voice gets all of Queue 1)

CAT3750(config)#mls qos srr-queue output cos-map queue 2 threshold 1 2 4! Maps CoS 2 and CoS 4 to Queue 2 Threshold 1

CAT3750(config)#mls qos srr-queue output cos-map queue 2 threshold 2 3! Maps CoS 3 to Queue 2 Threshold 2

CAT3750(config)#mls qos srr-queue output cos-map queue 2 threshold 3 6 7! Maps CoS 6 and CoS 7 to Queue 2 Threshold 3

CAT3750(config)#mls qos srr-queue output cos-map queue 3 threshold 3 0! Maps CoS 0 to Queue 3 Threshold 3 (Best Efforts gets all of Q3)

CAT3750(config)#mls qos srr-queue output cos-map queue 4 threshold 3 1! Maps CoS1 to Queue 4 Threshold 3 (Scavenger/Bulk gets all of Q4)

CAT3750(config)#

Page 36: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 36Cisco Public

CAT3750(config)#mls qos srr-queue output dscp-map queue 1 threshold 3 46! Maps DSCP EF (Voice) to Queue 1 Threshold 3

CAT3750(config)#mls qos srr-queue output dscp-map queue 2 threshold 1 16! Maps DSCP CS2 (Network Management) to Queue 2 Threshold 1

CAT3750(config)#mls qos srr-queue output dscp-map queue 2 threshold 1 18 20 22! Maps DSCP AF21, AF22, AF23 (Transactional Data) to Queue 2 Threshold 1

CAT3750(config)#mls qos srr-queue output dscp-map queue 2 threshold 1 26! Maps DSCP AF31 (Mission-Critical Data) to Queue 2 Threshold 1

CAT3750(config)#mls qos srr-queue output dscp-map queue 2 threshold 1 32! Maps DSCP CS4 (Streaming Video) to Queue 2 Threshold 1

CAT3750(config)#mls qos srr-queue output dscp-map queue 2 threshold 1 34 36 38! Maps DSCP AF41, AF42, AF43 (Interactive-Video) to Queue 2 Threshold 1

CAT3750(config)#mls qos srr-queue output dscp-map queue 2 threshold 2 24! Maps DSCP CS3 (Call-Signaling) to Queue 2 Threshold 2

CAT3750(config)#mls qos srr-queue output dscp-map queue 2 threshold 3 48 56! Maps DSCP CS6 and CS7 (Network/Internetwork) to Queue 2 Threshold 3

CAT3750(config)#mls qos srr-queue output dscp-map queue 3 threshold 3 0! Maps DSCP 0 (Best Effort) to Queue 3 Threshold 3

CAT3750(config)#mls qos srr-queue output dscp-map queue 4 threshold 1 8! Maps DSCP CS1 (Scavenger) to Queue 4 Threshold 1

CAT3750(config)#mls qos srr-queue output dscp-map queue 4 threshold 3 10 12 14! Maps DSCP AF11, AF12, AF13 (Bulk Data) to Queue 4 Threshold 3

CAT3750(config)#

Catalyst 2960/3560/3750 + 3650-E & 3750-EQueuing Design: 1P3Q3T – Part Two

Page 37: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 37Cisco Public

CAT3750(config)#mls qos queue-set output 1 threshold 2 70 80 100 100! Sets Q2 Threshold 1 to 70% and Q2 Threshold 2 to 80%

CAT3750(config)#mls qos queue-set output 1 threshold 4 40 100 100 100! Sets Q4 Threshold 1 to 40% and Q4 Threshold 2 to 100%

CAT3750(config)#

CAT3750(config)#interface range GigabitEthernet0/1 - 28CAT3750(config-if-range)# queue-set 1

! Assigns interface to Queue-Set 1 (default)CAT3750(config-if-range)# srr-queue bandwidth share 1 70 25 5

! Q2 gets 70% of remaining BW; Q3 gets 25% and Q4 gets 5%CAT3750(config-if-range)# srr-queue bandwidth shape 3 0 0 0

! Q1 is limited to 30% of the total available BWCAT3750(config-if-range)# priority-queue out

! Q1 is enabled as a PQCAT3750(config-if-range)#endCAT3750#

Catalyst 2960/3560/3750 + 3650-E & 3750-EQueuing Design: 1P3Q3T – Part Three

Page 38: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 38Cisco Public

Catalyst 4500 (Sup II+ through Sup V-10GE)

and 4948 QoS Design

Page 39: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 39Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Platform-Specific QoS Design Considerations

QoS disabled by defaultFull DSCP-range is supported Classification can be done by trust states, standard and advanced IP ACLs, or MAC ACLs No “mls” prefix in command syntaxPolicing rates can use ‘k’, ‘m,’ or ‘g’ for kbps, mbps, or gbpsSupports per-port/per-VLAN policing SupV-10GE supports User-Based Rate Limiting (UBRL)Minimum policing granularity is 8 kbpsSupports 4Q1T queuing or 1P3Q1T queuing

Q3 can be configured as a priority queueDSCP values can be mapped to queuesSupports bandwidth allocation and shaping on certain linecards

(However shaping is not hierarchical)Congestion avoidance algorithm is Dynamic Buffer Limiting (DBL)

Page 40: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 40Cisco Public

Classification Policing Marking

Egress Queue/Schedule

Congestion Control

QoS Actions at Ingress

QoS Actions at Egress

Inspect incoming packets

Based on ACLs or configuration, determine Classification Label

Ensure conformanceto a specified rate.

On an aggregate or Individual flow basisUp to 256 policers per Port ASIC.

Support for rate and burst

Act on Policerdecision.

Reclass or dropout-of-profile.

Four queues/port

WTD for congestioncontrol (3 thresholdsPer queue)

QoS Labe is generated

DBL

Dynamic Buffer Limiting(Supervisor II PlusSupervisor IV )Congestion Avoidance

Sharing and Shaping)

Sharing and Shaping among4 queues.

Queue 3 is a Strict Priorityqueue

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948QoS Model

Page 41: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 41Cisco Public

Access-EdgesUplinks to

Distribution Layer

Trust-DSCP

1P3Q1TQueuing +

DBL

IP Phone + PC + Scavenger Model

AutoQoS—VoIP Model

Trusted-EndpointModel

1P3Q1TQueuing + DBL

1P3Q1TQueuing + DBL

Global Commands

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Access-Layer QoS Design

Enable QoSGlobally +

CoPP

Page 42: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 42Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Enabling QoS + Trusted Endpoint Example

CAT4500#show qosQoS is disabled globally ! By default QoS is disabledIP header DSCP rewrite is enabled

CAT4500#conf termEnter configuration commands, one per line. End with CNTL/Z.CAT4500(config)#qos ! Enables QoS globally for the Cat4500CAT4500(config)#endCAT4500#

CAT4500#show qosQoS is enabled globally ! Verifies that QoS is enabled globallyIP header DSCP rewrite is enabledCAT4500#

CAT4500(config)#interface FastEthernet2/1CAT4500(config-if)# qos trust dscp ! Trusted Endpoint ExampleCAT4500(config-if)#endCAT4500#

Page 43: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 43Cisco Public

Ingress Control Plane

Forwarding ASICs

Apply•Pre-configured System Traffic Types and / or•User Configurable Traffic Types

Switch CPU

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Control Plane Policing (CPP)

Control and CPU bound

traffic

Linecard Linecard

… 16 CPU Queues

BackplaneData traffic

User Defined Police Actions

Page 44: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 44Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Pre-Configured CPP System Traffic Types

IP Protocol = UDP, L4SrcPort = 67, L4DstPort = 67 system-cpp-dhcp-ss

IP Protocol = UDP, L4SrcPort = 67, L4DstPort = 68 system-cpp-dhcp-sc

IP Protocol = UDP, L4SrcPort = 68, L4DstPort = 67 system-cpp-dhcp-cs

IP DA = 224.0.0.0/24 system-cpp-ip-mcast-linklocal

IPDA = 224.0.0.9 system-cpp-ripv2

IPDA = 224.0.0.2 system-cpp-all-routers-on-subnet

IPDA = 224.0.0.1 system-cpp-all-systems-on-subnet

IP Protocol = PIM, IPDA matches 224.0.0.0/24 system-cpp-pim

IP Protocol = IGMP, IPDA matches 224.0.0.0/3 system-cpp-igmp

IP Protocol = OSPF, IPDA matches 224.0.0.0/24 system-cpp-ospf

Mac DA = 01-00-0C-DD-DD-DD system-cpp-cgmp

MacDA = 0100.0CCC.CCCD system-cpp-sstp

MacDA = 0180.C200.0020 - 0180.C200.002F system-cpp-garp-range

MacDA = 0100.0CCC.CCCC (UDLD/DTP/VTP/Pagp) system-cpp-cdp

MacDA = 0180.C200.0000 - 0180.C200.000F system-cpp-bpdu-range

MacDA = 0180.C200.0003 system-cpp-dot1x

Description Pre-defined Named ACL

Page 45: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 45Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Config Option 1: Pre-Configured System Traffic Types

1. Create the system-cpp-policy policy-map and attach it to the control-plane. C4500(config)# macro global apply system-cpp

2. Specify a discrete policing level per (pre-configured) classC4500(config-pmap)# policy-map system-cpp-policy

C4500(config-pmap-c)# class system-cpp-<cpp_class_name>

C4500(config-pmap-c)# police rate burst

conform-action transmit exceed-action drop

3. Verify CPP QoS policyC4500# show policy-map system-cpp-policy

Page 46: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 46Cisco Public

1. Create the system-cpp-policy policy-map and attach it to the control-plane. C4500(config)# macro global apply system-cpp

2. Define a packet classification criteria C4500(config)# class-map <traffic_class_name>

C4500(config-cmap)# match access-group <access-list-number>

3. Specify a discrete policing level for the user-configured classC4500(config-pmap)# policy-map system-cpp-policy

C4500(config-pmap-c)# class <traffic_class_name>

C4500(config-pmap-c)# police rate burst

conform-action transmit exceed-action drop

4. Verify CPP QoS policyC4500# show policy-map system-cpp-policy

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Config Option 2: User-Defined Traffic Types

Page 47: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 47Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948AutoQoS – VoIP Model Example

Options:auto qos voip cisco-phone

auto qos voip trust

!qos qos dbl qos map cos 3 to 26 qos map cos 5 to 46 qos map dscp 24 25 26 27 28 29 30 31 to tx-queue 4 qos map dscp 32 33 34 35 36 37 38 39 to tx-queue 4 !policy-map autoqos-voip-policy class class-default dbl

!Interface GigabitEthernet0/1

qos trust device cisco-phone qos trust cos tx-queue 3 priority high shape percent 33 bandwidth percent 33

!

CAT4500(config-if)#auto qos voip cisco-phone

Note: AutoQoS-VoIP on this family of switches does not support the “cisco-softphone”model.

Page 48: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 48Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948IP Phone + PC + Scavenger Model Example: Part One

CAT4500-SUP4(config)#qos map cos 5 to dscp 46! Modifies CoS-to-DSCP mapping to map CoS 5 to DSCP EF

CAT4500-SUP4(config)#qos map dscp policed 0 24 to dscp 8! Excess DVLAN & VVLAN traffic will be marked down to Scavenger (CS1)

CAT4500-SUP4(config)#class-map match-all VVLAN-VOICECAT4500-SUP4(config-cmap)# match ip dscp efCAT4500-SUP4(config-cmap)#CAT4500-SUP4(config-cmap)#class-map match-all VVLAN-CALL-SIGNALINGCAT4500-SUP4(config-cmap)# match ip dscp cs3

CAT4500-SUP4(config-cmap)#policy-map IPPHONE+PC-BASIC-VVLANCAT4500-SUP4(config-pmap)#class VVLAN-VOICECAT4500-SUP4(config-pmap-c)# police 128 kbps 8000 byte exceed-action drop

! Only one voice call is permitted per switchport VVLANCAT4500-SUP4(config-pmap-c)#class VVLAN-CALL-SIGNALINGCAT4500-SUP4(config-pmap-c)# police 32 kbps 8000 byte exceed-action

policed-dscp-transmit! Out-of-profile Call-Signaling is marked down to Scavenger (CS1)

CAT4500-SUP4(config-pmap-c)#class class-defaultCAT4500-SUP4(config-pmap-c)# set ip dscp 0CAT4500-SUP4(config-pmap-c)# police 32 kbps 8000 byte exceed-action

policed-dscp-transmit! Unauthorized VVLAN traffic is marked down to Scavenger (CS1)

Page 49: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 49Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948IP Phone + PC + Scavenger Model Example: Part Two

CAT4500-SUP4(config-cmap)#policy-map IPPHONE+PC-BASIC-DVLANCAT4500-SUP4(config-pmap-c)#class class-defaultCAT4500-SUP4(config-pmap-c)# set ip dscp 0CAT4500-SUP4(config-pmap-c)# police 5 mbps 8000 byte exceed-action

policed-dscp-transmit! Out-of-profile data traffic is marked down to Scavenger (CS1)

CAT4500-SUP4(config-pmap-c)# exitCAT4500-SUP4(config-pmap)#exitCAT4500-SUP4(config)#

CAT4500-SUP4(config)#interface FastEthernet2/1CAT4500-SUP4(config-if)# switchport voice vlan 110 ! VVLANCAT4500-SUP4(config-if)# switchport access vlan 10 ! DVLANCAT4500-SUP4(config-if)# qos trust device cisco-phone ! Conditional Trust

CAT4500-SUP4(config-if)# vlan-range 110CAT4500-SUP4(config-if-vlan-range)# service-policy input IPPHONE+PC-BASIC-VVLAN

! Applies VVLAN policers to VVLAN (110) via Per-Port/Per-VLAN policing

CAT4500-SUP4(config-if)# vlan-range 10CAT4500-SUP4(config-if-vlan-range)# service-policy input IPPHONE+PC-BASIC-DVLAN

! Applies DVLAN policer to DVLAN (10) via Per-Port/Per-VLAN policing

CAT4500-SUP4(config-if)#endCAT4500-SUP4#

Page 50: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 50Cisco Public

Q3 (30%)Priority Queue

1P3Q1T

Queue 1 (5%)

Queue 4 (40%)

Queue 2(25%)0

CS3/AF31/AF32/AF33

CS2/AF21/AF22/AF23

CS4/AF41/AF42/AF43CS6/CS7

CS1/AF11

EF

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Queuing Design: 1P3Q1T + DBL

Network Management

Call Signaling

Streaming Video

Transactional Data

Interactive Video

Voice

Application

Bulk Data

AF21

CS3

CS4

AF41

EF

CS2

AF11

Scavenger CS1

Best Effort 0

Internetwork Control CS6

Mission-Critical Data AF31

DSCP

Network Control (CS7)

Page 51: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 51Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Queuing Design: 1P3Q1T + DBL – Part One

CAT4500-SUP4(config)#qos dbl! Globally enables DBL

CAT4500-SUP4(config)#qos dbl exceed-action ecn! Optional: Enables DBL to mark RFC 3168 ECN bits in the IP ToS Byte

CAT4500-SUP4(config)#CAT4500-SUP4(config)#qos map dscp 0 to tx-queue 2

! Maps DSCP 0 (Best Effort) to Q2CAT4500-SUP4(config)#qos map dscp 8 10 12 14 to tx-queue 1

! Maps DSCP CS1 (Scavenger) and AF11/AF12/AF13 (Bulk) to Q1CAT4500-SUP4(config)#qos map dscp 16 18 20 22 to tx-queue 4

! Maps DSCP CS2 (Net-Mgmt) and AF21/AF22/AF23 (Transactional) to Q4CAT4500-SUP4(config)#qos map dscp 24 26 28 30 to tx-queue 4

! Maps DSCP CS3 (Call-Signaling) and AF31/AF32/AF33 (MC Data) to Q4CAT4500-SUP4(config)#qos map dscp 32 34 36 38 to tx-queue 4

! Maps DSCP CS4 (Str-Video) and AF41/AF42/AF43 (Int-Video) to Q4CAT4500-SUP4(config)#qos map dscp 46 to tx-queue 3

! Maps DSCP EF (VoIP) to Q3 (PQ)CAT4500-SUP4(config)#qos map dscp 48 56 to tx-queue 4

! Maps DSCP CS6 (Internetwork) and CS7 (Network) Control to Q4CAT4500-SUP4(config)#CAT4500-SUP4(config)#policy-map DBLCAT4500-SUP4(config-pmap)#class class-defaultCAT4500-SUP4(config-pmap-c)# dbl ! Enables DBL on all traffic flowsCAT4500-SUP4(config-pmap-c)# endCAT4500-SUP4#

Page 52: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 52Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Queuing Design: 1P3Q1T + DBL – Part Two (FE + GE)

CAT4500-SUP4(config)#interface range FastEthernet2/1 - 48CAT4500-SUP4(config-if-range)# service-policy output DBLCAT4500-SUP4(config-if-range)# tx-queue 3CAT4500-SUP4(config-if-tx-queue)# priority high ! Enables Q3 as PQCAT4500-SUP4(config-if-tx-queue)# shape percent 30 ! Shapes PQ to 30%CAT4500-SUP4(config-if-tx-queue)# exitCAT4500-SUP4(config-if-range)#exitCAT4500-SUP4(config)#

CAT4500-SUP4(config)#interface range GigabitEthernet1/1 - 2CAT4500-SUP4(config-if-range)# service-policy output DBLCAT4500-SUP4(config-if-range)# tx-queue 1CAT4500-SUP4(config-if-tx-queue)# bandwidth percent 5 ! Q1 gets 5%CAT4500-SUP4(config-if-tx-queue)# tx-queue 2CAT4500-SUP4(config-if-tx-queue)# bandwidth percent 25 ! Q2 gets 25%CAT4500-SUP4(config-if-tx-queue)# tx-queue 3CAT4500-SUP4(config-if-tx-queue)# priority high ! Enables Q3 as PQCAT4500-SUP4(config-if-tx-queue)# bandwidth percent 30 ! PQ gets 30%CAT4500-SUP4(config-if-tx-queue)# shape percent 30 ! Shapes PQ to 30%CAT4500-SUP4(config-if-tx-queue)# tx-queue 4CAT4500-SUP4(config-if-tx-queue)# bandwidth percent 40 ! Q4 gets 40%CAT4500-SUP4(config-if-tx-queue)#endCAT4500-SUP4#

Page 53: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 53Cisco Public

Catalyst 4500 (Sup II+ to Sup V-10GE) & 4948Distribution and/or Core-Layer QoS Design

Uplinks from Access-Layer Only

Interswitch-Links

1P3Q1TQueuing + DBL

EnableQoS

Globally

Optional (SupV-10GE Only):User-Based Rate-Limiting (UBRL)

Trust-DSCP

1P3Q1TQueuing + DBL

EnableQoS

Globally

Trust-DSCP

Interswitch-Links

Distribution Layer

Core Layer

Page 54: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 54Cisco Public

Catalyst 4500 (Sup V-10GE)User-Based Rate Limiting (UBRL)

CAT4500-SUPV-10GE(config)#qos map dscp policed 0 24 46 to dscp 8! Excess DVLAN & VVLAN traffic will be marked down to Scavenger (CS1)

CAT4500-SUPV-10GE(config)#class-map match-all UBRL—BY-SOURCE-IPCAT4500-SUPV-10GE(config-cmap)#match flow ip source-address

CAT4500-SUPV-10GE(config)#policy-map UBRL-TO-5MBPS-SCAVENGERCAT4500-SUPV-10GE(config-pmap)#class UBRL-BY-SOURCE-IPCAT4500-SUPV-10GE(config-pmap-c)# police 5 mbps 8000 byte exceed-action

policed-dscp-transmit! Out-of-profile data traffic is marked down to Scavenger (CS1)

CAT4500-SUPV-10GE(config-pmap-c)# exitCAT4500-SUPV-10GE(config-pmap)#exitCAT4500-SUPV-10GE(config)#

CAT4500-SUPV-10GE(config)#interface GigabitEthernet2/1CAT4500-SUPV-10GE(config-if)# service-policy input UBRL-TO-5MPBS-SCAVENGER

! Applies the UBRL policy to the uplink from the Access-LayerCAT4500-SUPV-10GE(config-if)# endCAT4500-SUPV-10GE#

Distribution-Layer Cisco Catalyst 4500

SupV-10GE

Page 55: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 55Cisco Public

Catalyst 6500 (PFC2 & PFC3)

QoS Design

Page 56: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 56Cisco Public

QoS disabled by defaultConfiguration may be CatOS or Cisco IOS

Cisco IOS does not (yet) support conditional trust (“mls qos trust device”) nor AutoQoS-VoIP

Classification can be done by trust states, standard and advanced IP ACLs, or MAC ACLs PFC3 supports Per-User Microflow Policing and Control Plane Policing (CoPP on Sup720 and Sup32)SRR is supported on Sup32 GE/10GE uplinks only

Hierachical QoS is not supported on Ethernet portsLinecards determine queuing structure

2Q2T1P2Q1T 1P2Q2T1P3Q1T 1P3Q8T1P7Q4T 1P7Q8T

Catalyst 6500 (PFC 2 & PFC 3)Platform-Specific QoS Design Considerations

Page 57: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 57Cisco Public

Catalyst 6500 (PFC 2 & PFC 3)QoS Model

ClassificationIngress QoS Policing Marking

QoS Actions at Egress LC

Inspect incoming packets Trust CoS, IPP, DSCP

WRR, DWRR and SP are applied based on thetype of queue

WRED or Tail-Drop is applied Depending on the type of queue.

Ensure conformanceto a specified rate.

Identify traffic in and out of profile

Inbound policing

Outbound policing (PCF3 only)

Act on Policerdecision.

Reclass or dropout-of-profile.

Egress Queue/Schedule

Congestion Control

All packets go though the Egress Queues

WRR, DWRR and SP areapplied based on the type of queue

WRED or Tail-Drop is applied Depending on the type of queue

Optional DSCP rewrite (PFC3 only)

QoS Actions at the PFC

QoS Actions at Ingress LC

Page 58: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 58Cisco Public

Access-EdgesUplinks to

Distribution Layer

IP Phone + PC +Scavenger Model

AutoQoS—VoIPModel

Trusted-EndpointModel

Enable QoSGlobally +

CoPP

Trust-DSCP

Globally-DefinedLinecard-DependentQueuing + Dropping

Global Commands

Catalyst 6500 (PFC 2 & PFC 3)Access-Layer QoS Design

Page 59: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 59Cisco Public

CatOS Trust:CAT6500-PFC2-CATOS> (enable) set port qos 3/1 trust trust-dscpPort 3/1 qos set to trust-dscp.CAT6500-PFC2-CATOS> (enable)

Trust Workaround for 2Q2T non-GigabitEthernet Linecards:CAT6500-PFC2-CATOS> (enable) set qos acl ip TRUST-DSCP trust-dscp anyTRUST-DSCP editbuffer modified. Use 'commit' command to apply changes.CAT6500-PFC2-CATOS> (enable) commit qos acl TRUST-DSCPQoS ACL 'TRUST-DSCP' successfully committed.CAT6500-PFC2-CATOS> (enable)CAT6500-PFC2-CATOS> (enable) set qos acl map TRUST-DSCP 4/1

Cisco IOS Trust:CAT6500-PFC2-IOS(config)#interface FastEthernet3/1CAT6500-PFC2-IOS(config-if)#mls qos trust dscp

Catalyst 6500 (PFC 2 & PFC 3)Trusted-Endpoint Model Examples

Page 60: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 60Cisco Public

PFC3

Hardware“Control Plane”

Software “Control Plane” CPU

Fabric

Trafficto CPU

Trafficto CPU

Inband Channel to

RP CPU

Trafficto CPU

Trafficto CPU

Cisco Catalyst 6500 (PFC 3)Control Plane Policing (CoPP) Implementation: Part One

Page 61: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 61Cisco Public

Hardware“Control Plane”

Software “Control Plane” CPU

FabricDFC3

Hardware“Control Plane”

DFC3

Hardware“Control Plane”

Trafficto CPU

Trafficto CPU

Trafficto CPU Inband

Channel to RP CPU

Trafficto CPU

Trafficto CPU

Trafficto CPU

Trafficto CPU

Trafficto CPUPFC3

Cisco Catalyst 6500 (PFC 3)Control Plane Policing (CoPP) Implementation: Part Two

Page 62: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 62Cisco Public

Cisco Catalyst 6500 (PFC 3)What CPU Rate Limiters Are Available?

CEF Receive

ICMP No Route

RPF Failure

ARP PacketsCEF Glean

ICMP Unreachables for Unroutable Packets

Traffic Destined to the Router

Packets That Fail uRPF Check

IP Errors

ICMP ACL Drop ICMP Unreachables for Admin Deny Packets

CEF No Route Packets with No Route in the FIB

ICMP Redirect Packets That Require ICMP Redirects

Packets with IP Checksum or Length Errors

L3 Security

ACL Output

ACL Input

VACL Logging

NAT, TCP Int, Reflexive ACLs, Log on ACLs

CLI Notification of VACL Denied Packets

NAT, TCP Int, Reflexive ACLs, Log on ACLs

CBAC, Auth-Proxy, and IPSec Traffic

Multicast FIB-Miss

IGMP PacketsIGMPPackets with No Mroute in the FIB

Directly Connected

Partial Shortcut Partial Shortcut Entries

Local Multicast on Connected Interface

Unicast Rate Limiters Multicast Rate Limiters

L2PT

Layer 2 PDUsPDUL2PT Encapsulation/Decapsulation

Layer 2 Rate LimitersMTU Failure

TTL FailurePackets Requiring Fragmentation

General Rate Limiters

IP Options Multicast Traffic with IP Options Set

IP Options Unicast Traffic with IP Options SetCapture Used with Optimized ACL Logging

V6 Directly Connect

IGMP PacketsV6 *, G M BridgePackets with No Mroute in the FIB

V6 S, G Bridge

V6 *, G Bridge Partial Shortcut Entries

V6 Route Control

Multicast Traffic with IP Options Set

V6 Default Route

V6 Second Drop

Partial Shortcut Entries

Partial Shortcut Entries

Multicast Traffic with IP Options Set

Packets with TTL 1

Page 63: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 63Cisco Public

Cisco Catalyst 6500 (PFC 3)Configuring Control Plane Policing (CoPP)

1. Define a Packet Classification CriteriaC6500(config)# class-map <traffic_class_name>

C6500(config-cmap)# match <access-group>

2. Define a Policing Service-PolicyC6500(config-pmap)# policy-map <service_policy_name>

C6500(config-pmap)# class <traffic_class_name>

C6500(config-pmap)# police <rate> conform-action transmit

exceed-action drop

3. Enter Control-Plane Config-Mode and Apply CoPP policyC6500(config)# control-planeC6500(config-cp)# service-policy input <service_policy_name>

4. Verify CoPP PolicyC6500# show policy-map control-plane

Page 64: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 64Cisco Public

Explicitly allow needed, known critical protocols such as BGP and EIGRP

Conform and exceed action transmit

Define other required but not critical traffic such as ICMP, SNMP, SSH, telnet, and default

Conform action transmit, exceed action drop

Drop all other undesirable trafficDepending on class defined, apply appropriate policy

Routing protocol traffic (BGP, IGP)—no rate limitManagement traffic (SNMP, SSH, NTP, etc.)—conservative rate limitReporting traffic (SAA combined with DSCP)—conservative rate limitMonitoring traffic (ICMP, trace route)—conservative rate limitCritical traffic (HSRP, SIP/VoIP, DLSw)—conservative rate limitDefault traffic—low rate limitUndesirable traffic (DoS attacks)—drop

Cisco Catalyst 6500 (PFC 3)Control Plane Policing (CoPP) Deployment Guide

Page 65: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 65Cisco Public

Options:autoqos voip cisco-phoneautoqos voip ciscosoftphoneauto qos voip trust

set qos enableset qos map 2q2t tx 2 1 cos 1set qos map 2q2t tx 2 1 cos 2set qos map 2q2t tx 2 1 cos 3set qos map 2q2t tx 2 2 cos 5set qos drop-threshold 2q2t tx queue 1 100 100…set qos cos-dscp-map 0 10 18 26 34 46 48 56set qos ipprec-dscp-map 0 10 18 26 34 46 48 56set qos policed-dscp-map 0,26,46:0set qos policed-dscp-map 1:1…set qos policed-dscp-map 63:63clear qos acl all#ACL_IP-PHONESset qos acl ip ACL_IP-PHONES trust-cos ip any any#commit qos acl all!set vlan 100 3/1set port qos 3/1 trust-device ciscoipphoneset trunk 3/1 off negotiate 1-1005,1025-4094set spantree portfast 3/1 enableset port qos 3/1 trust trust-cosset qos acl map ACL_IP-PHONES 3/1set port qos 3/1-48 policy-source localset port channel 3/1 mode off

set qos autoqosset port qos 3/1 autoqos voip ciscoipphone

Catalyst 6500 (PFC 2 & PFC 3)AutoQoS – VoIP (CatOS Only)

Page 66: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 66Cisco Public

CAT6500-PFC2-CATOS> (enable) set qos cos-dscp-map 0 8 16 24 32 46 48 56! Modifies default CoS-DSCP mapping so that CoS 5 is mapped to DSCP EF

CAT6500-PFC2-CATOS> (enable) set qos policed-dscp-map 0,24:8! Excess traffic marked DSCP 0 or CS3 is remarked to CS1

CAT6500-PFC2-CATOS> (enable)

CAT6500-PFC2-CATOS> (enable) set qos policer aggregate VVLAN-VOICE-3-1rate 128 burst 8000 drop! Defines the policer for IP Phone VoIP traffic

CAT6500-PFC2-CATOS> (enable) set qos policer aggregate VVLAN-SIGNALING-3-1rate 32 burst 8000 policed-dscp! Defines the policer for IP Phone Call-Signaling traffic

CAT6500-PFC2-CATOS> (enable) set qos policer aggregate VVLAN-ANY-3-1 rate 32 burst 8000 policed-dscp! Defines the policer for any other traffic sourced from the VVLAN

CAT6500-PFC2-CATOS> (enable) set qos policer aggregate PC-DATA-3-1rate 5000 burst 8000 policed-dscp! Defines the policer for PC Data traffic

CAT6500-PFC2-CATOS> (enable)

Catalyst 6500 (PFC 2 & PFC 3)IP Phone + PC + Scavenger Model (CatOS) – Part One

For C6500 IOS Voice Deployment Guide – see:http://www.cisco.com/application/pdf/en/us/guest/products/ps708/c1244/cdccont_0900aecd804dc7ae.pdfBut keep in mind – C6500 IOS does not yet support conditional trust (i.e. “mls qos trust device …”)

Page 67: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 67Cisco Public

CAT6500-PFC2-CATOS> (enable) set qos acl ip IPPHONE-PC-BASIC-3-1 dscp 46aggregate VVLAN-VOICE-3-1 udp 10.1.110.0 0.0.0.255 any range 16384 32767! Binds ACL to policer and marks in-profile VVLAN VoIP to DSCP EF

CAT6500-PFC2-CATOS> (enable) set qos acl ip IPPHONE-PC-BASIC-3-1 dscp 24 aggregate VVLAN-SIGNALING-3-1 tcp 10.1.110.0 0.0.0.255 any range 2000 2002! Binds ACL to policer marks in-profile VVLAN Call-Signaling to DSCP CS3

CAT6500-PFC2-CATOS> (enable) set qos acl ip IPPHONE-PC-BASIC-3-1 dscp 0aggregate VVLAN-ANY-3-1 10.1.110.0 0.0.0.255! Binds ACL to policer and marks all other VVLAN traffic to DSCP 0

CAT6500-PFC2-CATOS> (enable) set qos acl ip IPPHONE-PC-BASIC-3-1 dscp 0aggregate PC-DATA-3-1 any! Binds ACL to policer and marks in-profile PC Data traffic to DSCP 0

CAT6500-PFC2-CATOS> (enable) commit qos acl IPPHONE-PC-BASIC-3-1! Commits ACL to PFC memory

CAT6500-PFC2-CATOS> (enable)

CAT6500-PFC2-CATOS> (enable) set port qos 3/1 cos 0! Sets CoS to 0 for all untrusted packets (when there is no IP Phone)

CAT6500-PFC2-CATOS> (enable) set port qos 3/1 cos-ext 0! Sets CoS to 0 for all untrusted PC-generated packets (behind an IP Phone)

CAT6500-PFC2-CATOS> (enable) set port qos 3/1 trust-ext untrusted! Ignore any CoS values for all PC-generated packets (behind an IP Phone)

CAT6500-PFC2-CATOS> (enable) set port qos 3/1 trust-device ciscoipphone! Conditional trust (for Cisco IP Phones only)

CAT6500-PFC2-CATOS> (enable) set qos acl map IPPHONE-PC-BASIC-3-1 3/1! Attaches ACL to switch port

CAT6500-PFC2-CATOS> (enable)

Catalyst 6500 (PFC 2 & PFC 3)IP Phone + PC + Scavenger Model (CatOS) – Part Two

Page 68: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 68Cisco Public

Uplinks from Access-Layer Only

Interswitch-Links

Interface-GroupLinecard-DependentQueuing + Dropping

EnableQoS

Globally

Optional (PFC3 Only):Per-User Microflow

Policing

Trust-DSCP

Interface-GroupLinecard-DependentQueuing + Dropping

EnableQoS

Globally

Trust-DSCP

Interswitch-Links

Distribution Layer

Core Layer

Cisco Catalyst 6500 (PFC 3)Distribution- & Core-Layer QoS Design

Page 69: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 69Cisco Public

C6500 (PFC3) QoS DesignPFC3 Per-User Microflow Policing: Part One

CAT6500-IOS(config)#mls qos map policed-dscp normal 0 24 26 34 36 to 8! Excess traffic marked 0,CS3,AF31,AF41 or AF42 will be remarked to CS1

CAT6500-IOS(config)#class-map match-any VVLAN-TRAFFICCAT6500-IOS(config-cmap)# match ip dscp efCAT6500-IOS(config-cmap)# match ip dscp cs3CAT6500-IOS(config-cmap)#class-map match-all DLVAN-TRAFFICCAT6500-IOS(config-cmap)# match ip dscp 0

CAT6500-IOS(config-cmap)#policy-map PER-USER-POLICINGCAT6500-IOS(config-pmap)# class VLAN-TRAFFICCAT6500-IOS(config-pmap-c)# police flow mask src-only 160000 8000

conform-action transmit exceed-action drop! Traffic from any VVLAN source (IP Phones) in excess of 160 kbps is droppedCAT6500-IOS(config-pmap-c)# class BEST-EFFORTCAT6500-IOS(config-pmap-c)# police flow mask src-only 5000000 8000

conform-action transmit exceed-action policed-dscp-transmit! Traffic from any DVLAN source (PCs) in excess of 5 Mbps is remarked to CS1CAT6500-IOS(config-pmap-c)# exit

Distribution-LayerCisco Catalyst 6500 Sup720

Page 70: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 70Cisco Public

C6500 (PFC3) QoS DesignPFC3 Per-User Microflow Policing: Part Two

CAT6500-IOS(config)#CAT6500-IOS(config)#interface range GigabitEthernet4/1 - 4CAT6500-IOS(config-if-range)# mls qos trust dscpCAT6500-IOS(config-if-range)# service-policy input PER-USER-POLICING

! Attaches Per-User Microflow policing policy to Uplinks from AccessCAT6500-IOS(config-if-range)#endCAT6500-IOS#

Distribution-LayerCisco Catalyst 6500 Sup720

Page 71: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 71Cisco Public

Catalyst 6500 Queuing Structures and Design by Supervisor and Linecard

Page 72: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 72Cisco Public

Cisco Catalyst 6500Queuing Structures by Supervisors

WS-X6K-S2-PFC2

WS-X6K-S2-MSFC2 439 KB 73 KB 512 KB WRR 1p2q2t WRR 1p1q4t

WS-X6K-S2U-MSFC2

WS-SUP32-GE 1.2 MB 166 KB 1.3 MB SRR1p3q8t WRR 2q8t

WS-SUP32-10GE

WS-SUP720-3BXL

WS-SUP720-3B 439 KB 73 KB 512 KB WRR 1p2q2t WRR 1p1q4t

WS-SUP720

Egress Buffer Size

Ingress Buffer Size

Total Buffer Size

Egress Queue

Scheduler

Egress Queue and

Drop Thresholds

Ingress Queue

Scheduler

Ingress Queue and

Drop Thresholds

Supervisor Engines

Page 73: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 73Cisco Public

WS-X6348-RJ-21V

WS-X6348-RJ-45V

WS-X6348-RJ-45

WS-X6324-100FX-SM

112 KB 16 KB 128 KB WRR 2q2t WRR 1q4t

WS-X6324-100FX-MM

WS-X6548-RJ-45

WS-X6548-RJ-21 1,088 KB 28 KB 1,116 KB DWRR 1p3q1t WRR 1p1q0t

WS-X6524-100FX-MM

Egress Buffer Size

Ingress Buffer Size

Total Buffer Size

Egress Queue

Scheduler

Egress Queue and

Drop Thresholds

Ingress Queue

Scheduler

Ingress Queue and

Drop Thresholds

Modules

Cisco Catalyst 6500Queuing Structures by FE or 10/100 Linecards

Page 74: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 74Cisco Public

Cisco Catalyst 6500Queuing Structures by FE or 10/100 Linecards (cont)

WS-X6148-21AF

WS-X6148-RJ-21V

WS-X6148-RJ-21

WS-X6148-45AF

WS-X6148-RJ-45V

WS-X6148-RJ-45

112 KB 16 KB 128 KB

WS-X6248A-TEL

WS-X6248-TEL

WS-X6248-RJ-45 56 KB 8 KB 64 KB

WS-X6224-100FX-MT

WRR2q2tWRR1q4t

Egress Buffer Size

Ingress Buffer Size

Total Buffer Size

Egress Queue

Scheduler

Egress Queue and

Drop Thresholds

Ingress Queue

Scheduler

Ingress Queue and

Drop Thresholds

Modules

WS-X6148A-45AF 5.3 MB 60 KB 5.3 MB

WS-X6148A-RJ-45WRR1p3q8tWRR1p1q4t

Page 75: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 75Cisco Public

56 KB 8 KB 64 KB WRR 2q2t WRR 1q4t WS-X6024-10FL-MT

WS-X6148X2-45AF

1088 KB 28 KB 1,116 KB DWRR 1p3q1t WRR 1p1q0t

WS-X6148X2-RJ-45

Egress Buffer Size

Ingress Buffer Size

Total Buffer Size

Egress Queue

Scheduler

Egress Queue and

Drop Thresholds

Ingress Queue

Scheduler

Ingress Queue and

Drop Thresholds

Modules

Cisco Catalyst 6500Queuing Structures by FE or 10/100 Linecards (cont)

Page 76: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 76Cisco Public

WS-X6548-GE-45AF WS-X6548V-GE-TX 1.2 MB 185 KB 1.4 MB WRR 1p2q2t WRR 1q2t

WS-X6548-GE-TX WRR 1q8t WS-X6724-SFP with CFC WRR 2q8t WS-X6724-SFP with DFC3 WRR 1q8t WS-X6748-SFP with CFC WRR 2q8t WS-X6748-SFP with DFC3

WRR 1q8t WS-X6748-GE-TX with CFC

1.2 MB 166 KB 1.3 MB DWRR 1p3q8t

WRR 2q8t WS-X6748-GE-TX with DFC3

439 KB 73 KB 512 KB WRR 1p2q2t WRR 1p1q4t WS-X6816-GBIC

Egress Buffer Size

Ingress Buffer Size

Total Buffer Size

Egress Queue

Scheduler

Egress Queue and

Drop Thresholds

Ingress Queue

Scheduler

Ingress Queue and

Drop Thresholds

Modules

Cisco Catalyst 6500Queuing Structures by GE or 10/100/1000 Linecards

Page 77: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 77Cisco Public

WS-X6148-GE-45AF WS-X6148-GE-TX 1.2 MB 185 KB 1.4 MB WRR 1q2t

WS-X6148-GE-TX WRR WS-X6316-GE-TX WRR WS-X6416-GE-MT WRR WS-X6416-GBIC

439 KB 73 KB

WRR 1p2q2t

WRR

1p1q4t

WS-X6408A-GBIC 432 KB 80 KB WRR 2q2t WRR 1q4t WS-X6408-GBIC 439 KB 73 KB

512 KB

WRR WRR WS-X6516-GE-TX 946 KB 135 KB 1 MB WRR WRR WS-X6516A-GBIC 439 KB 73 KB 512 KB WRR

1p2q2t

WRR

1p1q4t

WS-X6516-GBIC

Egress Buffer Size

Ingress Buffer Size

Total Buffer Size

Egress Queue

Scheduler

Egress Queue and

Drop Thresholds

Ingress Queue

Scheduler

Ingress Queue and

Drop Thresholds

Modules

Cisco Catalyst 6500Queuing Structures by GE or 10/100/1000 Linecards (cont)

WS-X6148A-GE-45AF 5.4 MB 120 KB 5.5 MB

WS-X6148A-GE-TXWRR1p3q8tWRR1q2t

Page 78: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 78Cisco Public

WS-X6708-10G-3CXL

92 MB109 MB256 MBWRR1p7q4tWRR8q4t

WS-X6708-10G-3C

WS-X6501-10GEX4 64 MB 256 KB 64.2 MB DWRR 1p2q1t WRR 1p1q8t

WS-X6502-10GE

WRR 1q8t WS-X6704-10GE with CFC

14 MB 2 MB 16 MB DWRR 1p7q8t

WRR 8q8t WS-X6704-10GE with DFC3

Egress Buffer Size

Ingress Buffer Size

Total Buffer Size

Egress Queue

Scheduler

Egress Queue and

Drop Thresholds

Ingress Queue

Scheduler

Ingress Queue and

Drop Thresholds

Modules

Cisco Catalyst 6500Queuing Structures by 10GE Linecards

Page 79: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 79Cisco Public

Cisco Catalyst 6500Queuing Design: 2Q2T

2Q2T

Queue 2(70%)

CoS 3

CoS 2

CoS 4CoS 6CoS 7

Queue 1(30%)CoS 0

CoS 1

Q1T2

Q1T1

Q2T1

Q2T2

CoS 5

Network Management

Call Signaling

Streaming Video

Transactional Data

Interactive Video

Voice

Application

Bulk Data

AF21

CS3

CS4

AF41

EF

CS2

AF11

Scavenger CS1

Best Effort 0

Internetwork Control CS6

Mission-Critical Data AF31

DSCP

Network Control –

CoS 2

CoS 3

CoS 4

CoS 4

CoS 5

CoS 2

CoS 1

CoS 1

0

CoS 6

CoS 3

CoS

CoS 7

Page 80: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 80Cisco Public

CAT6500-PFC3-IOS(config)# interface range FastEthernet6/1 - 48CAT6500-PFC3-IOS(config-if)# wrr-queue queue-limit 30 70

! Sets the buffer allocations to 30% for Q1 and 70% for Q2CAT6500-PFC3-IOS(config-if)# wrr-queue bandwidth 30 70

! Sets the WRR weights for 30:70 (Q1:Q2) bandwidth servicingCAT6500-PFC3-IOS(config-if)#

CAT6500-PFC3-IOS(config-if)# wrr-queue threshold 1 40 100! Sets Q1T1 to 40% to limit Scavenger/Bulk within Q1

CAT6500-PFC3-IOS(config-if)# wrr-queue threshold 2 80 100! Sets Q2T1 to 80% to always have room in Q2 for VoIP

CAT6500-PFC3-IOS(config-if)#

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 1 1 1! Maps Scavenger/Bulk to Q1T1

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 1 2 0! Maps Best Effort to Q1T2

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 2 1 2 3 4 6 7! Maps CoS 2,3,4,6 and 7 to Q2T1

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 2 2 5! Maps VoIP to Q2T2

CAT6500-PFC3-IOS(config-if)#endCAT6500-PFC3-IOS#

Cisco Catalyst 6500Queuing Design: 2Q2T (IOS)

Page 81: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 81Cisco Public

1P2Q1T

Queue 2(30%)

CoS 3

CoS 2

CoS 4

CoS 6

CoS 7

Queue 1(40%)

CoS 0

CoS 1

Q3Priority Queue

CoS 5

Q1T1

Network Management

Call Signaling

Streaming Video

Transactional Data

Interactive Video

Voice

Application

Bulk Data

AF21

CS3

CS4

AF41

EF

CS2

AF11

Scavenger CS1

Best Effort 0

Internetwork Control CS6

Mission-Critical Data AF31

DSCP

Network Control –

CoS 2

CoS 3

CoS 4

CoS 4

CoS 5

CoS 2

CoS 1

CoS 1

0

CoS 6

CoS 3

CoS

CoS 7

Cisco Catalyst 6500Queuing Design: 1P2Q1T

Page 82: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 82Cisco Public

CAT6500-PFC3-IOS(config)#interface TenGigabitEthernet1/1CAT6500-PFC3-IOS(config-if)# wrr-queue queue-limit 40 30

! Sets the buffer allocations to 30% for Q1 and 40% for Q2CAT6500-PFC3-IOS(config-if)# wrr-queue bandwidth 30 70

! Sets the WRR weights for 30:70 (Q1:Q2) bandwidth servicingCAT6500-PFC3-IOS(config-if)#

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect min-threshold 1 80! Sets Min WRED Threshold for Q1T1 to 80%

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect max-threshold 1 100! Sets Max WRED Threshold for Q1T1 to 100%

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect min-threshold 2 80! Sets Min WRED Threshold for Q2T1 to 80%

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect max-threshold 2 100! Sets Max WRED Threshold for Q2T1 to 100%

CAT6500-PFC3-IOS(config-if)#

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 1 1 1 0! Maps Scavenger/Bulk and Best Effort to Q1 WRED Threshold 1

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 2 1 2 3 4 6 7! Maps CoS 2,3,4,6 and 7 to Q2 WRED Threshold 1

CAT6500-PFC3-IOS(config-if)# priority-queue cos-map 1 5! Assigns VoIP to PQ (Q3)

CAT6500-PFC3-IOS(config-if)#endCAT6500-PFC3-IOS#

Cisco Catalyst 6500Queuing Design: 1P2Q1T (IOS)

Page 83: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 83Cisco Public

1P2Q2T

Queue 2(30%)

CoS 3

CoS 2

CoS 4

CoS 6

CoS 7

Q2T1

Q2T2

Q3 (30%)Priority Queue

CoS 5

Queue 1(40%)

CoS 0

CoS 1 Q1T1

Q1T2Network Management

Call Signaling

Streaming Video

Transactional Data

Interactive Video

Voice

Application

Bulk Data

AF21

CS3

CS4

AF41

EF

CS2

AF11

Scavenger CS1

Best Effort 0

Internetwork Control CS6

Mission-Critical Data AF31

DSCP

Network Control –

CoS 2

CoS 3

CoS 4

CoS 4

CoS 5

CoS 2

CoS 1

CoS 1

0

CoS 6

CoS 3

CoS

CoS 7

Cisco Catalyst 6500Queuing Design: 1P2Q2T

Page 84: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 84Cisco Public

CAT6500-PFC3-IOS(config)#interface range GigabitEthernet4/1 - 8CAT6500-PFC3(config-if-range)# wrr-queue queue-limit 40 30

! Sets the buffer allocations to 40% for Q1 and 30% for Q2! Indirectly sets PQ (Q3) size to equal Q2 (which is set to 30%)

CAT6500-PFC3(config-if-range)# wrr-queue bandwidth 30 70! Sets the WRR weights for 30:70 (Q1:Q2) bandwidth servicing

CAT6500-PFC3(config-if-range)#

CAT6500-PFC3(config-if-range)# wrr-queue random-detect min-threshold 1 40 80! Sets Min WRED Thresholds for Q1T1 and Q1T2 to 40 and 80, respectively

CAT6500-PFC3(config-if-range)# wrr-queue random-detect max-threshold 1 80 100! Sets Max WRED Thresholds for Q1T1 and Q1T2 to 80 and 100, respectively

CAT6500-PFC3(config-if-range)# wrr-queue random-detect min-threshold 2 70 80! Sets Min WRED Thresholds for Q2T1 and Q2T2 to 70 and 80, respectively

CAT6500-PFC3(config-if-range)# wrr-queue random-detect max-threshold 2 80 100! Sets Max WRED Thresholds for Q2T1 and Q2T2 to 80 and 100, respectively

Cisco Catalyst 6500Queuing Design: 1P2Q2T (IOS) – Part One

Page 85: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 85Cisco Public

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 1 1 1! Maps Scavenger/Bulk to Q1 WRED Threshold 1

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 1 2 0! Maps Best Effort to Q1 WRED Threshold 2

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 2 1 2 3 4! Maps CoS 2,3,4 to Q2 WRED Threshold 1

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 2 2 6 7! Maps Network/Internetwork Control to Q2 WRED Threshold 2

CAT6500-PFC3(config-if-range)# priority-queue cos-map 1 5! Maps VoIP to PQ

CAT6500-PFC3(config-if-range)#endCAT6500-PFC3-IOS#

Cisco Catalyst 6500Queuing Design: 1P2Q2T (IOS) – Part Two

Page 86: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 86Cisco Public

Cisco Catalyst 6500Queuing Design: 1P3Q1T

1P3Q1T

Queue 3(70%)

CoS 3

CoS 2

CoS 4

CoS 6

Queue 1 (5%)

Queue 2(25%)CoS 0

CoS 1

Q4Priority Queue

CoS 5

Network Management

Call Signaling

Streaming Video

Transactional Data

Interactive Video

Voice

Application

Bulk Data

AF21

CS3

CS4

AF41

EF

CS2

AF11

Scavenger CS1

Best Effort 0

Internetwork Control CS6

Mission-Critical Data AF31

DSCP

Network Control –

CoS 2

CoS 3

CoS 4

CoS 4

CoS 5

CoS 2

CoS 1

CoS 1

0

CoS 6

CoS 3

CoS

CoS 7

CoS 7

Page 87: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 87Cisco Public

CAT6500-PFC3-IOS(config)# interface range FastEthernet3/1 - 48CAT6500-PFC3-IOS(config-if)# wrr-queue bandwidth 5 25 70

! Sets the WRR weights for 5:25:70 (Q1:Q2:Q3) bandwidth servicingCAT6500-PFC3-IOS(config-if)#CAT6500-PFC3-IOS(config-if)#CAT6500-PFC3(config-if-range)# wrr-queue random-detect 1 ! Enables WRED on Q1CAT6500-PFC3(config-if-range)# wrr-queue random-detect 2 ! Enables WRED on Q2CAT6500-PFC3(config-if-range)# wrr-queue random-detect 3 ! Enables WRED on Q3CAT6500-PFC3-IOS(config-if)#CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect min-threshold 1 80

! Sets Min WRED Threshold for Q1T1 to 80%CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect max-threshold 1 100

! Sets Max WRED Threshold for Q1T1 to 100%CAT6500-PFC3-IOS(config-if)#

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect min-threshold 2 80! Sets Min WRED Threshold for Q2T1 to 80%

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect max-threshold 2 100! Sets Max WRED Threshold for Q2T1 to 100%

CAT6500-PFC3-IOS(config-if)#

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect min-threshold 3 80! Sets Min WRED Threshold for Q3T1 to 80%

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect max-threshold 3 100! Sets Max WRED Threshold for Q3T1 to 100%

CAT6500-PFC3-IOS(config-if)#

Cisco Catalyst 6500Queuing Design: 1P3Q1T (IOS) – Part One

Page 88: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 88Cisco Public

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 1 1 1! Maps Scavenger/Bulk to Q1 WRED Threshold 1 (80:100)

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 2 1 0! Maps Best Effort to Q2 WRED Threshold 1 (80:100)

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 3 1 2 3 4 6 7! Maps CoS 2,3,4,6 and 7 to Q3 WRED Threshold 1 (80:100)

CAT6500-PFC3-IOS(config-if)# priority-queue cos-map 1 5! Maps VoIP to PQ (Q4)

CAT6500-PFC3-IOS(config-if)#endCAT6500-PFC3-IOS#

Cisco Catalyst 6500Queuing Design: 1P3Q1T (IOS) – Part Two

Page 89: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 89Cisco Public

1P3Q8T

Queue 3(70%)

Queue 1 (5%)

Queue 2(25%)CoS 0

CoS 1

Q2T1

Q1T1

Q4Priority Queue

CoS 5

CoS 4

Q3T1Q3T2Q3T3Q3T4Q3T5

CoS 3CoS 6CoS 7

CoS 2

Network Management

Call Signaling

Streaming Video

Transactional Data

Interactive Video

Voice

Application

Bulk Data

AF21

CS3

CS4

AF41

EF

CS2

AF11

Scavenger CS1

Best Effort 0

Internetwork Control CS6

Mission-Critical Data AF31

DSCP

Network Control –

CoS 2

CoS 3

CoS 4

CoS 4

CoS 5

CoS 2

CoS 1

CoS 1

0

CoS 6

CoS 3

CoS

CoS 7

Cisco Catalyst 6500Queuing Design: 1P3Q8T

Page 90: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 90Cisco Public

CAT6500-PFC3-IOS(config)# interface range GigabitEthernet1/1 - 48CAT6500-PFC3-IOS(config-if)# wrr-queue queue-limit 5 25 40

! Allocates 5% for Q1, 25% for Q2 and 40% for Q3CAT6500-PFC3-IOS(config-if)# wrr-queue bandwidth 5 25 70

! Sets the WRR weights for 5:25:70 (Q1:Q2:Q3) bandwidth servicing

CAT6500-PFC3(config-if-range)# wrr-queue random-detect 1 ! Enables WRED on Q1CAT6500-PFC3(config-if-range)# wrr-queue random-detect 2 ! Enables WRED on Q2CAT6500-PFC3(config-if-range)# wrr-queue random-detect 3 ! Enables WRED on Q3CAT6500-PFC3-IOS(config-if)#

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect min-threshold 1 80 100 100 100 100 100 100 100! Sets Min WRED Threshold for Q1T1 to 80% and all others to 100%

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect max-threshold 1 100100 100 100 100 100 100 100! Sets Max WRED Threshold for Q1T1 to 100% and all others to 100%

CAT6500-PFC3-IOS(config-if)#

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect min-threshold 2 80100 100 100 100 100 100 100! Sets Min WRED Threshold for Q2T1 to 80% and all others to 100%

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect max-threshold 2 100100 100 100 100 100 100 100 ! Sets Max WRED Threshold for Q2T1 to 100% and all others to 100%

Cisco Catalyst 6500Queuing Design: 1P3Q8T (IOS) – Part One

Page 91: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 91Cisco Public

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect min-threshold 3 5060 70 80 90 100 100 100! Sets Min WRED Threshold for Q3T1 to 50%, Q3T2 to 60%, Q3T3 to 70%! Q3T4 to 80%, Q3T5 to 90% and all others to 100%

CAT6500-PFC3-IOS(config-if)# wrr-queue random-detect max-threshold 3 6070 80 90 100 100 100 100 ! Sets Max WRED Threshold for Q3T1 to 60%, Q3T2 to 70%, Q3T3 to 80%! Q3T4 to 90%, Q3T5 to 100% and all others to 100%

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 1 1 1! Maps Scavenger/Bulk to Q1 WRED Threshold 1

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 2 1 0! Maps Best Effort to Q2 WRED Threshold 1

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 3 1 4! Maps Video to Q3 WRED Threshold 1

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 3 2 2! Maps Net-Mgmt and Transactional Data to Q3 WRED T2

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 3 3 3! Maps Call-Signaling and Mission-Critical Data to Q3 WRED T3

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 3 4 6! Maps Internetwork-Control (IP Routing) to Q3 WRED T4

CAT6500-PFC3-IOS(config-if)# wrr-queue cos-map 3 5 7! Maps Network-Control (Spanning Tree) to Q3 WRED T5

CAT6500-PFC3-IOS(config-if)# priority-queue cos-map 1 5! Maps VoIP to the PQ (Q4)

CAT6500-PFC3-IOS(config-if)#endCAT6500-PFC3-IOS#

Cisco Catalyst 6500Queuing Design: 1P3Q8T (IOS) – Part Two

Page 92: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 92Cisco Public

Transactional Data AF21 CoS 2

Call Signaling CS3 CoS 3

Streaming Video CS4 CoS 4

Interactive Video AF41 CoS 4

Voice EF CoS 5

Network Management CS2 CoS 2

Bulk Data AF11 CoS 1

Scavenger CS1 CoS 1

Best Effort 0 0

Interwork Control CS6 CoS 6

Mission-Critical Data AF31 CoS 3

Application DSCP CoS

Network Control – CoS 7

1P7Q8T

CoS 5

CoS 7

CoS 6

CoS 0

CoS 1

CoS 2

CoS 4

CoS 3

Q1T1

Q2T1

Q3T1

Q4T1

Q5T1

Q6T1

Q7T1

Q8 (PQ)

Q7 (5%)

Q6 (5%)

Q5 (20%)

Q4 (20%)

Q3 (20%)

Q2 (25%)

Q1 (5%)

Cisco Catalyst 6500Queuing Design: 1P7Q4T and/or 1P7Q8T

Page 93: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 93Cisco Public

CAT6500-PFC3-IOS(config)#interface range TenGigabitEthernet4/1 - 4CAT6500-PFC3(config-if-range)# wrr-queue queue-limit 5 25 10 10 10 5 5

! Allocates 5% to Q1, 25% to Q2, 10% to Q3, 10% to Q4,! Allocates 10% to Q5, 5% to Q6 and 5% to Q7

CAT6500-PFC3(config-if-range)# wrr-queue bandwidth 5 25 20 20 20 5 5! Sets the WRR weights for 5:25:20:20:20:5:5 (Q1 through Q7)

CAT6500-PFC3(config-if-range)# wrr-queue random-detect 1 ! Enables WRED on Q1CAT6500-PFC3(config-if-range)# wrr-queue random-detect 2 ! Enables WRED on Q2CAT6500-PFC3(config-if-range)# wrr-queue random-detect 3 ! Enables WRED on Q3CAT6500-PFC3(config-if-range)# wrr-queue random-detect 4 ! Enables WRED on Q4CAT6500-PFC3(config-if-range)# wrr-queue random-detect 5 ! Enables WRED on Q5CAT6500-PFC3(config-if-range)# wrr-queue random-detect 6 ! Enables WRED on Q6CAT6500-PFC3(config-if-range)# wrr-queue random-detect 7 ! Enables WRED on Q7

Cisco Catalyst 6500Queuing Design: 1P7Q4T/1P7Q8T (IOS) – Part One

Page 94: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 94Cisco Public

CAT6500-PFC3(config-if-range)# wrr-queue random-detect min-threshold 1 80100 100 100 100 100 100 100! Sets Min WRED Threshold for Q1T1 to 80% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect max-threshold 1 100100 100 100 100 100 100 100! Sets Max WRED Threshold for Q1T1 to 100% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect min-threshold 2 80100 100 100 100 100 100 100! Sets Min WRED Threshold for Q2T1 to 80% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect max-threshold 2 100100 100 100 100 100 100 100! Sets Max WRED Threshold for Q2T1 to 100% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect min-threshold 3 80100 100 100 100 100 100 100! Sets Min WRED Threshold for Q3T1 to 80% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect max-threshold 3 100100 100 100 100 100 100 100! Sets Max WRED Threshold for Q3T1 to 100% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect min-threshold 4 80100 100 100 100 100 100 100! Sets Min WRED Threshold for Q4T1 to 80% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect max-threshold 4 100100 100 100 100 100 100 100! Sets Max WRED Threshold for Q4T1 to 100% and all others to 100%

Cisco Catalyst 6500Queuing Design: 1P7Q4T/1P7Q8T (IOS) – Part Two

Page 95: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 95Cisco Public

CAT6500-PFC3(config-if-range)# wrr-queue random-detect min-threshold 5 80100 100 100 100 100 100 100! Sets Min WRED Threshold for Q5T1 to 80% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect max-threshold 5 100100 100 100 100 100 100 100! Sets Max WRED Threshold for Q5T1 to 100% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect min-threshold 6 80100 100 100 100 100 100 100! Sets Min WRED Threshold for Q6T1 to 80% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect max-threshold 6 100100 100 100 100 100 100 100! Sets Max WRED Threshold for Q6T1 to 100% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect min-threshold 7 80100 100 100 100 100 100 100! Sets Min WRED Threshold for Q7T1 to 80% and all others to 100%

CAT6500-PFC3(config-if-range)# wrr-queue random-detect max-threshold 7 100100 100 100 100 100 100 100! Sets Max WRED Threshold for Q7T1 to 100% and all others to 100%

Cisco Catalyst 6500Queuing Design: 1P7Q4T/1P7Q8T (IOS) – Part Three

Page 96: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 96Cisco Public

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 1 1 1! Maps Scavenger/Bulk to Q1 WRED Threshold 1

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 2 1 0! Maps Best Effort to Q2 WRED Threshold 1

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 3 1 4! Maps Video to Q3 WRED Threshold 1

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 4 1 2! Maps Net-Mgmt and Transactional Data to Q4 WRED T1

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 5 1 3! Maps Call-Signaling and Mission-Critical Data to Q5 WRED T1

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 6 1 6! Maps Internetwork-Control (IP Routing) to Q6 WRED T1

CAT6500-PFC3(config-if-range)# wrr-queue cos-map 7 1 7! Maps Network-Control (Spanning Tree) to Q7 WRED T1

CAT6500-PFC3(config-if-range)# priority-queue cos-map 1 5! Maps VoIP to the PQ (Q4)

CAT6500-PFC3(config-if-range)#endCAT6500-PFC3-IOS#

Cisco Catalyst 6500Queuing Design: 1P7Q4T/1P7Q8T (IOS) – Part Four

Page 97: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 97Cisco Public

At-a-Glance Summaries

Page 98: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 98Cisco Public

Page 99: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 99Cisco Public

Page 100: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 100Cisco Public

Page 101: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 101Cisco Public

Page 102: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 102Cisco Public

Page 103: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 103Cisco Public

References

Page 104: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 104Cisco Public

Reference MaterialsEnterprise QoS Solution Reference Network Design Guide

http://www.cisco.com/go/srnd

QoS design overview

Campus QoS design

WAN QoS design

Branch QoS design

MPLS VPN (CE)QoS design

Page 105: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 105Cisco Public

RFC 2474 “Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers”http://www.apps.ietf.org/rfc/rfc2474.html

RFC 2475 “An Architecture for Differentiated Services”http://www.ietf.org/rfc/rfc2475.txt

RFC 2597 “Assured Forwarding PHB Group”http://www.ietf.org/rfc/rfc2597.txt

RFC 2697 “A Single Rate Three Color Marker”http://www.ietf.org/rfc/rfc2697.txt

RFC 2698 “A Two Rate Three Color Marker”http://www.ietf.org/rfc/rfc2698.txt

RFC 3246 “An Expedited Forwarding PHB (Per-Hop Behavior)”http://www.ietf.org/rfc/rfc3246.txt

RFC 3662 “A Lower Effort Per-Domain Behavior (PDB) for Differentiated Services”http://www.ietf.org/rfc/rfc3662.txt

RFC 4594 “Configuration Guidelines for DiffServ Service Classes”http://www.ietf.org/rfc/rfc4594.txt

Reference MaterialsDiffServ Standards

Page 106: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 106Cisco Public

Cisco Catalyst 2950 QoS Configuration Documentation http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2950/12122ea7/scg/swqos.htm

Cisco Catalyst 2960 QoS Configuration Documentation http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2950/12122ea7/scg/swqos.htm

Cisco Catalyst 3550 QoS Configuration Documentation http://www.cisco.com/univercd/cc/td/doc/product/lan/c3550/12225see/scg/swqos.htm

Cisco Catalyst 3560 QoS Configuration Documentation http://www.cisco.com/univercd/cc/td/doc/product/lan/cat3560/12225see/scg/swqos.htm

Cisco Catalyst 3750 QoS Configuration Documentation http://www.cisco.com/univercd/cc/td/doc/product/lan/cat3750/12225see/scg/swqos.htm

Cisco Catalyst 4500 QoS Configuration Documentation http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/12_2_31s/conf/qos.htm

Cisco Catalyst 6500 QoS Configuration Documentation (CatOS) http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/sw_8_5/confg_gd/qos.htm

Cisco Catalyst 6500 QoS Configuration Documentation (Cisco IOS) http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/swcg/qos.htm

Reference MaterialsCisco Catalyst QoS Documentation

Page 107: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 107Cisco Public

Reference MaterialsCisco Catalyst AutoQoS-VoIP Documentation

AutoQoS VoIP for the Cisco Catalyst 2950 http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2950/12122ea7/scg/swqos.htm#wp1125412

AutoQoS VoIP for the Cisco Catalyst 2960 http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2960/12225see/scg/swqos.htm#wp1231112

AutoQoS VoIP for the Cisco Catalyst 3550 http://www.cisco.com/univercd/cc/td/doc/product/lan/c3550/12225see/scg/swqos.htm#wp1185065

AutoQoS VoIP for the Cisco Catalyst 3560 http://www.cisco.com/univercd/cc/td/doc/product/lan/cat3560/12225see/scg/swqos.htm#wp1231112

AutoQoS VoIP for the Cisco Catalyst 3750 http://www.cisco.com/univercd/cc/td/doc/product/lan/cat3750/12225see/scg/swqos.htm#wp1231112

AutoQoS VoIP for the Cisco Catalyst 4550 http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/12_2_31s/conf/qos.htm#wp1281380

AutoQoS VoIP for the Cisco Catalyst 6500 (Cisco Catalyst OS Only) http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/sw_8_5/confg_gd/autoqos.htm

Page 108: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 108Cisco Public

Reference MaterialsC4500 UBRL & C6500 Microflow Policing + CoPP

User-Based Rate Limiting (Cat4500) http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/12_2_25a/conf/qos.htm#wp1327746

Per-User Microflow Policing (C6500—Cisco IOS) http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/swcg/qos.htm#wp1020702

Control Plane Policing (C6500 Cisco IOS) http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/swcg/dos.htm

Page 109: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 109Cisco Public

Meet the ExpertsCampus and Wireless Evolution

Mark Montanez Corporate Dev Consulting Engineer

Tim Szigeti Technical Leader

Sujit GhoshTechnical Mktg Eng

Victor Moreno Technical Leader

Mike Herbert Technical Leader

Page 110: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 110Cisco Public

Recommended ReadingEnd-to-End QoS Design: QoS in LANs, WANs and VPNs

ISBN: 1587051761Publish Date: Nov 2004LAN

Cisco Catalyst 2950Cisco Catalyst 3550Cisco Catalyst 2960/2970/3560/3750Cisco Catalyst 4500Cisco Catalyst 6500

WAN/BranchLeased linesFrame RelayATMATM-to-FR SIW

NBAR for worm policingVPNMPLS (for enterprise subscribers)MPLS (for service providers)IPSec (site-to-site)IPSec (teleworker)

http://www.ciscopress.com/title/1587051761

Available Onsite at the Cisco Company Store

Page 111: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 111Cisco Public

Q and A

Page 112: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 112Cisco Public

Page 113: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 113Cisco Public

Appendix ACisco Catalyst 2950 QoS Design

Page 114: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 114Cisco Public

Certain QoS features require the Enhanced Image (EI)Not all DSCP values are supported

Only DSCP values 0, 8, 10, 16, 18, 24, 26, 32, 34, 40, 46, 48, and 56

System-defined masks are allowed in class maps restrictions There is no support for policing at a VLAN level Minimum policing granularity is 1 mbps (for 10/100 ports)Supports 4Q1T queuing or 1P3Q1T queuing

Q4 can be enabled as a priority queue

Cisco Catalyst 2950Platform-Specific QoS Design Considerations

Page 115: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 115Cisco Public

AutoQoS-VoIPModel

IP Phone + PC + Scavenger Model

Trusted-EndpointModel

Trust-DSCPGlobal1P3Q1TQueuing

Access-EdgesUplinks to

Distribution LayerGlobal

Commands

Cisco Catalyst 2950Access-Layer QoS Design

Page 116: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 116Cisco Public

Options:auto qos voip cisco-phone auto qos voip cisco-softphone auto qos voip trust

C2950(config-if)#auto qos voip cisco-phone

!wrr-queue bandwidth 10 20 70 1wrr-queue cos-map 1 0 1wrr-queue cos-map 2 2 4wrr-queue cos-map 3 3 6 7wrr-queue cos-map 4 5mls qos map cos-dscp 0 8 16 26 32 46 48 56!!interface FastEthernet0/1mls qos trust device cisco-phonemls qos trust cosauto qos voip cisco-phone

!

Cisco Catalyst 2950AutoQoS – VoIP Example

Page 117: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 117Cisco Public

≤ 5 Mbps Yes

No

≤ 1 Mbps Yes

No

Trust and Transmit

Drop

Remark to DSCP CS1and Transmit

Remark to DSCP 0and Transmit

DVLANANY

Yes

No

VVLANANY

YesStart

Cisco Catalyst 2950Modified IP Phone + PC + Scavenger Model

Page 118: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 118Cisco Public

CAT2950(config)#mls qos map cos-dscp 0 8 16 24 32 46 48 56 ! Maps CoS 5 to EFCAT2950(config)#class-map VVLAN-ANYCAT2950(config-cmap)# match access-group name VVLAN-ANYCAT2950(config-cmap)#class-map DVLAN-ANYCAT2950(config-cmap)# match access-group name DVLAN-ANYCAT2950(config-cmap)#policy-map IPPHONE+PCCAT2950(config-pmap)# class VVLAN-ANYCAT2950(config-pmap-c)# police 1000000 8192 exceed-action drop ! Excess VoIPCAT2950(config-pmap-c)#class DVLAN-ANYCAT2950(config-pmap-c)# set ip dscp 0CAT2950(config-pmap-c)# police 5000000 8192 exceed-action dscp 8 ! Excess DataCAT2950(config-pmap-c)#CAT2950(config)#interface range FastEthernet0/1 - 48CAT2950(config-if)# switchport access vlan 10CAT2950(config-if)# switchport voice vlan 110CAT2950(config-if)# mls qos trust device cisco-phone ! Conditional trustCAT2950(config-if)# mls qos trust cos ! Trust IP Phone CoSCAT2950(config-if)# service-policy input IPPHONE+PC ! Policing policyCAT2950(config-if)#exitCAT2950(config)#CAT2950(config)#ip access-list standard VVLAN-ANYCAT2950(config-std-nacl)# permit 10.1.110.0 0.0.0.255 ! VVLAN subnetCAT2950(config-std-nacl)#CAT2950(config-std-nacl)#ip access-list standard DVLAN-ANYCAT2950(config-std-nacl)# permit 10.1.10.0 0.0.0.255 ! DVLAN subnetCAT2950(config-std-nacl)#endCAT2950#

Cisco Catalyst 2950Modified IP Phone + PC + Scavenger Model

Page 119: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 119Cisco Public

Q4Priority Queue

1P3Q1T

Queue 1 (5%)CoS 1

Queue 3(70%)

CoS 5

CoS 3

CoS 2

CoS 4

CoS 6

CoS 7

Queue 2(25%)CoS 0

Network Management

Call Signaling

Streaming Video

Transactional Data

Interactive Video

Voice

Application

Bulk Data

AF21

CS3

CS4

AF41

EF

CS2

AF11

Scavenger CS1

Best Effort 0

Internetwork Control CS6

Mission-Critical Data AF31

DSCP

Network Control –

CoS 2

CoS 3

CoS 4

CoS 4

CoS 5

CoS 2

CoS 1

CoS 1

0

CoS 6

CoS 3

CoS

CoS 7

Cisco Catalyst 2950Queuing Design: 1P3Q1T

Page 120: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 120Cisco Public

CAT2950(config)#wrr-queue bandwidth 5 25 70 0 ! Q1 gets 5% BW, Q2 gets 25% BW, Q3 gets 70%, Q4 is PQ

CAT2950(config)#CAT2950(config)#wrr-queue cos-map 1 1 ! Maps Scavenger/Bulk to Q1CAT2950(config)#wrr-queue cos-map 2 0 ! Maps Best Effort to Q2CAT2950(config)#wrr-queue cos-map 3 2 3 4 6 7 ! Maps CoS 2,3,4,6,7 to Q3CAT2950(config)#wrr-queue cos-map 4 5 ! Maps VoIP to Q4 (PQ)CAT2950(config)#

Cisco Catalyst 2950Queuing Design: 1P3Q1T

Page 121: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 121Cisco Public

Appendix BCisco Catalyst 3550 QoS Design

Page 122: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 122Cisco Public

QoS disabled by defaultFull DSCP-range is supported Classification can be done by trust states, standard and advanced IP ACLs, or MAC ACLs Per-port/per-VLAN policing is supported Minimum policing granularity is 8 kbpsSupports 4Q1T queuing or 1P3Q1T queuing on FE ports

Q4 can be enabled as a priority queue

Supports 4Q2T queuing or 1P3Q2T queuing on GE ports

Drop thresholds can be tail drop or WRED

Cisco Catalyst 3550Platform-Specific QoS Design Considerations

Page 123: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 123Cisco Public

Cisco Catalyst 3550Access-Layer QoS Design

Access-EdgesUplinks to

Distribution Layer

Trust-DSCP

1P3Q2TQueuing +

WREDEnable QoS

Globally

IP Phone + PC + Scavenger Model

AutoQoS—VoIP Model

Trusted-Endpoint Model

1P3Q1TQueuing

1P3Q1TQueuing

Global Commands

Page 124: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 124Cisco Public

Cisco Catalyst 3550Enabling QoS + Trusted Endpoint Example

CAT3550#show mls qosQoS is disabled ! By default QoS is disabled

CAT3550#configure terminalEnter configuration commands, one per line. End with CNTL/Z.CAT3550(config)#mls qos ! Enables QoS globallyCAT3550(config)#exitCAT3550#

CAT3550#show mls qosQoS is enabled ! Verifies that QoS is enabled globallyCAT3550#

CAT3550(config)#interface range FastEthernet0/1 - 48CAT3550(config-if)#mls qos trust dscp ! Trusted Endpoint Example

Page 125: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 125Cisco Public

Cisco Catalyst 3550AutoQoS – VoIP Model Example

Options:auto qos voip cisco-phone auto qos voip cisco-softphone auto qos voip trust

!mls qos map policed-dscp 24 26 46 to 0mls qos map cos-dscp 0 8 16 26 32 46 48 56mls qos min-reserve 5 170mls qos min-reserve 6 85mls qos min-reserve 7 51mls qos min-reserve 8 34mls qos!!class-map match-all AutoQoS-VoIP-RTP-Trustmatch ip dscp 46

class-map match-all AutoQoS-VoIP-Control-Trustmatch ip dscp 24 26

!!policy-map AutoQoS-Police-SoftPhoneclass AutoQoS-VoIP-RTP-Trustset ip dscp 46police 320000 8000 exceed-action policed-dscp-transmit

class AutoQoS-VoIP-Control-Trustset ip dscp 24police 32000 8000 exceed-action policed-dscp-transmit

!!interface FastEthernet0/1switchport mode dynamic desirableauto qos voip cisco-softphonewrr-queue bandwidth 10 20 70 1wrr-queue min-reserve 1 5wrr-queue min-reserve 2 6wrr-queue min-reserve 3 7wrr-queue min-reserve 4 8wrr-queue cos-map 1 0 1wrr-queue cos-map 2 2 4wrr-queue cos-map 3 3 6 7wrr-queue cos-map 4 5priority-queue outservice-policy input AutoQoS-Police-SoftPhone!

C3550(config-if)#auto qos voip cisco-softphone

Page 126: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 126Cisco Public

Cisco Catalyst 3550IP Phone + PC + Scavenger Model Example - Part One

CAT3550(config)#mls qos map cos-dscp 0 8 16 24 32 46 48 56! Modifies CoS-to-DSCP mapping to map CoS 5 to DSCP EF

CAT3550(config)#mls qos map policed-dscp 0 24 to 8! Excess DVLAN & VVLAN traffic will be remarked to Scavenger (CS1)

CAT3550(config)#CAT3550(config)#class-map match-all VOICECAT3550(config-cmap)# match ip dscp 46 ! DSCP EF (Voice)CAT3550(config-cmap)#class-map match-all CALL-SIGNALINGCAT3550(config-cmap)# match ip dscp 24 ! DSCP CS3 (Call-Signaling)CAT3550(config-cmap)#CAT3550(config-cmap)#class-map match-all VVLAN-VOICECAT3550(config-cmap)# match vlan 110 ! VLAN 110 is VVLANCAT3550(config-cmap)# match class-map VOICE ! Matches VVLAN DSCP EFCAT3550(config-cmap)#CAT3550(config-cmap)#class-map match-all VVLAN-CALL-SIGNALINGCAT3550(config-cmap)# match vlan 110 ! VLAN 110 is VVLANCAT3550(config-cmap)# match class-map CALL-SIGNALING ! Matches VVLAN CS3CAT3550(config-cmap)#CAT3550(config-cmap)#class-map match-all ANYCAT3550(config-cmap)# match access-group name ANY ! Workaround ACLCAT3550(config-cmap)#CAT3550(config-cmap)#class-map match-all VVLAN-ANYCAT3550(config-cmap)# match vlan 110 ! VLAN 110 is VVLANCAT3550(config-cmap)# match class-map ANY ! Matches other VVLAN trafficCAT3550(config-cmap)#CAT3550(config-cmap)#class-map match-all DVLAN-ANYCAT3550(config-cmap)# match vlan 10 ! VLAN 10 is DVLANCAT3550(config-cmap)# match class-map ANY ! Matches other DVLAN traffic

Page 127: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 127Cisco Public

Cisco Catalyst 3550IP Phone + PC + Scavenger Model Example - Part Two

CAT3550(config-cmap)#policy-map IPPHONE+PC-BASICCAT3550(config-pmap)#class VVLAN-VOICECAT3550(config-pmap-c)# set ip dscp 46 ! DSCP EF (Voice)CAT3550(config-pmap-c)# police 128000 8000 exceed-action drop

! Only one voice call is permitted per switchport VVLANCAT3550(config-pmap-c)#class VVLAN-CALL-SIGNALINGCAT3550(config-pmap-c)# set ip dscp 24 ! DSCP CS3 (Call-Signaling)CAT3550(config-pmap-c)# police 32000 8000 exceed-action policed-dscp-transmit

! Out-of-profile Call-Signaling is marked down to Scavenger (CS1)CAT3550(config-pmap-c)#class VVLAN-ANYCAT3550(config-pmap-c)# set ip dscp 0CAT3550(config-pmap-c)# police 32000 8000 exceed-action policed-dscp-transmit

! Unauthorized VVLAN traffic is marked down to Scavenger (CS1)CAT3550(config-pmap-c)#class DVLAN-ANYCAT3550(config-pmap-c)# set ip dscp 0CAT3550(config-pmap-c)# police 5000000 8000 exceed-action policed-dscp-transmit

! Out-of-profile data traffic is marked down to Scavenger (CS1)CAT3550(config-pmap-c)# exitCAT3550(config)#CAT3550(config)#interface FastEthernet0/1CAT3550(config-if)# switchport access vlan 10 ! DVLANCAT3550(config-if)# switchport voice vlan 110 ! VVLANCAT3550(config-if)# mls qos trust device cisco-phone ! Conditional TrustCAT3550(config-if)# service-policy input IPPHONE+PC-BASICCAT3550(config-if)#exitCAT3550(config)#ip access-list standard ANY ! Workaround ACLCAT3550(config-std-nacl)# permit anyCAT3550(config-std-nacl)#endCAT3550#

Page 128: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 128Cisco Public

Network Management

Call Signaling

Streaming Video

Transactional Data

Interactive Video

Voice

Application

Bulk Data

AF21

CS3

CS4

AF41

EF

CS2

AF11

Scavenger CS1

Best Effort 0

Internetwork Control CS6

Mission-Critical Data AF31

DSCP

Network Control –

CoS 2

CoS 3

CoS 4

CoS 4

CoS 5

CoS 2

CoS 1

CoS 1

0

CoS 6

CoS 3

CoS

CoS 7Q4

Priority Queue

1P3Q2T

Queue 1 (5%)CoS 1

Queue 3(70%)

CoS 5

CoS 3

CoS 2

CoS 4

CoS 6

CoS 7

Queue 2(25%)CoS 0

Q3T2

Q3T1

Q1T2Q1T1

Cisco Catalyst 3550Queuing Design: 1P3Q1T on FE and 1P3Q2T on GE

Page 129: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 129Cisco Public

Cisco Catalyst 3550Queuing Design: 1P3Q1T on FE

CAT3550(config)#interface range FastEthernet0/1 - 48CAT3550(config-if)# wrr-queue bandwidth 5 25 70 1

! Q1 gets 5 BW%, Q2 gets 25% BW, Q3 gets 70% BW, Q4 is PQ

CAT3550(config-if)# wrr-queue cos-map 1 1 ! Maps Scavenger/Bulk to Q1CAT3550(config-if)# wrr-queue cos-map 2 0 ! Maps Best Effort to Q2CAT3550(config-if)# wrr-queue cos-map 3 2 3 4 6 7 ! Maps CoS 2,3,4,6,7 to Q3CAT3550(config-if)# wrr-queue cos-map 4 5 ! Maps VoIP to Q4 (PQ)CAT3550(config-if)# priority-queue out ! Enables Q4 as PQCAT3550(config-if)#exitCAT3550(config)#

Page 130: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 130Cisco Public

Cisco Catalyst 3550Queuing Design: 1P3Q2T on GE

CAT3550(config)#interface range GigabitEthernet 0/1 – 2CAT3550(config-if-range)# wrr-queue bandwidth 5 25 70 1

! Q1 gets 5% BW, Q2 gets 25% BW, Q3 gets 70% BW, Q4 is the PQCAT3550(config-if-range)# wrr-queue queue-limit 5 25 40 30

! Tunes buffers to 5% for Q1, 25% for Q2, 40% for Q3 and 30% for Q4

CAT3550(config-if-range)# wrr-queue random-detect max-threshold 1 40 100! Sets Q1 WRED threshold 1 to 40% and threshold 2 to 100%

CAT3550(config-if-range)# wrr-queue random-detect max-threshold 2 80 100! Sets Q2 WRED threshold 1 to 80% and threshold 2 to 100%

CAT3550(config-if-range)# wrr-queue random-detect max-threshold 3 80 100! Sets Q3 WRED threshold 1 to 80% and threshold 2 to 100%

CAT3550(config-if)# wrr-queue cos-map 1 1 ! Maps Scavenger/Bulk to Q1CAT3550(config-if)# wrr-queue cos-map 2 0 ! Maps Best Effort to Q2CAT3550(config-if)# wrr-queue cos-map 3 2 3 4 6 7 ! Maps CoS 2,3,4,6,7 to Q3CAT3550(config-if)# wrr-queue cos-map 4 5 ! Assigns VoIP to Q4 (PQ)CAT3550(config-if-range)# wrr-queue dscp-map 2 10 12 14 48 56

! Maps Bulk (10/12/14), Routing (48) and Spanning Tree (Internal DSCP 56)! to WRED threshold 2 of their respective queues;! All other DSCP values are mapped (by default) to WRED threshold 1! of their respective queues

CAT3550(config-if-range)# priority-queue out ! Enables Q4 as PQCAT3550(config-if-range)#endCAT3550#

Page 131: Cisco Networkers 2007-Advanced Campus QoS Design

© 2006 Cisco Systems, Inc. All rights reserved.BRKCAM-3006 131Cisco Public