Communication Networks

Slides:



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

Routing Protocol.
Computer Networks with Internet Technology William Stallings
Courtesy: Nick McKeown, Stanford
© 2007 Cisco Systems, Inc. All rights reserved.ICND2 v1.0—3-1 Medium-Sized Routed Network Construction Reviewing Routing Operations.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
1 Comnet 2010 Communication Networks Recitation 6 Routing.
CSE331: Introduction to Networks and Security Lecture 9 Fall 2002.
Routing So how does the network layer do its business?
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
15-744: Computer Networking L-5 Intra-Domain Routing.
Chapter 4 IP Routing Professor Rick Han University of Colorado at Boulder
RD-CSY /09 Distance Vector Routing Protocols.
Routing.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
Computer Networking Intra-Domain Routing, Part I RIP (Routing Information Protocol)
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing.
RIP. A PPROACHES TO S HORTEST P ATH R OUTING There are two basic routing algorithms found on the Internet. 1. Distance Vector Routing Each node knows.
TCP/IP Protocol Suite1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Routing Concepts Warren Toomey GCIT. Introduction Switches need to know the link address and location of every station. Doesn't scale well, e.g. to several.
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 14 Routing Protocols RIP, OSPF, BGP.
Slide /2009COMM3380 Routing Algorithms Distance Vector Routing Each node knows the distance (=cost) to its directly connected neighbors A node sends.
CS551: Unicast Routing Christos Papadopoulos (
1 Chapter 22 Network layer Delivery, Forwarding and Routing (part2)
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
RIP2 (Routing Information Protocol) Team Agile. Routing Protocols Link State – OSPF – ISIS Distance vector – RIP (version 1 and 2) – IGRP (Cisco Proprietary)
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
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.
Distance Vector Local Signpost Direction Distance Routing Table For each destination list: Next Node Distance Table Synthesis Neighbors exchange table.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vectore Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Interior Gateway Protocols (RIP, OSPF) continued….
Ch 22. Routing Direct and Indirect Delivery.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
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.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Centralized vs Distributed Routing
Routing Information Protocol (RIP)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
COMP 3270 Computer Networks
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing: Distance Vector Algorithm
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Routing.
Dan LI CS Department, Tsinghua University
Dynamic Routing Protocols part2
Routing in Packet Networks Shortest Path Routing
Routing Protocols (RIP, OSPF, BGP).
Intradomain Routing Outline Introduction to Routing
CS 640: Introduction to Computer Networks
RFC 1058 & RFC 2453 Routing Information Protocol
Computer Networking Lecture 10: Intra-Domain Routing
Chapter 22. Network Layer: Routing
Communication Networks
Advanced Computer Networks
EE 122: Intra-domain routing: Distance Vector
Routing Outline Algorithms Scalability Spring 2003 CS 332.
Chapter 4: Network Layer
Routing.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

Communication Networks Recitation 6 Routing Comnet 2010

Routing Problem: find an Optimal Path 5 A R1 R2 R4 R3 R6 R7 R8 B 40 10 20 4 6 15 40 The example network shown on the picture indicates a set of internal connections and the metric value of each connection. Each router selects a first hop for a path to B, based on the total metric of each potential path to B.R1 for example, selects a first hop to R2, on the basis that a path of cost 39 passes through R2 and is the minimum cost from A to B. Comnet 2010

Distance Vector (RIP) Each node maintains a table: (Destination, Cost, NextHop) Each node sends updates to (and receives updates from) its directly connected neighbors periodically (on the order of several seconds) whenever its table changes (called triggered update) Comnet 2010

DV Updates Each update is a list of pairs: (Destination, Cost) Update local table if receive a “better” route smaller cost came from next-hop Refresh existing routes; delete if they time out Convergence rate Comnet 2010

RIP Table Processing RIP routing tables managed by application-level process called routed (daemon) Advertisements sent in UDP packets, periodically repeated Comnet 2010

Example - initial distances 1 Distance to node B C Info at node A B C D E 7 A 7 ~ ~ 1 A 8 2 B 7 1 ~ 8 C ~ 1 2 ~ 1 2 D ~ ~ 2 2 D E E 1 8 ~ 2 Comnet 2010

E receives D’s routes 1 Distance to node B C Info at node A B C D E 7 7 ~ ~ 1 A 8 2 B 7 1 ~ 8 C ~ 1 2 ~ 1 2 D ~ ~ 2 2 D E E 1 8 ~ 2 Comnet 2010

E updates cost to C 1 Distance to node B C Info at node A B C D E 7 A 7 ~ ~ 1 A 8 2 B 7 1 ~ 8 C ~ 1 2 ~ 1 2 D ~ ~ 2 2 D E E 1 8 4 2 Comnet 2010

A receives B’s routes 1 Distance to node B C Info at node A B C D E 7 7 ~ ~ 1 A 8 2 B 7 1 ~ 8 C ~ 1 2 ~ 1 2 D ~ ~ 2 2 D E E 1 8 4 2 Comnet 2010

A updates cost to C 1 Distance to node B C Info at node A B C D E 7 A 7 8 ~ 1 A 8 2 B 7 1 ~ 8 C ~ 1 2 ~ 1 2 D ~ ~ 2 2 D E E 1 8 4 2 Comnet 2010

A receives E’s routes 1 Distance to node B C Info at node A B C D E 7 7 8 ~ 1 A 8 2 B 7 1 ~ 8 C ~ 1 2 ~ 1 2 D ~ ~ 2 2 D E E 1 8 4 2 Comnet 2010

A updates cost to C and D 1 Distance to node B C Info at node A B C D 7 A 7 5 3 1 A 8 2 B 7 1 ~ 8 C ~ 1 2 ~ 1 2 D ~ ~ 2 2 D E E 1 8 4 2 Comnet 2010

Final distances 1 Distance to node B C Info at node A B C D E 7 A 6 5 6 5 3 1 A 8 2 B 6 1 3 5 C 5 1 2 4 1 2 D 3 3 2 2 D E E 1 5 4 2 Comnet 2010

Final distances after link failure 1 Distance to node B C Info at node A B C D E 7 A 7 8 10 1 A 8 2 B 7 1 3 8 C 8 1 2 9 1 2 D 10 3 2 11 D E E 1 8 9 11 Comnet 2010

View from a node E’s routing table 1 Next hop B C dest A B D 7 A 1 14 5 B A 8 2 7 8 5 C 6 9 4 D 4 11 2 1 2 D E Comnet 2010

The bouncing effect dest cost dest cost 1 A 1 B A B 1 C 1 C 2 25 1 C Comnet 2010

C sends routes to B dest cost dest cost A ~ B A B 1 C 1 C 2 25 1 C Comnet 2010

B updates distance to A dest cost dest cost A 3 B A B 1 C 1 C 2 25 1 C Comnet 2010

B sends routes to C dest cost dest cost A 3 B A B 1 C 1 C 2 25 1 C 4 B 1 Comnet 2010

How are these loops caused? Observation 1: B’s metric increases Observation 2: C picks B as next hop to A But, the implicit path from C to A includes itself! Comnet 2010

Solutions Split horizon/Poisoned reverse Works for two node loops B does not advertise route to C or advertises it with infinite distance (16) Works for two node loops does not work for loops with more nodes Comnet 2010

Example where Split Horizon fails When link breaks, C marks D as unreachable and reports that to A and B Suppose A learns it first. A now thinks best path to D is through B. A reports a route of cost=3 to C. C thinks D is reachable through A at cost 4 and reports that to B. B reports a cost 5 to A who reports new cost to C. etc... 1 A B C D Comnet 2010

Link State (OSPF) Link State Protocol OSPF routing table has detailed information about each link : cost, reliability, etc. This allows OSPF routers to optimize routing Link Comnet 2010

Link State Updates Routers send to all nodes (not just neighbors) information about directly connected links. Each router calculates shortest cost path to all others (Dijkstra). At each step of the algorithm, router adds the next shortest (i.e. lowest-cost) path to the tree. Finds spanning tree routed on source router. Comnet 2010

Djikstra’s algorithm - step 1 10 3 2 9 6 4 5 7 2 Comnet 2010

Djikstra’s algorithm - step 2 1 10 10 3 2 9 6 4 5 7 5 2 Comnet 2010

Djikstra’s algorithm - step 3 1 14 8 10 3 2 9 6 4 5 7 5 2 7 Comnet 2010

Djikstra’s algorithm - step 4 1 13 8 10 3 2 9 6 4 5 7 5 2 7 Comnet 2010

Djikstra’s algorithm - step 5 1 9 8 10 3 2 9 6 4 5 7 5 2 7 Comnet 2010

Djikstra’s algorithm - final 1 9 8 10 3 2 9 6 4 5 7 5 2 7 Comnet 2010