当前位置:网站首页>Approximate fair queuing on programmable switches reading notes
Approximate fair queuing on programmable switches reading notes
2022-06-23 19:07:00 【Bachuan Xiaoxiaosheng】
Approximate fair queuing on programmable switches
Approximating Fair Queueing on Reconfigurable Switches
significance
A fair bandwidth allocation scheme may be very suitable for today's data center environment , In this environment , Multiple applications with different network requirements often coexist . Some applications require low latency , Other applications require sustained throughput . Data center networks must also address challenging traffic patterns , Such as large insertion or fan in 、 Micro burst and synchronous flow , These can be effectively managed using a fair queuing mechanism . Fair queuing mechanism can also provide bandwidth guarantee for multiple tenants sharing cloud infrastructure .
Today's congestion control is mainly realized through end-to-end mechanism , There is little support from the network . Although this method simplifies the switch , And allow them to run at a very high speed , But it requires terminal hosts to cooperate to realize fair network sharing , This leads to inefficiency and poor performance isolation . If the switch can maintain the per stream state , Extract rich telemetry data from the network , And perform configurable per packet processing , Then the intelligent congestion control mechanism can be realized , Directly use the dynamic network state inside the network , And improve network performance .
Challenge
Although router mechanisms such as fair queuing ensure fair bandwidth allocation to all participants , And proved to be optimal in some ways , But they require complex flow classification 、 Buffer allocation and per packet scheduling . These factors make the cost of their implementation in high-speed switches very high .
these years , Several algorithms for fair bandwidth allocation have been proposed , But because of its inherent complexity , Rarely deployed in practice . These algorithms maintain state and perform operations on a per flow basis , This makes them 3-6 Tbps It is challenging to implement on hardware at the data rate of .
programme
In this paper , We use the emerging programmable switch to develop a fair queuing system with approximately linear operation (AFQ). We take advantage of configurable per packet processing and the ability to maintain variable states within the switch , Achieve fair bandwidth allocation in all traversal streams . A new departure scheduler is further designed , It is called rotation strict priority scheduler , It allows us to transmit packets from multiple queues in approximately sorted order .
The fair queuing router performs the management task of each flow , To ensure fair bandwidth allocation . These tasks include message classification , Which stream does the message belong to , Buffer allocation , Whether the message of the stream is added to the queue or discarded , Which message stream is scheduled and which message stream is to be transmitted next .AFQ The key idea behind this is to approximate the components of the fair queuing scheme by using the characteristics available in the programmable switch .
Our design simulates the ideal bit by bit cycle described above (Bit-by-Bit Round Robin)BR Algorithm . Similar to this algorithm ,AFQ Polling , Each stream transmits a fixed number of bytes in each round . On arrival , Each packet is assigned a starting round number based on the number of bytes sent by the stream in the past , Packets are scheduled to be transmitted in increasing rounds . To realize this scheme, we need AFQ Number of completed rounds per active flow on the storage switch , And schedule the buffered packets in order . It must also periodically store and update the current number of rounds on the switch .
We use three key ideas to approximate fair queuing .
- Store the approximate number of stream bids in sublinear space ,
- AFQ Use a coarse-grained wheel , Only after all active streams have transmitted a configurable number of bytes through the output port will it increase .
- AFQ Take advantage of the multiple... Available on each port of these reconfigurable switches FIFO queue , Scheduling packets to leave in an approximate sort .
Open questions
Approximate effects
First , Using count minimum estimation means AFQ In case of conflict, the number of bids for packages may be overestimated . When the number of active flows grows beyond the estimated size , The possibility of conflict will increase , As a result, the scheduling time of the package is later than expected .
secondly , And BR Fair queuing algorithm is different ,AFQ Allow the active stream to send multiple bytes per round . Since the number of initial rounds is larger than the number of bids , also AFQ according to FIFO The order of buffering packets with the same number of rounds , therefore , If the switch receives packets with a higher number of bids earlier , It may be transmitted before the package with a low number of bids . This reordering may lead to unfairness in the round .
The trade-off of bytes per round
because AFQ Buffer only N Round of packets , Therefore, the bytes transmitted in each round must be carefully selected (BpR), To balance fairness and the effective use of exchange buffers . If BpR Too big , A single stream may occupy a large portion of the buffer , This leads to unfair packet delay and discarding . If it's too small ,AFQ Packets will be discarded from a single stream burst , Although there is enough space to buffer them .
summary
This paper proposes a method called approximate fair queuing (AFQ) Fair bandwidth allocation mechanism , This mechanism is suitable for emerging programmable switches . Use the features available on the programmable switch to approximate the various mechanisms of the fair queuing scheduler . To be specific , We use the programmable switch state to approximate the state of each stream with respect to the number and time of packets transmitted forward ; We perform finite calculations on each packet , To calculate its position in the output scheduling ; We dynamically decide which exit queue to use for a given packet ; We designed a new method of leaving the team , It is called rotation strict priority scheduler , Transmit packets in approximately sorted order . Simulate on a real hardware test platform , indicate AFQ It accurately approximates the ideal queuing behavior , The performance is significantly improved compared with the existing scheme , And the cost is quite small .
边栏推荐
- User analysis aarrr model (pirate model)
- Une fois que le port série de Jerry est réglé, le Code aléatoire est imprimé, et le cristal interne n'est pas étalonné [chapitre]
- Comparison and evaluation of digicert and globalsign single domain ov SSL certificates
- Jerry's SD card will reset after he enters soft off [chapter]
- vPROM笔记
- 考PMP有用吗?
- 【One by One系列】IdentityServer4(三)使用用户名和密码
- 杰理之增加一个输入捕捉通道【篇】
- 【One by One系列】IdentityServer4(六)授权码流程原理之SPA
- Database migration tool flyway vs liquibase (I)
猜你喜欢

Borui data attends Alibaba cloud observable technology summit, and digital experience management drives sustainable development

产品设计- 需求分析

傑理之串口設置好以後打印亂碼,內部晶振沒有校准【篇】

汇编语言(1)基础知识

重磅:国产IDE发布,由阿里研发,完全开源!(高性能+高定制性)

Function definition and function parameters

元宇宙大杀器来了!小扎祭出4款VR头显,挑战视觉图灵测试

Shunted self attention | vit method for solving small target problems, which is derived from PVT and higher than PVT

杰理之串口通信 串口接收 IO 需要设置数字功能【篇】

诺亚财富通过聆讯:年营收43亿 汪静波有49%投票权,红杉是股东
随机推荐
杰理之播 MP3 提示音功能【篇】
Is PMP useful?
【One by One系列】IdentityServer4(四)授权码流程
A review of comparative learning
When Jerry's serial port is set up, it prints garbled code, and the internal crystal oscillator is not calibrated [chapter]
NLP 论文领读|改善意图识别的语义表示:有监督预训练中的各向同性正则化方法
微机原理第六章笔记整理
凸优化笔记
CV-卷积神经网络
VirtP4笔记
19 classic cases of generator functions
Js25 topic
一、摘要和简介
CV convolution neural network
Requirements and precautions for applying for multi domain SSL certificate
[one by one series] identityserver4 (VIII) uses entityframework core to persist data
【NOI2014】15.起床困难综合症【二进制】
高级计网笔记(六)
Ges graph computing engine hyg unveils the secrets of Graph Segmentation
Jerry's adding timer interrupt [chapter]