
C613-50186-01 Rev B
Command Reference for AR2050V
1770
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
T
RAFFIC
C
ONTROL
C
OMMANDS
CLASS
(
PRIORITY
)
class (priority)
Overview
Use this command to configure a priority queue class within a traffic control policy.
Use the
no
variant of this command to delete an existing priority class under a
current policy.
Syntax
class
<class-name>
[priority-level <
0-15
>] [max <
max-rate
>]
[queue-length <
2-65536
>] [set-dscp <
dscp-value
>] [red-curve
<red-curve-name>
]
class
<class-name>
[priority-level <
0-15
>] sub-class-policy
{priority|wrr|htb}
no class
<class-name>
Default
No priority class is applied. If the keyword <default> is used then the default RED
curve is applied.
Mode
Traffic Control Policy for a priority 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.
priority-level
<0-15>
Set the priority level (15 is the highest).
This parameter is compulsory when creating a new class. When
editing an existing class, this parameter is optional.
max
<max-rate>
Set the maximum traffic rate of the queue (in kbit/mbit/gbit per
second, 1kbit-100gbit).
queue-lenth
<2-65535>
Set the maximum queue length in packets (only available on leaf
queues when specifying sub-class policy).
set-dscp
<dscp-value>
Set the DSCP value to apply to the packets (only available on leaf
queues when specifying sub-class policy).
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.
priority
Sub-classes use the Priority Queue scheduling algorithm.
wrr
Sub-classes use the Weighted Round Robin scheduling algorithm.
htb
Sub-classes use the Hierarchy Token Bucket scheduling algorithm.