Parallel-Search Trie-based Scheme for Fast IP Lookup

Download Report

Transcript Parallel-Search Trie-based Scheme for Fast IP Lookup

HIGH-PERFORMANCE LONGEST
PREFIX MATCH LOGIC
SUPPORTING FAST UPDATES
FOR IP FORWARDING DEVICES
Author: Arun Kumar S P
1
Publisher/Conf.: 2009 IEEE International Advance
Computing Conference (IACC 2009)
Speaker: Han-Jhen Guo
Date: 2009.04.22
OUTLINE
Introduction
 The Proposed Scheme
 Performance

2
INTRODUCTION
- MOTIVATION

BGP Prefix updates. Data collected from
AS65000
an increased update activity
during 2007-2008
3
INTRODUCTION
- TYPICAL TCAM

How a typical TCAM is used for LPM
table would need a pre-computation if update
4
INTRODUCTION
- MAIN CONTRIBUTIONS OF THIS PAPER
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


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
Prefix Entry Unit
des IP
Longest
Prefix
Finder
(external
lookup for
nexthop)
6
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)
d(i, j):jth bit of ith pfx
 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 65000)
get a hit by traversing
about 10 bit-slices
in the LPF circuit
14
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