Packet Classification Using Binary Content Addressable Memory Author
Packet Classification Using Binary Content Addressable Memory Author: Alex X. Liu, Chad R. Meiners, Eric Torng Publisher: IEEE INFOCOM 2014 Presenter: Gang Chi Date: 2014/11/5 Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R. O. C.
Introduction l l l As the power consumption , heat generation, and price grow non-linearly with circuit density , BCAMs consume much less power, generate much less heat , and cost much less money than TCAMs. This BCAM scheme requires roughly 5 times fewer CAM bits than the traditional TCAM based scheme. The penalty is a throughput that is roughly 4 times less. National Cheng Kung University CSIE Computer & Internet Architecture Lab 2
Methodlogy l l Break a multi-dimensional lookup into a series of one-dimensional lookups. Convert the ternary matching problem into a binary string exact matching problem. National Cheng Kung University CSIE Computer & Internet Architecture Lab 3
B-CLASS Scheme National Cheng Kung University CSIE Computer & Internet Architecture Lab 4
B-CLASS Scheme Prefix Family PF(B)={b 1 b 2 · · · bw, b 1 b 2 · · · bw− 1∗, · · ·, b 1 ∗ · · · ∗, ∗ ∗. . . ∗} Ex: PF(1010)={1010, 101*, 10**, 1***, ****} l Function N(p) Convert prefix into a unique binary number. Ex: N(10**)=1000 010 N(1111)=1111 100 N(****)=0000 l National Cheng Kung University CSIE Computer & Internet Architecture Lab 5
B-CLASS-d Scheme l B-CLASS-d is based on the TCAM SPli. T l The basic idea of TCAM SPli. T is to reduce the multiplicative effects of cross producting by decomposing a d dimensional packet classifier into d one dimensional classifiers. National Cheng Kung University CSIE Computer & Internet Architecture Lab 6
B-CLASS-d Scheme National Cheng Kung University CSIE Computer & Internet Architecture Lab 7
B-CLASS-d Scheme National Cheng Kung University CSIE Computer & Internet Architecture Lab 8
B-CLASS-d Scheme National Cheng Kung University CSIE Computer & Internet Architecture Lab 9
Optimization l Expand packet classifier l Example for table 00 in fugure(b) • Ex: **** => (00**, 01**, 10**, 11**) 0000 01 1111 01 00** 10 01** 11 **** 11 10** 11 11** 11 National Cheng Kung University CSIE Computer & Internet Architecture Lab 10
Optimization l Search packet (1011) in below classifiers • Memory access num of (a) = 20 • Memory access num of (b) = 17 0000 01 1111 01 00** 10 01** 11 **** 11 10** 11 11** 11 (a) (b) National Cheng Kung University CSIE Computer & Internet Architecture Lab 11
Experiment Platform l Language l Platform • Visual Basic on. NET framework 2. 0 • Python • Windows XP • 1 GB RAM • AMD Opteron 148 National Cheng Kung University CSIE Computer & Internet Architecture Lab 12
Experimental Results National Cheng Kung University CSIE Computer & Internet Architecture Lab 13
Experimental Results National Cheng Kung University CSIE Computer & Internet Architecture Lab 14
Experimental Results National Cheng Kung University CSIE Computer & Internet Architecture Lab 15
- Slides: 15