Skip to content

Network QoS

Network QoS configuration (type network-qos) defines device-wide properties of traffic classes on NX-OS devices, such as the MTU per class, no-drop behavior and Priority Flow Control (PFC) CoS values for lossless traffic like storage or RoCE. Network class maps match CoS values, network policy maps set per-class properties, and the network QoS policy is applied system-wide as the network-qos service policy, with optional statistics collection. The global PFC watchdog settings detect and mitigate PFC storms on no-drop queues: they enable the watchdog, set its poll interval and the multipliers that control when a stuck queue is shut down and restored.

Diagram
NameTypeConstraintMandatoryDefault Value
devicesListdevicesNo
device_groupsListdevice_groupsNo
globalClassglobalNo
templatesListtemplatesNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
qosClassqosNo

NameTypeConstraintMandatoryDefault Value
network_class_mapsListnetwork_class_mapsNo
network_policy_mapsListnetwork_policy_mapsNo
system_service_policy_networkStringNo
system_service_policy_network_statisticsBooleantrue, falseNo
priority_flow_controlClasspriority_flow_controlNo

network_class_maps (nxos.devices.configuration.qos)

Section titled “network_class_maps (nxos.devices.configuration.qos)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
match_typeChoicematch-any, match-all, match-firstNo
match_cos_valuesListInteger[min: 0, max: 7]No

network_policy_maps (nxos.devices.configuration.qos)

Section titled “network_policy_maps (nxos.devices.configuration.qos)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
match_typeChoicematch-any, match-all, match-firstNo
classesListclassesNo

priority_flow_control (nxos.devices.configuration.qos)

Section titled “priority_flow_control (nxos.devices.configuration.qos)”
NameTypeConstraintMandatoryDefault Value
watch_dog_intervalBooleantrue, falseNo
watch_dog_interval_valueIntegermin: 25, max: 1000No
watch_dog_shutdown_multiplierIntegermin: 1, max: 40No
watch_dog_internal_interface_multiplierIntegermin: 0, max: 10No
watch_dog_forcedBooleantrue, falseNo
auto_restore_multiplierIntegermin: 0, max: 100No
fixed_restore_multiplierIntegermin: 0, max: 400No

classes (nxos.devices.configuration.qos.network_policy_maps)

Section titled “classes (nxos.devices.configuration.qos.network_policy_maps)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
mtuIntegermin: 576, max: 9216No
no_dropBooleantrue, falseNo
pause_pfc_cosListInteger[min: 0, max: 7]No
pause_receiveBooleantrue, falseNo
pause_buffer_sizeIntegermin: 5000, max: 268435456No
pause_headroomIntegermin: 0, max: 268435456No
pause_dynamicIntegermin: 0, max: 255No
pause_thresholdIntegermin: 0, max: 268435456No
pause_resume_thresholdIntegermin: 0, max: 268435456No
pause_resume_offsetIntegermin: 0, max: 268435456No

Example 1: Network QoS with class maps for CoS classification, policy map with MTU and PFC pause settings

nxos:
devices:
- name: LEAF1
configuration:
qos:
network_class_maps:
- name: c-nq-voice
match_type: match-any
match_cos_values:
- 4
- 5
- name: c-nq-storage
match_type: match-any
match_cos_values:
- 3
network_policy_maps:
- name: p-nq-fabric
match_type: match-first
classes:
- name: c-nq-voice
mtu: 1500
- name: c-nq-storage
mtu: 9216
no_drop: true
pause_pfc_cos:
- 3
system_service_policy_network: p-nq-fabric
system_service_policy_network_statistics: true

Example 2: Global PFC watchdog with tuned poll interval and restore multipliers

nxos:
devices:
- name: LEAF1
configuration:
qos:
priority_flow_control:
watch_dog_interval: true
watch_dog_interval_value: 200
watch_dog_shutdown_multiplier: 5
auto_restore_multiplier: 20
fixed_restore_multiplier: 50