Documente Academic
Documente Profesional
Documente Cultură
Simplified
Tim Szigeti
BRKCRS-2501
Agenda
1080p60
1080 x 1920 lines =
2,073,600 pixels per frame
or 3 Gbps Uncompressed!
Cisco (H264/H.265) codecs transmit 3-5 Mbps per 1080p60 video stream
which represents over 99.8% compression (~ 1000:1)
Packet loss is proportionally magnified by compression ratios
Users can notice a single packet lost in 10,000
Making HD Video One Hundred Times More Sensitive to Packet Loss than VoIP!
Video Packets
1400
1400
1000
1000
Video
Frame
Bytes
Audio
Samples
600
200
Time
600
200
20 msec
33 msec
Video
Frame
Video
Frame
120
100
80
60
40
20
0
10
50
90
130
170
210
250
290
330
370
410
450
490
530
570
610
650
690
730
770
810
850
890
930
970
KBytes Per ms
140
Begin dropping at 11 ms
but overall utilization is only 1%!
ms
*Assuming (4) equal-sized queues
1 second
1200
1000
800
600
400
200
0
10
50
90
130
170
210
250
290
330
370
410
450
490
530
570
610
650
690
730
770
810
850
890
930
970
KBytes Per ms
1400
Begin dropping at 9 ms
but overall utilization is only 1%!
ms
1 second
GE Link
10GE Link
40GE Link
GE Link
10GE Link
40GE Link
x 11
GE Link
10GE Link
40GE Link
GE Link
10GE Link
40GE Link
Hardware Varies
American Version
2015 Cisco Live San Diego
Hardware Varies
Italian Version
2015 Cisco Live Milan
Hardware Varies
German Version
2016 Cisco Live Berlin
Hardware Varies
Canadian Version
2015 Cisco Connect Toronto
Catalyst 2960-X / 3560 / 3750 are the last platforms to use Multilayer Switch QoS (MLS QoS)
Catalyst 3650/3850 and 4500 use IOS Modular QoS Command Line Interface (MQC)
Catalyst 6500/6800 use Cisco Common Classification Policy Language (C3PL) QoS
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
Trust Boundary
Trust Boundaries
Trust Boundary
Trust Boundary
Centrally-Administered &
Conditionally-Trusted Devices
mls qos trust device
cisco-phone
cts
ip-camera
media-player
The Policy Enforcement Point (PEP) is the edge where classification and marking policies are enforced
The PEP may or may not be the same as the trust boundary
Multiple PEPs may exist for different types of network devices
e.g. switch PEP vs. router PEP
Trust Boundary
Switch
PEP
Router
PEP
Note: For the sake of simplification, in this deck PEP will refer to
classification and marking policy enforcement points (only)
and will not include other policy enforcement points (e.g. queuing).
Conditional Trust
Trust Boundary
PEP
policy-map MARKING
class VOICE
set dscp ef
class VIDEO
set dscp af41
class BULK-DATA
set dscp af11
Conditional Trust
IP Phone
CoS Mapping Table
CoS 6-7
CoS 0
Voice
CoS 5
Signaling CoS 3
CoS 0-4
DSCP 0
CoS
CoS
CoS
CoS
CoS
CoS
CoS
CoS
Access Switch
CoS-to-DSCP
Mapping Table
7 DSCP CS7 (56)
6 DSCP CS6 (48)
5 DSCP EF (46)*
4 DSCP CS4 (40)
3 DSCP CS3 (24)
2 DSCP CS2 (16)
1 DSCP CS1 (8)
0 DSCP DF (0)
* Non-Default Mapping
Trust Boundary
PEP
Per-VLAN QoS
Policy map is applied to the
logical VLAN interface
VLAN Interfaces
VLAN 10
VLAN 20
VLAN Interfaces
VLAN 10
Physical Ports
Physical Ports
Policy map is applied to the
physical switch port
interface gig 1/1-48
service-policy input MARKING
VLAN 20
EtherChannel QoS
Ingress QoS policies are usually applied to the logical interfaces (but not always)
Egress QoS policies (such as queuing) are always applied to the physical portmember interfaces
Platform
Catalyst 2960-X
Catalyst 3650/3850
Ingress
Egress
Catalyst 4500
Ingress
Egress
Catalyst 6500
Ingress
Egress
Always perform QoS in hardware rather than software when a choice exists
Enable queuing policies at every node where the potential for congestion exists
Trust DSCP
Trust CoS
Marking Policies
VoIP Classifier
VVLAN
Yes
No
Signaling Classifier
Mark CS3
Yes
No
Mark AF41
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Signaling Classifier
Transactional Data Classifier
Bulk Data Classifier
Scavenger Classifier
Best Effort (Class-Default)
Mark CS3
Mark AF21
Mark AF11
Mark CS1
Mark DF
DVLAN
Drop
Drop
Drop
Drop
Remark to CS1
Remark to CS1
Drop
Remark to CS1
1 Priority Queue
3 Non-Priority
Queues
1P3Q1T
Resume
Interrupt
Scheduling
Tail
of
Queue
Direction
of
Packet
Flow
Tail
of
Queue
Direction
of
Packet
Flow
AF13 Minimum WRED Threshold:
Begin randomly dropping AF13 Packets
AF12 Minimum WRED Threshold:
Begin randomly dropping AF12 Packets
AF11 Minimum WRED Threshold:
Begin randomly dropping AF11 Packets
Maximum WRED Thresholds for AF11, AF12 and AF13 are set to the tail of the queue in this example
Trust DSCP
(Default on all non-MLS QoS platforms)
[Ingress and] Egress Queuing
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampusaag.pdf
Agenda
Catalyst 2960-X
QoS Roles in the Campus Access
No Trust +
Ingress Queuing +
Egress Queuing
Trust DSCP +
Ingress Queuing +
Egress Queuing
Conditional Trust +
Ingress Queuing +
Egress Queuing
C2960-X
Access
Switch
Distribution
Switches
Classification/Marking +
[Optional Policing] +
Ingress Queuing +
Egress Queuing
Catalyst 2960-X
QoS Design Steps
1. Enable QoS
2. Configure Ingress QoS Model(s):
Trust Models
Conditional Trust Model
Service Policy Models
Catalyst 2960-X
Enabling QoS and Trust Models
Enabling QoS:
mls qos
qos
qos
qos
qos
trust
trust
trust
trust
device
device
device
device
cisco-phone
[or]
cts
[or]
ip-camera
[or]
media-player
Catalyst 2960-X
Conditional Trust Model Example
Conditional Trust Policy to a Cisco IP Phone:
mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos trust device cisco-phone
mls qos trust cos
CoS must be
matched as Cisco IP
Phones only remark
at Layer 2
Catalyst 2960-X
Marking Policy Model Example
class-map match-all
match access-group
class-map match-all
match access-group
class-map match-all
match access-group
class-map match-all
match access-group
class-map match-all
match access-group
class-map match-all
match access-group
VOIP
name VOIP
MULTIMEDIA-CONFERENCING
name MULTIMEDIA-CONFERENCING
SIGNALING
name SIGNALING
TRANSACTIONAL-DATA
name TRANSACTIONAL-DATA
BULK-DATA
name BULK-DATA
SCAVENGER
name SCAVENGER
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
service-policy input MARKING-POLICY
Catalyst 2960-X
Marking & Policing Policy Example
mls qos map policed-dscp 0 10 18 to 8
Catalyst 2960-X
1P3Q3T Egress Queuing Model
Application
DSCP
Network Control
(CS7)
Internetwork Control
CS6
VoIP
EF
1P3Q3T
AF1
CS1
DF
Queue 4
(5%)
Q4T2
Q4T1
Default Queue
Queue 3 (35%)
Broadcast Video
CS5
Multimedia Conferencing
AF4
CS7
Realtime Interactive
CS4
CS6
Multimedia Streaming
AF3
CS3
Q2T3
Q2T2
Queue 2
Signaling
CS3
AF4
Transactional Data
AF2
AF3
Network Management
CS2
AF2
Bulk Data
AF1
Scavenger
CS1
(30%)
CS2
Best Effort
DF
EF
CS5
CS4
Q1
Priority Queue
Q2T1
Catalyst 2960-X
1P3Q3T Egress Queuing Model ConfigPart 1 of 2
! This section configures egress buffers and thresholds
mls qos queue-set output 1 buffers 15 30 35 20
mls qos queue-set output 1 threshold 1 100 100 100 100
mls qos queue-set output 1 threshold 2 80 90 100 400
mls qos queue-set output 1 threshold 3 100 100 100 400
mls qos queue-set output 1 threshold 4 60 100 100 400
! This section configures egress
mls qos srr-queue output cos-map
mls qos srr-queue output cos-map
mls qos srr-queue output cos-map
mls qos srr-queue output cos-map
mls qos srr-queue output cos-map
mls qos srr-queue output cos-map
CoS-to-Queue mappings
queue 1 threshold 3 4 5
queue 2 threshold 1 2
queue 2 threshold 2 3
queue 2 threshold 3 6 7
queue 3 threshold 3 0
queue 4 threshold 3 1
Catalyst 2960-X
1P3Q3T Egress Queuing Model ConfigPart 2 of 2
! This section configures egress DSCP-to-Queue mappings
mls qos srr-queue output dscp-map queue 1 threshold 3 32
mls qos srr-queue output dscp-map queue 2 threshold 1 16
mls qos srr-queue output dscp-map queue 2 threshold 1 26
mls qos srr-queue output dscp-map queue 2 threshold 2 24
mls qos srr-queue output dscp-map queue 2 threshold 3 48
mls qos srr-queue output dscp-map queue 3 threshold 3 0
mls qos srr-queue output dscp-map queue 4 threshold 1 8
mls qos srr-queue output dscp-map queue 4 threshold 2 10
40 46
18 20 22
28 30 34 36 38
56
12 14
Catalyst 2960-X
EtherChannel QoS Design
All QoS policies are configured on the physical port-member interfaces only
Platform
Catalyst 2960/3560/3750
http://www.cisco.com/c/dam/en/us/td/docs/solutions/Enterprise/Video/autoqosmediacampus.pdf
Agenda
Catalyst 3650/3850
QoS Roles in the Campus Access
No Trust +
Egress Queuing
Trust DSCP +
Egress Queuing
C3650/3850
Access
Switch
Conditional Trust +
Egress Queuing
Classification/Marking +
[Optional Policing] +
Egress Queuing
Distribution
Switches
Catalyst 3650/3850
QoS Design Steps
1. Configure Ingress QoS Model(s):
Catalyst 3650/3850
Conditional Trust Models
Conditional-Trust
(Cisco
IP Phone)
Cisco IP Phone
Conditional
TrustExample:
Example
Conditional-Trust Models:
interface GigabitEthernet 1/0/1
trust device cisco-phone
[or]
trust device cts
[or]
trust device ip-camera [or]
trust device media-player
CoS
CoSmust
mustbe
be
matched
matchedas
asCisco
Cisco
IP
IPPhones
Phonesonly
only
remark
remarkat
atLayer
Layer22
policy-map CISCO-IPPHONE
class VOICE
set dscp ef
class SIGNALING
set dscp cs3
class class-default
set dscp default
interface GigabitEthernet 1/0/1
trust device cisco-phone
service-policy input CISCO-IPPHONE
Catalyst 3650/3850
Marking Policy Example
[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 default
set dscp default
Catalyst 3650/3850
Marking & Policing Policy ExamplePart 1 of 2
policy-map MARKING&POLICING
[continued]
class VVLAN-VOIP
class TRANSACTIONAL-DATA
table-map TABLE-MAP
set dscp ef
set dscp af21
map from 0 to 8
police 128k
police 10m
map from 10 to 8
conform-action transmit
conform-action transmit
map from 18 to 8
exceed-action drop
exceed-action TABLE-MAP
class VVLAN-SIGNALING
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
Policing to remark traffic
police 5m
police 10m
is done by referencing
conform-action transmit
conform-action transmit
the previously-configured
exceed-action drop
exceed-action drop
table-map
class SIGNALING
class class-default
set dscp cs3
set dscp default
police 32k
police 10m
conform-action transmit
conform-action transmit
exceed-action drop
exceed-action TABLE-MAP
Policers can may be set to either remark or drop excess traffic
Catalyst 3650/3850
Marking & Policing Policy ExamplePart 2 of 2
! 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 EMPLOYEE-WLAN
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 EMPLOYEE-WLAN
service-policy client input POLICING
The inclusion of the client keyword
changes the application of the policer
from the SSID-aggregate level to the
client-aggregate level
Catalyst 3650/3850
Per-Port/Per-VLAN Policy
class-map VVLAN
match vlan 110
class-map DVLAN
match vlan 10
policy-map VLAN-POLICERS
class VVLAN
police 192k
conform-action transmit exceed-action drop
class DVLAN
police 50m
conform-action transmit exceed-action drop
interface GigabitEthernet 1/0/1
service-policy input VLAN-POLICERS
Individual
Individual (trunked)
(trunked) VLANs
VLANs are
are
matched
matched by
by the
the match
match vlan
vlan command
command
PQ1
PQ2
Interrupt
Interrupt
Scheduling
Scheduling
Catalyst 3650/3850
2P6Q3T with Weighted Tail Drop (WTD) Wired Port Egress Queuing Model
2P6Q3T
Application
DSCP
Network Control
(CS7)
EF
Internetwork Control
CS6
CS5
VoIP
EF
Broadcast Video
CS5
PQ Level 1 (10%)
PQ Level 2 (20%)
CS4
CS7 & CS6
CS3 & CS2
Multimedia Conferencing
AF4
Realtime Interactive
CS4
Multimedia Streaming
AF3
Signaling
CS3
Transactional Data
AF2
Network Management
CS2
Bulk Data
AF1
Scavenger
CS1
Best Effort
DF
Q6
(BWR 10%)
AF4
Q5
(BWR 10% + WTD)
AF3
Q4
(BWR 10% + DSCP-Based WTD)
AF2
Q3
(BWR 10% + DSCP-Based WTD)
AF1
CS1
DF
Q2
(BWR 5% + DSCP-Based WTD)
Q1 (BWR 25%)
BWR =
Bandwidth
Remaining
WTD =
Weighted
Tail
Drop
Catalyst 3650/3850
2P6Q3T+WTD Wired Port Egress Queuing Config Part 1of 2
class-map match-any VOICE-PQ1
match dscp ef
class-map match-any VIDEO-PQ2
match dscp cs4
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
Catalyst 3650/3850
2P6Q3T+WTD Wired Port Egress Queuing Config Part 2 of 2
policy-map 2P6Q3T
class VOICE-PQ1
Two-levels of priority
priority level 1
queuing are supported
police rate percent 10
class VIDEO-PQ2
priority level 2
police rate percent 20
class CONTROL-MGMT-QUEUE
bandwidth remaining percent 10
queue-buffers ratio 10
class MULTIMEDIA-CONFERENCING-QUEUE
bandwidth remaining percent 10
queue-buffers ratio 10
queue-limit dscp af43 percent 80
queue-limit dscp af42 percent 90
queue-limit dscp af41 percent 100
If a PQ is enabled then
non-PQs must use
bandwidth remaining
[continued]
class MULTIMEDIA-STREAMING-QUEUE
bandwidth remaining percent 10
Allocates
queue-buffers ratio 10
buffers to
queue-limit dscp af33 percent 80
non-PQs
queue-limit dscp af32 percent 90
queue-limit dscp af31 percent 100
class TRANSACTIONAL-DATA-QUEUE
bandwidth remaining percent 10
queue-buffers ratio 10
Tunes
queue-limit dscp af23 percent 80
Tunes WTD
WTD to
queue-limit dscp af22 percent 90
to align to an
align to an
queue-limit dscp af21 percent 100
AF PHB
AF PHB
class SCAVENGER-BULK-DATA-QUEUE
bandwidth remaining percent 5
queue-buffers ratio 10
queue-limit dscp values af13 cs1 percent 80
queue-limit dscp values af12 percent 90
queue-limit dscp values af11 percent 100
class class-default
bandwidth remaining percent 25
queue-buffers ratio 25
Catalyst 3650/3850
Hierarchical QoS PoliciesQueuing within Shaped Rate Example
policy-map 50MBPS-SHAPER
class class-default
shape average 50000000
service-policy 2P6Q3T
interface GigabitEthernet 1/0/1
service-policy output 50MBPS-SHAPER
Catalyst 3650/3850
EtherChannel QoS Design
Ingress QoS policies are configured on the logical Port-Channel interface
Typically these are simply to enable DSCP trust
(which requires no explicit configuration)
Egress QoS policies are configured on the physical port-member interfaces
Platform
Catalyst 3850
Ingress
Egress
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat3x50aag.html
Agenda
Catalyst 4500
QoS Roles in the Campus Distribution
Trust DSCP +
Egress Queuing
Core Switches
Access
Switches
Catalyst 4500
Distribution
Switches
Catalyst 4500
QoS Design Steps
1. Configure Ingress QoS Model(s):
DSCP-Trust Model*
Conditional Trust Model
Service Policy Models
Catalyst 4500
Conditional Trust 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
interface GigabitEthernet 3/1
qos trust device cisco-phone
service-policy input CISCO-IPPHONE
Conditional trust command (trust device) must be
prefaced by qos on the Catalyst 4500
Catalyst 4500
Marking Policy Example
[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
interface GigabitEthernet 3/1
service-policy input MARKING-POLICY
Catalyst 4500
Marking & Policing Policy Example
policy-map MARKING&POLICING
class VOIP
police 128k bc 8000
conform-action set-dscp-transmit ef
exceed-action drop
class SIGNALING
police 32k bc 8000
conform-action set-dscp-transmit cs3
exceed-action drop
class MULTIMEDIA-CONFERENCING
police 5m bc 8000
conform-action set-dscp-transmit af41
exceed-action set-dscp-transmit af42
class TRANSACTIONAL-DATA
police 10m bc 8000
conform-action set-dscp-transmit af21
exceed-action set-dscp-transmit af22
class BULK-DATA
police 10m bc 8000
conform-action set-dscp-transmit af11
exceed-action set-dscp-transmit af12
class SCAVENGER
police 10m bc 8000
conform-action set-dscp-transmit cs1
exceed-action drop
class class-default
police 10m bc 8000
conform-action set-dscp-transmit default
exceed-action set-dscp-transmit cs1
interface GigabitEthernet 3/1
service-policy input MARKING&POLICING
Marking/remarking is configured as part of the policing action
(i.e. no table-map or markdown-map is referenced)
Catalyst 4500
Per-Port/Per-VLAN QoS Policy Example
interface range GigabitEthernet 2/1-48
qos trust device cisco-phone
vlan 10
service-policy input DVLAN-POLICERS
vlan 110
service-policy input VVLAN-POLICERS
Catalyst 4500
1P7Q1T+Dynamic Buffer Limiting (DBL) Egress Queuing Model
1P7Q1T (+DBL)
Application
DSCP
Network Control
(CS7)
EF
Internetwork Control
CS6
CS5
VoIP
EF
Broadcast Video
CS5
Multimedia Conferencing
AF4
Realtime Interactive
CS4
Multimedia Streaming
AF3
Signaling
CS3
Transactional Data
AF2
Network Management
CS2
PQ
CS4
CS7 & CS6
Q7
(BWR
10%)
CS3 & CS2
AF4
Q6
(BWR 10%)
AF3
Q5
(BWR 10%)
AF2
Q4
(BWR 10%)
AF1
Q3
(BWR 4%)
Bulk Data
AF1
Scavenger
CS1
CS1
Q2 (BWR 1%)
Best Effort
DF
DF
Q1 (25%)
BWR =
Bandwidth
Remaining
Catalyst 4500
1P7Q1T+DBL Egress Queuing Config
class-map match-all PRIORITY-QUEUE
Enables the PQ
match dscp cs4 cs5 ef
class-map match-all CONTROL-MGMT-QUEUE
match dscp cs7 cs6 cs3 cs2
class-map match-all MULTIMEDIA-CONFERENCING-QUEUE
match dscp af41 af42 af43
class-map match-all MULTIMEDIA-STREAMING-QUEUE
match dscp af31 af32 af33
class-map match-all TRANSACTIONAL-DATA-QUEUE
match dscp af21 af22 af23
class-map match-all BULK-DATA-QUEUE
match dscp af11 af12 af13
class-map match-all SCAVENGER-QUEUE
match dscp cs1
DBL can be enabled on a per-class basis, but
DBL can be enabled on a per-class basis,
should not be enabled on the PQ or Control
but should not be enabled on the PQ or Control traffic queues
traffic queues.
Enabling DBL on UDP-based queues and/or Scavenger queue
Enabling DBL on UDP-based queues and/or
is optional
Scavenger queue is optional
If PQ is enabled then
bandwidth remaining
must be used
policy-map 1P7Q1T
class PRIORITY-QUEUE
priority
class CONTROL-MGMT-QUEUE
bandwidth remaining percent 10
class MULTIMEDIA-CONFERENCING-QUEUE
bandwidth remaining percent 10
class MULTIMEDIA-STREAMING-QUEUE
bandwidth remaining percent 10
class TRANSACTIONAL-DATA-QUEUE
bandwidth remaining percent 10
dbl
class BULK-DATA-QUEUE
bandwidth remaining percent 4
dbl
class SCAVENGER-QUEUE
bandwidth remaining percent 1
class class-default
bandwidth remaining percent 25
dbl
service-policy output 1P7Q1T
Catalyst 4500
EtherChannel QoS Design
Ingress QoS policies are configured on the logical Port-Channel interface
Typically these are simply to enable DSCP trust
(which requires no explicit configuration)
Egress QoS policies are configured on the physical port-member interfaces
Platform
Catalyst 4500
Ingress
Egress
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat4500aag.html
Agenda
Catalyst 6500/6800
Core Switches
Trust DSCP
+ Ingress Queuing
+ Egress Queuing
Application-Class
DSCP
Network Control
(CS7)
EF
Internetwork Control
CS6
CS5
VoIP
EF
Broadcast Video
CS5
Multimedia Conferencing
AF4
Realtime-Queue
(10% BW/Priority)
CS4
CS7 & CS6
CS3 & CS2
Control Queue
(10% BW/BWR)
Realtime Interactive
CS4
Multimedia Streaming
AF3
Signaling
CS3
Transactional Data
AF2
Network Management
CS2
Bulk Data
AF1
Multimedia-Conferencing Queue
(10% BW/BWR
+ DSCP-WRED)
Multimedia-Streaming Queue
AF3
(10% BW/BWR
+ DSCP-based WRED)
Transactional Data
AF2
(10% BW/BWR
+ DSCP-based WRED)
Bulk Data
(4% BW/BWR
AF1
+DSCP-based WRED)
Scavenger
CS1
CS1
Best Effort
DF
DF
AF4
Refer to the
6500/6800 QoS
Configuration Guide
to ensure that you
use the proper
queuing module for a
given line card.
BWR =
Bandwidth
Remaining
Default Queue
(25% BW/BWR
+ WRED)
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst6500/ios/15-1SY/config_guide/sup2T/15_1_sy_swcg_2T/qos_policy_based_queueing.html
[continued]
class TRANSACTIONAL-DATA-QUEUE
bandwidth remaining percent 10
random-detect dscp-based
random-detect dscp af21 percent 80 100
random-detect dscp af22 percent 70 100
random-detect dscp af23 percent 60 100
class BULK-DATA-QUEUE
bandwidth remaining percent 4
random-detect dscp-based
random-detect dscp af11 percent 80 100
random-detect dscp af12 percent 70 100
random-detect dscp af13 percent 60 100
class SCAVENGER-QUEUE
bandwidth remaining percent 1
class class-default
random-detect dscp-based
random-detect dscp default percent 80 100
service-policy type lan-queuing output EGRESS-1P7Q4T
Catalyst 6500/6800
Ingress
Egress
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/qoscampuscat6500sup2taag.html
Agenda
Trust DSCP
+ Ingress Queuing
+ Egress Queuing
DSCP
CoS
Network Control
(CS7)
CoS 7
Internetwork Control
CS6
CoS 6
VoIP
EF
Broadcast Video
CS5
Multimedia Conferencing
AF4
4Q1T
CoS 5
8e-4q8q-in-q1
Bandwidth 30%
Queue-Limit 10 %
CoS 4
CoS 0
8e-4q8q-in-q-default
Bandwidth 25%
Queue-Limit 30%
CoS 3
CoS 7
CoS 5
Realtime Interactive
CS4
Multimedia Streaming
AF3
Signaling
CS3
Transactional Data
AF2
Network Management
CS2
Bulk Data
AF1
CoS 6
CoS 2
CoS 4
CoS 3
8e-4q8q-in-q3
Bandwidth 40%
Queue-Limit 30%
CoS 2
CoS 1
Scavenger
CS1
CoS 1
Best Effort
DF
DF
8e-4q8q-in-q4
Bandwidth 5%
Queue-Limit 30%
DSCP
Network Control
(CS7)
Internetwork Control
CS6
VoIP
EF
Broadcast Video
CS5
Multimedia Conferencing
AF4
4Q1T
EF
CS5
CS4
DF
Realtime Interactive
CS4
Multimedia Streaming
AF3
Signaling
CS3
Transactional Data
AF2
Network Management
CS2
Bulk Data
AF1
CS7
CS6
AF4
AF3
CS3
AF2
CS2
Scavenger
CS1
AF1
Best Effort
DF
CS1
8e-4q8q-in-q1
Bandwidth 30%
Queue-Limit 10%
8e-4q8q-in-q-default
Bandwidth 25%
Queue-Limit 30%
8e-4q8q-in-q3
Bandwidth 40%
Queue-Limit 30%
8e-4q8q-in-q4
Bandwidth 5%
Queue-Limit 30%
8e-4q8q-in-q1
NX-OS has (non-configurable) system-defined names
for queuing class-maps
8e-4q8q-in-q3
8e-4q8q-in-q-default
DSCP
CoS
Network Control
(CS7)
CoS 7
Internetwork Control
CS6
CoS 6
VoIP
EF
CoS 5
8e-4q8q-out-q1
PQ-Shaped to 30%
CoS 7
8e-4q8q-out-q2
BWR 5%
CoS 6
8e-4q8q-out-q3
BWR 5%
CoS 4
8e-4q8q-out-q4
BWR 20%
CoS 3
8e-4q8q-out-q5
BWR 20%
CoS 2
CoS 2
8e-4q8q-out-q6
BWR 15%
CoS 1
CoS 1
8e-4q8q-out-q7
BWR 10%
DF
CoS 0
8e-4q8q-out-q-default
BWR 25%
CoS 5
Broadcast Video
CS5
Multimedia Conferencing
AF4
Realtime Interactive
CS4
1P7Q1T
CoS 4
Multimedia Streaming
AF3
Signaling
CS3
Transactional Data
AF2
CoS 3
Network Management
CS2
Bulk Data
AF1
Scavenger
CS1
Best Effort
DF
Agenda
No priority servicing
No bandwidth guarantees
LAN QoS
WLAN QoS
Original Metric
Improved Metric
Percentage
Improvement
Voice
15 ms max jitter
5 ms max jitter
300%
3.92 MOS
(Cellular Quality)
4.2 MOS
(Toll Quality)
9 fps
14 fps
Visual MOS:
Good
Visual MOS:
Excellent
14 ms latency
2 ms latency
Video
Transactional Data
55%
700%
http://www.cisco.com/en/US/prod/collateral/wireless/cisco_avc_application_improvement.pdf
IEEE 802.11e
DSCP UP Mapping
Trust Boundaries
Policy-Enforcement Points
802.11e
Access Category
WMM
Designation
AC_VO
Voice
Platinum
AC_VI
Video
Gold
AC_BE
Best Effort
Silver
AC_BK
Background
Bronze
6
5
4
3
0
2
1
due to the nature of wireless as a shared media, a Congestion Avoidance algorithm (CSMA/CA) must be utilized
wireless senders have to wait a fixed amount of time (the AIFS)
wireless senders also have to wait a random amount of time (the Contention Window)
AIFS and Contention Window timers vary by Access Category
Access
Category
AIFS
(Slot Times)
CWmin
(Slot Times)
3
CWmax
(Slot Times)
7
Voice
Access Category
Voice
Video
Video
15
Best Effort
Best-Effort
15
1023
Background
Background
15
1023
DSCP
Downstream
DSCP
Payload
Payload
802.1p
DSCP
Payload
4
AP
CAPWAP Tunnels
802.1Q Trunk
AP
WLC
AP
Upstream
DSCP
UP
2
Payload
DSCP
DSCP
Payload
DSCP
802.1p
DSCP
802.11e UP
56-63
48-55
Platinum
(Voice)
40-47 46
32-39
24-31
0-7
16-23
8-15
Gold
(Video)
Silver
(Best Effort)
Bronze
(Background)
DSCP
UP 7
Voice
Signaling
EF
UP 6
CS3
UP 5
UP 4
UP 3
Transactional Data
Best Effort
AF2
UP 0
DF
UP 2
UP 1
Voice
Access
Category
Video
Access
Category
Best Effort
Access
Category
Background
Access
Category
Agenda
CT5760 WLC
Trust Boundary
PEP
In either model:
Trust Boundary
PEP
Catalyst
3650/3850
Or 4500-Sup8
2.
3.
4.
policy-map AVC-MARKING
class VOICE
set dscp ef
class BROADCAST-VIDEO
set dscp cs5
class REAL-TIME-INTERACTIVE
set dscp cs4
class CALL-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
Note: Multiple application protocols can be
identified using attributes, including:
category
sub-category
application-group
Client VQ
SSID VQ
Policer
Voice Queue
Policer
Video Queue
Radio VQ
Min or Max BW
Allocation
Strict
Priority
Weighted
Scheduling
Data Queue
Default Shaper
Radio Agg
Default Shaper
AFD BLOCK
Policer
Multicast Queue
DSCP
Voice
EF
Interactive Video
AF4
Network Control
CS6
Signaling
CS3
Bulk Data
AF1
Q0
Priority Level 1
(Limited to 10% of BW)
AF4
Q1
Priority Level 2
(Limited to 20% of BW)
AF1
AF2
CS1
Transactional Data
Q2
UnicastNon-Realtime Queue
(63% BWR)
AF2
DF
Scavenger
CS1
Best Effort
DF
Q3
Multicast Non-Realtime Queue
(7% BWR)
policy-map port_child_policy
class non-client-nrt-class
System-defined (but configurable) queuing policy
bandwidth remaining ratio 7
class REALTIME-1
priority level 1
System defined queue for multicast wireless traffic
police rate percent 10 conform-action transmit exceed-action drop
class REALTIME-2
Two-levels
Two-levels of
of priority
priority queuing
queuing are
are supported
supported
priority level 2
police rate percent 20 conform-action transmit exceed-action drop
class class-default
bandwidth remaining ratio 63
Default unicast queue (non-priority queue)
802.11e UP
48-63
40-47
32-39
24-31
16-23
0-7
8-15
Video
Best Effort
Background
IOS XE WLC
Default DSCP-to-UP Mapping Example
4-Class Enterprise Model
Based on IETF 4594
DSCP
UP 7
Voice
Signaling
EF
UP 6
CS3
UP 5
UP 4
UP 3
Transactional Data
Best Effort
AF2
UP 0
DF
UP 2
UP 1
Voice
Access
Category
Video
Access
Category
Best Effort
Access
Category
Background
Access
Category
IOS XE WLC
Customized DSCP-to-UP Mapping Example
4-Class Enterprise Model
Based on IETF 4594
DSCP
UP 7
Voice
Signaling
EF
UP 6
CS3
UP 5
UP 4
UP 3
Transactional Data
Best Effort
AF2
UP 0
DF
UP 2
UP 1
Voice
Access
Category
Video
Access
Category
Best Effort
Access
Category
Background
Access
Category
Agenda
AireOS WLC
Trust Boundary
PEP
2.
3.
Apply the QoS and AVC Profile to the WLAN and Enable Application Visibility
AireOS WLC
Tuning QoS Profiles
AireOS WLC
Creating AVC Profiles
AireOS WLC
Attaching QoS and AVC Profiles and Enabling AVC
Select the desired QoS and AVC Profiles to apply to the WLAN
DSCP/PHB
802.11e UP
Internetwork Control
48 / CS6
Voice
46 / EF
Platinum
(Voice)
Multimedia Conferencing
34 / AF41
Multimedia Streaming
26 / AF31
Transactional Data
18 / AF21
Best Effort
0 / DF
Bulk Data
10 / AF11
Gold
(Video)
Silver
(Best Effort)
Bronze
(Background)
http://www.cisco.com/c/en/us/td/docs/wireless/controller/8-1/configuration-guide/b_cg81/b_cg81_chapter_01010111.html
DSCP
UP 7
Voice
Signaling
EF
UP 6
CS3
UP 5
UP 4
UP 3
Transactional Data
Best Effort
AF2
UP 0
DF
UP 2
UP 1
Voice
Access
Category
Video
Access
Category
Best Effort
Access
Category
Background
Access
Category
DSCP
UP 7
Voice
Signaling
EF
UP 6
CS3
UP 5
UP 4
UP 3
Transactional Data
Best Effort
AF2
UP 0
DF
UP 2
UP 1
Voice
Access
Category
Video
Access
Category
Best Effort
Access
Category
Background
Access
Category
AireOS WLC
Trust Boundary
PEP
Agenda
Looking Forward
EM
Wireless AP
Trust Boundary
PEP
4Q (WMM)
ASR/ISRs
MQC
Catalyst 4500
1P7Q1T
Catalyst 3650
Trust Boundary
PEP
2P6Q3T
EasyQoS App
Nexus 7700
F3: 1P7Q1T
Catalyst 6500
1P3Q4T
1P7Q4T
2P6Q4T
IWAN App
WLC
PEP
Wireless AP
Trust Boundary
PEP
4Q (WMM)
Catalyst 2960-X
Trust Boundary
PEP
1P3Q3T
EasyQoS App
Key Takeaways
Cisco provides many At-A-Glance guides to get you up and running quickly
Cisco also provides Cisco Validated Design guides for more detail
Recommended Reading
ISBN: 1-58714-369-0
Ken Briley
http://www.ciscopress.com/store/end-to-end-qos-network-design-quality-of-service-for-9781587143694
Promote your favorite speaker through Twitter and you could win $200 of Cisco
Press products (@CiscoPress)
You can submit an entry for more than one of your favorite speakers
Table Topics
Related sessions
Thank you