Command Line Reference
DCB Configuration
ECN
12 min
ecn view ecn view table 1 ecn view table 1 ecn view true 414,247#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type show wred \[ show wred \[ wred profile name ] \[command] show wred \[ wred profile name ] \[purpose] display ecn profiles \[parameters] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[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] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[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 true 402,259#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type wred wred wred profile name \[command] wred wred profile name \[purpose] create a wred profile and enter wred configuration view \[parameters] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[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] true 114,547#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[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] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[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
