15-744: Computer Networking L-5 Intra-Domain Routing.

Slides:



Advertisements
Similar presentations
CSCI-1680 Network Layer: Intra-domain Routing Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Advertisements

Courtesy: Nick McKeown, Stanford
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
Routing - I Important concepts: link state based routing, distance vector based routing.
CSE331: Introduction to Networks and Security Lecture 9 Fall 2002.
Routing So how does the network layer do its business?
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
Chapter 4 Distance Vector Problems, and Link-State Routing Professor Rick Han University of Colorado at Boulder
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.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 17/04/2007.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
15-744: Computer Networking L-5 Intra-Domain Routing.
Chapter 4 IP Routing Professor Rick Han University of Colorado at Boulder
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
Chapter 4 Link-State Routing and Hierarchical Routing Professor Rick Han University of Colorado at Boulder
EE 122: Intra-domain routing Ion Stoica September 30, 2002 (* this presentation is based on the on-line slides of J. Kurose & K. Rose)
CSE 461: Link State Routing. Link State Routing  Same assumptions/goals, but different idea than DV:  Tell all routers the topology and have each compute.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Wide-Area Traffic Management COS 597E: Software Defined Networking.
CS 4700 / CS 5700 Network Fundamentals Lecture 9: Intra Domain Routing Revised 7/30/13.
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.
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
Routing Concepts Warren Toomey GCIT. Introduction Switches need to know the link address and location of every station. Doesn't scale well, e.g. to several.
Distance Vector Routing Protocols W.lilakiatsakun.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
CS551: Unicast Routing Christos Papadopoulos (
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.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
Packet-Switching Networks Routing in Packet Networks.
Routing Protocols RIP, OSPF, BGP. A Routing Protocol’s Job Is to Find a “Best” Path between Any Pair of Nodes Routers in a network exchange their routing.
Link-state routing  each node knows network topology and cost of each link  quasi-centralized: each router periodically broadcasts costs of attached.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
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.
Static versus Dynamic Routes Static Route Uses a protocol route that a network administrators enters into the router Static Route Uses a protocol route.
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.
Lecture 17 November 8Intra-domain routing November 13Internet routing 1 November 15Internet routing 2 November 20End-to-end protocols 1 November 22End-to-end.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
Cisco Systems Networking Academy S2 C 11 Routing Basics.
TELE202 Lecture 6 Routing in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Packet switching in Wide Area Networks »Source: chapter 10 ¥This Lecture.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
Internet Routing r Routing algorithms m Link state m Distance Vector m Hierarchical routing r Routing protocols m RIP m OSPF m BGP.
1 CSE524: Lecture 12 Network layer Functions. 2 Where we’re at… Internet architecture and history Internet protocols in practice Application layer Transport.
Dynamic Routing Protocols II OSPF
Mike Freedman Fall 2012 COS 561: Advanced Computer Networks Traffic Engineering.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Ch 22. Routing Direct and Indirect Delivery.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Distance Vector Routing
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
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.
CS 5565 Network Architecture and Protocols
Dynamic Routing Protocols II OSPF
Network Layer Introduction Datagram networks IP: Internet Protocol
Intra-Domain Routing Jacob Strauss September 14, 2006.
Fundamentals of Computer Networks ECE 478/578
Dynamic Routing Protocols II OSPF
Routing in Packet Networks Shortest Path Routing
CS 4700 / CS 5700 Network Fundamentals
CS 3700 Networks and Distributed Systems
Intradomain Routing Outline Introduction to Routing
CS 640: Introduction to Computer Networks
Chapter 7 Packet-Switching Networks
CS 3700 Networks and Distributed Systems
Computer Networking Lecture 10: Intra-Domain Routing
Communication Networks
Network Layer (contd.) Routing
Communication Networks
CSE 461: Link State Routing
Data Communication: Routing algorithms
Presentation transcript:

15-744: Computer Networking L-5 Intra-Domain Routing

L -5; © Srinivasan Seshan, Intra-Domain Routing Routing algorithms Distance vector routing – challenges Link state routing How to make routing adapt to load How to make routing scale Assigned reading [KZ89] The revised ARPANET routing metric

L -5; © Srinivasan Seshan, Factors Affecting Routing Routing algorithms view the network as a graph Problem: find lowest cost path between two nodes Factors Static topology Dynamic load Policy D A F E B C

L -5; © Srinivasan Seshan, Outline Distance vector routing – challenges Link state routing Routing metrics Routing hierarchy

L -5; © Srinivasan Seshan, The Bouncing Effect A B C B C2 1 destcost A C1 1 destcost A B1 2 destcost X

L -5; © Srinivasan Seshan, C Sends Routes to B A 25 1 B C B C2 1 destcost A C1 ~ destcost A B1 2 destcost

L -5; © Srinivasan Seshan, B Updates Distance to A A 25 1 B C B C2 1 destcost A C1 3 destcost A B1 2 destcost

L -5; © Srinivasan Seshan, B Sends Routes to C A 25 1 B C B C2 1 destcost A C1 3 destcost A B1 4 destcost

L -5; © Srinivasan Seshan, C Sends Routes to B A 25 1 B C B C2 1 destcost A C1 5 destcost A B1 4 destcost

L -5; © Srinivasan Seshan, How are These Loops Caused? Observation 1: B’s metric increases Observation 2: C picks B as next hop to A But, the implicit path from C to A includes itself!

L -5; © Srinivasan Seshan, Solution 1: Holddowns If metric increases, delay propagating information In our example, B delays advertising route C eventually thinks B’s route is gone, picks its own route B then selects C as next hop Adversely affects convergence

L -5; © Srinivasan Seshan, Other “Solutions” Split horizon C does not advertise route to B Poisoned reverse C advertises route to B with infinite distance Works for two node loops Does not work for loops with more nodes

L -5; © Srinivasan Seshan, Example Where Split Horizon Fails A When link breaks, C marks D as unreachable and reports that to A and B Suppose A learns it first A now thinks best path to D is through B A reports D unreachable to B and a route of cost=3 to C C thinks D is reachable through A at cost 4 and reports that to B B reports a cost 5 to A who reports new cost to C etc... X B C D

L -5; © Srinivasan Seshan, Avoiding the Bouncing Effect Select loop-free paths One way of doing this: Each route advertisement carries entire path If a router sees itself in path, it rejects the route BGP does it this way Space proportional to diameter

L -5; © Srinivasan Seshan, Loop Freedom at Every Instant Does bouncing effect avoid loops? No! Transient loops are still possible Why? Because implicit path information may be stale See this in BGP convergence Only way to fix this Ensure that you have up-to-date information by explicitly querying

L -5; © Srinivasan Seshan, Distance Vector in Practice RIP and RIP2 Uses split-horizon/poison reverse BGP Propagates entire path Path also used for effecting policies

L -5; © Srinivasan Seshan, Outline Distance vector routing – challenges Link state routing Routing metrics Routing hierarchy

L -5; © Srinivasan Seshan, Basic Steps Start condition Each node assumed to know state of links to its neighbors Step 1 Each node broadcasts its state to all other nodes Reliable flooding mechanism Step 2 Each node locally computes shortest paths to all other nodes from global state Dijkstra’s shortest path tree (SPT) algorithm

L -5; © Srinivasan Seshan, Link State Packets (LSPs) Periodically, each node creates a link state packet containing: Node ID List of neighbors and link cost Sequence number Needed to avoid stale information from flood Time to live (TTL) Node outputs LSP on all its links

L -5; © Srinivasan Seshan, Reliable Flooding When node J receives LSP from node K If LSP is the most recent LSP from K that J has seen so far, J saves it in database and forwards a copy on all links except link LSP was received on Otherwise, discard LSP How to tell more recent Use sequence numbers Same method as sliding window protocols

L -5; © Srinivasan Seshan, SPT Algorithm (Dijkstra) SPT = {a} for all nodes v if v adjacent to a then D(v) = cost (a, v) else D(v) = infinity Loop find w not in SPT, where D(w) is min add w in SPT for all v adjacent to w and not in SPT D(v) = min (D(v), D(w) + C(w, v)) until all nodes are in SPT

L -5; © Srinivasan Seshan, Example AF B DE C B CDEF

L -5; © Srinivasan Seshan, Example AF B DE C B CDEF

L -5; © Srinivasan Seshan, Example AF B DE C B CDEF

L -5; © Srinivasan Seshan, Example AF B DE C B CDEF

L -5; © Srinivasan Seshan, Example AF B DE C B CDEF

L -5; © Srinivasan Seshan, Example AF B DE C B CDEF

L -5; © Srinivasan Seshan, Link State Characteristics With consistent LSDBs, all nodes compute consistent loop-free paths Limited by Dijkstra computation overhead, space requirements Can still have transient loops A B C D Packet from C  A may loop around BDC if B knows about failure and C & D do not X

L -5; © Srinivasan Seshan, Link State vs. Distance Vector In DV send everything you know to your neighbors In LS send info about your neighbors to everyone Msg size: small with LS, potentially large with DV Msg exchange: LS: O(nE), DV: only to neighbors

L -5; © Srinivasan Seshan, Link State vs. Distance Vector Convergence speed: LS: faster – don’t need to process LSPs before forwarding DV: fast with triggered updates Space requirements: LS maintains entire topology DV maintains only neighbor state

L -5; © Srinivasan Seshan, Link State vs. Distance Vector Robustness: LS can broadcast incorrect/corrupted LSP Can be made robust since sources are aware of alternate paths DV can advertise incorrect paths to all destinations Incorrect calculation can spread to entire network

L -5; © Srinivasan Seshan, Link State vs. Distance Vector In LS nodes must compute consistent routes independently - must protect against LSDB corruption In DV routes are computed relative to other nodes Bottom line: no clear winner, but we see more frequent use of LS in the Internet

L -5; © Srinivasan Seshan, Outline Distance vector routing – challenges Link state routing Routing metrics Routing hierarchy

L -5; © Srinivasan Seshan, Importance of Cost Metric Choice of link cost defines traffic load Low cost = high probability link belongs to SPT and will attract traffic, which increases cost Main problem: convergence Avoid oscillations Achieve good network utilization

L -5; © Srinivasan Seshan, Metric Choices Static metrics (e.g., hop count) Good only if links are homogeneous Definitely not the case in the Internet Static metrics do not take into account Link delay Link capacity Link load (hard to measure)

L -5; © Srinivasan Seshan, Original ARPANET Metric Cost proportional to queue size Instantaneous queue length as delay estimator Problems Did not take into account link speed Poor indicator of expected delay due to rapid fluctuations Delay may be longer even if queue size is small due to contention for other resources

L -5; © Srinivasan Seshan, Metric 2 - Delay Shortest Path Tree Delay = (depart time - arrival time) + transmission time + link propagation delay (Depart time - arrival time) captures queuing Transmission time captures link capacity Link propagation delay captures the physical length of the link Measurements averaged over 10 seconds Update sent if difference > threshold, or every 50 seconds

L -5; © Srinivasan Seshan, Performance of Metric 2 Works well for light to moderate load Static values dominate Oscillates under heavy load Queuing dominates Reason: there is no correlation between original and new values of delay after re- routing!

L -5; © Srinivasan Seshan, Specific Problems Range is too wide 9.6 Kbps highly loaded link can appear 127 times costlier than 56 Kbps lightly loaded link Can make a 127-hop path look better than 1- hop No limit to change between reports All nodes calculate routes simultaneously Triggered by link update

L -5; © Srinivasan Seshan, Example Net X Net Y B A

L -5; © Srinivasan Seshan, Example Net X Net Y B A After everyone re-calculates routes:.. Oscillations!

L -5; © Srinivasan Seshan, Consequences Low network utilization (50% in example) Congestion can spread elsewhere Routes could oscillate between short and long paths Large swings lead to frequent route updates More messages Frequent SPT re-calculation

L -5; © Srinivasan Seshan, Revised Link Metric Better metric: packet delay = f(queueing, transmission, propagation) When lightly loaded, transmission and propagation are good predictors When heavily loaded queueing delay is dominant and so transmission and propagation are bad predictors

L -5; © Srinivasan Seshan, Normalized Metric If a loaded link looks very bad then everyone will move off of it Want some to stay on to load balance and avoid oscillations It is still an OK path for some Hop normalized metric diverts routes that have an alternate that is not too much longer Also limited relative values and range of values advertised  gradual change

L -5; © Srinivasan Seshan, Revised Metric Limits on relative change Measured link delay is taken over 10sec period Link utilization is computed as.5*current sample +.5*last average Max change limited to slightly more than ½ hop Min change limited to slightly less than ½ hop Bounds oscillations Normalized according to link type Satellite should look good when queueing on other links increases

L -5; © Srinivasan Seshan, Routing Metric vs. Link Utilization %100%25%75% 225 New metric (routing units) Utilization 9.6 satellite 9.6 terrestrial 56 terrestrial 56 satellite 90

L -5; © Srinivasan Seshan, Observations Utilization effects High load never increases cost more than 3*cost of idle link Cost = f(link utilization) only at moderate to high loads Link types Most expensive link is 7 * least expensive link High-speed satellite link is more attractive than low-speed terrestrial link Allows routes to be gradually shed from link

L -5; © Srinivasan Seshan, Network Response Maps Link cost Mean load on link 25% 50% 200% Load of “average” link as a function of that link’s cost Created empirically Network load % 100%

L -5; © Srinivasan Seshan, Equilibrium Calculation Link cost Mean load on link 25% 50% 0.2 HN-SPF D-SPF Combine utilization to cost and cost to utilization maps Equilibrium points at intersections 200%Network load400% 100%

L -5; © Srinivasan Seshan, Equilibrium Utilizations Min-Hop Offered Load Utilization Min Hop HN-SPF D-SPF Ideal Equilibrium points vs. offered load

L -5; © Srinivasan Seshan, Routing Dynamics Link reported cost Utilization Bounded oscillation Metric map Network response Limiting maximum metric change bounds oscillation

L -5; © Srinivasan Seshan, Routing Dynamics Reported cost Utilization Metric map Network response Easing in a new link

L -5; © Srinivasan Seshan, Outline Distance vector routing – challenges Link state routing Routing metrics Routing hierarchy

L -5; © Srinivasan Seshan, Routing Hierarchies Flat routing doesn’t scale Each node cannot be expected to have routes to every destination (or destination network) Key observation Need less information with increasing distance to destination Two radically different approaches for routing The area hierarchy The landmark hierarchy (discuss in routing alternatives)

L -5; © Srinivasan Seshan, Areas Divide network into areas Areas can have nested sub-areas Constraint: no path between two sub-areas of an area can exit that area Hierarchically address nodes in a network Sequentially number top-level areas Sub-areas of area are labeled relative to that area Nodes are numbered relative to the smallest containing area

L -5; © Srinivasan Seshan, The Area Hierarchy

L -5; © Srinivasan Seshan, Routing Within area Each node has routes to every other node Outside area Each node has routes for other top-level areas only Inter-area packets are routed to nearest appropriate border router Can result in sub-optimal paths

L -5; © Srinivasan Seshan, Path Sub-optimality hop red path vs. 2 hop green path start end

L -5; © Srinivasan Seshan, Next Lecture: Inter-Domain Routing Border Gateway Protocol (BGP) Assigned reading [LAB00] Delayed Internet Routing Convergence