Documente Academic
Documente Profesional
Documente Cultură
BRKCRS-2501
Tim Szigeti
Campus QoS Design—Simplified
Session 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-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) and 6800 series switches
• All design examples support both IPv4 and IPv6
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 3 3
Agenda
• QoS Design Strategy Review
• Campus QoS Design Considerations &
Recommendations
• Cisco Catalyst 2960-X QoS Design
• Cisco Catalyst 3650/3850 QoS Design
• Cisco Catalyst 4500 QoS Design
• Cisco Catalyst 6500/6800 QoS Design
• Summary and References
BRKCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 4 4
QoS Design Strategy Review
Macro Trends in Internet Usage
• By 2018…
– global IP traffic will triple
– business IP traffic will double
– there will be three devices per person on average
– 57% of all IP traffic will be non-PC traffic (smartphones, tablets etc.)
– 60% of all traffic will originate from wireless devices
– 80%-90% of internet traffic will be video
cisco.com/go/vni
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Levels of QoS Policy Abstraction
Strategic vs. Tactical
• Strategic QoS Policy (WHAT are you trying to do and WHY?)
– reflects business intent*
– not constrained by any technical or administrative limitation
– is end-to-end
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Defining a QoS Strategy
Recognize Levels of Business Relevance
Consumer Yes
-Oriented?
Scavenger
No
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Defining a QoS Strategy—Classifying Applications
Classifying Applications—Step 2: Is the Protocol a Control Plane Protocol?
Plane? Control?
Network Control
No No Yes
Signaling? Signaling
Yes
No OAM? OAM
• Is the protocol a Network Control protocol?
– This includes all network routing and control-plane protocols
• E.g. BGP, OSPF, EIGRP, HSRP, IKE, etc.
Yes
Voice? Voice
No
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Defining a QoS Strategy—Classifying Applications
Classifying Applications—Step 4: Is the Application Video?
Yes or Unknown
Yes
Yes
Video? Unidirectional? Elastic? Multimedia-Streaming
No No No
(Bidirectional) (Inelastic)
Broadcast Video
Yes or Unknown
Elastic? Multimedia-Conferencing
No
Realtime-Interactive
(Inelastic)
• If the application is video?
– If yes: determine if the application is unidirectional or bidirectional?
– Then determine if the application is elastic (i.e. adaptive to congestion/drops) or inelastic?
Note: User-expectations may also factor here: (i.e. are users willing to accept quality loss due to drops? elastic)
• Classify accordingly
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Defining a QoS Strategy—Classifying Applications
Classifying Applications—Step 5: Is the Application Video?
Yes Yes
Data? Foreground? Transactional Data
No No
(Background or Unknown)
Bulk Data
Multimedia Streaming AF3 BW Queue + DSCP WRED Cisco Digital Media System (VoDs)
Transactional Data AF2 BW Queue + DSCP WRED ERP Apps, CRM Apps, Front-End Database Apps
Bulk Data AF1 BW Queue + DSCP WRED E-mail, FTP, Backup Apps, Content Distribution
Scavenger CS1 Min BW Queue (Deferential) Netflix, YouTube, iTunes, Hulu, BitTorent, Xbox Live
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
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 Signaling Signaling
Network Control Network Control
Network Management
Critical Data
Critical Data Transactional Data
Bulk Data
Best Effort Best Effort
Best Effort
Scavenger Scavenger
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
QoS Design Strategy—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qosmrn.pdf
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Agenda
• QoS Design Strategy Review
• Campus QoS Design Considerations &
Recommendations
• Cisco Catalyst 2960-X QoS Design
• Cisco Catalyst 3650/3850 QoS Design
• Cisco Catalyst 4500 QoS Design
• Cisco Catalyst 6500/6800 QoS Design
• Summary and References
BRKCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
Campus QoS Design
Considerations & Recommendations
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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
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 =
1080 lines of Horizontal Resolution
2,073,600 pixels per frame
= 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 Total Per-Port Buffer: 5.4 MB
80
60 Total Per-Queue Buffer*: 1.35 MB
40
20 Gbps Line Rate: 1 Gbps = 125 MB/s
0 or 125 KB/ms
770
130
170
210
250
290
330
370
410
450
490
530
570
610
650
690
730
810
850
890
930
970
10
50
90
1200
1000
Total Per-Port Buffer: 90 MB
800
600
Total Per-Queue Buffer*: 11.25 MB
400
200
Gbps Line Rate: 10 Gbps = 1.25 GB/s
0
or 1250 KB/ms
130
370
170
210
250
290
330
410
450
490
530
570
610
650
690
730
770
810
850
890
930
970
10
50
90
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
Campus QoS Design Considerations
Campus QoS Tools and Deployment Options
• MLS QoS vs. MQC QoS vs. C3PL QoS
• Global Default QoS Setting
• Trust States and Conditional Trust
• Per-Port QoS, Per-VLAN QoS, Per-Port/Per-VLAN QoS
• Ingress QoS Models
• Egress QoS Models
• EtherChannel QoS
• QoS Roles in a Medianet Campus
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
Campus QoS Design Considerations
MLS QoS vs. MQC QoS vs. C3PL QoS
• Catalyst 2960-X / 3560 / 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 3650/3850 and 4500 are using IOS Modular QoS Command Line
Interface (MQC) syntax (the same as 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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Campus QoS Design Considerations
Per-Port/Per-VLAN QoS
VLAN Interfaces
DVLAN 10
VVLAN 110
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Campus Ingress QoS Models
No Trust (Untrusted)
Trust DSCP
Trust CoS
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
30
Campus QoS Design Recommendations
Queuing and Dropping Recommendations
• Catalyst hardware queuing varies by platform/linecard and can be expressed as: xPyQzT
• For Example: 1P3Q8T means:
– 1 strict-Priority queue Best Effort
– 3 non-priority Queues, each with ≥ 25% Realtime
≤ 33%
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Campus QoS Design – Port QoS Roles
Untrusted Endpoint Port QoS:
Untrusted Endpoints • No Trust
• [Optional Ingress Marking and/or Policing]
• Egress Queuing
Access Distribution Core
WAN/VPN
Block
Conditionally-
Trusted
Endpoints
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Campus QoS Design—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampusaag.pdf
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Agenda
• QoS Design Strategy Review
• Campus QoS Design Considerations &
Recommendations
• Cisco Catalyst 2960-X QoS Design
• Cisco Catalyst 3650/3850 QoS Design
• Cisco Catalyst 4500 QoS Design
• Cisco Catalyst 6500/6800 QoS Design
• Summary and References
BRKCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 35 35
Cisco Catalyst 2960-X (+3560 + 3750)
QoS Design
Catalyst 2960-X/3560/3750 Campus QoS Design
Catalyst 2960-X/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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Catalyst 2960-X Campus QoS Design
QoS Design Steps
1. Enable QoS
2. Configure Ingress QoS Model(s): Note: The Catalyst 3560 & 3750 support ingress
queuing policies, but the 2960-X does not.
Trust Models Similarly, the Catalyst 3560 & 3750 support VLAN-
Conditional Trust Model based QoS policies, but the 2960-X does not.
Service Policy Models
3. Configure Egress Queuing
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Catalyst 2960-X/3560/3750 Campus QoS Design
Enabling QoS and Trust Model Examples
Enabling QoS:
mls qos Shaded commands are global
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Catalyst 2960-X/3560/3750 Campus QoS Design
Conditional Trust to a Cisco IP Phone Example
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Catalyst 2960-X/3560/3750 Campus QoS Design
Service Policy Model Example—Marking Policy
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Note: Remarking is performed by configuring a
Catalyst 2960-X/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
…
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Catalyst 2960-X/3560/3750 Campus QoS Design
Egress Queuing Model (1P3Q3T)
Application DSCP 1P3Q3T
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
2960/3560/3750 Campus
Catalyst 2960-X/3560/3750 QoS
Campus Design
QoS Design
Egress Queuing Model (1P3Q3T) Example–Part 2 of 2
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Catalyst 2960-X/3560/3750 Campus QoS Design
EtherChannel QoS Design
All QoS policies are configured on the physical port-member interfaces only
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Catalyst 2960/3560/3750 QoS Design—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat3xxxaag.pdf
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
Agenda
• QoS Design Strategy Review
• Campus QoS Design Considerations &
Recommendations
• Cisco Catalyst 2960-X QoS Design
• Cisco Catalyst 3650/3850 QoS Design
• Cisco Catalyst 4500 QoS Design
• Cisco Catalyst 6500/6800 QoS Design
• Summary and References
BRKCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Cisco Catalyst 3650/3850
QoS Design
Catalyst 3650/3850 Campus QoS Design
Catalyst 3650/3850 QoS Roles in Campus Networks
No Trust +
Egress Queuing
Trust DSCP +
C3650/3850 Egress Queuing
Access
Switch Conditional Trust +
Egress Queuing
Classification/Marking +
[Optional Policing] +
Egress Queuing
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
Catalyst 3650/3850 Campus QoS Design
QoS Design Steps
*Note: Catalyst 3650/3850 IOS MQC will trust by default on wired ports
Prior to IOS XE 3.3, wireless ports were set to an untrusted state by default.
However, this default setting can be globally disabled with the following command:
no qos wireless-default-untrust
Beginning with IOS XE 3.3, wireless ports also trusted by default
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Catalyst 3650/3850 Campus QoS Design
Only match-any is supported
Conditional Trust Models (Wired Ports Only) (i.e. match-all is not supported)
Conditional-Trust
Cisco IP Phone (Cisco IP Phone)
Conditional TrustExample:
Example
class-map match-any VOICE CoS
CoSmust
mustbebe
match cos 5 matched
matchedasasCisco
Conditional-Trust Models: class-map match-any SIGNALING
Cisco
IP
IPPhones
Phonesonly
only
interface GigabitEthernet 1/0/1 match cos 3 remark
remarkat
atLayer
Layer22
trust device cisco-phone [or]
trust device cts [or] policy-map CISCO-IPPHONE
trust device ip-camera [or] class VOICE
trust device media-player set dscp ef
class SIGNALING
set dscp cs3
Only one type of device can be configured for class class-default
conditional trust on an interface at a given time set dscp default
interface GigabitEthernet 1/0/1
trust device cisco-phone
service-policy input CISCO-IPPHONE
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Catalyst 3650/3850 Campus QoS Design
Service Policy Model Example – Marking Policy
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
All markdown and/or
Catalyst 3650/3850 Campus QoS Design mapping operations
are configured
Service Policy Model Example – Marking & Policing Policy – Part 1 through table-maps
policy-map MARKING&POLICING …[continued]
class VVLAN-VOIP class TRANSACTIONAL-DATA
set dscp ef set dscp af21
police 128k table-map TABLE-MAP
police 10m
conform-action transmit map from 0 to 8
conform-action transmit
exceed-action drop map from 10 to 8
exceed-action TABLE-MAP
class VVLAN-SIGNALING map from 18 to 8
class BULK-DATA
set dscp cs3 set dscp af11
police 32k police 10m
conform-action transmit conform-action transmit
exceed-action drop exceed-action TABLE-MAP
class MULTIMEDIA-CONFERENCING class SCAVENGER
set dscp af41 set dscp cs1
police 5m police 10m Policing to remark traffic
conform-action transmit conform-action transmit is done by referencing
exceed-action drop exceed-action drop the previously-configured
class SIGNALING class class-default table-map
set dscp cs3 set dscp default
police 32k police 10m
conform-action transmit conform-action transmit
exceed-action drop exceed-action TABLE-MAP
…
BRKCRS-2501 Policers
© 2015 Cisco and/or its affiliates. All can may
rights reserved. Cisco be
Publicset to 54
either remark or drop excess traffic
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
! This section attaches the service-policy to a wired interface(s)
(that is, per SSID/AP pair)
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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 55 client-aggregate level
Catalyst 3650/3850 Campus QoS Design
Service Policy Model Example – Per-Port/Per-VLAN QoS (Wired Trunked Ports)
In this example the Voice VLAN is 110 and the Data VLAN is 10
class-map VLAN
match vlan 110 Individual
Individual (trunked)
(trunked) VLANs
VLANs are
are
class-map DVLAN matched
matched byby the
the match
match vlan
vlan command
command
match vlan 10
policy-map VLAN-POLICERS
class VVLAN
police 192k
conform-action transmit exceed-action drop Policers are applied on a per-VLAN
Policers are applied on a Per-VLAN basis
class DVLAN basis
police 50m
conform-action transmit exceed-action drop
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Catalyst 3650/3850 Campus QoS Design
Wired Port Egress Queuing (2P6Q3T with WTD) Model
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Catalyst 3650/3850 Campus QoS Design
Wired Port Egress Queuing (2P6Q3T) Example – Part 1 (Class-Maps)
! This section configures the class-maps Note: On platforms with shared buffer and TCAM
class-map match-any VOICE-PQ1 architectures (2960/3560/3750/3650/3850/4500),
match dscp ef show policy-map interface commands do not report
class-map match-any VIDEO-PQ2 per-port packets or byte-counters.
match dscp cs4 This is a limitation of shared hardware architectures.
match dscp cs5
class-map match-any CONTROL-MGMT-QUEUE
match dscp cs7 cs6 cs3 cs2
class-map match-any MULTIMEDIA-CONFERENCING-QUEUE
match dscp af41 af42 af43
class-map match-any MULTIMEDIA-STREAMING-QUEUE
match dscp af31 af32 af33
class-map match-any TRANSACTIONAL-DATA-QUEUE
match dscp af21 af22 af23
class-map match-any SCAVENGER-BULK-DATA-QUEUE
match dscp cs1 af11 af12 af13
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Catalyst 3650/3850 Campus QoS Design If a PQ is enabled then
Wired Port Egress Queuing (2P6Q3T) Example – Part 2 non-PQs must use
bandwidth remaining
! This section configures the policy-map …[continued]
policy-map 2P6Q3T class MULTIMEDIA-STREAMING-QUEUE
Two-levels of priority bandwidth remaining percent 10
class VOICE-PQ1 Allocates
queuing are supported queue-buffers ratio 10
priority level 1 buffers to
police rate percent 10 queue-limit dscp af33 percent 80 non-PQs
class VIDEO-PQ2 queue-limit dscp af32 percent 90
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
bandwidth remaining percent 10 queue-buffers ratio 10
queue-buffers ratio 10 queue-limit dscp af23 percent 80 Tunes
Tunes WTD
class MULTIMEDIA-CONFERENCING-QUEUE queue-limit dscp af22 percent 90 WTD to
to align to an
bandwidth remaining percent 10 queue-limit dscp af21 percent 100 align to an
AF PHB
queue-buffers ratio 10 class SCAVENGER-BULK-DATA-QUEUE AF PHB
queue-limit dscp af43 percent 80 bandwidth remaining percent 5
queue-limit dscp af42 percent 90 queue-buffers ratio 10
queue-limit dscp af41 percent 100 queue-limit dscp values af13 cs1 percent 80
… queue-limit dscp values af12 percent 90
queue-limit dscp values af11 percent 100
interface range GigabitEthernet 1/0/1-48 class class-default
service-policy output 2P6Q3T bandwidth remaining percent 25
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
queue-buffers ratio 25
Catalyst 3650/3850 Campus QoS Design
Wired Port Hierarchical Policies: Queuing within Shaped Rate Example
policy-map 50MBPS-SHAPER
class class-default Defines the sub-line rate (CIR)
shape average 50000000
service-policy 2P6Q3T Provides back-pressure to the system to
interface GigabitEthernet 1/0/1 engage the (previously-defined) queuing
service-policy output 50MBPS-SHAPER policy, so that packets are properly
prioritized within the sub-line rate
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Catalyst 3650/3850 Campus QoS Design
EtherChannel QoS Design (Wired Ports Only)
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Catalyst 3650/3850 Campus QoS Design
Wireless Ports 2P2Q+Approximate Fair Drop (AFD) Wireless Egress Queuing Model
Application Classes DSCP 2P2Q with AFD
EF Q0
Voice EF CS6 Priority Level 1
CS3 (Limited to 10% of BW)
Q1
Interactive Video AF4 AF4 Priority Level 2
(Limited to 20% of BW)
Network Control CS6
AF2 Q2
Bulk Data AF1
Unicast-
Non-Realtime Queue
CS1
(63% BWR)
Transactional Data AF2
DF
Scavenger CS1
Q3
Multicast Non-Realtime Queue
Best Effort DF (7% BWR)
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Catalyst 3650/3850 Campus QoS Design
2P2Q+AFD Wireless Egress Queuing Configuration
class-map match-any REALTIME-1
match dscp ef
match dscp cs6
Note: This policy is applied automatically to all wireless ports.
match dscp cs3
Therefore, no explicit service-policy command is required
class-map match-any REALTIME-2
to attach the policy to a wireless interface(s).
match dscp af41
match dscp af42
match dscp af43
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat3x50aag.html
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Agenda
• QoS Design Strategy Review
• Campus QoS Design Considerations &
Recommendations
• Cisco Catalyst 2960-X QoS Design
• Cisco Catalyst 3650/3850 QoS Design
• Cisco Catalyst 4500 QoS Design
• Cisco Catalyst 6500/6800 QoS Design
• Summary and References
BRKCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 65 65
Cisco Catalyst 4500 (Supervisor 7-E / 8-E)
and 4500-X QoS Design
Catalyst 4500 Campus QoS Design
Catalyst 4500 QoS Role in Campus Networks
Trust DSCP +
Egress Queuing
Access
Switches Catalyst 4500
Core Switches
Distribution
Switches
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Catalyst 4500 Campus QoS Design
QoS Design Steps
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
Catalyst 4500 Campus QoS Design
Conditional Trust Model – Cisco IP Phone Example
policy-map CISCO-IPPHONE
class VOICE
set dscp ef
class SIGNALING
set dscp cs3
class class-default
set dscp default
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Catalyst 4500 Campus QoS Design
Service Policy Model Example – Marking Policy
[class-maps omitted for brevity]
policy-map MARKING-POLICY
class VOIP
set dscp ef
class MULTIMEDIA-CONFERENCING
set dscp af41
class SIGNALING
set dscp cs3
class TRANSACTIONAL-DATA
set dscp af21
class BULK-DATA
set dscp af11
class SCAVENGER
set dscp cs1
class class-default
set dscp default
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Catalyst 4500 Campus QoS Design
Service Policy Model Example – Marking & Policing Policy
policy-map MARKING&POLICING class BULK-DATA
class VOIP police 10m bc 8000
police 128k bc 8000 conform-action set-dscp-transmit af11
conform-action set-dscp-transmit ef exceed-action set-dscp-transmit af12
exceed-action drop class SCAVENGER
class SIGNALING police 10m bc 8000
police 32k bc 8000 conform-action set-dscp-transmit cs1
conform-action set-dscp-transmit cs3 exceed-action drop
exceed-action drop class class-default
class MULTIMEDIA-CONFERENCING police 10m bc 8000
police 5m bc 8000 conform-action set-dscp-transmit default
conform-action set-dscp-transmit af41 exceed-action set-dscp-transmit cs1
exceed-action set-dscp-transmit af42
class TRANSACTIONAL-DATA interface GigabitEthernet 3/1
police 10m bc 8000 service-policy input MARKING&POLICING
conform-action set-dscp-transmit af21
exceed-action set-dscp-transmit af22
Marking/remarking is configured as part of the policing action
(i.e. no table-map or markdown-map is referenced)
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Catalyst 4500 Campus QoS Design
Service Policy Model Example – Per-Port/Per-VLAN QoS (IP Phone Example)
In this example VLAN 10 is the Data VLAN and VLAN 110 is the VVLAN
interface range GigabitEthernet 2/1-48
qos trust device cisco-phone
vlan 10 Per-Port/Per-VLAN policies can be applied to
service-policy input DVLAN-POLICERS a specific VLAN on a trunked interface via an
vlan 110 interface-VLAN configuration mode
service-policy input VVLAN-POLICERS
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
Catalyst 4500 Campus QoS Design
Egress Queuing (1P7Q1T+DBL) Model
Application DSCP 1P7Q1T (+DBL)
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Catalyst 4500 Campus QoS Design—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat4500aag.html
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Agenda
• QoS Design Strategy Review
• Campus QoS Design Considerations &
Recommendations
• Cisco Catalyst 2960-X QoS Design
• Cisco Catalyst 3650/3850 QoS Design
• Cisco Catalyst 4500 QoS Design
• Cisco Catalyst 6500/6800 QoS Design
• Summary and References
BRKCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 77 77
Cisco Catalyst 6500 (Supervisor-2T) & 6800
QoS Design
Cisco Catalyst 6500/6800 Campus Core QoS Design
Catalyst 6500/6800 Role in Campus Networks
Catalyst 6500
Core/Distribution
Switches
Trust DSCP
+ Ingress Queuing
+ Egress Queuing
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
Cisco Catalyst 6500 Campus Core QoS Design
QoS Design Steps—Cisco Catalyst 6500 (Supervisor 2T) or 6800
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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Cisco Catalyst 6500/6800 Campus Core QoS Design
8Q4T (Ingress) & 1P7Q4T (Egress) Queuing Model Examples
Application-Class DSCP 8Q4T/1P7Q4T
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Cisco Catalyst 6500 QoS Design—At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat6500sup2taag.html
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Agenda
• QoS Design Strategy Review
• Campus QoS Design Considerations &
Recommendations
• Cisco Catalyst 2960-X QoS Design
• Cisco Catalyst 3650/3850 QoS Design
• Cisco Catalyst 4500 QoS Design
• Cisco Catalyst 6500/6800 QoS Design
• Summary and References
BRKCRS-2501 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
Summary & References
Key Takeaways
• The explosion of rich media applications requires network architects to
reevaluate current QoS designs
• Always, always, always begin by defining the business objectives of QoS
• RFC 4594 provides an industry best-practice QoS strategic framework
• 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 the campus QoS toolset
– 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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Campus QoS Design 4.0—At-A-Glance Docs
• QoS Design Strategy At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qosmrn.html
• Campus QoS Design At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampusaag.html
• Cisco Catalyst 3560/3750 QoS Design At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat3xxxaag.html
• Cisco Catalyst 3650/3850 QoS Design At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat3x50aag.html
• Cisco Catalyst 4500 QoS Design At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat4500aag.html
• Cisco Catalyst 6500 QoS Design At-A-Glance
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat6500sup2taag.html
• Cisco Campus AutoQoS SRND4 At-A-Glance
http://www.cisco.com/c/dam/en/us/td/docs/solutions/Enterprise/Video/autoqosmediacampus.pdf
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
Campus QoS Design 4.0—In-Depth
Comprehensive Design Chapters
• Enterprise Quality of Service Design 4.0
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_S
RND_40/QoSIntro_40.html
• Campus QoS Design 4.0
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_S
RND_40/QoSCampus_40.html
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Call to Action
• Visit the World of Solutions for
– Cisco Campus
– Walk in Labs
– Technical Solution Clinics
• Meet the Engineer
• Lunch time Table Topics
• DevNet zone related labs and sessions
• Recommended Reading: for reading material and further resources for this
session, please visit www.pearson-books.com/CLMilan2015
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
Interested in Learning about Next Gen Solutions?
• Have your account team setup a
meeting @ Enterprise Segment
Innovation Forum
• Requirements
– Cisco Account Team Presence
– Cisco NDA in Place
• Please use the address if you have
any queries…
ciscolive-ebc-eng-sw@external.cisco.com
• We are at
MiCo - Milano Congressi, Piazzale Carlo
Magno 1, 20149 Milano Italy, Meeting
Village, North Building, Level 1
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Complete Your Online Session Evaluation
• Please complete your online session
evaluations after each session.
Complete 4 session evaluations
& the Overall Conference Evaluation
(available from Thursday)
to receive your Cisco Live T-shirt.
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Appendix: AutoQoS SRND 4.0
Cisco Catalyst 2960/3560/3750 AutoQoS
AutoQoS SRND4 Models
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
Cisco Catalyst 2960/3560/3750 AutoQoS
AutoQoS SRND4 – auto qos trust { cos | dscp }
BRKCRS-2501 © 2015 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
BRKCRS-2501 © 2015 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
Note: Class-maps and IP ACLs
policy-map AUTOQOS-SRND4-CLASSIFY-POLICY
omitted for brevity
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
BRKCRS-2501 © 2015 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
BRKCRS-2501 © 2015 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 omitted for
policy-map AUTOQOS-SRND4-CISCOPHONE-POLICY 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
BRKCRS-2501 © 2015 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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
Cisco Catalyst 3560/3750 AutoQoS
Ingress Queuing Model (1P1Q3T)
Application DSCP 1P1Q3T
Best Effort DF DF
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Cisco Catalyst 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
BRKCRS-2501 © 2015 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
BRKCRS-2501 Best© Effort DF reserved.
2015 Cisco and/or its affiliates. All rights Cisco Public 109
Cisco Catalyst 2960/3560/3750 AutoQoS
Egress Queuing Model (1P3Q3T) Example–Part 1 of 2
BRKCRS-2501 © 2015 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
BRKCRS-2501 © 2015 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
BRKCRS-2501 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 112