BRKDCN 3346
BRKDCN 3346
BRKDCN 3346
End-to-End QoS
Implementation and
Operation with Nexus
Nemanja Kamenica
Technical Marketing Engineer
BRKDCN-3346
#CLUS
Session Objectives
• Provide a refresh of QoS Basics
• Understand the basic switch
architecture for the Nexus switch
family
• Provide a detailed understanding of
QoS on Nexus platforms
• Learn how to configure QOS on Nexus
devices through real-world
configuration examples
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Session Non-Objectives
• Data Centre QoS Methodology
• Nexus hardware architecture deep-dive
• Application Centric Infrastructure (ACI) QOS
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Cisco Webex Teams
Questions?
Use Cisco Webex Teams to chat
with the speaker after the session
How
1 Find this session in the Cisco Live Mobile App
2 Click “Join the Discussion”
3 Install Webex Teams or go directly to the team space
4 Enter messages/questions in the team space
#CLUS © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Agenda
• Introduction
• QoS Basics
• QoS Implementation on Nexus
• Nexus 9000 QoS
• Nexus 7000/7700 QoS
• Nexus 5600 QoS
• Nexus 3000 QoS
• Nexus 2000 QoS
• Real World Configuration Examples
• Conclusion
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Congestion Happens Everyday!
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Why QoS in the Data Centre?
Assign Manage Maximise
Colour to Traffic Congestion Throughput
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
Can Traffic Control help …
… or confuse
… or hurt
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Agenda
• Introduction
• QoS Basics
• QoS Implementation on Nexus
• Nexus 9000 QoS
• Nexus 7000/7700 QoS
• Nexus 5600 QoS
• Nexus 3000 QoS
• Nexus 2000 QoS
• Real World Configuration Examples
• Conclusion
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
The QoS Toolset 25nd Anniversary
Queuing and
Classification Policing Marking Shaping
Scheduling
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Classification and Marking – Two sides of a coin
• Identify traffic lync
mgmt p2p
Video
• DSCP Unclassified: VoIP
HTTP
email
App1
• IP PREC
Uncontrolled Bandwidth
vmotion
backup
• CoS
• ACLs
• Re-map Traffic
VoIP/Lync
• Like to Like (i.e. CoS to CoS)
Classified: Email/HTTP
• Like to Unlike (i.e. DSCP to COS)
Controlled Bandwidth SAP
• Needs mapping tables
Backup
• Also called Mutation
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Policing – Limit Misbehaving Traffic
• Single rate Two Color Policer Tokens
Excess Traffic
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Congestion Management Tools
• Buffering
• Storing packets in memory
• Queuing
• Buffering packets according to traffic class
• Scheduling
• Order of transmission of buffered packets
• Shaping
• Smooth burst traffic
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
Buffering – Why do we need it?
• Many to One Conversations
• Client to Server
• Server to Storage
• Aggregation Points
• Speed Mismatch
• Client to WAN to Server
10 GE 10 GE 1 GE
1 GE
1 GE
1 GE
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
4 Class Queuing Model
• Matches most Service-Provider Class CoS Queues
offerings
Priority 5-7 PQ
• Ready for No-Drop traffic like FCoE
No-Drop 3 Q2
• One Class left to place traffic above
Better or
or below Best-Effort traffic priority
Worse then 1,2,4 Q1
• Special Application which is drop Best-Effort
sensitive (above Best-Effort -
Best-Effort 0 Default-Q
Critical)
• Non-Critical Bandwidth intensive
application (below Best-Effort -
Scavenger)
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
8 Class Queuing Model
• Matches often a Campus QoS concept
Class DSCP Queues
• DSCP to CoS derivation does NOT Priority CS6 (CS7)
apply anymore PQ
• (Topmost 3-Bit mapping from DSCP Platinum EF
to CoS) Gold AF41 Q7
• No-Drop still with CoS3 (DSCP 24-30 Silver CS4 Q6
are “unusable”) No-Drop CoS3 Q5
• Valid but most complex Classification Bronze AF21 Q4
to Marking implementation as per Management CS2 Q3
regards to No-Drop
Scavenger AF11 Q2
Bulk Data CS1 Q1
Best-Effort 0 Default-Q
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
Head of Line Blocking
What is the Problem?
Crossbar
Ingress Module Fabric Egress Module
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Virtual Output Queues
Avoid Head of Line Blocking
Ingress
VOQ
Crossbar
Ingress Module Fabric Egress Module
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
Virtual Output Queues
Avoid Head of Line Blocking
Ingress
VOQ
Crossbar
Ingress Module Fabric Egress Module
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
Buffering on Nexus Models compared
VOQ
Output Queue Buffer
Virtual Output Queue
Input buffer for every egress port Shared buffer for N egress ports
NxN buffer size N buffer size
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Scheduling – Who goes first?
• Defines Order of transmission
• The Priority-Queue always
serviced first
• Normal Queues serviced only
after Priority Queue empty
• Different Scheduling algorithms
for normal queues
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Common Scheduling Algorithms
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
Congestion Avoidance Tools
• Tail Drop (TD)
• Drop packets at tail of the queue
• Single threshold per queue
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
Putting it all together! COS Queue
1 2 5, 6, 7 PQ1
Packet is placed in the Egress Priority Queue
Queue according to CoS/DSCP always served first 3, 4 Q3
value.
2 Q2
Egress Port
Normal Queue 0, 1 Q-
4
Default
Normal Queues have
Drop Threshold 4 Threshold and drop
PQ1 packet accordingly
Drop Threshold 3
Drop Threshold 2
Q2
Scheduler
Drop Threshold 1
3
DWRR
DSCP [24]
data L3
Normal Queues
L2
CoS [3] Q3 served after PQ is
empty according to
Scheduler
Q-Default
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Agenda
• Introduction
• QoS Basics
• QoS Implementation on Nexus
• Nexus 9000 QoS
• Nexus 7000/7700 QoS
• Nexus 5600 QoS
• Nexus 3000 QoS
• Nexus 2000 QoS
• Real World Configuration Examples
• Conclusion
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
QoS
Implementation on
Nexus
Nexus uses Modular QOS CLI (MQC)
3 Block Construct
Class-Map
Network-QoS Network-QoS
• CoS Network-QoS
• Congestion-Control
• Protocol (FCoE) • System-qos
• Pause / MTU per VL
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Network-QoS Policy
• Define global queuing and scheduling parameters for all interfaces in switch
• Identify drop/no-drop classes, MTU and WRED/TD, etc.
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
System based Policy attachment
• System based QoS Policy gets
globally applied to all interfaces Routed Port
and VLAN Access Port
VLAN
• System based QoS Policy is 802.1q Trunk
QoS
configured in System QoS Routed Port Polcies
VLAN
Access Port
802.1q Trunk
Service Policy
applied to the
VLAN Database
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
VLAN based QoS Policy attachment
• VLAN based QoS Policy is Routed Port
802.1q Trunk
Service Policy
applied to the
VLAN Database
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Interface based QoS Policy attachment
• Interface based QoS Policy Service Policy
policy
Routed Port
ports! channel
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Interface based Queuing Policy attachment
• Interface based QoS Policy Service Policy
policy
Routed Port
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
New QoS Capabilities
• Priority Flow Control
(802.1Qbb)
• Enables Lossless Ethernet using
per traffic class pause
• During congestion, no-drop
priority is paused
• No effect on other priority values
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
DC QoS Capabilities
• DCBXP (802.1Qaz)
• LLDP with new TLV Values
• Negotiates capabilities (like PFC) with
other devices
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Data Centre Converged Infrastructure
• Simplification of the
infrastructure by using Ethernet
for data and storage traffic
• FCoE
• Replaces Fibre Channel stack
with Ethernet
• RoCE
• RoCE extends RDMA capabilities
over Ethernet
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
RoCE vs RoCEv2 (non-drop) FC/FCoE
• Requirement for FCoE and
RoCEv1: FCoE RoCE v1 RoCE v2
• ECN (optional)
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
To Trust or Not To Trust?
• Data Centre architecture
provides a new set of trust
boundaries
• Virtual Switch extends the trust
boundary into the Hypervisor
• Nexus Switches always trust
CoS and DSCP
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Overlay QOS
Overlay QoS
MPLS network EXP COS DSCP IP pres
• Mapping between IP priorities to EXP
on PE router 0 0 0 0
1 1 8 1
• Classification is done biased on COS,
DSCP, IP precedence or ACL 2 2 16 2
7 7 56 7
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Overlay QOS
MPLS – Default Mode
EXP 3 EXP 3
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Overlay QOS
MPLS – Uniform Mode
EXP 3 EXP 2
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
Overlay QOS
MPLS – Pipe Mode
EXP 3 EXP 5
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Overlay QoS
VXLAN EVPN – VXLAN Encapsulation
• Ingress L3 packet, original priority is mapped to outer header priority
• Ingress L2 frame, COS value will be mapped to outer priority
• VLAN header is not preserved in VXLAN tunnel COS DSCP
0 0
Original L3 Packet Original L2 Frame 1 8
COS 3 DSCP 26 COS 3 N/A 2 16
3 26
DSCP 26 DSCP 26 DSCP 26 N/A 4 32
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Overlay QoS
VXLAN EVPN – VXLAN Decapsulation Uniform Mode
DSCP 26 DSCP 26
• DSCP value is derived based on a
priority mode for L3 traffic:
• Uniform mode: delivers overlay priority
copying outer header to decapsulated COS 0 DSCP 26
frame
• Pipe mode: extends original priority Pipe Mode
copying inner header to decapsulated DSCP 26 DSCP 26
frame
• Marking can be configure on the egress
VTEP mark decapsulated traffic with
COS 0 DSCP 26
priority (COS, DSCP)
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
Overlay QoS
VXLAN – Uniform Mode
Spine Spine
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Overlay QoS
VXLAN – Pipe Mode
Spine Spine
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
Agenda
• Introduction
• QoS Basics
• QoS Implementation on Nexus
• Nexus 9000 QoS
• Nexus 7000/7700 QoS
• Nexus 5600 QoS
• Nexus 3000 QoS
• Nexus 2000 QoS
• Real World Configuration Examples
• Conclusion
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
Nexus 9000 QoS
Nexus 9000 Overview
• Modular and Fixed chassis
• Optimized for high density 10G/25G/40G/100G
• Standalone and ACI Mode
• Built with Cisco Silicon
• Advanced QoS capabilities
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Nexus 9000 - Cloud Scale
Slice 0
LSE 900G
• 1.8T chip – 2 slices of 9 x 100G each Slice Interconnect
• X9700-EX modular linecards; 9300-EX TORs Slice 1 Slice 0
900G 1.8T
LS1800FX
• 1.8T chip – 1 slice of 18 x 100G with MACSEC LSE – 18 x 100G
• X9700-FX modular linecards; 9300-FX TORs
LS1800FX – 18 x 100G
S6400
Slice 0 Slice 1
• 6.4T chip – 4 slices of 16 x 100G each 1.6T 1.6T
Slice 0
• E2-series fabric modules; 9364C TOR
1.8T
Slice Interconnect
LS3600FX2 Slice Interconnect
• 3.6T chip – 2 slices of 18 x 100G with MACSEC + Slice 2 Slice 3
CloudSec 1.6T 1.6T Slice 1
1.8T
• 9300-FX2 TORs
S6400 – 64 x 100G
LS3600FX2 – 36 x 100G
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
What Is a “Slice”?
Slice
Ingress Slice 1 Interconnect
• Self-contained forwarding
Egress Slice 1
complex controlling subset of
ports on single ASIC
• Separated into Ingress and Ingress Slice 2
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
Cisco Nexus 9000 QoS Features
• Traffic classification
• DSCP, CoS, IP Precedence and ACL
• Packet marking
• DSCP, CoS, and ECN
• Strict Priority Queuing and DWRR
• Ingress and egress policing
• Tail Drop and WRED with ECN
• Shared buffer capability
• Egress Queuing
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
Buffering
• Cloud Scale platforms implement shared-memory egress buffered architecture
• Each ASIC slice has dedicated buffer – only ports on that slice can use that buffer
• Dynamic Buffer Protection adjusts max thresholds based on class and buffer occupancy
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Queuing and Scheduling
50/50 DWRR
UC0 MC0 UC1 MC1 UC2 MC2 UC3 MC3 UC4 MC4 UC5 MC5 UC6 MC6 UC7 MC7
CPU Class 0 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 SPAN
• QOS-group drives class; egress queuing policy defines class priority and weights
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Intelligent Buffering
Innovative Buffer Management for Cloud Scale switches
• Dynamic Buffer Protection (DBP) – Controls buffer allocation for
congested queues in shared-memory architecture
• Approximate Fair Drop (AFD) – Maintains buffer headroom per
queue to maximize burst absorption
• Dynamic Packet Prioritization (DPP) – Prioritizes short-lived flows to
expedite flow setup and completion
α
queue Alpha (α) value (weight)
• Alpha controls how aggressively DBP maintains free buffer pages during
congestion events
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
Alpha Parameter Examples Default Alpha on
Cloud Scale switches
30 30 free buffer 30
Buffer per queue ==
½ free buffer Buffer per queue ==
Buffer in MB
Buffer in MB
Buffer in MB
25 25 25
14 x free buffer
20 20 20
15 15 15
10 10 10
5 5 5
0 0 0
1 2 4 8 16 32 64 1 2 4 8 16 32 64 1 2 4 8 16 32 64
Number of Congested Queues Number of Congested Queues Number of Congested Queues
Buffer per queue (MB) Free buffer (MB) Buffer per queue (MB) Free buffer (MB) Buffer per queue (MB) Free buffer (MB)
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Buffering – Ideal versus Reality
Ideal buffer state Actual buffer state
Buffer available for burst absorption
Y
Buffer
Non-elephants – no AFD
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Dynamic Packet Prioritization (DPP)
• Prioritize initial packets of new / short-lived flows
• Up to first 1023 packets of each flow assigned to higher-priority qos-
group
<= 1023 packets
Identify unique flows
Drive new, higher
priority
Maintain original
priority
set cos
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Putting it all together
Create class-map
Attach policy-map class-map type qos class_foo
type qos and match cos 3-4
match on queuing to
cos/dscp/acls interface policy-map type qos pm1
class type qos class_foo
set qos-group 1
police cir 20 mbytes conform transmit violate drop
class type qos class-default
set qos-group 0
Create policy-map
Create policy-map
type qos and set interface ethernet 1/1
type queuing and service-policy type qos input pm1
qos-group and/or
create actions
add policing rule
class-map type queuing class-foo
match qos-group 1
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Nexus 9000 QoS Golden Rules
• QoS is enabled by default and cannot
be disabled
• CoS and DSCP are TRUSTED by default
• Use QoS-Groups to tie policies together
• Queuing and QoS policies are applied to a
physical interface or at system level
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
Agenda
• Introduction
• QoS Basics
• QoS Implementation on Nexus
• Nexus 9000 QoS
• Nexus 7000/7700 QoS
• Nexus 5600 QoS
• Nexus 3000 QoS
• Nexus 2000 QoS
• Real World Configuration Examples
• Conclusion
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
M1 M2 LC
1G / 10G 10G / 40G / 100G
M3 delivers best of M-
and F-series capabilities
M-Series Modules
L2/L3/L4 with large forwarding tables and rich feature set
M3
F1 F2/F2E
10G
10G
F3
10G / 40G / 100G
F4 increases
F-Series Modules
High performance, low latency with streamlined feature set
F3 closes the
F/M feature gap!
F3
100G port density
F4
F2E 100G
10G
10G / 40G / 100G
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
F3/M3/F4 – Ingress Buffered
Central Arbiter
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
F3/M3 I/O Module Buffering Capacity
Ingress
Module Total VOQ Buffer Ingress Queue Structure Ingress VOQ Buffer
Per Module
Egress
Module Egress VOQ Structure Egress VOQ Buffer (Credited) Egress VOQ Buffer (Uncredited)
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Ingress Queuing – Template View
8e Template 8e-4q4q Template 7e Template 6e Template 4e Template
CoS 5-7
CoS 5-7 CoS 5-7 CoS 5-7 CoS 5-7 (Q1)
(Q1) (Q1) (Q1) (Q1)
CoS 0
(Q-Default)
CoS 3-4 CoS 2,4 CoS 0-2
(Q3) (Q3) (Q-Default)
CoS 4
(Q3)
CoS 0-4 CoS 2 CoS 0,1 CoS 4
(Q-Default) (Q4) (Q-Default) (Q3)
Legend:
CoS 1-3 Drop Queue
CoS 0-1 CoS 3 CoS 3 (Q4)
(Q-Default) (Q4) (Q4) No-Drop Queue
Pause Active
PQ1 Q2 Q3 Q-Def. PQ1 Q2 Q3 Q-Def. Q2 PQ1 Q3 Q-Def. PQ2. PQ3 PQ1 Q-Def. PQ1 Q-Def. PQ2 Q3
(5,6,7) (3,4) (2) (0,1) (5,6,7) (3,4) (2) (0,1) (3) (5,6,7) (2,4) (0,1) (4) (3) (5,6,7) (0-2) (5,6,7) (0) (4) (1,2,3)
PQ1 (H)
Q2
PQ2 (L)
PQ2 (H)
Egress Port
Egress Port
Egress Port
Egress Port
Egress Port
PQ3 (L)
PQ1
PQ1
PQ1
PQ1
Q-Def
Q-Def
Q-Def
Q-Def
Q-Def
Q3
Q2
Q3
Q2
Q3
Q3
33% 33% 33% 33% 33% 33% 50% 50% 100% 100% 100%
N7k# show system internal ipqos global- N7k# show system internal ipqos global-
defaults | grep -a 12 cos-dscp-map defaults | grep -a 12 dscp-cos-map
table-map: cos-dscp-map (len: 12) table-map: dscp-cos-map (len: 12)
default copy default copy
Bit array: Bit array:
Values set: Values set:
0 8 16 24 32 40 48 56 0 0 0 0 0 0 0 0
-- -- -- -- -- -- -- -- 1 1 1 1 1 1 1 1
-- -- -- -- -- -- -- -- DSCP 24-31 2 2 2 2 2 2 2 2
CoS 2 -- -- -- -- -- -- -- -- mapped to 3 3 3 3 3 3 3 3
--
mapped to -- -- -- -- -- -- -- CoS 3 4 4 4 4 4 4 4 4
--
DSCP 16-23 -- -- -- -- -- -- -- 5 5 5 5 5 5 5 5
-- -- -- -- -- -- -- -- 6 6 6 6 6 6 6 6
-- -- -- -- -- -- -- -- 7 7 7 7 7 7 7 7
Note: Output taken from Nexus 7000
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
CoS or DSCP to Queue Mapping
• Default CoS to Queue Mapping for Nexus 7000/7700 (F- and M-
Series I/O Module)
• Ingress: CoS to Queue
• Egress: CoS to Queue
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
Changing the Default Trust
routed/bridged
CoS
CoS
L3 L3
data q-1 data
L2
CoS [2] L2
CoS [0]
q-default
Set CoS 0
DSCP
DSCP[24]
[0]
(will only set CoS to 0) data L3
L3
L2
CoS [0] Note: CoS is used for egress
queue selection, even if the
egress interface does NOT
Set DSCP 0 carry CoS in the frame
(will set DSCP + CoS to 0)
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Default Rules Summary
Routed Traffic Bridged Traffic
• If CoS and DSCP is present • If CoS and DSCP is present
• CoS is used for ingress queue selection • CoS is used for ingress queue selection
• DSCP is preserved and rewrites CoS (top • CoS is preserved
most 3bit) • DSCP is unmodified
• CoS is used for egress queue selection • CoS is used for egress queue selection
• If only DSCP is present • If only DSCP is present
• No CoS gets treated as CoS 0 on ingress • No CoS gets treated as CoS 0 on ingress
• DSCP is preserved and rewrites CoS (top • CoS 0 is used for ingress and egress
most 3bit) queue selection
• CoS (derived from DSCP) drives egress • DSCP is unmodified
queue selection
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Nexus 7000 QoS Golden Rules
• QoS is enabled by default and cannot
be disabled
• CoS and DSCP are TRUSTED by default
• Default Queuing and QoS policies are applied
to all physical interfaces across all VDCs
• For bridged traffic, CoS is preserved, DSCP
is unmodified
• For routed traffic, DSCP is copied to CoS
(first 3 bits)
• Ex: DSCP 40 (b101000) becomes CoS 5 (b101)
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 77
Agenda
• Introduction
• QoS Basics
• QoS Implementation on Nexus
• Nexus 9000 QoS
• Nexus 7000/7700 QoS
• Nexus 5600 QoS
• Nexus 3000 QoS
• Nexus 2000 QoS
• Real World Configuration Examples
• Conclusion
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Nexus 5000 Series Overview
10G\40G Scalability Density
(Large Buffers
Nexus 5600 and Tables) Programmability
High 10G Density Network Visibility
CISCO INNOVATION
Fabric Innovations
CUSTOMER VALUE
40G Flexibility
100G Uplinks
Unified Ports VXLAN
Buffers/Tables
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
Key Concepts – Common Points
Nexus 7000 compared to Nexus 5000 QoS
• Nexus 5000/6000 and Nexus 7000 F-
Series I/O Modules share the Ingress Buffer
Model
• Ingress buffering and queuing occur at VOQ
of each ingress port
• Egress scheduling enforced by egress port
• No Egress QOS Policies
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Cisco Nexus 5600 QoS Features
• Traffic classification
• DSCP, CoS, IP Precedence and ACL
• Packet marking
• DSCP, CoS, and ECN
• Strict Priority Queuing and DWRR
• Priority Flow Control
• DCBX 802.1Qaz
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
Cisco Nexus 5672UP Internal Architecture
Fabric
Supervisor
Slot 1 Slot 2
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
Packet Buffering
• 25MB packet buffer is shared by every three 40 GE ports or twelve 10 GE ports.
• Buffer is 16MB at ingress and 9MB at egress.
• Unicast packet can be buffered at both ingress and egress.
• Multicast Buffered at egress only
Ingress
Unicast VOQ
Egress UPC
UPC
9MB
16MB 224
448
Gbps Unified Gbps
Crossbar
Multicast VOQ
Fabric
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Flexible Buffer Management
Ingress Buffer
• Shared buffer is good for burst UPC Ingress Buffer (16MB)
absorption.
• Dedicated buffer is good for SPAN Control
predictable performance for each
port.
• On by default, no configuration Shared Packet Buffer
needed
Port 1 Port 2 Port 3
• Long-distance FCoE, video Dedicated Dedicated Dedicated
editing (i.e., AVID), Big Data, and
distributed storage
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
Default Ingress Buffer Allocation
• Each cell is 320 bytes.
• Total number of cells for ingress buffer is 48,840.
Buffer Pool 10 GE Port 40 GE Port
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Tune Buffer Allocation at Ingress
• “queue-limit” under “network-qos” policy specifies the dedicated buffer for each port and each
class. The dedicated buffer can be used by the port for only that class of service.
• Without “queue-limit” each class of service will get 100 KB of dedicated buffer.
• The size of dedicated buffer can be different for different classes of service. The policy applies
to all ports in the chassis.
• Total ingress buffer minus the dedicated buffer and buffer for control and SPAN will be in the
shared buffer pool.
• The following example sets the dedicated buffer for “class-default” to be 400 KB for all ports.
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Flexible Buffer Management
Egress Buffer
• 9-MB packet buffer is shared
UPC Egress Buffer (9MB)
among three 40 GE or twelve
10 GE.
• CLI is provided to allocate buffer
Unicast Buffer
from unicast to multicast.
• Unicast traffic can be buffered at
egress and ingress.
Multicast Buffer
• Multicast is buffered at egress in
case of interface
oversubscription.
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
Default Egress Buffer Allocation
• Software provides CLI to tune the egress buffer allocation.
• At egress, unicast buffer is allocated on a per-port basis. For
multicast, the egress buffer is shared among all ports.
• Use ”hardware multicast-buffer-tune” to assign unicast buffer to
multicast pool on egress
Buffer pool 10GE Port 40GE Port
650KB with 10G fabric mode
Unicast (per port) 363 KB
635KB with 40G fabric mode
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Nexus 5600/6000 QoS Configuration Model
• Uses QOS-Groups to tie together QoS,
Queuing and Network-QoS policies
• QoS-Group has no direct relation with
priority values
• QoS-Groups defined (set) in policy-map
type qos.
• QoS-groups referenced (match) in policy
type queuing and policy-map type
network-qos
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Putting it all together
class-map type qos class_foo
Create class-map match cos 3-4
type qos and Attach policy-map
queuing to policy-map type qos pm1
match on class type qos class_foo
cos/dscp/acls interface
set qos-group 1
class type qos class-default
set qos-group 0
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
Buffering Capacity
Ingress
Traffic Type Ingress Queue Structure 10 GE Port 40 GE Port
6q1t
Span Traffic (per Port) 38.4 KB 154 KB
6q1t
Class Default (per Port) 100 KB 100 KB
6q1t
Shared Buffer 13.2 MB 14.7 MB
Egress
Traffic Type Egress Queue Structure 10 GE Port 40 GE Port
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Nexus 5600 QoS Golden Rules
• WRED is enabled by default and cannot be disabled
• CoS and DSCP are TRUSTED by default
• Use QoS-Groups to tie policies together
• No Egress QOS policies
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Agenda
• Introduction
• QoS Basics
• QoS Implementation on Nexus
• Nexus 9000 QoS
• Nexus 7000/7700 QoS
• Nexus 5600 QoS
• Nexus 3000 QoS
• Nexus 2000 QoS
• Real World Configuration Examples
• Conclusion
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
Nexus 3000 Series Switches
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Cisco Nexus 3000 QoS Features
• Traffic classification
• DSCP, CoS, IP Precedence and ACL
• Packet marking
• DSCP, CoS, and ECN
• Strict Priority Queuing and DWRR
• Tail Drop and WRED with ECN
• Shared buffer capability
• Egress Queuing
• 3-level hierarchical scheduling
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Hardware Scheduler Implementation
• 3 level scheduling hierarchy
S3 S2 S1
Control
traffic
UC0
UC1
UC winner
UC7
MC0 MC winner
MC3
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
Dynamic Buffer Protection
• Buffer is shared dynamically any queue
can use shared buffer
• Dynamic Buffer Protection prevents any
queue unfair use shared buffer
• The basic algorithm uses dynamic queue
length threshold, and account for usage of
unicast and multicast
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
Nexus 3000 QoS Golden Rules
• QoS is enabled by default and cannot
be disabled
• CoS and DSCP are TRUSTED by default
• Use QoS-Groups to tie policies
together
• Queuing and QoS policies are applied
to a physical interface or at system
level
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
Agenda
• Introduction
• QoS Basics
• QoS Implementation on Nexus
• Nexus 9000 QoS
• Nexus 7000/7700 QoS
• Nexus 5600 QoS
• Nexus 3000 QoS
• Nexus 2000 QoS
• Real World Configuration Examples
• Conclusion
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
FEX Overview
• Scalable and Extensible
Fabric
• Single point of management
• Homogeneous and consistent
policies
By Author listed as "U.S. Air Force photo" [Public domain], via Wikimedia Commons
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
Cisco Nexus 2000 QoS Features
• Traffic classification
• DSCP, CoS
• ACL classification (FEX offload)
on
Nexus 5600/6000
• Strict Priority Queuing and
DWRR
• Priority Flow Control
• Queue-limit Carving
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
FEX Policy Offload (Nexus 5600/6000 only)
• TCAM resources on a FEX to perform ACL-based classification
• The feature is disabled by default
• By default, a FEX classifies packets on CoS value
• Both system level and interface level policies are offloaded to the
FEX
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 102
FEX Policy with Nexus 9000 as parent
• The FEX QoS policy is applied to the hardware resources of the
fabric port associated with the FEX HIF port
• Classification is based on the COS value.
• System level input queueing for DWRR and Strict priority scheduling
for HIF to NIF traffic and for NIF to HIF traffic
• Queuing:
• 4 queues are present on the FEX
• The scheduling is done per port and each port has its own scheduler.
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
FEX Queuing Policies – Nexus 7000
• On Nexus 7000 with FEX + M-Series parent modules, network-qos
and F-series ingress queuing class-maps drive FEX queuing
configuration
• Ingress queuing class-maps drive:
• Both ingress and egress COS/DSCP-to-queue mapping
• Enabling DSCP-to-queue on parent switch enables DSCP-to-
queue on FEX
• DSCP-to-queue only active in the HIF→NIF direction
• NIF→HIF direction always uses COS-to-queue mapping, based on COS
transmitted by parent switch to FEX
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
FEX Queue-Limit – Nexus 7000
• Provides FEX queue-limit configuration option
• Manages buffer thresholds on FEX based on platform capabilities
• Default has queue-limit enabled
• Configuration applied per-VDC (on Nexus 7000/7700)
• Different FEX models have different capabilities
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Nexus 2000 QoS Golden Rules
• FEX QOS classification on COS or DSCP
unless FEX offload enabled
• FEX queuing driven implicitly by parent
switch queuing configuration
• No support for per-queue shaping, policing
or marking
• Drop thresholds are tail-drop only, no WRED
support
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
Agenda
• Introduction
• QoS Basics
• QoS Implementation on Nexus
• Nexus 9000 QoS
• Nexus 7000/7700 QoS
• Nexus 5600 QoS
• Nexus 3000 QoS
• Nexus 2000 QoS
• Real World Configuration Examples
• Conclusion
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
What do we want to achieve?
Company XYZ’s Business Goals
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
Translating to the language of QoS
Queuing Queue-Limit
Application CoS Character
(Scheduling) (Buffer)
BW remaining High Volume /
Best Effort 0, 1 60%
50% Less Important
vMotion / Live BW remaining Medium Volume /
2 10%
Migration 20% Important
BW remaining Medium Volume
Multimedia 3, 4 20%
30% Very Important
Low Volume /
Strict Priority 5 Important /
Priority Queue 10% Delay Sensitive
Low Volume /
Network Control 6,7
Very important
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 109
Topology
M3 cards facing
Core
core and M3/F3
cards facing Nexus 7000 Nexus 7000
access
vpc peer-link
VPC from
access to
aggregation
Nexus 9000 Nexus 9000 Nexus 5000 Nexus 5000 Nexus 9000 Nexus 9000
Nexus 2000 Nexus 2000 Nexus 2000 Nexus 2000 Nexus 2000 Nexus 2000
Host VPC,
Enhanced VPC Straight-through
Straight-through
(evPC) FEX, No VPC
FEX
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 110
Type:
Classification, Marking and Trust on Nexus 5000/7000/9000 QoS
Core
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 111
Type:
QoS
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 112
Type:
QoS
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 113
Type:
Networ-QoS
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 114
Type:
QoS
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 115
Network-QoS Configuration on M3/F3-Series
Core
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 116
Type:
Network-QoS
vpc peer-link
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 118
CoS to Queue Mapping – M3/F3 I/O Module
Example
Queuing
Queue-Limit Queue
Application CoS (Scheduling)- Character
(Buffer)-ingress (Ingress/Egress)
egress
4q1t-8e-4q4q-in-q-default
0,1 BW remaining High Volume /
Best Effort 50% / 1p3q1t-8e-4q4q-out-q-
50% Less Important
default
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 119
CoS to Queue Configuration –M3/F3 slides
Type:
Queuing
Example (Payload-VDC)
qos copy policy-map type queuing default-8e-4q4q-in-policy prefix Core
Custom-
interface Ethernet1/1
service-policy type queuing input Custom-8e-4q4q-in
Example (Payload-VDC)
Core
qos copy policy-map type queuing default-8e-4q4q-out-policy prefix
Custom-
vpc peer-link
policy-map type queuing Custom-8e-4q4q-out
class type queuing 1p3q1t-8e-4q4q-out-pq1
priority level 1
class type queuing 1p3q1t-8e-4q4q-out-q2
bandwidth remaining percent 30
class type queuing 1p3q1t-8e-4q4q-out-q3
bandwidth remaining percent 20 vpc peer-link
class type queuing 1p3q1t-8e-4q4q-out-q-default
bandwidth remaining percent 50
!
interface Ethernet1/1
service-policy type queuing output Custom-8e-4q4q-out
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 123
Type:
Queuing
match qos-group 5
!
policy-map type queuing PM_QUEUING_SYSTEM_OUT
class type queuing CM_Q_MATCH_QG3_COS2
bandwidth percent 20
class type queuing CM_Q_MATCH_QG4_COS4
vpc peer-link
bandwidth percent 30
class type queuing CM_Q_MATCH_QG5_COS5
priority
class type queuing class-default
bandwidth percent 50
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 124
Queuing Nexus 2000
Type:
Queuing
Core
vpc peer-link
Queuing on
vpc peer-link NIF (multiple vpc peer-link vpc peer-link
no-drop
queues) only
available
with CoS
Queuing on
based
NIF
marking on
controlled
HIF
by Fabric
Interface
INPUT
policy
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 125
Type:
Queuing
match qos-group 5
!
policy-map type queuing PM_QUEUING_SYSTEM_N2K
class type queuing CM_Q_MATCH_QG3_COS2
bandwidth percent 20
class type queuing CM_Q_MATCH_QG4_COS4
vpc peer-link
bandwidth percent 30
class type queuing CM_Q_MATCH_QG5_COS5
priority
class type queuing class-default
bandwidth percent 40
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 127
Why QoS in the Data Centre?
Assign Manage Maximise
Colour to Traffic Congestion Throughput
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 128
Maximise Throughput and Manage Congestion!
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 129
Recommended Reading
• End-to-End QoS Network Design:
Quality of Service for Rich-Media
and Cloud Networks, 2nd Edition
• Tim Szigeti
• Christina Hattingh
• Robert Barton
• Kenneth Briley
• ISBN-10: 1-58714-369-0
• ISBN-13: 978-1-58714-369-4
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 130
With some help of my friends
I would like to thank all the people, who started
the QoS journey and contributed to it:
• Lukas Krattiger, Principal Engineer
• Tim Stevenson, Distinguished Technical
Marketing Engineer
• Matthias Wessendorf,
Technical Marketing Engineer
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 131
Bonus Slides
FEX QoS
Configuration
Examples
Fex QoS Policy Configuration Example
policy-map type qos fex-qos
class fex-qos-class-1
set dscp 10
Marking policy
class fex-qos-class-2
set dscp 18
class fex-qos-class-3
set dscp 26
Policy applied on ingress of FEX HIF
!
interface Ethernet101/1/1
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 134
Nexus 7000 Network-QoS Configuration Example #1
• Applying 8e-4q4q template to enable 4 ingress/egress queues on FEX with COS to
queue mapping (also enables 4 ingress queues on F-series modules, if present)
system qos Default 8e-4q4q template applied to
service-policy type network-qos default-nq-8e-4q4q-policy “system qos” target
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 135
Nexus 7000 Network-QoS Configuration Example #2
• Applying custom 8e-4q4q-based template with new MTU
policy-map type network-qos custom-nq-8e-4q4q template 8e-4q4q
class type network-qos c-nq-8e-4q4q Custom network-qos policy
congestion-control tail-drop with new MTU
mtu 9216
system qos Custom template applied to
service-policy type network-qos custom-nq-8e-4q4q “system qos” target
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 136
Modifying CoS- or DSCP-to-Queue Mappings
• Changing CoS- or DSCP-to-queue mappings in parent switch F-type
ingress queuing class-maps modifies mappings on FEX
• Queuing class-maps modified only in default/admin VDC (apply to entire
system) Queuing:
Non-default F-series queue qos-group cos priority bandwidth mtu
class-map type queuing match-any 4q1t-8e-4q4q-in-q1 ingress queuing
--------+------------+--------------+---------+---------+----
match cos 1-3 class-maps (COS and ctrl-hi n/a 7 PRI 0 2400
match dscp 8-31 DSCP match statements ctrl-lo n/a 7 PRI 0 2400
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 137
Enabling FEX Queue Limits
• Example #1 – N2K-C2248TP-1GE
fex 101
hardware N2248T queue-limit 50000
• Example #2 – N2K-C2232TM-E-10GE
fex 102
hardware N2232TM-E queue-limit 50000
• FEX output (“show queuing interface”) after (configured queue-limit rounded to nearest
hardware supported value):
Queue limit: 51200 bytes
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 138
F3 Queuing
Configuration
Examples
Central Arbiter
DWRR
10G Port 1 1.5MB VQI 1 10G Port 1
SP
FABRIC
Buffering / queuing
…
Ingress Buffer – Manages congestion toward
…
egress destinations
DWRR
VQI 8 10G Port 8
10G Port 8 1.5MB
SP
Egress Scheduling
8 priority
4 ingress queues levels
per port Ingress Buffer Egress Buffer
DWRR
40G Port 1 6MB VQI 1 40G Port 1
FABRIC
SP
Buffering / queuing
Ingress Buffer – Manages congestion toward
egress destinations (VQIs)
DWRR
INGRESS QUEUING POLICIES VQI 2 40G Port 2
40G Port 2 6MB
SP
Egress Scheduling
4 ingress queues
per port Ingress Buffer Egress Buffer 8 priority
levels
DWRR
FABRIC
VQI 1 100G Port 1
100G Port 1
SP
12MB
Buffering / queuing
Ingress Buffer – Manages congestion toward
egress destinations (VQIs)
…remap COS/DSCP values from one 1. Modify the type queuing class-map(s) for the desired queue(s)
queue to another queue without activating
additional queues
…change queuing behaviour without 1. Define new type queuing policy-map (you cannot modify the
changing COS-or DSCP-to-queue default policies)
mapping 2. Modify class-map parameters
3. Apply new policy-map to interfaces
…activate additional queues and remap 1. Define new type queuing policy-map
COS/DSCP values 2. Modify COS-to-queue mapping for target port type
3. Apply new policy-map to interfaces
…shape the SP queue 1. (Optional) Clone the default egress queuing policy
2. Shape the SP queue in the new (cloned) policy
3. Apply the new queuing policy to the target interfaces
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 144
Modifying Queuing Behaviour
Remap Some COS/DSCP Values from One Queue to Another Queue without
Activating Additional Queues
Important: changing COS- or DSCP-to-queue mapping takes effect immediately and is disruptive
to all ports
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 145
Modifying Queuing Behaviour
Remap Some COS/DSCP Values from One Queue to Another Queue without Activating Additional
Queues
Example: remap COS 4 and DSCP 32-39 to ingress queue “q1”:
n77# show class-map type queuing 8q2t-in-q1
========================
Show current
class-map type queuing match-any 8q2t-in-q1 mapping
Description: Classifier for ingress queue 1 of type 8q2t
n77(config-cmap-que)# #CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 146
Modifying Queuing Behaviour
Changing Default Queuing Behaviour without Changing COS- or DSCP-to-
Queue
Important: applying new queuing policy takes effect immediately and is disruptive to any ports to
which the policy is applied
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 147
Modifying Queuing Behaviour
Changing Default Queuing Behaviour without Changing COS- or DSCP-to-
Queue
Example: Resize ingress queues without modifying COS- or DSCP-to-queue mapping
n77# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n77(config)# ! Define new "type queuing" policy Create new
n77(config)# policy-map type queuing new-f3-ingress queuing policy
n77(config-pmap-que)# ! Define behavior for F3 ingress q-default
n77(config-pmap-que)# class type queuing 8e-4q8q-in-q-default
n77(config-pmap-c-que)# ! Resize this queue
n77(config-pmap-c-que)# queue-limit percent 74
n77(config-pmap-c-que)# ! Define behavior for F3 ingress queue 1
n77(config-pmap-c-que)# class type queuing 8e-4q8q-in-q1 Modify class-map
n77(config-pmap-c-que)# ! Resize this queue
parameters (resize queues)
n77(config-pmap-c-que)# queue-limit percent 24
n77(config-pmap-c-que)# ! Policy must include all queues (even inactive)
n77(config-pmap-c-que)# class type queuing 8e-4q8q-in-q3
n77(config-pmap-c-que)# ! Must give at least 1% to inactive queues
n77(config-pmap-c-que)# queue-limit percent 1
n77(config-pmap-c-que)# class type queuing 8e-4q8q-in-q4 Apply policy to
n77(config-pmap-c-que)# queue-limit percent 1
interface(s)
n77(config-pmap-c-que)# interface e 2/1-48
n77(config-if-range)# ! Apply the new policy to F3 interfaces
n77(config-if-range)# service-policy type queuing input new-f3-ingress
n77(config-if-range)# #CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 148
Modifying Queuing Behaviour
Activate Additional Queues and Remap COS/DSCP Values
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 149
Modifying Queuing Behaviour
Activate Additional Queues and Remap COS/DSCP Values
Example: Enable one additional ingress queue and map COS/DSCP values to all active queues
n77# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n77(config)# ! Modify ingress queue q3
Map COS/DSCP values to
n77(config)# class-map type queuing match-any 8q2t-in-q3 inactive queue
n77(config-cmap-que)# ! Map COS and DSCP values to this queue
n77(config-cmap-que)# match cos 3-4
n77(config-cmap-que)# match dscp 24-39
Create new
n77(config-cmap-que)# ! Define new "type queuing" policy
n77(config-cmap-que)# policy-map type queuing new-f3-ingress queuing policy
n77(config-pmap-que)# ! Define behavior for F3 ingress q-default
n77(config-pmap-que)# class type queuing 8e-4q8q-in-q-default
n77(config-pmap-c-que)# ! Resize this queue
n77(config-pmap-c-que)# queue-limit percent 60 Modify class-map
n77(config-pmap-c-que)# ! Define behavior for F3 ingress queue 1
parameters (resize queues)
n77(config-pmap-c-que)# class type queuing 8e-4q8q-in-q1
n77(config-pmap-c-que)# ! Resize this queue
n77(config-pmap-c-que)# queue-limit percent 25
n77(config-pmap-c-que)# ! Define behavior for F3 ingress queue 3
n77(config-pmap-c-que)# class type queuing 8e-4q8q-in-q3
n77(config-pmap-c-que)# ! Resize this queue
n77(config-pmap-c-que)# queue-limit percent 14
Apply policy to
n77(config-pmap-c-que)# ! Policy must include all queues (even inactive) interface(s)
n77(config-pmap-c-que)# class type queuing 8e-4q8q-in-q4
n77(config-pmap-c-que)# queue-limit percent 1
n77(config-pmap-c-que)# int e 2/1-48
n77(config-if-range)# ! Apply the new policy to F3 interfaces
n77(config-if-range)# service-policy type queuing input new-f3-ingress
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 150
Important!
• If you change the COS- or DSCP-to-queue mapping for a port type, make sure all ports of that
type in all VDCs have a queuing policy applied that defines behaviour for all queues with
COS/DSCP values mapped
• For example, if you do THIS…
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 151
Important!
Defines a new queuing policy that defines
• … then make sure you do THIS… behaviour of all queues that COS/DSCP
values have been mapped to
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 152
Important!
Maps the new policy to ALL interfaces in the
• … and then do THIS: system (do this on ALL ports in EVERY VDC!!)
• If you DON’T, traffic arriving on ports with default policy (i.e., without all queues
activated that have COS/DSCP values mapped) will suffer – packet drops, poor
performance, etc.
• Of course, you can have different non-default policies on different sets of interfaces,
but all interfaces in the system must use some policy that defines all activated queues!
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 153
Modifying Queuing Behaviour
Shape the SP Queue
Important: applying new queuing policy takes effect immediately and is disruptive to any
ports to which the policy is applied
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 154
Modifying Queuing Behaviour
Shape the SP Queue
Example: Shape the SP queue to 2Gbps on a 10G interface, using a queuing policy cloned from the default “8e4q4q”
egress queuing policy
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 156
Changing The Default Trust
(F-Series I/O Module)
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 157
Complete your
online session • Please complete your session survey
evaluation after each session. Your feedback
is very important.
• Complete a minimum of 4 session
surveys and the Overall Conference
survey (starting on Thursday) to
receive your Cisco Live water bottle.
• All surveys can be taken in the Cisco Live
Mobile App or by logging in to the Session
Catalog on ciscolive.cisco.com/us.
Cisco Live sessions will be available for viewing
on demand after the event at ciscolive.cisco.com.
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 158
Continue your education
Demos in the
Walk-in labs
Cisco campus
#CLUS BRKDCN-3346 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 159
Thank you
#CLUS
#CLUS