Chapter 4: Network Layer

Similar documents
Network layer. Two Key Network-Layer Functions. Datagram Forwarding table. IP datagram format. IP Addressing: introduction

Chapter 4: Network Layer. TDTS06 Computer networks. Chapter 4: Network Layer. Network layer. Two Key Network-Layer Functions

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Assignments. Computer Networks LECTURE 7 Network Layer: Routing and Addressing. Network Layer Function. Internet Architecture

CS 3516: Advanced Computer Networks

CS 3516: Advanced Computer Networks

Flooding. Routing: Outlook. Flooding Algorithms. Spanning Tree. Flooding

Computer Networking. Rou1ng Algorithms. Rou1ng Algorithms. Interplay between rou1ng, forwarding. routing algorithm

Chapter 4: Network Layer

Chapter 5 Network Layer

Step N' D(v),p(v) D(w),p(w) D(x),p(x) D(y),p(y) D(z),p(z) 0 u 7,u 3,u 5,u. N (uw) update D(v), D(x), D(y), D(z)

Internet Technology. 08. Routing. Paul Krzyzanowski. Rutgers University. Spring CS Paul Krzyzanowski

Interplay between routing, forwarding

Routing Algorithm Classification. A Link-State Routing Algorithm

Network Layer: Routing

Initialization: Loop until all nodes in N

Computer Networks. Instructor: Niklas Carlsson

Chapter IV: Network Layer

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

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

Interplay tra routing e forwarding

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

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

An Extended Fault-Tolerant Link-State Routing Protocol in the Internet

Network Layer: Control Plane 5-2

Chapter 4: Network Layer: Part II

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

DATA COMMUNICATOIN NETWORKING

CSC 4900 Computer Networks: Routing Algorithms

Chapter 4 Network Layer. Network Layer 4-1

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

Chapter 4: Network Layer, partb

Graph abstraction: costs. Graph abstraction 10/26/2018. Interplay between routing and forwarding

EE 122: Intra-domain routing

CSC 401 Data and Computer Communications Networks

Chapter 4 Network Layer

11/13/2017 Network Layer (SSL) Network-layer functions. Recall the two network-layer functions:

Summary Chapter 4. Smith College, CSC 249 March 2, q IP Addressing. q DHCP dynamic addressing

Internet Technology 3/21/2016

Announcements. CS 5565 Network Architecture and Protocols. Count-To-Infinity. Poisoned Reverse. Distance Vector: Link Cost Changes.

Network layer: Overview. Network layer functions Routing IP Forwarding

Chapter 4 Network Layer

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

Net Ne w t ork y La e y r Net Ne w t ork y La e y r Initial motivation: Net Ne w t ork y La e y r Net Ne w t ork y La e y r Net Ne w t ork

4.5 Routing Algorithms

Chapter 4 Network Layer

CMPE 80N: Introduction to Networking and the Internet. Katia Obraczka Computer Engineering UCSC Baskin Engineering Lecture 20

Network layer. Network Layer 4-1. application transport network data link physical. network data link physical. network data link physical

Lecture 5 The Network Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

Chapter 5: Network Layer Control Plane. understand principles behind network control plane : traditional routing algorithms

Protocoles et Interconnexions

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

Mobility Control and Its Applications in Mobile Ad Hoc Networks

Ethernet Basics Learning Switches. based on Chapter 4 of CompTIA Network+ Exam Guide, 4 th ed., Mike Meyers

CS 557 Lecture IX. Drexel University Dept. of Computer Science

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

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

Redes de Computadores. Shortest Paths in Networks

CSCD 330 Network Programming Spring 2018

CSCD 330 Network Programming Spring 2017

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

Chapter 4: Network Layer

CSc 450/550 Computer Networks Internet Routing

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Mobility Control and Its Applications in Mobile Ad Hoc Networks

Chapter 4 Network Layer

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

Chapter 5 Network Layer: The Control Plane

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

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Lecture 4. The Network Layer (cont d)

CSC 8560 Computer Networks: Control Plane

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network Layer. Chapter goals:

CSCE 463/612 Networks and Distributed Processing Spring 2017

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

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

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

ECE250: Algorithms and Data Structures Single Source Shortest Paths Dijkstra s Algorithm

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

Chapter 4: Network Layer

4.5.2 The Distance-Vector (DV) Routing Algorithm

Computer Networking Introduction

COMP/ELEC 429/556 Introduction to Computer Networks

End-to-end path: route

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

Chapter 4: outline. Network Layer 4-1

Routing Algorithms : Fundamentals of Computer Networks Bill Nace

Chapter 4: Network Layer

On Plane Constrained Bounded-Degree Spanners

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

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Object Pose from a Single Image

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

Dynamic Routing. The Protocols

Routing Algorithms. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Course on Computer Communication and Networks. Lecture 7 Network Layer, Chapter 4 (6/e) - Part B (7/e Ch5)

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services:

Transcription:

Chapter 4: Introdction (forarding and roting) Reie of qeeing theor Roting algorithms Link state, Distance Vector Roter design and operation IP: Internet Protocol IP4 (datagram format, addressing, ICMP, NAT) Ip6 Roting in the Internet Atonomos Sstems Roting protocols (RIP, OSPF, BGP) Interpla beteen roting, forarding roting algorithm local forarding table header ale otpt link 000 00 0 00 ale in arriing packet s header 0

Roting Algorithm classification Static or dnamic? Static: rotes change slol oer time manal configration Dnamic: rotes change more qickl periodic pdates in response to link cost changes Global or decentralied information? Global: all roters hae complete topolog, link cost info link state algorithms Decentralied: roter knos phsicallconnected neighbors, link costs to neighbors iteratie process of comptation, echange of info ith neighbors distance ector algorithms Graph abstraction Graph: G = (N,E) N = set of roters = {,,,,, } E = set of links ={ (,), (,), (,), (,), (,), (,), (,), (,), (,) } Remark: Real netork roting algorithms tpicall se DIRECTED graphs.

Graph abstraction: costs c(, ) = cost of link (, ) - e.g., c(,) = cost cold be (hop cont) inersel related to bandidth, inersel related to congestion, cont of packets in qee, some combination of aboe Cost of path (,,,, p ) = c(, ) + c(, ) + + c( p-, p ) Qestion: What s the least-cost path beteen and? Roting algorithm: algorithm that finds least-cost path from sorce to destination. Principle of Optimalit If node B lies on an optimal path from node A to node C, then an optimal path from node B to node C also lies along the same path. Wh does this propert hold?

Principal of Optimalit The reslt is that the set of optimal rotes from all sorces to a gien destination form sink tree rooted a the destination. In general, is the sink tree niqe? A Link-State Roting Algorithm Dijkstra s algorithm In-memor graph of netork netork topolog, link costs knon to all nodes accomplished b flooding link state adertisements all nodes hae same info comptes least cost paths from one node (sorce) to all other nodes gies forarding table for that node iteratie: after k iterations, kno least cost path to k destinations Notation: c(,): link cost from node to ; = if not direct neighbors D(): crrent ale of cost of path from sorce to dest. p(): predecessor node along path from sorce to M: set of nodes hose least cost path definitiel knon 4

Basic Idea Find the shortest paths from a gien sorce node to all other nodes Proceeds in stages bild the sink tree one branch at a time. B the kth stage, the shortest paths to the k nodes closest to the sorce hae been determined (and added to set M) At (k + )st stage, that node not alread in M that has the shortest path from the sorce is added to M As nodes are added to M, their path from the sorce is defined. Dijsktra s Algorithm Initialiation: M= {} for all nodes 4 if adjacent to then D() = c(,) 6 else D() = 7 8 Loop 9 find not in M sch that D() is a minimm 0 add to M pdate D() for all adjacent to and not in M : D() = min( D(), D() + c(,) ) /* ne cost to is either old cost to or knon 4 shortest path cost to pls cost from to */ ntil all nodes in M

Dijkstra s algorithm: eample Step M D(V)p() D(W)p() D()p() D(Y)p() D(Z)p() Dijkstra s algorithm: reslt Reslting shortest-path tree from : Reslting forarding table in : destination link (,) (,) (,) (,) (,) 6

Bellman-Ford Algorithm Proceeds in stages. Find the shortest paths from a gien sorce sbject to the constraint that the paths contain at most one link Net, find all that contain to links....and so on. Bellman-Ford Variables: c(,) = link cost h = ma nmber of links in path at crrent stage D h () = cost of least-cost path from sorce to node nder the constraint of no more than h links 7

Algorithm Let s be the sorce node Initialie D 0 (n) = for all n s For each sccessie h > 0, D h+ (n) = min j [D h (j) + c(j,n)] When does the algorithm halt? Bellman-Ford Eample Sorce = h D h () D h () D h () D h () D h () 8

Comparison Both Dijkstra s algorithm and the Bellman- Ford algorithm conerge to shortest path soltions nder static conditions. Compleit? Sitabilit for distribted implementation? Distance Vector Protocol D () = estimate of least cost from to Node knos cost to each neighbor : c(,) Node maintains distance ector D = [D (): є N ] Node also maintains its neighbors distance ectors For each neighbor, maintains D = [D (): є N ] 9

Distance Vector Protocol Bellman-Ford Eqation Define D () := cost of least-cost path from sorce to Then D () = min {c(,) + D () } here min is taken oer all neighbors of Distance ector protocol Basic idea: From time to time, each node sends its on distance ector estimate to neighbors Asnchronos When a node receies ne DV estimate from neighbor, it pdates its on DV sing B-F eqation: D () min {c(,) + D ()} for each node N Under normal conditions, the estimates D () conerge to the actal least cost d () 0

Distance Vector Algorithm Iteratie, asnchronos: each local iteration cased b: local link cost change DV pdate message from neighbor Distribted: each node notifies neighbors onl hen its DV changes neighbors then notif their neighbors if necessar Each node: ait for (change in local link cost or msg from neighbor) recompte estimates if DV to an dest has changed, notif neighbors Distance Vector Eample

Comparison of LS and DV algorithms Message compleit LS: ith n nodes, E links, O(nE) msgs sent DV: echange beteen neighbors onl conergence time aries Speed of Conergence LS: O(n ) algorithm reqires O(nE) msgs ma hae oscillations DV: conergence time aries roting loops possible cont-to-infinit problem Robstness: hat happens if roter malfnctions? LS: node can adertise incorrect link cost each node comptes onl its on table DV: DV node can adertise incorrect path cost each node s table sed b others error propagates throgh netork DV Cont to Infinit So in this eample, the Bellman-Ford algorithm ill conerge for each roter, the ill hae entries for each other. B ill kno that it can get to C at a cost of, and A ill kno that it can get to C ia B at a cost of. Sorce: https://.geeksforgeeks.org/compter-netork-rote-poisoningconting-infinit-problem/

DV Cont to Infinit (cont) If the link beteen B and C is disconnected, then B ill kno that it can no longer get to C ia that link and ill remoe it from it s table. Before it can send an pdates it s possible that it ill receie an pdate from A hich ill be adertising that it can get to C at a cost of. B can get to A at a cost of, so it ill pdate a rote to C ia A at a cost of. A ill then receie pdates from B later and pdate its cost to 4. The ill then go on feeding each other bad information toard infinit.