当前位置:网站首页>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 .
边栏推荐
- Jericho Forced upgrade [chapter]
- Use of stream streams
- TimerTasks笔记
- 傑理之串口設置好以後打印亂碼,內部晶振沒有校准【篇】
- Shunted self attention | vit method for solving small target problems, which is derived from PVT and higher than PVT
- 高级计网笔记(六)
- 云安全日报220623:红帽数据库管理系统发现执行任意代码漏洞,需要尽快升级
- CV-全连接神经网络
- Definition and model of indicators (complex indicators)
- (10)二叉树
猜你喜欢

函数的定义和函数的参数

This year, Anhui master fund exploded

Take out Jianghu will change, and meituan "big brother" is hard to be

Définition de la fonction et paramètres de la fonction
![When Jerry's serial port is set up, it prints garbled code, and the internal crystal oscillator is not calibrated [chapter]](/img/6d/96b3326a201bf17d436c1af7834232.png)
When Jerry's serial port is set up, it prints garbled code, and the internal crystal oscillator is not calibrated [chapter]
![【NOI2014】15. Difficult to get up syndrome [binary]](/img/3a/12e9b2566d3ca3330a3cc6c5eaf135.png)
【NOI2014】15. Difficult to get up syndrome [binary]

物联网平台搭建设备,附源代码

吃顿饭的时间,学会simulink之BLDC基本原理

三一重能科创板上市:年营收102亿 市值470亿

halcon知识:区域(Region)上的轮廓算子(1)
随机推荐
【翻译】一种减小运动伪影的新方法基于AS-LMS自适应滤波器的PPG信号
云安全日报220623:红帽数据库管理系统发现执行任意代码漏洞,需要尽快升级
#19生成器函数经典案例
2022年升降机司机考试题模拟考试平台操作
Task management of embedded development foundation (thread management)
DigiCert和GlobalSign单域名OV SSL证书对比评测
Principles of microcomputer Chapter 6 notes arrangement
【翻译】具有时间结构的特定信号的鲁棒提取(上)
Function definition and function parameters
物流服务与管理主要学什么
【NOI2014】15.起床困难综合症【二进制】
如何让一个list根据另一个list的顺序排序
STM32 (IX) -- can
从零开发小程序和公众号【第一期】
DataEase模板市场正式发布
【对比学习】koa.js、Gin与asp.net core——中间件
Nanxin semiconductor rushes to the scientific innovation board: its annual revenue is RMB 980 million. Sequoia Xiaomi oppo is the shareholder
Borui data attends Alibaba cloud observable technology summit, and digital experience management drives sustainable development
Jerry added an input capture channel [chapter]
Stream流的使用