FastUp: Fast TCAM Update for SDN Switches in Datacenter Networks
Ying Wan,Haoyu Song,Hao Che,Yang Xu,Yi Wang,Chuwen Zhang,Zhijun Wang,Tian Pan,Hao Li,Hong Jiang,Chengchen Hu,Bin Liu
DOI: https://doi.org/10.1109/ICDCS51616.2021.00089
2021-01-01
Abstract:TCAM is widely used for flow table lookup in Software -Defined Networking (SDN) switches for datacenter and enterprise networks. While its lookup throughput is unparalleled, TCAM updating, particularly for new rule insertions, can impair the overall system performance. A rule insertion entails two steps: I) Computing the rule moving operations; and 2) Interrupting the TCAM lookups to apply the operations. In previous work, the performance gain on one step is always at the expense of the performance loss on the other. However, update throughput and latency depend on both. In this paper, we present a faster and more balanced TCAM update scheme, which not only achieves the shortest interrupt tune so far but also significantly reduces the computation time. By using a novel sequential stack, FastUp reduces the time and space complexity of the stateof-the-art schemes from 0(702) and 0(70 to 0(nc log 17) and 0(h), respectively, where h<<m. Evaluations show that FastUp shortens the computation time and the interrupt time by 100x and 1.6 x, respectively, which is equivalent to 15 x update delay reduction and 10 x update throughput gain against the stateof-the-art schemes. Moreover, we debunk a common mistake and show the dynamic programming based algorithm cannot be used to solve the reorder problem, and instead we use a bidirectional rule moving method to address the problem. In addition, we propose a practical method to find the theoretical lower hound of interrupt time in relatively large TCAM, which can be used to evaluate the optimality degree of TCAM update schemes. Evaluations show that FastUp achieves 90% optimality.