Routing Primer Advanced Computer Networks. Routing Outline  Overview of Point-to-Point Routing (WAN)  Routing Algorithm Classification  Distance Vector.

Slides:



Advertisements
Similar presentations
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
Advertisements

Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 22 Omar Meqdadi Department of Computer Science and Software Engineering University.
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.
What is “Routing”? Routing algorithm that part of the network layer responsible for deciding on which output line to transmit an incoming packet Adaptive.
What is “Routing”? Routing algorithm that part of the network layer responsible for deciding on which output line to transmit an incoming packet Adaptive.
13 –Routing Protocols Network Layer4-1. Network Layer4-2 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd.
CS 577 Advanced Computer Networks
Lecture 8 Overview. Graph abstraction u y x wv z Graph: G = (N,E) N = set of routers = { u, v, w, x, y, z } E = set of links ={ (u,v),
Routing - I Important concepts: link state based routing, distance vector based routing.
Computer Networks: Routing
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination Network layer must.
Advanced Computer Networks: Routing1 Routing. 2 R R R R S SS s s s s ss s ss s R s R Backbone To internet or wide area network Organization Servers Gateway.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
Data Communication and Networks Lecture 7 Networks: Part 2 Routing Algorithms October 27, 2005.
Computer Networks: Routing1 Network Layer Routing.
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
Routing Algorithms and Routing in the Internet
Lecture 7 Overview. Two Key Network-Layer Functions forwarding: move packets from router’s input to appropriate router output routing: determine route.
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)
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 18.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
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.
Introduction 1 Lecture 21 Network Layer (Routing Activity) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
Network Layer4-1 Chapter 4 Network Layer Part 3: Routing Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March.
10-1 Last time □ Transitioning to IPv6 ♦ Tunneling ♦ Gateways □ Routing ♦ Graph abstraction ♦ Link-state routing Dijkstra's Algorithm ♦ Distance-vector.
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.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Network Layer4-1 Distance Vector Algorithm Bellman-Ford Equation (dynamic programming) Define d x (y) := cost of least-cost path from x to y Then d x (y)
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.
Distance Vector Routing
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Routing 1 Network Layer Network Layer goals:  understand principles behind network layer services:  routing (path selection)  how a router works  instantiation.
Introduction 1 Lecture 19 Network Layer (Routing Algorithms) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science.
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.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Chapter4_3.
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
Network Layer4-1 Routing Algorithm Classification Global or decentralized information? Global: r all routers have complete topology, link cost info r “link.
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.
Routing Primer Internet of Things Fall Internet of Things Routing Primer Routing Outline  Overview of Point-to-Point Routing (WAN)  Routing Algorithm.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Application Layer 2-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A.
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.
IP tutorial - #2 Routing KAIST Dept. of CS NC Lab.
Network Layer4-1 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.
Computer Networks: Routing1 Network Layer Routing.
Network Layer Routing Networks: Routing.
CS 5565 Network Architecture and Protocols
Network Layer Introduction Datagram networks IP: Internet Protocol
Chapter 5 Network Layer.
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.
ECE453 – Introduction to Computer Networks
Advanced Computer Networks
CS4470 Computer Networking Protocols
Network Layer Routing Networks: Routing.
CMPE 252A : Computer Networks
Network Layer (contd.) Routing
Chapter 4: Network Layer
Network Layer: Link-state and Distance-Vector Routing Protocols
Chapter 4: Network Layer
Network Layer Routing.
Presentation transcript:

Routing Primer Advanced Computer Networks

Routing Outline  Overview of Point-to-Point Routing (WAN)  Routing Algorithm Classification  Distance Vector Routing  Link State Routing  RIP  OSPF  BGP Advanced Computer Networks Routing Primer 2

Metropolitan Area Network (MAN) Advanced Computer Networks Routing Primer 3 R R R R S SS s s s s ss s ss s R s R Backbone To the Internet or wide area network Organization Servers Gateway Departmental Server Leon-Garcia & Widjaja: Communication Networks

Wide Area Network (WAN) Advanced Computer Networks Routing Primer 4 Interdomain level Intradomain level LAN level Autonomous system or domain Border routers Internet service provider Leon-Garcia & Widjaja: Communication Networks

Modern Internet Backbone Advanced Computer Networks Routing Primer 5 National service provider A National service provider B National service provider C NAP National Internet Service Providers Network Access Point Leon-Garcia & Widjaja: Communication Networks

Network Layer Advanced Computer Networks Routing Primer 6  transport segment from sending to receiving host.  on sending side, encapsulates segments into datagram packets.  on receiving side, delivers segments to transport layer.  network layer protocols in every host, router.  router examines header fields in all IP datagrams passing through it. application transport network data link physical application transport network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical K & R

Advanced Computer Networks Routing Primer 7 Two Key Network Layer Functions  forwarding: move packets from router’s input to appropriate router output.  routing: determine route taken by packets from source to destination. analogy: r routing: process of planning trip from source to destination r forwarding: process of getting through single interchange

8 Interplay between Routing and Forwarding value in arriving packet’s header routing algorithm local forwarding table header value output link K & R Routing creates the tables. Forwarding uses the tables. Advanced Computer Networks Routing Primer

Router Node Forwarding packet node Outgoing Link Router Link Buffer Server packet Incoming Link 9 Routing table lookup Advanced Computer Networks Routing Primer

10 forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling conventions ICMP protocol error reporting router “signaling” Transport Layer: TCP, UDP Data Link Layer Physical Layer Network Layer The Internet Network Layer

Routing Algorithm Classification Advanced Computer Net works Advanced Computer Net works

RoutingRouting Advanced Computer Networks Routing Primer 12 Routing algorithm:: that part of the Network Layer responsible for deciding on which output line to transmit an incoming packet. Remember: For virtual circuit subnets the routing decision is made ONLY at set up. Remember: For virtual circuit subnets the routing decision is made ONLY at set up. Algorithm properties:: correctness, simplicity, robustness, stability, fairness, optimality, and scalability.

Figure 3.28 Network represented as a graph. Routing is Graph Theory Problem edges have costs 13 Advanced Computer Networks Routing Primer

Routing Classification Advanced Computer Networks Routing Primer 14 Adaptive Routing based on current measurements of traffic and/or topology. 1. centralized 2. isolated 3. distributed Non-Adaptive Routing routing computed in advance and off-line 1. flooding 2. static routing using shortest path algorithms

FloodingFlooding  Pure flooding :: every incoming packet to a node is sent out on every outgoing line. –Obvious adjustment – do not send out on arriving link (assuming full-duplex links). –The routing algorithm can use a hop counter (e.g., TTL) to dampen the flooding. –Selective flooding :: only send on those lines going “approximately” in the right direction. 15 Advanced Computer Networks Routing Primer

Centralized Routing 16 RCC A Z W B Advanced Computer Networks Routing Primer

Internetwork Routing [Halsall] Advanced Computer Networks Routing Primer 17 Adaptive Routing Centralized Distributed Intradomain routingInterdomain routing Distance Vector routing Link State routing [IGP] [EGP] [BGP,IDRP] [OSPF,IS-IS,PNNI][RIP] [RCC] Interior Gateway Protocols Exterior Gateway Protocols Isolated

Adaptive Routing Design 18 Design Issues: 1. How much overhead is incurred due to gathering the routing information and sending routing packets? 2. What is the time frame (i.e, the frequency) for sending routing packets in support of adaptive routing? 3. What is the complexity of the routing strategy? Advanced Computer Networks Routing Primer

Adaptive Routing 19 Basic functions: 1. Measurement of pertinent network data {e.g. the cost metric}. 2. Forwarding of information to where the routing computation will be done. 3. Compute the routing tables. 4. Convert the routing table information into a routing decision and then dispatch the data packet. Advanced Computer Networks Routing Primer

Shortest Path Routing 1. Bellman-Ford Algorithm [Distance Vector] 2. Dijkstra’s Algorithm [Link State] What does it mean to be the shortest (or optimal) route? We need a cost metric (edges in graph): a. Minimize the number of hops along the path. b. Minimize the mean packet delay. c. Maximize the network throughput. 20 Advanced Computer Networks Routing Primer

Distance Vector Routing {Tanenbaum & Perlman version} Advanced Computer Networks Advanced Computer Networks

Distance Vector Routing Advanced Computer Networks Routing Primer 22 Historically known as the old ARPANET routing algorithm {or known as Bellman- Ford (BF) algorithm}. Historically known as the old ARPANET routing algorithm {or known as Bellman- Ford (BF) algorithm}. BF Basic idea: each router maintains a Distance Vector table containing the distance between itself and ALL possible destination nodes. BF Basic idea: each router maintains a Distance Vector table containing the distance between itself and ALL possible destination nodes. Distances,based on a chosen metric, are computed using information from the neighbors’ distance vectors. Distances,based on a chosen metric, are computed using information from the neighbors’ distance vectors. Distance Metric: usually hops or delay Distance Metric: usually hops or delay

Distance Vector Routing Advanced Computer Networks Routing Primer 23 Information kept by DV router 1. each router has an ID 2. associated with each link connected to a router, there is a link cost (static or dynamic). Distance Vector Table Initialization Distance to itself = 0 Distance to ALL other routers = infinity number

Distance Vector Algorithm [Perlman] Advanced Computer Networks Routing Primer A router transmits its distance vector to each of its neighbors in a routing packet. 2. Each router receives and saves the most recently received distance vector from each of its neighbors. 3. A router recalculates its distance vector when: distance vector a.It receives a distance vector from a neighbor containing different information than before. b.It discovers that a link to a neighbor has gone down (i.e., a topology change). The DV calculation is based on minimizing the cost to each destination.

Distance Vector Example Advanced Computer Networks Routing Primer 25 Tanenbaum Figure 5-9.(a) A subnet. (b) Input from A, I, H, K, and the new routing table for J.

Distance Vector Routing {Kurose & Ross version} Advanced Computer Networks

Distance Vector Algorithm Bellman-Ford Equation (dynamic programming) Define d x (y) := cost of least-cost path from x to y Then d x (y) = min {c(x,v) + d v (y)} d x (y) = min {c(x,v) + d v (y)} where min is taken over all neighbors v of x. Advanced Computer Networks Routing Primer 27 v

Advanced Computer Networks Routing Primer 28 u y x wv z Clearly, d v (z) = 5, d x (z) = 3, d w (z) = 3 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 The node that achieves minimum is next hop in shortest path ➜ forwarding table. Namely, packets from u destined for z are forwarded out link between u and x. B-F equation says: Bellman-Ford Example

Distance Vector Algorithm Advanced Computer Networks Routing Primer 29  D x (y) = estimate of least cost from x to y  Node x knows cost to each neighbor v: c(x,v)  Node x maintains distance vector D x = [D x (y): y є N ] D x = [D x (y): y є N ]  Node x also maintains its neighbors’ distance vectors –For each neighbor v, x maintains D v = [D v (y): y є N ]

Advanced Computer Networks Routing Primer 30 DV Basic idea:  From time-to-time, each node sends its own distance vector estimate to neighbors.  Asynchronous  When a node x receives a new DV estimate from any neighbor v, it saves v’s distance vector and 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) converges to the actual least cost d x (y). Distance Vector Algorithm

Advanced Computer Networks Routing Primer 31 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. wait for (change in local link cost or msg from neighbor) recompute estimates if DV to any destination has changed, notify neighbors Each node: Distance Vector Algorithm

x y z x y z ∞∞∞ ∞∞∞ from cost to from x y z x y z 0 from cost to x y z x y z ∞∞ ∞∞∞ cost to x y z x y z ∞∞ 710 cost to ∞ ∞ ∞ time x z y node x table node y table node z table D x (y) = min{c(x,y) + D y (y), c(x,z) + D z (y)} = min{2+0, 7+1} = 2 D x (z) = min{c(x,y) + D y (z), c(x,z) + D z (z)} = min{2+1, 7+0} = 3 32 Advanced Computer Networks Routing Primer 32 ∞ ∞

x y z x y z ∞∞∞ ∞∞∞ from cost to from x y z x y z from cost to x y z x y z from cost to x y z x y z ∞∞ ∞∞∞ cost to x y z x y z from cost to x y z x y z from cost to x y z x y z from cost to x y z x y z from cost to x y z x y z ∞∞ 710 cost to ∞ ∞ ∞ time x z y node x table node y table node z table D x (y) = min{c(x,y) + D y (y), c(x,z) + D z (y)} = min{2+0, 7+1} = 2 D x (z) = min{c(x,y) + D y (z), c(x,z) + D z (z)} = min{2+1, 7+0} = 3 Advanced Computer Networks Routing Primer 33 ∞ ∞ ∞

Advanced Computer Networks Routing Primer 34 Link cost changes: r node detects local link cost change. r updates routing info, recalculates distance vector. r if DV changes, it notifies neighbors. At time t 0, y detects the link-cost change, updates its DV, and informs its neighbors. “good news travels fast” At time t 1, z receives the update from y and updates its table. It computes a new least cost to x and sends its neighbors its DV. At time t 2, y receives z’s update and updates its distance table. y’s least costs do not change and hence y does not send any message to z. x z y 1 Distance Vector: Link Cost Changes

Link cost changes: r good news travels fast r bad news travels slow - “count to infinity” problem! r 44 iterations before algorithm stabilizes: see P&D page 248! r Does this solve count to infinity problem? x z y 60 Distance Vector: Link Cost Changes 35 Possible solutions: 1. Keep ‘infinity ‘ small {depends on graph diameter}. 2. Split Horizon: node does not send those routes learned from a neighbor back to that neighbor. 3. Split Horizon with Poison 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). Advanced Computer Networks Routing Primer

Link State Algorithm 1. Each router is responsible for meeting its neighbors and learning their names. 2. Each router constructs a link state packet (LSP) which consists of a list of names and cost to reach each of its neighbors. 3. The LSP is transmitted to ALL other routers. Each router stores the most recently generated LSP from each other router. 4. Each router uses complete information on the network topology to compute the shortest path route to each destination node. Computer Networks Routing Primer 36

Figure 4.18 Reliable LSP Flooding P&D slide Reliable Flooding Computer Networks Routing Primer 37

Reliable Flooding The process of making sure all the nodes participating in the routing protocol get a copy of the link-state information from all the other nodes. LSPLSP contains: –Sending router’s node ID –List of connected neighbors with the associated link cost to each neighbor –Sequence number –Time-to-live (TTL) {an aging mechanism} Computer Networks Routing Primer 38

First two items enable route calculation. Last two items make process reliable –ACKs and checking for duplicates is needed. Periodic Hello packets used to determine the demise of a neighbor. The sequence numbers are not expected to wrap around. –  this field needs to be large (64 bits) !! Reliable Flooding Computer Networks Routing Primer 39

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 destinations. 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 destination v  p(v): predecessor node along path from source to v  N': set of nodes whose least cost path is definitively known. Computer Networks Routing Primer 40 K & R

Dijsktra’s Shortest Path 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' Computer Networks Routing Primer 41 [K&R]

Dijkstra’s Algorithm: Example Step N' u ux uxy uxyv uxyvw uxyvwz D(v),p(v) 2,u D(w),p(w) 5,u 4,x 3,y D(x),p(x) 1,u D(y),p(y) ∞ 2,x D(z),p(z) ∞ 4,y u y x wv z Computer Networks Routing Primer 42

Dijkstra’s Algorithm: Example (2) u y x w v z Resulting shortest-path tree from u: v x y w z (u,v) (u,x) destination link Resulting forwarding table in u: Computer Networks Routing Primer 43

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., link cost = amount of carried traffic A D C B 1 1+e e 0 e A D C B 2+e e 1 A D C B 0 2+e 1+e A D C B 2+e 0 e 0 1+e 1 initially … recompute routing … recompute Computer Networks Routing Primer 44

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) Computer Networks Routing Primer 45

Routing Information Protocol (RIP)  RIP had widespread use because it was distributed with BSD Unix in “routed”, a router management daemon in  RIP - most used Distance Vector protocol.  RFC1058 in June 1988  Runs over UDP.  Metric = hop count  BIG problem is max. hop count =16  RIP limited to running on small networks (or AS’s that have a small diameter)!! Computer Networks Routing Primer 46

Routing Information Protocol (RIP)  Sends DV packets every 30 seconds (or faster) as Response Messages (also called advertisements).  each advertisement: list of up to 25 destination subnets within AS.  Upgraded to RIPv2 D C BA u v w x y z destination hops u 1 v 2 w 2 x 3 y 3 z 2 From router A to subnets: Computer Networks Routing Primer 47

Figure 4.17 RIP Packet Format (network_address, distance) pairs P&D slide RIP Packets Computer Networks Routing Primer 48

RIPv2RIPv2  Allows routing on a subnet (subnet masks)  Has an authentication mechanism  Tries to deal with multicast  Uses route tags  Has the ability for router to announce routes on behalf of another router. 49 Advanced Computer Networks Routing Primer

Figure 3.31 RIPv2 Packet Format RIPv2 Packets 50 subnet masks Advanced Computer Networks Routing Primer

OSPF (Open Shortest Path First)  “open” :: publicly available (due to IETF)  uses Link State algorithm –LS packet dissemination –topology map at each node –route computation uses Dijkstra’s algorithm.  OSPF advertisement carries one entry per neighbor router.  advertisements disseminated to entire AS (via flooding*). –carried in OSPF messages directly over IP (rather than TCP or UDP). * However hierarchy (partitioning domains into areas) reduces flooding impact. 51 Advanced Computer Networks Routing Primer

OSPF “Advanced” Features (not in RIP)  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; high for real time).  integrated uni- and multicast support: –Multicast OSPF (MOSPF) uses same topology data base as OSPF.  hierarchical OSPF used in large domains. Computer Networks Routing Primer 52

Figure 4.2 A domain divided into areas Partitioning Domains 53 Advanced Computer Networks Routing Primer

Hierarchical OSPF Computer Networks Routing Primer 54

Hierarchical OSPF  Two-Level Hierarchy: local area, backbone. –Link-State Advertisements (LSAs) only in area –each node has detailed area topology; only knows 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’s. Computer Networks Routing Primer 55

OSPF LSA Types 1. Router link advertisement [Hello message] 2. Network link advertisement 3. Network summary link advertisement 4. AS border router’s summary link advertisement 5. AS external link advertisement Computer Networks Routing Primer 56

OSPFOSPF Figure 5-65.The relation between AS’s, backbones, and areas in OSPF Tanenbaum 57 Advanced Computer Networks Routing Primer

Internet Inter-AS routing: BGP  BGP (Border Gateway Protocol): the de facto standard  BGP provides each AS a means to: reachability 1.Obtain subnet reachability information from neighboring ASs. 2.Propagate reachability information to all AS-internal routers. 3.Determine “good” routes to subnets based on reachability information and policy.  allows subnet to advertise its existence to rest of Internet: “I am here!” Computer Networks Routing Primer 58

Routing Primer Summary  Routers forward and route over WANs –Produce look up tables in routers  Routing Classification: –Adaptive or non-adaptive –Interdomain and Intradomain  Distance Vector Routing (DV) –Perlman version –Tanenbaum example –K&R version Advanced Computer Networks Routing Primer 59

Routing Primer Summary  Link State Routing (LS) –Uses reliable flooding; Dijkstra’s SP algorithm  RIP –Old ARPA routing; unicast DV routing  OSPF –Two-Level Hierarchical LS routing –Five LSA types for router communication  BGP –Interdomain routing using reachability Advanced Computer Networks Routing Primer 60