Command Line Reference
QoS Configuration
WRED
8 min
wred view wred view table 1 wred view table 1 wred view command purpose show wred \[ wred profile name ] display wred profile show wred \[ 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 drop is the system predefined wred 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 wred config wred config table 2 wred config table 2 wred config command purpose wred wred profile name create a wred profile and enter wred configuration view mode drop 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 wred parameters for green/yellow/red messages wred {wred profile name | default drop } apply the wred 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 drop gmin mode drop 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 drop 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 wred parameters for green/yellow/red messages \[parameters] parameter description min th set the low limit absolute value of wred discard in bytes when the message length in the queue reaches this value, the interface starts to discard the configurable minimum value is 15 kb max th set the high limit absolute value of wred discard in bytes when the message length in the queue reaches this value, the interface starts to discard all newly received packets 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 \[use cases] sonic(config wred test)# mode drop gmin 15360 gmax 150000 gprobability 10 wred { wred { wred profile name |default drop} \[command] wred { wred profile name | default drop } \[purpose] apply the wred 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 drop is the system predefined wred profile run command no wred wred profile name 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
