2-233
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter 2 Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands
random-detect exponential-weighting-constant
random-detect exponential-weighting-constant
To configure the exponential weight factor for the average queue size calculation for the queue reserved
for a class, use the random-detect exponential-weighting-constant command in policy-map class
configuration mode. To return the value to the default, use the no form of this command.
random-detect exponential-weighting-constant exponent
no random-detect exponential-weighting-constant
Syntax Description
Command Default The default exponential weight factor is 9.
Command Modes Policy-map class configuration
Command History
Usage Guidelines WRED is a congestion avoidance mechanism that slows traffic by randomly dropping packets when
congestion exists. WRED is most useful with protocols like TCP that respond to dropped packets by
decreasing the transmission rate.
Use this command to configure the exponential weight factor for the average queue size calculation for
the queue reserved for a class.
Examples The following example configures the policy map called policy1 to contain policy specification for the
class called class1. During times of congestion, WRED packet drop is used instead of tail drop. The
weight factor used for the average queue size calculation for the queue for class1 is 12.
! The following commands create the class map called class1:
class-map class1
match input-interface FE0/1
! The following commands define policy1 to contain policy specification for class1:
policy-map policy1
class class1
bandwidth 1000
random-detect
random-detect exponential-weighting-constant 12
The following example configures policy for a traffic class named int10 to configure the exponential
weight factor as 12. This is the weight factor used for the average queue size calculation for the queue
for traffic class int10. WRED packet drop is used for congestion avoidance for traffic class int10, not tail
drop.
exponent Exponent from 1 to 16 used in the average queue size calculation.
Release Modification
15.1(2)EY This command was introduced.