Allied Telesis x900-48 User Manual

AlliedWareTM OS
How To |
Configure QoS on AT-9900, x900-48, and x900-24 Series Switches

Introduction

This document describes some generic configuration examples for Quality of Service (QoS) on AT-9900 and x900 series switches running the AlliedWare OS.

What information will you find in this document?

This document provides information on the following sections:
z "
1
. Setting the egress rate" on page 2
z "2. Setting the priority on a packet" on page 7
z "3. Setting the egress queues" on page 10
z "Full QoS scenario
z "Full QoS scenario 2: bandwidth limiting of multiple customers" on page 18
1
: tiered services for a single customer" on page 13
Which product and software version does this information apply to?
This How To Note applies to the following Allied Telesis switches, running the AlliedWare
1
OS software version 2.7.
z AT-9924SP, AT-9924T, AT-9924T/4SP
z x900-48 series
z x900-24 series
z AT- 89 48
or later:
C613-16068-00 REV B
www.alliedtelesis.com
1
. Setting the egress rate
Example 1-1: Setting the egress limit of a switch port
Port 24
Command:
1
. Setting the egress rate
set switch port=24 egresslimit=640
This command will set the egress limit of port 24 to 640kbps. The granularity is 640kbps.
Page 2 | AlliedWare™ OS How To Note: QoS configuration
1
. Setting the egress rate
Example 1-2: setting the maximum bandwidth limit per ingress port
Ingress rate limiting cannot be configured on the port per se, but is achieved by creating a QoS policy with a bandwidth limited traffic class, and applying that policy to each port.
Port 24
Ingress ports 1-20
create class=1
create qos flow=1 add qos flow=1 class=1 create qos traff=1 add qos traff=1 flow=1 set qos traff=1 maxbandwidth=128kbps maxburst=5kbyte dropbw=yes create qos poli=1 add qos poli=1 traff=1 set qos port=1 poli=1
create qos flow=2 add qos flow=2 class=1 create qos traff=2 add qos traff=2 flow=2 set qos traff=2 maxbandwidth=256kbps maxburst=5kbyte dropbw=yes create qos poli=2 add qos poli=2 traff=2 set qos port=2 poli=2
create qos flow=3 add qos flow=3 class=1 create qos traff=3 add qos traff=3 flow=3 remarking=priority set qos traff=3 maxbandwidth=64kbps maxburst=5kbyte dropbw=yes create qos poli=3 add qos poli=3 traff=3 set qos port=3 poli=3
...
This set of commands will set the ingress rate of traffic received per port from ports to various different values. Note that classifier=
1
the rate limiting is around
Page 3 | AlliedWare™ OS How To Note: QoS configuration
kbps.
1
to 20
1
matches every packet. The granularity of
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.
Port 24 Internet connection
Users connected to the switch downloading files from the Internet
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 ...
(192.168.1.1-192.168.1.25)
create qos poli=1 add qos poli=1 traff=1-23 set qos port=24 poli=1
This set of commands will set the total egress limit (download traffic) for each user to 256kbps. The granularity is around
Page 4 | AlliedWare™ OS How To Note: QoS configuration
1
kbps.
1
. Setting the egress rate
Example 1-4: Setting the maximum bandwidth limit for each IP subnet
This example is very similar to example 1-3, except that it is assumed that a whole subnet is attached to each port, not just a single device on each port.
Port 24 Internet connection
Users connected to the switch downloading files from the Internet
create class=1 ipda=192.168.1.0/24 create class=2 ipda=192.168.2.0/24 create class=3 ipda=192.168.3.0/24 ...
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 ...
(192.168.1.0/24 - 192.168.23.0/24)
create qos poli=1 add qos poli=1 traff=1-23 set qos port=24 poli=1
This set of commands will set the total egress limit (download traffic) for each subnet to 256kbps. The granularity is around
Page 5 | AlliedWare™ OS How To Note: QoS configuration
1
kbps.
1
. Setting the egress rate
Example 1-5: Setting the maximum bandwidth limit of VLANs
Port 24
Ingress ports 1-20 (these ports are carrying a mixture of
VLAN2, VLAN3 and VLAN4 packets, either with or without VLAN tags)
create class=1 vlan=2 create class=2 vlan=3 create class=3 vlan=4 create qos flow=1 add qos flow=1 class=1 create qos flow=2 add qos flow=2 class=2 create qos flow=3 add qos flow=3 class=3 create qos traff=1 add qos traff=1 flow=1 set qos traff=1 maxbandw=256kbps maxburst=5kbyte dropbw=yes create qos traff=2 add qos traff=2 flow=2 set qos traff=2 maxbandw=256kbps maxburst=5kbyte dropbw=yes create qos traff=3 add qos traff=3 flow=3 set qos traff=3 maxbandw=256kbps maxburst=5kbyte dropbw=yes create qos poli=1 add qos poli=1 traff=1,2,3 create qos portgroup=1 ports=1-20 set qos portgroup=1 policy=1
Note: The portgroup feature is not supported before software release v2.7.5. If using an
earlier software release, use the port parameter on the policy instead.
Page 6 | AlliedWare™ OS How To Note: QoS configuration

2. Setting the priority on a packet

2. Setting the priority on a packet
Example 2-1: Setting the Layer 2 (VLAN/802.1p) priority per ingress port
Here we assign different 802.1p values to packets arriving on different ports.
These values are also known as the Layer 2 (L2) or VLAN priority.
Port 24
Ingress ports 1-20 (these ports MAY be carrying a mixture of
packets from different VLAN packets, either with or without VLAN tags)
create class=1 create qos flow=1 add qos flow=1 class=1 create qos traff=1 add qos traff=1 flow=1 set qos traff=1 mark=11 premarking=usemark set qos dscpmap=premarking dscp=11 newpriority=6 create qos poli=1 add qos poli=1 traff=1 set qos port=1 poli=1
create class=2 create qos flow=2 add qos flow=2 class=2 create qos traff=2 add qos traff=2 flow=2 set qos traff=2 mark=12 premarking=usemark set qos dscpmap=premarking dscp=12 newpriority=5 create qos poli=2 add qos poli=2 traff=2 set qos port=2 poli=2
create class=3 create qos flow=3 add qos flow=3 class=3 create qos traff=3 add qos traff=3 flow=3 remarking=priority set qos traff=3 mark=13 premarking=usemark set qos dscpmap=premarking dscp=13 newpriority=4 create qos poli=3 add qos poli=3 traff=3 set qos port=3 poli=3
...
Page 7 | AlliedWare™ OS How To Note: QoS configuration
Loading...
+ 14 hidden pages