Minimal Total Deviation in TCAM Load Balancing

Yaniv Sadeh, Ori Rottenstreich, Haim Kaplan

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

3 Scopus citations


Traffic splitting is a required functionality in networks, for example for load balancing over multiple paths or among different servers. The capacities of the servers determine the partition by which traffic should be split. A recent approach implements traffic splitting within the ternary content addressable memory (TCAM), which is often available in switches. It is important to reduce the amount of memory allocated for this task since TCAMs are power consuming and are also required for other tasks such as classification and routing. Previous work showed how to compute the smallest prefix-matching TCAM necessary to implement a given partition exactly. In this paper we solve the more practical case, where at most n prefix-matching TCAM rules are available, restricting the ability to implement exactly the desired partition. We consider the L1 distance between partitions, which is of interest when overloaded requests are simply dropped, and we want to minimize the total loss. We prove that the Niagara algorithm [1] can be used to find the closest partition in L1 to the desired partition, that can be realized with n TCAM rules. Moreover, we prove it for arbitrary partitions, with (possibly) non-integer parts.

Original languageEnglish
Title of host publicationINFOCOM 2022 - IEEE Conference on Computer Communications
PublisherInstitute of Electrical and Electronics Engineers Inc.
Number of pages10
ISBN (Electronic)9781665458221
StatePublished - 2022
Event41st IEEE Conference on Computer Communications, INFOCOM 2022 - Virtual, Online, United Kingdom
Duration: 2 May 20225 May 2022

Publication series

NameProceedings - IEEE INFOCOM
ISSN (Print)0743-166X


Conference41st IEEE Conference on Computer Communications, INFOCOM 2022
Country/TerritoryUnited Kingdom
CityVirtual, Online


FundersFunder number
Taub Family Foundation
Deutsche Forschungsgemeinschaft1367
German-Israeli Foundation for Scientific Research and Development
Israel Science Foundation1595-19
Tel Aviv University
Israel National Cyber Directorate
Technion Hiroshi Fujiwara Cyber Security Research Center


    Dive into the research topics of 'Minimal Total Deviation in TCAM Load Balancing'. Together they form a unique fingerprint.

    Cite this