The PFC watchdog monitors queues for pause storms and takes corrective actions when queues fail to drain within a specified interval. You can configure watchdog timers globally for all interfaces. Alternatively, override timers individually for specific interfaces.
Before you begin
Ensure that PFC and its policies are configured and active.
Follow these steps to configure and verify the PFC watchdog interval.
Procedure
|
1. |
Enable the watchdog globally.
Example:
Router(config)#priority-flow-control watchdog mode on
This step activates the watchdog feature for all PFC-enabled interfaces.
|
|
2. |
Configure global watchdog parameters.
Example:
Router(config)#priority-flow-control watchdog interval 100
Router(config)#priority-flow-control watchdog shutdown-multiplier 2
Router(config)#priority-flow-control watchdog auto-restore-multiplier 10
Router(config)#commit
This step sets watchdog timing behavior:
-
checks queues every 100 milliseconds
-
declares queues stuck after 200 milliseconds (100 milliseconds x 2), and
-
restores queues after 1000 milliseconds (100 x 10)
|
|
3. |
(Optional) Configure interface-level overrides.
Example:
Router(config)#interface HundredGigE0/2/0/0
Router(config-if)#priority-flow-control watchdog mode on
Router(config-if)#commit
This step enables the Watchdog for a specific interface. Interface-level settings override global values if defined.
|
|
4. |
Verify watchdog configuration.
- Verify global watchdog configuration.
Router#show run priority-flow-control watchdog
priority-flow-control watchdog interval 100
priority-flow-control watchdog shutdown-multiplier 2
priority-flow-control watchdog auto-restore-multiplier 10
priority-flow-control watchdog mode on
- Verify active watchdog configuration on an interface.
Router#show controllers HundredGigE0/2/0/0 priority-flow-control
Priority flow control information for interface HundredGigE0/2/0/0:
Priority flow control watchdog configuration:
(D) : Default value
U : Unconfigured
--------------------------------------------------------------------------------
Configuration Item Global Interface Effective
--------------------------------------------------------------------------------
PFC watchdog state : Enabled U Enabled
Poll interval : 100(D) U 100(D)
Shutdown multiplier : 2(D) U 2(D)
Auto-restore multiplier : 10(D) U 10(D)
-
Global column shows configured values.
-
Interface column shows interface-specific overrides (if any).
-
Effective column shows which values are actively applied to the interface.
- Verify watchdog operational statistics.
Router#show controllers HundredGigE0/2/0/0 priority-flow-control watchdog-stats
Priority flow control information for interface HundredGigE0/2/0/0:
Priority flow control watchdog statistics:
SAR: Auto restore and shutdown
---------------------------------------------------------------------------------------------------
Traffic Class : 0 1 2 3 4 5 6 7
---------------------------------------------------------------------------------------------------
Watchdog Events : 0 0 0 3 3 0 0 0
Shutdown Events : 0 0 0 3 3 0 0 0
Auto Restore Events : 0 0 0 3 3 0 0 0
SAR Events : 0 0 0 3510 3510 0 0 0
SAR Instantaneous Events : 0 0 0 1172 1172 0 0 0
Total Dropped Packets : 0 0 0 941505767 941488166 0 0 0
Dropped Packets : 0 0 0 314855466 314887161 0 0 0
-
-
Watchdog Events displays the number of times the watchdog detected a stalled queue.
-
Shutdown Events displays the number of times the line card was shut down due to stuck queues.
-
Auto Restore Events displays the number of times the watchdog restored the queue after congestion cleared.
-
Total Dropped Packets displays the cumulative virtual output queue (VOQ) and output queue drops across all watchdog events since the last clear.
-
Dropped Packets displays the cumulative VOQ and output queue drops in the most recent watchdog shutdown event.
-
Ignore the SAR Events and SAR Instantaneous Events entries. These numbers are not relevant to your operations.
|