4/22/2003 Network Processor & Its Applications1 Network Processor and Its Applications (1) Yan Luo Prof. Laxmi Bhuyan

Slides:



Advertisements
Similar presentations
IP Router Architectures. Outline Basic IP Router Functionalities IP Router Architectures.
Advertisements

1 IP-Lookup and Packet Classification Advanced Algorithms & Data Structures Lecture Theme 08 – Part I Prof. Dr. Th. Ottmann Summer Semester 2006.
CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
Fast Firewall Implementation for Software and Hardware-based Routers Lili Qiu, Microsoft Research George Varghese, UCSD Subhash Suri, UCSB 9 th International.
Survey of Packet Classification Algorithms. Outline Background and problem definition Classification schemes – One dimensional classification – Two dimensional.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 2 – Protocol Architecture, TCP/IP, and Internet-Based.
What's inside a router? We have yet to consider the switching function of a router - the actual transfer of datagrams from a router's incoming links to.
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
4/22/2003 Network Processor & Its Applications1 Network Processor and Applications Prof. Laxmi Bhuyan
©UCR CS 260 Lecture 1: Introduction to Network Processors Instructor: L.N. Bhuyan
Review on Networking Technologies Linda Wu (CMPT )
Chapter 3 Review of Protocols And Packet Formats
March 1, Packet Classification and Filtering for Network Processors JC Ho.
Design of QoS Router Terrance Lee. Broadband Internet Architecture Intelligent Access Electronic Switch (Intserv or Diffserv) Switching /Routing QoS Security.
Chapter 9 Classification And Forwarding. Outline.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
CS 356 Systems Security Spring Dr. Indrajit Ray
Chapter 4 Queuing, Datagrams, and Addressing
Computer Networks Switching Professor Hui Zhang
Internet Vulnerabilities & Criminal Activities 1.2 – 9/12/2011 Structure of Internet Communications 1.2 – 9/12/2011 Structure of Internet Communications.
OSI Model Routing Connection-oriented/Connectionless Network Services.
Chapter 6 High-Speed LANs Chapter 6 High-Speed LANs.
Adapted from: Computer Networking, Kurose/Ross 1DT066 Distributed Information Systems Chapter 4 Network Layer.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5.
Chapter 1 Overview Review Overview of demonstration network
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Lecture 1 Introduction to Application Oriented Networking.
Lecture 3 Review of Internet Protocols Transport Layer.
William Stallings Data and Computer Communications 7 th Edition Data Communications and Networks Overview Protocols and Architecture.
Chapter 1. Introduction. By Sanghyun Ahn, Deot. Of Computer Science and Statistics, University of Seoul A Brief Networking History §Internet – started.
Router Architecture Overview
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
Applied Research Laboratory Edward W. Spitznagel 24 October Packet Classification using Extended TCAMs Edward W. Spitznagel, Jonathan S. Turner,
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
Multimedia Wireless Networks: Technologies, Standards, and QoS Chapter 3. QoS Mechanisms TTM8100 Slides edited by Steinar Andresen.
EECB 473 DATA NETWORK ARCHITECTURE AND ELECTRONICS PREPARED BY JEHANA ERMY JAMALUDDIN Basic Packet Processing: Algorithms and Data Structures.
Networks and Protocols CE Week 7b. Routing an Overview.
William Stallings Data and Computer Communications
Lectu re 1 Recap: “Operational” view of Internet r Internet: “network of networks” m Requires sending, receiving of messages r protocols control sending,
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
1 Packet Classification تنظیم : محمدعلی عظیمی. Classifier Example 2.
MPLS Concepts Introducing Basic MPLS Concepts. Outline Overview What Are the Foundations of Traditional IP Routing? Basic MPLS Features Benefits of MPLS.
High-Speed Policy-Based Packet Forwarding Using Efficient Multi-dimensional Range Matching Lakshman and Stiliadis ACM SIGCOMM 98.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
1 CSE 5346 Spring Network Simulator Project.
1 A quick tutorial on IP Router design Optics and Routing Seminar October 10 th, 2000 Nick McKeown
Packet Switch Architectures The following are (sometimes modified and rearranged slides) from an ACM Sigcomm 99 Tutorial by Nick McKeown and Balaji Prabhakar,
1 Review – The Internet’s Protocol Architecture. Protocols, Internetworking & the Internet 2 Introduction Internet standards Internet standards Layered.
Network Layer4-1 Chapter 4 Network Layer All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down.
NT1210 Introduction to Networking
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
Chapter 4 Network Layer All material copyright
Chapter 4: Network Layer
Chapter 3 Part 3 Switching and Bridging
Network Processor and Its Applications
(Read Forouzan Chapters 6 and 7)) IP Forwarding Procedure
What’s “Inside” a Router?
Network Core and QoS.
Packet Switch Architectures
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Chapter 3 Part 3 Switching and Bridging
Network Layer: Control/data plane, addressing, routers
Instructor: L.N. Bhuyan CS 213 Computer Architecture Lecture 7: Introduction to Network Processors Instructor: L.N. Bhuyan.
Chapter 4: Network Layer
Internet Protocol version 6 (IPv6)
Network Core and QoS.
Chapter 4: outline 4.1 Overview of Network layer data plane
Presentation transcript:

4/22/2003 Network Processor & Its Applications1 Network Processor and Its Applications (1) Yan Luo Prof. Laxmi Bhuyan

4/22/2003Network Processor & Its Applications2 Outline Overview of the network processors Networking protocol stack IP routing Packet Classification Other applications

4/22/2003Network Processor & Its Applications3 What the Internet Needs? Increasing Huge Amount of Packets & Routing, Packet Classification, Encryption, QoS, New Applications and Protocols, etc….. General Purpose RISC (not capable enough) ASIC (large, expensive to develop, not flexible) High processing power Support wire speed Programmable Scalable Specially for network applications …

4/22/2003Network Processor & Its Applications4 Typical NP Architecture SDRAM (Packet buffer) SRAM (Routing table) multi-threaded processing elements Co-processor Input ports Output ports Network Processor Bus

4/22/2003Network Processor & Its Applications5 Network Architecture and Applications Introduction to networking IP packet structure Control and data planes Traditional applications IPv4 routing, classification etc. New applications URL-based switching,transcoding, etc.

4/22/2003Network Processor & Its Applications6 OSI Network Architecture DATA Application Pre. Session Transport Network Data Link Physical DATAAH DATAPH DATASH DATATH DATANH DATADH DATAPH Application Pre. Session Transport Network Data Link Physical Network AB Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

4/22/2003Network Processor & Its Applications7 TCP/IP Model ISO OSI (Open Systems Interconnection) not fully implemented Presentation and Session layers not present in TCP/IP Application Pre. Session Transport Network Data Link Physical Application TCP IP Host-to-Net OSITCP/IP Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

4/22/2003Network Processor & Its Applications8 TCP/IP packet APP. DATATCPIPMAC Source PortDestination Port Sequence Number Acknowledgement Number Header Length and OptionsWindow Size ChecksumUrgent Pointer Options (0 or more 32-bit words) Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

4/22/2003Network Processor & Its Applications9 TCP/IP packet APP. DATATCPIPMAC Ver.Total Length Identification Time to Live Source Address IHLService Type Options and Fragment Offset ProtocolHeader Checksum Options (0 or more 32-bit words) Destination Address Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

4/22/2003Network Processor & Its Applications10 TCP/IP packet APP. DATATCPIPMAC PreambleD. Add.S. Add.CRCLeng. Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

4/22/2003Network Processor & Its Applications11 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 Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

4/22/2003Network Processor & Its Applications12 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

4/22/2003Network Processor & Its Applications13 Data Plane Tasks Media Access Control Low-level protocol implementation Ethernet, SONET framing, ATM cell processing, etc. Data Parsing Parsing cell or packet headers for address or protocol information Classification Identify packet against a criteria (filtering / forwarding decision, QoS, accounting, etc.) Data Transformation Transformation of packet data between protocols Traffic Management Queuing, scheduling and policing packet data Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

4/22/2003Network Processor & Its Applications14 Network Processor Applications Routing table lookup Determine the next hop for incoming packets Packet Classification classify packets using header fields against a set of rules URL-based Switching Distribute HTTP requests based on URLs. Transcoding Encryption/Decryption, intrusion detection, firewall, access control checking, denial-of-service

4/22/2003Network Processor & Its Applications15 IPv4 Routing Routers determine next hop and forward packets Router A B C P P P

4/22/2003Network Processor & Its Applications16 Trie-based Routing Table Lookup Trie block keeps pointers to route entry and other trie blocks Destination IP address bits are examined group by group (4-bit) rt_ptrtrie_ptr Next hop Next hop 2 Next hop 3Next hop 4 PrefixNetmaskNext hop 00100xF1 0001,00110xFF2 1110,11100xFF2 0001,0011,00000xFFF3 0001,0011,1111,1110xFFFE4 Trie block

4/22/2003Network Processor & Its Applications17 Example rt_ptrtrie_ptr Next hop Next hop 2 Next hop 3Next hop 4 PrefixNetmaskNext hop 00100xF1 0001,00110xFF2 1110,11100xFF2 0001,0011,00000xFFF3 0001,0011,1111,1110xFFFE4 Packet destination IP address =0x13fe2233 (0001,0011,1111,1110,…)

4/22/2003Network Processor & Its Applications18 IP Lookups using Multi-way Multi-column Search Illustration of the idea with 6-bit address Prefixes: 1* 101 * 10101* Binary search does not work with variable length strings )end up far away from the matching prefix 2)Multiple addresses that match to different prefix, end up in the same region Encoding prefixes as ranges 1* -> [100000,111111] 101* -> [101000,101111] 10101* -> [101010,101011] L H L L,H H Narrowest enclosing Range containing A A

4/22/2003Network Processor & Its Applications19 Multi-way multi-column search P1: 1* -> [100000,111111] P2: 101* -> [101000,101111] P3: 10101* -> [101010,101011] > = p1) p1 p1 p2) p2 p2 p3) p3 p p2 p p1 p p1 Any region in the binary search between two consecutive numbers corresponds to a unique prefix k3 k6 k1 k2k4 k5k7 k8 info 3-way tree for 8 keys Multi-column search is used for wide address such as IPv6 A CE ADC AMW BMW BNX BN Y W/M words Probe 123

4/22/2003Network Processor & Its Applications20 Packet Classification Routers are required to distinguish packets for Flow identification Fair sharing of bandwidth QoS Security Accounting, billing etc Packets are classified by rules Src IP, Dest IP, src port #, dest port # etc Classification Algorithm Metrics Search speed Storage cost Scalability Updates Etc.

4/22/2003Network Processor & Its Applications21 Classification: Hierarchical tries Extension of the one dimensional radix trie Construct trie recursively: Contruct F1-trie on the set of prefix {Rj1} For each prefix p in F1-trie, we recursively construct (d-1) dimensional hierarchical trie on rules where {Rj:Rj1=p} ruleF1F2 R100* R20*01* R31*0* R400*0* R50*1* R6*1* Pankaj Gupta and Nick McKeown,"Algorithms for Packet Classification", IEEE Network Special Issue, March/April 2001, vol. 15, no. 2, pp

4/22/2003Network Processor & Its Applications22 Classification: Bitmap-intersection The set of rules S that a packet matches is the intersection of d sets, Si Where Si is the set of rules that match the packet in the i-th dimension alone. Pankaj Gupta and Nick McKeown,"Algorithms for Packet Classification", IEEE Network Special Issue, March/April 2001, vol. 15, no. 2, pp

4/22/2003Network Processor & Its Applications23 URL-based switching 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 Internet GET /cgi-bin/form HTTP/1.1 Host: APP. DATATCPIP Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

4/22/2003Network Processor & Its Applications24 Transcoders Two important requirements If the receiver is not capable of interpreting the stored data (multimedia transcoders) wireless receivers, hand-held devices, etc. Compression for bandwidth and storage efficiency Internet Transcoder Video-on-demand serverMpeg encoder Corporate Network Media Player Source: Network Processor Tutorial in Micro 34 - Mangione-Smith & Memik

4/22/2003Network Processor & Its Applications25 Summary NP is developing very fast and is a hot research area Multithreaded NP Architectures provide tremendous packet processing capability NP can be applied in various network layers and applications Traditional apps – forwarding, classification Advanced apps – transcoding, URL-based switching, security etc. New apps

4/22/2003Network Processor & Its Applications26 Reference 1. Pankaj Gupta and Nick McKeown,"Algorithms for Packet Classification", IEEE Network Special Issue, March/April 2001, vol. 15, no. 2, pp Bill Mangione-Smith, Gokhan Memik, Network Processing: Applications, Architectures and Examples – Tutorial at Micro 34, Dec B. Lampson, V. Srinivasan and G. Varghese, IP Lookups using Multiway and Multicolumn Search, IEEE/ACM Transactions on Networking, August 1, Intel IXP1200 Network Processor Family - Development Tools User's Guide, Intel