1 Routing Lesson 10 NETS2150/2850 School of Information Technologies.

Slides:



Advertisements
Similar presentations
Ch. 12 Routing in Switched Networks
Advertisements

1 Routing Protocols I. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 12 – Routing in Switched Networks.
Data and Computer Communications
William Stallings Data and Computer Communications 7 th Edition Chapter 12 Routing.
Data and Computer Communications Ninth Edition by William Stallings Chapter 12 – Routing in Switched Data Networks Data and Computer Communications, Ninth.
Routing Basics What’s going on the back … Faisal Karim Shaikh DEWSNet Group Dependable Embedded Wired/Wireless Networks.
Routing - I Important concepts: link state based routing, distance vector based routing.
Routing Strategies Fixed Routing
EE 4272Spring, 2003 Chapter 10 Packet Switching Packet Switching Principles  Switching Techniques  Packet Size  Comparison of Circuit Switching & Packet.
Computer Networks The Data Link / Network Layer Functions: Routing
Data Communications Packet Switching.
Teknik Routing Pertemuan 20 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Routing & IP Routing Protocols
Data Communication and Networks Lecture 7 Networks: Part 2 Routing Algorithms October 27, 2005.
Chapter 10 Introduction to Wide Area Networks Data Communications and Computer Networks: A Business User’s Approach.
Packet Switching EE3900 Data Communications and LANs Packet Switching Slide 1.
Routing Protocol Pertemuan 21 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
EE 122: Intra-domain routing Ion Stoica September 30, 2002 (* this presentation is based on the on-line slides of J. Kurose & K. Rose)
The Internet: Packet Switching and Other Big Ideas Ian Foster.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Routing.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Data Communications & Computer Networks
Network Layer Goals: understand principles behind network layer services: –routing (path selection) –dealing with scale –how a router works –advanced topics:
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Chapter 12 Routing in Switched Networks. Routing in Packet Switched Network  key design issue for (packet) switched networks  select route across network.
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.
TCP Traffic and Congestion Control in ATM Networks
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.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
CIS Routing in IP. Introduction Routers forward IP datagrams from one router to another on path from source to destination Router must have idea.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
The Network Layer & Routing
1 Week 5 Lecture 2 IP Layer. 2 Network layer functions transport packet from sending to receiving hosts transport packet from sending to receiving hosts.
Data and Computer Communications Ninth Edition by William Stallings Unit 12 – Routing in Switched Data Networks Data and Computer Communications, Ninth.
CSCI 465 D ata Communications and Networks Lecture 15 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Advance Computer Networks Lecture#08 Instructor: Engr. Muhammad Mateen Yaqoob.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
Networking and internetworking devices. Repeater.
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.
William Stallings Data and Computer Communications 7th Edition
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
4: Network Layer4-1 Chapter 4: Network Layer Last time: r Chapter Goals m Understand network layer principles and Internet implementation r Started routing.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Cisco 2 - Routers Perrine modified by Brierley Page 13/21/2016 Chapter 4 Module 6 Routing & Routing Protocols.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
IP tutorial - #2 Routing KAIST Dept. of CS NC Lab.
William Stallings Data and Computer Communications
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Dijkstra’s shortest path Algorithm
Network Layer.
Network Layer – Routing 1
Road Map I. Introduction II. IP Protocols III. Transport Layer
Shortest Path Algorithm
Packet Switching Around 1970, research began on a new form of architecture for long distance communications: Packet Switching.
Data and Computer Communications
ECE453 – Introduction to Computer Networks
Shortest Path Algorithm
CSCI 465 Data Communications and Networks Lecture 16
Presentation transcript:

1 Routing Lesson 10 NETS2150/ School of Information Technologies

2 Lesson Outline Know the characteristics of unicast routing protocol Understand various ways of routing —Routing Strategies Experiment with common routing algorithms —Dijsktra’s Algorithm of OSPF —Bellman-Ford Algorithm of RIP

3 Routing Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links —link cost/weight: delay, $ cost or congestion level Goal: find “good” path thru network from source to destination. Routing protocol A E D CB F “good” path: —typically means minimum cost path

4 Routing in Packet Switched Network Routing protocol establish mutually consistent routing tables in every router Characteristics of routing protocol: —Correctness —Simplicity —Robustness —Stability —Fairness —Optimality —Efficiency application transport network data link physical application transport network data link physical 1. Send data 2. Receive data network data link physical Packet switching network

5 Performance Criteria How to select “best” path? Used for selection of path —Minimum hop —Least cost IP routing table Destination Gateway Netmask Iface eth lo eth0

6 Example Packet Switched Network Link cost Shortest path VS Least-cost path

7 Routing Strategies Fixed Flooding Random Adaptive

8 Fixed Routing Single permanent path for each source to destination pair Path fixed, at least until a change in network topology

9 Fixed Routing Tables Network Topology

10 Flooding Packet sent by node to every neighbour and the neighbour sends to its neighbours Incoming packets retransmitted on every link except incoming link Eventually a number of copies will arrive at destination Each packet is uniquely numbered so duplicates can be discarded To bound the flood, max hop count is included in the packets If (Packet’s hop count = = max_hop_count) discard!

11 Flooding Example

12 Properties of Flooding All possible routes are tried —Very robust At least one packet will have taken minimum hop count or “best” route All nodes are visited The common approach used to distribute routing information, like a node’s link costs to neighbours

13 Random Routing Node selects one outgoing path for retransmission of incoming packet Selection can be random or round robin Can select outgoing path based on probability calculation Path is typically not “best” one Used in ‘hot potato routing’ — nodes have no buffer to store packets — packets routed to any path of the lowest delay

14 Adaptive Routing Used by almost all packet switching networks Routing decisions change as conditions on the network change —Failure —Congestion Requires info about network Decisions more complex

15 Adaptive Routing - Advantages Improved performance Aids congestion control by exercising load balancing across different alternative paths But, it is complex —Reacting too quickly can cause oscillation —Too slowly, may not be relevant

16 Routing Algorithm classification Global or decentralised information? Global: all routers have complete topology, link cost info Known as “link state” algorithms E.g. Dijkstra’s Algorithm Decentralised: router knows physically-connected neighbours, i.e link costs to neighbours iterative process of computation, exchange of info with neighbours Known as “distance vector” algorithms E.g. Bellman-Ford Algorithm

17 Routing Algorithms Given network of nodes connected by bi- directional links Each link has a cost in each direction and may be different Cost of path between two nodes is sum of costs of links traversed For each pair of nodes, find a path with the least cost

18 Dijkstra’s Algorithm Definitions Find shortest paths from given source node to all other nodes, by developing paths in order of increasing path length N =set of nodes in the network s =source node T =set of nodes so far incorporated by the algorithm w(i, j) = link cost from node i to node j —w(i, i) = 0 —w(i, j) =  if the two nodes are not directly connected —w(i, j)  0 if the two nodes are directly connected L(n) = cost of least-cost path from node s to node n

19 Dijkstra’s Algorithm Step 1 [Initialization] —T = {s} Set of nodes so far incorporated consists of only source node —L(n) = w(s, n) for n ≠ s Step 2 [Get Next Node] —Find neighbouring node, x, not in T with least-cost path from s —Incorporate node x into T Step 3 [Update Least-Cost Paths] —L(n) = min[L(n), L(x) + w(x, n)] for all n  T Algorithm terminates when all nodes have been added to T

20 Dijkstra’s Algorithm Notes At termination, value L(x) associated with each node x is cost of least-cost path from s to x. One iteration of steps 2 and 3 adds one new node to T —Defines least cost path from s to that node

21 A E D CB F T = {A} A E D CB F T = {A,D} A E D CB F T = {A,D,B} A E D CB F T = {A,D,B,E} A E D CB F T = {A,D,B,E,C} A E D CB F T = {A,D,B,E,C,F}

22 Results of Example Dijkstra’s Algorithm NoTL(B) PathL(C) PathL(D) PathL(E) PathL(F)Path 1{A}2 A–B5 A-C1 A–D -- -- 2{A,D}2 A–B4 A-D-C1 A–D3 A-D-E -- 3{A,D,B}2 A–B4 A-D-C1 A–D3 A-D-E -- 4{A,D,B, E} 2 A–B4 A-D-C1 A–D3 A-D-E5 A-D-E-F 5{A,D,B, E,C} 2 A–B4 A-D-C1 A–D3 A-D-E5 A-D-E-F 6{A,D,B, E,C,F} 2 A–B4 A-D-C1 A–D3 A-D-E5 A-D-E-F

23 Bellman-Ford Algorithm Definitions Find shortest paths from given node considering at most one hop away Then, find the shortest paths with a constraint of paths of at most two hops. Then 3 hops, and so on… s =source node w(i, j) = link cost from node i to node j —w(i, i) = 0 —w(i, j) =  if the two nodes are not directly connected —w(i, j)  0 if the two nodes are directly connected h =maximum number of hops (links) in path L h (n) = cost of least-cost path from s to n, at most h hops away

24 Bellman-Ford Algorithm Step 1 [Initialization] —L h (s) = 0, for all h —L 0 (n) = , for n  s Step 2 [Update] —For each successive h > 0 and each node n: If L h (n) > min j [L h (j) + w(j,n)] Then –L h+1 (n)= min j [L h (j)+w(j,n)] Connect n with predecessor node j that achieves minimum cost

25 A E D CB F h = 1 A E D CB F h = 2 A E D CB F h = 3 A E D CB F h = 4

26 Results of Example Bellman-Ford Algorithm hopL h (B) PathL h (C) PathL h (D) PathL h (E) PathL h (F)Path 12 A–B5 A-C1 A–D -- -- 22 A–B4 A-D-C1 A–D3 A-D-E10 A-C-F 32 A–B4 A-D-C1 A–D3 A-D-E5 A-D-E-F 42 A–B4 A-D-C1 A–D3 A-D-E5 A-D-E-F

27 Algorithms Comparison Results from two algorithms agree Information gathered —Bellman-Ford Each node can maintain set of costs and paths for every other node Only exchange information with direct neighbours Can update costs and paths based on information from neighbours and knowledge of link costs Used as part of the Routing Information Protocol (RIP) —Dijkstra Each node needs complete topology Must know link costs of all links in network Must exchange information with all other nodes Used as part of Open Shortest Path First Protocol (OSPF)

28 OSPF Protocol

29 Example: ImageStream’s TransPort™ router Physical Spec: 533 MHz VIA C3 processor 128 MB SDRAM Runs on Linux Three onboard 10/100 Ethernet ports 1 or 2 T1/E1 ports Software spec: PPP, Cisco HDLC & frame relay ATM PPPoE & PPPoA Routing procotols: —RIP, RIP II, OSPF, IS-IS & BGP4

30 Summary Routing is the process of finding a path from a source to every destination in the network Different routing strategies available Common adaptive routing: —Dijsktra’s algorithm —Bellman-Ford algorithm Read Stallings Section 12.2 and 12.3 Next: Functions of internetwork layer protocol