Dashboard Location: Switching > Configure > Switch Settings > Quality of Service
Network Traffic Prioritization Management Switch QoS (Quality of Service) rules configuration in Meraki networks provides administrators with the capability to implement traffic prioritization and bandwidth management based on network protocols, VLAN assignments, port ranges, and DSCP markings. This functionality enables performance optimization for critical applications, ensures consistent service delivery, manages network congestion, and supports service level agreements through granular traffic classification and prioritization. QoS rules are essential for maintaining network performance in mixed-traffic environments, supporting real-time applications, and ensuring optimal user experience across diverse network services.
Diagram Classes switch (meraki.domains.organizations.networks) Name Type Constraint Mandatory Default Value qos_rules List [qos_rules]
No
qos_rules (meraki.domains.organizations.networks.switch) Name Type Constraint Mandatory Default Value vlan Any Integer[min: 1
, max: 4094
] or String[matches: `(?:[1-9] [1-9][0-9] [1-9][0-9]2 protocol Choice ANY
, TCP
, UDP
No dscp Integer min: -1
, max: 63
No source_port Integer min: 0
, max: 65535
No source_port_range String Regex: ^([1-9]|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])-(\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$
No destination_port Integer min: 0
, max: 65535
No destination_port_range String Regex: ^([1-9]|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])-(\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$
No qos_rule_name String min: 1
, max: 127
Yes
Examples Example-1: The example below demonstrates switch QoS rules configuration using tested YAML configuration from pipeline fixtures.
- name : " !env network_name "
destination_port_range : 300-400
Configuration Parameters Parameter Type Required Description qos_rules
Array No List of QoS rule definitions qos_rules[n].qos_rule_name
String Yes Descriptive name for the QoS rule qos_rules[n].vlan
Integer Yes VLAN ID for traffic matching qos_rules[n].protocol
String Yes Network protocol: “TCP”, “UDP”, “ANY” qos_rules[n].source_port
Integer No Specific source port number qos_rules[n].source_port_range
String No Source port range (e.g., “1024-2048”) qos_rules[n].destination_port
Integer No Specific destination port number qos_rules[n].destination_port_range
String No Destination port range (e.g., “80-90”) qos_rules[n].dscp
Integer Yes DSCP marking value (0-63)
DSCP Marking Values DSCP Value Traffic Class Priority Level Typical Applications 46 Expedited Forwarding (EF) Highest Voice, real-time audio 34 Assured Forwarding 41 (AF41) High Video conferencing 26 Assured Forwarding 31 (AF31) Medium-High Critical business apps 18 Assured Forwarding 21 (AF21) Medium Interactive applications 10 Assured Forwarding 11 (AF11) Low Bulk data transfer 8 Class Selector 1 (CS1) Lowest Background traffic 0 Best Effort (BE) Default Standard traffic
Protocol Classification Protocol Common Ports Traffic Type QoS Recommendation TCP 80, 443, 22, 23 Web, secure, management Standard-Medium UDP 53, 123, 5060-5070 DNS, NTP, Voice High for voice ANY All protocols Catch-all rules Use sparingly
Common Application Port Mappings Application Protocol Port(s) DSCP Recommendation Priority Justification Voice (SIP) UDP 5060-5070 46 Real-time communication Voice (RTP) UDP 16384-32767 46 Audio media streams Video Conference UDP 1024-65535 34 Video media streams Remote Desktop TCP 3389 26 Interactive business app Database TCP 1433, 3306, 5432 26 Critical business data Web (HTTP) TCP 80 0 Standard web traffic Web (HTTPS) TCP 443 0 Secure web traffic File Transfer TCP 20-21 10 Bulk data transfer Email (SMTP) TCP 25, 587 18 Business communication Email (IMAP) TCP 143, 993 18 Email access