Configuring Quality of Service (QoS)
Configuring Quality of Service (QoS)
MINI-LINK 6352
Operating Instructions
Disclaimer
The contents of this document are subject to revision without notice due to
continued progress in methodology, design and manufacturing. Ericsson shall
have no liability for any error or damage of any kind resulting from the use of this
document.
Contents
3 CLI Configuration 10
3.1 Classifying and Marking the Traffic 10
3.2 Configuring Queuing with WRED (CLI) 15
3.3 Configuring Scheduling 16
3.4 Configuring Shaping (CLI) 19
3.5 Setting the Frame Size (CLI) 19
Customer Customer
Domain
Operator Domain Domain
Figure 2 shows an overview of the QoS mechanisms that the packet radio
supports.
Classification Marking
Trusted
customer Mapping
Frame
priority tables
ingress
MPLS
Operator
priority
DSCP
INGRESS
PCP
Default
Classification priority
disabled or
no trusted
customer priority
Switching
Ethernet
egress
port
Priority queue 7
Priority queue 2
Priority queue 1
Priority queue 0
The size of an Ethernet frame is often related to the end-user application. A real-
time application (for example, voice, video) that requires minimum latency
typically uses small Ethernet frames, while a data application with no real-time
characteristics uses the maximum frame size. The system supports multicast,
unicast, and broadcast frames, and supports frames with a size up to 9,216 bytes
(Jumbo Frames).
1.1 Classification
The classification mechanism extracts customer priority in frames that enter the
operator domain.
In a network with mixed traffic, the classification mechanism can extract the
different customer priority types simultaneously. The classification mechanism
then selects which customer priority to use in the following priority order:
— MPLS TC
— PCP
1.2 Marking
The marking mechanism sets the operator priority.
If a frame contains trusted customer priority, the marking mechanism can use the
customer priority together with a mapping table to set the operator priority.
The marking mechanism sets the operator priority to the default priority in the
following cases:
1.3 Policing
The policing mechanism makes sure that a customer does not use more than the
allowed resources in a network.
The policing mechanism limits the input bit rates based on a bandwidth profile.
The bandwidth profiles support the MEF concepts Committed Information Rate
(CIR), Committed Burst Size (CBS), Excess Information Rate (EIR), and Excess
Burst Size (EBS). The policing mechanism drops excess traffic if the bit rate
reaches the configured maximum bit rate, see Figure 3.
Figure 3 Policing
The coloring process uses the above parameters in the following manner to
identify the appropriate color for a frame:
Traffic rate
[BPS]
>EBS
CIR +EIR CIR +EIR
CBS EBS
<CBS <EBS
CBS
CIR CIR
Time
The policing mechanism supports bandwidth profiles for MEF services in one of
the following ways:
— Per UNI
— Per EVC
1.5 Queuing
The queuing mechanism supports the following queue management mechanisms
for the priority queues:
Probability of
dropping
incoming packet
100%
Maximum
Probability
Red
Maximum
Probability
Yellow
Maximum
Probability
Green
Minimum Minimum Maximum Minimum Maximum Maximum Average queue size (packets)
Threshold Threshold Threshold threshold Threshold Threshold
Red Yellow Red Green Yellow Green
1.6 Scheduling
The scheduling mechanism handles congestion by emptying the priority queues
according to one or both of the following algorithms:
— Strict Priority (SP) always schedules frames from the queue with the highest
priority first. SP is typically used for delay-sensitive traffic like voice, video,
and sync packets.
When using WFQ, the allocated bandwidth for a queue is its weight divided
by the sum of all weights for all queues. A scheduler handling N queues is
With SP, low-priority queues will never get served if high-priority queues are
constantly being filled up. WFQ, however, makes sure that all queues are served
according to their predefined weight.
The scheduling mechanism can be set up to work with one set of high-priority SP
queues, one set of WFQ queues, and optionally one low-priority SP queue, as in
the example in Figure 6.
The number of queues of each type is configurable (see Table 1), but the
scheduling mechanism always empties the priority queues in the following order:
— high-priority SP queues
1.7 Shaping
The shaping mechanism enforces a bit rate that is lower than the line rate of the
physical interface. The mechanism buffers excess frames and schedules them for
later transmission. Shaping results in a smoother frame output bit rate, see Figure
7.
Figure 7 Shaping
The packet radio supports shaping on the LAN and WAN ports.
2.1 Prerequisites
This feature is included in Basic SW license. No additional license is required.
2.2 Limitations
This document only describes how to configure QoS for Ethernet and tasks
related to this. The radio link must be configured before the configuration of QoS
can start.
— Read through all applicable chapters and make sure referenced documents
are available. For detailed commands, refer to CLI User Guide.
— Make sure you have access to the Network Element (NE) using CLI. For
detailed information, refer to Accessing a Network Element.
— How to start a CLI session and CLI basics, see CLI User Guide.
3 CLI Configuration
In a network with mixed traffic, the classification mechanism can extract the
different customer priority types simultaneously. The classification mechanism
then selects which customer priority to use in the following priority order:
— MPLS TC
— PCP
Example 1
# Set the customer priority classification:
#
# This example sets the customer priority classification to MPLS:
#
end; config slot 1 lan 1 2 priority mplsexp
#
# This example changes the mapping of MPLS TC 0, 1, and 5
# to operator priority 3, 4, and 7, respectively:
#
end; config slot 1 lan 1 2 mpls-exp-config mpls-exp-decode 0 priority 3
end; config slot 1 lan 1 2 mpls-exp-config mpls-exp-decode 1 priority 4
end; config slot 1 lan 1 2 mpls-exp-config mpls-exp-decode 5 priority 7
The classification mechanism can extract the following types of DSCP customer
priority:
— IPv4
— IPv6
Example 2
# Set the customer priority classification:
#
# This example sets the customer priority classification to IPv6 DSCP:
#
end; config slot 1 lan 1 2 priority ipv6dscp
Example 3
# Set the customer priority classification:
#
# This example sets the priority classification to PCP (dot1p):
#
end; config slot 1 lan 1 2 priority dot1p
3.1.4 Classifying and Marking Traffic using MPLS, DSCP, and PCP (CLI)
Example 4
# Set the customer priority classification:
#
# This example sets the customer priority classification
# to MPLS, DSCP, and PCP:
#
end; config slot 1 lan 1 2 priority mplsIpDot1p
Example 5
# Set the default priority:
#
# This example sets the default priority to 6:
#
end; config slot 1 lan 1 2 priority-config default-priority 6
Example 6
# Create a customized mapping of operator priority to priority queue:
#
# This example defines a operator priority-to-priority queue mapping table
# with the name "ingressPrioMap":
#
end; config cos dot1p priority-map-profile ingressPrioMap
Example 7
# Create a new queue profile:
#
# This example creates a queue profile with the name "MyProfile:
#
end; config cos queue-profile MyProfile
#
# Configure the congestion control method for the queues:
#
# This example configures all queues in the profile "MyProfile" to use WRED:
#
end; config cos queue-profile MyProfile queue 0 congestion wred
end; config cos queue-profile MyProfile queue 1 congestion wred
end; config cos queue-profile MyProfile queue 2 congestion wred
end; config cos queue-profile MyProfile queue 3 congestion wred
end; config cos queue-profile MyProfile queue 4 congestion wred
end; config cos queue-profile MyProfile queue 5 congestion wred
end; config cos queue-profile MyProfile queue 6 congestion wred
end; config cos queue-profile MyProfile queue 7 congestion wred
#
# (optional) Add specific thresholds for active wred-range, per color.
# This example sets both thresholds for queue 0
# to 10 and 90 for both green and yellow traffic.
# If no thresholds are given, the thresholds are set to the default values (25,8 →
0).
#
end; config cos queue-profile MyProfile queue 0 congestion wred \
green-low-threshold 10 green-high-threshold 90 \
yellow-low-threshold 10 yellow-high-threshold 90
#
#
#
#
# (optional) Set the gain.
# The gain controls how quickly the average queue-size
# changes, and can be set from 0 to 15.
# If no value is given, the gain is set to default (0).
#
#
Example 8
# Change the scheduling profile:
#
end; config cos scheduling profile sp8
Example 9
# Change the scheduling profile:
#
end; config cos scheduling profile wfq8
3.3.3 Configuring Scheduling for a Mix of Strict Priority and Weighted Fair
Queuing (CLI)
Example 10
# Change the scheduling profile:
#
# This example changes the scheduling profile for classes 5 to 7
# to use strict priority, and classes 0 to 4 to use WFQ:
#
end; config cos scheduling profile sp3-wfq5
Example 12
# Set the MTU size:
#
Steps
1. Log on to the Node GUI (for information about accessing the Node GUI, see
Accessing a Network Element). The Overview page opens.
4. Click Save.
Steps
1. Log on to the Node GUI (for information about accessing the Node GUI, see
Accessing a Network Element). The Overview page opens.
5. Click Save.
4.1.3 Configuring Scheduling for a Mix of Strict Priority and Weighted Fair
Queueing (GUI)
To configure scheduling for a mix of strict priority and weighted fair queuing:
Steps
1. Log on to the Node GUI (for information about accessing the Node GUI, see
Accessing a Network Element). The Overview page opens.
5. Click Save.