Topic. How to compute shortest paths in a distributed network. The Link-State (LS) approach. then compute. Flood! CSE 461 University of Washington 1

Similar documents
Network Layer (Routing)

Topic. How rou=ng protocols work with IP. The Host/Router dis=nc=on. I don t! I route. CSE 461 University of Washington 1

Network Layer (Routing)

Network Layer (Routing)

Operating Systems and Networks. Network Lecture 7: Network Layer 2. Adrian Perrig Network Security Group ETH Zürich

Network Layer (Routing)

Link State Routing & Inter-Domain Routing

Where we are in the Course

Chapter 22 Network Layer: Delivery, Forwarding, and Routing 22.1

Introduction to IP Routing. Geoff Huston

CMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala October 9, 2018 (a) October 18 October 9,

Module 8. Routing. Version 2 ECE, IIT Kharagpur

Routing. Advanced Computer Networks: Routing 1

Outline Computer Networking. Inter and Intra-Domain Routing. Internet s Area Hierarchy Routing hierarchy. Internet structure

Network Layer, Part 2 Routing. Terminology

Network Protocols. Routing. TDC375 Winter 2002 John Kristoff - DePaul University 1

CSE 461 Routing. Routing. Focus: Distance-vector and link-state Shortest path routing Key properties of schemes

Dynamic Routing. The Protocols

Why dynamic route? (1)

Network Protocols. Routing. TDC375 Autumn 03/04 John Kristoff - DePaul University 1

COM-208: Computer Networks - Homework 6

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Important Lessons From Last Lecture Computer Networking. Outline. Routing Review. Routing hierarchy. Internet structure. External BGP (E-BGP)

Internet Architecture and Experimentation

Routing Basics ISP/IXP Workshops

Routing in a network

Routing Basics ISP/IXP Workshops

Routing Basics. Routing Concepts. IPv4. IPv4 address format. A day in a life of a router. What does a router do? IPv4 Routing

Routing Concepts. IPv4 Routing Forwarding Some definitions Policy options Routing Protocols

Dynamics of Hot-Potato Routing in IP Networks

Network Layer: Routing

Lecture 19: Network Layer Routing in the Internet

Routing Protocols. Autonomous System (AS)

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

Module: Routing Security. Professor Patrick McDaniel Spring CMPSC443 - Introduction to Computer and Network Security

Chapter 7: Routing Dynamically. Routing & Switching

Lecture 4: Intradomain Routing. CS 598: Advanced Internetworking Matthew Caesar February 1, 2011

BGP and the Internet

Inter-AS routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley

CS BGP v4. Fall 2014

Routing Basics. Campus Network Design & Operations Workshop

CS 5114 Network Programming Languages Control Plane. Nate Foster Cornell University Spring 2013

CSCE 463/612 Networks and Distributed Processing Spring 2018

Lecture 4. The Network Layer (cont d)

CS 640: Introduction to Computer Networks. Intra-domain routing. Inter-domain Routing: Hierarchy. Aditya Akella

Routing Security* CSE598K/CSE545 - Advanced Network Security Prof. McDaniel - Spring * Thanks to Steve Bellovin for slide source material.

BTEC Level 3 Extended Diploma

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

CS321: Computer Networks Unicast Routing

Inter-domain Routing. Outline. Border Gateway Protocol

Basic Idea. Routing. Example. Routing by the Network

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

Routing in Internet. Problem. Given set of nodes, how do routers acquire info about neighbors to construct the routing tables?

Routing by the Network

Outline. Organization of the global Internet Example of domains Intradomain routing. Interdomain traffic engineering with BGP

CS4450. Computer Networks: Architecture and Protocols. Lecture 15 BGP. Spring 2018 Rachit Agarwal

Lecture 12: Link-state Routing. Lecture 12 Overview. Router Tasks. CSE 123: Computer Networks Chris Kanich. Routing overview

Internet Routing : Fundamentals of Computer Networks Bill Nace

CSCI Topics: Internet Programming Fall 2008

Routing Basics. ISP Workshops. Last updated 10 th December 2015

How does a router know where to send a packet next?

Planning for Information Network

Inter-Domain Routing: BGP

Routing Basics. ISP Workshops

CSc 450/550 Computer Networks Internet Routing

Redes de Computadores. Shortest Paths in Networks

Interdomain Routing Reading: Sections P&D 4.3.{3,4}

Small additions by Dr. Enis Karaarslan, Purdue - Aaron Jarvis (Network Engineer)

Module 14 Transit. Objective: To investigate methods for providing transit services. Prerequisites: Modules 12 and 13, and the Transit Presentation

Chapter 4: Advanced Internetworking. Networking CS 3470, Section 1

CS 457 Networking and the Internet. Shortest-Path Problem. Dijkstra s Shortest-Path Algorithm 9/29/16. Fall 2016

Introduction to OSPF

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

BGP Configuration for a Transit ISP

! Distance vector routing! Link state routing.! Path vector routing! BGP: Border Gateway Protocol! Route aggregation

Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load

Module 18 Transit. Objective: To investigate methods for providing transit services. Prerequisites: Modules 12 and 13, and the Transit Presentation

COMP211 Chapter 5 Network Layer: The Control Plane

Lecture 16: Interdomain Routing. CSE 123: Computer Networks Stefan Savage

CSCD 330 Network Programming Spring 2018

CSCD 330 Network Programming Spring 2017

Interdomain Routing Reading: Sections K&R EE122: Intro to Communication Networks Fall 2007 (WF 4:00-5:30 in Cory 277)

Routing(2) Inter-domain Routing

An overview of how packets are routed in the Internet

CSCD 433/533 Advanced Networks Spring 2016

TELE 301 Network Management

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Unit 3: Dynamic Routing

Link-State Routing OSPF

CSE 461 Interdomain routing. David Wetherall

Introduction to Computer Networks

Configuring Integrated IS-IS Protocol Shutdown Support Maintaining Configuration Parameters

Top-Down Network Design

Routing. Routing. Overview. Overview. Routing vs. Forwarding. Why Routing

CS 268: Computer Networking. Next Lecture: Interdomain Routing

Interdomain Routing. EE122 Fall 2012 Scott Shenker

Interdomain Routing. EE122 Fall 2011 Scott Shenker

Transcription:

Topic How to compute shortest paths in a distributed network The Link-State (LS) approach Flood! then compute CSE 461 University of Washington 1

Link-State RouKng One of two approaches to roukng Trades more computakon than distance vector for bemer dynamics Widely used in prackce Used in Internet/ARPANET from 1979 Modern networks use OSPF and IS-IS CSE 461 University of Washington 2

Link-State SeWng Nodes compute their forwarding table in the same distributed sewng as for distance vector: 1. Nodes know only the cost to their neighbors; not the topology 2. Nodes can talk only to their neighbors using messages 3. All nodes run the same algorithm concurrently 4. Nodes/links may fail, messages may be lost CSE 461 University of Washington 3

Link-State Algorithm Proceeds in two phases: 1. Nodes flood topology in the form of link state packets Each node learns full topology 2. Each node computes its own forwarding table By running Dijkstra (or equivalent) CSE 461 University of Washington 4

Phase 1: Topology DisseminaKon Each node floods link state packet (LSP) that describes their porkon of the topology Node E s LSP flooded to A, B, C, D, and F Seq. # A 10 B 4 C 1 D 2 F 2 G A 4 3 4 F 3 B H 2 10 4 2 3 C E 1 2 2 D CSE 461 University of Washington 5

Phase 2: Route ComputaKon Each node has full topology By combining all LSPs Each node simply runs Dijkstra Some replicated computakon, but finds required routes directly Compile forwarding table from sink/ source tree That s it folks! CSE 461 University of Washington 6

Forwarding Table CSE 461 University of Washington 7 To Next A C B C C C D D E -- F F G F H C A B C D E F G H 2 1 10 2 2 4 2 4 4 3 3 3 Source Tree for E (from Dijkstra) E s Forwarding Table

Handling Changes On change, flood updated LSPs, and re-compute routes E.g., nodes adjacent to failed link or node inikate B s LSP Seq. # A 4 C 2 E 4 F 3 G F s LSP Seq. # B 3 E 2 G Failure! G XXXX CSE 461 University of Washington 8 A 4 3 4 3 H F B 10 2 3 2 4 C E 1 2 2 D

Handling Changes (2) Link failure Both nodes nokce, send updated LSPs Link is removed from topology Node failure All neighbors nokce a link has failed Failed node can t update its own LSP But it is OK: all links to node removed CSE 461 University of Washington 9

Handling Changes (3) AddiKon of a link or node Add LSP of new node to topology Old LSPs are updated with new link AddiKons are the easy case CSE 461 University of Washington 10

Link-State ComplicaKons Things that can go wrong: Seq. number reaches max, or is corrupted Node crashes and loses seq. number Network parkkons then heals Strategy: Include age on LSPs and forget old informakon that is not refreshed Much of the complexity is due to handling corner cases (as usual!) CSE 461 University of Washington 11

DV/LS Comparison Goal Distance Vector Link-State Correctness Distributed Bellman-Ford Replicated Dijkstra Efficient paths Fair paths Approx. with shortest paths Approx. with shortest paths Approx. with shortest paths Approx. with shortest paths Fast convergence Slow many exchanges Fast flood and compute Scalability Excellent storage/compute Moderate storage/compute CSE 461 University of Washington 12

IS-IS and OSPF Protocols Widely used in large enterprise and ISP networks IS-IS = Intermediate System to Intermediate System OSPF = Open Shortest Path First Link-state protocol with many added features E.g., Areas for scalability CSE 461 University of Washington 13

Topic How to route with mulkple parkes, each with their own roukng policies This is Internet-wide BGP roukng ISP A DesKnaKon ISP B Source ISP C CSE 461 University of Washington 14

Structure of the Internet Networks (ISPs, CDNs, etc.) group hosts as IP prefixes Networks are richly interconnected, onen using IXPs Prefix C1 IXP CDN C Prefix E1 Net E IXP Prefix E2 Prefix B1 ISP B IXP IXP Net F Prefix F1 Prefix D1 CDN D ISP A Prefix A1 Prefix A2 CSE 461 University of Washington 15

Internet-wide RouKng Issues Two problems beyond roukng within an individual network 1. Scaling to very large networks Techniques of IP prefixes, hierarchy, prefix aggregakon 2. IncorporaKng policy decisions LeWng different parkes choose their routes to suit their own needs Yikes! CSE 461 University of Washington 16

Effects of Independent ParKes Each party selects routes to suit its own interests e.g, shortest path in ISP What path will be chosen for A2àB1 and B1àA2? What is the best path? ISP A Prefix A1 Prefix A2 ISP B Prefix B1 Prefix B2 CSE 461 University of Washington 17

Effects of Independent ParKes (2) Selected paths are longer than overall shortest path And symmetric too! This is a consequence of independent goals and decisions, not hierarchy ISP A Prefix A1 Prefix A2 ISP B Prefix B1 Prefix B2 CSE 461 University of Washington 18

RouKng Policies Capture the goals of different parkes could be anything E.g., Internet2 only carries non-commercial traffic Common policies we ll look at: ISPs give TRANSIT service to customers ISPs give PEER service to each other CSE 461 University of Washington 19

RouKng Policies Transit One party (customer) gets TRANSIT service from another party (ISP) ISP accepts traffic for customer from the rest of Internet ISP sends traffic from customer to the rest of Internet Customer pays ISP for the privilege ISP Customer 1 Customer 2 Rest of Internet Noncustomer CSE 461 University of Washington 20

RouKng Policies Peer Both party (ISPs in example) get PEER service from each other Each ISP accepts traffic from the other ISP only for their customers ISPs do not carry traffic to the rest of the Internet for each other ISPs don t pay each other ISP A Customer A1 Customer A2 ISP B Customer B1 Customer B2 CSE 461 University of Washington 21

RouKng with BGP (Border Gateway Protocol) BGP is the interdomain roukng protocol used in the Internet Path vector, a kind of distance vector Prefix B1 ISP B Prefix F1 via ISP B, Net F at IXP Net F IXP Prefix F1 ISP A Prefix A1 Prefix A2 CSE 461 University of Washington 22

RouKng with BGP (2) Different parkes like ISPs are called AS (Autonomous Systems) Border routers of ASes announce BGP routes to each other Route announcements contain an IP prefix, path vector, next hop Path vector is list of ASes on the way to the prefix; list is to find loops Route announcements move in the opposite direckon to traffic CSE 461 University of Washington 23

RouKng with BGP (3) Prefix CSE 461 University of Washington 24

RouKng with BGP (4) Policy is implemented in two ways: 1. Border routers of ISP announce paths only to other parkes who may use those paths Filter out paths others can t use 2. Border routers of ISP select the best path of the ones they hear in any, non-shortest way CSE 461 University of Washington 25

RouKng with BGP (5) TRANSIT: AS1 says [B, (AS1, AS3)], [C, (AS1, AS4)] to AS2 CSE 461 University of Washington 26

RouKng with BGP (6) CUSTOMER (other side of TRANSIT): AS2 says [A, (AS2)] to AS1 CSE 461 University of Washington 27

RouKng with BGP (7) PEER: AS2 says [A, (AS2)] to AS3, AS3 says [B, (AS3)] to AS2 CSE 461 University of Washington 28

RouKng with BGP (8) AS2 hears two routes to B (via AS1, AS3) and chooses AS3 (Free!) CSE 461 University of Washington 29

BGP Thoughts Much more beyond basics to explore! Policy is a substankal factor Can we even be independent decisions will be sensible overall? Other important factors: Convergence effects How well it scales IntegraKon with intradomain roukng And more CSE 461 University of Washington 30