
Industrial Managed
Ethernet Switch
User Manual
錯誤
!
使用
[
常用
]
索
引標籤將
Heading
1,Product Manual
套用到您想要在此處
顯示的文字。
Page
50
of
191
2.4 QoS
Quality of Service (QoS) is the ability to provide different priority to different applications, users, or data flows. QoS
guarantees a certain level of performance to a data flow by using the following metrics: transmitted bit rate, bit error
rate, delay, jitter, and probability of packet dropping. QoS guarantees are important if the network capacityis
insufficient, especially for application that requires certain bit rate and is delay sensitive. For any network that is
best effort, QoS cannot be guaranteed, except that resource is more than sufficient to serve users.
Controlling network traffic needs a set of rules to help classify different types of traffic and define how each of them
should be treated as they are being transmitted. This managed switch can inspect both 802
.
1p Class of Service
(CoS) tags and DiffServ tags called Differentiated Services Code Point (DSCP) to provide consistent classification.
Under the
QoS
section, there are four subsections:
Setting
subsection,
CoS Queuing Mapping
subsection,
DSCP
Mapping
subsection and Strom control subsection, as shown in Figure 2.54
Figure 2.54 QoS Dropdown Menu
2.4.1.1
QoS Setting
Two modes of QoS or packet scheduling methods are configurable in EH75XXseries managed switch: Strict Priority
only and Deficit Weighted Round
-
Robin (DWRR) with Strict Priortly.
In
Strict Priority
, the QoS scheduler allows the highest priority queue to preempt other queues as long as there
are still packets waiting to be transmitted in the highest priority queue. This mode guarantees that traffic in the
highest queue is always transmitted first. Only if the high priority queues are empty, the lower priority queues can
be transmitted. Queue 0 (Q0) to Queue 7 (Q7) are ranked from the lowest priority queue to the highest priority
queue. Therefore, packets in Q7 will be all transmitted first before packets in Q6, and packets in Q6 will all be sent
first before packets in Q5, and so on in this order.
Weighted Round Robin (WRR)
is the simplest approximation of generalized processor sharing (GPS). In WRR,
each packet flow or connection has its own packet queue in a network interface controller
.
It ensures that all service
classes have access to at least some configured amount of network bandwidth to avoid bandwidth starvation. But
WRR has a limitation, as it is unfair with variable length packets. It only provides the correct percentage of bandwidth
to each service class only if all of the packets in all the queues are the same size or when the mean packet size is
known in advance. Usually, a weight of each queue is set proportion to requested bit rate. Each queue is served
proportionally to its weight for a service cycle.
Deficit WRR (DWRR)
addressed the limitation of WRR on unfairness over variable size. Each queue is configured
with a weight, a deficit counter (total number of bytes that the queue is permitted to transmit each time visited by
the scheduler), and a quantum of service (bytes). DWRR scans all non-empty queues in sequence. When a non
-
empty queue is selected, its deficit counter is incremented by its quantum value. Then, the value of the deficit
counter is the maximal number of bytes that can be sent at this turn. If the deficit counter is greater than the packet
’s
size at the head of the queue, this packet can be sent and the value of the counter is decremented by the packet
size. Then the size of the next packets is compared to the counter value. Once the queue is empty or the value of
the counter is insufficient, the scheduler will skip to the next queue
.
If the queue is empty, the value of the deficit
counter is reset to 0. If the packet size is too small, the scheduler has to visit queues too many times before serving
a queue. But if the packet size is too large, some short-term unfairness may arise. It is fair only over a time scale
longer than a round time. At the shorter time scale, some flows may get more service. Small packet size or high
transmission speed reduce the round time.