Professional Documents
Culture Documents
BRKRST-2501
Tim Szigeti
Technical Leader
Campus QoS Design—Simplified
Abstract
This session discusses strategic factors driving network QoS designs, including:
new applications and business requirements, new industry guidance and best
practices and new platforms and technologies
Cisco QoS strategy for rich media networks will be presented and campus-
specific design considerations will be discussed.
Then platform-specific designs for classification, policing and ingress & egress
queuing policies will be detailed for the:
• Cisco Catalyst 2960/3560/3750 G/E/X series switches
• Cisco Catalyst 3650/3850 series switches
• Cisco Catalyst 4500 (Supervisor 7-E / 8-E) and 4500-X series switches
• Cisco Catalyst 6500 (Supervisor 2T) series switches
• Designs are applicable to IPv4 and IPv6 networks (unless specifically noted)
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Agenda
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
QoS Design Strategy Review
Macro Trends in Internet Usage
By 2017…
Global IP traffic will triple
The number of IP devices will be more than triple the global population
Wireless traffic will exceed wired
Half of all IP traffic will be non-PC traffic (smartphones, tablets etc.)
80-90% of consumer internet traffic will be video
http://www.cisco.com/en/US/solutions/collateral/ns341/ns525/ns537/ns705/ns827/white_paper_c11-
481360_ns827_Networking_Solutions_White_Paper.html
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
QoS Design Strategy Review
Trends in Voice, Video and Data Media Applications
• Internet Streaming
• Internet VoIP
Ad-Hoc App
Unmanaged • YouTube
• MySpace
• Other
• IP Video Conf
• IP Video Conf
• Surveillance
TelePresence
Video Video • Video Telephony
• HD Video Conf
• VoD Streaming
• IP Telephony • IP Telephony
• HD Audio
Voice Voice • Softphone
• Other VoIP
WebEx
• App Sharing • App Sharing
Data Data • Web/Internet Data • Web/Internet
• Messaging • Messaging
Apps Apps • Email
Apps • Email
Leveraging Experience
Connectivity Investment Co-Existence Assurance
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
QoS Design Strategy Review
RFC 4594-Based Strategic QoS Recommendations
Application Per-Hop Admission Queuing & Application
Class Behavior Control Dropping Examples
VoIP Telephony EF Required Priority Queue (PQ) Cisco IP Phones (G.711, G.729)
Broadcast Video CS5 Required (Optional) PQ Cisco IP Video Surveillance / Cisco Enterprise TV
Multimedia Conferencing AF4 Required BW Queue + DSCP WRED Cisco Unified Personal Communicator, WebEx
Multimedia Streaming AF3 Recommended BW Queue + DSCP WRED Cisco Digital Media System (VoDs)
Transactional Data AF2 BW Queue + DSCP WRED ERP Apps, CRM Apps, Database Apps
Bulk Data AF1 BW Queue + DSCP WRED E-mail, FTP, Backup Apps, Content Distribution
Scavenger CS1 Min BW Queue (Deferential) YouTube, iTunes, BitTorent, Xbox Live
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
QoS Design Strategy Review
Business Requirements Will Continue to Evolve and Expand over Time
4-Class Model 8-Class Model 12-Class Model
Voice Voice
Realtime Interactive
Interactive Video
Realtime Multimedia Conferencing
Broadcast Video
Streaming Video
Multimedia Streaming
Signaling / Control Call Signaling Call Signaling
Network Control Network Control
Network Management
Critical Data
Critical Data Transactional Data
Bulk Data
Best Effort Best Effort
Best Effort
Time Scavenger Scavenger
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
QoS Design Strategy—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qosmrn.pdf
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Campus QoS Design:
Considerations & Recommendations
Agenda
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Campus QoS Design Considerations
The Case for Campus QoS
The primary role of QoS in medianet campus networks is not to control latency
or jitter (as it is in the WAN/VPN), but to manage packet loss.
In GE/10GE campus networks, it takes only a few milliseconds of congestion to
cause instantaneous buffer overruns resulting in packet drops.
Rich media applications—particularly HD video applications—are extremely
sensitive to packet drops, to the point where even 1 packet dropped in
10,000 is discernable by the end-user.
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Campus QoS Design Considerations
Implications of Video Compression on Packet Loss Tolerance
1920 lines of Vertical Resolution (Widescreen Aspect Ratio is 16:9) 1080 x 1920 lines =
= 1,492,992,000 bps
1400
Voice Packets 1400
Video Packets
Video Video Video
Frame Frame Frame
1000 1000
Bytes
Audio
600 600
Samples
200 200
120
100 Gbps Line Rate: 1 Gbps = 125 MB/s
80 or 125 KB/ms
60
40 Total Per-Port Buffer: 5.4 MB
20
0 Total Per-Queue Buffer*: 1.35 MB
130
570
170
210
250
290
330
370
410
450
490
530
610
650
690
730
770
810
850
890
930
970
10
50
90
1200
1000
Gbps Line Rate: 10 Gbps = 1.25 GB/s
800
or 1250 KB/ms
600
400
Total Per-Port Buffer: 90 MB
200
0
Total Per-Queue Buffer*: 11.25 MB
410
130
170
210
250
290
330
370
450
490
530
570
610
650
690
730
770
810
850
890
930
970
10
50
90
Always perform QoS in hardware rather than software when a choice exists
Classify and mark applications as close to their sources as technically and
administratively feasible
Police unwanted traffic flows as close to their sources as possible
Enable queuing policies at every node where the potential for congestion exists
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
Campus QoS Design Considerations
Campus QoS Tools and Options
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Campus QoS Design Considerations
MLS QoS vs. MQC QoS vs. C3PL QoS
Catalyst 2960 / 3650 / 3750 are the last platforms to use Multilayer Switch QoS
(MLS QoS) syntax
• QoS is disabled by default and must be globally enabled with mls qos command
• Once enabled, all ports are set to an untrusted port-state
Catalyst 3850 and 4500 are using IOS Modular QoS Command Line Interface
(MQC) syntax (like router platforms)
• QoS is enabled by default
• All ports trust at layer 2 and layer 3 by default
Catalyst 6500 is using Cisco Common Classification Policy Language (C3PL) QoS
• QoS is enabled by default (Sup2T) – Disabled by default (Sup720)
• All ports trust at layer 2 and layer 3 by default
• C3PL presents queuing policies similar to MQC
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
Campus QoS Design Considerations
Trust States and Operations
CoS = 5 CoS = 0
Untrusted Internal
DSCP = 46 no [mls] qos trust DSCP = 0 DSCP = 0
Internal CoS = 5
DSCP = 40
DSCP = 40
CoS = 5 CoS = 5
Trust DSCP Internal
DSCP = 46 [mls] qos trust dscp DSCP = 46 DSCP = 46
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
Campus QoS Design Considerations
Conditional Trust Operation
Cisco TelePresence System (CTS) Endpoint Example
Trust Boundary
3
CTS Primary Codec: Voice + Video CoS 4 & DSCP CS4
Call-Signaling CoS 3 & DSCP CS3
4
CoS-to-DSCP Map:
CoS 5 DSCP EF (46)
CoS 4 DSCP CS4 (32)
CoS 3 DSCP CS3 (24)
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Campus QoS Design Considerations
Trust Boundaries
Trust Boundary
Access-Edge Switches
Secure Endpoint
Example: Software-protected PC
With centrally-administered QoS markings
mls qos trust dscp
Trust Boundary
Unsecure Endpoint
no mls qos trust
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Campus QoS Design Considerations
Per-Port QoS vs. Per-VLAN QoS
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
Campus QoS Design Considerations
Per-Port/Per-VLAN QoS
VLAN Interfaces
DVLAN 10
VVLAN 110
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
Campus Ingress QoS Models
No Trust (Untrusted)
Trust CoS
Trust DSCP
Trust Device / Conditional Trust
VVLAN Yes
VoIP Classifier Mark EF VoIP Policer (<128 kbps) No
Drop
Yes
Signaling Classifier Mark CS3 Signaling Policer (<32 kbps) No
Drop
Yes
Multimedia Conferencing Classifier
Mark AF41 MM-Conf Policer (<5 Mbps) No
Drop
DVLAN Yes
Signaling Classifier Mark CS3 Signaling Policer (<32 kbps) No
Drop
Yes
Transactional Data Classifier Mark AF21 Trans-Data Policer (<10 Mbps) No
Remark to CS1
Yes
Bulk Data Classifier Mark AF11 Bulk Data Policer (<10 Mbps) No
Remark to CS1
Yes
Scavenger Classifier Mark CS1 Scavenger Policer (<10 Mbps) No
Drop
Yes
Best Effort (Class-Default) Mark DF Best Effort Policer (<10 Mbps) No
Remark to CS1
26
Campus QoS Design Recommendations
Queuing and Dropping Recommendations
Catalyst Queuing is done in hardware and varies by platform/linecard and can be expressed as:
xPyQzT
For Example: 1P3Q8T means: 1 PQ
3 non-priority queues, each with
Best Effort
8 drop-thresholds per queue ≥ 25% Realtime
≤ 33%
Minimum queuing capabilities for medianet is 1P3QyT
Scavenger/Bulk
Realtime (PQ) should be no more than 33% of link ≤ 5%
Guaranteed BW
Best-Effort Queue should be guaranteed at 25% of link
Scavenger/Bulk queue should be minimally provisioned
Enable congestion-avoidance on non-priority queues (WRED, WTD, DBL)
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
Campus QoS Design Recommendations
EtherChannel QoS
EtherChannels are comprised of logical (Port-Channel) interfaces and physical
(port-member) interfaces
Ingress QoS policies are sometimes applied to the logical interfaces
– but not always
Egress QoS policies (such as queuing) are always applied to the physical port-
member interfaces
Platform QoS Policies Applied to the QoS Policies Applied to the
(Logical) Port-Channel (Physical) Port-Member
Interface Interfaces
Catalyst 2960/3560/3750 Ingress & Egress
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Campus QoS Design – Port QoS Roles
Untrusted Endpoint Port QoS:
Untrusted Endpoints • No Trust
• [Optional Ingress Marking and/or Policing]
• 1P3QyT Queuing
Access Distribution Core
WAN/VPN
Block
Conditionally-
Trusted
Endpoints
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Campus QoS Design—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampusaag.pdf
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Cisco Catalyst 2960/3560/3750
QoS Design
Agenda
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Catalyst 2960/3560/3750 Campus QoS Design
Catalyst 2960/3650/3750 QoS Roles in Campus Networks
No Trust +
Ingress Queuing +
Egress Queuing
Trust DSCP +
Ingress Queuing +
Egress Queuing
Conditional Trust +
Ingress Queuing +
C2960/ Egress Queuing
C3560/
C3750 Classification/Marking +
Access [Optional Policing] +
Switch Distribution Ingress Queuing +
Switches Egress Queuing
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Catalyst 2960/3560/3750 Campus QoS Design
QoS Design Steps
1. Enable QoS
2. Configure Ingress QoS Model(s):
Trust Models
Conditional Trust Model
Service Policy Models
3. Configure Ingress Queuing
4. Configure Egress Queuing
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Catalyst 2960/3560/3750 Campus QoS Design
Enabling QoS and Trust Model Examples
Enabling QoS:
mls qos Shaded commands are global
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Catalyst 2960/3560/3750 Campus QoS Design
Conditional Trust to a Cisco IP Phone Example
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Catalyst 2960/3560/3750 Campus QoS Design
Service Policy Model Example—Marking Policy
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Note: Remarking is performed by configuring a
Catalyst 2960/3560/3750 Campus QoS Design policed-DSCP map with the global configuration
command mls qos map policed-dscp, which
specifies which DSCP values are subject to
Service Policy Model Example—Marking & Policing Policy remarking if out-of-profile and what value these
should be remarked as.
mls qos map policed-dscp 0 10 18 to 8 In this example exceeding data classes are
remarked to Scavenger (CS1/DSCP 8).
[class-maps omitted for brevity]
policy-map MARKING&POLICING
class VVLAN-VOIP … (continued)
set dscp ef class BULK-DATA
police 128k 8000 exceed-action drop set dscp af11
class VVLAN-SIGNALING police 10m 8000 exceed-action policed-dscp-transmit
set dscp cs3 class SCAVENGER
police 32k 8000 exceed-action drop set dscp cs1
class MULTIMEDIA-CONFERENCING police 10m 8000 exceed-action drop
set dscp af41 class DEFAULT
police 5m 8000 exceed-action drop set dscp default
class SIGNALING police 10m 8000 exceed-action policed-dscp-transmit
set dscp cs3 service-policy input MARKING&POLICING
police 32k 8000 exceed-action drop
class TRANSACTIONAL-DATA
set dscp af21
police 10m 8000 exceed-action policed-dscp-transmit
…
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Catalyst 2960/3560/3750 Campus QoS Design
Per-VLAN QoS Design
interface VLAN:
service-policy input MARKING
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Catalyst 2960/3560/3750 Campus QoS Design
Ingress Queuing Model (1P1Q3T)
Application DSCP 1P1Q3T
Best Effort
BKRCRS-2501
DF © 2014 Cisco and/or its affiliates. All rights reserved.
DF Cisco Public 40
Catalyst 2960/3560/3750 Campus QoS Design
Ingress Queuing Model (1P1Q3T) Example
! This section configures the ingress queues and thresholds
mls qos srr-queue input priority-queue 2 bandwidth 30
mls qos srr-queue input bandwidth 70 30
mls qos srr-queue input buffers 90 10
mls qos srr-queue input threshold 1 80 90
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Catalyst 2960/3560/3750 Campus QoS Design
Egress Queuing Model (1P3Q3T)
Application DSCP 1P3Q3T
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Catalyst 2960/3560/3750 Campus QoS Design
Egress Queuing Model (1P3Q3T) Example–Part 2 of 2
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
Catalyst 2960/3560/3750 Campus QoS Design
EtherChannel QoS Design
All QoS policies are configured on the physical port-member interfaces only
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Catalyst 2960/3560/3750 QoS Design—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat3xxxaag.pdf
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Cisco Catalyst 3650/3850 (Wired & Wireless)
QoS Design
Agenda
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public
Catalyst 3650/3850 Campus QoS Design
Catalyst 3650/3850 QoS Roles in Campus Networks
No Trust +
Ingress Queuing +
Egress Queuing
Trust DSCP +
Ingress Queuing +
Egress Queuing
Conditional Trust +
Ingress Queuing +
C3650/3850 Egress Queuing
Access
Switch Classification/Marking +
[Optional Policing] +
Distribution Ingress Queuing +
Switches Egress Queuing
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
Catalyst 3650/3850 Campus QoS Design
Wired-to-Wireless QoS
PortShaper
Shaper
Classify
Classify
Classify
Radio Shaper
Shaper
Policer Marker Policer Marker Policer Marker
NRT Queue CBWFQ
AFD
Policer Marker Marker Policer Marker
Multicast NRT
Queue
Priority Queue 1
Marker Policer
Marker Policer
Marker Policer
Priority Queue 2 Marker Policer
LLQ Marker Policer
S Marker Policer
Traffic
H Queue
A W Classify Classify
T Classify
P Queue D Marker Policer
E Marker Policer
R Marker Policer
CBWFQ Queue Marker Policer
Marker Policer
Marker Policer
Queue
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public
Catalyst 3650/3850 Campus QoS Design
QoS Design Steps
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Catalyst 3650/3850 Campus QoS Design
Conditional Trust Models Cisco IP Phone Conditional Trust Example
class-map match-all VOICE
Conditional-Trust Models: match cos 5
trust device cisco-phone [or] class-map match-all SIGNALING
trust device cts [or] match cos 3
trust device ip-camera [or]
trust device media-player policy-map CISCO-IPPHONE
class VOICE
set dscp ef
class SIGNALING
set dscp cs3
class class-default
set dscp default
trust device cisco-phone
service-policy input CISCO-IPPHONE
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
Catalyst 3650/3850 Campus QoS Design
Service Policy Model Example – Marking Policy
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
Catalyst 3650/3850 Campus QoS Design
Service Policy Model Example – Marking & Policing Policy – Part 1
policy-map MARKING&POLICING
class VVLAN-VOIP …[continued]
set dscp ef class TRANSACTIONAL-DATA
police 128k set dscp af21 table-map TABLE-MAP
conform-action transmit police 10m map from 0 to 8
exceed-action drop conform-action transmit map from 10 to 8
class VVLAN-SIGNALING exceed-action TABLE-MAP map from 18 to 8
set dscp cs3 class BULK-DATA
police 32k set dscp af11
conform-action transmit police 10m
exceed-action drop conform-action transmit
class MULTIMEDIA-CONFERENCING exceed-action TABLE-MAP
set dscp af41 class SCAVENGER
police 5m set dscp cs1
conform-action transmit police 10m
exceed-action drop conform-action transmit
class SIGNALING exceed-action drop
set dscp cs3 class class-default
police 32k set dscp default
conform-action transmit police 10m
exceed-action drop conform-action transmit
[continued] exceed-action TABLE-MAP
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
Catalyst 3650/3850 Campus QoS Design
Service Policy Model Example – Marking & Policing Policy – Part 2
Service policies applied to the
SSID level are actually
applied to the BSSID
(that is, per SSID/AP pair)
! This section attaches the service-policy to a wired interface(s)
interface range GigabitEthernet 1/0/1-48
service-policy input POLICING
! This section attaches the service-policy to a wireless interface(s) at the SSID level
! The policy will be applied to all clients belonging to the SSID at an aggregate level
wlan BRILEY-1
service-policy input POLICING
! This section attaches the service-policy to a wireless interface(s) at the client level
! The policy will be applied to individual clients at an aggregate level
wlan BRILEY-1
service-policy client input POLICING
The inclusion of the client keyword
changes the application of the policer
from the SSID-aggregate level to the
BKRCRS-2501
client-aggregate levelCisco Public
© 2014 Cisco and/or its affiliates. All rights reserved. 56
Catalyst 3650/3850 Campus QoS Design
Service Policy Model Example – Per-Port/Per-VLAN QoS (IP Phone Example)
policy-map VLAN-POLICERS
class VVLAN
police 192k
conform-action transmit exceed-action drop
class DVLAN
police 50m
conform-action transmit exceed-action drop
service-policy input VLAN-POLICERS
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Catalyst 3650/3850 Campus QoS Design
Egress Queuing (2P6Q3T with WTD) Model
Application DSCP 2P6Q3T WTD =
Weighted
Network Control (CS7) EF PQ Level 1 (10%) Tail
CS5 Drop
Internetwork Control CS6
CS4 PQ Level 2 (20%)
VoIP EF
CS7 & CS6 Q6
Broadcast Video CS5
CS3 & CS2 (BWR 10%)
Multimedia Conferencing AF4
Q5
AF4
Realtime Interactive CS4 (BWR 10% + WTD)
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
Catalyst 3650/3850 Campus QoS Design
Egress Queuing (2P6Q3T) Example – Part 2 (Policy-Map)
[continued]
policy-map 2P6Q3T class MULTIMEDIA-STREAMING-QUEUE
Note: Two-levels of bandwidth remaining percent 10
class VOICE-PQ1 priority queuing are queue-buffers ratio 10
priority level 1 supported
police rate percent 10 queue-limit dscp af33 percent 80
queue-limit dscp af32 percent 90
class VIDEO-PQ2
priority level 2 queue-limit dscp af31 percent 100
police rate percent 20 class TRANSACTIONAL-DATA-QUEUE
class CONTROL-MGMT-QUEUE bandwidth remaining percent 10
queue-buffers ratio 10
bandwidth remaining percent 10
queue-limit dscp af23 percent 80
queue-buffers ratio 10
class MULTIMEDIA-CONFERENCING-QUEUE queue-limit dscp af22 percent 90
bandwidth remaining percent 10 queue-limit dscp af21 percent 100
queue-buffers ratio 10 class BULK-SCAVENGER-DATA-QUEUE
queue-limit dscp af43 percent 80 bandwidth remaining percent 5
queue-buffers ratio 10
queue-limit dscp af42 percent 90
queue-limit dscp values af13 cs1 percent 80
queue-limit dscp af41 percent 100
queue-limit dscp values af12 percent 90
queue-limit dscp values af11 percent 100
class class-default
bandwidth remaining percent 25
interface range GigabitEthernet 1/0/1-48
queue-buffers ratio 25
service-policy
BKRCRS-2501 output 2P6Q3T© 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Catalyst 3650/3850 Campus QoS Design
Hierarchical Policies: Queuing within Shaped Rate Example
policy-map 50MBPS-SHAPER
class class-default
shape average 50000000
service-policy 1P7Q3T
service-policy output 50MBPS-SHAPER
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Catalyst 3650/3850 Campus QoS Design
EtherChannel QoS Design
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Catalyst 3650/3850 Campus QoS Design
2P2Q+AFD Wireless Egress Queuing Architecture
Radio/Port Level
Priority Queue 1
Port Shaper
Priority Queue 2 LLQ
Shaper
Radio Shaper
Multicast Queue
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
Catalyst 3650/3850 Campus QoS Design
Approximate Fair Drop (AFD) Operation
AFD BLOCK
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Catalyst 3650/3850 Campus QoS Design
2P2Q+AFD Wireless Egress Queuing Model
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Catalyst 3650/3850 Campus QoS Design
2P2Q+AFD Wireless Egress Queuing Configuration
http://www.cisco.com/en/US/solutions/ns340/ns414/ns742/ns1127/landing_cVideo.html
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Cisco Catalyst 4500 (Supervisor 7-E / 8-E) and
4500-X QoS Design
Agenda
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Catalyst 4500 Campus QoS Design
Catalyst 4500 QoS Role in Campus Networks
Trust DSCP +
Egress Queuing
Access
Switches Catalyst 4500
Core Switches
Distribution
Switches
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Catalyst 4500 Campus QoS Design
QoS Design Steps
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Catalyst 4500 Campus QoS Design
Conditional Trust Model – Cisco IP Phone Example
class-map match-all VOICE
match cos 5
class-map match-all SIGNALING
match cos 3
policy-map CISCO-IPPHONE
class VOICE
set dscp ef
class SIGNALING
set dscp cs3
class class-default
set dscp default
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
Catalyst 4500 Campus QoS Design
Service Policy Model Example – Marking Policy
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
Catalyst 4500 Campus QoS Design
Service Policy Model Example – Marking & Policing Policy
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
Catalyst 4500 Campus QoS Design
Service Policy Model Example – Per-Port/Per-VLAN QoS (IP Phone Example)
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Catalyst 4500 Campus QoS Design
Egress Queuing (1P7Q1T+DBL) Model
Application DSCP 1P7Q1T (+DBL)
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Catalyst 4500 Campus QoS Design—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat4500aag.html
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
Cisco Catalyst 6500 (Supervisor-2T)
QoS Design
Agenda
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
Cisco Catalyst 6500 Campus QoS Design
Catalyst 6500 Role in Campus Networks
Catalyst 6500
Core/Distribution
Switches
Trust DSCP
+ Ingress Queuing
+ Egress Queuing
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
Cisco Catalyst 6500 Campus QoS Design
QoS Design Steps—Cisco Catalyst 6500 Supervisor 2T
1. Configure Ingress Queuing Catalyst 6500 IOS C3PL will trust DSCP by default
(therefore no explicit policy is required for DSCP trust)
2. Configure Egress Queuing
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Cisco Catalyst 6500 Campus QoS Design
8Q4T (Ingress) & 1P7Q4T (Egress) Queuing Model Examples
Application-Class DSCP 8Q4T/1P7Q4T
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Cisco Catalyst 6500 Campus QoS Design
Queuing Policies: Part 2 of 3 (8Q4T Ingress Queuing Policy-Map)
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Cisco Catalyst 6500 QoS Design—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat6500sup2taag.html
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Summary & References
Agenda
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Summary
Key Takeaways
The explosion of rich media applications requires network architects to
reevaluate current QoS designs
RFC 4594 provides an industry best-practice QoS strategy
Campus QoS is needed primarily to control packet drops
– Some rich media applications require fewer than 1 drop per 10,000 packets
– QoS architects need to know how trust-states, Port-based QoS, VLAN-based QoS and
EtherChannel QoS can impact designs
– Hardware queuing (both ingress and egress) vary by platform & linecard
Cisco provides many At-A-Glance guides to get up and running quickly
– As well as comprehensive in-depth design chapters for additional design reference
AutoQoS for Medianet Feature is available on Catalyst 2960/3560/3750 and
Catalyst 3650/3850 and 4500
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Campus QoS Design 4.0—At-A-Glance
Quick Start Guides
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
Campus QoS Design 4.0—In-Depth
Comprehensive Design Chapters
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Recommended Reading
Release Date: Jan 2014
Comprehensive QoS design
guidance for PINs and platforms:
• Campus Catalyst 3750/4500/6500
• WLAN WLC 5508 / Catalyst 3850 NGWC
• Data Center Nexus 1000V/2000/5500/7000
• WAN & Branch Cisco ASR 1000 / ISR G2
• MPLS VPN Cisco ASR 9000 / CRS-3
• IPSec VPNs Cisco ISR G2
• ISBN: 1-58714-369-0
Ken Briley
http://www.ciscopress.com/store/end-to-end-qos-network-design-quality-of-service-for-9781587143694
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Agenda
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
APPENDIX
97
AutoQoS for Medianet
Cisco Catalyst 2960/3560/3750 AutoQoS
AutoQoS SRND4 Models
auto qos voip [ cisco-phone | cisco-softphone | trust ]
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
Cisco Catalyst 2960/3560/3750 AutoQoS
AutoQoS SRND4 – auto qos trust { cos | dscp }
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
Cisco Catalyst 2960/3560/3750 AutoQoS
AutoQoS SRND4 – auto qos video [ cts | ip-camera ]
C3750(config-if)# auto qos video cts C3750(config-if)# auto qos video ip-camera
interface GigabitEthernet1/0/1 interface GigabitEthernet1/0/1
description L2-ACCESS-PORT-TO-CTS description L2-ACCESS-PORT-TO-IPVS-CAMERA
switchport access vlan 10 switchport access vlan 10
switchport voice vlan 110 switchport voice vlan 110
… …
mls qos trust device cts mls qos trust device ip-camera
! AutoQoS has configured conditional-trust ! AutoQoS has configured a conditional-trust
! for Cisco TelePresence Systems ! for Cisco for IPVS cameras
mls qos trust cos mls qos trust dscp
! AutoQoS has configured CoS-trust ! AutoQoS has configured DSCP-trust
! to be dynamically extended ! to be dynamically extended
auto qos video cts auto qos video ip-camera
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
Cisco Catalyst 2960/3560/3750 AutoQoS
AutoQoS SRND4 – auto qos classify
C3750(config-if)# auto qos classify
policy-map AUTOQOS-SRND4-CLASSIFY-POLICY
class AUTOQOS_MULTIENHANCED_CONF_CLASS
set dscp af41
class AUTOQOS_BULK_DATA_CLASS
set dscp af11
class AUTOQOS_TRANSACTION_CLASS
set dscp af21
class AUTOQOS_SCAVANGER_CLASS
set dscp cs1
class AUTOQOS_SIGNALING_CLASS
set dscp cs3
class AUTOQOS_DEFAULT_CLASS
set dscp default
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 102
Cisco Catalyst 2960/3560/3750 AutoQoS
AutoQoS SRND4 – auto qos classify police
C3750(config-if)# auto qos classify police
Note: Class-maps and IP ACLs
policy-map AUTOQOS-SRND4-CLASSIFY-POLICE-POLICY omitted for brevity
class AUTOQOS_MULTIENHANCED_CONF_CLASS
set dscp af41
police 5000000 8000 exceed-action drop
class AUTOQOS_BULK_DATA_CLASS
set dscp af11
police 10000000 8000 exceed-action policed-dscp-transmit
class AUTOQOS_TRANSACTION_CLASS
set dscp af21
police 10000000 8000 exceed-action policed-dscp-transmit
class AUTOQOS_SCAVANGER_CLASS
set dscp cs1
police 10000000 8000 exceed-action drop
class AUTOQOS_SIGNALING_CLASS
set dscp cs3
police 32000 8000 exceed-action drop
class AUTOQOS_DEFAULT_CLASS
set dscp default
police 10000000 8000 exceed-action policed-dscp-transmit
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
AutoQoS VoIP (SRND4) Models
auto qos voip trust
104
Cisco Catalyst 2960/3560/3750 AutoQoS
AutoQoS SRND4 – auto qos voip cisco-phone
C3750(config-if)# auto qos voip cisco-phone
Note: Class-maps
policy-map AUTOQOS-SRND4-CISCOPHONE-POLICY omitted for brevity
class AUTOQOS_VOIP_DATA_CLASS
set dscp ef
police 128000 8000 exceed-action policed-dscp-transmit
class AUTOQOS_VOIP_SIGNAL_CLASS
set dscp cs3
police 32000 8000 exceed-action policed-dscp-transmit
class AUTOQOS_DEFAULT_CLASS
set dscp default
police 10000000 8000 exceed-action policed-dscp-transmit
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Cisco Catalyst 2960/3560/3750 AutoQoS
AutoQoS SRND4 – auto qos voip cisco-softphone
policy-map AUTOQOS-SRND4-SOFTPHONE-POLICY
class AUTOQOS_VOIP_DATA_CLASS
Note: Class-maps and IP ACLs
set dscp ef omitted for brevity
police 128000 8000 exceed-action policed-dscp-transmit
class AUTOQOS_VOIP_SIGNAL_CLASS
set dscp cs3
police 32000 8000 exceed-action policed-dscp-transmit
class AUTOQOS_MULTIENHANCED_CONF_CLASS
set dscp af41
police 5000000 8000 exceed-action drop
class AUTOQOS_BULK_DATA_CLASS
set dscp af11
police 10000000 8000 exceed-action policed-dscp-transmit
class AUTOQOS_TRANSACTION_CLASS
set dscp af21
police 10000000 8000 exceed-action policed-dscp-transmit
class AUTOQOS_SCAVANGER_CLASS
set dscp cs1
police 10000000 8000 exceed-action drop
class AUTOQOS_SIGNALING_CLASS
set dscp cs3
police 32000 8000 exceed-action drop
class AUTOQOS_DEFAULT_CLASS
set dscp default
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
Cisco Catalyst 2960/3560/3750 AutoQoS
Ingress Queuing Model (1P1Q3T)
Application DSCP 1P1Q3T
Best Effort DF DF
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Cisco Catalyst 2960/3560/3750 AutoQoS
Ingress Queuing Model (1P1Q3T)
! This section configures the ingress queues and thresholds
mls qos srr-queue input priority-queue 2 bandwidth 30
mls qos srr-queue input bandwidth 70 30
mls qos srr-queue input buffers 90 10
mls qos srr-queue input threshold 1 80 90
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
Cisco Catalyst 2960/3560/3750 AutoQoS
Egress Queuing Model (1P3Q3T)
1P3Q3T
Application DSCP
CS1 Queue 4 Q4T2
Network Control (CS7)
AF1 (5%) Q4T1
Internetwork Control CS6
Default Queue
VoIP EF DF
Queue 3 (35%)
Broadcast Video CS5
CS7 Q2T3
Multimedia Conferencing AF4
CS6
Realtime Interactive CS4
CS3 Q2T2
Multimedia Streaming AF3 Queue 2
Signaling CS3 AF4 (30%) Q2T1
AF3
Transactional Data AF2
AF2
Network Management CS2
CS2
Bulk Data AF1
EF
Scavenger CS1 Q1
CS5
Priority Queue
CS4
Best Effort
BKRCRS-2501 DF© 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 109
Cisco Catalyst 2960/3560/3750 AutoQoS
Egress Queuing Model (1P3Q3T) Example–Part 1 of 2
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 110
Cisco Catalyst 2960/3560/3750 AutoQoS
Egress Queuing Model (1P3Q3T) Example–Part 2 of 2
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 111
AutoQoS for Medianet—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/autoqosmediacampus.pdf
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 112
Complete Your Online Session Evaluation
Complete your online session
evaluation
Complete four session evaluations
and the overall conference evaluation
to receive your Cisco Live T-shirt
BKRCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 113