Command Line Reference
DCB Configuration
ECN
12 min
ecn view ecn view table 1 ecn view table 1 ecn view command purpose show wred \[ wred profile name ] display ecn profiles 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 \[ show wred \[ wred profile name ] \[command] show wred \[ wred profile name ] \[purpose] display ecn profiles \[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 wred wred 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 15360 wred 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 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 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 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 4 interface queue shared use watermark (bytes) total use watermark (bytes) total use count (bytes) \ 0/40 4 3501344 3501344 3493056 ecn config ecn config table 2 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 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 test sonic(config wred test)# mode ecn gmin 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 { 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 to unbind the wred profile \[use cases] sonic(config)# class map classtest sonic(conifg cmap classtest)# exit sonic(config)# polic map test1 sonic(config pmap test1)# class classtest sonic(config pmap c)# wred wred profile
