Lecture 4. The Network Layer (cont d)

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

Chapter 4: Network Layer, partb

CSC 4900 Computer Networks: Routing Algorithms

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

Chapter 5 Network Layer: The Control Plane

Chapter 4 Network Layer

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

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

DATA COMMUNICATOIN NETWORKING

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

CSCE 463/612 Networks and Distributed Processing Spring 2018

CSCD 330 Network Programming Spring 2018

CSCD 330 Network Programming Spring 2017

Computer Networking Introduction

Chapter 4: outline. Network Layer 4-1

CSC 8560 Computer Networks: Control Plane

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

Network layer: Overview. Network layer functions Routing IP Forwarding

CSc 450/550 Computer Networks Internet Routing

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

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

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

Interplay Between Routing, Forwarding

Chapter IV: Network Layer

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

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

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

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

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

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

Module 3 Network Layer CS755! 3-1!

Routing. Outline. Algorithms Scalability

Chapter 4 Network Layer. Network Layer 4-1

Chapter 4 Network Layer

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

Network Layer: Routing

DATA COMMUNICATOIN NETWORKING

Dynamic Routing. The Protocols

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

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy

Network layer: Overview. Network layer functions Routing IP Forwarding

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 14, 2013

Routing in the Internet

Department of Computer Science Southern Illinois University Carbondale

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

CSCE 463/612 Networks and Distributed Processing Spring 2017

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

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

Routing. Jens A Andersson Communication Systems

CSC 4900 Computer Networks: Routing Protocols

Topics for This Week

Chapter 4: Network Layer

CSCI Topics: Internet Programming Fall 2008

Interplay between routing, forwarding

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

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

Master Course Computer Networks IN2097

CS321: Computer Networks Unicast Routing

Computer Networks. Instructor: Niklas Carlsson

Routing Unicast routing protocols

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

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

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

Network Layer: Routing. Routing. Routing protocol. Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links

Chapter 4: Network Layer. Chapter 4: Network Layer

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

Chapter 4 Network Layer

CMPT 371: Data Communications and Networking. Chapter 4: Network Layer

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

UNIT III THE NETWORK LAYER

Why dynamic route? (1)

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

Chapter 4 Network Layer

The Internet network layer

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

Chapter 4 Network Layer

Chapter 4 Network Layer

Master Course Computer Networks IN2097

Chapter 4 Network Layer. Chapter 4: Network Layer. Chapter 4: Network Layer. Chapter goals: understand principles behind network layer services:

Chapter 4: Network Layer

Chapter 4 Network Layer

Master Course Computer Networks IN2097

Chapter 4 Network Layer

CS118 Discussion Week 7. Taqi

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

Network Layer: Routing

COMPUTER NETWORKS CHAP 4 : NETWORK LAYER

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

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

Network Layer: Control Plane 5-2

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

Master Course Computer Networks IN2097

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

All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

EE 122: Intra-domain routing

Transcription:

Lecture 4 The Network Layer (cont d)

Agenda Routing Tables Unicast and Multicast Routing Protocols Routing Algorithms Link State and Distance Vector Routing Information and Open Shortest Path First Protocols Network Layer 4-2

Traffic at Current Internet Network Layer 4-3

Routing Tables A host or a router has a routing table with an entry for each destination, or a combination of destinations Routing tables: static (updated manually) or dynamic (updated automatically periodically) Routing methods Next-Hop Method vs. Route Method Network Layer 4-4

Routing Tables Routing methods Network-Specific Method vs. Host-Specific Method Network Layer 4-5

Interplay between Routing Algorithms and Forwarding Tables routing algorithm local forwarding table header value output link 0100 0101 0111 1001 3 2 2 1 the job of routing algorithm is to determine good paths from senders to receivers, through a network of routers Typically, a good path is one that has the least cost value in arriving packet s header 0111 3 2 1 Network Layer 4-6

Routing Protocols Routing protocols have been created in response to the demand for dynamic routing tables A routing protocol is a combination of rules and procedures that lets routers in the Internet inform each other of routing changes share whatever they know about the Internet or their neighborhood Unicast Routing Protocols Forwarding data packets from a source to a destination on a network Multicast Routing Protocols Forwarding data packets from a source to multiple destinations Network Layer 4-7

Intradomain and Interdomain Routing An autonomous system (AS) is a group of networks and routers under the authority of a single administration Routing inside an autonomous system is referred to as intradomain routing Routing between autonomous systems is referred to as interdomain routing Network Layer 4-8

Routing Protocols Network Layer 4-9

Routing Problem Formulation (Graph abstraction) Link cost Graph: G = (N,E) u 1 2 5 v 2 x 3 1 3 w y 1 5 2 z Link s cost may reflect: - Link s physical length - The link speed - The monetary cost associated with a link N = set of routers = { u, v, w, x, y, z } E = set of links ={ (u,v), (u,x), (v,x), (v,w), (x,w), (x,y), (w,y), (w,z), (y,z) } Network Layer 4-10

Graph abstraction: costs 5 u 1 2 v x 2 3 1 3 w y 1 5 2 z c(u,z) = cost of link (u,z) = cost of link (z,u) e.g., c(w,z) = c(z,w) = 5 Cost of path (u, v, x,, z) = c(u,v) + c(v,x) + + c(y,z) Routing algorithm: an algorithm that finds least-cost path Question: What s the least-cost (or shortest) path between u and z? Note: a shortest routing path is a source-destination path with the smallest number of links or hops Network Layer 4-11

Routing Algorithm Classification Global or Decentralized Information Global: all routers have complete topology, link cost info e.g. link state algorithms Decentralized: router knows physicallyconnected neighbors, link costs to neighbors iterative process of computation, exchange of info with neighbors e.g. distance vector algorithms Static or Dynamic Static: routes change slowly over time Dynamic: Suitable for proactive routing protocols. (What about ad hoc networks with routing type?) Updates might not be required routes change more quickly periodic update in response to link cost changes suitable for reactive routing 4-12

A Link-State Routing Algorithm net topology and link costs known to all nodes (global info.) accomplished via link state broadcast all nodes have same info Example: Open short path first (OSPF) routing protocol uses link-state routing algorithm such as Dijkstra s algorithm Dijkstra s algorithm computes least cost paths from one node ( source ) to all other nodes gives forwarding table for that node iterative: after k iterations, know least cost path to k destinations Algorithm complexity: n nodes n(n-1)/2 comparisons: O(n 2 ) polynomial complexity more efficient implementations possible: O(nlog(n)) Network Layer 4-13

Network Layer 4-14 Dijkstra s algorithm: example Step 0 1 2 3 4 5 N' u ux uxy uxyv uxyvw uxyvwz D(v),p(v) 2,u 2,u 2,u D(w),p(w) 5,u 4,x 3,y 3,y D(x),p(x) 1,u D(y),p(y) 2,x D(z),p(z) 4,y 4,y 4,y u y x w v z 2 2 1 3 1 1 2 5 3 5

Distance Vector Algorithm Iterative, asynchronous, and distributed algorithm Distributed: node receives some information from one or more of its directly attached neighbors (decentralized information) Iterative: route discovery process continues on until no more information is exchanged between neighbors Asynchronous: does not require all of the nodes to operate in lockstep with each other From time-to-time, each node sends its own distance vector estimate to neighbors (e.g., may be at having link cost updates) Bellman-Ford algorithm in Routing Information protocol (RIP) Define d x (y) := cost of least-cost path from x to y Then: d x (y) = min {c(x,v) + d v (y) } v where min is taken over all neighbors v of x

Comparison of Link State (LS) and Distance Vector (DV) Algorithms Message complexity LS: with n nodes, E links, O(nE) messages sent DV: exchange between neighbors only convergence time varies Speed of Convergence LS: O(n 2 ) algorithm requires O(nE) messages may have oscillations DV: convergence time varies may be routing loops count-to-infinity problem (e.g., Bellman Ford algorithm does not prevent routing loops) Robustness: what happens if router malfunctions? LS: DV: node can advertise incorrect link cost each node computes only its own table DV node can advertise incorrect path cost each node s table used by others error propagate through network Network Layer 4-16

RIP ( Routing Information Protocol) Distance vector algorithm included in Berkeley Software Distribution (BSD)- UNIX Distribution in 1982 distance metric: # of hops (max = 15 hops) From router A to subnets: z u A C B D v y w x destination hops u 1 v 2 w 2 x 3 y 3 z 2 Network Layer 4-17

RIP advertisements distance vectors: exchanged among neighbors every 30 sec via RIP Response Message (also called advertisement) each advertisement: contains a list of up to 25 destination subnets within AS as well as the sender s distance to each of those subnets If no advertisement heard after 180 sec --> neighbor/link declared dead routes via neighbor invalidated new advertisements sent to neighbors neighbors in turn send out new advertisements (if tables changed) Network Layer 4-18

RIP: Example z w x y A D B C Routing/Forwarding Table in Router D Destination Network Next Router Num. of hops to dest. w A 2 y B 2 z B 7 x -- 1..... Network Layer 4-19

RIP: Example Dest Next hops w - 1 x - 1 z C 4.... Advertisement from A to D w x y A D B z C Routing/Forwarding table in router D Destination Network Next Router Num. of hops to dest. w A 2 y B 2 z B A 7 5 x -- 1..... Network Layer 4-20

OSPF (Open Shortest Path First) Link State algorithm LS packet dissemination (router floods routing information to all routers) topology map at each node route computation using Dijkstra s algorithm router broadcasts link state information whenever there is a change in a link s state (also broadcasts a link s state periodically) typically deployed in upper-tier ISPs while RIP deployed in lower-tier ISPs and enterprise networks OSPF advertisement carries one entry per neighbor router advertisements disseminated to entire AS (via flooding) carried in OSPF messages directly over IP Network Layer 4-21

OSPF advanced features (not in RIP) Security all OSPF messages authenticated (to prevent malicious intrusion) Using authentication algorithms Multiple same-cost paths multiple same-cost paths allowed (only one path in RIP) Integrated support for unicast and multicast routing Multicast OSPF (MOSPF) uses the existing OSPF link database and adds a new type of link-state advertisement to the existing OSPF link-state broadcast mechanism Support for hierarchy within a single routing domain An OSPF autonomous system can be configured hierarchically into areas Network Layer 4-22

Internet Inter-AS routing: BGP BGP (Border Gateway Protocol) BGP provides each AS means to: 1. Obtain subnet reachability information from neighboring ASs. 2. Propagate reachability information to all ASinternal routers. 3. Determine good routes to subnets based on reachability information and policy. BGP allows subnet to advertise its existence to rest of Internet: I am here Network Layer 4-23

BGP basics pairs of routers (BGP peers) exchange routing info over semi-permanent TCP connections: BGP sessions exterior BGP session interior BGP session 3c 3a 3b AS3 1a AS1 1c 1d 1b 2a 2c AS2 2b Network Layer 4-24

Broadcast Routing deliver packets from source to all other nodes source duplication is inefficient duplicate R1 duplicate creation/transmission R1 R2 R2 duplicate R3 R4 R3 R4 source duplication in-network duplication Network Layer 4-25

In-network duplication flooding: when node receives broadcast packet, sends copy to all neighbors (redundant packets and heavy traffic) Solutions controlled flooding: node only broadcasts packet if it hasn t sent same packet before spanning tree no redundant packets received by any node each node sends unicast join message to center node Network Layer 4-26

Multicast Routing Goal: find a tree (or trees) connecting routers having local multicast group members tree: not all paths between routers used source-based: different tree from each sender to receivers shared-tree: same tree used by all group members Shared tree Source-based trees

Lecture Summary Covered material The Network Layer (cont d) Routing Tables Unicast and Multicast Routing Protocols Routing Algorithms Link State and Distance Vector Routing Information and Open Shortest Path First Protocols Material to be covered next lecture Introduction to the Transport Layer Network Layer 4-28