Average queue size = ( previous average queue size x (1 – 2
where n is the exponent.
•
Denominator for drop probability calculation—The greater the denominator, the smaller the
calculated drop probability.
Configuring WRED on an interface
Configuration procedure
To enable WRED on an interface, you must first enable WFQ on the interface.
To configure WRED on an interface:
Step
1.
Enter system view.
2.
Enter interface or PVC view.
3.
Enable WRED.
4.
(Optional.) Set the WRED
exponent for average queue
size calculation.
5.
(Optional.)
drop-related parameters for a
precedence value.
Configuration example
Network requirements
•
Enable IP precedence-based WRED on interface GigabitEthernet 1/0/1.
•
Set the following parameters for packets with IP precedence 3: lower threshold 20, upper
threshold 40, and drop probability 1/15.
•
Set the exponent for average queue size calculation to 6.
Configuration procedure
# Enter system view.
<Sysname> system-view
# Enter interface view.
[Sysname] interface gigabitethernet 1/0/1
# Enable IP precedence-based WRED.
Command
system-view
•
Enter
interface
interface-number
•
Enter PVC view:
a. interface
interface-number
b. pvc vpi/vci
qos wred [ dscp | ip-precedence ]
enable
qos
wred
exponent
qos
wred
Set
the
ip-precedence | dscp dscp-value }
low-limit low-limit high-limit high-limit
discard-probability discard-prob
interface
view:
interface-type
weighting-constant
{
ip-precedence
85
–n
) ) + (current queue size x 2
Remarks
N/A
N/A
atm
By
default,
tail
adopted.
The default setting is 9.
By default, the lower limit is
10, the upper limit is 30, and
the
drop
denominator is 10.
Repeat this command to
configure more precedence
values.
–n
),
drop
is
probability