WRED
此内容尚不支持你的语言。
Table 1 WRED View
| Command | Purpose |
|---|---|
| **show wred ** [wred_profile_name] | Display WRED profile. |
show wred [
Section titled “show wred [”[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 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: 15360WRED Config
Section titled “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. |
[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 drop gmin
Section titled “mode drop gmin”[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 10wred {
Section titled “wred {”[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 classtestsonic(conifg-cmap-classtest)# exitsonic(config)# polic-map test1sonic(config-pmap-test1)# class classtestsonic(config-pmap-c)# wred wred_profile