random-detect
Use this command to configure weighted random early detection (WRED).
Use the no command to remove a WRED configuration.
Command Syntax
random-detect (green|yellow|red|all|) (min-threshold|)<1-629145600> (bytes|kbytes|mbytes|ms|packets)(max-threshold|) <1-629145600> (bytes|kbytes|mbytes|ms|packets) (drop-probability <1-100>|)random-detect (weight <1-31>|))
no random-detect (green|yellow|red|all|)
no random-detect weight
Parameters
min-threshold
Specify the minimum threshold. In the range of <1-629145600>
max-threshold
Specify the maximum threshold. In the range of <1-629145600>
packets
Specify the units of queue-limit in packets – range (min 1, max 614400)
bytes
Specify the units of threshold in bytes – range (min 1024, max 629145600)
kbytes
Specify the units of threshold in kilobytes – range (min 1, max 614400)
mbytes
Specify the units of threshold in mega-bytes – range (min 1, max 600)
ms
Specify the units of threshold in milliseconds – range (min 1, max 50)
Threshold value in ms will be calculated from interface-speed and will be converted into bytes
drop-probability
Drop-probability is the fraction of packets dropped when the average queue depth is at the maximum threshold.It can be configured per color Specify the drop-probability in the range <1-100>
weight
Configures the weight factor used in calculating the average queue length. Specify the weight in the range <1-31>. Value specified will be set for all colors
Default
No default value is specified
Command Mode
Policy-class map queue mode
Applicability
This command was introduced in OcNOS version 3.0.
Examples
(config)# policy-map type queuing default P1
(config-pmap-que)#class type queuing q1
(config-pmap-c-que)# random-detect min-threshold 1000 mbytes max-threshold 2000 mbytes
Last modified date: 10/20/2023