Docsity

Introduction to Network Processors: Understanding the Role and Architecture of NP Systems, Slides of Computer Architecture and Organization

Partial preview of the text

Download Introduction to Network Processors: Understanding the Role and Architecture of NP Systems and more Slides Computer Architecture and Organization in PDF only on Docsity!

Lecture 1: Introduction to

Network Processors

Outlin

e

  • Introduction to NP Systems
  • Relevant Applications
  • Design Issues and Challenges
  • Relevant Software and Benchmarks
  • A case study: Intel IXP network processors

Why Network

Processors

  • Current Situation
    • Data rates are increasing
    • Protocols are becoming more dynamic and sophisticated
    • Protocols are being introduced more rapidly
  • Processing Elements
    • GP(General-purpose Processor)
      • Programmable, Not optimized for networking applications
    • ASIC(Application Specific Integrated Circuit)
      • high processing capacity, long time to develop, Lack the flexibility
    • NP(Network Processor)
      • achieve high processing performance
      • programming flexibility
      • Cheaper than GP

Typical NP Architecture

SDRAM

(Packet buffer)

SRAM

(Routing table)

multi-threaded processing elements

Co-processor

Input ports Output ports

Network Processor

Bus Bus

Processing Tasks

Policy Applications

Network Management

Signaling

Topology Management

Queuing / Scheduling

Data Transformation

Classification

Data Parsing

Media Access Control

Physical Layer

Data Plane

Control Plane

Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

Application Categorization

• Control-Plane tasks

– Less time-critical

– Control and management of device operation

• Table maintenance, port states, etc.

• Data-Plane tasks

– Operations occurring real-time on “packet

path”

– Core device operations

• Receive, process and transmit packets

Applications: IPv

Routing

• Routers determine next hop and forward packets

Router

A

B

C

P

P P

URL-based switching – My NSF Project

  • Increase efficiency
  • Tasks
    • Traverse the packet data (request) for each arriving

packet and classify it:

  • Contains ‘.jpg’ -> to image server
  • Contains ‘cgi-bin/’ -> to application server

Switch

Image Server

Application Server

HTML Server

www.yahoo.com Internet

GET /cgi-bin/form HTTP/1. Host: www.yahoo.com…

IP TCP APP. DATA

Architectural

Comparisons

• High-level organizations

– Aggressive superscalar (SS)

– Fine-grained multithreaded (FGMT)

– Chip multiprocessor (CMP)

– Simultaneous multithreaded (SMT)

Multithread

ing

• Basic idea

– multiple register sets in the processor

– fast context switch

– switch thread on a cache access (How is this

different than non-blocking cache?)

– tolerating local latency vs remote in CC-NUMA

multiprocessors

– hybrids

• switch on notice

• simultaneous multithreading

Tasks and

Services

Three Benchmarks used in the experiment

Some

Challenges

  • Intelligent Design
    • Given a selection of programs, a target network link speed, the ‘best’

design for the processor

  • Least area
  • Least power
  • Most performance
  • Write efficient multithreaded programs
  • NPs have
  • Heterogeneous computer resources
  • Non-uniform memory
  • Multiple interacting threads of execution
  • Real-time constraints
  • Make use of resources
  • How to use special instructions and hardware assists
  • Compilers
  • Hand-coded
  • Multithreaded programs
  • Manage access to shared state
  • Synchronization between threads

IXP1200 Block

Diagram

• StrongARM processing

core

• Microengines

introduce new ISA

• I/O

  • PCI
  • SDRAM
  • SRAM
  • IX : PCI-like packet bus

• On chip FIFOs

  • 16 entry 64B each

IXP

• 4 hardware contexts^ Microengine

  • Single issue processor
  • Explicit optional context switch on SRAM access
  • Registers
  • All are single ported
  • Separate GPR
  • 256*6 = 1536 registers total
  • 32-bit ALU
  • Can access GPR or XFER registers
  • Shared hash unit
  • 1/2/3 values – 48b/64b
  • For IP routing hashing
  • Standard 5 stage pipeline
  • 4KB SRAM instruction store – not a cache!
  • Barrel shifter