DCB Configuration
ECN View
Section titled “ECN View”Table 1 ECN View
Command | Purpose |
---|---|
show wred [wred_profile_name] | Display ECN profile. |
show counters ecn | Display ECN counters. |
clear counters ecn | Clear ECN counters. |
show counters ecn-buffer interface interface_name queue queue-id | Display ECN buffer usage. |
show wred [wred_profile_name]
Section titled “show wred [wred_profile_name]”[Command]
show wred [wred_profile_name]
[Purpose]
Display WRED Profile.
[Parameters]
Parameter | Description |
---|---|
wred_profile_name | Profile name. |
[View]
Privileged User View
[Notes]
The default_ecn is the system-predefined ECN profile.
[Use Cases]
sonic# show wredWred profile default_drop: ecn: ecn_none green_drop_probability: 100 green_max_threshold: 1792000 green_min_threshold: 15360 red_drop_probability: 100 red_max_threshold: 8960000 red_min_threshold: 15360 wred_green_enable: true wred_red_enable: true wred_yellow_enable: true yellow_drop_probability: 100 yellow_max_threshold: 7168000 yellow_min_threshold: 15360Wred profile default_ecn: ecn: ecn_all green_drop_probability: 100 green_max_threshold: 1792000 green_min_threshold: 15360 red_drop_probability: 100 red_max_threshold: 8960000 red_min_threshold: 15360 wred_green_enable: true wred_red_enable: true wred_yellow_enable: true yellow_drop_probability: 100 yellow_max_threshold: 7168000 yellow_min_threshold: 15360
show counters ecn
Section titled “show counters ecn”[Command]
show counters ecn
[Purpose]
Display ECN counters.
[View]
Privileged User View
[Use Cases]
sonic# show counters ecn Port Tx ECN0 ECN1 ECN2 ECN3 ECN4 ECN5 ECN6 ECN7----------- ------ ------ ------ ------ ------ ------ ------ ------ 0/0 0 0 0 0 0 0 0 0 0/4 0 0 0 0 0 0 0 0 0/8 0 0 0 0 0 0 0 0 0/12 0 0 0 0 0 0 0 0 0/16 0 0 0 0 0 0 0 0 0/20 0 0 0 0 0 0 0 0 0/24 0 0 0 0 0 0 0 0 0/28 0 0 0 0 0 0 0 0 0/32 0 0 0 0 0 0 0 0 0/36 0 0 0 0 0 0 0 0 0/40 0 0 0 0 0 0 0 0 0/44 0 0 0 0 0 0 0 0 0/48 0 0 0 0 0 0 0 0 0/52 0 0 0 0 0 0 0 0 0/56 0 0 0 0 0 0 0 0 0/60 0 0 0 0 0 0 0 0 0/64 0 0 0 0 0 0 0 0 0/68 0 0 0 0 0 0 0 0 0/72 0 0 0 0 0 0 0 0 0/76 0 0 0 0 0 0 0 0 0/80 0 0 0 0 0 0 0 0 0/84 0 0 0 0 0 0 0 0 0/88 0 0 0 0 0 0 0 0 0/92 0 0 0 0 0 0 0 0 0/96 0 0 0 0 0 0 0 0 0/100 0 0 0 0 0 0 0 0 0/104 0 0 0 0 0 0 0 0 0/108 0 0 0 0 0 0 0 0 0/112 0 0 0 0 0 0 0 0 0/116 0 0 0 0 0 0 0 0 0/120 0 0 0 0 0 0 0 0 0/124 0 0 0 0 0 0 0 0 0/128 0 0 0 0 0 0 0 0 0/129 0 0 0 0 0 0 0 0
clear counters ecn
Section titled “clear counters ecn”[Command]
clear counters ecn
[Purpose]
Clear ECN counters.
[View]
Privileged User View
[Use Cases]
sonic# clear counters ecn
show counters ecn-buffer interface interface_name queue queue-id
Section titled “show counters ecn-buffer interface interface_name queue queue-id”[Command]
show counters ecn-buffer interface interface_name queue queue-id
[Purpose]
Display ECN buffer usage.
[Parameters]
Parameter | Description |
---|---|
interface_name | Interface name (eg.0/1) |
queue-id | Queue ID, the range is [0,7] |
[View]
Privileged User View
[Notes]
Not supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# show counters ecn-buffer interface 0/40 queue 4interface queue shared_use_watermark (Bytes) total_use_watermark (Bytes) total_use_count (Bytes)----------- ------- ------------------------------ ----------------------------- -------------------------0/40 4 3501344 3501344 3493056
ECN Config
Section titled “ECN Config”Table 2 ECN Config
Command | Purpose |
---|---|
wred wred_profile_name | Create a WRED profile and enter WRED Configuration View. |
mode ecn gmin min_th gmax max_th gprobability probability [ymin min_th ymax max_th yprobability probability|rmin min_th rmax max_th rprobability probability] | Set Explicit Congestion Notification (ECN) parameters. |
wred {wred_profile_name|default_ecn} | Apply the ECN profile to interfaces. |
wred wred_profile_name
Section titled “wred wred_profile_name”[Command]
wred wred_profile_name
[Purpose]
Create a WRED profile and enter WRED Configuration View.
[Parameters]
Parameter | Description |
---|---|
wred_profile_name | Profile name. |
[View]
Global Configuration View
[Notes]
Run command no wred wred_profile_name to delete the WRED profile.
[Use Cases]
sonic(config)# wred testsonic(config-wred-test)#
mode ecn gmin min_th gmax max_th gprobability probability [ymin min_th ymax max_th yprobability probability|rmin min_th rmax max_th rprobability probability]
Section titled “mode ecn gmin min_th gmax max_th gprobability probability [ymin min_th ymax max_th yprobability probability|rmin min_th rmax max_th rprobability probability]”[Command]
mode ecn gmin min_th gmax max_th gprobability probability [ymin min_th ymax max_th yprobability probability|rmin min_th rmax max_th rprobability probability]
[Purpose]
Set Explicit Congestion Notification (ECN) parameters.
[Parameters]
Parameter | Description |
---|---|
min_th | Set the low limit absolute value of ECN in bytes. When the message length in the queue reaches this value, the interface starts to set the ECN field of the message to CE according to the probability. The configurable minimum value is 15 KB. |
max_th | Set the high limit absolute value of ECN in bytes. When the message length in the queue reaches this value, the interface starts to set ECN field of all packets to CE. For CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2, the range is min_th ~ 25165824, for CX864E-N, the range is min_th - 16777216, and for other models, the range is min_th ~ 10240000. |
probability | Set the maximum discard probability in integer form. The range is [1,100]. It is recommended to set the drop probability to 90 percent for latency-sensitive services and 10 percent for throughput-sensitive services. |
[View]
WRED Configuration View
[Notes]
Recommended Configuration for 100GE interfaces: ! wred ecn mode ecn gmin 15360 gmax 768000 gprobability 90
[Use Cases]
sonic(config-wred-test)# mode ecn gmin 15360 gmax 750000 gprobability 10
wred {wred_profile_name|default_ecn}
Section titled “wred {wred_profile_name|default_ecn}”[Command]
wred {wred_profile_name|default_ecn}
[Purpose]
Apply the ECN profile to interfaces.
[Parameters]
Parameter | Description |
---|---|
wred_profile_name | Profile name. |
[View]
Policy Map-Class Map Configuration View
[Notes]
Before running this command, please bind an existing class map to specify the queue to be matched for the policy. The default_ecn is the system-predefined ECN profile. Run command no wred wred_profile_name unbind the WRED profile.
[Use Cases]
sonic(config)# class-map classtestsonic(conifg-cmap-classtest)# exitsonic(config)# polic-map test1sonic(config-pmap-test1)# class classtestsonic(config-pmap-c)# wred wred_profile
Support to manage PFC with templates or with customized configurations.
- Templated PFC Management By default, a default PFC threshold template exists in the system that supports globally enabling PFC for up to two queues. PFC for queues 3 and 4 has been enabled by default. show pfc profiles command displays the default PFC threshold configuration.
- Customized PFC Management Configure a custom PG buffer profile to specify the PFC threshold. The specific steps for configuration are as follows:
- Run priority-flow-control enable ingress-queue-id command to enable PFC for the queue globally.
- Run buffer-profile buffer_profile_name command to create a lossless buffer profile.
- Run class-map class_map_name command to create a class map to specify the queue.
- Run policy-map policy_map_name command to create a policy map, and run class class_map_name to bind it to the class map. Then run priority-group-buffer buffer_profile_name command to bind to the priority-group buffer profile.
- Run service-policy policy_map_name command to apply the policy to the interface. Due to the complexity of custom PFC configuration, it is recommended to use default template PFC in preference.
PFC View
Section titled “PFC View”Table 3 PFC View
Command | Purpose |
---|---|
show interface priority-flow-control | Display the PFC status of interfaces. |
show counters priority-flow-control | Display PFC counters. |
clear counters priority-flow-control | Clear PFC counters. |
show pfc profiles | Display PFC profiles. |
show interface priority-flow-control
Section titled “show interface priority-flow-control”[Command]
show interface priority-flow-control
[Purpose]
Display the PFC status of interfaces.
[View]
Privileged User View
[Use Cases]
sonic# show interface priority-flow-controlInterface Lossless priorities----------- ---------------------0/0 3,40/4 3,40/8 3,40/12 3,40/16 3,40/20 3,40/24 3,40/28 3,40/32 3,40/36 3,40/40 3,40/44 3,40/48 3,40/52 3,40/56 3,40/60 3,40/64 3,40/68 3,40/72 3,40/76 3,40/80 3,40/84 3,40/88 3,40/92 3,40/96 3,40/100 3,40/104 3,40/108 3,40/112 3,40/116 3,40/120 3,40/124 3,40/128 3,40/129 3,4
show counters priority-flow-control
Section titled “show counters priority-flow-control”[Command]
show counters priority-flow-control
[Purpose]
Display PFC counters.
[View]
Privileged User View
[Use Cases]
sonic# show counters priority-flow-control Port Rx PFC0 PFC1 PFC2 PFC3 PFC4 PFC5 PFC6 PFC7----------- ------ ------ ------ ------ ------ ------ ------ ------ 0/0 0 0 0 0 0 0 0 0 0/4 0 0 0 0 0 0 0 0 0/8 0 0 0 0 0 0 0 0 0/12 0 0 0 0 0 0 0 0 0/16 0 0 0 0 0 0 0 0 0/20 0 0 0 0 0 0 0 0 0/24 0 0 0 0 0 0 0 0 0/28 0 0 0 0 0 0 0 0 0/32 0 0 0 0 0 0 0 0 0/36 0 0 0 0 0 0 0 0 0/40 0 0 0 0 0 0 0 0 0/44 0 0 0 0 0 0 0 0 0/48 0 0 0 0 0 0 0 0 0/52 0 0 0 0 0 0 0 0 0/56 0 0 0 0 0 0 0 0 0/60 0 0 0 0 0 0 0 0 0/64 0 0 0 0 0 0 0 0 0/68 0 0 0 0 0 0 0 0 0/72 0 0 0 0 0 0 0 0 0/76 0 0 0 0 0 0 0 0 0/80 0 0 0 0 0 0 0 0 0/84 0 0 0 0 0 0 0 0 0/88 0 0 0 0 0 0 0 0 0/92 0 0 0 0 0 0 0 0 0/96 0 0 0 0 0 0 0 0 0/100 0 0 0 0 0 0 0 0 0/104 0 0 0 0 0 0 0 0 0/108 0 0 0 0 0 0 0 0 0/112 0 0 0 0 0 0 0 0 0/116 0 0 0 0 0 0 0 0 0/120 0 0 0 0 0 0 0 0 0/124 0 0 0 0 0 0 0 0 0/128 0 0 0 0 0 0 0 0 0/129 0 0 0 0 0 0 0 0 Port Tx PFC0 PFC1 PFC2 PFC3 PFC4 PFC5 PFC6 PFC7----------- ------ ------ ------ ------ ------ ------ ------ ------ 0/0 0 0 0 0 0 0 0 0 0/4 0 0 0 0 0 0 0 0 0/8 0 0 0 0 0 0 0 0 0/12 0 0 0 0 0 0 0 0 0/16 0 0 0 0 0 0 0 0 0/20 0 0 0 0 0 0 0 0 0/24 0 0 0 0 0 0 0 0 0/28 0 0 0 0 0 0 0 0 0/32 0 0 0 0 0 0 0 0 0/36 0 0 0 0 0 0 0 0 0/40 0 0 0 0 0 0 0 0 0/44 0 0 0 0 0 0 0 0 0/48 0 0 0 0 0 0 0 0 0/52 0 0 0 0 0 0 0 0 0/56 0 0 0 0 0 0 0 0 0/60 0 0 0 0 0 0 0 0 0/64 0 0 0 0 0 0 0 0 0/68 0 0 0 0 0 0 0 0 0/72 0 0 0 0 0 0 0 0 0/76 0 0 0 0 0 0 0 0 0/80 0 0 0 0 0 0 0 0 0/84 0 0 0 0 0 0 0 0 0/88 0 0 0 0 0 0 0 0 0/92 0 0 0 0 0 0 0 0 0/96 0 0 0 0 0 0 0 0 0/100 0 0 0 0 0 0 0 0 0/104 0 0 0 0 0 0 0 0 0/108 0 0 0 0 0 0 0 0 0/112 0 0 0 0 0 0 0 0 0/116 0 0 0 0 0 0 0 0 0/120 0 0 0 0 0 0 0 0 0/124 0 0 0 0 0 0 0 0 0/128 0 0 0 0 0 0 0 0 0/129 0 0 0 0 0 0 0 0
clear counters priority-flow-control
Section titled “clear counters priority-flow-control”[Command]
clear counters priority-flow-control
[Purpose]
Clear PFC counters.
[View]
Privileged User View
[Use Cases]
sonic# clear counters priority-flow-control
show pfc profiles
Section titled “show pfc profiles”[Command]
show pfc profiles
[Purpose]
Display PFC profiles.
[View]
Privileged User View
[Use Cases]
sonic# show pfc profile{ "ingress_lossless_profile":{ "dynamic_th":"1", "pool":"ingress_lossless_pool", "size":"1518", "xoff":"38816", "xon_offset":"13440" }, "pg_lossless_1":{ "dynamic_th":"-4", "pool":"ingress_lossless_pool", "size":"1518", "xoff":"46496", "xon_offset":"13440" }, "pg_lossless_100000_40m_profile":{ "dynamic_th":"1", "pool":"ingress_lossless_pool", "size":"1518", "xoff":"38816", "xon":"0", "xon_offset":"13440"}}
PFC Config
Section titled “PFC Config”Table 4 PFC Config
Command | Purpose |
---|---|
priority-flow-control enable ingress-queue-id | Globally enable PFC for the queue. |
buffer-profile buffer_profile_name | Configure a custom PFC buffer profile and enter Buffer Configuration View. |
mode lossless {static static_th|dynamic dynamic_th} size size (For CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2) mode lossless {static static_th|dynamic dynamic_th} size size xoff xoff xon-offset xon-offset [xon xon] (For other models) | Set a PFC lossless buffer. |
priority-group-buffer buffer_profile_name | Bind the PG buffer profile to the queue at ingress. |
priority-flow-control enable ingress-queue-id
Section titled “priority-flow-control enable ingress-queue-id”[Command]
priority-flow-control enable ingress-queue-id
[Purpose]
Globally enable PFC for the queue.
[Parameters]
Parameter | Description |
---|---|
ingress-queue-id | Queue ID, the range is [0,7] |
[View]
Global Configuration View
[Notes]
Only support up to two queues to enable PFC globally, by default, PFC of queue 3, 4 have been enabled. If you want to enable PFC for other queues, please disable PFC of queue 3 or 4 first. Configuring the PFC global enable queue requires reload to take effect. Port-based modification of PFC enable queues is not supported at this time. Run command no priority-flow-control enable ingress-queue-id to disable PFC for the queue.
[Use Cases]
sonic# configuresonic(config)# priority-flow-control enable 4
buffer-profile buffer_profile_name
Section titled “buffer-profile buffer_profile_name”[Command]
buffer-profile buffer_profile_name
[Purpose]
Configure a custom PFC buffer profile and enter Buffer Configuration View.
[Parameters]
Parameter | Description |
---|---|
buffer_profile_name | Profile name. |
[View]
Global Configuration View
[Notes]
Run command no buffer-profile profile_name to delete the buffer profile.
[Use Cases]
sonic(config)# buffer-profile testnamesonic(config-buffer-profile-testname)#
mode lossless {static static_th|dynamic dynamic_th} size size
Section titled “mode lossless {static static_th|dynamic dynamic_th} size size”[Command]
mode lossless {static static_th|dynamic dynamic_th} size size
[Purpose]
Set a PFC lossless buffer. (For CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2)
[Parameters]
Parameter | Description |
---|---|
static_th | Set the static threshold value in bytes. This parameter is meaningless on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2, and should be configured as 0. |
dynamic_th | Set the dynamic threshold value in integer. The value shall not be less than -5. Dynamic threshold = (dynamic_th + 6) * remaining available buffer on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2. For example, if dynamic_th is set to -4, the dynamic threshold is 2 times the remaining available buffer; |
size | Set the guaranteed buffer in bytes. It is recommended to be an integer multiple of the cell size. The recommended configuration value is 25600. |
[View]
Buffer Configuration View
[Notes]
The cell size varies by model. On CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2, the cell size is 128 Bytes.
When congestion occurs at a queue and the ingress buffer occupancy reaches the watermark, it starts sending pause frames. When the sender receives a pause frame and reduces the traffic sent, the ingress buffer occupancy of the switch decreases and stops sending pause frames when the occupancy falls below the watermark.
The formula for calculating the PFC watermark is: Limit=Guaranteed Buffers + Dynamic Factor. Dynamic Factor is 0 in static mode.
The sum of the lossless buffers allocated to each queue shall be no greater than the lossless pool size.
Recommended Configuration:
!
buffer-profile lossless_buffer_profile
mode lossless static 0 size 25600
[Use Cases]
sonic(config)# buffer-profile buffer_testsonic(config-buffer-profile-buffer_test)# mode lossless static 0 size 25600
mode lossless {static static_th|dynamic dynamic_th} size size xoff xoff xon-offset xon-offset [xon xon] (For other models)
Section titled “mode lossless {static static_th|dynamic dynamic_th} size size xoff xoff xon-offset xon-offset [xon xon] (For other models)”[Command]
mode lossless {static static_th|dynamic dynamic_th} size size xoff xoff xon-offset xon-offset [xon xon]
[Purpose]
Set a PFC lossless buffer. (For other models)
[Parameters]
Parameter | Description |
---|---|
static_th | Set the static threshold value in bytes. The range is from 0 to 47218432. |
dynamic_th | Set the dynamic threshold value in integer. The range is from -4 to 3. Dynamic threshold = 2dynamic_th * remaining available buffer. For example, if dynamic_th is set to 1, then dynamic threshold is two times the remaining available buffer, that is, the actual threshold is two-thirds of the total available buffer. |
size | Set the guaranteed buffer in bytes. The recommended value is 1518. |
xoff | Set PFC pause frame trigger cache threshold value in bytes, which is recommended to be an integer multiple of the cell size. Xoff is related to cable length, port speed and so on, you may refer to the recommended values below to configure. Xoff value must be greater than xon value. |
xon-offset | Set PFC pause frame stop buffer threshold value in bytes, it is recommended to be an integer multiple of cell size. The recommended value is 13440. |
xon | (Optional) It should be an integer multiple of cell size and the unit is byte. It is recommended to configure 0, since the actual xon takes the larger value of xon and xon-offset, so it is generally not necessary to set the value of xon. |
The parameters of dynamic lossless buffer are related to the port speed, cable length, etc. The following are the recommended values:
port speed | cable length | size | xon | xoff | dynamic threshold | xon_offset |
---|---|---|---|---|---|---|
25000 | 5m | 1518 | 0 | 15680 | 1 | 13440 |
50000 | 5m | 1518 | 0 | 21248 | 1 | 13440 |
100000 | 5m | 1518 | 0 | 34624 | 1 | 13440 |
400000 | 5m | 1518 | 0 | 117536 | 1 | 13440 |
25000 | 40m | 1518 | 0 | 16928 | 1 | 13440 |
50000 | 40m | 1518 | 0 | 23392 | 1 | 13440 |
100000 | 40m | 1518 | 0 | 38816 | 1 | 13440 |
400000 | 40m | 1518 | 0 | 135520 | 1 | 13440 |
25000 | 100m | 1518 | 0 | 18848 | 1 | 13440 |
50000 | 100m | 1518 | 0 | 27264 | 1 | 13440 |
100000 | 100m | 1518 | 0 | 46496 | 1 | 13440 |
400000 | 100m | 1518 | 0 | 166688 | 1 | 13440 |
25000 | 300m | 1518 | 0 | 25184 | 1 | 13440 |
50000 | 300m | 1518 | 0 | 40128 | 1 | 13440 |
100000 | 300m | 1518 | 0 | 72384 | 1 | 13440 |
400000 | 300m | 1518 | 0 | 268640 | 1 | 13440 |
[View]
Buffer Configuration View
[Notes]
The cell size varies by model. On other models, cell size=224 Bytes.
When congestion occurs at a queue and the ingress buffer occupancy reaches xoff, it starts sending pause frames. When the sender receives pause frames and reduces the traffic sent, the ingress buffer occupancy of the switch decreases and stops sending pause frames when the occupancy reaches xon.
The default ingress pause frame trigger threshold and pause frame stop threshold exist in the interface configuration when not configured by the user.
The sum of the lossless buffers allocated to each queue shall be no greater than the lossless pool size.
Recommended Configuration for 100GE interfaces:
!
buffer-profile lossless_buffer_profile
mode lossless dynamic 1 size 1518 xoff 46496 xon-offset 13440
[Use Cases]
sonic(config)# buffer-profile pg_lossless_100000_100m_profilesonic(config-buffer-profile-pg_lossless_100000_100m_profile)# mode lossless dynamic 1 size 1518 xoff 46496 xon-offset 13440
priority-group-buffer buffer_profile_name
Section titled “priority-group-buffer buffer_profile_name”[Command]
priority-group-buffer buffer_profile_name
[Purpose]
Bind the PG buffer profile to the queue at ingress.
[Parameters]
Parameter | Description |
---|---|
buffer_profile_name | Profile name. |
[View]
Policy Map-Class Map Configuration View
[Notes]
Please bind an existing class map to specify the queue for policy matching, and the queue should be globally PFC-enabled. Run command no priority-group-buffer buffer_profile_name to unbind the PG buffer profile.
[Use Cases]
sonic(config)# buffer-profile pg_lossless_100000_100m_profilesonic(config-buffer-profile-pg_lossless_100000_100m_profile)# mode lossless dynamic 1 size 1518 xoff 46496 xon-offset 13440sonic(config-buffer-profile-pg_lossless_100000_100m_profile)# exitsonic(config)# polic-map test1sonic(config-pmap-test1)# class cmap_4sonic(config-pmap-c)# priority-group-buffer pg_lossless_100000_100m_profile
PFCWD View
Section titled “PFCWD View”Table 5 PFCWD View
Command | Purpose |
---|---|
show pfcwd configuration | Display PFCWD configuration information. |
show pfcwd stats | Display PFCWD statistics information. |
show pfcwd configuration
Section titled “show pfcwd configuration”[Command]
show pfcwd configuration
[Purpose]
Display PFCWD configuration information.
[View]
Privileged User View
[Use Cases]
sonic# show pfcwd configuration PORT ACTION DETECTION TIME RESTORATION TIME------ -------- ---------------- ------------------
show pfcwd stats
Section titled “show pfcwd stats”[Command]
show pfcwd configuration
[Purpose]
Display PFCWD statistics information.
[View]
Privileged User View
[Use Cases]
sonic# show pfcwd stats QUEUE STATUS STORM DETECTED/RESTORED TX OK/DROP RX OK/DROP TX LAST OK/DROP RX LAST OK/DROP------- -------- ------------------------- ------------ ------------ ----------------- -----------------
PFCWD Config
Section titled “PFCWD Config”Table 6 PFCWD Config
Command | Purpose |
---|---|
pfcwd enable {all|interface_name} detection-time d_time [action pfcwd_action | restoration-time r_time] | Enable PFCWD. |
pfcwd counter_poll | Enable PFCWD counter polling. |
pfcwd interval poll_interval | Set the PFCWD polling interval. |
pfcwd start_default | Start PFC WD by default configurations. |
pfcwd enable {all|interface_name} detection-time d_time [action pfcwd_action | restoration-time r_time]
Section titled “pfcwd enable {all|interface_name} detection-time d_time [action pfcwd_action | restoration-time r_time]”[Command]
pfcwd enable {all|interface_name} detection-time d_time [action pfcwd_action | restoration-time r_time]
[Purpose]
Enable PFCWD.
[Parameters]
Parameter | Description |
---|---|
all | Applies to all interfaces |
interface_name | Specify the interface, for example: 0/0 |
d_time | Detection time, range is [100,5000] |
pfcwd_action | Action after detection of PFC pause storms, optional parameters are drop, forward, alert. |
r_time | Recovery time, range is [100,60000] |
[View]
Global Configuration View
[Notes]
Run commandpfcwd disable {all|interface_name } to disable PFCWD.
[Use Cases]
sonic# configuresonic(config)# pfcwd enable all detection-time 100 action drop restoration-time 400
pfcwd counter_poll
Section titled “pfcwd counter_poll”[Command]
pfcwd counter_poll
[Purpose]
Enable PFCWD counter polling.
[View]
Global Configuration View
[Notes]
Run commandno pfcwd counter_poll to disable PFCWD counter polling.
[Use Cases]
sonic# configuresonic(config)# pfcwd counter_poll
pfcwd interval poll_interval
Section titled “pfcwd interval poll_interval”[Command]
pfcwd interval poll_interval
[Purpose]
Set the PFCWD polling interval.
[Parameters]
Parameter | Description |
---|---|
poll_interval | Polling interval in ms, range [100,3000] |
[View]
Global Configuration View
[Use Cases]
sonic# configuresonic(config)# pfcwd interval 100
pfcwd start_default
Section titled “pfcwd start_default”[Command]
pfcwd counter_poll
[Purpose]
Start PFC WD by default configurations.
[View]
Global Configuration View
[Use Cases]
sonic# configuresonic(config)# pfcwd start_default
DCBX View
Section titled “DCBX View”Table 7 DCBX View
Command | Purpose |
---|---|
show lldp dcbx | Display DCBX configuration |
show lldp dcbx
Section titled “show lldp dcbx”[Command]
show lldp dcbx
[Purpose]
Display DCBX configuration.
[View]
Global Configuration View
[Use Cases]
sonic# show qos roceInterface ETS Willing PFC Willing ETS Accepted PFC Accepted----------- ------------- ------------- -------------- --------------0/12 True False True False
DCBX Config
Section titled “DCBX Config”Table 8 DCBX Config
Command | Purpose |
---|---|
lldp dcbx enable | Enable DCBX. |
lldp dcbx pfc-willing | Enable PFC configuration synchronization |
lldp dcbx ets-willing | Enable ETS configuration synchronization |
lldp dcbx enable
Section titled “lldp dcbx enable”[Command]
lldp dcbx enable
[Purpose]
Enable DCBX.
[View]
Interface Configuration View
[Notes]
Run command no lldp dcbx enable to disable DCBX.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/12sonic(config-if-0/12)# lldp dcbx enable
lldp dcbx pfc-willing
Section titled “lldp dcbx pfc-willing”[Command]
lldp dcbx pfc-willing
[Purpose]
Enable PFC configuration synchronization.
[View]
Interface Configuration View
[Notes]
Run command no lldp dcbx pfc-willing to disable PFC configuration synchronization.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/12sonic(config-if-0/12)# lldp dcbx pfc-willing
lldp dcbx ets-willing
Section titled “lldp dcbx ets-willing”[Command]
lldp dcbx ets-willing
[Purpose]
Enable ETS configuration synchronization.
[View]
Interface Configuration View
[Notes]
Run command no lldp dcbx ets-willing to disable ETS configuration synchronization. The interface with ETS configuration synchronization enabled cannot have a custom ETS configuration, that is, it cannot be bound to a policy-map containing scheduling and priority mapping.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/12sonic(config-if-0/12)# lldp dcbx ets-willing