IP lookup on FPGApages.cs.wisc.edu/~swapnilh/resources/swapnil_haria...Destination IP To develop a...
Transcript of IP lookup on FPGApages.cs.wisc.edu/~swapnilh/resources/swapnil_haria...Destination IP To develop a...
IP lookup on FPGASwapnil Haria
Faculty Advisor : Viktor PrasannaGraduate Students : Thilan Ganegedara, Yun Qu, Edward Yang
RoutersForward incoming packets
toward their final destinations
Routing TableMapping between
IP address -> Forwarding information
The IP Lookup ProblemTo find the longest prefix in the tablethat matches the packet destination address
Prefix Next Hop0* N3000* N1001* N2010* N10100* N40101* N3
010001010….Destination IP
To develop a Power-Efficient and Scalable Virtual RouterArchitecture on FPGA
Uni-bit Trie : Common data structure for storing Lookup Table
Propertiesprefix is represented by a Node
value of the prefix corresponds tothe path from the root of the tree to the prefix node
Leaf nodes store next hop information in a vector corresponding to each virtualized network
All prefixes at leaf nodes only
Salient Features of the proposed Architecture-•Unified process for both IPv4 and IPv6 lookup•Scalable, with respect to routing table size•Flexible design time trade-offs possible between throughput,routing table size, and power usage•Robust, no dependence on prefix distribution and results reported for worst case memory and power consumption
Background :Trie-Based IP Lookup
Virtual Network Identifier(VNID)
Mathematical Model developed to illustrate the relationship between performance metrics, resource constraints and design parameters.
Three implementations shown •each focuses on a particular performance metric.
Complete ArchitectureScalable Unified Lookup Architecture for IPv4 and IPv6 on FPGA
GOAL
Complete Architecture
Comparison of Memory and Power Consumption between optimized VM model and the unoptimized
(conventional)
Two types :- Virtualized Merged (VM), Virtualized Separate (VS)
Virtualized Separate Model•Separate routing tables andlook-up engines maintained.
•Spatial sharing of hardware only.
Virtualized Merged Model•Routing tables merged into a single table.•Time sharing of the hardware.
We propose three optimizations to the VM model -
1. Replacing Leaf Node Vectors with BSTs2. Separate storage of small prefixes3. Selective enabling of Memory
Optimizations to the VM model
512 11
Reduces dynamic power by turning off unused memory
Exploits the low overlap between merged routing tables
Exploits the fact that shorter prefixes are few, but lead to more leaf nodes on leaf pushing 123
Routers and IP Lookup Router Virtualization
Comparison with other
approaches
Design Type Table Size
Clock Rate (MHz)
Throughput (MLPS)
Power(W)
large-table ~1M 275.482 550.964 17.771high-throughput ~330k 254.518 1527.108 18.587
power-saving ~512k 282.326 564.652 11.198
Ethernet/IP based packet forwarding has transformed into a complexset of lookup schemes.Problem
Solution
Context
We propose a pure Integer Linear Programming (ILP) model for optimized hardware resource planning in network applications.
Manual conversion of lookup schemes into FPGA-based design•time-consuming activity ,•does not ensure the optimal allocation of FPGA resources ,•high packet latency.
Performance-optimized mapping of multiple packet lookup schemes on FPGA
FPGA
BRAMs
I/O Pins
LUTs
On-Chip Bandwidth
Major Contributions
Pure ILP formulation for the mapping problemHigh-Level model for FPGA based kkimplementationsMILP formulation for
power-efficient mapping
Results
Abstraction of FPGA
RESOURCE UTILIZATION COMPARISON FOR MULTIPLE LFG MAPPING
Power-Efficient and Scalable Virtual Router Architecture on FPGA-S. Haria, T. Ganegedara and V. Prasanna-Scheduled for submission to ReConFig’12
Performance-optimized mapping of multiple packet lookup schemes on FPGA-S. Haria, V. Prasanna-Scheduled for submission to IEEE INFOCOM 2013
Scalable Lookup Architecture for IPv4 and IPv6 on FPGA-Y. Qu, S. Haria, Y. Yang, V. Prasanna-Scheduled for submission to IEEE INFOCOM 2013
Outcome
Major ContributionsExperimental Results
Power Consumption Routing Table Size Throughput Per Watt
Results
Modified Virtualized Merged ModelReduced Power ConsumptionReduced Memory ConsumptionScalable
Analysis of real world routing tablesto understand thememory distribution on mergingthe routing tables.
Further Contributions
Virtualization Models
Q
QSET
CLR
D
Q
QSET
CLR
D
Logic Cell
Interconnect
●Concept Single hardware router serves packets from multiple networks.
●Challenge Ensuring the same throughput and Quality of Service (QoS) as non-virtualized (NV) routers.
●Benefits Eases administrative issues of maintaining multiple networking hardware.More Throughput per unit power consumption!
FPGA is the ideal candidate! +Parallelism +Improved Power Efficiency-Hardware Resources
FPGA
Power Performance of Routers
Memory and Power Savings