Chapter 5 Network Layer: The Control Plane

Similar documents
Chapter 4 Network Layer

Chapter 4: Network Layer, partb

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

CSC 4900 Computer Networks: Routing Algorithms

CSC 401 Data and Computer Communications Networks

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

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

DATA COMMUNICATOIN NETWORKING

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

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

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

CSCD 330 Network Programming Spring 2018

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

CSCD 330 Network Programming Spring 2017

Lecture 4. The Network Layer (cont d)

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

CSC 8560 Computer Networks: Control Plane

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

Chapter 4 Network Layer. Network Layer 4-1

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

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

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

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Interplay between routing, forwarding

Chapter 4: outline. Network Layer 4-1

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

Chapter IV: Network Layer

Computer Networking Introduction

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

Chapter 4: Network Layer

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

Chapter 5 Network Layer: The Control Plane

Module 3 Network Layer CS755! 3-1!

Network layer: Overview. Network layer functions Routing IP Forwarding

Network Layer: Routing

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

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

Chapter 4: Network Layer

Chapter 4 Network Layer

COMP211 Chapter 5 Network Layer: The Control Plane

Network layer: Overview. Network layer functions Routing IP Forwarding

CSC 4900 Computer Networks: Routing Protocols

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

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

Dynamic Routing. The Protocols

Department of Computer Science Southern Illinois University Carbondale

DATA COMMUNICATOIN NETWORKING

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

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

Network Layer: Control Plane 5-2

CSCE 463/612 Networks and Distributed Processing Spring 2017

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

Chapter 4: Network Layer

CSc 450/550 Computer Networks Internet Routing

Routing Algorithms : Fundamentals of Computer Networks Bill Nace

Routing. Outline. Algorithms Scalability

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

Network Layer. CMPS 4750/6750: Computer Networks

COMP 3331/9331: Computer Networks and Applications

Computer Networks. Instructor: Niklas Carlsson

Topics for This Week

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

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

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

Routing in the Internet

Chapter 4: Network Layer

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

The Internet network layer

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

Chapter 4: Network Layer: Part II

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

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

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

Interplay Between Routing, Forwarding

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

UNIT III THE NETWORK LAYER

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

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

Routing Algorithm Classification. A Link-State Routing Algorithm

Master Course Computer Networks IN2097

CS 3516: Advanced Computer Networks

EE 122: Intra-domain routing

Chapter 4 Network Layer

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

CSCI Topics: Internet Programming Fall 2008

Chapter 4: network layer

Chapter 4 Network Layer

Chapter 4 Network Layer

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

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

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

Lecture 19: Network Layer Routing in the Internet

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

NETWORK LAYER CONTROL PLANE

Chapter 4 Network Layer

Chapter 4: Network Layer

Transcription:

Chapter 5 Network Layer: The Control Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see the animations; and can add, modify, and delete slides (including this one) and slide content to suit your needs. They obviously represent a lot of work on our part. In return for use, we only ask the following: If you use these slides (e.g., in a class) that you mention their source (after all, we d like people to use our book!) If you post any slides on a www site, that you note that they are adapted from (or perhaps identical to) our slides, and note our copyright of this material. Thanks and enjoy! JFK/KWR All material copyright 1996-2016 J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down Approach 7 th Edition, Global Edition Jim Kurose, Keith Ross Pearson April 2016 5-1

Chapter 5: network layer control plane chapter goals: understand principles behind network control plane traditional routing algorithms SDN controlllers Internet Control Message Protocol network management and their instantiation, implementation in the Internet: OSPF, BGP, OpenFlow, ODL and ONOS controllers, ICMP, SNMP 5-2

Recall Layering: The Internet Network layer Host, router network layer functions: Transport layer: TCP, UDP Network layer Routing protocols path selection RIP, OSPF, BGP forwarding table IP protocol addressing conventions datagram format packet handling conventions ICMP protocol error reporting router signaling Link layer physical layer

Chapter 5: outline 5.1 introduction 5.2 routing protocols link state distance vector 5.3 intra-as routing in the Internet: OSPF 5.4 routing among the ISPs: BGP 5.5 The SDN control plane 5.6 ICMP: The Internet Control Message Protocol 5.7 Network management and SNMP 5-4

Network-layer functions Recall: two network-layer functions: forwarding: move packets from router s input to appropriate router output routing: determine route taken by packets from source to destination data plane control plane Two approaches to structuring network control plane: per-router control (traditional) logically centralized control (software defined networking) 5-5

Per-router control plane Individual routing algorithm components in each and every router interact with each other in control plane to compute forwarding tables Routing Algorithm control plane data plane 5-6

Logically centralized control plane A distinct (typically remote) controller interacts with local control agents (CAs) in routers to compute forwarding tables Remote Controller CA CA CA CA CA control plane data plane 5-7

Chapter 5: outline 5.1 introduction 5.2 routing protocols link state distance vector 5.3 intra-as routing in the Internet: OSPF 5.4 routing among the ISPs: BGP 5.5 The SDN control plane 5.6 ICMP: The Internet Control Message Protocol 5.7 Network management and SNMP 5-8

Recall Layering: The Internet Network layer Host, router network layer functions: Transport layer: TCP, UDP Network layer Routing protocols path selection RIP, OSPF, BGP forwarding table IP protocol addressing conventions datagram format packet handling conventions ICMP protocol error reporting router signaling Link layer physical layer Network Layer 4-9

Routing All routers must have a local forwarding table. Routers use different routing mechanisms to build and maintain the local forwarding table (routing table). Several routing mechanisms exist (directly connected, static, default and dynamic). mechanisms serve as local forwarding table input sources providing a router with network and subnet information necessary to build and maintain the local forwarding table tables are used by routers to determine the best path between source and destination when forwarding datagrams Network Layer 4-10

Routing Route tables include a list of all networks and subnets known to a router and the IP address of the next hop router used to reach that network or subnet When a router receives a datagram, the destination address is determined and then compared to each route within the local forwarding table until an exact or best route match is found. If an exact/best match is found within the local forwarding table, it sends the datagram out the local interface connected to the link leading to the next hop router (as dictated by the forwarding table entry). When the routers does not find a specific match within its route table, the default route (if one exists) is used or the datagram is discarded Network Layer 4-11

Recall: Interplay between routing and forwarding routing algorithm local forwarding table header value output link 0100 0101 0111 1001 3 2 2 1 Routing algorithm establishes optimal path within the network to reach estimation and updates (somehow) the local forwarding (routing) tables value in arriving packet s header 1001 0111 3 2 1 Network Layer 4-12

Routing mechanisms There are several routing mechanisms that may be used as input sources to assist a router in building its local forwarding table. Typically, routers use a combination of the following routing methods to build a router's local forwarding table: Directly connected interface Directly connected interfaces are routes that are local to the router (more later on LANs) Static Default Dynamic Network Layer 4-13

Routing mechanisms Static routes are routes to destination hosts or networks that an administrator has manually entered into the router's route table. Static routes define the IP address of the next hop router and local interface to use when forwarding traffic to a particular destination. Because this type of route has a static nature, it does not have the capability of adjusting to changes in the network. If the router or interface defined fails or becomes unavailable, the route to the destination fails. Network Layer 4-14

Routing mechanisms Default routes Every IP host needs to have a default route either manually configured or dynamically learned. Default routes provide end hosts a way out of their local subnet and routers with a router of last resort if no other route (specifically relating to the destination) exists in the routers route table. Dynamic Routing protocols fall into two categories, Interior and Exterior (more later). Network Layer 4-15

Routing Metrics and Costs Metrics are cost values used by routers to determine the best path to a destination network. Several factors help dynamic routing protocols decide which is the preferred or shortest path to a particular destination. These factors are known as metrics and algorithms. Metrics are the network variables used in deciding what path is preferred in terms of these metrics. For some routing protocols these metrics are static and may not be changed. For other routing protocols these values may be assigned by a network administrator. For others they may be dynamic The most common metric values are hop count, bandwidth, delay, reliability, load, and cost. Network Layer 4-16

Routing protocols Routing protocol goal: determine good paths (equivalently, routes), from sending hosts to receiving host, through network of routers path: sequence of routers packets will traverse in going from given initial source host to given final destination host good : least cost, fastest, least congested routing: a top-10 networking challenge! 5-17

Graph abstraction of the network 5 graph: G = (N,E) u 1 2 v x 2 3 1 3 w y 1 5 2 z 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) } aside: graph abstraction is useful in other network contexts, e.g., P2P, where N is set of peers and E is set of TCP connections 5-18

Graph abstraction: costs u 1 2 5 v x 2 3 1 3 w y 1 5 2 z c(x,x ) = cost of link (x,x ) e.g., c(w,z) = 5 cost could always be 1, or inversely related to bandwidth, or inversely related to congestion cost of path (x 1, x 2, x 3,, x p ) = c(x 1,x 2 ) + c(x 2,x 3 ) + + c(x p-1,x p ) key question: what is the least-cost path between u and z? routing algorithm: algorithm that finds that least cost path 5-19

Routing algorithm classification Q: global or decentralized information? global: all routers have complete topology, link cost info link state algorithms decentralized: router knows physicallyconnected neighbors, link costs to neighbors iterative process of computation, exchange of info with neighbors distance vector algorithms Q: static or dynamic? static: routes change slowly over time dynamic: routes change more quickly periodic update in response to link cost changes 5-20

Chapter 5: outline 5.1 introduction 5.2 routing protocols link state distance vector 5.3 intra-as routing in the Internet: OSPF 5.4 routing among the ISPs: BGP 5.5 The SDN control plane 5.6 ICMP: The Internet Control Message Protocol 5.7 Network management and SNMP 5-21

A link-state routing algorithm Dijkstra s algorithm net topology, link costs known to all nodes accomplished via link state broadcast all nodes have same info 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 dest. s 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. v p(v): predecessor node along path from source to v N': set of nodes whose least cost path definitively known 5-22

Dijsktra s algorithm 1 Initialization: 2 N' = {u} 3 for all nodes v 4 if v adjacent to u 5 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 10 add w to N' 11 update D(v) for all v adjacent to w and not in N' : 12 D(v) = min( D(v), D(w) + c(w,v) ) 13 /* new cost to v is either old cost to v or known 14 shortest path cost to w plus cost from w to v */ 15 until all nodes in N' 5-23

Dijkstra s algorithm: example Step 0 1 2 3 4 5 N' D(v) p(v) D(w) p(w) D(x) p(x) D(y) p(y) D(z) p(z) u 7,u 3,u 5,u uw 6,w 5,u 11,w uwx 6,w 11,w 14,x uwxv 10,v 14,x uwxvy 12,y uwxvyz x 9 notes: construct shortest path tree by tracing predecessor nodes ties can exist (can be broken arbitrarily) u 5 3 w 4 8 7 3 7 4 y 2 z v 5-24

Dijkstra s algorithm: another 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 5 u 1 2 v x 2 3 1 3 w y 1 5 2 z * Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive/ 5-25

Dijkstra s algorithm: example (2) resulting shortest-path tree from u: v w u z x y resulting forwarding table in u: destination v x y w z link (u,v) (u,x) (u,x) (u,x) (u,x) 5-26

Dijkstra s algorithm, discussion algorithm complexity: n nodes each iteration: need to check all nodes, w, not in N n(n+1)/2 comparisons: O(n 2 ) more efficient implementations possible: O(nlogn) oscillations possible: e.g., support link cost equals amount of carried traffic: 1 D A 1 1+e 0 0 0 e C initially e B 1 D A 2+e 0 0 1+e 1 C B given these costs, find new routing. resulting in new costs 0 D A 0 2+e 1 0 0 C 1+e B given these costs, find new routing. resulting in new costs D A 2+e 0 0 1+e 1 C B given these costs, find new routing. resulting in new costs 0 5-27

Chapter 5: outline 5.1 introduction 5.2 routing protocols link state distance vector 5.3 intra-as routing in the Internet: OSPF 5.4 routing among the ISPs: BGP 5.5 The SDN control plane 5.6 ICMP: The Internet Control Message Protocol 5.7 Network management and SNMP 5-28

Distance vector algorithm Bellman-Ford equation (dynamic programming) let d x (y) := cost of least-cost path from x to y then d x (y) = min {c(x,v) + d v (y) } v cost from neighbor v to destination y cost to neighbor v min taken over all neighbors v of x 5-29

Bellman-Ford example u 1 2 5 v x 2 3 1 3 w y 1 5 2 z clearly, d v (z) = 5, d x (z) = 3, d w (z) = 3 B-F equation says: d u (z) = min { c(u,v) + d v (z), c(u,x) + d x (z), c(u,w) + d w (z) } = min {2 + 5, 1 + 3, 5 + 3} = 4 node achieving minimum is next hop in shortest path, used in forwarding table 5-30

Distance vector algorithm D x (y) = estimate of least cost from x to y x maintains distance vector D x = [D x (y): y є N ] node x: knows cost to each neighbor v: c(x,v) maintains its neighbors distance vectors. For each neighbor v, x maintains D v = [D v (y): y є N ] 5-31

Distance vector algorithm key idea: from time-to-time, each node sends its own distance vector estimate to neighbors when x receives new DV estimate from neighbor, it updates its own DV using B-F equation: D x (y) min v {c(x,v) + D v (y)} for each node y N under minor, natural conditions, the estimate D x (y) converge to the actual least cost d x (y) 5-32

Distance vector algorithm iterative, asynchronous: each local iteration caused by: local link cost change DV update message from neighbor distributed: each node notifies neighbors only when its DV changes neighbors then notify their neighbors if necessary each node: wait for (change in local link cost or msg from neighbor) recompute estimates if DV to any dest has changed, notify neighbors 5-33

node x table from x y z cost to x y z 0 2 7 D x (y) = min{c(x,y) + D y (y), c(x,z) + D z (y)} = min{2+0, 7+1} = 2 from x y z x y z 0 cost to 2 3 2 0 1 7 1 0 D x (z) = min{c(x,y) + D y (z), c(x,z) + D z (z)} = min{2+1, 7+0} = 3 node y table from x y z cost to x y z 2 0 1 x 2 y 7 1 z node z table from cost to x y z x y z 7 1 0 time 5-34

node x table from x y z node y table from x y z cost to x y z 0 2 7 x y z 2 0 1 D x (y) = min{c(x,y) + D y (y), c(x,z) + D z (y)} = min{2+0, 7+1} = 2 cost to from from x y z x y z x y z 0 cost to 2 cost to 3 2 0 1 7 1 0 x y z 0 2 7 2 0 1 7 1 0 from from x y z x y z cost to x y z 0 2 3 2 0 1 3 1 0 cost to x y z 0 2 3 2 0 1 3 1 0 D x (z) = min{c(x,y) + D y (z), c(x,z) + D z (z)} = min{2+1, 7+0} = 3 x 2 y 7 1 z node z table from cost to x y z x y z 7 1 0 from x y z cost to x y z 0 2 7 2 0 1 3 1 0 from x y z cost to x y z 0 2 3 2 0 1 3 1 0 time 5-35

Distance vector: link cost changes link cost changes: node detects local link cost change updates routing info, recalculates distance vector if DV changes, notify neighbors x 1 4 y 50 1 z good news travels fast t 0 : y detects link-cost change, updates its DV, informs its neighbors. t 1 : z receives update from y, updates its table, computes new least cost to x, sends its neighbors its DV. t 2 : y receives z s update, updates its distance table. y s least costs do not change, so y does not send a message to z. * Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive/ 5-36

Distance vector: link cost changes link cost changes: node detects local link cost change bad news travels slow - count to infinity problem! 44 iterations before algorithm stabilizes: see text poisoned reverse: 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) will this completely solve count to infinity problem? 60 x 4 y 50 1 z 5-37

Comparison of LS and DV algorithms message complexity LS: with n nodes, E links, O(nE) msgs sent DV: exchange between neighbors only convergence time varies speed of convergence LS: O(n 2 ) algorithm requires O(nE) msgs may have oscillations DV: convergence time varies may be routing loops count-to-infinity problem robustness: what happens if router malfunctions? LS: node can advertise incorrect link cost each node computes only its own table DV: DV node can advertise incorrect path cost each node s table used by others error propagate thru network 5-38

Chapter 5: outline 5.1 introduction 5.2 routing protocols link state distance vector 5.3 intra-as routing in the Internet: RIP and OSPF 5.4 routing among the ISPs: BGP 5.5 The SDN control plane 5.6 ICMP: The Internet Control Message Protocol 5.7 Network management and SNMP 5-39

Intra-AS Routing also known as Interior Gateway Protocols (IGP) most common Intra-AS routing protocols: RIP: Routing Information Protocol OSPF: Open Shortest Path First IGRP: Interior Gateway Routing Protocol (Cisco proprietary) Network Layer 4-40

Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routing Network Layer 4-41

RIP ( Routing Information Protocol) distance vector (Bellman-Ford) algorithm included in BSD-UNIX Distribution in 1982 distance metric: # of hops (max = 15 hops) From router A to subsets: 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-42

RIP advertisements distance vectors: exchanged among neighbors every 30 sec via Response Message (also called advertisement) each advertisement: list of up to 25 destination nets within AS Network Layer 4-43

RIP: example w x y A D B z C routing table in router D destination subnet next router # hops to dest w A 2 y B 2 z B 7 x -- 1..... Network Layer 4-44

RIP: example A-to-D advertisement next hops dest w - 1 x - 1 z C 4.... w x y A D B z C routing table in router D destination subnet next router # hops to dest w A 2 y B 2 A z B 7 5 x -- 1..... Network Layer 4-45

RIP: Link Failure and Recovery 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) link failure info quickly (?) propagates to entire net poison reverse used to prevent ping-pong loops (infinite distance = 16 hops) Network Layer 4-46

RIP Table processing RIP routing tables managed by application-level process called route-d (daemon) advertisements sent in UDP packets, periodically repeated routed routed Transprt (UDP) Transprt (UDP) network (IP) forwarding table forwarding table network (IP) link link physical physical Network Layer 4-47

Making routing scalable our routing study thus far - idealized all routers identical network flat not true in practice scale: with billions of destinations: can t store all destinations in routing tables! routing table exchange would swamp links! administrative autonomy internet = network of networks each network admin may want to control routing in its own network 5-48

Internet approach to scalable routing aggregate routers into regions known as autonomous systems (AS) (a.k.a. domains ) intra-as routing routing among hosts, routers in same AS ( network ) all routers in AS must run same intra-domain protocol routers in different AS can run different intra-domain routing protocol gateway router: at edge of its own AS, has link(s) to router(s) in other AS es inter-as routing routing among AS es gateways perform interdomain routing (as well as intra-domain routing) 5-49

Interconnected ASes 3c 3a 3b AS3 1a 1c 1d 1b Intra-AS Routing algorithm AS1 Forwarding table Inter-AS Routing algorithm 2a 2c AS2 2b forwarding table configured by both intraand inter-as routing algorithm intra-as routing determine entries for destinations within AS inter-as & intra-as determine entries for external destinations 5-50

Inter-AS tasks suppose router in AS1 receives datagram destined outside of AS1: router should forward packet to gateway router, but which one? AS1 must: 1. learn which dests are reachable through AS2, which through AS3 2. propagate this reachability info to all routers in AS1 job of inter-as routing! 3c other networks 3b 3a AS3 1a AS1 1c 1d 1b 2a AS2 2c 2b other networks 5-51

Intra-AS Routing also known as interior gateway protocols (IGP) most common intra-as routing protocols: RIP: Routing Information Protocol OSPF: Open Shortest Path First (IS-IS protocol essentially same as OSPF) IGRP: Interior Gateway Routing Protocol (Cisco proprietary for decades, until 2016) 5-52

OSPF (Open Shortest Path First) open : publicly available uses link-state algorithm link state packet dissemination topology map at each node route computation using Dijkstra s algorithm router floods OSPF link-state advertisements to all other routers in entire AS carried in OSPF messages directly over IP (rather than TCP or UDP link state: for each attached link IS-IS routing protocol: nearly identical to OSPF 5-53

OSPF advanced features security: all OSPF messages authenticated (to prevent malicious intrusion) multiple same-cost paths allowed (only one path in RIP) for each link, multiple cost metrics for different TOS (e.g., satellite link cost set low for best effort ToS; high for real-time ToS) integrated uni- and multi-cast support: Multicast OSPF (MOSPF) uses same topology data base as OSPF hierarchical OSPF in large domains. 5-54

Hierarchical OSPF boundary router backbone router area border routers backbone area 3 area 1 area 2 internal routers 5-55

Hierarchical OSPF two-level hierarchy: local area, backbone. link-state advertisements only in area each nodes has detailed area topology; only know direction (shortest path) to nets in other areas. area border routers: summarize distances to nets in own area, advertise to other Area Border routers. backbone routers: run OSPF routing limited to backbone. boundary routers: connect to other AS es. 5-56