
C613-50186-01 Rev B
Command Reference for AR2050V
1768
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
T
RAFFIC
C
ONTROL
C
OMMANDS
CLASS
(
HTB
)
class (htb)
Overview
Use this command to configure a hierarchy token bucket (HTB) 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>
[cir
<committed-rate>
] [pir <
peak-rate>
]
[bc
<1-100000000>
] [be
<1-100000000>
] [preference
<0-7>
]
[queue-length
<2-65536>
] [set-dscp
<dscp-value>
] [red-curve
<
red-curve-name>
]
class
<class-name>
[cir
<committed-rate>
] [pir <
peak-rate>
]
[bc
<1-100000000>
] [be
<1-100000000>
] [preference
<0-7>
]
sub-class-policy htb
no class
<class-name>
Default
BC and BE are assigned suitable values proportional to the CIR and PIR respectively,
and are larger than the MTU. The PIR defaults to the CIR. The Preference defaults to
7 and the queue-length defaults to 1000 (if the class is a leaf). If the keyword
<default> is used then the default RED curve is applied.
Parameter
Description
<class-name>
Name of the class.
cir
<committed-rate>
Set the Committed Information Rate (CIR) for the queue.
This parameter is compulsory when creating a new class. When editing
an existing class, this parameter is optional.
pir
<peak-rate>
Set the Peak Information Rate (PIR) for the queue. This is the rate of the
queue under peak conditions. Specified in kbit/mbit/gbit per second,
in the range 1kbit-100gbit.
bc
<1-100000000>
Set the Committed Burst size (BC). This is the burst allowed above the
CIR sent at the PIR rate.
be
<1-100000000>
Set the Excess Burst size (BE). This is the burst allowed above the PIR
sent at the maximum rate.
preference
<0-7>
Set the preference for a class to receive spare bandwidth. Preference for
the class to receive spare bandwidth (highest is 7).
queue-length
<2-65536>
Set the maximum queue length.
set-dscp
<dscp-value>
Set the DSCP value to apply to the 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
Specify that the class will contain sub-classes.
htb
Sub-classes will use the Hierarchy Token Bucket (HTB) queueing
discipline.