1 15-441 Computer Networks Switching Professor Hui Zhang

Slides:



Advertisements
Similar presentations
1 ELEN 602 Lecture 18 Packet switches Traffic Management.
Advertisements

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 High Speed Router Design Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
Router Architecture : Building high-performance routers Ian Pratt
Lecture 11 Switching & Forwarding EECS 122 University of California Berkeley.
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.
CS 268: Lecture 10 Router Design and Packet Lookup Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences University.
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.
CS 268: Router Design Ion Stoica March 1, 2004.
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 268: Lectures 13/14 (Route Lookup and Packet Classification) Ion Stoica April 1/3, 2002.
CS 268: Route Lookup and Packet Classification Ion Stoica March 11, 2003.
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.
048866: Packet Switch Architectures Dr. Isaac Keslassy Electrical Engineering, Technion Introduction.
CS 268: Lecture 12 (Router Design) Ion Stoica March 18, 2002.
CS 268: Route Lookup and Packet Classification
Router Design and Packet Scheduling
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.
Router Architectures An overview of router architectures.
Router Architectures An overview of router architectures.
Router Design (Nick Feamster) February 11, Today’s Lecture The design of big, fast routers Partridge et al., A 50 Gb/s IP Router Design constraints.
4: Network Layer4b-1 Router Architecture Overview Two key router functions: r run routing algorithms/protocol (RIP, OSPF, BGP) r switching datagrams from.
Chapter 4 Queuing, Datagrams, and Addressing
IP Routers CS 168, Fall 2014 Kay Ousterhout (standing in for Sylvia Ratnasamy) Material thanks to Ion Stoica, Scott.
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
Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani.
CS 1652 The slides are adapted from the publisher’s material All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Jack Lange.
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.
Router Architecture Overview
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.
1 Performance Guarantees for Internet Routers ISL Affiliates Meeting April 4 th 2002 Nick McKeown Professor of Electrical Engineering and Computer Science,
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Forwarding.
21-Dec-154/598N: Computer Networks Cell Switching (ATM) Connection-oriented packet-switched network Used in both WAN and LAN settings Signaling (connection.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 18: Quality of Service Slides used with.
Interconnect Networks Basics. Generic parallel/distributed system architecture On-chip interconnects (manycore processor) Off-chip interconnects (clusters.
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,
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.
Univ. of TehranIntroduction to Computer Network1 An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
Network layer (addendum) Slides adapted from material by Nick McKeown and Kevin Lai.
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
CS 268: Lecture 10 Router Design and Packet Lookup
Bridging.
CS 268: Router Design Ion Stoica February 27, 2003.
Packet Forwarding.
Addressing: Router Design
CS4470 Computer Networking Protocols
Chapter 4: Network Layer
CS 1652 The slides are adapted from the publisher’s material
Lecture 11 Switching & Forwarding
Chapter 4-1 Network layer
What’s “Inside” a Router?
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.
Network Layer: Control/data plane, addressing, routers
Introduction to Packet Scheduling
Chapter 4: Network Layer
Introduction to Packet Scheduling
Presentation transcript:

Computer Networks Switching Professor Hui Zhang

2 Hui Zhang Structure of A Generic Communication Switch  Switches  circuit switch  Ethernet switch  ATM switch  IP router Line Cards Switch Fabric Control Processor Line Cards  Switch fabric  high capacity interconnect  Line card  address lookup in the data path (forwarding)  Control Processor  load the forwarding table (routing or signaling)

3 Hui Zhang Switches/Routers  Control plane: how forwarding tables are computed –Router: routing protocols –Ethernet switch: learning and spanning tree  Data plane: how each packet is processed?  Header lookup and forward the packet to right output port  Manage buffer and bandwidth resource

4 Hui Zhang Addressing and Look-up  Flat address  Ethernet: 48 bit MAC address  ATM: 28 bit VPI/VCI  DS-0: timeslot location  Limited scalability  High speed lookup  Hierarchical address  IP..  Telephone: country.area.home  Scalable  Easy lookup if boundary is fixed  telephony  Difficult lookup if boundary is flexible  longest prefix match for IP

5 Hui Zhang Generic Architecture  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 interfaceoutput interface Inter- connect

6 Hui Zhang Shared Memory (1 st Generation) Route Table CPU Buffer Memory Line Interface MAC Line Interface MAC Line Interface MAC Typically < 0.5Gbps aggregate capacity Limited by rate of shared memory Shared Backplane Line Interface CPU Memory (* Slide by Nick McKeown)

7 Hui Zhang Shared Bus (2 nd Generation) Route Table CPU Line Card Buffer Memory Line Card MAC Buffer Memory Line Card MAC Buffer Memory Fwding Cache Fwding Cache Fwding Cache MAC Buffer Memory Typically < 5Gb/s aggregate capacity; Limited by shared bus (* Slide by Nick McKeown)

8 Hui Zhang Point-to-Point Switch (3 rd Generation) Line Card MAC Local Buffer Memory CPU Card Line Card MAC Local Buffer Memory Switched Backplane Line Interface CPU Memory Fwding Table Routing Table Fwding Table Typically < 50Gbps aggregate capacity (*Slide by Nick McKeown)

9 Hui Zhang What a Router Looks Like Cisco GSR 12416Juniper M160 6ft 19 ” 2ft Capacity: 160Gb/s Power: 4.2kW 3ft 2.5ft 19 ” Capacity: 80Gb/s Power: 2.6kW Slide by Nick McKeown

10 Hui Zhang Interconnect  Point-to-point switch allows to simultaneously transfer a packet between any two disjoint pairs of input-output interfaces  Goal: come-up with a schedule that  Provide Quality of Service  Maximize router throughput  Challenges:  Address head-of-line blocking at inputs  Resolve input/output speedups contention  Avoid packet dropping at output if possible  Note: packets are fragmented in fix sized cells at inputs and reassembled at outputs

11 Hui Zhang Output Queued Routers  Only output interfaces store packets  Advantages  Easy to design algorithms: only one congestion point  Disadvantages  Requires an output speedup of N, where N is the number of interfaces  not feasible input interfaceoutput interface Backplane C RORO

12 Hui Zhang Input Queued Routers  Only input interfaces store packets  Advantages  Easy to built –Store packets at inputs if contention at outputs  Relatively easy to design algorithms –Only one congestion point, but not output… –need to implement backpressure  Disadvantages  Hard to achieve utilization  1 (due to output contention, head-of-line blocking) –However, theoretical and simulation results show that for realistic traffic an input/output speedup of 2 is enough to achieve utilizations close to 1 input interfaceoutput interface Backplane C RORO

13 Hui Zhang 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 output buffer overflow Cannot be transferred because is blocked by red cell Output 1 Output 2 Output 3 Input 1 Input 2 Input 3

14 Hui Zhang A Router with Input Queues Head of Line Blocking The best that any queueing system can achieve. Slide by Nick McKeown

15 Hui Zhang Solution to Avoid Head-of-line Blocking  Maintain at each input N virtual queues, i.e., one per output Output 1 Output 2 Output 3 Input 1 Input 2 Input 3

16 Hui Zhang Combined Input-Output Queued (CIOQ) Routers  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 interfaceoutput interface Backplane C RORO

17 Hui Zhang Input Interface  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 input interfaceoutput interface Inter- connect

18 Hui Zhang Lookup  Identify the output interface to forward an incoming packet based on packet’s destination address  Routing tables summarize information by maintaining a mapping between IP address prefixes and output interfaces  How are routing tables computed?  Route lookup  find the longest prefix in the table that matches the packet destination address

19 Hui Zhang IP Routing  Packet with destination address is sent to interface 2, as xxx is the longest prefix matching packet’s destination address …… xxx.xxx xxx xxx 2

20 Hui Zhang Patricia Tries  Use binary tree paths to encode prefixes  Advantage: simple to implement  Disadvantage: one lookup may take O(m), where m is number of bits (32 in the case of IPv4) 001xx x 3 10xxx

21 Hui Zhang Addressing and Look-up  Flat address  Ethernet: 48 bit MAC address  ATM: 28 bit VPI/VCI  DS-0: timeslot location  Limited scalability  High speed lookup  Hierarchical address  IP..  Telephone: country.area.home  Scalable  Easy lookup if boundary is fixed  telephony  Difficult lookup if boundary is flexible  longest prefix match for IP

22 Hui Zhang Output Functions  Buffer management: decide when and which packet to drop  Scheduler: decide when and which packet to transmit 1 2 Scheduler Buffer

23 Hui Zhang Example: FIFO router  Most of today’s routers  Drop-tail buffer management: when buffer is full drop the incoming packet  First-In-First-Out (FIFO) Scheduling: schedule packets in the same order they arrive

24 Hui Zhang Output Functions (cont’d)  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

25 Hui Zhang Packet Classification  Classify an IP packet based on a number of fields in the packet header, e.g.,  source/destination IP address (32 bits)  source/destination port number (16 bits)  Type of service (TOS) byte (8 bits)  Type of protocol (8 bits)  In general fields are specified by range 1 2 Scheduler flow 1 flow 2 flow n Classifier Buffer management

26 Hui Zhang Example of Classification Rules  Access-control in firewalls  Deny all traffic from ISP-X to Y  Policy-based routing  Route IP telephony traffic from X to Y via ATM  Differentiate quality of service  Ensure that no more than 50 Mbps are injected from ISP-X

27 Hui Zhang Scheduler  One FIFO queue per flow  Scheduler decides when and from which queue to send a packet  Goals of a scheduler:  Quality of service  Protection (stop a flow from hogging the entire output link)  Fast! 1 2 Scheduler flow 1 flow 2 flow n Classifier Buffer management

28 Hui Zhang Priority Scheduler Example: Priority Scheduler  Priority scheduler: packets in the highest priority queue are always served before the packets in lower priority queues High priority Medium priority Low priority

29 Hui Zhang Example: Round Robin Scheduler  Round robin: packets are served in a round-robin fashion Priority Scheduler High priority Medium priority Low priority

30 Hui Zhang Another Forwarding Technique: Source Routing  Each packet specifies the sequence of routers, or alternatively the sequence of output ports, from source to destination source

31 Hui Zhang Source Routing (cont’d)  Gives the source control of the path  Not scalable  Packet overhead proportional to the number of routers  Typically, require variable header length which is harder to implement  Hard for source to have complete information  Loose source routing  sender specifies only a subset of routers along the path

32 Hui Zhang Concepts  Control plane vs. data plane  Various switching architectures  Buffering  Input vs. Output vs. Combined Input/Output  Head of line blocking  Scheduling  Header lookup