...
- Devices recognize priority automatically according to different protocols. For example, InfiLINK XG family devices support 802.1p priority and do not recognize DSCP priority values.
- Devices that are borderline for the DS domain allow to use a different set of criteria to classify traffic. For example, InfiMAN 2x2 devices allow to set priority by selecting all TCP traffic directed to port 23, Vector Quanta 5 family devices do not.
- Число очередей, реализованных в устройствах разных производителей, отличается. Для того, чтобы установить соответствие между приоритетом в служебном заголовке данных и внутренней очередью устройства, должна быть использована таблица соответствия.
Данные о внутренней архитектуре очередей, возможностях управления приоритетами данных и соответствия между протокольными и внутренними значениями приоритетов приведены в таблицах ниже.
Следует отметить архитектурную особенность организации очередей в устройствах Инфинет: все очереди делят между собой единый буфер памяти. В случае, если весь трафик попадает в одну очередь, то её размер будет соответствовать размеру буфера, а если очередей будет несколько, то размер буфера памяти будет равномерно поделен между ними.
...
Таблица внутренней организации очередей сообщений
...
- The queues number implemented in devices is different and depends on manufacturer. A correspondence table is used to set a relation between the priority in the service header and the device internal queue.
The tables below show data on the queues internal architecture, the priorities managing possibilities and the relation between the protocol and internal priorities values.
Note the queuing architectural feature of Infinet devices: all queues share a single memory buffer. In case the traffic falls into one queue, its size will be equal to the size of the buffer, if there will be several queues, the size of the memory buffer will be evenly divided between them.
Center | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Table of packets internal queuingКласс трафика (в соответствии с
Таблица соответствия протокольных и внутренних приоритетов для устройств семейств InfiLINK 2x2, InfiMAN 2x2
Correspondence table of protocols and internal priorities for InfiLINK 2x2, InfiMAN 2x2 family devices
Correspondence table of protocols and internal priorities for InfiLINK XG, InfiLINK XG 1000,VectorQuanta 5,VectorQuanta 70 family devices
|
Диспетчеризация очередей
...
Queues management
Prioritization assumes the use of several packes queues, which content must be transmitted to outgoing interfaces through a common bus. Infinet devices support two mechanisms for packets transmission from queues to the bus: strict and weighted scheduling.
Anchor | ||||
---|---|---|---|---|
|
...
Механизм строгой приоритизации подразумевает последовательное опустошение очередей в соответствии со значениями приоритета. Отправка сообщений с приоритетом 2 будет выполнена только после того, как в шину будут переданы все сообщения с приоритетом 1 (рис. 14). После того, как будут отправлены сообщения с приоритетами 1 и 2, устройство начнёт отправку сообщений с приоритетом 3.
...
Strict scheduling
The strict prioritization mechanism assumes sequential queues emptying in accordance with priority values. Packets with priority 2 will only be sent after all packets with priority 1 will be transferred to the bus (Figure 14). After packets with priorities 1 and 2 are sent, the device will start sending packets with priority 3.
The lack of this mechanism is that resources will not be allocated to low-priority traffic if there are packets in higher priority queues, it will lead to the complete inaccessibility of some network services.
Center |
---|
Рисунок Figure 14 - Строгая диспетчеризация сообщенийStrict packets scheduling |
Anchor | ||||
---|---|---|---|---|
|
...
Взвешенная диспетчеризация лишена недостатков строгой диспетчеризации. Взвешенная диспетчеризация подразумевает распределение ресурсов между всеми очередями сообщений в соответствии с весовыми коэффициентами, которые соответствуют значениям приоритета. В случае трёх очередей сообщений (рис. 15), весовые коэффициенты могут быть распределены следующим образом:
- очередь сообщений 1: вес = 3;
- очередь сообщений 2: вес = 2;
- очередь сообщений 3: вес = 1.
...
Weighted scheduling
Weighted scheduling doesn't have disadvantages of strict scheduling. Weighted scheduling assumes the resources allocation between all queues in accordance with weighting factors that correspond to priority values. If there are three queues (Figure 15), weighted factors can be distributed in the following way:
- packets queue 1: weight = 3;
- packets queue 2: weight = 2;
- packets queue 3: weight = 1.
When using weighted scheduling, each queue will receive resources, i.e. there will be no situation with the complete inaccessibility of some network service.
Center |
---|
Рисунок Figure 15 - Взвешенная диспетчеризация сообщений |
Рекомендации по приоритизации трафика
Можно сформулировать набор универсальных рекомендаций по конфигурации механизмов приоритизации трафика:
- Необходимо скрупулезно отнестись к разработке политики QoS. Политика должна описывать трафик всех сервисов, используемых в сети, предусматривать строгое соответствие сервиса и класса трафика.
- Политика QoS должна учитывать технические возможности устройств по распознаванию и манипуляции со значениями служебных полей, в которых указывается приоритет данных.
- На пограничных устройствах DS-домена должны быть настроены правила классификации потоков трафика.
- На промежуточных устройствах DS-домена должна быть активирована функция автоматического распознавания приоритетов трафика.
Механизмы ограничения пропускной способности
Распределение ресурсов сети между потоками трафика может быть выполнено не только за счёт приоритизации, но и с помощью механизма ограничения пропускной способности. В этом случае, скорость передачи данных потока не может превысить пороговый уровень, установленный администратором сети.
Принцип ограничения скорости в устройствах Инфинет
Принцип ограничения скорости заключается в постоянном измерении интенсивности потока данных и, в случае, если значение интенсивности превышает установленный порог, срабатывает ограничение (рис. 16а,б). Для ограничения пропускной способности в устройствах Инфинет используется алгоритм Token Bucket, заключающийся в том, что все пакеты данных сверх порога пропускной способности отбрасываются. В результате образуются потери, описанные выше.
Center |
---|
Рисунок 16а - График интенсивности потока данных без ограничения Рисунок 16б - График интенсивности потока данных после ограничения |
...
Weighted packets scheduling |
Traffic prioritization recommendations
Universal recommendations for configuration of the traffic prioritization mechanisms:
- Pay special attention to QoS policies developing. The policy should take into account the traffic of all services used in the network, provide strict compliance between service and the traffic class.
- The QoS policy should take into account the devices technical capabilities for recognizing and manipulating the service fields values, which indicate the data priority.
- The rules for classifying traffic flows must be configured on the DS domain border devices.
- DS domain intermediate devices should automatically recognize traffic priorities.
Throughput limitation mechanism
The network resources distribution between traffic flows can be performed not only by prioritization, but also using the throughput limitation mechanism. In this case, the stream bitrate cannot exceed the threshold level set by the network administrator.
The speed limitation principle in Infinet devices
The throughput limitation principle is to constantly measure the data stream intensity and apply the restrictions if the intensity value exceeds the set threshold (Figure 16a,b). The throughput limitation in Infinet devices is performed in accordance to the Token Bucket algorithm, all data packets above the throughput threshold are discarded. As a result the losses described above appears.
Center |
---|
Figure 16a - Graph of unlimited data flow rate Figure 16b - Graph of limited data flow rate |
Token Bucket Algorithm
Для каждого правила ограничения скорости формируется логический буфер, содержащий объём разрешённых для передачи данных. Как правило, размер этого буфера больше, чем размер ограничений. Каждую единицу времени такому буферу выделяется размер данных, равный установленному порогу ограничения скорости.
...