CS 268: Lecture 12 (Router Design) Ion Stoica March 18, 2002.

Slides:



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

1 IK1500 Communication Systems IK1330 Lecture 3: Networking Anders Västberg
1 o Two issues in practice – Scale – Administrative autonomy o Autonomous system (AS) or region o Intra autonomous system routing protocol o Gateway routers.
TELE202 Lecture 8 Congestion control 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »X.25 »Source: chapter 10 ¥This Lecture »Congestion control »Source:
CS 268: Lecture 8 Router Support for Congestion Control Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences.
CS 408 Computer Networks Congestion Control (from Chapter 05)
CS 4700 / CS 5700 Network Fundamentals Lecture 12: Router-Aided Congestion Control (Drop it like it’s hot) Revised 3/18/13.
Router Architecture : Building high-performance routers Ian Pratt
Nick McKeown CS244 Lecture 6 Packet Switches. What you said The very premise of the paper was a bit of an eye- opener for me, for previously I had never.
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.
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.
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.
EE 122: Router Design Kevin Lai September 25, 2002.
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.
Data Center Networks and Basic Switching Technologies Hakim Weatherspoon Assistant Professor, Dept of Computer Science CS 5413: High Performance Systems.
CS 268: Lecture 11 (Differentiated Services) Ion Stoica March 6, 2001.
A 50-Gb/s IP Router Authors: Craig Partridge et al. IEEE/ACM TON June 1998 Presenter: Srinivas R. Avasarala CS Dept., Purdue University.
Router Architectures An overview of router architectures.
Pipelined Two Step Iterative Matching Algorithms for CIOQ Crossbar Switches Deng Pan and Yuanyuan Yang State University of New York, Stony Brook.
Localized Asynchronous Packet Scheduling for Buffered Crossbar Switches Deng Pan and Yuanyuan Yang State University of New York Stony Brook.
Chapter 4 Queuing, Datagrams, and Addressing
Computer Networks Switching Professor Hui Zhang
Paper Review Building a Robust Software-based Router Using Network Processors.
Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani.
A 50-Gb/s IP Router 참고논문 : Craig Partridge et al. [ IEEE/ACM ToN, June 1998 ]
TO p. 1 Spring 2006 EE 5304/EETS 7304 Internet Protocols Tom Oh Dept of Electrical Engineering Lecture 9 Routers, switches.
Router Architecture Overview
TELE202 Lecture 5 Packet switching in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lectures »C programming »Source: ¥This Lecture »Packet switching in Wide.
1 Optical Burst Switching (OBS). 2 Optical Internet IP runs over an all-optical WDM layer –OXCs interconnected by fiber links –IP routers attached to.
Univ. of TehranAdv. topics in Computer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
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.
Packet switching network Data is divided into packets. Transfer of information as payload in data packets Packets undergo random delays & possible loss.
Stress Resistant Scheduling Algorithms for CIOQ Switches Prashanth Pappu Applied Research Laboratory Washington University in St Louis “Stress Resistant.
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
Forwarding.
EE 122: Lecture 15 (Quality of Service) Ion Stoica October 25, 2001.
Unit III Bandwidth Utilization: Multiplexing and Spectrum Spreading In practical life the bandwidth available of links is limited. The proper utilization.
Switching and Router Design
1 A quick tutorial on IP Router design Optics and Routing Seminar October 10 th, 2000 Nick McKeown
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.
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
Data Communication Networks Lec 13 and 14. Network Core- Packet Switching.
Univ. of TehranIntroduction to Computer Network1 An Introduction to Computer Networks 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.
scheduling for local-area networks”
EE 122: Lecture 19 (Asynchronous Transfer Mode - ATM)
CS 268: Lecture 10 Router Design and Packet Lookup
CS 268: Router Design Ion Stoica February 27, 2003.
Packet Forwarding.
Addressing: Router Design
Chapter 4: Network Layer
What’s “Inside” a Router?
Network Core and QoS.
Data Communication Networks
Congestion Control (from Chapter 05)
EE 122: Lecture 18 (Differentiated Services)
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.
Project proposal: Questions to answer
EE 122: Differentiated Services
Introduction to Packet Scheduling
Chapter 4: Network Layer
Introduction to Packet Scheduling
Network Core and QoS.
Presentation transcript:

CS 268: Lecture 12 (Router Design) Ion Stoica March 18, 2002

Midterm Exam (March 20): Sample Questions  E2E principle -Describe the end-to-end principle. Give one example in which implementing a particular functionality at a lower layer breaks this principle, and one example in which it does not. Explain.  Fair Queueing -(a) What problem does Fair Queueing address? Describe the Fair Queuing algorithm. -(b) What is the system virtual time and what it is used for?  Differentiated Services -Compare Assured and Premium services. How is each of them implemented at edge and core routers?

IP Router  A router consists -A set of input interfaces at which packets arrive -A se of output interfaces from which packets depart  Router implements two main functions -Forward packet to corresponding output interface -Manage congestion......

Generic Router Architecture  Input and output interfaces are connected through a backplane  A backplane 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- connection Medium (Backplane)

Speedup  C – input/output link capacity  R I – maximum rate at which an input interface can send data into backplane  R O – maximum rate at which an output can read data from backplane  B – maximum aggregate backplane transfer rate  Back-plane speedup: B/C  Input speedup: R I /C  Output speedup: R O /C input interfaceoutput interface Inter- connection Medium (Backplane) C C RIRI RORO B

Function division  Input interfaces: -Must perform packet forwarding – need to know to which output interface to send packets -May enqueue packets and perform scheduling  Output interfaces: -May enqueue packets and perform scheduling input interfaceoutput interface Inter- connection Medium (Backplane) C C RIRI RORO B

Three Router Architectures  Output queued  Input queued  Combined Input-Output queued

Output Queued (OQ) 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

Input Queueing (IQ) 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

Combined Input-Output Queueing (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 -Note: recent results show that with a input/output speedup of 2, a CIOQ can emulate any work- conserving OQ [G+98,SZ98] input interfaceoutput interface Backplane C RORO

Generic Architecture of a High Speed Router Today  Combined Input-Output Queued Architecture -Input/output speedup <= 2  Input interface -Perform packet forwarding (and classification)  Output interface -Perform packet (classification and) scheduling  Backplane -Point-to-point (switched) bus; speedup N -Schedule packet transfer from input to output

Backplane  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 -Meet flow QoS requirements -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 (why?) at inputs and reassembled at outputs -In Partridge et al, a cell is 64 B (what are the trade-offs?)

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 full Cannot be transferred because is blocked by red cell Output 1 Output 2 Output 3 Input 1 Input 2 Input 3

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

Cell transfer  Schedule: -Ideally: find the maximum number of input-output pairs such that: Resolve input/output contentions Avoid packet drops at outputs Packets meet their time constraints (e.g., deadlines), if any  Example -Assign cell preferences at inputs, e.g., their position in the input queue -Assign cell preferences at outputs, e.g., based on packet deadlines, or the order in which cells would depart in a OQ router -Match inputs and outputs based on their preferences  Problem: -Achieving a high quality matching complex, i.e., hard to do in constant time

A Case Study [Partridge et al ’98]  Goal: show that routers can keep pace with improvements of transmission link bandwidths  Architecture -A CIOQ router -15 (input/output) line cards: C = 2.4 Gbps Each input card can handle up to 16 (input/output) interfaces Separate forward engines (FEs) to perform routing -Backplane: Point-to-point (switched) bus, capacity B = 50 Gbps (32 MPPS) B/C = 20, but 25% of B lost to overhead (control) traffic

Router Architecture packet header

Router Architecture input interfaceoutput interfaces Backplane forward engines Network processor Network processor Data in Data out Control data (e.g., routing) Update routing tables Set scheduling (QoS) state

Router Architecture: Data Plane  Line cards -Input processing: can handle input links up to 2.4 Gbps (3.3 Gbps including overhead) -Output processing: use a 52 MHz FPGA; implements QoS  Forward engine: MHz DEC Alpha processor, three level cache to store recent routes Up to 12,000 routes in second level cache (96 kB); ~ 95% hit rate Entire routing table in tertiary cache (16 MB divided in two banks)

Router Architecture: Control Plane  Network processor: 233-MHz Alpha running NetBSD 1.1 -Update routing -Manage link status -Implement reservation  Backplane Allocator: implemented by an FPGA -Schedule transfers between input/output interfaces

Data Plane Details: Checksum  Takes too much time to verify checksum -Increases forwarding time by 21%  Take an optimistic approach: just incrementally update it -Safe operation: if checksum was correct it remains correct -If checksum bad, it will be anyway caught by end-host  Note: IPv6 does not include a header checksum anyway!

Data Plane Details: Slow Path Processing 1. Headers whose destination misses in the cache 2. Headers with errors 3. Headers with IP options 4. Datagrams that require fragmentation 5. Multicast datagrams  Requires multicast routing which is based on source address and inbound link as well  Requires multiple copies of header to be sent to different line cards

Control Plane: Backplane Allocator  Time divided in epochs -An epoch consists of 16 ticks of data clock (8 allocation clocks)  Transfer unit: 64 B (8 data click ticks)  During one epoch, up to 15 simultaneous transfers in an epoch -One transfer: two transfer units (128 B of data auxiliary bits)  Minimum of 4 epochs to schedule and complete a transfer but scheduling is pipelined. 1.Source card signals that it has data to send to the destination card 2.Switch allocator schedules transfer 3.Source and destination cards are notified and told to configure themselves 4.Transfer takes place  Flow control through inhibit pins

The Switch Allocator Card  Takes connection requests from function cards  Takes inhibit requests from destination cards  Computes a transfer configuration for each epoch  15X15 = 225 possible pairings with 15! Patterns

Allocator Algorithm

The Switch Allocator  Disadvantages of the simple allocator -Unfair: there is a preference for low-numbered sources -Requires evaluating 225 positions per epoch, which is too fast for an FPGA  Solution to unfairness problem: Random shuffling of sources and destinations  Solution to timing problem: Parallel evaluation of multiple locations  Priority to requests from forwarding engines over line cards to avoid header contention on line cards

Summary: Design Decisions (Innovations) 1. Each FE has a complete set of the routing tables 2. A switched fabric is used instead of the traditional shared bus 3. FEs are on boards distinct from the line cards 4. Use of an abstract link layer header 5. Include QoS processing in the router