Advance Computer Networking L-8 Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan Seshan.

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.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Lecture 8 – IP Packets, Routers
Computer Networking Lecture 9 – IP Packets, Routers.
Router Architecture : Building high-performance routers Ian Pratt
15-744: Computer Networking L-3 Addressing/Forwarding.
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.
Scaling Internet Routers Using Optics UW, October 16 th, 2003 Nick McKeown Joint work with research groups of: David Miller, Mark Horowitz, Olav Solgaard.
Spring 2002CS 4611 Router Construction Outline Switched Fabrics IP Routers Tag Switching.
Isaac Keslassy, Shang-Tse (Da) Chuang, Nick McKeown Stanford University The Load-Balanced Router.
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.
Scaling Internet Routers Using Optics Producing a 100TB/s Router Ashley Green and Brad Rosen February 16, 2004.
1 Architectural Results in the Optical Router Project Da Chuang, Isaac Keslassy, Nick McKeown High Performance Networking Group
Big, Fast Routers Dave Andersen CMU CS
15-744: Computer Networking L-4 Routers. L -4; © Srinivasan Seshan, Routing How do routers process IP packets Forwarding lookup algorithms.
CSE5803 Advanced Internet Protocols and Applications (7) Introduction The IP addressing scheme discussed in Chapter 2 are classful and can be summarised.
Using Load-Balancing To Build High-Performance Routers Isaac Keslassy, Shang-Tse (Da) Chuang, Nick McKeown Stanford University.
048866: Packet Switch Architectures Dr. Isaac Keslassy Electrical Engineering, Technion The.
Scaling Internet Routers Using Optics Isaac Keslassy, Shang-Tse Da Chuang, Kyoungsik Yu, David Miller, Mark Horowitz, Olav Solgaard, Nick McKeown Department.
15-744: Computer Networking L-5 Intra-Domain Routing.
EE 122: Router Design Kevin Lai September 25, 2002.
048866: Packet Switch Architectures Dr. Isaac Keslassy Electrical Engineering, Technion Introduction.
1 EE384Y: Packet Switch Architectures Part II Load-balanced Switches Nick McKeown Professor of Electrical Engineering and Computer Science, Stanford University.
CS 268: Computer Networking L-8 Routers. 2 Forwarding and Routers Forwarding IP lookup High-speed router architecture Readings [McK97] A Fast Switched.
15-744: Computer Networking
Chapter 9 Classification And Forwarding. Outline.
15-744: Computer Networking L-8 Routers. 2 Forwarding and Routers Forwarding IP lookup High-speed router architecture Readings [McK97] A Fast Switched.
1 Growth in Router Capacity IPAM, Lake Arrowhead October 2003 Nick McKeown Professor of Electrical Engineering and Computer Science, Stanford University.
Router Architectures An overview of router architectures.
Routing Table : closer look w.lilakiatsakun. Sample Routing Table Static Route Dynamic Routing Protocol (RIP) Directly Connected Network Administrative.
Router Architectures An overview of router architectures.
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
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.
Chapter 4 Queuing, Datagrams, and Addressing
Computer Networks Switching Professor Hui Zhang
Network Layer Moving datagrams. How do it know? Tom-Tom.
Nick McKeown CS244 Lecture 7 Valiant Load Balancing.
Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets Lecture #4 Items you should understand by now – before routing Physical Addressing – with in.
Routing Table : closer look w.lilakiatsakun. Sample Routing Table Static Route Dynamic Routing Protocol (RIP) Directly Connected Network Administrative.
CS 640: Introduction to Computer Networks
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #14 Shivkumar Kalyanaraman: GOOGLE: “Shiv RPI”
Routers. These high-end, carrier-grade 7600 models process up to 30 million packets per second (pps).
Applied research laboratory 1 Scaling Internet Routers Using Optics Isaac Keslassy, et al. Proceedings of SIGCOMM Slides:
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.
CS 4396 Computer Networks Lab Router Architectures.
CS 740: Advanced Computer Networks IP Lookup and classification Supplemental material 02/05/2007.
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
1 How scalable is the capacity of (electronic) IP routers? Nick McKeown Professor of Electrical Engineering and Computer Science, Stanford University
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.
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.
IP Routers – internal view
Packet Forwarding.
Chapter 6 Delivery & Forwarding of IP Packets
Addressing: Router Design
Chapter 4: Network Layer
CS 740: Advance Computer Networks Hand-out on Router Design
15-744: Computer Networking
Advance Computer Networking
Router Construction Outline Switched Fabrics IP Routers
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
Project proposal: Questions to answer
Chapter 4: Network Layer
Presentation transcript:

Advance Computer Networking L-8 Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan Seshan at CMU. When slides are obtained from other sources, a reference will be noted on the bottom of that slide.

2 Forwarding and Routers Forwarding IP lookup High-speed router architecture Readings [McK97] A Fast Switched Backplane for a Gigabit Switched Router [KCY03] Scaling Internet Routers Using Optics Know RIP/OSPF Optional [D+97] Small Forwarding Tables for Fast Routing Lookups [BV01] Scalable Packet Classification

3 Outline IP router design IP route lookup Variable prefix match algorithms

4 What Does a Router Look Like? Currently: Network controller Line cards Switched backplane In the past? Workstation Multiprocessor workstation Line cards + shared bus

5 Line Cards Network interface cards Provides parallel processing of packets Fast path per-packet processing Forwarding lookup (hardware/ASIC vs. software)

6 Network Processor Runs routing protocol and downloads forwarding table to line cards Some line cards maintain two forwarding tables to allow easy switchover Performs “slow” path processing Handles ICMP error messages Handles IP option processing

7 Switch Design Issues Have N inputs and M outputs Multiple packets for same output – output contention Switch contention – switch cannot support arbitrary set of transfers Crossbar Bus High clock/transfer rate needed for bus Solution – buffer packets where needed

8 Switch Buffering Input buffering Which inputs are processed each slot – schedule? Head of line packets destined for busy output blocks other packets Output buffering Output may receive multiple packets per slot Need speedup proportional to # inputs Internal buffering Head of line blocking Amount of buffering needed

9 Line Card Interconnect Virtual output buffering Maintain per output buffer at input Solves head of line blocking problem Each of MxN input buffer places bid for output Crossbar connect Challenge: map of bids to schedule for crossbar

10 ISLIP

11 ISLIP (cont.)

12 What Limits Router Capacity? Approximate power consumption per rack Power density is the limiting factor today

13 Crossbar Linecards Switch Linecards Multi-rack Routers Reduce Power Density

14 Examples of Multi-rack Routers Alcatel 7670 RSP Juniper TX8/T640 TX8 Chiaro Avici TSR

15 Limits to Scaling Overall power is dominated by linecards Sheer number Optical WAN components Per packet processing and buffering. But power density is dominated by switch fabric

16 Multi-rack Routers Reduce Power Density Switch Linecards Limit today ~2.5Tb/s  Electronics  Scheduler scales <2x every 18 months  Opto-electronic conversion

17 Question Instead, can we use an optical fabric at 100Tb/s with 100% throughput? Conventional answer: No Need to reconfigure switch too often 100% throughput requires complex electronic scheduler.

18 If Traffic is Uniform… R In Out R R R R R R/N R R

19 Real Traffic is Not Uniform R In Out R R R R R R/N R R R R R R R R R ?

20 Out R R R R/N Two-stage Load-Balancing Switch Load-balancing stageSwitching stage In Out R R R R/N R R R 100% throughput for weakly mixing, stochastic traffic [C.-S. Chang, Valiant]

21 Out R R R R/N In R R R R/N

22 Out R R R R/N In R R R R/N

23 In Out In Out In Out In Out Static WDM Switching Array Waveguide Router (AWGR) Passive and Almost Zero Power A B C D A, B, C, D A, A, A, A B, B, B, B C, C, C, C D, D, D, D 4 WDM channels, each at rate 2R/N

24 R WDM 1 N      R Out WDM 1 N 1 N R R      2 R R Linecard Dataflow WDM 1 N      RR 3 In

Outline IP router design IP route lookup Variable prefix match algorithms 25

26 Original IP Route Lookup Address classes A: 0 | 7 bit network | 24 bit host (16M each) B: 10 | 14 bit network | 16 bit host (64K) C: 110 | 21 bit network | 8 bit host (255) Address would specify prefix for forwarding table Simple lookup

27 Original IP Route Lookup – Example address www.cmu.edu Class B address – class + network is Lookup in forwarding table Prefix – part of address that really matters for routing Forwarding table contains List of class+network entries A few fixed prefix lengths (8/16/24) Large tables 2 Million class C networks

28 CIDR Revisited Supernets Assign adjacent net addresses to same org Classless routing (CIDR) How does this help routing table? Combine routing table entries whenever all nodes with same prefix share same hop Routing protocols carry prefix with destination network address Longest prefix match for forwarding

29 CIDR Illustration Provider is given / / / / /23 Provider

Outline IP router design IP route lookup Variable prefix match algorithms 30

31 Trie Using Sample Database 01 Root P5P4 01 P1 0 0 P6 P7 P P P3 P1 = 10* P2 = 111* P3 = 11001* P4 = 1* P5 = 0* P6 = 1000* P7 = * P8 = * Sample DatabaseTrie 1

32 How To Do Variable Prefix Match 128.2/ / / /24 default 0/0 0 Traditional method – Patricia Tree Arrange route entries into a series of bit tests Worst case = 32 bit tests Problem: memory speed is a bottleneck Bit to test – 0 = left child,1 = right child

33 Speeding up Prefix Match (P+98) Cut prefix tree at 16 bit depth 64K bit mask Bit = 1 if tree continues below cut (root head) Bit = 1 if leaf at depth 16 or less (genuine head) Bit = 0 if part of range covered by leaf

34 Prefix Tree Port 1Port 5Port 7 Port 3 Port 9 Port 5