HIGH-PERFORMANCE LONGEST PREFIX MATCH LOGIC SUPPORTING FAST UPDATES FOR IP FORWARDING DEVICES Author: Arun Kumar S P Publisher/Conf.: 2009 IEEE International Advance Computing Conference (IACC 2009) Speaker: Han-Jhen Guo Date:
OUTLINE Introduction The Proposed Scheme Performance 2
INTRODUCTION - MOTIVATION BGP Prefix updates. Data collected from AS an increased update activity during an increased update activity during
INTRODUCTION - TYPICAL TCAM How a typical TCAM is used for LPM 4 table would need a pre-computation if update
I NTRODUCTION - M AIN C ONTRIBUTIONS OF T HIS P APER Propose a novel architecture for performing LPM using associative memory architecture Eliminate the need for pre-computation on the IP prefixes before populating the routing table priority encoder logic of TCAM's Substitute the priority encoder logic of TCAM's with Longest Prefix Finder (LPF) logic allows faster updates to the table without compromising the lookup speed advantage of the TCAM based methods 5
THE PROPOSED SCHEME - OVERALL ARCHITECTURE Overall Architecture 6 des IP Prefix Entry Unit Longest Prefix Finder Longest Prefix Finder (external lookup for nexthop)
THE PROPOSED SCHEME - OVERALL ARCHITECTURE (eg.) 7
The Proposed Scheme - Implement & Hardware Design Prefix Entry Unit (PEU) address value ( addr ) along with its associated mask ( pfx ) match found flag ( mf ) enables the LPF logic to do a comparison of only prefixes mf = ( key AND pfx ) XNOR ( key AND addr ) 8
THE PROPOSED SCHEME - IMPLEMENT & HARDWARE DESIGN Longest Prefix Finder (LPF) Comparison of the prefixes is performed only on matched prefixes ( mf = 1) Parallel bit-wise manner From the Least Significant Bit (LSB) towards the Most Significant Bit (MSB) 9
THE PROPOSED SCHEME - IMPLEMENT & HARDWARE DESIGN Longest Prefix Finder (LPF) Prefix Bit Logic Block (PBLB) pfx d(i, j) : jth bit of ith pfx mfpfx en( i, j ) : mf of ith pfx f(i) : feedback input; indicates whether any of the PBLB's in its bit-slice is a logic 1 lbr(i, j) : generate the f(i) and the mi(i, j) 10
THE PROPOSED SCHEME - IMPLEMENT & HARDWARE DESIGN Longest Prefix Finder (LPF) Overall architecture 11
THE PROPOSED SCHEME - IMPLEMENT & HARDWARE DESIGN (eg.) 12
THE PROPOSED SCHEME - IMPLEMENT & HARDWARE DESIGN Update Use a stack maintained by the software for identifying the free locations Insertion Write the value to the address provided by a stack pop O(1) Deletion require the address of the deleted entry to be pushed into the stack O(1) 13
PERFORMANCE Average prefix size (from a core router from AS ) 14 get a hit by traversing about 10 bit-slices in the LPF circuit get a hit by traversing about 10 bit-slices in the LPF circuit
PERFORMANCE Performance Comparison 15
PERFORMANCE Storage requirements for 1500 entries similar storage requirements as that of a TCAM less than the other methods considerably 16
17