Routers: Forwarding EECS 122: Lecture 13

Similar documents
Routers: Forwarding EECS 122: Lecture 13

TOC: Switching & Forwarding

TOC: Switching & Forwarding

TOC: Switching & Forwarding

EECS 122: Introduction to Computer Networks Switch and Router Architectures. Today s Lecture

EE 122: Router Design

Generic Architecture. EECS 122: Introduction to Computer Networks Switch and Router Architectures. Shared Memory (1 st Generation) Today s Lecture

Computer Networks. Instructor: Niklas Carlsson

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 11

Network layer (addendum) Slides adapted from material by Nick McKeown and Kevin Lai

CSE 3214: Computer Network Protocols and Applications Network Layer

Chapter 4 Network Layer

The Network Layer and Routers

Key Network-Layer Functions

Chapter 4. Computer Networking: A Top Down Approach 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, sl April 2009.

CMSC 332 Computer Networks Network Layer

Network Superhighway CSCD 330. Network Programming Winter Lecture 13 Network Layer. Reading: Chapter 4

CSE 123A Computer Networks

CSC 4900 Computer Networks: Network Layer

LS Example 5 3 C 5 A 1 D

Router Architecture Overview

CSCD 330 Network Programming

Routers Technologies & Evolution for High-Speed Networks

CSC 401 Data and Computer Communications Networks

Last time. BGP policy. Broadcast / multicast routing. Link virtualization. Spanning trees. Reverse path forwarding, pruning Tunneling

Router Design: Table Lookups and Packet Scheduling EECS 122: Lecture 13

Router Architectures

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Router Construction. Workstation-Based. Switching Hardware Design Goals throughput (depends on traffic model) scalability (a function of n) Outline

Topic 4a Router Operation and Scheduling. Ch4: Network Layer: The Data Plane. Computer Networking: A Top Down Approach

Network Layer: outline

Topics for Today. Network Layer. Readings. Introduction Addressing Address Resolution. Sections 5.1,

Network Layer Enhancements

Chapter 4: network layer

Chapter 4 Network Layer: The Data Plane

Introduction. Introduction. Router Architectures. Introduction. Recent advances in routing architecture including

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

CSCE 463/612 Networks and Distributed Processing Spring 2018

Network Layer Introduction

Chapter 4 Network Layer

TDTS06: computer Networks

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

Routing, Routers, Switching Fabrics

HW3 and Quiz. P14, P24, P26, P27, P28, P31, P37, P43, P46, P55, due at 3:00pm with both soft and hard copies, 11/11/2013 (Monday) TCP), 20 mins

internet technologies and standards

Introduction. Router Architectures. Introduction. Introduction. Recent advances in routing architecture including

Internetworking Part 1

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Router Architecture Overview

Chapter 4: Network Layer

Switching Hardware. Spring 2015 CS 438 Staff, University of Illinois 1

Lecture 16: Router Design

The router architecture consists of two major components: Routing Engine. 100-Mbps link. Packet Forwarding Engine

Professor Yashar Ganjali Department of Computer Science University of Toronto.

Chapter 4 Network Layer: The Data Plane

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Computer Networks LECTURE 10 ICMP, SNMP, Inside a Router, Link Layer Protocols. Assignments INTERNET CONTROL MESSAGE PROTOCOL

The IP Data Plane: Packets and Routers

Packet Switch Architectures Part 2

Lecture 7. Network Layer. Network Layer 1-1

Master Course Computer Networks IN2097

Network Performance: Queuing

Master Course Computer Networks IN2097

COMP211 Chapter 4 Network Layer: The Data Plane

Network Performance: Queuing

Last Lecture: Network Layer

Internet Multicast Routing

Network layer overview

Chapter 4 Network Layer

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

IV. PACKET SWITCH ARCHITECTURES

Announcements. Network Performance: Queuing. Goals of Today s Lecture. Window Scaling. Window Scaling, con t. Window Scaling, con t

Lecture 17: Router Design

Scaling routers: Where do we go from here?

Lecture 8. Network Layer (cont d) Network Layer 1-1

Chapter 4 Network Layer

BROADBAND AND HIGH SPEED NETWORKS

INF5050 Protocols and Routing in Internet (Friday ) Subject: IP-router architecture. Presented by Tor Skeie

CS 43: Computer Networks. 20: The Network Layer November 5, 2018

Multi-gigabit Switching and Routing

15-744: Computer Networking. Routers

NETWORK LAYER DATA PLANE

Network Layer: Data Plane 4-2

Lecture 16: Network Layer Overview, Internet Protocol

Cell Switching (ATM) Commonly transmitted over SONET other physical layers possible. Variable vs Fixed-Length Packets

Chapter 4 Network Layer

Data Communications & Networks. Session 7 Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

Lecture 5: Router Architecture. CS 598: Advanced Internetworking Matthew Caesar February 8, 2011

Introduction to Routers and LAN Switches

Chapter 4 Network Layer

Lecture 6: Bridges and Switches. CS/ECE 438: Communication Networks Prof. Matthew Caesar February 19, 2010

internet technologies and standards

Network Layer: Router Architecture, IP Addressing

CS 268: Computer Networking

Switch and Router Design. Packet Processing Examples. Packet Processing Examples. Packet Processing Rate 12/14/2011

Chapter 4 Network Layer: The Data Plane

Router Router Microprocessor controlled traffic direction home router DSL modem Computer Enterprise routers Core routers

Switching / Forwarding

The Network Layer. Antonio Carzaniga. April 22, Faculty of Informatics University of Lugano Antonio Carzaniga

ECE 697J Advanced Topics in Computer Networks

Transcription:

Input Port Functions Routers: Forwarding EECS 22: Lecture 3 epartment of Electrical Engineering and Computer Sciences University of California Berkeley Physical layer: bit-level reception ata link layer: e.g., Ethernet ecentralized switching: given datagram dest., lookup output port using forwarding table in input port memory goal: complete input port processing at line speed queuing: if datagrams arrive faster than forwarding rate into switch fabric February 23, 2006 EECS22 Lecture 2 (AKP) 4 Router Architecture Overview Output Ports Two key router functions: run routing algorithms/protocol (RIP, OSPF, BGP) forwarding datagrams from incoming to outgoing link Interconnection fabric February 23, 2006 EECS22 Lecture 2 (AKP) 2 February 23, 2006 EECS22 Lecture 2 (AKP) 5 Today: Focus on Forwarding atagrams Input Ports Output Ports Interconnection Forwarding Process atagrams: Lookups (Virtual Circuit next lecture) Examples of Routers Queuing Functions management: decide when and which packet to drop Scheduler: decide when and which packet to transmit 2 2 2 Scheduler February 23, 2006 EECS22 Lecture 2 (AKP) 3 February 23, 2006 EECS22 Lecture 2 (AKP) 6

Output Queued Router Only s Advantage Easy to design algorithms: only one congestion point Input Queues Only s Advantages Easy to build Simple algorithms February 23, 2006 EECS22 Lecture 2 (AKP) 7 February 23, 2006 EECS22 Lecture 2 (AKP) 0 Output Queued Routers Input Queues: Head-of-line Blocking The packet at the head of an input queue cannot be transferred, thus blocking the following packets Input Input 2 Input 3 Cannot be transferred because of HOL blocking Output Output 2 Output 3 Cannot be transferred because of output contention Wastes router capacity February 23, 2006 EECS22 Lecture 2 (AKP) 8 February 23, 2006 EECS22 Lecture 2 (AKP) Output Queued Router Only s Advantage Easy to design algorithms: only one congestion point isadvantage Requires a speedup of a factor of N, where N is the number of interfaces not feasible for large N Input Queues Only s Advantages Easy to build Simple algorithms isadvantages HOL Blocking Need a speedup that eliminates HOL but does not create output queues About 2 suffices February 23, 2006 EECS22 Lecture 2 (AKP) 9 February 23, 2006 EECS22 Lecture 2 (AKP) 2 2

Advanced Queuing Functions Shared Based s Packet classification: map each packet to a predefined class use to implement more sophisticated services (e.g., QoS) Flow: a subset of packets between any two endpoints in the network Shared Backplane Route Classifier class class 2 Scheduler 2 class n management Typically < 0.5Gbps aggregate capacity Limited by rate of shared memory February 23, 2006 EECS22 Lecture 2 (AKP) 3 February 23, 2006 EECS22 Lecture 2 (AKP) 6 Three types of switching fabrics Switched s Switched Backplane Local Routing Local Typically < 50Gbps aggregate capacity February 23, 2006 EECS22 Lecture 2 (AKP) 4 February 23, 2006 EECS22 Lecture 2 (AKP) 7 Shared Bus s Switched s Typically < 5Gb/s aggregate capacity Limited by shared bus Gbps bus, Cisco 900: sufficient speed for access and enterprise routers (not regional or backbone) Cache Route Cache Cache Overcome bus bandwidth limitations Banyan networks, other interconnection nets initially developed to connect processors in multiprocessor Advanced design: fragmenting datagram into fixed length cells, switch cells through the fabric. Cisco 2000: switches Gbps through the interconnection network February 23, 2006 EECS22 Lecture 2 (AKP) 5 February 23, 2006 EECS22 Lecture 2 (AKP) 8 3

Example: Crossbar Switches Why have multiple rounds? Basic Idea N 2 switching points not scalable Engineering Idea It is very unlikely that more than L packets will want to go to the same output port simultaneously How many switching points can we save for fixed L? Example: N=8, L=4 After one round, there are four winners and four losers Why not just pick the winners and drop the losers? February 23, 2006 EECS22 Lecture 2 (AKP) 9 February 23, 2006 EECS22 Lecture 2 (AKP) 22 The Knockout Concentrator Example Goal: If there are greater than L packets that want to go to the same destination, pick L in a fair manner. Organize the switching elements as if they are implementing a multi-round tournament A game consists of two players and the winner is selected at random (at a switching element) The winner moves on to the next round, while the loser plays a consolation rank The top L players are selected. Inputs = delay elements to insure all packets exit at same time Stopping after the first round would mean that two packets are dropped even though all four Should be delivered February 23, 2006 EECS22 Lecture 2 (AKP) 20 2 3 4 Outputs February 23, 2006 EECS22 Lecture 2 (AKP) 23 Knockout Switch Concentrator Inputs 2 3 4 Outputs What is the complexity? How many 2X2 elements for fixed L? = delay elements to insure all packets exit at same time The Forwarding ecision Process atagram Routing: Each packet is independently forwarded at each router Must look up IP address ranges Virtual Circuit Routing: call setup, teardown for each call before data can flow each packet carries VC identifier (not destination host address) every router on source-dest path maintains state for each passing connection link, router resources (bandwidth, buffers) may be allocated to VC (dedicated resources = predictable service) February 23, 2006 EECS22 Lecture 2 (AKP) 2 February 23, 2006 EECS22 Lecture 2 (AKP) 24 4

atagram Route Lookup Longest Prefix Match Not easy to do at line speeds! It is useful to think of the search process as a traversal of a special kind of labeled tree called a Trie LPM in IP Routers Binary tries a b c d e 0 f g h j i Example Prefixes a) 0000 b) 0000 c) 000 d) 00 e) 00 f) 0 g) 00 h) 00 i) 00 j) 0000 Nick Mckeown February 23, 2006 EECS22 Lecture 2 (AKP) 25 February 23, 2006 EECS22 Lecture 2 (AKP) 28 Trees and Tries Binary Search Tree < > < > < > N entries log 2 N Binary Search Trie 0 0 0 00 LPM in IP Routers Patricia trie a b c d e 0 f g h i j Skip 5 000 Example Prefixes a) 0000 b) 0000 c) 000 d) 00 e) 00 f) 0 g) 00 h) 00 i) 00 j) 0000 Nick Mckeown Nick Mckeown February 23, 2006 EECS22 Lecture 2 (AKP) 26 February 23, 2006 EECS22 Lecture 2 (AKP) 29 Simple Tries and LPM The routing table entry is a variable length prefix E.g. 0 0000 00000000 for 28.23.9.0/26 A balanced tree won t work Variable number of steps required Router Performance Goal: To work at line speed epends on interfaces Throughput is difficult to quantify epends on traffic flow Traffic flow is hard to model Packets per second hard to quantify IP packets are of variable size Routers at different parts of the network have different characteristics February 23, 2006 EECS22 Lecture 2 (AKP) 27 February 23, 2006 EECS22 Lecture 2 (AKP) 30 5

Why we Need Faster Routers : To prevent routers from being the bottleneck Spec95Int results 0000 000 00 0 0, Packet processing Power 2x / 8 months 985 990 995 2000 Source: SPEC95Int & avid Miller, Stanford. Link Speed 2x / 7 months 985 990 995 2000 TM WM February 23, 2006 EECS22 Lecture 2 (AKP) 3 0000 000 00 0 0, Fiber Capacity (Gbit/s) Examples: Cisco 7600 MAN-WAN Router Up to 28 Gbps with Crossbar 0Mbps 0Gbps LAN s Various WAN s Many QoS features and interfaces February 23, 2006 EECS22 Lecture 2 (AKP) 34 Why we Need Faster Routers 2: To reduce cost, power & complexity of ata Centers POP with large routers POP with smaller routers Examples: Cisco cat 6500 From LAN to Access 48 to 576 0/00 Ethernet s 0 GigEth, OC-3, OC-2, OC-48, ATM QoS, Security Load Balancing; VPN Up to 28Gbps (with crossbar) L4-7 Switching IP Telephony (E, T, inline-power Ethernet) SNMP, RMON OC-n: Optical carrier n = 5.84Mbs Ports: Price >$00k, Power > 400W. It is common for 50-60% of ports to be for interconnection. February 23, 2006 EECS22 Lecture 2 (AKP) 32 February 23, 2006 EECS22 Lecture 2 (AKP) 35 Example: Wide Area Routers Cisco GSR 246 Juniper M60 9 Both Have 9 Crossbar s Capacity: 60Gb/s Power: 4.2kW Capacity: 80Gb/s Power: 2.6kW 6ft 3ft 2ft 2.5ft February 23, 2006 EECS22 Lecture 2 (AKP) 33 6