QoS General
Quality of Service (QoS) is a feature on the switch which prioritizes traffic resulting in a performance improvement for critical network traffic. QoS varies by switch, as the higher the level switch, the higher the network application layer it works with. The number of queues differ, as well as the kind of information used to prioritize.
QoS Properties
Quality of Service (QoS) prioritizes the traffic flow based on the type of traffic and can be applied to prioritize traffic for latency-sensitive applications (such as voice or video) and to control the impact of latency-insensitive traffic.
To configure QoS properties, follow these steps:
Procedure
Step 1 |
Click Quality of Service > General > QoS Properties. |
Step 2 |
Set the QoS mode. The following options are available:
|
Step 3 |
Select Port/LAG and click GO to display/modify all ports/LAGs on the device and their CoS information. The following fields are displayed for all ports/LAGs:
|
Step 4 |
Click Apply. The Running Configuration file is updated. To set QoS on an interface, select it, and click Edit. |
Step 5 |
Enter the parameters.
|
Step 6 |
Click Apply. The interface default CoS value is saved to Running Configuration file. To restore the default CoS values, click Restore CoS Defaults. |
Queue
The device supports 8 queues for each interface. Queue number eight is the highest priority queue. Queue number one is the lowest priority queue.
There are two ways of determining how traffic in queues is handled, Strict Priority and Weighted Round Robin (WRR).
-
Strict Priority—Egress traffic from the highest-priority queue is transmitted first. Traffic from the lower queues is processed only after the highest queue has been transmitted, thus providing the highest level of priority of traffic to the highest numbered queue.
-
Weighted Round Robin (WRR)—In WRR mode the number of packets sent from the queue is proportional to the weight of the queue (the higher the weight the more frames are sent). For example, if there are a maximum of four queues possible and all four queues are WRR and the default weights are used, queue 1 receives 1/15 of the bandwidth (assuming all queues are saturated and there’s congestion), queue 2 receives 2/15, queue 3 receives 4/15 and queue 4 receives 8 /15 of the bandwidth. The type of WRR algorithm used in the device isn’t the standard Deficit WRR (DWRR), but rather Shaped Deficit WRR (SDWRR).
The queuing modes can be selected in the Queue page. When the queuing mode is by strict priority, the priority sets the order in which queues are serviced, starting with the highest priority queue and going to the next lower queue when each queue is completed.
When the queuing mode is Weighted Round Robin, queues are serviced until their quota has been used up and then another queue is serviced. It’s also possible to assign some of the lower queues to WRR, while keeping some of the higher queues in strict priority. In this case traffic for the strict-priority queues is always sent before traffic from the WRR queues. Only after the strict-priority queues have been emptied is traffic from the WRR queues forwarded. (The relative portion from each WRR queue depends on its weight).
To select the priority method and enter WRR data, complete the following steps:
Procedure
Step 1 |
Click Quality of Service > General > Queue. |
Step 2 |
Enter the parameters.
|
Step 3 |
Click Apply. The queues are configured, and the Running Configuration file is updated. |
CoS/802.1p to a Queue
The CoS/802.1p to Queue page maps 802.1p priorities to egress queues. The CoS/802.1p to Queue Table determines the egress queues of the incoming packets based on the 802.1p priority in their VLAN Tags. For incoming untagged packets, the 802.1p priority is the default CoS/802.1p priority assigned to the ingress ports.
The following table describes the default mapping when there are 8 queues:
802.1p Values (0-7, 7 being the highest) |
Queue (8 queues 1-8, 8 is the highest priority) |
Notes |
---|---|---|
0 |
2 |
Background |
1 |
1 |
Best Effort |
2 |
3 |
Excellent Effort |
3 |
4 |
Critical Application - LVS phone SIP |
4 |
5 |
Video |
5 |
6 |
Voice - Cisco IP phone default |
6 |
7 |
Interwork Control LVS phone RTP |
7 |
8 |
Network Control |
By changing the CoS/802.1p to Queue mapping (CoS/802.1p to Queue) and the Queue schedule method and bandwidth allocation, it’s possible to achieve the desired quality of service in a network.
The CoS/802.1p to Queue mapping is applicable only if one of the following exists:
-
The device is in QoS Basic mode and CoS/802.1p trusted mode.
-
The device is in QoS Advanced mode and the packets belong to flows that are CoS/802.1p trusted.
To map CoS values to egress queues, follow these steps:
Procedure
Step 1 |
Click Quality of Service > General > CoS/802.1p to Queue. |
Step 2 |
Enter the parameters.
|
Step 3 |
For each 802.1p priority, select the Output Queue to which it is mapped. |
Step 4 |
Click Apply, Cancel or Restore Defaults. 801.1p priority values to queues are mapped, and the Running Configuration file is updated, the changes that entered are canceled, or previously defined values are restored. |
IP Precedence to a Queue
The IP Precedence to Queue page maps IP Precedence priorities to egress queues. The IP Precedence to Queue Table determines the egress queues of the incoming packets based on the IP Precedence priority.
The following table describes the default mapping when there are 8 queues:
IP Precedence Values (0-7,7 being the highest) |
Queue (8 queues 1-8,8 is the highest priority) |
Notes |
---|---|---|
0 |
1 |
Background |
1 |
2 |
Best Effort |
2 |
3 |
Excellent Effort |
3 |
4 |
Critical Application - LVS phone SIP |
4 |
5 |
Video |
5 |
6 |
Voice - Cisco IP phone default |
6 |
7 |
Interwork Control LVS phone RTP |
7 |
8 |
Network Control |
By changing the IP Precedence to Queue mapping (IP Precedence to Queue) and the Queue schedule method and bandwidth allocation, it’s possible to achieve the desired quality of service in a network.
The IP Precedence to Queue mapping is applicable to IP packets if:
-
The device is in QoS Basic mode and IP Precedence is the trusted mode.
-
The device is in QoS Advanced mode and the packets belongs to flows that are IP Precedence trusted.
To map IP Precedence values to egress queues, follow these steps:
Procedure
Step 1 |
Click Quality of Service > General > IP Precedence to Queue. |
Step 2 |
Enter the parameters.
|
Step 3 |
For each IP Precedence priority, select the Output Queue to which it is mapped. |
Step 4 |
Click Apply, Cancel or Restore Defaults. IP Precedence priority values to queues are mapped, and the Running Configuration file is updated, the changes that entered are canceled, or previously defined values are restored. |
DSCP to Queue
The DSCP (IP Differentiated Services Code Point) to Queue page maps DSCP values to egress queues. The DSCP to Queue Table determines the egress queues of the incoming IP packets based on their DSCP values. The original VPT (VLAN Priority Tag) of the packet is unchanged.
By simply changing the DSCP to Queue mapping and the Queue schedule method and bandwidth allocation, it’s possible to achieve the desired quality of services in a network.
The DSCP to Queue mapping is applicable to IP packets if:
-
The device is in QoS Basic mode and DSCP is the trusted mode.
-
The device is in QoS Advanced mode and the packets belongs to flows that are DSCP trusted.
Non-IP packets are always classified to the best-effort queue.
The following tables describe the default DSCP to queue mapping for an 8-queue system where 8 is highest:
DSCP |
63 |
55 |
47 |
39 |
31 |
23 |
15 |
7 |
Queue |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
DSCP |
62 |
54 |
46 |
38 |
30 |
22 |
14 |
6 |
Queue |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
DSCP |
61 |
53 |
45 |
37 |
29 |
21 |
13 |
5 |
Queue |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
DSCP |
60 |
52 |
44 |
36 |
28 |
20 |
12 |
4 |
Queue |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
DSCP |
59 |
51 |
43 |
35 |
27 |
19 |
11 |
3 |
Queue |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
DSCP |
58 |
50 |
42 |
34 |
26 |
18 |
10 |
2 |
Queue |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
DSCP |
57 |
49 |
41 |
33 |
25 |
17 |
9 |
1 |
Queue |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
DSCP |
56 |
48 |
40 |
32 |
24 |
16 |
8 |
0 |
Queue |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
To map DSCP to queues, follow these steps:
Procedure
Step 1 |
Click Quality of Service > General > DSCP to Queue. The DSCP to Queue page contains Ingress DSCP. It displays the DSCP value in the incoming packet and its associated class. |
Step 2 |
Select the Output Queue (traffic forwarding queue) to which the DSCP value is mapped. |
Step 3 |
Click Apply. The Running Configuration file is updated. Click Restore Defaults to restore the default settings. |
Queue to CoS_802_1p
Use the Queues to CoS/802.1p page to remark the CoS/802.1p priority for egress traffic from each queue.
To map queues to CoS values, follow these steps:
Procedure
Step 1 |
Click Quality of Service > General > Queues to CoS/802.1p. |
Step 2 |
Enter the parameters.
|
Step 3 |
For each output queue, select the CoS/802.1p priority to which egress traffic from the queue is remarked |
Step 4 |
Click Apply, Cancel or Restore Defaults. Queues to 801.1p priority values are remarked, and the Running Configuration file is updated, the changes that entered are canceled, or previously defined values are restored. |
Queue to IP Precedence
Use the Queues to IP Precedence page to remark the IP Precedence value for egress traffic from each queue.
To map queues to IP Precedence values, follow these steps:
Procedure
Step 1 |
Click Quality of Service > General > Queues to IP Precedence. |
Step 2 |
Enter the parameters.
|
Step 3 |
For each output queue, select the IP Precedence value to which egress traffic from the queue is remarked. |
Step 4 |
Click Apply, Cancel or Restore Defaults. Queues to IP Precedence priority values are remarked, and the Running Configuration file is updated, the changes that entered are canceled, or previously defined values are restored. |
Queue to DSCP
Use the Queues to DSCP page to remark the DSCP value for egress traffic from each queue.
To map queues to DSCP values, follow these steps:
Procedure
Step 1 |
Click Quality of Service > General > Queues to DSCP. |
Step 2 |
Enter the parameters.
|
Step 3 |
For each output queue, select the DSCP value to which egress traffic from the queue is remarked. |
Step 4 |
Click Apply, Cancel or Restore Defaults. Queues to DSCP priority values are remarked, and the Running Configuration file is updated, the changes that entered are canceled, or previously defined values are restored. |
Remark Interface
Use the Remark Interface Settings page to remark the CoS/802.1p priority, IP precedence, and DSCP value for egress traffic on a port. The CoS/802.1p priority and IP or the CoS/802.1p priority and DSCP value can be remarked simultaneously, but the DSCP value and IP cannot be remarked simultaneously
To remark egress traffic on an interface:
Procedure
Step 1 |
Click Quality of Service > General > Remark Interface Settings. |
Step 2 |
Select an interface type (Port or LAG), and click Go. |
Step 3 |
Select a Port/LAG, and click Edit. |
Step 4 |
Enter the parameters.
|
Step 5 |
Click Apply. The Running Configuration is updated |
Bandwidth
The Bandwidth page displays bandwidth information for each interface. To view the bandwidth information, complete the following steps:
Procedure
Step 1 |
Click Quality of Service > General > Bandwidth. The fields in this page are described in the Edit page below, except for the following fields:
|
||||||||||
Step 2 |
Select an interface, and click Edit. |
||||||||||
Step 3 |
Select the Port interface. |
||||||||||
Step 4 |
Enter the fields for the selected interface:
|
||||||||||
Step 5 |
Click Apply. The bandwidth settings are written to the Running Configuration file. |
Egress Shaping per Queue
In addition to limiting transmission rate per port, which is done in the Bandwidth page, the device can limit the transmission rate of selected egressing frames on a per-queue per-port basis. Egress rate limiting is performed by shaping the output load.
The device limits all frames except for management frames. Any frames that aren’t limited are ignored in the rate calculations, meaning that their size isn’t included in the limit total.
To configure the egress shaping per queue, complete the following steps:
Procedure
Step 1 |
Click Quality of Service > General > Egress Shaping per Queue. The Egress Shaping Per Queue page displays the rate limit (CIR) for each queue. |
Step 2 |
Select an interface type (Port), and click Go. |
Step 3 |
Select a Port, and click Edit. This page enables shaping the egress for up to eight queues on each interface. |
Step 4 |
Select the Interface. |
Step 5 |
For each queue that is required, enter the following fields:
|
Step 6 |
Click Apply. The bandwidth settings are written to the Running Configuration file. |
VLAN Ingress Rate Limit
Rate limiting per VLAN, performed in the VLAN Ingress Rate Limit page, enables traffic limiting on VLANs. When VLAN ingress rate limiting is configured, it limits aggregate traffic from all the ports on the device.
The following constraints apply to rate limiting per VLAN:
-
It has lower precedence than any other traffic policing defined in the system. For example, if a packet is subject to QoS rate limits but is also subject to VLAN rate limiting, and the rate limits conflict, the QoS rate limits take precedence.
To define the VLAN ingress rate limit, complete the following steps:
Procedure
Step 1 |
Click Quality of Service > General > VLAN Ingress Rate Limit. This page displays the VLAN Ingress Rate Limit Table. |
Step 2 |
Click Add. |
Step 3 |
Enter the parameters.
|
Step 4 |
Click Apply. The VLAN rate limit is added, and the Running Configuration file is updated. |
VLAN Port Ingress Rate Limit
Rate limiting per VLAN port, performed on the VLAN Port Ingress Rate Limit page, enables traffic limiting on the ports that are bound to a specific VLAN. When VLAN port ingress rate limiting is configured, it limits aggregate traffic from the specified ports on the switch.
The following constraints apply to rate limiting per VLAN:
-
It has lower precedence than any other traffic policing defined in the system. For example, if a packet is subject to QoS rate limits but is also subject to VLAN port rate limiting, and the rate limits conflict, the QoS rate limits take precedence.
To define the VLAN Port ingress rate limit, complete the following steps:
Procedure
Step 1 |
Click Quality of Service > General > VLAN Port Ingress Rate Limit. |
Step 2 |
Click Add. |
Step 3 |
Enter the parameters:
|
Step 4 |
Click Apply. The VLAN Port rate limit is added, and the Running Configuration file is updated |
TCP Congestion Avoidance
The TCP Congestion Avoidance page enables activating a TCP congestion avoidance algorithm. The algorithm breaks up or avoids TCP global synchronization in a congested node, where the congestion is due to various sources sending packets with the same byte count.
To configure TCP congestion avoidance complete the following steps:
Procedure
Step 1 |
Click Quality of Service > General > TCP Congestion Avoidance. |
Step 2 |
Click Enable to enable TCP congestion avoidance, and click Apply. |