IP Forwarding Computer Networking. Graph Model. Routes from Node A. Lecture 11: Intra-Domain Routing

Similar documents
IP Forwarding Computer Networking. Routes from Node A. Graph Model. Lecture 10: Intra-Domain Routing

Third Generation Routers

Computer Networking. Intra-Domain Routing. RIP (Routing Information Protocol) & OSPF (Open Shortest Path First)

2/16/2008. Outline Computer Networking Lecture 11 Routing. Sending Link States by Flooding. Link State Protocol Concept

Review: Routing in Packet Networks Shortest Path Algorithms: Dijkstra s & Bellman-Ford. Routing: Issues

What is Routing? EE 122: Shortest Path Routing. Example. Internet Routing. Ion Stoica TAs: Junda Liu, DK Moon, David Zats

EE 122: Intra-domain routing

COMP 3331/9331: Computer Networks and Applications

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

Distance-Vector Routing: Distributed B-F (cont.)

Routers & Routing : Computer Networking. Binary Search on Ranges. Speeding up Prefix Match - Alternatives

CS 43: Computer Networks. 23: Routing Algorithms November 14, 2018

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

CSCE 463/612 Networks and Distributed Processing Spring 2018

COMP/ELEC 429/556 Introduction to Computer Networks

CS118 Discussion Week 7. Taqi

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

ECE 158A: Lecture 5. Fall 2015

More on Network Routing and Internet Protocol

Routing Algorithm Classification. A Link-State Routing Algorithm

06/02/ Local & Metropolitan Area Networks. Overview. Routing algorithm ACOE322. Lecture 6 Routing

CSC 4900 Computer Networks: Routing Algorithms

Routing in a network

Distance vector and RIP

Chapter 4: Network Layer, partb

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE! 1. Link state flooding topology information finding the shortest paths (Dijkstra)

CS4450. Computer Networks: Architecture and Protocols. Lecture 11 Rou+ng: Deep Dive. Spring 2018 Rachit Agarwal

Chapter 4: Network Layer

CSE/EE 461 Distance Vector Routing

Network service model. Network service model. Network Layer (part 1) Virtual circuits. By the end of this lecture, you should be able to.

Network Layer: Routing

Routing Algorithms : Fundamentals of Computer Networks Bill Nace

Let s focus on clarifying questions. More Routing. Logic Refresher. Warning. Short Summary of Course. 10 Years from Now.

4/25/12. The Problem: Distributed Methods for Finding Paths in Networks Spring 2012 Lecture #20. Forwarding. Shortest Path Routing

CSCD 330 Network Programming Spring 2018

Routing. 9: Intro to Routing Algorithms. Routing. Roadmap. Routing Algorithm classification: Static or Dynamic?

C13b: Routing Problem and Algorithms

CSCD 330 Network Programming Spring 2017

Initialization: Loop until all nodes in N

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst

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

CEN445 Network Protocols and Algorithms. Chapter 2. Routing Algorithms. Dr. Ridha Ouni

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

EECS 122, Lecture 16. Link Costs and Metrics. Traffic-Sensitive Metrics. Traffic-Sensitive Metrics. Static Cost Metrics.

WAN Technology and Routing

CS 457 Networking and the Internet. What is Routing. Forwarding versus Routing 9/27/16. Fall 2016 Indrajit Ray. A famous quotation from RFC 791

Advanced Computer Networks

Intra-domain Routing

RIP Configuration. RIP Overview. Operation of RIP. Introduction. RIP routing table. RIP timers

Chapter 4 Network Layer. Network Layer 4-1

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

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

Shortest Paths Algorithms and the Internet: The Distributed Bellman Ford Lecturer: Prof. Chiara Petrioli

Lecture 4. The Network Layer (cont d)

Basic Idea. Routing. Example. Routing by the Network

Routing by the Network

CSC 401 Data and Computer Communications Networks

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

cs/ee 143 Communication Networks

COM-208: Computer Networks - Homework 6

COMP 631: NETWORKED & DISTRIBUTED SYSTEMS 9/6/16 COMP 631: NETWORKED & DISTRIBUTED SYSTEMS. Internet Routing. Jasleen Kaur.

Distance Vector Routing Protocols

Routing Unicast routing protocols

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Chapter 5 Network Layer: The Control Plane

Routing Outline. EECS 122, Lecture 15

DATA COMMUNICATOIN NETWORKING

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

Distance Vector: Link Cost Changes. Interdomain Routing. Distance Vector: Count to Infinity Problem. Distance Vector: Poisoned Reverse

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

Overview 4.2: Routing

Chapter 4: Network Layer

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture

Distance Vector Routing

SEMESTER 2 Chapter 4 Distance Vector Routing Protocols V 4.0 RIP, IGRP, EIGRP

Chapter 4: Network Layer

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

CS BGP v4. Fall 2014

Agenda. distance-vector (what you invented last Friday) hierarchical routing routing in the Internet. v DNS assignment Q&A v Routing Algorithms

TDC 363 Introduction to LANs

The Problem: Finding Paths Spring 2011 Lecture #19. Forwarding. Shortest Path Routing

Page # All You Need to Know in 1 Slide. Review Network Fundamentals. A More Conventional Overview. IP Addressing. Jeff Pang

Lecture 13: Routing in multihop wireless networks. Mythili Vutukuru CS 653 Spring 2014 March 3, Monday

CS321: Computer Networks Unicast Routing

Link-State Routing OSPF

Computer Networks. Routing Algorithms

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Routing. Jens A Andersson Communication Systems

Redes de Computadores. Shortest Paths in Networks

Announcement. Project 2 extended to 2/20 midnight Project 3 available this weekend Homework 3 available today, will put it online

Network Layer: Routing

Routing Protocols. Autonomous System (AS)

Routing. 4. Mar INF-3190: Switching and Routing

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

Communication Networks

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

Discussion 8: Link State Routing. CSE 123: Computer Networks Marti Motoyama & Chris Kanich

Lecture 9. Reminder: Homework 3, Programming Project 2 due today. Questions? Thursday, September 22 CS 475 Networks - Lecture 9 1

Internet Routing : Fundamentals of Computer Networks Bill Nace

Routing, Routing Algorithms & Protocols

Transcription:

IP Forwarding 5-44 omputer Networking Lecture : Intra-omain Routing RIP (Routing Information Protocol) & OSPF (Open Shortest Path First) The Story So Far IP addresses are structured to reflect Internet structure IP packet headers carry these addresses When Packet rrives at Router Examine header to determine intended destination Look up in table to determine next hop in path Send packet out appropriate port This/next lecture How to generate the forwarding table Router" 2 Graph Model Routes from Node Represent each router as node irect link between routers represented by edge Symmetric links undirected graph Edge cost c(x,y) denotes measure of difficulty of using link delay, $ cost, or congestion level Task etermine least cost path from every node to every other node Path cost d(x,y) = sum of link costs Forwarding Table for est ost Next Hop 0 4 6 E 7 E 2 E F 5 E Properties Some set of shortest paths forms tree Shortest path spanning tree Solution not unique E.g., -E-F-- also has cost 7 3 4

Ways to ompute Shortest Paths Outline entralized ollect graph structure in one place Use standard graph algorithm isseminate routing tables Link-state Every node collects complete graph structure Each computes shortest paths from it Each generates own routing table istance-vector No one has copy of graph Nodes construct their own tables iteratively Each sends information about its table to neighbors istance Vector Link State Routing Hierarchy 5 6 istance-vector Method istance-vector Update Initial Table for est ost Next Hop 0 4 E 2 E F 6 F Idea t any time, have cost/next hop of best known path to destination Use cost when no path known Initially Only have entries for directly connected nodes 7 c(x,z)! x! z! d(z,y)! d(x,y)! Update(x,y,z) d c(x,z) + d(z,y) # ost of path from x to y with first hop z if d < d(x,y) # Found better path return d,z # Updated cost / next hop else return d(x,y), nexthop(x,y) # Existing cost / next hop y! 8 2

lgorithm Start ellman-ford algorithm Repeat For every node x For every neighbor z For every destination y d(x,y) Update(x,y,z) Until converge Optimum -hop paths! Table for Table for 0 4 4 0 3 E 2 E E F 6 F F F Table for Table for Table for E Table for F 2 6 3 0 0 E E E 0 E E 3 E F F F F 3 F F 0 F 9 0 Iteration # Iteration #2 Optimum 2-hop paths! Optimum 3-hop paths! Table for Table for Table for Table for 0 4 7 F 7 E 2 E F 5 E 4 0 2 F 3 E 4 F F F 0 4 6 E 7 E 2 E F 5 E 4 0 2 F 3 E 4 F F F Table for Table for Table for E Table for F Table for Table for Table for E Table for F 7 F 7 2 5 6 F 7 2 5 2 F 3 4 F 2 F 3 4 F 0 4 F 0 4 F 0 2 0 5 F 2 E 4 F E E 0 E E 3 E E 4 F E 5 E 0 E E 3 E F F F 2 F 3 F F 0 F F F F 2 F 3 F F 0 F 2 3

istance Vector: Link ost hanges istance Vector: Link ost hanges Link cost changes: Node detects local link cost change Updates distance table If cost change in least cost path, notify neighbors 4 X Y 50 Z Link cost changes: Good news travels fast ad news travels slow - count to infinity problem! 60 4 X Y 50 Z good news travels fast algorithm terminates algorithm continues on! 3 4 istance Vector: Split Horizon istance Vector: Poison Reverse If Z routes through Y to get to X : Z does not advertise its route to X back to Y??? 60 4 X Y Z 50 algorithm terminates If Z routes through Y to get to X : Z tells Y its (Z s) distance to X is infinite (so Y won t route to X via Z) Immediate notification of unreachability, rather than split horizon timeout waiting for advertisement Will this completely solve count to infinity problem? 60 4 X Y Z 50 algorithm terminates 5 6 4

Poison Reverse Failures Routing Information Protocol (RIP) Table for 7 F Table for Table for 3 Forced! Update! Table for 9 Table for 8 Forced! Update! etter! Route! Table for 4 Forced! Update! Forced! Update!!!! Table for 9 Forced! Update! Table for 5 Table for F Table for F Iterations don t converge ount to infinity Solution Make infinity smaller What is upper bound on maximum path length? 7 Earliest IP routing protocol (982 S) urrent standard is version 2 (RF 723) Features Every link has cost Infinity = 6 Limits to networks where everything reachable within 5 hops Sending Updates Every router listens for updates on UP port 520 RIP message can contain entries for up to 25 table entries 8 RIP Updates Initial When router first starts, asks for copy of table for every neighbor Uses it to iteratively generate own table Periodic Every 30 seconds, router sends copy of its table to each neighbor Neighbors use it to iteratively update their tables Triggered When every entry changes, send copy of entry to neighbors Except for one causing update (split horizon rule) Neighbors use it to update their tables RIP Staleness / Oscillation ontrol Small Infinity ount to infinity doesn t take very long See huck Norris isn t the only one that can count to infinity (twice!) J (http://www.count-to-infinity.com/) Route Timer Every route has timeout limit of 80 seconds Reached when haven t received update from next hop for 6 periods If not updated, set to infinity Soft-state refresh à important concept! ehavior When router or link fails, can take minutes to stabilize 9 20 5

Outline Link State Protocol oncept istance Vector Link State Routing Hierarchy Every node gets complete copy of graph Every node floods network with data about its outgoing links Every node computes routes to every other node Using single-source, shortest-path algorithm Process performed whenever needed When connections die / reappear 2 22 Sending Link States by Flooding ijkstra s lgorithm X Wants to Send Information Sends on all outgoing links X (a) X (b) Given Graph with source node s and edge costs c(u,v) etermine least cost path from s to every node v Shortest Path First lgorithm When Node Y Receives Information from Z Send on all links other than Z X (c) X (d) Traverse graph in order of least cost from source 23 24 6

ijkstra s lgorithm: oncept ijkstra s lgorithm: Initially Horizon! Node Sets one lready have least cost path to it Horizon: Reachable in hop from node in one Unseen: annot reach directly from node in one one! 5! Label d(v) = path cost from s to v Path Keep track of last link in path Unseen! urrent Path osts! 25 No nodes done Source in horizon one! Horizon!! urrent Path osts! Unseen! 26 ijkstra s lgorithm: Initially one!! d(v) to node shown in red Only consider links from done nodes Horizon! Unseen! urrent Path osts! 27 ijkstra s lgorithm one! 5! Select node v in horizon with minimum d(v) dd link used to add node to shortest path tree Update d(v) information Horizon! Unseen! urrent Path osts! 28 7

ijkstra s lgorithm ijkstra s lgorithm one! Horizon! 5! urrent Path osts! Unseen! one! Horizon! Unseen! urrent Path osts! Repeat Update d(v) values an cause addition of new nodes to horizon 29 30 ijkstra s lgorithm Link State haracteristics Final tree shown in green 5! With consistent LSs*, all nodes compute consistent loop-free paths an still have transient loops * Link State ata ase X 3 5 2 Packet from à may loop around if knows about failure and & do not 3 32 8

OSPF Routing Protocol OSPF Reliable Flooding Open Open standard created by IETF Shortest-path first nother name for ijkstra s algorithm More prevalent than RIP Transmit link state advertisements Originating router Typically, minimum IP address for router Link I I of router at other end of link Metric ost of link Link-state age Incremented each second Packet expires when reaches 3600 Sequence number Incremented each time sending new link information 33 34 OSPF Flooding Operation Flooding Issues Node X Receives LS from Node Y With Sequence Number q Looks for entry with same origin/link I ases No entry present dd entry, propagate to all neighbors other than Y Entry present with sequence number p < q Update entry, propagate to all neighbors other than Y Entry present with sequence number p > q Send entry back to Y To tell Y that it has out-of-date information Entry present with sequence number p = q Ignore it When should it be performed Periodically When status of link changes etected by connected node What happens when router goes down & back up Sequence number reset to 0 Other routers may have entries with higher sequence numbers Router will send out LSs with number 0 Will get back LSs with last valid sequence number p Router sets sequence number to p+ & resends 35 36 9

doption of OSPF RIP viewed as outmoded Good when networks small and routers had limited memory & computational power OSPF dvantages Fast convergence when configuration changes 37 omparison of LS and V lgorithms Message complexity LS: with n nodes, E links, O(nE) messages V: exchange between neighbors only Speed of onvergence LS: Relatively fast omplex computation, but can forward before computation may have transient loops V: convergence time varies may have routing loops count-to-infinity problem faster with triggered updates Space requirements: LS maintains entire topology V maintains only neighbor state Robustness: router malfunctions LS: Node can advertise incorrect link cost Each node computes its own table V: Node can advertise incorrect path cost Each node s table used by others (error propagates) 38 Outline Routing Hierarchies istance Vector Link State Routing Hierarchy Flat routing doesn t scale Storage à Each node cannot be expected to store routes to every destination (or destination network) onvergence times increase ommunication à Total message count increases Key observation Need less information with increasing distance to destination Need lower diameters networks Solution: area hierarchy 39 40 0

reas ivide network into areas reas can have nested sub-areas Hierarchically address nodes in a network Sequentially number top-level areas Sub-areas of area are labeled relative to that area Nodes are numbered relative to the smallest containing area 4 Routing Hierarchy rea-order! Router! ackbone reas! Lower-level reas! Partition Network into reas Within area Each node has routes to every other node Outside area Each node has routes for other top-level areas only Inter-area packets are routed to nearest appropriate border router onstraint: no path between two sub-areas of an area can exit that area 42 rea Hierarchy ddressing Path Sub-optimality 2 an result in sub-optimal paths. 2. 2.2 2.2.2 2 2. 2.2.2..2.2.2 3 2.2...2.2. start end 2.2. 3 3.2. 3. 3.2 3 hop red path vs. 2 hop green path 3. 3.2 43 44

Next Lecture: GP How to connect together different ISPs 45 2