Routing Link-State, Distance-Vector CS168 Section 2.

Slides:



Advertisements
Similar presentations
Data Communication and Networks Lecture 11 Internet Routing Algorithms and Protocols December 5, 2002 Joseph Conron Computer Science Department New York.
Advertisements

Distance-Vector and Path-Vector Routing Sections , 4.3.2, COS 461: Computer Networks Spring 2011 Mike Freedman
Routing - I Important concepts: link state based routing, distance vector based routing.
Network Layer-11 CSE401N: Computer Networks Lecture-9 Network Layer & Routing.
1 Dijkstra’s Shortest Path Algorithm Gordon College.
Introduction to Networking Bin Lin TA March 3 rd, 2005 Recital 6.
Dijkstra’s Algorithm Notation:  c(x,y): link cost from node x to y; = ∞ if not direct neighbors  D(v): current value of cost of path from source to dest.
Distance-Vector Routing COS 461: Computer Networks Spring 2010 (MW 3:00-4:20 in COS 105) Michael Freedman
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m routing (path selection) m dealing with.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Link State and Distance Vector Routing Computer Science Division Department of Electrical.
Network Layer4-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 2 nd edition. Jim Kurose, Keith Ross Addison-Wesley,
Announcement r Project 2 extended to 2/20 midnight r Project 3 available this weekend r Homework 3 available today, will put it online.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer (Routing) Shivkumar.
1 EE 122: Shortest Path Routing Ion Stoica TAs: Junda Liu, DK Moon, David Zats (Materials with thanks to Vern.
CSE 461: Distance Vector Routing. Next Topic  Focus  How do we calculate routes for packets?  Routing is a network layer function  Routing Algorithms.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
4: Network Layer4a-1 14: Intro to Routing Algorithms Last Modified: 7/12/ :17:44 AM.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.5 Routing algorithms m Link state m Distance.
Announcement r Project 2 due next week! r Homework 3 available soon, will put it online r Recitation tomorrow on Minet and project 2.
EE 122: Intra-domain routing Ion Stoica September 30, 2002 (* this presentation is based on the on-line slides of J. Kurose & K. Rose)
Routing Algorithm March 3 rd, Routing Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links  link cost:
4: Network Layer 4a-1 14: Intro to Routing Algorithms Last Modified: 8/8/ :41:16 PM.
CS 4700 / CS 5700 Network Fundamentals Lecture 9: Intra Domain Routing Revised 7/30/13.
Network Layer Goals: understand principles behind network layer services: –routing (path selection) –dealing with scale –how a router works –advanced topics:
Intra-Domain Routing D.Anderson, CMU Intra-Domain Routing RIP (Routing Information Protocol) & OSPF (Open Shortest Path First)
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
Link-state routing  each node knows network topology and cost of each link  quasi-centralized: each router periodically broadcasts costs of attached.
IP routing. Simple Routing Table svr 4% netstat –r n Routing tables DestinationGatewayFlagsRefcntUseInterface UGH00emd UH10lo0.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
13 – Routing Algorithms Network Layer.
The Network Layer & Routing
1 Week 5 Lecture 2 IP Layer. 2 Network layer functions transport packet from sending to receiving hosts transport packet from sending to receiving hosts.
1 Even More Routing EE122 Fall 2012 Scott Shenker Materials with thanks to Jennifer Rexford, Ion Stoica, Vern Paxson.
Routing 2 CS457 Fall 2010.
1 More Routing EE122 Fall 2012 Scott Shenker Materials with thanks to Jennifer Rexford, Ion Stoica, Vern Paxson and.
Overview of Internet Routing (I) Fall 2004 CS644 Advanced Topics in Networking Sue B. Moon Division of Computer Science Dept. of EECS KAIST.
Routing 1 Network Layer Network Layer goals:  understand principles behind network layer services:  routing (path selection)  how a router works  instantiation.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 20 Omar Meqdadi Department of Computer Science and Software Engineering University.
Internet Routing r Routing algorithms m Link state m Distance Vector m Hierarchical routing r Routing protocols m RIP m OSPF m BGP.
4: Network Layer4a-1 Distance Vector Routing Algorithm iterative: r continues until no nodes exchange info. r self-terminating: no “signal” to stop asynchronous:
Network Layer (2). Review Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations.
4: Network Layer4-1 Chapter 4: Network Layer Last time: r Chapter Goals m Understand network layer principles and Internet implementation r Started routing.
R OUTING P ROTOCOLS 1. P LAN Aug 16 – Routing (CCNA2) Aug 23 – LAB Aug 30- Transport L. Sep 6– Application L. Sep 13 – Presentation Sep 20 – Packet Tracer.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 10: Intra-domain routing Slides used with.
IP tutorial - #2 Routing KAIST Dept. of CS NC Lab.
Routing algorithms. D(v): the cost from the source node to destination that has currently the least cost. p(v): previous node along current least.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CPSC 335 Data Communication.
Chapter 7 Dynamic Routing
CS 457 – Lecture 12 Routing Spring 2012.
Routing: Distance Vector Algorithm
Chapter 5 Network Layer.
Network layer functions
Chapter 4 – The Network Layer & Routing
Road Map I. Introduction II. IP Protocols III. Transport Layer
Lecture 10 Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CS3516: These slides are generated from.
CS 4700 / CS 5700 Network Fundamentals
E : Internet Routing Lecture 5 Fundamentals of Routing Protocols
CS 3700 Networks and Distributed Systems
Dijkstra’s Algorithm Data structures: Notation: Path
CS4470 Computer Networking Protocols
Network Control Jennifer Rexford
CS 3700 Networks and Distributed Systems
COMP/ELEC 429 Introduction to Computer Networks
Routing Flooding, Link-State EE122 Section 4.
Network Layer (contd.) Routing
EE 122: Intra-domain routing: Distance Vector
Chapter 4: Network Layer
EE 122: Intra-domain routing: Link State
Presentation transcript:

Routing Link-State, Distance-Vector CS168 Section 2

First off, where are we? Application Transport Network Datalink Physical Mostly still here

Link-State Routing Every node has global knowledge of the entire topology and does local route computation using Djikstra’s Algorithm.

Djikstra’s Algorithm 1 Initialization: 2 S = {A}; 3 for all nodes v 4 if v adjacent to A 5 then D(v) = c(A,v); 6 else D(v) = ; 7 8 Loop 9 find w not in S such that D(w) is a minimum; 10 add w to S; 11 update D(v) for all v adjacent to w and not in S: 12 if D(w) + c(w,v) < D(v) then // w gives us a shorter path to v than we’ve found so far 13 D(v) = D(w) + c(w,v); p(v) = w; 14 until all nodes in S; c(i,j): link cost from node i to j D(v): current cost source  v p(v): v’s predecessor along path from source to v S: set of nodes whose least cost path definitively known Link-State Routing

Dest i ACDE S Node B A∞A∞ D∞D∞ B0B0 E∞E∞ C∞C∞ S: set of nodes whose least cost path definitively known

Link-State Routing Dest i ACDE 1 (2, B)∞∞(5, B) S BA Node B A2A2 D∞D∞ B0B0 E∞E∞ C∞C∞ S: set of nodes whose least cost path definitively known

Link-State Routing Dest i ACDE 1 (2, B)∞∞(5, B) 2 (2, B)(3, A)(9, A)(5, B) 3 4 S BA BAC Node B A2A2 D∞D∞ B0B0 E∞E∞ C3C S: set of nodes whose least cost path definitively known

Link-State Routing Dest i ACDE 1 (2, B)∞∞(5, B) 2 (2, B)(3, A)(9, A)(5, B) 3 (2, B)(3, A)(5, C)(5, B) 4 S BA BAC BACD Node B A2A2 D5D5 B0B0 E∞E∞ C3C S: set of nodes whose least cost path definitively known

Link-State Routing Dest i ACDE 1 (2, B)∞∞(5, B) 2 (2, B)(3, A)(9, A)(5, B) 3 (2, B)(3, A)(5, C)(5, B) 4 (2, B)(3, A)(5, C)(5, B) S BA BAC BACD BACDE Node B A2A2 D5D5 B0B0 E5E5 C3C S: set of nodes whose least cost path definitively known

Distance-Vector Routing A D B E C B: 2 C: 1 D: 7 A:2 E: 5 B: 5 D: 3 A: 7 C: 2 E: 3 A: 1 D: Every node has local knowledge about its neighbors and does global route computation using Bellman- Ford’s Algorithm.

Distance-Vector Routing A D B E C A:1 D:2 To From ABCD A0, A2, A1, A7, A B-0-- C--0- D---0 Node A Node D To From ABCD A0, A2, A1, A3, C B-0-- C1-02 D---0 To From ACDE A0--- C-0-- D7, D2, D0, D3, D E---0 To From ACDE A0--- C102- D3, C2, D0, D3, D E---0 NbrCost A0 B2 C1 D7 NbrCost A7 C2 D0 E3

Distance-Vector Routing A D B E C B:2 C:1 D:3 Node B Node C Node D To From ABE A0-- B2, B0, B5, B E--0 To From ABCDE A0213- B2, B0, B3, A5, A5, B E----0 To From ACD A0-- C1, C0, C2, C D- -0 To From ABCD A0213 C1, C3, A0, C2, C D-- -0 To From ACDE A0--- C102- D3, C2, D0, D3, D E---0 To From ABCDE A0213- C1-02- D3, C9, A2, D0, D3, D E---0 NbrCost A2 B0 E5 NbrCost A1 C0 D2 NbrCost A7 C2 D0 E3

Distance-Vector Routing A D B E C A:3 B:9 C:2 E:3 Node A Node C Node E To From ABCD A0, A2, A1, A3, C B-0-- C1-02 D---0 To From ABCDE A0, A2, A1, A3, C10, D B-0--- C1-02- D39203 To From ABCD A0213 C1, C3, A0, C2, C D-- -0 To From ABCDE A0213- C1, C3, A0, C2, C 5, D D To From BDE B0-- D-0- E5, E3, E0, E To From ABCDE B-0--- D39203 E 6, D 5, E 5, D 3, E0, E NbrCost A0 B2 C1 D7 NbrCost A1 C0 D2 NbrCost B5 D3 E0

Count­To­Infinity Problem

CAB 1 1 -> ∞ Node A Node B Node C Time …… To From ABC A 0, A 1, A 2, B B101 To From ABC A012 B 1, B 0, B 1, B C210 To From ABC B101 C 2, B 1, C 0, C To From ABC B3, C0, B1, B C210 To From ABC B301 C4, B1, C0, C To From ABC B5, C0, B1, B C410 NbrCost A0 B1 NbrCost A1 B0 C1 NbrCost A∞ B0 C1 NbrCost B1 C0 NbrCost B1 C0

Poison Reverse CAB 1 1 -> ∞ Node A Node B Node C Time To From ABC A 0, A 1, A 2, B B101 To From ABC B101 C 2, B 1, C 0, C To From ABC B∞0, B1, B C∞10 To From ABC B∞01 C∞1, C0, C NbrCost A0 B1 NbrCost A1 B0 C1 NbrCost A∞ B0 C1 NbrCost B1 C0 NbrCost B1 C0 To From ABC A01∞ B 1, B 0, B 1, B C∞10 To From ABC B∞0, B1, B C∞10