학술논문

NetFC: Enabling Accurate Floating-point Arithmetic on Programmable Switches
Document Type
Conference
Source
2021 IEEE 29th International Conference on Network Protocols (ICNP) Network Protocols (ICNP), 2021 IEEE 29th International Conference on. :1-11 Nov, 2021
Subject
Communication, Networking and Broadcast Technologies
Computing and Processing
Data centers
Protocols
Conferences
Memory management
Delays
Servers
Task analysis
In-network computation
floating-point calculation
programmable switch
Language
ISSN
2643-3303
Abstract
Programmable switches are recently used for accelerating data-intensive distributed applications. Some computational tasks, traditionally performed on servers in data centers, are offloaded to the network on programmable switches. These tasks may require the support of on-the-fly floatingpoint operations. Unfortunately, the computational capacity of programmable switches is limited to simple integer arithmetic operations. To address this issue, prior approaches either adopt a float-to-integer method or rely on 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 smaller tables that are operated by the built-in integer operations. NetFC further leverages a scaling-factor mechanism for improving computational accuracy, and a prefix-based lossless table compression method to reduce memory consumption. We use both synthetic and real-life datasets to evaluate NetFC. The experimental results show that the average accuracy of NetFC is above 99.94% with only 448KB memory consumption. Furthermore, we integrate NetFC into Sonata [12] for detecting Slowloris attack, yielding significant decrease of detection delay.