Lecture 11 Switching & Forwarding

Slides:



Advertisements
Similar presentations
Internetworking II: MPLS, Security, and Traffic Engineering
Advertisements

Lecture 11 Switching & Forwarding EECS 122 University of California Berkeley.
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.
UCB Switches Jean Walrand U.C. Berkeley
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 14.
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
EE 122: Switching and Forwarding Kevin Lai September 23, 2002.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
EE 122: Router Design Kevin Lai September 25, 2002.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 15 Introduction to Networks and the Internet.
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.
UCB Switches Jean Walrand U.C. Berkeley
Chapter 4 Queuing, Datagrams, and Addressing
Computer Networks Switching Professor Hui Zhang
TELE202 Lecture 5 Packet switching in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lectures »C programming »Source: ¥This Lecture »Packet switching in Wide.
Final Chapter Packet-Switching and Circuit Switching 7.3. Statistical Multiplexing and Packet Switching: Datagrams and Virtual Circuits 4. 4 Time Division.
Forwarding.
Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani.
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 Switching and Forwarding Sections Connecting More Than Two Hosts Multi-access link: Ethernet, wireless –Single physical link, shared by multiple.
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.
Univ. of TehranIntroduction to Computer Network1 An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
Fall, 2001CS 6401 Switching and Routing Outline Routing overview Store-and-Forward switches Virtual circuits vs. Datagram switching.
Network layer (addendum) Slides adapted from material by Nick McKeown and Kevin Lai.
1 Building big router from lots of little routers Nick McKeown Assistant Professor of Electrical Engineering and Computer Science, Stanford University.
1 CSCD 330 Network Programming Winter 2016 Lecture 13 Network Layer Reading: Chapter 4 Some slides provided courtesy of J.F Kurose and K.W. Ross, All Rights.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 10 – Circuit Switching and Packet Switching.
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
William Stallings Data and Computer Communications
Chapter 3 Part 3 Switching and Bridging
Packet Switching Networks & Frame Relay
Chapter 4 Network Layer All material copyright
CS/ECE 438: Communication Networks
EE 122: Lecture 19 (Asynchronous Transfer Mode - ATM)
Networking Devices.
Packet Switching Outline Store-and-Forward Switches
Weren’t routers supposed
CS 268: Router Design Ion Stoica February 27, 2003.
Packet Forwarding.
Network Layer Goals: Overview:
Addressing: Router Design
CS4470 Computer Networking Protocols
EEC-484/584 Computer Networks
Chapter 4: Network Layer
Chapter 3 Part 3 Switching and Bridging
CS 1652 The slides are adapted from the publisher’s material
Chapter 4-1 Network layer
What’s “Inside” a Router?
Network Core and QoS.
EEC-484/584 Computer Networks
Bridges and Extended LANs
EEC-484/584 Computer Networks
Data Communication Networks
Router Construction Outline Switched Fabrics IP Routers
October 26th, 2010 CS1652/Telcom2310 Jack Lange
EEC-484/584 Computer Networks
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.
CSCD 330 Network Programming Winter 2019 Lecture 13 Network Layer
Chapter 3 Part 3 Switching and Bridging
Project proposal: Questions to answer
Optical communications & networking - an Overview
Packet Switching Outline Store-and-Forward Switches
An Engineering Approach to Computer Networking
Chapter 4: Network Layer
Packet Switch Architectures
Network Core and QoS.
Presentation transcript:

Lecture 11 Switching & Forwarding Walrand Lecture 11 Lecture 11 Switching & Forwarding EECS 122 University of California Berkeley EECS 122

TOC: Switching & Forwarding Walrand Lecture 11 TOC: Switching & Forwarding Why? Switching Techniques Switch Characteristics Switch Examples Switch Architectures Summary EECS 122 Walrand EECS 122

Switching: Why? Direct vs. Switched Networks: Direct Network Limitations: Distance (coordination delay; propagation limitation) Number of hosts (collisions; shared bandwidth; address tables) Single link technology (cannot mix optical, wireless, …) Internetworking: Externality gain at low cost n links Single link Switches Direct Switched EECS 122 Walrand

Switching: Techniques Circuit-Switching (e.g., Telephone net.) Packet-Switching Datagram (e.g., IP, Ethernet) Virtual Circuits (e.g., MPLS, ATM) Source Routing Comparison EECS 122 Walrand

Techniques: Circuit-Switching Link divided into fixed, independent circuits Mechanism: (e.g., TDM, WDM) Circuit Switch Connection list Time scale: connection Features: Packets not switched independently (establish circuit before sending data) Dedicated path and resources from source to destination Setup time; low delays and guaranteed resources thereafter EECS 122 Walrand

Techniques: Packet-Switching Whole link shared by all packets Mechanism: Packet Switch Features: Data separated into packets Switching decision (output port) for each individual packet Statistical multiplexing: Sum of peak rates may exceed link bandwidth (as long as mean does not) EECS 122 Walrand

Techniques: PS - Datagram General idea: no connection establishment, but each packet contains enough info to specify destination Switches contain forwarding tables (but no per-connection “state”) Forwarding tables contain info on which outgoing port to use for each destination Two types of addressing: Layer 2 or Layer 3 EECS 122 Walrand

Datagram: Layer 2 (e.g., Ethernet) Flat address space (no structure) Forwarding table: Exact match of destination L2 address a 1 b 4 c 3 d 2 e 2 f 2 a 1 b 1 c 1 d 2 e 3 f 4 a d 1 2 2 1 4 b e 3 4 3 e|b| To From c f EECS 122 Walrand

Datagram: Layer 3 (e.g., IP) L3-network (e.g., IP) Topological structure – match prefix Either fixed prefix length or longest match E.g. 3 Fixed 11010001 11001101 Longest 11001001 10100111 11010000 11001000 10100000 01000000 1101 Other A B C D A’ C’ B’ 11010101 1100 11100000 EECS 122 Walrand

Datagram: Layer 3 (e.g., IP) 11011001 matches 4 bits at A, 1 at B, 3 at C  A = LPM 4 bits at A’  A’ = EM Fixed 11010001 11001101 Longest 11001001 10100111 11010000 11001000 10100000 01000000 1101 Other A B C D A’ C’ B’ 11010101 1100 11100000 11011001 EECS 122 Walrand

Datagram: Layer 3 (e.g., IP) 11001001 matches 3 bits at A, 1 at B, 7 at C  C = LPM Fixed 11010001 11001101 Longest 11001001 10100111 11010000 11001000 10100000 01000000 1101 Other A B C D A’ C’ B’ 11010101 1100 11100000 11001001 EECS 122 Walrand

Datagram: Layer 3 (e.g., IP) 01100101 matches 0 bit at A’  B’ 0 bit at B, 0 at C, 2 at D  D = LPM E.g. 3 Fixed 11010001 11001101 Longest 11001001 10100111 11010000 11001000 10100000 01000000 1101 Other A B C D A’ C’ B’ 11010101 1100 11100000 01100101 EECS 122 Walrand

Techniques: PS – Virtual Circuit Connection setup establishes a path through switches A virtual circuit ID (VCI) identifies path Uses packet switching, with packets containing VCI VCIs are often indices into per-switch connection tables; change at each hop VC1 1 4 1 VC2 4 VC1 VC2 VC3 VC1 2 In, VC Out, VC 1, 1 4, 1 1, 2 4, 3 2, 1 4, 2 3 3 2 VC1 VC2 VC1 …. EECS 122 Walrand

Techniques: Source Routing Each packet specifies the sequence of routers (or of output ports) from source to destination 1 2 3 4 source EECS 122 Walrand

Techniques: Comparison Datagram Virtual circuit switching Circuit switching Forwarding cost high low none Bandwidth utilization flexible Resource reservations yes Robustness* *The idea is that in case of failure, circuit and VC are lost; datagram routing can adapt after routing update …. EECS 122 Walrand

Switching: Characteristics Ports Fast Ethernet, OC-3, ATM, … Protocols ST, Link Agg., VLAN, OSPF, RIP, BGP, VPN, Load Balancing, WRED, WFQ Performance Throughput, Reliability, Power, … EECS 122 Walrand

Switching: Examples Juniper M160 Cisco “GSR” Cisco “7600” Cisco “catalyst 6500” Extreme “Summit” Foundry “ServerIron” EECS 122 Walrand

Examples: Cisco GSR - 12416 WAN Router – Large throughput; SONET links Up to 16 line cards at 10 Gbps each Crossbar Fabric Line Cards: 1-port OC-192c 4-port OC48c Many others (ATM, Ethernet, …) Cisco GSR 12416 19” 6ft 2ft EECS 122 Walrand

Examples: Juniper M160 WAN Router – Large throughput; SONET links Crossbar Fabric Line Cards: 1-port OC-192c 4-port OC48c Many others (ATM, Ethernet, …) Juniper M160 19” Capacity: 80Gb/s Power: 2.6kW 3ft 2.5ft EECS 122 Walrand

Examples: Cisco 7600 MAN-WAN Router Up to 128 Gbps with Crossbar Fabric 10Mbps – 10Gbps LAN Interfaces OC-3 to OC-48 SONET Interfaces MPLS, WFQ, LLQ, WRED, Traffic Shaping EECS 122 Walrand

Examples: Cisco cat 6500 From LAN to Access 48 to 576 10/100 Ethernet Interfaces 10 GE, OC-3, OC-12, OC-48, ATM QoS, ACL Load Balancing; VPN Up to 128Gbps (with crossbar) L4-7 Switching VLAN IP Telephony (E1, T1, inline-power Ethernet) SNMP, RMON EECS 122 Walrand

Examples: Extreme - Summit 48 10/100 ports 2 GE (SX, LX, or LX-70) 17.5Gbps non-blocking 10.1 Mpps Wire speed L2 Wire speed L3 static or RIP OSPF, DVRMP, PIM, … EECS 122 Walrand

Examples: Foundry - ServerIron Server Load Balancing Transparent Cache Switching Firewall Load Balancing Global Server Load Balancing Extended Layer 4-7 functionality including URL-, Cookie-, and SSL Session ID-based switching Secure Network Address Translation (NAT) and Port address translation (PAT) EECS 122 Walrand

Switching: Architectures Generic Architecture First Generation Second Generation Third Generation Input Functions Output Functions Interconnection Designs OUT IN VOB Combined IN/OUT EECS 122 Walrand

Architectures: Generic Input and output interfaces are connected through an interconnect A interconnect can be implemented by Shared memory low capacity routers (e.g., PC-based routers) Shared bus Medium capacity routers Point-to-point (switched) bus High capacity routers input interface output interface Inter- connect EECS 122 Walrand

Architectures: First Generation Route Table CPU Buffer Memory Line Interface MAC Shared Backplane CPU Memory Line Interface Typically < 0.5Gbps aggregate capacity Limited by rate of shared memory Slide by Nick McKeown EECS 122 Walrand

Architectures: Second Generation Route Table CPU Line Card Buffer Memory MAC Fwding Cache Typically < 5Gb/s aggregate capacity Limited by shared bus Slide by Nick McKeown EECS 122 Walrand

Architectures: Third Generation Line Card MAC Local Buffer Memory CPU Switched Backplane Line Interface Fwding Table Routing Typically < 50Gbps aggregate capacity Slide by Nick McKeown EECS 122 Walrand

Architectures: Input Functions Packet forwarding: decide to which output interface to forward each packet based on the information in packet header examine packet header lookup in forwarding table update packet header EECS 122 Walrand

Architectures: Output Functions Buffer management: decide when and which packet to drop Scheduler: decide when and which packet to transmit Buffer Scheduler 1 2 EECS 122 Walrand

Architectures: Output Functions (ct) Packet classification: map each packet to a predefined flow/connection (for datagram forwarding) use to implement more sophisticated services (e.g., QoS) Flow: a subset of packets between any two endpoints in the network 1 2 Scheduler flow 1 flow 2 flow n Classifier Buffer management EECS 122 Walrand

Architectures: Output Queued Only output interfaces store packets Advantage Easy to design algorithms: only one congestion point Disadvantage Requires an output speedup Ro/C = N, where N is the number of interfaces  not feasible for large N input interface output interface Backplane C RO EECS 122 Walrand

Architectures: Input Queues Only input interfaces store packets Advantages Easy to build Simple algorithms Disadvantages HOL Blocking In practice: Speedup of 2 suffices input interface output interface Backplane C RO EECS 122 Walrand

Note: Head-of-line Blocking The cell at the head of an input queue cannot be transferred, thus blocking the following cells Cannot be transferred because of HOL blocking Cannot be transferred because of output contention Input 1 Output 1 Input 2 Output 2 Input 3 Output 3 Being transferred EECS 122 Walrand

Architectures: Virtual Output Buffers OUT buffers at each input port Complexity: Matching Problem Full throughput algorithm Good Heuristic Crossbar Note: Figure from Prof. Varaiya’s notes for EE228b EECS 122 Walrand

VOB: Full Throughput Maximum Weighted Matching: A = 14 B = 11 C = 15 B + C > A + D => Serve (B, C) EECS 122 Walrand

VOB: Good Heuristic – i-SLIP Inputs request permission to send from outputs Outputs grant permissions to inputs (round-robin) Inputs accept permissions (round-robin) Request Grant Accept Iter 2 3 1 1 3 2 Last Accept Last Grant EECS 122 Walrand

Architectures: Combined IN/OUT Both input and output interfaces store packets Advantages Easy to built Utilization 1 can be achieved with limited input/output speedup (<= 2) Disadvantages Harder to design algorithms Two congestion points Need to design flow control input interface output interface Backplane C RO EECS 122 Walrand

Switching: Summary Switching needed for big networks Internetworking externality Circuit Packet – VC: QoS possible Packet – Datagram L2: Limited by flat address space L3: Exact Match: Easy lookup – less efficient Longest Prefix Match Switch functions: control and data Different Architectures: cost vs. performance EECS 122 Walrand