- Allied Telesis, Inc Switches Owner's Manual

Page 4 | AlliedWareā„¢ OS How To Note: QoS configuration
1
. Setting the egress rate
Example
1
-3: Setting the maximum bandwidth limit for each user
In example
1
-
1
, we configured an egress rate on ports. But the granularity of that bandwidth
limiting was multiples of 640kbps. To achieve a finer-grained limiting on egress, it is necessary
to make use of traffic classes. In this example we assume that there is one device with a
known IP address, attached to each port. A traffic class will be created for each such IP
address, and a maximum bandwidth applied to the traffic class.
This set of commands will set the total egress limit (download traffic) for each user to
256kbps. The granularity is around
1
kbps.
create class=1 ipda=192.168.1.1
create class=2 ipda=192.168.1.2
create class=3 ipda=192.168.1.3
...
create qos flow=1
add qos flow=1 class=1
create qos traf=1
add qos traf=1 flow=1
set qos traf=1 maxbandw=256kbps maxburst=5kbyte dropbw=yes
create qos flow=2
add qos flow=2 class=2
create qos traf=2
add qos traf=2 flow=2
set qos traf=2 maxbandw=256kbps maxburst=5kbyte dropbw=yes
create qos flow=3
add qos flow=3 class=3
create qos traf=3
add qos traf=3 flow=3
set qos traf=3 maxbandw=256kbps maxburst=5kbyte dropbw=yes
...
create qos poli=1
add qos poli=1 traff=1-23
set qos port=24 poli=1
Port 24
Internet
connection
Users connected to the switch downloading files from the Internet
(192.168.1.1-192.168.1.25)