Skip to content

Switch DSCP to CoS Mappings Configuration

Dashboard Location: Switching > Configure > Switch Settings > Quality of Service

Quality of Service Traffic Classification Management

Switch DSCP to CoS mappings configuration in Meraki networks provides administrators with the capability to implement comprehensive Quality of Service (QoS) traffic classification, enabling precise mapping between Layer 3 DSCP (Differentiated Services Code Point) values and Layer 2 CoS (Class of Service) priorities. This functionality supports traffic prioritization, bandwidth management, application-specific QoS policies, real-time traffic optimization, and end-to-end service level assurance. DSCP to CoS mapping is essential for mixed-media environments, VoIP deployments, video conferencing systems, and enterprise applications requiring consistent network performance across Layer 2 and Layer 3 boundaries.

Diagram

Diagram

Classes

switch (meraki.domains.organizations.networks)

NameTypeConstraintMandatoryDefault Value
dscp_to_cos_mappingsList[dscp_to_cos_mappings]No

dscp_to_cos_mappings (meraki.domains.organizations.networks.switch)

NameTypeConstraintMandatoryDefault Value
dscpIntegermin: 0, max: 63Yes
cosIntegermin: 0, max: 7Yes
titleStringmin: 1, max: 127No

Examples

Example-1: The example below demonstrates switch DSCP to CoS mappings configuration using tested YAML configuration from pipeline fixtures.

meraki:
domains:
- name: "!env domain"
administrator:
name: "!env org_admin"
organizations:
- name: "!env org"
networks:
- name: "!env network_name"
product_types:
- appliance
- switch
- wireless
- camera
- sensor
- cellularGateway
switch:
dscp_to_cos_mappings:
- cos: 0
dscp: 0
title: default
- cos: 0
dscp: 10
title: AF11
- cos: 1
dscp: 18
title: AF21
- cos: 2
dscp: 26
title: AF31
- cos: 3
dscp: 34
title: AF41
- cos: 4
dscp: 46
title: EF voice
title: "Video Traffic"

DSCP Values Reference

DSCP ValueBinaryDecimalRFC ClassificationTraffic TypeRecommended CoS
0000000x000Best EffortDefault traffic0
0010000x088CS1Background1
0010100x0A10AF11Assured Forwarding1
0011000x0C12AF12Assured Forwarding1
0011100x0E14AF13Assured Forwarding1
0100000x1016CS2Standard2
0100100x1218AF21Assured Forwarding2
0101000x1420AF22Assured Forwarding2
0101100x1622AF23Assured Forwarding2
0110000x1824CS3High priority3
0110100x1A26AF31Assured Forwarding3
0111000x1C28AF32Assured Forwarding3
0111100x1E30AF33Assured Forwarding3
1000000x2032CS4Critical apps4
1000100x2234AF41Assured Forwarding4
1001000x2436AF42Assured Forwarding4
1001100x2638AF43Assured Forwarding4
1010000x2840CS5Voice bearer5
1011000x2C44Voice ControlVoIP signaling5
1011100x2E46EFVoice payload5
1100000x3048CS6Network control6
1110000x3856CS7Management6
1111110x3F63ReservedEmergency7

CoS Priority Levels

CoS ValuePriority LevelQueue AssignmentTypical UsageDrop Precedence
0Best EffortLowestDefault trafficHighest
1BackgroundLowBulk dataHigh
2StandardMedium-LowStandard appsMedium-High
3Excellent EffortMediumBusiness appsMedium
4Controlled LoadMedium-HighMultimediaMedium-Low
5Video/VoiceHighReal-time trafficLow
6Internetwork ControlHigherNetwork protocolsVery Low
7Network ControlHighestManagementLowest

Assured Forwarding Classes

AF ClassDSCP ValuesDrop PrecedenceUse CaseCoS Mapping
AF1x10, 12, 14Low, Medium, HighBackground applications1
AF2x18, 20, 22Low, Medium, HighStandard applications2
AF3x26, 28, 30Low, Medium, HighMultimedia streaming3
AF4x34, 36, 38Low, Medium, HighReal-time interactive4

Traffic Classification Scenarios

Application TypeDSCP MarkingCoS PriorityQueue BehaviorBandwidth Allocation
VoIP Voice46 (EF)5Priority queueGuaranteed minimum
VoIP Signaling24 (CS3)3High priorityReserved capacity
Video Conferencing34 (AF41)4Assured forwardingPreferential treatment
Business Applications26 (AF31)3Standard forwardingFair share
Web Browsing0 (BE)0Best effortRemaining bandwidth
File Transfers10 (AF11)1BackgroundLowest priority
Network Management56 (CS7)6Control trafficManagement reserved

QoS Implementation Strategies

StrategyImplementationConfigurationBenefit
Voice FirstVoice traffic prioritizationCoS 5 for DSCP 46Call quality assurance
Application-basedPer-application markingAF classesService differentiation
User-basedRole-based prioritiesCustom mappingsUser experience optimization
Bandwidth-basedTraffic shaping integrationQueue managementCongestion control