University of Delaware CPEG 4191 Distance Vector Routing – Dynamic Programming zLimited state information. Just the next hop and cost. A B D G F C H E.

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

OSPF Header OSPF HEADER OSPF HEADER for this project Types we will use
Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Computer Networks with Internet Technology William Stallings
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
University of Delaware CPEG 4191 zHomework due? zNext lecture is in 311 Pearson Hall (Studio A). Give me or the TA a sheet of paper with your name (attendance)
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
Chapter 4 Distance Vector Problems, and Link-State Routing Professor Rick Han University of Colorado at Boulder
Fundamentals of Computer Networks ECE 478/578 Lecture #16: Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University of Arizona.
Distance-Vector Routing COS 461: Computer Networks Spring 2010 (MW 3:00-4:20 in COS 105) Michael Freedman
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 ELEN 602 Lecture 19 Routing. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing table –routing:
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
University of Milan1 Routing Essentials E. Damiani.
Computer Networking Intra-Domain Routing, Part I RIP (Routing Information Protocol)
CS 4700 / CS 5700 Network Fundamentals Lecture 9: Intra Domain Routing Revised 7/30/13.
CSS432 Routing Textbook Ch 3.3
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)
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 10 - Intra-Domain Routing.
Intra-Domain Routing D.Anderson, CMU Intra-Domain Routing RIP (Routing Information Protocol) & OSPF (Open Shortest Path First)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 14 Routing Protocols RIP, OSPF, BGP.
13-Sep-154/598N: Computer Networks Address Translation Map IP addresses into physical addresses –destination host –next hop router Techniques –encode physical.
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.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Chapter 15 Interior Routing Protocols 1 Chapter 15 Interior Routing Protocols.
CSS 432: Routing 1 CSS432 Routing Textbook Ch3.3 Professor: Munehiro Fukuda.
Overview of Internet Routing (I) Fall 2004 CS644 Advanced Topics in Networking Sue B. Moon Division of Computer Science Dept. of EECS KAIST.
 Development began in 1987  OSPF Working Group (part of IETF)  OSPFv2 first established in 1991  Many new features added since then  Updated OSPFv2.
Lecture 17 November 8Intra-domain routing November 13Internet routing 1 November 15Internet routing 2 November 20End-to-end protocols 1 November 22End-to-end.
1 4.2 Routing Network as a Graph Distance Vector (RIP) Link State (OSPF) Metrics Routing for Mobile Hosts.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
Network Layer session 1 TELE3118: Network Technologies Week 6: Network Layer Intra-Domain Routing Protocols Some slides have been taken from: r.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
Networking and internetworking devices. Repeater.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vectore Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Routing protocols. Static Routing Routes to destinations are set up manually Route may be up or down but static routes will remain in the routing tables.
Dynamic Routing Protocols II OSPF
Routing Protocols Brandon Wagner.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
CS440 Computer Networks 1 Link State Routing and OSPF Neil Tang 10/31/2008.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Network-Layer Routing Routing tasks are methods of finding the paths for packet from their sources to their destinations. Routers are responsible mainly.
Lecture 7. Building Forwarding Tables There are several methods Static Method Dynamic Methods Centralized Distributed Distance Vector Link State.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
CEN 5501C - Computer Networks - Spring UF/CISE - Newman1 Computer Networks Chapter 12 – Routing Algorithm Concepts.
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.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
CSS432 Routing Textbook Ch3.3
Dynamic Routing Protocols II OSPF
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
THE NETWORK LAYER.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols II OSPF
Routing in Packet Networks Shortest Path Routing
Intradomain Routing Outline Introduction to Routing
CS 640: Introduction to Computer Networks
Communication Networks
Advanced Computer Networks
Routing Outline Algorithms Scalability Spring 2003 CS 332.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

University of Delaware CPEG 4191 Distance Vector Routing – Dynamic Programming zLimited state information. Just the next hop and cost. A B D G F C H E addressNext hop cost AA0 BB1 CC1 DD1 EE2 FD2 GB2 HB3 A addressNext hop cost AA1 BB1 CA2 DD0 EB2 FF1 GB2 HB3 D

University of Delaware CPEG 4192 Distance Vector Routing – Dynamic Programming zSuppose a new node comes on line. A B D G F C H E I addressNext hop Cos t A?  B?  C?  D?  E?  F?  G?  H?  II0 I

University of Delaware CPEG 4193 Distance Vector Routing – Dynamic Programming zSuppose a new node comes on line. zSuppose I first talks to A. A B D G F C H E I addressNext hop cost AA0 BB1 CC1 DD1 EE2 FD2 GB2 HB3 A addressNext hop cost AA1 BA2 CA2 DA2 EA3 FA3 GA2 HA2 II0 I

University of Delaware CPEG 4194 Distance Vector Routing – Dynamic Programming zSuppose a new node comes on line. zSuppose I first talks to A. zNext I talks to D. A B D G F C H E I addressNext hop cost AA1 BA2 CA2 DD1 EA3 FD2 GA2 HA2 II0 I addressNext hop cost AA1 BB1 CA2 DD0 EB2 FF1 GB2 HB3 D

University of Delaware CPEG 4195 Distance Vector - Algorithm zStart with all destinations with infinite distance, except for the actual node, which is distance 0. zEvery 30 seconds (RIP), or when a change occurs in the table, send table to neighbors. zIf the distance to a prefix advertised by a neighbor is less plus the distance to the neighbor is less than known distance, reduce distance to prefix and route packets with that destination prefix to that neighbor.

University of Delaware CPEG 4196 Count to Infinity Problem ABCDE  initial 1  1 iteration 12  2 iterations 123  3 iterations iterations ABCDE 1234initial iteration iterations iterations iterations

University of Delaware CPEG 4197 Approaches to Mitigate Count Infinity Why is count to infinity a problem? It generates tons of routing updates – too much traffic The network should report that a route is unreachable. Put upper bound an upper bound the the diameter of the network. But what is the network grows (as it did). Split horizon. A router does not report a distance to the neighbor it learned the distance from. Split horizon with poison reverse. If A advertises the best cost to E to B, then B advertises a cost of infinity to E back to A. This only works for loops that involve two nodes. With larger loops, the mitigation is more difficult and these remedies reduce the rate of convergence. The way to fix it is to use link state routing.

University of Delaware CPEG 4198 Link State Routing (IS-IS and OSPF) zEach router learns the entire network. (Compare to distance vector) zIf the entire network is known, the shortest cost routing can be computed. zEach router advertises to its neighbors who it is connected to. zEach router floods any advertisement it receives.

University of Delaware CPEG 4199 Link State Routing zHELLO – Determining who the router is connected to. zReliable Flooding of LSA (link state advertisement) and keeping/getting up- to-date information. zCalculate shortest path.

University of Delaware CPEG HELLO zPeriodically, a node sends a HELLO LSP (Link State Packet) to its neighbors. zThe neighbor responds with a HELLO reply. zThis way the router can determine which router it is connected to. zThe default period is 10 – 30sec.

University of Delaware CPEG Reliable Flooding zEach LSP contains yThe ID of the node that created the LSP. yThe list of the neighbors directly connected to that node with the cost of each link. yA sequence number yA time to live zEach LSP reception is ACKed.

University of Delaware CPEG Sequence Number zThe node that generated the LSA increments the sequence number for each LSA it sends out. zThe sequence number is 32 bits long, so wrap around is not possible. zWhen router receives an LSA, it checks if the seq num of the received LSA is larger than the LSA in memory. zIf the LSA has a larger seq. num, it is stored, the old one discarded and the new LSA is flooded to all neighbors, except the one that sent it. zIf the LSA has a smaller or equal seq. no, it is discarded.

University of Delaware CPEG Time to Live (TTL) zEach second a LSA sits in memory, its TTL is decremented. zEach time the LSA is transmitted, its TTL is decremented. zWhen the TTL reaches zero, the LSA is discarded and the router floods the LSA with TTL=0 to tell other routers to delete this information.

University of Delaware CPEG zA LSA is generated periodically (on the order of hours) or when a change is detected (via the HELLO). zWhen a node reboots, it doesn’t know its seq. no. yIt floods its link state with seq. no. 0. yIt sends a Link State Request to its neighbors yThe neighbors respond with the most up to date LSA they have. These LSA may contain the LSA of the before it crashed. In this case, the node updates its seq. no. yRemember that every time a router gets a new info, it floods the information.

University of Delaware CPEG Security Issues zAn attacker could send fake LSAs. zMust filter out LSA from any other source but the neighbor and use authentication. zIf a router is compromised, it could advertise a low cost to all nodes. Then all nodes will send packets to this node and the network would stop working.

University of Delaware CPEG metrics zARPANET – the link cost included the size of the queue (a measure of congestion). yThis does not work.. zStatic cost – just use delay (Juniper seems to do this) zDynamic cost – must make sure that link costs do not vary too much. yThe cost can is restricted to only change slowly over time. yThe cost between links cannot vary much. There cannot be more than a factor of 7 difference between the most and least expensive link. yThe cost of a link can only vary by a factor of 3. yCost only depends on utilization at moderate or high loads. yOnly send updates when the cost crosses a threshold. yIs this stable?

University of Delaware CPEG TOS – Type of Service zA data packet can identify the type of service it wants. zThe router can provide different routing according to the TOS.. zTo support this, OSPF allows the link cost to depend on the TOS. zThis is not widely deployed.

University of Delaware CPEG OSPF Header versiontypelength Source address Area ID ChecksumAuthentication type Authentication Type: 1=hello 2=database description 3=link status request 4=link state update 5=link state ack Which area the packet originated Address of the sender

University of Delaware CPEG OSPF LSA LS AgeOptionsType=1 Link State ID Advertising Router Seq. No ChecksumLength Number of Links Link ID Link Data MetricLink TypeNum TOS Optional TOS More Links Like TTL The same

University of Delaware CPEG 41920

University of Delaware CPEG 41921

University of Delaware CPEG 41922