Docsity

Network Processors: Architecture, Market, and Applications, Slides of Computer Architecture and Organization

Partial preview of the text

Download Network Processors: Architecture, Market, and Applications and more Slides Computer Architecture and Organization in PDF only on Docsity!

Network Processor and Its

Applications

Outline

• Overview of the network processors

• The NP market

• IXP2400/

• High Performance Networking with IXP

• Initial Design

• To-do list

NP market

Net Processor Market Share by Revenues

share

share

AMCC 39% 38%

Intel 16 11

IBM 13 19

Motorola 12 15

Vitesse 11 8

Agere 6 9

EZchip 2 < 1

Source: The Linley Group

Typical NP Architecture

SDRAM

(Packet buffer)

SRAM

(control structures)

multi-threaded processing elements

Co-processor

Input ports Output ports

Network Processor

Bus Bus

Intel IXP

See another file

Cluster Architecture

• Myrinet/Quadrics/etc. provide their own

protocol (much simpler than TCP/IP)

– Limited to LAN

– Cost (Ethernet is cheap and standard)

– Future networks require high-speeds

Memory Spaces

• Virtual memory

• Physical memory

• PCI space memory

– Primary side

– Secondary side

– Bridge translates from one side to the other

Memory Mapping

Bridge Configuration

• Host->IXP2400 setup at boot time

00000000-0009ffff : System RAM 000a0000-000bffff : Video RAM area 000c0000-000c7fff : Video ROM 000f0000-000fffff : System ROM 00100000-1ff76fff : System RAM 00100000-0027588a : Kernel code 0027588b-002d90ff : Kernel data 1ff77000-1ff78fff : ACPI Non-volatile Storage 1ff79000-1fffffff : reserved 81882000-82882000 : Bigphysarea d0000000-efffffff : PCI Bus # d0000000-dfffffff : PCI device 8086:b555 (Intel Corp.) eff00000-efffffff : PCI device 8086:b555 (Intel Corp.) f0000000-f7ffffff : Intel Corp. 82850 850 (Tehama) Chipset Host Bridge (MCH) f8000000-fbffffff : PCI Bus # f8000000-fbffffff : ATI Technologies Inc Rage 128 Pro TF fec00000-fec0ffff : reserved fee00000-fee0ffff : reserved ff600000-ff7fffff : PCI Bus # ff6fec00-ff6fec7f : 3Com Corporation 3c905C-TX [Fast Etherlink] ff6ff000-ff6fffff : PCI device 8086:b555 (Intel Corp.) ff800000-ff9fffff : PCI Bus # ff8fc000-ff8fffff : ATI Technologies Inc Rage 128 Pro TF ffb00000-ffffffff : reserved

What does the device driver(s) need to do?

  • Identify Device
    • Pci_table[] contains vendorid, deviceid, etc.
  • Identify Device Resources
    • pci_resource_start(dev, i)
    • pci_resource_end(dev, i)
    • Primary side maps secondary registers and SDRAM
    • Secondary side maps host’s SDRAM (mempool)
  • Request Device Resources
    • request_mem_region(start, end)

Bridge Configuration

• Direct Address Translation (DAT)

– Stick in figure here

– Alert secondary side off required offset (since the

mempool may not start on a perfect boundary)

• Lookup Table (LUT)

– Bridge has 64 entries in the LUT

– Each entry is configurable up to 32MB

Bridge Configuration

• Input address divided into three parts:

– Bit 31: base address

– Bits 30-25: lookup table index (2^6 = 64)

– Bits 24-0: offset (2^25 = 32MB)

• Highest 7 bits of LUT entry indexed by bits 30-

25 of input address, concatenated with bits

24-0 of input address

• This is where we are having problems…

IXP2400->Host Transfer

• DMA or PIO?

• DMA is required

– Give both channels to microengines

– Prefers 64-byte data transfers

DMA Descriptor