23
ClassiPI A Classifier for next generation Content and Policy based Switches SwitchOn Networks Inc. Sundar Iyer, Ajay Desai, Ajay Tambe, Ajit Shelat

ClassiPI A Classifier for next generation Content and Policy based Switches

Embed Size (px)

DESCRIPTION

ClassiPI A Classifier for next generation Content and Policy based Switches. SwitchOn Networks Inc. Sundar Iyer, Ajay Desai, Ajay Tambe, Ajit Shelat. Agenda. Classification Overview Content Co-processor requirements ClassiPI Architecture Conclusion. Packet Processing Model. - PowerPoint PPT Presentation

Citation preview

Page 1: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI

A Classifier for next generation Content and Policy based Switches

SwitchOn Networks Inc.

Sundar Iyer, Ajay Desai,

Ajay Tambe, Ajit Shelat

Page 2: ClassiPI A Classifier for next generation Content and Policy based Switches

Agenda

• Classification Overview• Content Co-processor requirements• ClassiPI Architecture• Conclusion

Page 3: ClassiPI A Classifier for next generation Content and Policy based Switches

Packet Processing Model

• Packet Processing ModelExtractClassifyEdit & Actions

Extraction PacketClassification

Packet Edit & Actions

ExternalMemory

Extracted Fields & Payload

Classification Results

ClassificationBased Lookups

1

2

3

Page 4: ClassiPI A Classifier for next generation Content and Policy based Switches

Content Processing - Sequenced Lookups

•Layer 2 – SMAC, VLAN Learning •Layer 2 – DMAC, VLAN Forwarding •Layer 4 – 5-tuple, ACL Filtering•Layer 3 – DIP Routing

DIP

5-tupleMAC

Page 5: ClassiPI A Classifier for next generation Content and Policy based Switches

Content Processing – Packet Analysis

Layer 7L2 L3 L4

•Source MAC address is authenticated

•Packet is being sent from marketing network•VP Marketing is accessing an external

web server•Server: yahoo.com identified

•File Type: .mp3, access to audio file identified

•File Name: American_Pie.mp3

•It’s 7:00 PM.

•Allow the session? – Yes.

URL, Cookies, Content, Application, User-name, …

Page 6: ClassiPI A Classifier for next generation Content and Policy based Switches

Packet Processing Performance

0

500

1000

1500

2000

2500

Mbps

Applications on an 800 MIPS Processor

Forwarding

NAT

EnterpriseFunctions

LoadBalancing

URLSwitching

OC48

Content processing is

the bottleneck!

Page 7: ClassiPI A Classifier for next generation Content and Policy based Switches

Content Co-processor - Motivation• Content Processing

Is a memory intensive operationInvolves extraction & classificationRequires sophisticated algorithms to

perform Layer 3 Lookups Layer 4 ACLs Layer 7 scanning Layer 7 RegEx parsing

• A Content Co-processor requires a new architecture

Page 8: ClassiPI A Classifier for next generation Content and Policy based Switches

Content Co-processor – System view• Content Co-processor should

Perform all Data plane classification operations

Allow implementation of classification sequences which reflect the packet processing flow on the Network processor

Interface gluelessly with Network Processors

Minimize Network processor bus bandwidth usage

Perform classification related operations such as statistics collection

Allow easy software integration

Page 9: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI - Block Diagram

Sync SRAM

other ClassiPIs

Sys

tem

Inte

rfac

e

Cas

cad

e In

terf

ace

Results FIFO

Control / Sequencer

E-RAM Interface

Policy Rule Database

Parallel Lookup Engine

FieldExtraction

Engine

Rule Update

Results

Key

C-RAM Stats User

Sync SRAM

Inte

rmed

iate

Res

ult

s

Page 10: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI Architecture…1• Look-up Operation Descriptor

Defines classification parametersHigh level abstraction of a classification

operation

Operation Descriptor

-Field Extraction Spec-Look-up/Search Type

ParticipatingPolicy RuleDatabase

-Single Match or Multiple Match Generation

Packet Data…..…..

Policy Rule Database

Result Gen

Lo

ok-

up

En

gin

e

Results

Page 11: ClassiPI A Classifier for next generation Content and Policy based Switches

Multiple Field Extraction

ClassiPI Architecture…2• Field Extraction Engine

Forms the Key using L3, L4, L4+ and User defined

Automatically generates sequence of keys Variable length, wide keys support

Packet Data

…..…..

…..…..

Header Payload

5-tuple Any header fields Long String Keys Short String Keys

Page 12: ClassiPI A Classifier for next generation Content and Policy based Switches

N

ano

-P

roce

sso

r

Nan

o-

Pro

cess

or

ClassiPI Architecture…3• Parallel Look-up Engine

Unique, flexible MISD architectureArray of Nano-processors perform look-upsNano-processors have a powerful Policy

Rule instruction setNano-processors operate on per field basisNano-processors and Policy Rule memory

can be configured/partitioned to define an Operation

Nan

o-

pro

cess

or

Policy Rule Database

Partition

Nan

o-

Pro

cess

or

Nan

o-

Pro

cess

or

Nan

o-

pro

cess

or

Extracted Key

Results

Page 13: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI Architecture…4• Per rule statistics collection – Byte

count, Packet count, Timestamp• Per rule User defined table look-up

Rule Memory Statistics & Associated Data

Rule Cell #nRule Cell #n+1

Rule Cell #z

Rule Cell #z+1

…...

Data #nData #n+1

Data #z

Data #z+1

…...…

.

….

One-to-One Correspondence

MATCH action

Sta

tist

ics

cou

nte

r U

pd

ate

returncompare

Page 14: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI Architecture…5

• Conditional look-up sequencingFixed Look-up sequenceLook-up result based sequenceN-way branch capability

EthernetMAC forwarding

ACL Filtering IP Forwarding URL Parsing

QoS

Page 15: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI Architecture…6• Instruction Set

Relational/Arithmetic operations on a per field basis

EQ, GT, LT, Ranges, Masking, etc.Logical operations between results

AND, OR, NOT

…..….. …..…..

Header Payload

Combination Keys

Single Keys

Long String Keys Short String Keys

Packet Data

Operators: Exact Match Bit Mask Ranges

Operators: Exact Match Bit Mask Ranges

Operators: Exact Match Bit Mask Ranges

Operators: Exact Match Bit Mask Ranges

Operators: Exact Match Bit Mask Ranges

Operators: Exact Match Bit Mask Ranges

Page 16: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI Architecture…7• Pattern/String Search

Up to 192 byte patternsCase insensitive character/string matchingSimultaneous multi-pattern searchReverse and forward searchRegEx subset search capability

Search .*[Gg][Ee][Tt].*[Hh][Tt][Tt][Pp][:][\][\]

URL string“GET” “HOST:” Host name “URI:” “.jpeg”“http:”

Search tokens .*[Hh][Oo][Ss][Tt][:] *ALSO* [Uu][Rr][Ii][:]Search [\.][jpeg]

Look-up ‘directory 1’ ‘directory 2’ ‘directory 3’ :

Look-up ‘host server 1’ ‘host server 2’ ‘host server 3’ :

Page 17: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI Architecture…8

• Rule Complexity metricNumber of possible operations per ruleCAM rule complexity = 1TCAM rule complexity = 2ClassiPI rule complexity > 1024

• Additional featuresComposite rulesLook-up sequencing

Page 18: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI - Overview

• Specifications16K Policy rules per ClassiPIUp to 128K Policy rules in a cascadeL2 through L7 Content processingOn-chip IPv4 header extraction IPv6 readySelectable look-up KeyUp to 192 byte key6.4 Gbps SSRAM compatible system

interface

• PerformanceOC-192 capable Look-up EngineDesigned to match Network Processor

system interface requirements

Page 19: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI –Vital Statistics …1• Lookup-Engine Performance

Aggregate memory bandwidth

7.25 Tbits/sec to 58 Tbits/sec

Processing power

256 GOPS to 2 TOPS

Page 20: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI –Vital Statistics …2• 25M transistors

2M bits RAM2M gates logic

• 0.18 micron• 352 Pin BGA• 200 MHz internal

clock• 100 MHz interface

clock

Die Layout

Page 21: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI - Power Consumption

• Power reduction mechanismsCustom low power embedded SRAMSelectable clock frequencyHierarchical bus designRule utilization based power management

• Low standby power• Maximum 4.5 Watts (estimated)

Page 22: ClassiPI A Classifier for next generation Content and Policy based Switches

ClassiPI Architecture Scalability• OC-192 performance

• with enhanced system interface

• OC-768 performance • with silicon technology scaling

• Flexible architecture• Cost, Performance and Power trade-offs

Page 23: ClassiPI A Classifier for next generation Content and Policy based Switches

Conclusion

ClassiPI architecture provides

•Functionality•Flexibility•Performance •Scalability

essential for Content Processing