Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)

Slides:



Advertisements
Similar presentations
Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Advertisements

COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 22 Omar Meqdadi Department of Computer Science and Software Engineering University.
Network Routing Algorithms
Computer Networks with Internet Technology William Stallings
Courtesy: Nick McKeown, Stanford
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
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.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
Routing.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
EECC694 - Shaaban #1 lec #7 Spring The OSI Reference Model Network Layer.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
CS 453 Computer Networks Lecture 24 IP Routing. See…
Interior Gateway Protocols: RIP & OSPF
SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.
Introduction to Routing and Routing Protocols By Ashar Anwar.
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
Distance Vector Routing 박주호. Introduction.  Modern computer Network generally use Dynamic routing algorithms rather than The.
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
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.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
Routing and Routing Protocols Routing Protocols Overview.
Introduction to Dynamic Routing Protocol
Network Layer introduction 4.2 virtual circuit and datagram networks 4.3 what’s inside a router 4.4 IP: Internet Protocol  datagram format  IPv4.
 A packet does not know how to get to its destination  Must rely on the routers to send it in the right direction  So how do the routers do that?
1. 2 Anatomy of an IP Packet IP packets consist of the data from upper layers plus an IP header. The IP header consists of the following:
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.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
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.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
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.
Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.
1 Version 3.1 Module 6 Routed & Routing Protocols.
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 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.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
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.
Network-Layer Routing Routing tasks are methods of finding the paths for packet from their sources to their destinations. Routers are responsible mainly.
Distance Vector Routing
Distance Vector and Link State Routing Pragyaditya Das.
6/12/2016© 2010 Raymond P. Jefferis IIILect The Network Layer.
Prof. Alfred J Bird, Ph.D., NBCT Office – Science 3rd floor – S Office Hours – Monday and Thursday.
Prof. Alfred J Bird, Ph.D., NBCT Office – McCormick 3rd floor 607 Office Hours – Monday 3:00 to 4:00 and.
COMP 3270 Computer Networks
Dynamic Routing Protocols part2
THE NETWORK LAYER.
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing.
Chapter 5: Dynamic Routing
(How the routers’ tables are filled in)
Kuliah 5 ROUTING.
Delivery, Forwarding, and Routing
Routing.
Presentation transcript:

Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum) Shortest path routing static simple and easy to understand. Metric for a shortest path: distance, bandwidth, average traffic, communication cost, mean queue length, measured delay, ….

Dijkstra (1959):

Distance vector routing dynamic each router maintains a table (vector) giving the best known distance to each destination and which line to use to get there. Distributed Bellman-Ford routing algorithm and the Ford-Fulkerson algorithm. Original ARPANET routing algorithm. Routing Information Protocol (RIP) one entry for each router. Metric: hopes, queue length, delay.

The count-to-infinity problem serious drawback in practice. Reacts rapidly to good news, but leisurely to bad news. why bad news travels slowly: no router ever has a value more than one higher than the minimum of all its neighbors. -> set infinity to the longest path plus 1.

Idea behind link state routing demise of distance vector routing did not take line bandwidth into account often took too long to converge. Idea behind link state routing discover its neighbors and learn their network address. measure the delay or cost to each of its neighbors. construct a packet telling all it has just learned. send this packet to all other routers. compute the shortest path to every other router.

Learning about the neighbors. Send a special HELLO packet on each point-to-point line after a router is booted. Send back a reply telling who it is.

Measuring line cost each router know the delay to each of its neighbors by sending a special ECHO packet. Whether or not to take the load into account when measuring the delay. The routing tables may oscillate wildly.

Building link state packets the hard part is determining when to build them: periodically or some significant event occurs.

Distributing the link state packets the different routers may be using different versions of topology. Idea Use flooding to distribute the link state packets. Routers keep track of all the (source router, sequence) pairs they see. If it is new, forward on all lines except the one it arrived on. If a duplicate, discard. If a sequence number lower, reject. A few problems sequence numbers wrap around. router crashes (starts again at 0) sequence number is corrupted.

Solution: when the age hits zero, the information from that router is discarded. The age field is decremented by each router during the initial flooding process. The send flags mean that the packet must be sent on the indicated line. The acknowledgement flags mean that it must be acknowledged there.

Hierarchical Routing Computing the new routes after accumulating a full set of link state packets, the entire subnet graph can be constructed. Dijkstra’s algorithm n routers with each of which has k neighbors -> the memory is proportional to kn. IS-IS, OSPF Hierarchical Routing telephone network regions the penalty for space saving in routers is in the form of increased path length.

Multicast routing send messages to well-defined groups that are numerically large in size but small compared to the network as a whole. Group management is required. Routers know which of their hosts belong to which groups.

Routing in the Internet Intra-AS routing: RIP and OSPF Routing Information Protocol Distance vector protocol Hop count as a cost metric Max cost of a path: 15 Every 30 seconds for RIP advertisements Open Shortest Path First Link state protocol Once every 30 minutes Adv.: security, multiple same-cost paths, integrated support for unicast and multicast routing, and support for hierarchy within a single routing domain.

Fig 4.35

Inter-AS routing: BGP Path vector protocol Exchange path information than cost information Routing policy On TCP