Unformatted text preview:

CMPE 150 Winter 2009 Lecture 11 February 12 2009 P E Mantey CMPE 150 Introduction to Computer Networks Instructor Patrick Mantey mantey soe ucsc edu http www soe ucsc edu mantey Office Engr 2 Room 595J Office hours Tues 3 5 PM Mon 5 6 PM TA Anselm Kia akia soe ucsc edu Web site http www soe ucsc edu classes cmpe150 Winter09 Text Tannenbaum Computer Networks 4th edition available in bookstore etc Syllabus Today s Agenda Routing continued Distance Vector Protocol Link State Routing Network Layer Hierarchical Routing Broadcast Routing Spanning Tree Routing Congestion Control Quality of Service Internetworking Reading Assignment Today Chapter 5 sections 5 2 4 8 continued 5 3 5 4 1 5 4 3 Tuesday Tannenbaum Chapter5 section 5 5 5 6 Internet Protocol Internet Layering Level 5 Application Layer rlogin ftp SMTP POP3 IMAP HTTP Level 4 Transport Layer a k a Host to Host TCP UDP ARP ICMP etc Level 3 Network Layer a k a Internet IP Level 2 Data Link Layer MAC sub layer a k a Network Interface or Network Access Layer Level 1 Physical Layer Distance Vector protocol Initialize routing table with local links Flood routing table to all routers Do Compute local routing table from graph Wait for update or link cost change or timer Update network graph If link cost change Flood updated link to all routers Else if timer expired Flood routing table to all routers Forever Distance Vector Routing a A subnet b Input from A I H K and the new routing table for J Distance Vector Routing 1 Each router keeps routing table or routing vector giving best known distance to each destination and the corresponding outgoing interface Routing tables are updated by exchanging routing information with neighbors Implements distributed version of BellmanFord Aka Ford Fulkerson Timer based refresh vs neighbor tables Distance Vector 2 Routing table at each router One entry per participating router Each entry contains outgoing interface and distance to corresponding destination Metric number of hops delay queue length Each router knows distance to its neighbors Old ARPANET algorithm DV where cost metric is outgoing link queue length Also used in RIP Routing Updates Every T interval routers exchange routing updates Routing update from router X consists of a vector with all destinations and the corresponding distance from X to them When router Y receives an update from X it can estimate its distance to router Z through X as Dyz Dyx Dxz Router Y receives update from all its neighbors discards its RT and builds a new one Distance Vector Example 3 2 5 2 2 1 1 4 3 3 1 9 7 1 6 5 2 Node Distance Next 1 0 2 3 4 5 6 Node Distance Next 1 0 2 3 2 5 2 3 4 5 6 1 6 8 4 3 3 T T0 T T2 2 3 0 3 2 3 5 3 7 4 5 4 0 2 1 3 2 T T1 2 0 1 3 Distance Vector Example 3 2 5 2 2 1 1 4 3 3 1 9 7 1 6 5 2 Node Distance Next 1 0 2 3 2 3 2 4 4 5 6 1 2 4 4 4 4 Node Distance Next 1 0 2 3 2 5 2 3 4 5 6 1 6 8 4 3 3 T T0 T T2 2 3 0 3 2 3 5 3 7 4 5 4 0 2 1 3 2 T T1 2 0 1 3 Problems Routing loops 2 Slow convergence 3 Counting to infinity 1 Bellman Ford overview Network represented by graph G V E V contains vertices i j E contains edges i j Algorithm data structures s source vertex dij cost of the edge i j dij if i j E Dhi cost of the shortest path with h hops from s to i Bellman Ford algorithm Dhs 0 for all h D0i for all i V i s h 0 Do h h 1 Dhj Min Dh 1i dij for all j V j s Until Dhi Dh 1i for all i V Bellman Ford illustrated B 2 2 2 6 1 E A 0 E 4 A 0 E 4 2 D 12 F 6 A 0 H 8 H 10 C 9 E 4 A 0 H 8 C 9 E 4 G 5 D 12 F 6 G 5 B 2 D 10 F 6 D F G 6 B 2 H 10 C 9 E 4 G 5 D H C 9 G 5 B 2 A 0 3 F 2 4 G 6 B 2 A 0 3 2 C 9 B 2 C 7 D 10 F 6 H 8 Count to Infinity 1 A Initially A down A comes up B infinity 1 1 1 1 C D E infinity infinity infinity infinity infinity infinity 2 infinity infinity 2 3 infinity 2 3 4 Good news propagates faster after 1 exchange after 2 exchanges after 3 exchanges after 4 exchanges Count to Infinity 2 A Initially all up A goes down B C 1 3 3 5 5 7 7 2 2 4 4 6 6 8 D 3 3 3 5 5 7 7 infinity E 4 4 4 4 6 6 8 after 1 exchange after 2 exchanges after 3 exchanges after 4 exchanges after 5 exchanges after 6 exchanges But bad news propagate slower Count to Infinity 3 Gradually routers work their way up to infinity Number of exchanges depends on how large is infinity To reduce number of exchanges if metric is number of hops infinity maximum path 1 Solution Routing loops Path vector record actual path used in the DV Previous hop tracing records preceding router Count to infinity Split horizon router doesn t report true route to next hop of the previous route Poison reverse router infinity to next hop of previous route Split horizon with poison reverse prevent loops involving two routers Triggered updates if the metric for a route is changed send an update immediately In the absence of other updates this solves the problem in reality other updates will keep hope alive RFC1058 is a good reference for these issues Split Horizon Tries to make bad news spread faster A node reports infinity as distance to node X on link packets to X are sent on Example in the first exchange C tells D its distance to A but tells B its distance to A is infinity So B discovers its link to A is down and C s distance to A is infinity so it sets its distance to A to infinity Link State protocol Initialize network graph with local links Flood local links to all routers Do Compute local routing table from graph Wait for update or link cost change Update network graph If link cost change Flood updated link to all routers Forever Link State Routing 1 Link State routing used in the ARPAnet starting in 1979 Used by the Internet s OSPF Open Shortest Path First Link State Routing 2 Link state routing is based on Discover your …


View Full Document

UCSC CMPE 150 - Lecture 11 Notes

Documents in this Course
Load more
Loading Unlocking...
Login

Join to view Lecture 11 Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 11 Notes and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?