opencl based design pattern for
play

OpenCL-Based Design Pattern for Line Rate Packet Processing - PowerPoint PPT Presentation

OpenCL-Based Design Pattern for Line Rate Packet Processing Jehandad Khan, Peter Athanas (Virginia Tech) John Marshall, Skip Booth (Cisco Systems) Programmable Packet Processor P4.org P4 programs specify how a switch processes packets. FPGAs


  1. OpenCL-Based Design Pattern for Line Rate Packet Processing Jehandad Khan, Peter Athanas (Virginia Tech) John Marshall, Skip Booth (Cisco Systems)

  2. Programmable Packet Processor

  3. P4.org P4 programs specify how a switch processes packets.

  4. FPGAs for Packet Processing • The ideal co-processor – Highly parallel – arbitrary data paths – No cache delays – Low power

  5. We FPGAs

  6. FPGAs for Packet Processing • The not-so-ideal co-processor – Long compile times – Complicated design process – Less abundant expertise – Cost

  7. We FPGA Design

  8. OpenCL for FPGA Design • OpenCL simplifies the design problem – Programmable by a larger community – Simulation capability – Timing guarantees – Pipelining – Memory replication – Downside: limited expressiveness

  9. Objective of Investigation Is OpenCL a good intermediate format? • What is the achievable throughput ? • What are the tradeoffs ? • What are the design constructs we need ?

  10. OpenCL Problems OpenCL assumes a host / device model: a.Host copies data to device b.Host launches work on device c.Device signals completion d.Host copies data back NOT SUITABLE FOR PACKET PROCESSING!

  11. Solution: “Persistent Kernels” Launch-once-never-terminate kernels Infinite loop in the kernel waits for data and OpenCL processes it. kernel Input Ouput Output Channel Channel or OpenCL realized as FIFOs Pipe for input on the FPGA

  12. Overall Architecture Ingress IPv4 LPM Send Frame Fwd Exact Parser Chip Mem Off I/O Packet Server Chip Channel Mem Off ∭ Based on simple_router.p4 I/O Deparser / Egress

  13. Match + Action Stage Persistent Kernel listens on both Control Plane Host Launches kernels to channels update state Data Plane Update State storage for persistent kernel Kernel local type_t entries[SIZE] Update Req Updates Output Channel PHV In PHV Out Packet Header Vector (PHV) Infinite Loop passed stage to stage Match+Action Kernel

  14. Match Engines in Prototype 1. One TCAM a. Longest Prefix Match 2. Two exact match engines a. Source MAC address b. Destination MAC address All using on-chip RAM Core first written in OpenCL, yet rewritten in Verilog (RTL)

  15. Test Platform Cisco UCS C240 server Arria 10 DevKit Altera Arria 10 AX115S2 FPGA

  16. Results Capable of running at 70 Mpps

  17. Follow up Work • P4 -> HMC enabled FPGAs J. Khan, P. Athanas , “Creating Custom Network Packet Processing Pipelines on HMC - Enabled FPGAs”, ACM SIGCOMM 2017, The Third Workshop on Networking and Programming Languages (NetPL 2017)

  18. Conclusion • Using some clever tricks we can create a high-performance packet pipeline in OpenCL • A high throughput design is possible – The design patterns can serve as guidelines for any data flow problem – Optimal use of on-chip resources is essential • Performance portability …

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend