
C613-50186-01 Rev B
Command Reference for AR2050V
1772
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
T
RAFFIC
C
ONTROL
C
OMMANDS
CLASS
(
WRR
)
class (wrr)
Overview
Use this command to configure a Weighted Round-Robin (WRR) class within a
traffic control policy.
Use the
no
variant of this command to delete an existing class under a current
policy.
Syntax
class
<class-name>
[weight <
1-100
>] [queue-length <
2-65536
>]
[set-dscp <
dscp-value
>] [red-curve
<red-curve-name
>]
class
<class-name>
[weight <
1-100
>] sub-class-policy wrr
no class
<class-name>
Default
A weighted round-robin class has no DSCP value or sub-class policy. The queue
length is 1000 by default. If the keyword <default> is used then the default RED
curve is applied.
Mode
Traffic-Control Policy for a WRR policy.
Usage
If there is already a class in the same level with the specified name, the command
will replace the configuration of the existing class if it does not have any
sub-classes.
If a sub-class policy is specified, this command uses the Traffic-Control Class mode
to apply it.
Parameter
Description
<class-name>
Name of the class.
weight
<1-100>
Set the weight.The relative weight is the available bandwidth divided
between sibling WRR classes according to the ratio of their configured
weights.
This parameter is compulsory when creating a new class. When editing
an existing class, this parameter is optional.
queue-length
<2-65536>
Set the maximum queue length in packets.
set-dscp
<dscp-value>
Set the DSCP value to apply to packets.
red-curve
<red-curve-name>
Apply a random early discard template with the class (only available on
leaf queues when specifying class policy). If the keyword <default> is
used then the default RED curve is applied.
sub-class-policy
Create a sub-class within the policy.
wrr
Sub-classes use the Weighted Round Robin queueing algorithm.