Packet Switch Architectures The following are (sometimes modified and rearranged slides) from an ACM Sigcomm 99 Tutorial by Nick McKeown and Balaji Prabhakar,

Slides:



Advertisements
Similar presentations
Router Internals CS 4251: Computer Networking II Nick Feamster Spring 2008.
Advertisements

Router Internals CS 4251: Computer Networking II Nick Feamster Fall 2008.
IP Router Architectures. Outline Basic IP Router Functionalities IP Router Architectures.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
IP Forwarding Relates to Lab 3.
Internetworking II: MPLS, Security, and Traffic Engineering
Delivery and Forwarding of
© 2009 Cisco Systems, Inc. All rights reserved. SWITCH v1.0—4-1 Implementing Inter-VLAN Routing Deploying Multilayer Switching with Cisco Express Forwarding.
© Jörg Liebeherr ECE 1545 Packet-Switched Networks.
Router Architecture : Building high-performance routers Ian Pratt
Spring 2002CS 4611 Router Construction Outline Switched Fabrics IP Routers Tag Switching.
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.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 14.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 High Speed Router Design Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
CS 552 Computer Networks IP forwarding Fall 2004 Rich Martin (Slides from D. Culler and N. McKeown)
Chapter 10 Switching Fabrics. Outline Physical Interconnection Physical box with backplane Individual blades plug into backplane slots Each blade contains.
EE 122: Router Design Kevin Lai September 25, 2002.
048866: Packet Switch Architectures Dr. Isaac Keslassy Electrical Engineering, Technion Introduction.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Switch and Router Architectures Computer Science Division Department of Electrical Engineering.
INF5050: Protocols and routing in the internet By: Desta Haileselassie Hagos February 13,
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 15.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Router Architectures An overview of router architectures.
Router Architectures An overview of router architectures.
Chapter 4 Queuing, Datagrams, and Addressing
1 IP routers with memory that runs slower than the line rate Nick McKeown Assistant Professor of Electrical Engineering and Computer Science, Stanford.
Computer Networks Switching Professor Hui Zhang
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 All material copyright
Professor Yashar Ganjali Department of Computer Science University of Toronto
Courtesy: Nick McKeown, Stanford More on IP and Packet Forwarding Tahir Azim.
CS 552 Computer Networks IP forwarding Fall 2005 Rich Martin (Slides from D. Culler and N. McKeown)
ATM SWITCHING. SWITCHING A Switch is a network element that transfer packet from Input port to output port. A Switch is a network element that transfer.
TO p. 1 Spring 2006 EE 5304/EETS 7304 Internet Protocols Tom Oh Dept of Electrical Engineering Lecture 9 Routers, switches.
1 Copyright © Monash University ATM Switch Design Philip Branch Centre for Telecommunications and Information Engineering (CTIE) Monash University
1 John Magee 24 February 2014 CS 280: Network Layer: Virtual Circuits / Datagram Networks and What’s inside a Router? Most slides adapted from Kurose and.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #14 Shivkumar Kalyanaraman: GOOGLE: “Shiv RPI”
Packet Forwarding. A router has several input/output lines. From an input line, it receives a packet. It will check the header of the packet to determine.
An Introduction to Packet Switching Nick McKeown Assistant Professor of Electrical Engineering and Computer Science, Stanford University
Forwarding.
Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani.
Lecture Note on Switch Architectures. Function of Switch.
1 A quick tutorial on IP Router design Optics and Routing Seminar October 10 th, 2000 Nick McKeown
Spring 2000CS 4611 Router Construction Outline Switched Fabrics IP Routers Extensible (Active) Routers.
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.
Multi-protocol Label Switching
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
Chapter 3 Part 3 Switching and Bridging
Chapter 4 Network Layer All material copyright
3. Internetworking (part 1)
Packet Forwarding.
Addressing: Router Design
Reference Router on NetFPGA 1G
Chapter 4: Network Layer
High Performance Switches and Routers: Theory and Practice
Chapter 3 Part 3 Switching and Bridging
Chapter 4-1 Network layer
What’s “Inside” a Router?
Bridges and Extended LANs
Packet Switch Architectures
EE 122: Lecture 7 Ion Stoica September 18, 2001.
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
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
Reference Router on NetFPGA 1G
Chapter 4: Network Layer
Packet Switch Architectures
Presentation transcript:

Packet Switch Architectures The following are (sometimes modified and rearranged slides) from an ACM Sigcomm 99 Tutorial by Nick McKeown and Balaji Prabhakar, Stanford University Slides used with permission from authors. © All rights reserved by authors.

Copyright All Rights Reserved2 Outline Introduction: What is a Packet Switch? Packet Lookup and Classification: Where does a packet go next? Switching Fabrics: How does the packet get there?

Copyright All Rights Reserved3 Introduction What is a Packet Switch? Basic Architectural Components Some Example Packet Switches

Copyright All Rights Reserved4 Basic Architectural Components Datapath: per-packet processing Forwarding Decision Forwarding Decision Forwarding Decision Forwarding Table Forwarding Table Forwarding Table Interconnect Output Scheduling

Copyright All Rights Reserved5 Where high performance packet switches are used Enterprise WAN access & Enterprise Campus Switch - Carrier Class Core Router - ATM Switch - Frame Relay Switch The Internet Core Edge Router

Copyright All Rights Reserved6 Some Example Packet Switches Packet switches exist for different networking technologies –Internet: IP protocol suite –Ethernet: Ethernet switches –ATM (Asynchronous Transfer Mode): ATM switch –MPLS (Multiprotocol label switching): MPLS switch There are many similarities in the architecture of the switches

Copyright All Rights Reserved7 Packet Lookup Where does a packet go next? ATM and MPLS switches –Direct Lookup Bridges and Ethernet switches –Associative Lookup –Hashing IP Routers –Patricia trees/tries

Copyright All Rights Reserved8 Lookup in an ATM Switch Lookup cell VCI/VPI in VC table. Replace old VCI/VPI with new. Forward cell to outgoing interface. Transmit cell onto link.

Copyright All Rights Reserved9 Lookup in an Ethernet Switch Lookup frame DA in forwarding table. –If known, forward to correct port. –If unknown, broadcast to all ports. Learn SA of incoming frame. Forward frame to outgoing interface. Transmit frame onto link.

Copyright All Rights Reserved10 Lookup in an IP Router Lookup packet DA in forwarding table. –If known, forward to correct port. –If unknown, drop packet. Decrement TTL, update header Cksum. Forward packet to outgoing interface. Transmit packet onto link.

Copyright All Rights Reserved11 ATM and MPLS Switches Direct Lookup VCI Address Memory Data (Port, VCI)

Copyright All Rights Reserved12 Bridges and Ethernet Switches Associative Lookups Network Address Associated Data Associative Memory or CAM Search Data 48 log 2 N Associated Data Hit? Address { Advantages: Simple Disadvantages Slow High Power Small Expensive

Copyright All Rights Reserved13 Bridges and Ethernet Switches Hashing Hashing Function Memory Address Data Search Data 48 log 2 N Associated Data Hit? Address { 16

Copyright All Rights Reserved14 Lookups Using Hashing An example Hashing Function CRC #1#2#3#4 #1#2 #1#2#3 Linked lists Memory Search Data 48 log 2 N Associated Data Hit? Address {

Copyright All Rights Reserved15 IP Router Lookup IPv4 unicast destination address based lookup Dstn Addr Next Hop ---- DestinationNext Hop Forwarding Table Next Hop Computation Forwarding Engine Incoming Packet HEADERHEADER

Copyright All Rights Reserved16 IP Routers Lookup / / / / / /19 65/8 PrefixPort Lookup time Storage space Update time Preprocessing time Longest Prefix Matching

Copyright All Rights Reserved17 Ternary CAMs R R R R R4 ValueMask Priority Encoder Next Hop Associative Memory

Copyright All Rights Reserved18 Binary Tries Example Prefixes a) b) c) d) 001 e) 0101 f) 011 g) 100 h) 1010 i) 1100 j) a b c d e f g h i j 01

Copyright All Rights Reserved19 Patricia Tree Skip=5 j a bc d e fg 0 1 h i Example Prefixes a) b) c) d) 001 e) 0101 f) 011 g) 100 h) 1010 i) 1100 j)

Copyright All Rights Reserved20 Switching Fabrics: How does the packet get there? Output and Input Queueing Output Queueing Input Queueing Other non-blocking fabrics

Copyright All Rights Reserved21 Basic Architectural Components Datapath: per-packet processing Forwarding Decision Forwarding Decision Forwarding Decision Forwarding Table Forwarding Table Forwarding Table Interconnect Output Scheduling

Copyright All Rights Reserved22 Interconnects Two basic techniques Input Queueing Output Queueing Usually a non-blocking switch fabric (e.g. crossbar) Usually a fast bus

Copyright All Rights Reserved23 Interconnects Output Queueing Individual Output QueuesCentralized Shared Memory Memory b/w = (N+1).R 1 2 N Memory b/w = 2N.R 1 2 N

Copyright All Rights Reserved24 Output Queueing How fast can we make centralized shared memory? Shared Memory 200 byte bus 5ns SRAM 1 2 N 5ns per memory operation Two memory operations per packet Therefore, up to 160Gb/s In practice, closer to 80Gb/s

Copyright All Rights Reserved25 Switching Fabrics Output and Input Queueing Output Queueing Input Queueing –Scheduling algorithms –Other non-blocking fabrics –Combining input and output queues –Multicast traffic

Copyright All Rights Reserved26 Input Queueing with Crossbar configuration Data In Data Out Scheduler Memory b/w = 2R

Copyright All Rights Reserved27 Input Queueing Head of Line Blocking Delay Load 58.6% 100%

Copyright All Rights Reserved28 Head of Line Blocking

Copyright All Rights Reserved29

Copyright All Rights Reserved30

Copyright All Rights Reserved31 Input Queueing Virtual output queues

Copyright All Rights Reserved32 Input Queues Virtual Output Queues Delay Load 100%

Copyright All Rights Reserved33 Input Queueing Scheduler Memory b/w = 2R Can be quite complex!

Copyright All Rights Reserved34 Input Queueing Scheduling

Copyright All Rights Reserved35 Wave Front Arbiter Scheduling Algorithm RequestsMatch

Copyright All Rights Reserved36 Wave Front Arbiter RequestsMatch

Copyright All Rights Reserved37 Other Non-Blocking Fabrics Clos Network

Copyright All Rights Reserved38 Other Non-Blocking Fabrics Clos Network Expansion factor required = 2-1/N (but still blocking for multicast)

Copyright All Rights Reserved39 Other Non-Blocking Fabrics Self-Routing Networks

Copyright All Rights Reserved40 Other Non-Blocking Fabrics Self-Routing Networks Batcher SorterSelf-Routing Network The Non-blocking Batcher Banyan Network Fabric can be used as scheduler. Batcher-Banyan network is blocking for multicast.