Post on 28-Sep-2020
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 1
The Cisco Experience at Cisco Live
BRKCRS-2500
Campus QoS Design
Marta Ferreyra – CCIE R&S – VOICE
Network Consulting Engineer
mferreyr@cisco.com
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 2
Campus QoS Design
Business and Technical Drivers for QoS Design Update
Campus QoS Design Considerations and Models
Catalyst 2960/2975 & 3560/3750 QoS Design
Catalyst 4500/4900 & 4500-E/4900M QoS Design
Catalyst 6500/6500-E QoS Design
Agenda
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 3
Why Campus QoS Designs Need Updating Business and Technical Drivers
New Applications and Business Requirements
Explosion of Video Apps
Impact of HD
Blurring of Voice/Video/Data application boundaries
New Standards and RFCs
RFC 4594
New Platforms and Technologies
New Switches, Supervisors, Linecards, features, syntax
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSIntro_40.html#wp60730
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 4
20 msec
Voice Packets
Bytes
200
600
1000
Audio
Samples
1400
Time
200
600
1000
1400
33 msec
Video Packets Video
Frame
Video
Frame
Video
Frame
New Applications Requirements VoIP vs. HD Video—At the Packet Level
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 5
New Application Requirements Trends in Voice, Video and Data Media Applications
Data
Connectivity
Web Email
Messaging
Convergence
Leveraging Investment
Data Apps
• App Sharing • Web/Internet • Messaging • Email
Voice
• IP Telephony
Video
• IP Video Conf
Media Explosion
Co-Existence
Data Apps
• App Sharing • Web/Internet • Messaging • Email
Voice
• IP Telephony • HD Audio • Softphone • Other VoIP
Video
• IP Video Conf • Surveillance • Video Telephony • HD Video Conf • VoD Streaming
Unmanaged
• Internet Streaming • Internet VoIP • YouTube • MySpace • Other
Collaborative Media
Experience Assurance
Ad
-Ho
c A
pp
Tele
Pre
sen
ce
Web
Ex
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 6
New Standards and RFCs Cisco Medianet DiffServ QoS Recommendations (RFC 4594-Based)
Application
Class
Per-Hop
Behavior
Admission
Control
Queuing &
Dropping
Application
Examples
VoIP Telephony EF Required Priority Queue (PQ) Cisco IP Phones (G.711, G.729)
Broadcast Video CS5 Required (Optional) PQ Cisco IP Video Surveillance / Cisco Enterprise TV
Realtime Interactive CS4 Required (Optional) PQ Cisco TelePresence
Multimedia Conferencing AF4 Required BW Queue + DSCP WRED Cisco Unified Personal Communicator, WebEx
Multimedia Streaming AF3 Recommended BW Queue + DSCP WRED Cisco Digital Media System (VoDs)
Network Control CS6 BW Queue EIGRP, OSPF, BGP, HSRP, IKE
Call-Signaling CS3 BW Queue SCCP, SIP, H.323
Ops / Admin / Mgmt (OAM) CS2 BW Queue SNMP, SSH, Syslog
Transactional Data AF2 BW Queue + DSCP WRED ERP Apps, CRM Apps, Database Apps
Bulk Data AF1 BW Queue + DSCP WRED E-mail, FTP, Backup Apps, Content Distribution
Best Effort DF Default Queue + RED Default Class
Scavenger CS1 Min BW Queue (Deferential) YouTube, iTunes, BitTorent, Xbox Live
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSIntro_40.html#wp61104
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 7
Evolving Business Requirements Business Requirements Will Evolve and Expand over Time
Time http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSIntro_40.html#wp61135
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 8
Campus QoS Design Considerations and Models
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 9
Campus QoS Design
Business and Technical Drivers for QoS Design Update
Campus QoS Design Considerations and Models
Catalyst 2960/2975 & 3560/3750 QoS Design
Catalyst 4500/4900 & 4500-E/4900M QoS Design
Catalyst 6500/6500-E QoS Design
Agenda
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 10
Campus QoS Design
Always perform QoS in hardware rather than software when a choice exists
Classify and mark applications as close to their sources as technically and administratively feasible
Police unwanted traffic flows as close to their sources as possible
Enable queuing policies at every node where the potential for congestion exists
Protect the control plane and data plane
Strategic QoS Design Principles
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098008
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 11
Campus QoS Design
Internal DSCP
Trust States and Operations
Trust Boundaries
Per-Port, Per-VLAN and Per-Port/Per-VLAN QoS
EtherChannel QoS
Endpoint-Generated Traffic Classes
AutoQoS
QoS Design Considerations
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098008
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 12
Campus QoS Design Considerations Internal DSCP Derivation by Trust Options
CoS = 5
DSCP = 46
CoS = 5
DSCP = 46 Trust CoS [mls] qos trust cos
CoS = 5
DSCP = 46 Trust DSCP [mls] qos trust dscp
Internal
DSCP = 46
CoS-to-DSCP Mapping Table CoS 0 0 CoS 4 32
CoS 1 8 CoS 5 40
CoS 2 16 CoS 6 48
CoS 3 24 CoS 7 56
Internal
DSCP = 40
Untrusted no [mls] qos trust
Internal
DSCP = 0
CoS = 0
DSCP = 0
CoS = 5
DSCP = 40
CoS = 5
DSCP = 46
[mls] qos map cos-dscp 0 8 16 24 32 40 48 56
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 13
Phone VLAN = 110
Campus QoS Considerations Conditional-Trust Boundary Extension and Operation
1 So I Will Trust Your CoS”
“I See You’re an IP Phone,
Trust Boundary
PC VLAN = 10
Voice CoS 5 - Signaling CoS 3 2
All PC Traffic Is Reset to CoS 0 PC Sets CoS 5 for All Traffic 3
“CoS 5 = DSCP 46”
“CoS 3 = DSCP 24”
“CoS 0 = DSCP 0”
4
Switch and Phone Exchange CDP; Trust Boundary Is Extended to IP Phone 1
Phone Sets CoS 5 for VoIP and CoS 3 for Call-Signaling Traffic 2
Phone Rewrites CoS from PC Port to 0 3
Switch Trusts CoS from Phone and Maps CoS DSCP for Output Queuing 4
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 14
Campus QoS Design Considerations Conditional Trust Operation
3 TelePresence Primary Codec: Voice + Video CoS 4 & DSCP CS4
Call-Signaling CoS 3 & DSCP CS3
CoS-to-DSCP Map:
CoS 5 DSCP EF (46)
CoS 4 DSCP CS4 (32)
CoS 3 DSCP CS3 (24)
4
Trust Boundary
Trust is Dynamically Extended to Cisco 7975G IP Phone
Successful “Condition” Met (i.e. CDP negotiation successful)
1
Cisco 7975G: Voice CoS 5 & DSCP EF
Call-Signaling CoS 3 & DSCP CS3
2
TelePresence Endpoint Example
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 15
Campus QoS Design Considerations Trust Boundaries
Access-Edge Switches
Conditionally Trusted Endpoints
Example: IP Phone + PC [mls] qos trust device cisco-phone
Secure Endpoint
Example: Software-protected PC
With centrally-administered QoS markings [mls] qos trust dscp
Unsecure Endpoint no [mls] qos trust
Tru
st
Bo
un
dary
Tru
st
Bo
un
dary
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 16
Campus QoS Design Considerations Per-Port QoS vs. Per-VLAN QoS
Policy map is applied to
the physical switch port
VLAN 10 VLAN 20
Physical Ports
VLAN Interfaces
Policy map is applied to
the logical VLAN interface
Per-Port QoS Per-VLAN QoS
VLAN 10 VLAN 20
Physical Ports
VLAN Interfaces
Command syntax:
[mls] qos vlan-based
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 17
DVLAN 10
DVLAN policy map is applied
to the Data VLAN (only)
on a given trunked switch port
VVLAN 110
Trunked Physical Ports
VLAN Interfaces
VVLAN policy map is applied
to the Voice VLAN (only)
on a given trunked switch port
Campus QoS Design Considerations Per-Port/Per-VLAN QoS
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 18
Campus QoS Design EtherChannel QoS
EtherChannels are comprised of logical (Port-Channel) interfaces and physical (port-member) interfaces
Sometimes EtherChannel ingress QoS policies are applied to the logical interfaces (but not always)
Catalyst 4K and 6K follow this rule
Catalyst 2K and 3K are exceptions to this rule—ingress policies must be applied to physical port-members on these platforms
EtherChannel egress Queuing policies are always applied to the physical port-member interfaces
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1132426
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 19
Application Class PHB Application Examples Present at
Campus Access-
Edge (Ingress)?
Trusted
Endpoint?
Untrusted
Endpoint?
Network Control CS6 EIGRP, OSPF, HSRP, IKE
VoIP EF Cisco IP Phones Yes Trusted
Broadcast Video Cisco IPVS, Enterprise TV Yes Trusted
Realtime Interactive CS4 Cisco TelePresence Yes Trusted
Multimedia Conferencing AF4 Cisco CUPC, WebEx Yes Untrusted
Multimedia Streaming AF3 Cisco DMS. IP/TV
Signaling CS3 SCCP, SIP, H.323 Yes Trusted Untrusted
Transactional Data AF2 ERP Apps, CRM Apps Yes Untrusted
OAM CS2 SNMP, SSH, Syslog
Bulk Data AF1 Email, FTP, Backups Yes Untrusted
Best Effort DF Default Class Yes Untrusted
Scavenger CS1 YouTube, Gaming, P2P Yes Untrusted
Campus QoS Design Considerations Campus Endpoint-Generated Traffic Clases
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 20
Campus QoS Design QoS Deployment Steps and Options
Globally Enable QoS
On all Catalyst switch platforms (except the 4500 Sup6-E / 7-E)
Apply Ingress QoS Model
Trust / Classification & Marking / Policing / (Ingress Queuing)
Define and Apply Egress QoS Model
Egress Queuing / Congestion-Avoidance
Define and Apply Control Plane Policing
Enable
QoS
Apply Ingress
QoS Model
Enable Control
Plane Policing
(if supported)
Apply Egress
QoS Model
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098122
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 21
Core Distribution Access
Untrusted Endpoints
Trusted
Endpoints
Conditionally-
Trusted
Endpoints Switch-to-Switch/Router Port QoS
• Trust DSCP
• 1P3QyT or 1P7QyT Queuing
WAN/VPN
Block
Untrusted Endpoint Port QoS:
• No Trust
• [Optional Ingress Marking and/or Policing]
• 1P3QyT Queuing
Trusted Endpoint
Port QoS:
• Trust-DSCP
• [Optional Ingress
Marking and/or
Policing]
• 1P3QyT Queuing
Conditionally-Trusted Endpoint Port QoS
• Conditional-Trust with Trust-CoS
• [Optional Ingress Marking and/or Policing]
• 1P3QyT Queuing Distribution Switch Downlinks
+ Microflow Policing/UBRL (if supported)
Campus Port QoS Roles
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 22
(Optional) Policing Policies Marking Policies
Campus Ingress QoS Models No Trust (Untrusted)
Trust CoS
Trust DSCP
Ing
res
s Q
ueu
ing
Po
lic
ies
(if
req
uir
ed
an
d s
up
po
rted
)
VoIP Classifier
Signaling Classifier
Multimedia Conferencing
Classifier
Signaling Classifier
Transactional Data Classifier
Bulk Data Classifier
Scavenger Classifier
Best Effort (Class-Default)
Mark EF
Mark CS3
Mark AF41
Mark CS3
Mark AF21
Mark AF11
Mark CS1
Mark DF
VoIP Policer (<128 kbps)
Signaling Policer (<32 kbps)
MM-Conf Policer (<5 Mbps)
Signaling Policer (<32 kbps)
Trans-Data Policer (<10 Mbps)
Bulk Data Policer (<10 Mbps)
Best Effort Policer (<10 Mbps)
Scavenger Policer (<10 Mbps)
Drop
Drop
Remark to CS1
Remark to CS1
Remark to CS1
Drop
Drop
Drop
Trust Device / Conditional Trust
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
DVLAN
VVLAN
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 23
Realtime
≤ 33%
Guaranteed BW
Scavenger/Bulk
≤ 5%
Best Effort
≥ 25%
Campus Egress QoS Models Queuing and Dropping and Buffer-Sizing Recommendations
Catalyst Queuing is done in hardware and varies by platform/linecard and is expressed as: 1PxQyT
Example: 1P3Q8T means: 1 PQ
3 non-priority queues, each with
8 drop-thresholds per queue
Minimum queuing capabilities for medianet is 1P3QyT
Realtime (PQ) should be less than 33% of link
Best-Effort Queue should be guaranteed at 25% of link
Scavenger/Bulk queue should be minimally provisioned
Enable congestion-avoidance on non-priority queues (WRED, WTD, DBL)
Buffers for BE and Guaranteed BW queues can be directly proportional to BW allocation
Example: 25% BW for BE Queue can be matched with 25% Buffer Allocation
Buffers for PQ and Scavenger/Bulk Queue can be indirectly proportional to BW allocation
Examples: 30% BW for PQ can be complemented with 15% Buffer Allocation
5% BW for Scavenger/Bulk queue can be complemented with 10%+ Buffer Allocation
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 24
AutoQoS
Currently all switch platforms support AutoQoS-VoIP
Best practice QoS designs for IP Telephony (only) deployments
Catalyst 2K/3K now supports AutoQoS for Medianet
AutoQoS SRND4
Supports not only IP Phones, but also TelePresence & IPVS cameras
Autoprovisions ingress trust, classification, marking & policing
Autoprovisions ingress queuing (as applicable)
Autoprovisions egress queuing
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098289
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 25
Control Plane Policing Model
Border Gateway Protocol (BGP)
Interior Gateway Protocol (IGP)
Interactive Management
File Management
Reporting
Monitoring
Critical Applications
Undesirable
Default
Nine-Class CoPP Model
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098342
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 26
Catalyst 2960 G/S + 2975-GS & 3560/3750 G/E/X QoS Design
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 27
Campus QoS Design
Business and Technical Drivers for QoS Design Update
Campus QoS Design Considerations and Models
Catalyst 2960/2975 & 3560/3750 QoS Design
Catalyst 4500/4900 & 4500-E/4900M QoS Design
Catalyst 6500/6500-E QoS Design
Agenda
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 28
Catalyst 2960/2975/3560/3750 QoS Design QoS Architecture
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098508
Classification
• Inspect incoming
packets
• Based on ACLs or
configuration,
determine
classification label
Policing
• Ensure
conformance to a
specified rate
• On an aggregate
or individual flow
basis
• Up to 256 policers
per Port ASIC
• Support for rate
and burst
Marking
• Act on policer
decision
• Reclass or drop
out-of-profile
Egress Queue/
Schedule
Congestion
Control
• Four SRR queues/port shared
or shaped servicing
• One queue is configurable
for strict priority servicing
• WTD for congestion
control (three thresholds
per queue)
• Egress queue shaping
• Egress port rate limiting
Ingress Queue/
Schedule
Congestion
Control
• Two queues/port
ASIC shared
servicing
• One queue is
configurable for strict
priority servicing
• WTD for congestion
control (three
thresholds per queue)
• SRR is performed
Ingress Egress
Policer
Policer
Marker
Policer
Policer
Marker
Marker
Marker
SRR SRR Classify Traffic
Stack
Ring
Egress
Queues Ingress
Queues
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 29
Catalyst 2960/2975/3560/3750 QoS Design Platform-Specific Considerations
Traffic is classified on ingress, based on trust-states, access-lists, or class-maps.
Because the total inbound bandwidth of all ports can exceed the bandwidth of the
stack or internal ring, ingress queues are supported
The Catalyst 2960 and 2975 can only police to a minimum rate of 1 Mbps; all other
platforms within this switch product family can police to a minimum rate of 8 kbps.
The Catalyst 3560 and 3750 support multilayer switching and as such
correspondingly support per-VLAN or per-port/per-VLAN policies.
The Catalyst 3560 and 3750 support IPv6 QoS.
The Catalyst 3560 and 3750 support policing on 10 Gigabit Ethernet interfaces.
The Catalyst 2960/2975/3650/3750 support Shaped Round Robin (BW limits),
Shared Round Robin (shares unused BW), as well as strict priority queue
scheduling
The Catalyst 3560-E/X and 3750-E/X support SRR shaping weights on 10 GE ints
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098508
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 30
Catalyst 2960/2975/3560/3750 QoS Design QoS Models
Trust Models
Trust-CoS Model
Trust-DSCP Model
Conditional-Trust Model
Marking Models
Per-Port Marking Model
Per-VLAN Marking Model
Policing Models
Per-Port Policing Model
Per-Port/Per-VLAN Policing Model
Queuing Models
Ingress Queuing 1P1Q3T Model
Egress Queuing 1P3Q3T Model
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098448
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 31
Catalyst 2960/2975/3560/3750 QoS Design Enabling QoS and Trust Model Examples
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098560
C3750-E(config)#mls qos
Verified with: •show mls qos
Enabling QoS:
C3750-E(config)#mls qos map cos-dscp 0 8 16 24 32 46 48 56
! CoS 5 (the sixth CoS value, starting from 0) is mapped to 46
C3750-E(config)#interface GigabitEthernet 1/0/1
C3750-E(config-if)#mls qos trust cos
! The interface is set to statically trust CoS
Verified with: •show mls qos interface
•show mls qos map cos-dscp
Trust-CoS Model Example:
C3750-E(config-if)#mls qos trust dscp
Trust-DSCP Model Example:
C3750-E(config-if)#mls qos trust device cisco-phone
Conditional-Trust Model Example (can be combined with Trust-CoS/DSCP):
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 32
Catalyst 2960/2975/3560/3750 QoS Design Marking Model Example
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098677
C3750-E(config-cmap)# policy-map PER-PORT-MARKING
C3750-E(config-pmap)# class VVLAN-VOIP
C3750-E(config-pmap-c)# set dscp ef
! VoIP is marked EF
C3750-E(config-pmap-c)# class VVLAN-SIGNALING
C3750-E(config-pmap-c)# set dscp cs3
! Signaling (from the VVLAN) is marked CS3
C3750-E(config-pmap-c)# class MULTIMEDIA-CONFERENCING
C3750-E(config-pmap-c)# set dscp af41
! Multimedia-conferencing is marked AF41
C3750-E(config-pmap-c)# class SIGNALING
C3750-E(config-pmap-c)# set dscp cs3
! Signaling (from the DVLAN) is marked CS3
C3750-E(config-pmap-c)# class TRANSACTIONAL-DATA
C3750-E(config-pmap-c)# set dscp af21
! Transactional Data is marked AF21
C3750-E(config-pmap-c)# class BULK-DATA
C3750-E(config-pmap-c)# set dscp af11
! Bulk Data is marked AF11
C3750-E(config-pmap-c)# class SCAVENGER
C3750-E(config-pmap-c)# set dscp cs1
! Scavenger traffic is marked CS1
C3750-E(config-pmap-c)# class DEFAULT
C3750-E(config-pmap-c)# set dscp default
! An explicit class-default marks all other IP traffic to 0
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 33
Catalyst 2960/2975/3560/3750 QoS Design Marking Model Example: Per-Port Application
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098677
C3750-E(config)#interface range GigabitEthernet 1/0/1-48
C3750-E(config-if-range)# switchport access vlan 10
C3750-E(config-if-range)# switchport voice vlan 110
C3750-E(config-if-range)# spanning-tree portfast
C3750-E(config-if-range)# mls qos trust device cisco-phone
! The interface is set to conditionally-trust Cisco IP Phones
C3750-E(config-if-range)# mls qos trust cos
! CoS-trust will be dynamically extended to Cisco IP Phones
C3750-E(config-if-range)# service-policy input PER-PORT-MARKING
! Attaches the Per-Port Marking policy to the interface(s)
Note: While the Catalyst 3750-E MQC syntax includes an implicit class-default, any policy actions assigned to this
class are not enforced. Therefore, an explicit class DEFAULT is configured in the above example to enforce a
marking/remarking policy to DSCP 0 for all other IP traffic.
Note: An explicit marking command (set dscp) is used even for trusted application classes (like VVLAN-VOIP and
VVLAN-SIGNALING) rather than a trust policy-map action. The use of an explicit (but seemingly redundant) explicit
marking command actually improves the policy efficiency from a hardware perspective.
Verified with: •show mls qos interface
•show class-map
•show policy-map
•show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 34
Catalyst 3560/3750 G/E/X QoS Design Marking Model Example: Per-VLAN Application
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1098966
! This section configures conditional trust and enables VLAN-based QoS
C3750-E(config)#interface range GigabitEthernet 1/0/1-48
C3750-E(config-if-range)# switchport access vlan 10
C3750-E(config-if-range)# switchport voice vlan 110
C3750-E(config-if-range)# spanning-tree portfast
C3750-E(config-if-range)# mls qos trust device cisco-phone
! The interface is set to conditionally-trust Cisco IP Phones
C3750-E(config-if-range)# mls qos vlan-based
! Enables VLAN-based QoS on the interface(s)
! This section attaches the DVLAN policy to the DVLAN interface
C3750-E(config)#interface Vlan 10
C3750-E(config-if)# description DVLAN
C3750-E(config-if)# service-policy input DVLAN-MARKING
! Attaches the DVLAN Per-VLAN Marking policy to the DVLAN interface
! This section attaches the VVLAN policy to the VVLAN interface
C3750-E(config)#interface Vlan 110
C3750-E(config-if)# description VVLAN
C3750-E(config-if)# service-policy input VVLAN-MARKING
! Attaches the VVLAN Per-VLAN Marking policy to the VVLAN interface
Verified with: •show mls qos interface
•show class-map •show policy-map
•show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 35
Catalyst 3560/3750 G/E/X QoS Design Per-Port Policing Model Example – Part 1 of 3
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099057
! This section configures the global policed-DSCP markdown map
C3750-E(config)#mls qos map policed-dscp 0 10 18 to 8
! DSCP 0 (DF), 10 (AF11) and 18 (AF21) are marked down to 8 (CS1)
! if found to be in excess of their (respective) policing rates
! This section configures the Per-Port policing policy-map
C3750-E(config)#policy-map PER-PORT-POLICING
C3750-E(config-pmap)# class VVLAN-VOIP
C3750-E(config-pmap-c)# set dscp ef
C3750-E(config-pmap-c)# police 128k 8000 exceed-action drop
! VoIP is marked EF and policed to drop at 128 kbps
C3750-E(config-pmap-c)# class VVLAN-SIGNALING
C3750-E(config-pmap-c)# set dscp cs3
C3750-E(config-pmap-c)# police 32k 8000 exceed-action drop
! (VVLAN) Signaling is marked CS3 and policed to drop at 32 kbps
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 36
Catalyst 3560/3750 G/E/X QoS Design Per-Port Policing Model Example – Part 2 of 3
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099057
C3750-E(config-pmap-c)# class MULTIMEDIA-CONFERENCING
C3750-E(config-pmap-c)# set dscp af41
C3750-E(config-pmap-c)# police 5m 8000 exceed-action drop
! Multimedia-conferencing is marked AF41 and policed to drop at 5 Mbps
C3750-E(config-pmap-c)# class SIGNALING
C3750-E(config-pmap-c)# set dscp cs3
C3750-E(config-pmap-c)# police 32k 8000 exceed-action drop
! (DVLAN) Signaling is marked CS3 and policed to drop at 32 kbps
C3750-E(config-pmap-c)# class TRANSACTIONAL-DATA
C3750-E(config-pmap-c)# set dscp af21
C3750-E(config-pmap-c)# police 10m 8000 exceed-action policed-dscp-transmit
! Trans-data is marked AF21 and policed to remark (to CS1) at 10 Mbps
C3750-E(config-pmap-c)# class BULK-DATA
C3750-E(config-pmap-c)# set dscp af11
C3750-E(config-pmap-c)# police 10m 8000 exceed-action policed-dscp-transmit
! Bulk-data is marked AF11 and policed to remark (to CS1) at 10 Mbps
C3750-E(config-pmap-c)# class SCAVENGER
C3750-E(config-pmap-c)# set dscp cs1
C3750-E(config-pmap-c)# police 10m 8000 exceed-action drop
! Scavenger traffic is marked CS1 and policed to drop at 10 Mbps
C3750-E(config-pmap-c)# class DEFAULT
C3750-E(config-pmap-c)# set dscp default
C3750-E(config-pmap-c)# police 10m 8000 exceed-action policed-dscp-transmit
! An explicit default class marks all other IP traffic to DF
! and polices all other IP traffic to remark (to CS1) at 10 Mbps
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 37
Catalyst 3560/3750 G/E/X QoS Design Per-Port Policing Model Example – Part 3 of 3
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099057
! This section attaches the service-policy to the interface(s)
C3750-E(config)#interface range GigabitEthernet 1/0/1-48
C3750-E(config-if-range)# switchport access vlan 10
C3750-E(config-if-range)# switchport voice vlan 110
C3750-E(config-if-range)# spanning-tree portfast
C3750-E(config-if-range)# mls qos trust device cisco-phone
! The interface is set to conditionally-trust Cisco IP Phones
C3750-E(config-if-range)# mls qos trust cos
! CoS-trust will be dynamically extended to Cisco IP Phones
C3750-E(config-if-range)# service-policy input PER-PORT-POLICING
! Attaches the Per-Port Policing policy to the interface(s)
Note: Catalyst 3750-G software allows for policing rates to be entered using the postfixes k (for kilobits), m (for
megabits), and g (for gigabits), as shown in the above example. Additionally, decimal points are allowed in conjunction
with these postfixes.
Verified with: •show mls qos maps policed-dscp
•show mls qos interface
•show mls qos interface interface x/y policers
•show class-map
•show policy-map
•show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 38
Network Management
Signaling
Realtime Interactive
Transactional Data
Multimedia Conferencing
Bulk Data
AF2
CS3
CS4
AF4
CS2
AF1
Scavenger CS1
Best Effort DF
Multimedia Streaming AF3
Broadcast Video
VoIP
Application
CS5
EF
Internetwork Control CS6
DSCP
Network Control (CS7)
Q1
Priority Queue
Queue 4
(5%)
Queue 2
(30%)
Default Queue
Queue 3 (35%)
Q2T3
Q2T2
Q4T2
Q4T1
Q2T1
CS6
CS7
EF
CS4
CS3
CS2
DF
AF1
CS1
AF4
AF3
AF2
1P3Q3T
CS5
Catalyst 2960/2975/3560/3750 QoS Design 1P3Q3T Egress Queuing Model
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099462
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 39
Catalyst 2960/2975/3560/3750 QoS Design 1P3Q3T Egress Queuing Model Example – Part 1 of 4
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099462
! This section configures buffers and thresholds on Q1 through Q4
C3750-E(config)#mls qos queue-set output 1 buffers 15 30 35 20
! Queue buffers are allocated
C3750-E(config)#mls qos queue-set output 1 threshold 1 100 100 100 100
! All Q1 (PQ) Thresholds are set to 100%
C3750-E(config)#mls qos queue-set output 1 threshold 2 80 90 100 400
! Q2T1 is set to 80%; Q2T2 is set to 90%;
! Q2 Reserve Threshold is set to 100%;
! Q2 Maximum (Overflow) Threshold is set to 400%
C3750-E(config)#mls qos queue-set output 1 threshold 3 100 100 100 400
! Q3T1 is set to 100%, as all packets are marked the same weight in Q3
! Q3 Reserve Threshold is set to 100%;
! Q3 Maximum (Overflow) Threshold is set to 400%
C3750-E(config)#mls qos queue-set output 1 threshold 4 60 100 100 400
! Q4T1 is set to 60%; Q4T2 is set to 100%
! Q4 Reserve Threshold is set to 100%;
! Q4 Maximum (Overflow) Threshold is set to 400%
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 40
Catalyst 2960/2975/3560/3750 QoS Design 1P3Q3T Egress Queuing Model Example – Part 2 of 4
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099462
! This section configures egress CoS-to-Queue mappings (if required)
C3750-E(config)#mls qos srr-queue output cos-map queue 1 threshold 3 4 5
! CoS 4 and 5 are mapped to egress Q1T3 (the tail of the PQ)
C3750-E(config)#mls qos srr-queue output cos-map queue 2 threshold 1 2
! CoS 2 is mapped to egress Q2T1
C3750-E(config)#mls qos srr-queue output cos-map queue 2 threshold 2 3
! CoS 3 is mapped to egress Q2T2
C3750-E(config)#mls qos srr-queue output cos-map queue 2 threshold 3 6 7
! CoS 6 and 7 are mapped to Q2T3
C3750-E(config)#mls qos srr-queue output cos-map queue 3 threshold 3 0
! CoS 0 is mapped to Q3T3 (the tail of the default queue)
C3750-E(config)#mls qos srr-queue output cos-map queue 4 threshold 3 1
! CoS 1 is mapped to Q4T3 (tail of the less-than-best-effort queue)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 41
Catalyst 2960/2975/3560/3750 QoS Design 1P3Q3T Egress Queuing Model Example – Part 3 of 4
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099462
! This section configures egress DSCP-to-Queue mappings
C3750-E(config)# mls qos srr-queue output dscp-map queue 1 threshold 3 32 40 46
! DSCP CS4, CS5 and EF are mapped to egress Q1T3 (tail of the PQ)
C3750-E(config)# mls qos srr-queue output dscp-map queue 2 threshold 1 16 18 20 22
! DSCP CS2 and AF2 are mapped to egress Q2T1
C3750-E(…)# mls qos srr-queue output dscp-map queue 2 threshold 1 26 28 30 34 36 38
! DSCP AF3 and AF4 are mapped to egress Q2T1
C3750-E(config)#mls qos srr-queue output dscp-map queue 2 threshold 2 24
! DSCP CS3 is mapped to egress Q2T2
C3750-E(config)#mls qos srr-queue output dscp-map queue 2 threshold 3 48 56
! DSCP CS6 and CS7 are mapped to egress Q2T3
C3750-E(config)#mls qos srr-queue output dscp-map queue 3 threshold 3 0
! DSCP DF is mapped to egress Q3T3 (tail of the best effort queue)
C3750-E(config)#mls qos srr-queue output dscp-map queue 4 threshold 1 8
! DSCP CS1 is mapped to egress Q4T1
C3750-E(config)# mls qos srr-queue output dscp-map queue 4 threshold 2 10 12 14
! DSCP AF1 is mapped to Q4T3 (tail of the less-than-best-effort queue)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 42
Catalyst 2960/2975/3560/3750 QoS Design 1P3Q3T Egress Queuing Model Example – Part 4 of 4
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099462
! This section configures interface egress queuing parameters
C3750-E(config)#interface range GigabitEthernet1/0/1-48
C3750-E(config-if-range)# queue-set 1
! The interface(s) is assigned to queue-set 1
C3750-E(config-if-range)# srr-queue bandwidth share 1 30 35 5
! The SRR sharing weights are set to allocate 30% BW to Q2
! 35% BW to Q3 and 5% BW to Q4
! Q1 SRR sharing weight is ignored, as it will be configured as a PQ
C3750-E(config-if-range)# priority-queue out
! Q1 is enabled as a strict priority queue
Verified with: •show mls qos queue-set
•show mls qos maps cos-output-q
•show mls qos maps dscp-output-q
•show mls qos interface interface x/y queueing
•show mls qos interface interface x/y statistics
Note: CoS-to-queue mappings are only required if some switch ports are configured to trust-CoS on ingress.
Note Non-standard DSCP-to-queue mappings are not shown in the configurations in this chapter for the sake of simplicity
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 43
Catalyst 2960/2975/3560/3750 QoS Design EtherChannel QoS Design
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1132861
! This section configures the (logical) EtherChannel interface
C3750-E(config)# interface Port-channel1
C3750-E(config-if)# description ETHERCHANNEL-TRUNK-TO-DISTRIBUTION-LAYER
C3750-E(config-if)# switchport mode trunk
C3750-E(config-if)# switchport trunk encapsulation dot1q
C3750-E(config-if)# switchport trunk allowed vlan 10,110
! This section configures QoS across the (physical) EtherChannel member-ports
C3750-E(config)# interface range TenGigabitEthernet1/0/1-2
C3750-E(config-if-range)# description PORT-CHANNEL1-PHYSICAL-PORT-MEMBER
C3750-E(config-if-range)# switchport mode trunk
C3750-E(config-if-range)# switchport trunk encapsulation dot1q
C3750-E(config-if-range)# switchport trunk allowed vlan 10,110
C3750-E(config-if-range)# channel-group 1 mode auto
! Associates the physical ports with the logical EtherChannel bundle
C3750-E(config-if-range)# mls qos trust dscp
! The physical port-member interfaces are set to statically trust DSCP
C3750-E(config-if-range)# queue-set 1
! The interfaces are assigned to queue-set 1
C3750-E(config-if-range)# srr-queue bandwidth share 1 30 35 5
! The SRR sharing weights are set to allocate 30% BW to Q2
! 35% BW to Q3 and 5% BW to Q4
! Q1 SRR sharing weight is ignored, as it will be configured as a PQ
C3750-E(config-if-range)# priority-queue out
! Q1 is enabled as a strict priority queue
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 44
auto qos classify { police } auto qos classify
auto qos trust { cos | dscp }
auto qos video [ cts | ip-camera ]
1P
1Q
3T
In
gre
ss Q
ueu
ing
Po
lic
ies
Multimedia Conferencing
Classifier
Signaling Classifier
Transactional Data Classifier
Bulk Data Classifier
Scavenger Classifier
Best Effort (Class-Default)
Mark AF41
Mark CS3
Mark AF21
Mark AF11
Mark CS1
Mark DF
MM-Conf Policer (<5 Mbps)
Signaling Policer (<32 kbps)
Trans-Data Policer (<10 Mbps)
Bulk Data Policer (<10 Mbps)
Best Effort Policer (<10 Mbps)
Scavenger Policer (<10 Mbps)
Remark to CS1
Remark to CS1
Remark to CS1
Drop
Drop
Drop
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
1P
3Q
3T
Eg
ress
Qu
eu
ing
Po
lic
ies
auto qos voip [ cisco-phone | cisco-softphone | trust ]
Catalyst 2960/2975/3560/3750 G/E/X QoS Design AutoQoS SRND4 Models
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1144082
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 45
Catalyst 2960/2975/3560/3750 G/E/X QoS Design AutoQoS SRND4 – auto qos trust { cos | dscp }
interface GigabitEthernet1/0/1
description L2-ACCESS-PORT
switchport access vlan 10
switchport voice vlan 110
…
mls qos trust cos
! AutoQoS has configured the port to static CoS-trust
auto qos trust
spanning-tree portfast
Layer 2 Switch Port Example: C3750-E(config-if)#auto qos trust
Layer 3 Routed Interface Example: C3750-E(config-if)#auto qos trust
interface GigabitEthernet1/0/48
description L3-ROUTED-INTERFACE
no switchport
ip address 10.0.1.103 255.255.255.0
…
mls qos trust dscp
! AutoQoS has configured the port to static DSCP-trust
auto qos trust
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1144096
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 46
Catalyst 2960/2975/3560/3750 G/E/X QoS Design AutoQoS SRND4 – auto qos video [ cts | ip-camera ]
interface GigabitEthernet1/0/1
description L2-ACCESS-PORT-TO-CTS
switchport access vlan 10
switchport voice vlan 110
…
mls qos trust device cts
! AutoQoS has configured a conditional-trust policy for cts devices
mls qos trust cos
! AutoQoS has configured CoS-trust to be dynamically extended
auto qos video cts
C3750-E(config-if)#auto qos video cts
C3750-E(config-if)#auto qos video ip-camera
interface GigabitEthernet1/0/1
description L2-ACCESS-PORT-TO-IPVS-CAMERA
switchport access vlan 10
switchport voice vlan 110
…
mls qos trust device ip-camera
! AutoQoS has configured a conditional-trust policy for ip-camera devices
mls qos trust dscp
! AutoQoS has configured DSCP-trust to be dynamically extended
auto qos video ip-camera
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1144284
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 47
Catalyst 2960/2975/3560/3750 G/E/X QoS Design AutoQoS SRND4 – auto qos classify
! This section defines the policy-map for AutoQoS-Classify
policy-map AUTOQOS-SRND4-CLASSIFY-POLICY
class AUTOQOS_MULTIENHANCED_CONF_CLASS
set dscp af41
! Marks Multimedia Conferencing traffic to AF41
class AUTOQOS_BULK_DATA_CLASS
set dscp af11
! Marks Bulk Data traffic to AF11
class AUTOQOS_TRANSACTION_CLASS
set dscp af21
! Marks Transactional Data traffic to AF21
class AUTOQOS_SCAVANGER_CLASS
set dscp cs1
! Marks Scavenger traffic to CS1
class AUTOQOS_SIGNALING_CLASS
set dscp cs3
! Marks Signaling traffic to CS3
class AUTOQOS_DEFAULT_CLASS
set dscp default
! An explicit default class marks Best Effort traffic to DF
!
C3750-E(config-if)#auto qos classify Class-maps and IP ACLs omitted for brevity
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1144464
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 48
Catalyst 2960/2975/3560/3750 G/E/X QoS Design AutoQoS SRND4 – auto qos classify police
policy-map AUTOQOS-SRND4-CLASSIFY-POLICE-POLICY
class AUTOQOS_MULTIENHANCED_CONF_CLASS
set dscp af41
police 5000000 8000 exceed-action drop
! Multimedia-conferencing is marked AF41 and policed to drop at 5 Mbps
class AUTOQOS_BULK_DATA_CLASS
set dscp af11
police 10000000 8000 exceed-action policed-dscp-transmit
! Bulk-data is marked AF11 and policed to remark (to CS1) at 10 Mbps
class AUTOQOS_TRANSACTION_CLASS
set dscp af21
police 10000000 8000 exceed-action policed-dscp-transmit
! Transactional data is marked AF21 and policed to remark (to CS1) at 10 Mbps
class AUTOQOS_SCAVANGER_CLASS
set dscp cs1
police 10000000 8000 exceed-action drop
! Scavenger traffic is marked CS1 and policed to drop at 10 Mbps
class AUTOQOS_SIGNALING_CLASS
set dscp cs3
police 32000 8000 exceed-action drop
! Signaling is marked CS3 and policed to drop at 32 kbps
class AUTOQOS_DEFAULT_CLASS
set dscp default
police 10000000 8000 exceed-action policed-dscp-transmit
! An explicit default class marks all other IP traffic to DF
! and polices all other IP traffic to remark (to CS1) at 10 Mbps!
C3750-E(config-if)#auto qos classify police
Class-maps and IP ACLs omitted for brevity
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 49
auto qos voip cisco-phone
auto qos voip cisco-softphone
auto qos voip trust
1P
1Q
3T
In
gre
ss Q
ueu
ing
Po
lic
ies
VoIP Classifier
Signaling Classifier
Multimedia Conferencing
Classifier
Signaling Classifier
Transactional Data Classifier
Bulk Data Classifier
Scavenger Classifier
Best Effort (Class-Default)
Mark EF
Mark CS3
Mark AF41
Mark CS3
Mark AF21
Mark AF11
Mark CS1
Mark DF
VoIP Policer (<128 kbps)
Signaling Policer (<32 kbps)
MM-Conf Policer (<5 Mbps)
Signaling Policer (<32 kbps)
Trans-Data Policer (<10 Mbps)
Bulk Data Policer (<10 Mbps)
Best Effort Policer (<10 Mbps)
Scavenger Policer (<10 Mbps)
Remark to CS1
Remark to CS1
Remark to CS1
Remark to CS1
Remark to CS1
Drop
Drop
Drop
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
1P
3Q
3T
Eg
ress
Qu
eu
ing
Po
lic
ies
VoIP Classifier
Signaling Classifier
Mark EF
Mark CS3
VoIP Policer (<128 kbps)
Signaling Policer (<32 kbps)
Remark to CS1
Remark to CS1
Yes
No
Yes
No
Best Effort (Class-Default) Mark DF Best Effort Policer (<10 Mbps) Remark to CS1
Yes
No
Catalyst 2960/2975/3560/3750 G/E/X QoS Design AutoQoS VoIP (SRND4) Models
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 50
Catalyst 2960/2975/3560/3750 G/E/X QoS Design AutoQoS SRND4 – auto qos voip cisco-phone
! This section defines the AutoQoS-VoIP-Cisco-Phone (SRND4) Policy-Map
policy-map AUTOQOS-SRND4-CISCOPHONE-POLICY
class AUTOQOS_VOIP_DATA_CLASS
set dscp ef
police 128000 8000 exceed-action policed-dscp-transmit
! Voice is marked to DSCP EF and policed (to remark) if exceeding 128 kbps
class AUTOQOS_VOIP_SIGNAL_CLASS
set dscp cs3
police 32000 8000 exceed-action policed-dscp-transmit
! Signaling is marked to DSCP CS3 and policed (to remark) if exceeding 32 kbps
class AUTOQOS_DEFAULT_CLASS
set dscp default
police 10000000 8000 exceed-action policed-dscp-transmit
! An explicit default class marks all other IP traffic to DF
! and polices all other IP traffic to remark (to CS1) at 10 Mbps
!
C3750-E(config-if)#auto qos voip cisco-phone
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1144685
Class-maps omitted for brevity
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 51
Catalyst 2960/2975/3560/3750 G/E/X QoS Design AutoQoS SRND4 – auto qos voip cisco-softphone policy-map AUTOQOS-SRND4-SOFTPHONE-POLICY
class AUTOQOS_VOIP_DATA_CLASS
set dscp ef
police 128000 8000 exceed-action policed-dscp-transmit
! Voice is marked to DSCP EF and policed (to remark) if exceeding 128 kbps
class AUTOQOS_VOIP_SIGNAL_CLASS
set dscp cs3
police 32000 8000 exceed-action policed-dscp-transmit
! Signaling is marked to DSCP CS3 and policed (to remark) if exceeding 32 kbps
class AUTOQOS_MULTIENHANCED_CONF_CLASS
set dscp af41
police 5000000 8000 exceed-action drop
! MM-Conf is marked to DSCP AF41 and policed (to drop) if exceeding 5 Mbps
class AUTOQOS_BULK_DATA_CLASS
set dscp af11
police 10000000 8000 exceed-action policed-dscp-transmit
! Bulk Data is marked to DSCP AF11 and policed (to remark) if exceeding 10 Mbps
class AUTOQOS_TRANSACTION_CLASS
set dscp af21
police 10000000 8000 exceed-action policed-dscp-transmit
! Trans-Data is marked to DSCP AF21 and policed (to remark) if exceeding 10 Mbps
class AUTOQOS_SCAVANGER_CLASS
set dscp cs1
police 10000000 8000 exceed-action drop
! Scavenger is marked to DSCP CS1 and policed (to drop) if exceeding 10 Mbps
class AUTOQOS_SIGNALING_CLASS
set dscp cs3
police 32000 8000 exceed-action drop
! Signaling is marked to DSCP CS3 and policed (to drop) if exceeding 32 kbps
class AUTOQOS_DEFAULT_CLASS
set dscp default
! An explicit default class marks all other IP traffic to DF
Class-maps and IP ACLs omitted for brevity
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 52
Additional AutoQoS Links
AutoQoS 1P1Q3T Ingress Queuing Policies http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1144932
AutoQoS Egress 1P3Q3T Queuing Policies http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1144981
AutoQoS on EtherChannel http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1145082
Removing AutoQoS http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1145119
AutoQoS At-A-Glance http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/autoqosmediacampus.pdf
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 53
Catalyst 4500/4900 & 4500-E/4900M QoS Design
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 54
Campus QoS Design
Business and Technical Drivers for QoS Design Update
Campus QoS Design Considerations and Models
Catalyst 2960/2975 & 3560/3750 QoS Design
Catalyst 4500/4900 & 4500-E/4900M QoS Design
Catalyst 6500/6500-E QoS Design
Agenda
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 55
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099634
Classify RX
Queue 1
Queue 2
Queue 3
Queue 4
Ingress/
Egress
Police
Shaping
Sharing
Scheduling TX
NFL2
(Enhanced
QoS)
Dynamic
Buffer
Limiting
QoS Actions at
Supervisor Forwarding ASIC
QoS Actions
at Scheduling ASIC
Enters
Fabric
Leaves
Fabric
Per Port
Classify RX
Queue 1
Queue 2 Ingress/
Egress
Police
Shaping
Sharing
Scheduling TX
Egress
Classify
On Ingress
Actions
Dynamic
Buffer
Limiting
QoS Actions at
VFE Forwarding ASIC
QoS Actions
at IPP ASIC
Enters
Fabric
Leaves
Fabric
User
Defined
SP Queue
Catalyst 4500/4900 & 4500-E/4900M QoS Design Catalyst 4500/4900 QoS Architecture
Catalyst 4500-E/4900M QoS Architecture
Queue 8
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 56
Catalyst 4500/4900 & 4500-E/4900M QoS Design
Centralized Buffer shared between all front panel Port Queues.
Queue size per port is measured in terms of Packets.
Catalyst 4500 “Classic Supervisors” use qos
Includes: Supervisor II-Plus, Supervisor II-Plus-TS Supervisor II-Plus-10GE, Supervisor IV,Supervisor V, Supervisor V-10GE
Trust is supported
Queuing is 1P3Q1T with DBL (Q3 is PQ)
No “mls” prefix in command syntax
Catalyst Supervisor 6-E (and 4900M) use MQC
QoS is enabled by default
Trust is implicit
Queuing is (up to) 1P7Q1T with Dynamic Buffer Limiting (DBL)
Syntax is MQC
Both families support Control Plane Policing
Platform-Specific Considerations
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099677
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 57
Catalyst 4500/4900 & 4500-E/4900M QoS Design
Trust Models
Trust-CoS Model
Trust-DSCP Model
Conditional Trust Model
Marking Models
Per-Port Marking Model
Per-VLAN Marking Model
Policing Models
Per-Port Policing Model
Per-Port/Per-VLAN Policing Model
User-Based Rate Limiting Model
Queuing Models
Egress Queuing 1P3Q1T+DBL Model
Control Plane Policing
CoPP Model
Classic Supervisor QoS Models
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099634
Marking Models
Per-Port Marking Model
Per-VLAN Marking Model
Policing Models
Per-Port Policing Model
Per-Port/Per-VLAN Policing Model
Queueing Models
Egress Queuing 1P7Q1T+DBL Model
Control Plane Policing
CoPP Model
Supervisor 6-E / 7-E QoS Models
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 58
Catalyst 4500/4900 QoS Design Enabling QoS and Trust Models
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099708
C4500-CS(config)#qos
Verified with: •show qos
Enabling QoS:
C4500-CS(config)#qos map cos 5 to dscp 46
! CoS 5 is mapped to DSCP 46 (EF)
C4500-CS(config)#interface GigabitEthernet 1/1
C4500-CS(config-if)#qos trust cos
! The interface is set to statically trust CoS
Verified with: •show qos interface
•show qos map cos-dscp
Trust-CoS Model Example:
C4500-CS(config-if)#qos trust dscp
Trust-DSCP Model Example:
C4500-CS(config-if)# qos trust device cisco-phone
Conditional-Trust Model Example (can be combined with Trust-CoS/DSCP):
Note: Conditional trust is the only trust model supported on the Catalyst
4500-E Supervisor 6-E; all the other trust states are implicit on this platform.
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 59
Catalyst 4500-E Sup 6-E / 7-E QoS Design Conditional Trust Model Example (Cisco IP Phone)
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1166660
! This section defines the class-maps to match Voice and Signaling
C4500-E(config-cmap)# class-map match-all VOICE
C4500-E(config-cmap)# match cos 5
C4500-E(config-cmap)# class-map match-all SIGNALING
C4500-E(config-cmap)# match cos 3
! This section defines the CoS-to-DSCP remarking policy-map
C4500-E(config-cmap)# policy-map CISCO-IPPHONE
C4500-E(config-pmap)# class VOICE
C4500-E(config-pmap-c)# set dscp ef
! Maps CoS 5 to DSCP EF
C4500-E(config-pmap-c)# class SIGNALING
C4500-E(config-pmap-c)# set dscp cs3
! Maps CoS 3 to DSCP CS3
C4500-E(config-pmap-c)# class class-default
C4500-E(config-pmap-c)# set dscp default
! All other traffic is set to DSCP DF
! This section applies conditional trust and the policy-map to the int(s)
C4500-E(config-pmap-c)# interface GigabitEthernet 3/1
C4500-E(config-if)# qos trust device cisco-phone
! Applies conditional-trust to the switch port
C4500-E(config-if)# service-policy input CISCO-IPPHONE
! Attaches the CoS-to-DSCP mapping policy-map
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 60
Catalyst 4500/4900 & 4500-E/4900M QoS Design Marking Model Example
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099841
C4500-CS(config)#policy-map PER-PORT-MARKING
C4500-CS(config-pmap)# class VVLAN-VOIP
C4500-CS(config-pmap-c)# set dscp ef
! VoIP is marked EF
C4500-CS(config-pmap-c)# class VVLAN-SIGNALING
C4500-CS(config-pmap-c)# set dscp cs3
! Signaling (from the VVLAN) is marked CS3
C4500-CS(config-pmap-c)# class MULTIMEDIA-CONFERENCING
C4500-CS(config-pmap-c)# set dscp af41
! Multimedia-conferencing is marked AF41
C4500-CS(config-pmap-c)# class SIGNALING
C4500-CS(config-pmap-c)# set dscp cs3
! Signaling (from the DVLAN) is marked CS3
C4500-CS(config-pmap-c)# class TRANSACTIONAL-DATA
C4500-CS(config-pmap-c)# set dscp af21
! Transactional Data is marked AF21
C4500-CS(config-pmap-c)# class BULK-DATA
C4500-CS(config-pmap-c)# set dscp af11
! Bulk Data is marked AF11
C4500-CS(config-pmap-c)# class SCAVENGER
C4500-CS(config-pmap-c)# set dscp cs1
! Scavenger traffic is marked CS1
C4500-CS(config-pmap-c)# class class-default
C4500-CS(config-pmap-c)# set dscp default
! An implicit class-default marks all other traffic to DF
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 61
Catalyst 4500/4900 & 4500-E/4900M QoS Design Marking Model – Per Port Application
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1099848
! This section attaches the service-policy to the interface(s)
C4500-CS(config)#interface range GigabitEthernet 2/1-48
C4500-CS(config-if-range)# switchport access vlan 10
C4500-CS(config-if-range)# switchport voice vlan 110
C4500-CS(config-if-range)# spanning-tree portfast
C4500-CS(config-if-range)# qos trust device cisco-phone
! The interface is set to conditionally-trust Cisco IP Phones
C4500-CS(config-if-range)# qos trust cos
! COS-trust will be dynamically extended to Cisco IP Phones
! This is supported on 4500 Classic Supervisors only (not the Sup6-E)
C4500-CS(config-if-range)# service-policy input INGRESS-MARKING
! Attaches the Per-Port Marking policy to the interface(s)
Note: On the Catalyst 4500 Classic Supervisors, marking commands
on an interface cannot be enabled until IP routing is enabled globally.
If IP routing is disabled globally and you try to configure the service
policy on an interface, the configuration is accepted but it does not take
effect.
To enable IP routing globally, issue the ip routing and ip cef global
configuration commands. After you do this, the marking commands
take effect.
Verified with: •show qos interface
•show class-map
•show policy-map
•show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 62
Catalyst 4500/4900 QoS Design Marking Model – Per VLAN Application (Part 1 of 2)
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100066
! This section configures conditional (CoS) trust & enables VLAN-based QoS
C4500-CS(config)#interface range GigabitEthernet 2/1-48
C4500-CS(config-if-range)# switchport access vlan 10
C4500-CS(config-if-range)# switchport voice vlan 110
C4500-CS(config-if-range)# spanning-tree portfast
C4500-CS(config-if-range)# qos trust device cisco-phone
! The interface is set to conditionally-trust Cisco IP Phones
C4500-CS(config-if-range)# qos trust cos
! COS-trust will be dynamically extended to Cisco IP Phones
C4500-CS(config-if-range)# qos vlan-based
! Enables VLAN-based QoS on the interface(s)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 63
Catalyst 4500/4900 QoS Design Marking Model – Per VLAN Application (Part 2 of 2)
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100066
! This section attaches the service-policy to the DVLAN interface
C4500-CS(config)#interface Vlan 10
C4500-CS(config-if)# description DVLAN
C4500-CS(config-if)# ip route-cache cef
! Enables IP CEF on the VLAN interface (required for marking)
C4500-CS(config-if)# service-policy input DVLAN-MARKING
! Attaches the DVLAN Per-VLAN Marking policy to the DVLAN interface
! This section attaches the service-policy to the VVLAN interface
C4500-CS(config)#interface Vlan 110
C4500-CS(config-if)# description VVLAN
C4500-CS(config-if)# ip route-cache cef
! Enables IP CEF on the VLAN interface (required for marking)
C4500-CS(config-if)# service-policy input VVLAN-MARKING
! Attaches the VVLAN Per-VLAN Marking policy to the VVLAN interface
Verified with: •show qos interface
•show class-map
•show policy-map
•show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 64
Catalyst 4500/4900 QoS Design Policing Model Example – Classic Supervisors
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100239
! This section configures the global policed-DSCP markdown map
C4500-CS(config)#qos map dscp policed 0 10 18 to dscp 8
! DSCP 0 (DF), 10 (AF11) and 18 (AF21) are marked down to 8 (CS1)
! if found to be in excess of their (respective) policing rates
! This section configures the Per-Port policing policy-map
C4500-CS(config)#policy-map PER-PORT-POLICING
C4500-CS(config-pmap)# class VVLAN-VOIP
C4500-CS(config-pmap-c)# set dscp ef
C4500-CS(config-pmap-c)# police 128k 8000 exceed-action drop
! VoIP is marked EF and policed to drop at 128 kbps
C4500-CS(config-pmap-c)# class VVLAN-SIGNALING
C4500-CS(config-pmap-c)# set dscp cs3
C4500-CS(config-pmap-c)# police 32k 8000 exceed-action drop
! (VVLAN) Signaling is marked CS3 and policed to drop at 32 kbps
…
C4500-CS(config-pmap-c)# class BULK-DATA
C4500-CS(config-pmap-c)# set dscp af11
C4500-CS(config-pmap-c)# police 10m 8000 exceed-action policed-dscp-transmit
! Bulk-data is marked AF11 and policed to remark (to CS1) at 10 Mbps
Verified with: •show qos interface •show class-map •show policy-map
•show qos maps dscp policed •show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 65
Catalyst 4500-E/4900M QoS Design Policing Model Example – Supervisor 6-E / 7-E
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100332
! This section configures the Per-Port policing policy-map
C4500-E(config)#policy-map PER-PORT-POLICING
C4500-E(config-pmap)# class VVLAN-VOIP
C4500-E(config-pmap-c)# set dscp ef
C4500-E(config-pmap-c)# police 128k bc 8000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action drop
! VoIP is marked EF and policed to drop at 128 kbps
C4500-E(config-pmap)# class VVLAN-SIGNALING
C4500-E(config-pmap-c)# set dscp cs3
C4500-E(config-pmap-c)# police 32k bc 8000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action drop
! (VVLAN) Signaling is marked CS3 and policed to drop at 32 kbps
…
C4500-E(config-pmap)# class BULK-DATA
C4500-E(config-pmap-c)# set dscp af11
C4500-E(config-pmap-c)# police 10m bc 8000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action set-dscp-transmit cs1
! Bulk-data is marked AF11 and policed to remark (to CS1) at 10 Mbps
Note: The per-port policing model is essentially the same for the
Catalyst 4500-E Supervisor 6-E, except that it does not require a
global policed-DSCP map and thus the policing commands are
slightly different.
Verified with: •show qos interface
•show class-map •show policy-map
•show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 66
Catalyst 4500/4900 & 4500-E/4900M QoS Design Policing Models – Per-Port/Per-VLAN Application
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100409
! This section attaches the policy to the VLANs on a Per-Port basis
C4500-CS(config)#interface range GigabitEthernet 2/1-48
C4500-CS(config-if-range)# switchport access vlan 10
C4500-CS(config-if-range)# switchport voice vlan 110
C4500-CS(config-if-range)# spanning-tree portfast
C4500-CS(config-if-range)# qos trust device cisco-phone
! The interface is set to conditionally-trust Cisco IP Phones
C4500-CS(config-if-range)# qos trust cos
! CoS-trust will be dynamically extended to Cisco IP Phones
! This is supported on 4500 Classic Supervisors only (not the Sup6-E)
C4500-CS(config-if-range)# vlan 10
C4500-CS(config-if-vlan-range)# service-policy input DVLAN-POLICERS
! Attaches the Per-Port/Per-VLAN DVLAN Policing policy to the
! DVLAN of the trunked interface(s)
C4500-CS(config-if-range)# vlan 110
C4500-CS(config-if-vlan-range)# service-policy input VVLAN-POLICERS
! Attaches the Per-Port/Per-VLAN VVLAN Policing policy to the
! VVLAN of the trunked interface(s)
Note: The Per-Port/Per-VLAN policing model is essentially the same
for the Classic Supervisors as the Supervisor 6-E, except that the
latter does not require a global policed-DSCP map and thus the
policing commands are slightly different (as shown in the previous
slides). Also the “trust cos” statement is not supported (or needed) on
the Sup 6-E.
Verified with: •show qos interface
•show class-map
•show policy-map
•show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 67
Catalyst 4500/4900 QoS Design UBRL Model Example (SupV-10GE Only)
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100588
! This section configures the global policed-DSCP markdown map
C4500-SupV-10GE(config)#qos map dscp policed 0 10 18 24 34 46 to dscp 8
! DSCP 0 (DF), 10 (AF11) and 18 (AF21), 24 (CS3), 34 (AF41) & 46 (EF)
! are marked down to 8 (CS1)if found to be in excess of their
! (respective) policing rates
! This section defines the sourced-based microflow class-map
C4500-SupV-10GE(config)#class-map match-all ENDPOINTS
C4500-SupV-10GE(config-cmap)# match flow ip source-address
! All flows sharing a unique source IP address will be matched
! This section defines the aggregate per-source-IP UBRL policer
C4500-SupV-10GE(config)#policy-map UBRL
C4500-SupV-10GE(config-pmap)# class ENDPOINTS
C4500-SupV-10GE(config-pmap-c)# police 50m 8000 byte conform-action transmit
exceed-action policed-dscp-transmit
! Any flows from a single source IP address
! will be remarked to CS1 if exceeding 50 Mbps
Verified with: •show qos interface •show class-map •show policy-map
•show qos maps dscp policed
•show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 68
Network Management
Signaling
Realtime Interactive
Transactional Data
Multimedia Conferencing
Bulk Data
AF2
CS3
CS4
AF4
CS2
AF1
Scavenger CS1
Best Effort DF
Multimedia Streaming AF3
Broadcast Video
VoIP
Application
CS5
EF
Internetwork Control CS6
DSCP
Network Control (CS7)
Q3 (30%)
Priority Queue
1P3Q1T (+DBL)
Queue 4 (30%)
Queue 2
(35%) DF
AF3
CS2
AF4
CS6
EF
CS5
CS7
AF2
CS3
Queue 1 (5%) AF1
CS1
CS4
Catalyst 4500 Classic Supervisor QoS Design 1P3Q1T+DBL Egress Queuing Model
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100731
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 69
Catalyst 4500 Classic Supervisor QoS Design 1P3Q1T+DBL Egress Queuing Model Example – Part 1 of 3
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100731
! This section enables and configures DBL
C4500-CS(config)#qos dbl
! DBL is globally enabled
C4500-CS(config)#no qos dbl dscp-based 32
C4500-CS(config)#no qos dbl dscp-based 40
C4500-CS(config)#no qos dbl dscp-based 46
! DBL is explicitly disabled on DSCP CS4, CS5 and EF
! as these DSCP values are assigned to the PQ
! and as such should never experience congestion avoidance drops
C4500-CS(config)#qos dbl exceed-action ecn
! DBL will mark IP ECN bits in the event of congestion
! This section configures the DBL policy-map
C4500-CS(config)#policy-map DBL
C4500-CS(config-pmap)# class class-default
C4500-CS(config-pmap-c)# dbl
! DBL is enabled on all flows
! (with the exception of DSCP CS4, CS5 and EF)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 70
Catalyst 4500 Classic Supervisor QoS Design 1P3Q1T+DBL Egress Queuing Model Example – Part 2 of 3
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100731
! This section configures the DSCP-to-Queue mappings
C4500-CS(config)#qos map dscp 8 10 12 14 to tx-queue 1
! DSCP CS1 and AF1 are mapped to Q1 (the less than best effort queue)
C4500-CS(config)#qos map dscp 0 to tx-queue 2
! DSCP DF is mapped to Q2 (the best effort/default queue)
C4500-CS(config)#qos map dscp 32 40 46 to tx-queue 3
! DSCP CS4, CS5 and EF are mapped to Q3 (the PQ)
C4500-CS(config)#qos map dscp 16 18 20 22 to tx-queue 4
! DSCP CS2 and AF2 are mapped to Q4 (guaranteed BW queue)
C4500-CS(config)#qos map dscp 24 26 28 30 to tx-queue 4
! DSCP CS3 and AF3 are mapped to Q4 (guaranteed BW queue)
C4500-CS(config)#qos map dscp 34 36 38 to tx-queue 4
! DSCP AF4 is mapped to Q4 (guaranteed BW queue)
C4500-CS(config)#qos map dscp 48 56 to tx-queue 4
! DSCP CS6 and CS7 are mapped to Q4 (guaranteed BW queue)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 71
Catalyst 4500 Classic Supervisor QoS Design 1P3Q1T+DBL Egress Queuing Model Example – Part 3 of 3
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100731
! This section configures the interface(s) for egress queuing
C4500-CS(config)#interface range GigabitEthernet 1/1-2
C4500-CS(config-if-range)# tx-queue 1
C4500-CS(config-if-tx-queue)# bandwidth percent 5
! Q1 (less than best effort queue) is assigned 5% BW
C4500-CS(config-if-tx-queue)# tx-queue 2
C4500-CS(config-if-tx-queue)# bandwidth percent 35
! Q2 (default/best effort queue) is assigned 35% BW
C4500-CS(config-if-tx-queue)# tx-queue 3
C4500-CS(config-if-tx-queue)# priority high
C4500-CS(config-if-tx-queue)# bandwidth percent 30
C4500-CS(config-if-tx-queue)# shape percent 30
! Q3 is enabled as a PQ and assigned 30% BW
! Additionally Q3 is shaped (limited) to 30%
C4500-CS(config-if-tx-queue)# tx-queue 4
C4500-CS(config-if-tx-queue)# bandwidth percent 30
! Q4 (guaranteed BW queue) is assigned 30% BW
C4500-CS(config-if-range)# service-policy output DBL
! DBL policy-map is attached to the interface(s)
Verified with: •show qos interface •show class-map •show policy-map
•show policy-map interface •show qos dbl
•show qos maps dscp tx-queue
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 72
Network Management
Signaling
Realtime Interactive
Transactional Data
Multimedia Conferencing
Bulk Data
AF2
CS3
CS4
AF4
CS2
AF1
Scavenger CS1
Best Effort DF
Multimedia Streaming AF3
Broadcast Video
VoIP
Application
CS5
EF
Internetwork Control CS6
DSCP
Network Control (CS7)
1P7Q1T (+DBL)
PQ (30%)
EF
CS5
CS4
Q7 (10%) CS7 & CS6
CS3 & CS2
Q6 (10%)
Q5 (10%)
Q4 (10%)
Q3 (4%)
Q2 (1%)
Q1 (25%) DF
AF1
CS1
AF2
AF3
AF4
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100873
Catalyst 4500 Supervisor 6-E / 7-E QoS Design 1P7Q1T+DBL Egress Queuing Model
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 73
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100873
Catalyst 4500 Supervisor 6-E / 7-E QoS Design 1P7Q1T+DBL Egress Queuing Model Example – Part 1 of 3
! This section configures the class-maps for the egress queuing policy
! Note: these class-maps require unique names from any ingress
! policy class-maps; otherwise classification errors may occur
! due to overlapping classification logic
C4500-E(config)#class-map match-any PRIORITY-QUEUE
C4500-E(config-cmap)# match dscp ef
C4500-E(config-cmap)# match dscp cs5
C4500-E(config-cmap)# match dscp cs4
! VoIP (EF), Broadcast Video (CS5) and Realtime Interactive (CS4)
! are all mapped to the PQ
C4500-E(config)#class-map match-any CONTROL-MGMT-QUEUE
C4500-E(config-cmap)# match dscp cs7
C4500-E(config-cmap)# match dscp cs6
C4500-E(config-cmap)# match dscp cs3
C4500-E(config-cmap)# match dscp cs2
! Network Control (CS7), Internetwork Control (CS6),
! Signaling (CS3) and Management (CS2) are mapped
! to a Control/Management Queue
C4500-E(config)#class-map match-all MULTIMEDIA-CONFERENCING-QUEUE
C4500-E(config-cmap)# match dscp af41 af42 af43
! Multimedia Conferencing (AF4) is assigned a dedicated queue
C4500-E(config)#class-map match-all MULTIMEDIA-STREAMING-QUEUE
C4500-E(config-cmap)# match dscp af31 af32 af33
! Multimedia Streaming (AF3) is assigned a dedicated queue
…
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 74
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100873
Catalyst 4500 Supervisor 6-E / 7-E QoS Design 1P7Q1T+DBL Egress Queuing Model Example – Part 2 of 3
C4500-E(config)#class-map match-all TRANSACTIONAL-DATA-QUEUE
C4500-E(config-cmap)# match dscp af21 af22 af23
! Transactional Data (AF2) is assigned a dedicated queue
C4500-E(config)#class-map match-all BULK-DATA-QUEUE
C4500-E(config-cmap)# match dscp af11 af12 af13
! Bulk Data (AF1) is assigned a dedicated queue
C4500-E(config)#class-map match-all SCAVENGER-QUEUE
C4500-E(config-cmap)# match dscp cs1
! Scavenger (CS1) is assigned a dedicated queue
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 75
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1100873
Catalyst 4500 Supervisor 6-E / 7-E QoS Design 1P7Q1T+DBL Egress Queuing Model Example – Part 3 of 3
C4500-E(config)#policy-map 1P7Q1T
C4500-E(config-pmap-c)# class PRIORITY-QUEUE
C4500-E(config-pmap-c)# priority
C4500-E(config-pmap-c)# class CONTROL-MGMT-QUEUE
C4500-E(config-pmap-c)# bandwidth remaining percent 10
C4500-E(config-pmap-c)# class MULTIMEDIA-CONFERENCING-QUEUE
C4500-E(config-pmap-c)# bandwidth remaining percent 10
C4500-E(config-pmap-c)# class MULTIMEDIA-STREAMING-QUEUE
C4500-E(config-pmap-c)# bandwidth remaining percent 10
C4500-E(config-pmap-c)# class TRANSACTIONAL-DATA-QUEUE
C4500-E(config-pmap-c)# bandwidth remaining percent 10
C4500-E(config-pmap-c)# dbl
C4500-E(config-pmap-c)# class BULK-DATA-QUEUE
C4500-E(config-pmap-c)# bandwidth remaining percent 4
C4500-E(config-pmap-c)# dbl
C4500-E(config-pmap-c)# class SCAVENGER-QUEUE
C4500-E(config-pmap-c)# bandwidth remaining percent 1
C4500-E(config-pmap-c)# class class-default
C4500-E(config-pmap-c)# bandwidth remaining percent 25
C4500-E(config-pmap-c)# dbl
C4500-E(config)#interface range TenGigabitEthernet 1/1-2
C4500-E(config-if-range)# service-policy output 1P7Q1T
Verified with: •show class-map
•show policy-map
•show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 76
Catalyst 4500/4900 & 4500-E/4900M QoS Design CoPP Model
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1101059
…
Ingress Control Plane
Forwarding ASICs
Switch CPU
Control
and CPU
bound
traffic
Linecard Linecard
16 CPU
Queues
Backplane Data
traffic
Apply: Pre-configured System Traffic Types
and / or
User-Configurable Traffic Types
User-Defined CoPP Policies
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 77
Catalyst 4500/4900 & 4500-E/4900M QoS Design CoPP Model Example – Part 1 of 2
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1101059
! This section defines the CoPP Policy
C4500-E(config-cmap)#policy-map system-cpp-policy
C4500-E(config-pmap)# class COPP-BGP
C4500-E(config-pmap-c)# police cir 4000000 bc 400000 be 400000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action drop
! Polices BGP to 4 Mbps
C4500-E(config-pmap)# class COPP-IGP
C4500-E(config-pmap-c)# police cir 300000 bc 3000 be 3000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action drop
! Polices IGP to 300 kbps
C4500-E(config-pmap)# class COPP-INTERACTIVE-MANAGEMENT
C4500-E(config-pmap-c)# police cir 500000 bc 5000 be 5000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action drop
! Polices Interactive Management to 500 kbps
C4500-E(config-pmap)# class COPP-FILE-MANAGEMENT
C4500-E(config-pmap-c)# police cir 6000000 bc 60000 be 60000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action drop
! Polices File Management to 6 Mbps
…
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 78
Catalyst 4500/4900 & 4500-E/4900M QoS Design CoPP Model Example – Part 2 of 2
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1101059
C4500-E(config-pmap)# class COPP-MONITORING
C4500-E(config-pmap-c)# police cir 900000 bc 9000 be 9000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action drop
! Polices Monitoring to 900 kbps
C4500-E(config-pmap)# class COPP-CRITICAL-APPLICATIONS
C4500-E(config-pmap-c)# police cir 900000 bc 9000 be 9000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action drop
! Polices Critical Applications to 900 Kbps
C4500-E(config-pmap)# class COPP-UNDESIRABLE
C4500-E(config-pmap-c)# police cir 32000 bc 3000 be 3000
C4500-E(config-pmap-c-police)# conform-action drop
C4500-E(config-pmap-c-police)# exceed-action drop
! Polices all Undesirable traffic (conform-action is drop)
C4500-E(config-pmap)# class class-default
C4500-E(config-pmap-c)# police cir 500000 bc 5000 be 5000
C4500-E(config-pmap-c-police)# conform-action transmit
C4500-E(config-pmap-c-police)# exceed-action drop
! Polices all other Control Plane traffic to 500 kbps
! This section attaches the CoPP policy to the Control Plane
C4500-E(config)#control-plane
C4500-E(config-cp)# service-policy input system-cpp-policy
! Attaches CoPP policy to control plane
Verified with: •show class-map
•show policy-map
•show policy-map control-plane
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 79
Catalyst 6500/6500-E QoS Design
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 80
Campus QoS Design
Business and Technical Drivers for QoS Design Update
Campus QoS Design Considerations and Models
Catalyst 2960/2975 & 3560/3750 QoS Design
Catalyst 4500/4900 & 4500-E/4900M QoS Design
Catalyst 6500/6500-E QoS Design
Agenda
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 81
Catalyst 6500 QoS QoS Architecture
Queue
RX ARB
Priority Q
INGRESS
Classify
&
Police
EGRESS
Classify
&
Police
Rewrite
Queue
Queue
Queue
Priority Q
WRR
ARB
TX
Incoming
encap can
be ISL,
802.1Q or
None
Scheduling: Queue and
Threshold - select based
on received CoS through
configurable MAP I/F -
CoS can be overwritten if
port untrusted
Police via ACLs - Police
actions include Forward,
Mark and Drop.
Based on Burst (Token
Bucket) and Byte Rate
Rewrite
TOS field
in IP
Header
and
802.1p/ISL
CoS field
Each queue
has
configurable
thresholds -
some have
WRED
(except PQ)
Outgoing
encap can be
ISL, 802.1Q
or None
Scheduling:
Queue and
Threshold
selected based
on CoS
through a Map
De-queue uses
WRR or SRR
between the
round robin
queues
DSCP based classification
based on “trusted port” and
layer 2 info with ACL, layer 3
info with ACL and layer 4
info with ACL
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 82
Catalyst 6500/6500-E QoS Design
Dedicated per-port buffers
Buffer sizes (ingress and egress) vary by linecard family
Some cards have oversubscription ratios; others are non-blocking
Example: 6148A is oversubscribed by a ratio of 8:1
Example: 6704 is non-blocking (dual 20 Gbps connection to fabric)
Ingress queuing may be required in some designs, but not in all
Queuing Structures vary by linecard family
Recommended egress queuing structures for medianet include
1P3Q8T, 1P7Q4T, 1P7Q8T
Most C6500 linecards only support CoS-to-Queue mapping
The exception being the WS-X6708-10GE and the WS-X6716-10GE linecards, which support DSCP-to-Queue mappings
Supports Control Plane Policing
Platform-Specific Considerations
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1107330
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 83
Catalyst 6500/6500-E QoS Design
Trust Models
Trust-CoS Model
Trust-DSCP Model
Conditional-Trust Model
Marking Models
Per-Port Marking Model
Per-VLAN Marking Model
Policing Models
Per-Port Policing Model
Per-Port Microflow Policing Model
Per-VLAN Microflow Policing Model
QoS Models
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1101384
Ingress Queuing Models
8Q4T (DSCP-Based) Model
1P7Q2T (DSCP-Based) Model
Egress Queuing Models
1P3Q8T (CoS-Based) Model
1P7Q8T (CoS-Based) Model
1P7Q4T (DSCP-Based) Model
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 84
Catalyst 6500/6500-E QoS Design Enabling QoS and Trust Model Examples
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1119613
C6500-E(config)# mls qos
Verified with: •show mls qos
Enabling QoS:
C6500-E(config)# mls qos map cos-dscp 0 8 16 24 32 46 48 56
! CoS 5 (the sixth CoS value, starting from 0) is mapped to 46
C6500-E(config)#interface GigabitEthernet 2/1
C6500-E(config-if)# mls qos trust cos
! The interface is set to statically trust CoS
Verified with: •show mls qos interface
•show mls qos map cos-dscp
•show mls qos module
Trust-CoS Model Example:
C6500-E(config-if)# mls qos trust dscp
Trust-DSCP Model Example:
C6500-E(config-if)# mls qos trust device cisco-phone
Conditional-Trust Model Example (can be combined with Trust-CoS/DSCP):
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 85
Catalyst 6500/6500-E QoS Design Policing Model Example
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1120191
! This section configures the global policed-DSCP markdown map
C6500-E(config)#mls qos map policed-dscp normal-burst 0 10 18 to 8
! DSCP 0 (DF), 10 (AF11) and 18 (AF21) are marked down to 8 (CS1) if exceeding
C6500-E(config)#mls qos map policed-dscp max-burst 0 10 18 to 8
! DSCP 0 (DF), 10 (AF11) and 18 (AF21) are marked down to 8 (CS1) if violating
! This section configures the Per-Port policing policy-map
C6500-E(config)# policy-map PER-PORT-POLICING
C6500-E(config-pmap-c)# class VVLAN-VOIP
C6500-E(config-pmap-c)# police 128k 8000
C6500-E(config-pmap-c-police)# conform-action set-dscp-transmit ef
C6500-E(config-pmap-c-police)# exceed-action drop
! Conforming VoIP is marked EF and policed to drop at 128 kbps
C6500-E(config-pmap-c)# class VVLAN-SIGNALING
C6500-E(config-pmap-c)# police 32k 8000
C6500-E(config-pmap-c-police)# conform-action set-dscp-transmit cs3
C6500-E(config-pmap-c-police)# exceed-action drop
! Conforming (VVLAN) Sig is marked CS3 and policed to drop at 32 kbps
…
C6500-E(config-pmap-c)# class BULK-DATA
C6500-E(config-pmap-c)# police 10m 8000
C6500-E(config-pmap-c-police)# conform-action set-dscp-transmit af11
C6500-E(config-pmap-c-police)# exceed-action policed-dscp-transmit
! Conforming Bulk Data is marked AF11 and is policed to remark (to CS1) at 10 Mbps
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 86
Catalyst 6500/6500-E QoS Design Microflow-Policing Model Example
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1120311
! This section configures the global policed-DSCP markdown map
C6500-E(config)# mls qos map policed-dscp normal-burst 0 10 18 24 34 46 to 8
! DSCP 0 (DF), 10 (AF11), 18 (AF21), 24 (CS3), 34 (AF41) or 46 (EF)
! are marked down to 8 (CS1) if found to be exceeding
C6500-E(config)# mls qos map policed-dscp max-burst 0 10 18 24 34 46 to 8
! DSCP 0 (DF), 10 (AF11), 18 (AF21), 24 (CS3), 34 (AF41) or 46 (EF)
! are marked down to 8 (CS1) if found to be violating
C6500-E(config)#policy-map MICROFLOW-POLICING
C6500-E(config-pmap)# class class-default
C6500-E(config-pmap-c)# police flow mask src-only 50m 8000 conform-action transmit
exceed-action policed-dscp-transmit
! Any flows from a single source IP will be remarked to CS1 if exceeding 50 Mbps
! This section attaches the microflow policer to the L3 interface(s)
C6500-E(config-if)#interface range TenGigabitEthernet 3/1-2
C6500-E(config-if-range)# description L3-Dwnlnk to Access-Layer
C6500-E(config-if-range)# no switchport
C6500-E(config-if-range)# ip flow ingress
! Enables ingress Netflow on L3 interface (required for microflow)
C6500-E(config-if-range)# service-policy input MICROFLOW-POLICING
! Attaches the microflow policer to the L3 interface(s)
Verified with: •show mls qos •show mls qos module
•show mls qos maps policed-dscp
•show class-map •show policy-map •show policy-map interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 87
Cisco 6500/6500-E QoS Design Supervisors and Linecards By Egress Queuing Structures
1P7Q4T DSCP-to-Queue
• WS-X6708-10GE-3C
• WS-X6708-10GE-3CXL
• WS-X6716-10GE
1P3Q8T
• WS-SUP32-GE
• WS-SUP32-10GE
• WS-X6148A-GE-45F
• WS-X6148A-GE-TX
• WS-X6724-SFP
• WS-X6748-GE-TX
• WS-X6748-SFP
1P3Q8T
CoS-to-Queue • WS-X6704-10GE
1P7Q8T CoS-to-Queue
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1125562
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 88
Network Management
Signaling
Realtime Interactive
Transactional Data
Multimedia Conferencing
Bulk Data
AF2
CS3
CS4
AF4
CS2
AF1
Scavenger CS1
Best Effort DF
Multimedia Streaming AF3
Broadcast Video
VoIP
Application
CS5
EF
Internetwork Control CS6
DSCP
Network Control (CS7)
1P7Q8T
PQ (15%) CoS 5
Q6 (5%)
Q5 (5%)
Q4 (15%)
Q3 (15%)
Q1 (5%)
Q2 (25%) CoS 0
CoS 2
CoS 1
CoS 3
CoS 6
CoS 7
CoS 7
CoS 7
CoS 6
CoS 5
CoS 4
CoS 3
CoS 2
CoS 0
CoS
Q7 (15%)
CoS 1
CoS 4
Catalyst 6500/6500-E QoS Design 1P7Q8T (CoS-to-Queue) Egress Queuing Model
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1120674
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 89
Catalyst 6500/6500-E QoS Design 1P7Q8T (CoS-to-Queue) Egress Queuing Model – Part 1 of 3
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1120674
! This section configures 1P7Q8T (CoS-Based) Egress Queuing
C6500-E(config)#interface range TenGigabitEthernet 3/1-4
C6500-E(config-if-range)# wrr-queue queue-limit 5 25 15 15 5 5 15
! Allocates 5% to Q1, 25% to Q2, 15% to Q3, 15% to Q4,
! Allocates 5% to Q5, 5% to Q6 and 15% to Q7
C6500-E(config-if-range)# wrr-queue bandwidth 5 25 15 15 5 5 15
! Allocates 5% BW to Q1, 25% BW to Q2, 15% BW to Q3, 15% BW to Q4,
! Allocates 5% BW to Q5, 5% BW to Q6 and 15% BW to Q7
C6500-E(config-if-range)# priority-queue queue-limit 15
! Allocates 15% to the PQ
! This section enables WRED on Queues 1 through 7
C6500-E(config-if-range)# wrr-queue random-detect 1
C6500-E(config-if-range)# wrr-queue random-detect 2
C6500-E(config-if-range)# wrr-queue random-detect 3
C6500-E(config-if-range)# wrr-queue random-detect 4
C6500-E(config-if-range)# wrr-queue random-detect 5
C6500-E(config-if-range)# wrr-queue random-detect 6
C6500-E(config-if-range)# wrr-queue random-detect 7
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 90
Catalyst 6500/6500-E QoS Design 1P7Q8T (CoS-to-Queue) Egress Queuing Model – Part 2 of 3
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1120674
! This section configures WRED thresholds for Queues 1 through 7
C6500-E(config-if-range)# wrr-queue random-detect max-threshold 1 100 100 100 100 100 100 100 100
! Sets all WRED max thresholds on Q1 to 100%
C6500-E(config-if-range)# wrr-queue random-detect min-threshold 1 80 100 100 100 100 100 100 100
! Sets Q1T1 min WRED threshold to 80%; all others set to 100%
C6500-E(config-if-range)# wrr-queue random-detect max-threshold 2 100 100 100 100 100 100 100 100
! Sets all WRED max thresholds on Q2 to 100%
C6500-E(config-if-range)# wrr-queue random-detect min-threshold 2 80 100 100 100 100 100 100 100
! Sets Q2T1 min WRED threshold to 80%; all others set to 100%
C6500-E(config-if-range)# wrr-queue random-detect max-threshold 3 100 100 100 100 100 100 100 100
! Sets all WRED max thresholds on Q3 to 100%
C6500-E(config-if-range)# wrr-queue random-detect min-threshold 3 80 100 100 100 100 100 100 100
! Sets Q3T1 min WRED threshold to 80%; all others set to 100%
C6500-E(config-if-range)# wrr-queue random-detect max-threshold 4 100 100 100 100 100 100 100 100
! Sets all WRED max thresholds on Q4 to 100%
C6500-E(config-if-range)# wrr-queue random-detect min-threshold 4 80 100 100 100 100 100 100 100
! Sets Q4T1 min WRED threshold to 80%; all others set to 100%
C6500-E(config-if-range)# wrr-queue random-detect max-threshold 5 100 100 100 100 100 100 100 100
! Sets all WRED max thresholds on Q5 to 100%
C6500-E(config-if-range)# wrr-queue random-detect min-threshold 5 80 100 100 100 100 100 100 100
! Sets Q5T1 min WRED threshold to 80%; all others set to 100%
C6500-E(config-if-range)# wrr-queue random-detect max-threshold 6 100 100 100 100 100 100 100 100
! Sets all WRED max thresholds on Q6 to 100%
C6500-E(config-if-range)# wrr-queue random-detect min-threshold 6 80 100 100 100 100 100 100 100
! Sets Q6T1 min WRED threshold to 80%; all others set to 100%
C6500-E(config-if-range)# wrr-queue random-detect max-threshold 7 100 100 100 100 100 100 100 100
! Sets all WRED max thresholds on Q7 to 100%
C6500-E(config-if-range)# wrr-queue random-detect min-threshold 7 100 100 100 100 100 100 100 100
! Sets all WRED max thresholds on Q7 to 100% (disabling WRED)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 91
Catalyst 6500/6500-E QoS Design 1P7Q8T (CoS-to-Queue) Egress Queuing Model – Part 3 of 3
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1120674
! This section configures the CoS-to-Queue/Threshold mappings
C6500-E(config-if-range)# wrr-queue cos-map 1 1 1
! Maps CoS 1 (Scavenger and Bulk Data) to Q1T1
C6500-E(config-if-range)# wrr-queue cos-map 2 1 0
! Maps CoS 0 (Best Effort) to Q2T1
C6500-E(config-if-range)# wrr-queue cos-map 3 1 2
! Maps CoS 2 (Network Management and Transactional Data) to Q3T1
C6500-E(config-if-range)# wrr-queue cos-map 4 1 3
! Maps CoS 3 (Signaling and Multimedia Streaming) to Q4T1
C6500-E(config-if-range)# wrr-queue cos-map 5 1 6
! Maps CoS 6 (Internetwork Control) to Q5T1
C6500-E(config-if-range)# wrr-queue cos-map 6 1 7
! Maps CoS 7 (Network Control) to Q6T1
C6500-E(config-if-range)# wrr-queue cos-map 7 1 4
! Maps CoS 4 (Realtime Interactive & Multimedia Conferencing) to Q7T1
C6500-E(config-if-range)# priority-queue cos-map 1 5
! Maps CoS 5 (VoIP and Broadcast Video) to the PQ
Verified with: •show queueing interface
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 92
Catalyst 6500/6500-E QoS Design CoPP Model
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1120909
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 93
Catalyst 6500/6500-E QoS Design CoPP Model Example – Part 1 of 2
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1120972
! This section defines the CoPP Policy
C6500-E(config)# policy-map COPP-POLICY
C6500-E(config-pmap)# class COPP-ACL-BGP
C6500-E(config-pmap-c)# police cir 4000000 bc 400000 be 400000
C6500-E(config-pmap-c-police)# conform-action transmit
C6500-E(config-pmap-c-police)# exceed-action drop
! Polices BGP to 4 Mbps
C6500-E(config-pmap)# class COPP-ACL-IGP
C6500-E(config-pmap-c)# police cir 300000 bc 3000 be 3000
C6500-E(config-pmap-c-police)# conform-action transmit
C6500-E(config-pmap-c-police)# exceed-action drop
! Polices IGP to 300 kbps
C6500-E(config-pmap)# class COPP-ACL-INTERACTIVE-MANAGEMENT
C6500-E(config-pmap-c)# police cir 500000 bc 5000 be 5000
C6500-E(config-pmap-c-police)# conform-action transmit
C6500-E(config-pmap-c-police)# exceed-action drop
! Polices Interactive Management to 500 kbps
C6500-E(config-pmap)# class COPP-ACL-FILE-MANAGEMENT
C6500-E(config-pmap-c)# police cir 6000000 bc 60000 be 60000
C6500-E(config-pmap-c-police)# conform-action transmit
C6500-E(config-pmap-c-police)# exceed-action drop
! Polices File Management to 6 Mbps
…
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 94
Catalyst 6500/6500-E QoS Design CoPP Model Example – Part 2 of 2
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND_40/QoSCampus_40.html#wp1120972
C6500-E(config-pmap)# class COPP-ACL-MONITORING
C6500-E(config-pmap-c)# police cir 900000 bc 9000 be 9000
C6500-E(config-pmap-c-police)# conform-action transmit
C6500-E(config-pmap-c-police)# exceed-action drop
! Polices Monitoring to 900 kbps
C6500-E(config-pmap)# class COPP-ACL-CRITICAL-APPLICATIONS
C6500-E(config-pmap-c)# police cir 900000 bc 9000 be 9000
C6500-E(config-pmap-c-police)# conform-action transmit
C6500-E(config-pmap-c-police)# exceed-action drop
! Polices Critical Applications to 900 Kbps
C6500-E(config-pmap-)# class COPP-ACL-UNDESIRABLE
C6500-E(config-pmap-c)# police cir 32000 bc 3000 be 3000
C6500-E(config-pmap-c-police)# conform-action drop
C6500-E(config-pmap-c-police)# exceed-action drop
! Polices all Undesirable traffic (conform-action is drop)
C6500-E(config-pmap)# class class-default
C6500-E(config-pmap-c)# police cir 500000 bc 5000 be 5000
C6500-E(config-pmap-c-police)# conform-action transmit
C6500-E(config-pmap-c-police)# exceed-action drop
! Polices all other Control Plane traffic to 500 kbps
! This section attaches the CoPP policy to the Control Plane
C6500-E(config)#control-plane
C6500-E(config-cp)# service-policy input COPP-POLICY
! Attaches CoPP policy to control plane
Verified with: • •show class-map
•show policy-map
•show policy-map control-plane
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 95
References
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 96
Campus QoS Design for Medianet References
Cisco Business Video Solutions
http://www.cisco.com/en/US/netsol/ns813/networking_solutions_solution_segment_
home.html
Cisco Visual Networking Index
http://www.cisco.com/en/US/netsol/ns827/networking_solutions_sub_solution.html
Overview of a Medianet Architecture
http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/vrn.html
Enterprise Medianet Quality of Service Design 4.0
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND
_40/QoSIntro_40.html
Medianet Campus QoS Design 4.0
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_
SRND_40/QoSCampus_40.html
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 97
BRKCRS-2500 Recommended Reading
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 98
Complete Your Session Evaluation
Please give us your feedback!!
Complete the evaluation form you were given when you entered the room
This is session BRKCRS-2500
Don’t forget to complete the overall event evaluation form included in your registration kit
YOUR FEEDBACK IS VERY IMPORTANT FOR US!!! THANKS
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential BRKSPM-2604_c1 99
Thank you.