
C613-50186-01 Rev B
Command Reference for AR2050V
1798
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
T
RAFFIC
C
ONTROL
C
OMMANDS
SUB
-
CLASS
(
HTB
)
sub-class (htb)
Overview
Use this command to configure a hierarchy token bucket (HTB) sub-class within an
existing class.
Use the
no
variant of this command to delete an existing sub-class under the
current class.
Syntax
sub-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>
]
sub-class
<class-name>
[cir <
committed-rate
>] [pir <
peak-rate
>]
[bc <
1-100000000
>] [be <
1-100000000
>] [preference <
0-7
>]
sub-sub-class-policy htb
no sub-class
<class-name>
Default
BC and BE are assigned suitable values proportional to the CIR and PIR respectively
and are larger that the MTU. PIR defaults to the CIR. Preference defaults to 7 and
the queue length default to 1000 if the class is a leaf.
Mode
Traffic-Control Class for an HTB sub-class policy.
Parameter
Description
<class-name>
Name of the class.
cir
<committed-rate>
Set the Committed Information Rate (CIR) for the queue. Specified in
kbit/mbit/gbit per second, 1kbit-100gbit.
This parameter is compulsory when creating a new sub-class. When
editing an existing sub-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 (highest is 7).
queue-length
<2-65536>
Set the maximum queue length in packets.
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 sub-class and enter
the name of the red curve template to apply.
sub-sub-class-policy
Specify that the sub-class will contain sub-sub-classes.
htb
Sub-sub-classes will use the Hierarchy Token Bucket (HTB) queueing
discipline.