- Allied Telesis, Inc Switches Owner's Manual

Page 20 | AlliedWare™ OS How To Note: QoS configuration
Full QoS scenario 2: bandwidth limiting of multiple customers
create qos traff=9
set qos traff=9 maxband=5Mbps maxburst=10Kb dropbwc=yes
add qos traff=9 flow=9
create qos traff=10
set qos traff=10 maxband=2Mbps maxburst=10Kb dropbwc=yes
add qos traff=10 flow=10
create qos poli=6
add qos poli=6 traff=6-10
set qos port=24 poli=6
The ISP can offer to the customer a guarantee that VoIP traffic (up to a certain, relatively low,
bandwidth) will be given preferential treatment.
So, for each port, VoIP traffic will be classified into its own traffic class, and directed to a high-
priority egress queue.
Therefore, we need to classify VoIP traffic
create classifier=11 udpdport=5060
create classifier=12 udpdport=5061
create classifier=13 udpdport=5004 udpdmask=FFFE
create classifier=14 udpdport=16384 udpdmask=8000
The VoIP traffic needs to be associated to a traffic class that applies a strict max bandwidth,
and uses the premarking DSCP map to assign the traffic to a high priority queue (and to mark
the DSCP fields of the packets, for good measure).
set qos dscpmap=premarking dscp=55 newqueu=6 newdscp=55
So, the configuration for the QoS to be applied to the outgoing traffic now becomes:
set qos dscpmap=premarking dscp=55 newqueu=6 newdscp=55
create classifier=11 udpdport=5060
create classifier=12 udpdport=5061
create classifier=13 udpdport=5004 udpdmask=FFFE
create classifier=14 udpdport=16384 udpdmask=8000
create qos flow=1
add qos flow=1 class=11-14
create qos traffic=1 markvalue=55 premark=usemarkvalue
set qos traffic=1 maxband=64Kbps dropbwclass3=yes maxburst=10kbytes
X Step 2—Giving better service to VOIP traffic