arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.05467cs.NI
收藏

NetFC:在可编程交换机上实现精确的浮点运算

NetFC: enabling accurate floating-point arithmetic on programmable switches

Penglai Cui, Heng Pan, Zhenyu Li, Jiaoren Wu, Shengzhuo Zhang, Xingwu Yang, Hongtao Guan, Gaogang Xie

摘要:

网内计算已被广泛用于加速数据密集型分布式应用。传统上在服务器上执行的一些计算任务被卸载到网络(即可编程交换机)。然而,可编程开关的计算能力仅限于简单的整数算术运算,而许多应用需要实时浮点运算。为了解决这个问题,现有方法要么采用浮点到整数的方法,要么直接将计算任务卸载到交换机的本地CPU,从而导致精度损失和延迟处理。为此,我们提出了NetFC,一个表查找方法,以实现在飞行中的网络浮点算术运算几乎没有精度损失。NetFC采用分而治之的机制,将原始的大表转化为几个小表,并进行整数运算。NetFC采用缩放因子机制提高计算精度,采用基于前缀的无损表压缩方法减少内存开销。我们使用不同类型的数据集来评估NetFC。实验结果表明,NetFC的平均准确率可以高达99.94%,最坏的只有448KB的内存消耗。此外,我们将NetFC集成到Sonata检测Slowloris攻击,产生显着降低检测延迟。

英文摘要:

In-network computation has been widely used to accelerate data-intensive distributed applications. Some computational tasks, traditional performed on servers, are offloaded to the network (i.e. programmable switches). However, the computational capacity of programmable switches is limited to simple integer arithmetic operations while many of applications require on-the-fly floating-point operations. To address this issue, prior approaches either adopt a float-to-integer method or directly offload computational tasks to the local CPUs of switches, incurring accuracy loss and delayed processing. To this end, we propose NetFC, a table-lookup method to achieve on-the-fly in-network floating-point arithmetic operations nearly without accuracy loss. NetFC adopts a divide-and-conquer mechanism that converts the original huge table into several much small tables together with some integer operations. NetFC adopts a scaling-factor mechanism for computational accuracy improvement, and a prefix-based lossless table compression method to reduce the memory overhead. We use different types of datasets to evaluate NetFC. The experimental results show that the average accuracy of NetFC can be as high as up to 99.94% at worst with only 448KB memory consumption. Furthermore, we integrate NetFC into Sonata for detecting Slowloris attack, yielding significant decrease of detection delay.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑