Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.

Slides:



Advertisements
Similar presentations
4/12/2015© 2009 Raymond P. Jefferis IIILect Internet Protocol - Continued.
Advertisements

Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
© 2007 Cisco Systems, Inc. All rights reserved.ICND2 v1.0—3-1 Medium-Sized Routed Network Construction Reviewing Routing Operations.
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
Distance-Vector and Path-Vector Routing Sections , 4.3.2, COS 461: Computer Networks Spring 2011 Mike Freedman
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.
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
Summary The Problem The Dijkstra’s Shortest Path Algorithm
Distance-Vector Routing COS 461: Computer Networks Spring 2010 (MW 3:00-4:20 in COS 105) Michael Freedman
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
Routing.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
EE 122: Intra-domain routing Ion Stoica September 30, 2002 (* this presentation is based on the on-line slides of J. Kurose & K. Rose)
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing.
CS 453 Computer Networks Lecture 24 IP Routing. See…
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.
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.
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.
Count to infinity problem
Link-state routing  each node knows network topology and cost of each link  quasi-centralized: each router periodically broadcasts costs of attached.
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
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.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
Static versus Dynamic Routes Static Route Uses a protocol route that a network administrators enters into the router Static Route Uses a protocol route.
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)
Routing 2 CS457 Fall 2010.
Network Layer4-1 Distance Vector: link cost changes Link cost changes: r node detects local link cost change r updates distance table (line 15) r if cost.
Distance Vector Local Signpost Direction Distance Routing Table For each destination list: Next Node Distance Table Synthesis Neighbors exchange table.
Networking and internetworking devices. Repeater.
Internet Routing r Routing algorithms m Link state m Distance Vector m Hierarchical routing r Routing protocols m RIP m OSPF m BGP.
Interior Gateway Protocols (RIP, OSPF) continued….
Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
Routing Protocols Brandon Wagner.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Ch 22. Routing Direct and Indirect Delivery.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Graph Algorithms Why graph algorithms ? It is not a “graph theory” course! Many problems in networks can be modeled as graph problems. Note that -The topology.
Network Layer (2). Review Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations.
Distance Vector Routing
Distance Vector and Link State Routing Pragyaditya Das.
4. Interconnecting Networks: Routers. © Tallal Elshabrawy 2 Bridges Vs Routers BRIDGES DO WELL IN SMALL (FEW HUNDRED HOSTS) WHILE ROUTERS USED IN LARGE.
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.
Chapter 7 Packet-Switching Networks Shortest Path Routing.
Network Layer.
CS 5565 Network Architecture and Protocols
Centralized vs Distributed Routing
Instructor Materials Chapter 5: Dynamic Routing
Routing Protocols and Concepts
COMP 3270 Computer Networks
Link-State Routing Protocols
Network Layer.
THE NETWORK LAYER.
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing: Distance Vector Algorithm
Routing.
Chapter 5: Dynamic Routing
Link-State Routing Protocols
CS 640: Introduction to Computer Networks
RFC 1058 & RFC 2453 Routing Information Protocol
Link-State Routing Protocols
Communication Networks
Communication Networks
Network Layer.
Routing.
OSPF Protocol.
Presentation transcript:

Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford algorithm. Shortest path routing algorithm is perfect if we know the precise network topology. –How to maintain the global network state information? This is also an important part of practical routing algorithms.

Distance Vector Routing: –used at ARPANET till 1979, still used in WAN(RIP) Each router maintains a routing table, where each node in the network has an entry in the table. Each entry contains two parts, the outgoing line for the destination (node) and the distance (time, cost, whatever) to the destination. Each router knows the distance to its neighbors In a certain period of time, each router sends the table to each of its neighbors. When a router receives a table from each of its neighbors, it updates its routing table, determines the new minimum distance and the outgoing link for the destination.

A B C D E A B C D E A (0, -) (8, C) (5, A) (4, E) (3, A) B (4, B) (0, - ) (3, B) (3, C) (3, D) C (2, C) (5, C) (0, - ) (2, C) (2, D) D (5, E) (3, D) (3, B) (0, - ) (1, D) E (2, E) (9, A) (8, A) (3, E) (0, - ) Routing table for node A Routing table for node D. Let dist(B, A) = 4, dist(B, D) = 1, dist (B, C) = 10, what is B’s routing table in the next cycle?

The count-to-infinity problem. A B C D E # # # # # # # # # # …... Good news propagates fast, bad news propagates slow. Some heuristics (split horizon). But the heuristics do not solve the problem.

link state routing ( currently used in the internet, OSPF ): »The distance vector algorithm converges too slow. 1) discover its neighbors 2) measure the distance to each neighbor 3) construct a packet telling all that is learned 4) send the packet to all other nodes -- flooding 5) each node computes the shortest path to all other nodes -- Dijsktra algorithm.

A B C D E Link state packets Node A: (A, seq, age, ((B, 4), (C, 4),(E, 2)) Node B: (B, seq, age, ((A, 4), (D, 2), (C, 1)) …. Node E: (E, seq, age, ((A, 2), (D, 5))

If everything goes ok, every node will have the whole information of the network in the next step, algorithm converges faster than the distance vector method. The count to infinite problem? Some of current research on the link state algorithm. –Use broadcast tree instead of flooding –Use local update to the fix the routing table instead of running the full shortest path algorithm –When the send the link state packet »periodical or sudden change?