Interplay tra routing e forwarding

Similar documents
Chapter 4: Network Layer

Interplay between routing, forwarding

Network Layer: Routing

Computer Networks. Instructor: Niklas Carlsson

Routing Algorithm Classification. A Link-State Routing Algorithm

CS 3516: Advanced Computer Networks

CS 3516: Advanced Computer Networks

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

Chapter IV: Network Layer

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

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

Network Layer: Control Plane 5-2

DATA COMMUNICATOIN NETWORKING

Chapter 4: Network Layer: Part II

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

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

Chapter 4 Network Layer. Network Layer 4-1

CSC 4900 Computer Networks: Routing Algorithms

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

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

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

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

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:

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

Redes de Computadores. Shortest Paths in Networks

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

Chapter 4 Network Layer

Chapter 4: Network Layer, partb

Network layer: Overview. Network layer functions Routing IP Forwarding

Chapter 4: Network Layer

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

CSCD 330 Network Programming Spring 2018

Protocoles et Interconnexions

CSCD 330 Network Programming Spring 2017

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

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

CSCE 463/612 Networks and Distributed Processing Spring 2017

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

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

Routing Algorithms : Fundamentals of Computer Networks Bill Nace

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

Chapter 4 Network Layer

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

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

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

Dynamic Routing. The Protocols

Chapter 4: Network Layer

Initialization: Loop until all nodes in N

CSC 8560 Computer Networks: Control Plane

COMP/ELEC 429/556 Introduction to Computer Networks

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

4.5.2 The Distance-Vector (DV) Routing Algorithm

EE 122: Intra-domain routing

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

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

EC441 Fall 2018 Introduction to Computer Networking Chapter 5: Network Layer Control Plane

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

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

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

Network layer: Overview. Network layer functions Routing IP Forwarding

Network layer functions. Chapter 4 Network Layer. Network layer functions. Network layer functions

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

Telecomunicazioni. Docente: Andrea Baiocchi. DIET - Stanza 107, 1 piano palazzina P. Piga Via Eudossiana 18

Lecture 4. The Network Layer (cont d)

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

Chapter 4: Network Layer

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

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

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer

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

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

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

Network Layer. CMPS 4750/6750: Computer Networks

CSc 450/550 Computer Networks Internet Routing

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

Link-State Routing OSPF

Link State Rou.ng Reading: Sec.ons 4.2 and 4.3.4

Module 3 Network Layer CS755! 3-1!

Δίκτυα Υπολογιστών ΙΙ. Κώστας Μαγκούτης Επίκουρος Καθηγητής Τμήμα Μηχανικών Η/Υ και Πληροφορικής Πανεπιστήμιο Ιωαννίνων

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Key Network-Layer Functions. Network layer.

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

COM-208: Computer Networks - Homework 6

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Routing Algorithms. 1 Administrivia. Tom Kelliher, CS 325. Apr. 25, Announcements. Assignment. Read 4.6. From Last Time. IP protocol.

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer. Two Key Network-Layer Functions

Internet Architecture. Network Layer Overview. Fundamental Network Layer Function. Protocol Layering and Data. Computer Networks 9/23/2009

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer. Two Key Network-Layer Functions

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

4.5 Routing Algorithms

Chapter 5 Network Layer: The Control Plane

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

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

Routing Protocols. The routers in an internet are responsible for receiving and. forwarding IP datagrams through the interconnected set of

Department of Computer Science Southern Illinois University Carbondale

Communication Networks

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

Transcription:

Interpla tra routing e forwarding routing algorithm local forwarding table header value output link 000 00 0 00 value in arriving packet s header 0 Network Laer 4-

Grafi Grafo: G = (N,E) u v w N = insieme di routers = { u, v, w,,, } E = insieme di links ={ (u,v), (u,), (v,), (v,w), (,w), (,), (w,), (w,), (,) } Nota: astraione utile anche in altri contesti Esempio: PP, dove N e l insieme di peers e E le connessioni TCP Network Laer 4-

Costi u v w c(, ) = costo del link ( - e.g., c(w,) = cost could alwas be, or inversel related to bandwid or inversel related to congestion Costo del cammino (,,,, p ) = c(, ) + c(, ) + + c( p-, p ) Question: qual e il cammino di costo minimo tra u and? Routing algorithm: algorithm that finds least-co Network Laer 4-

Classificaione dei Routing Algorithm Global or decentralied information? Global: all routers have complete topolog, link cost info link state algorithms Decentralied: router knows phsicall-connected neighbors, link costs to neighbors iterative process of computation, echange of info with neighbors distance vector algorithms Network Laer 4-4

A Link-State Routing Algorithm Dijkstra s algorithm net topolog, link costs known to all nodes accomplished via link state broadcast all nodes have same info computes least cost paths one node ( source ) to all other nodes gives forwarding table for that node iterative: after k iterations, know least cost path to k dest. s Notation: c(,): link cost node to ; = if not direct neighbors D(v): current value of cost of path source to dest. v p(v): predecessor node along path source to v N': set of nodes whose least cost path definitivel known Network Laer 4-

Dijsktra s Algorithm Initialiation: N' = {u} for all nodes v 4 if v adjacent to u then D(v) = c(u,v) 6 else D(v) = 7 8 Loop 9 find w not in N' such that D(w) is a minimum 0 add w to N' update D(v) for all v adjacent to w and not in N' : D(v) = min( D(v), D(w) + c(w,v) ) /* new cost to v is either old cost to v or known 4 shortest path cost to w plus cost w to v */ until all nodes in N' Network Laer 4-6

Network Laer 4-7 Dijkstra s algorithm: eample Step 0 4 N' u u u uv uvw uvw D(v),p(v),u,u,u D(w),p(w),u 4,,, D(),p(),u D(),p(), D(),p() 4, 4, 4, u w v

Dijkstra s algorithm: eample () Resulting shortest-path tree u: u v w Resulting forwarding table in u: destination link v w (u,v) (u,) (u,) (u,) (u,) Network Laer 4-8

Vettori Distana Bellman-Ford Equation Definiamo d () := cost of least-cost path to Allora d () = min {c(,v) + d v () } v dove min e' su tutti i vicini v of Network Laer 4-9

Bellman-Ford eample u v w E' chiaro che d v () =, d () =, d w () = L'equaione B-F dice: d u () = min {c(u,v) + d v (), c(u,) + d (),c(u,w) + d w ()} = min { +, +, + } = 4 Il nodo che ottiene il minimo e' il prossimo hop nella tabella di inoltro Network Laer 4-0

Vettori Distane D () = estimate of least cost to Distance vector: D = [D (): є N ] Node knows cost to each neighbor v: c(,v) Node maintains D = [D (): є N ] Node also maintains its neighbors distance vectors For each neighbor v, maintains D v = [D v (): є N ] Network Laer 4-

Distance vector algorithm (4) Basic idea: Each node periodicall sends its own distance vector estimate to neighbors When a node receives new DV estimate neighbor, it updates its own DV using B-F equation: D () min v {c(,v) + D v ()} for each node N Under minor, natural conditions, the estimate D () converge to the actual least cost d () Network Laer 4-

Distance Vector Algorithm () Iterative, asnchronous: each local iteration caused b: local link cost change DV update message neighbor Distributed: each node notifies neighbors onl when its DV changes neighbors then notif their neighbors if necessar Each node: wait for (change in local link cost of msg neighbor) recompute estimates if DV to an dest has changed, notif neighbors Network Laer 4-

D () = min{c(,) + D (), c(,) + D ()} = min{+0, 7+} = node table cost to cost to 0 7 node table cost to 0 node table cost to 7 0 0 0 7 0 cost to 0 7 0 7 0 cost to 0 7 0 0 D ()= min{c(,)+ D (), c(,) + D ()} = min{+,7+0} = cost to 0 0 0 cost to 0 0 0 cost to 0 0 0 time 7 Network Laer 4-4