Intra-domain Routing

Similar documents
Distance Vector Routing Protocols. Routing Protocols and Concepts Ola Lundh

Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

Chapter 4. Distance Vector Routing Protocols

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

Routing Protocols (RIP, OSPF, BGP)

Administrative Distance

Lecture 13: Distance-vector Routing. Lecture 13 Overview. Bellman-Ford Algorithm. d u (z) = min{c(u,v) + d v (z), c(u,w) + d w (z)}

Introduction to LAN/WAN. Network Layer

Route Discovery Protocols

Lecture 12: Link-state Routing"

Outline. Internet Routing. Alleviating the Problem. DV Algorithm. Routing Information Protocol (RIP) Link State Routing. Routing algorithms

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

CS Computer Networks 1: Routing Algorithms

Routing in packet-switching networks

CS335 Sample Questions for Exam #2

Link-State Routing Protocols

6.263 Data Communication Networks

Based on Computer Networking, 4 th Edition by Kurose and Ross

Lecture 2.1 : The Distributed Bellman-Ford Algorithm. Lecture 2.2 : The Destination Sequenced Distance Vector (DSDV) protocol

Talk Announcement CSC Lecture 5 Intra-Domain Routing Protocols. Administrivia. This Time

Internet Control Message Protocol (ICMP)

COMP 631: COMPUTER NETWORKS. Internet Routing. Jasleen Kaur. Fall Forwarding vs. Routing: Local vs. Distributed

Computer Networks. Main Functions

Routing with OSPF. Introduction

Chapter 10 Link-State Routing Protocols

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

Router and Routing Basics

College 5, Routing, Internet. Host A. Host B. The Network Layer: functions

Ethernet (LAN switching)

WAN Wide Area Networks. Packet Switch Operation. Packet Switches. COMP476 Networked Computer Systems. WANs are made of store and forward switches.

Introduction to Metropolitan Area Networks and Wide Area Networks

Advanced Networking Routing: RIP, OSPF, Hierarchical routing, BGP

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

6.02 Practice Problems: Routing

Final Exam. Route Computation: One reason why link state routing is preferable to distance vector style routing.

Table of Contents. Cisco How Does Load Balancing Work?

Outline. EE 122: Interdomain Routing Protocol (BGP) BGP Routing. Internet is more complicated... Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Exterior Gateway Protocols (BGP)

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

Lesson 5-3: Border Gateway Protocol

OSPF Routing Protocol

CS 5480/6480: Computer Networks Spring 2012 Homework 3 Due by 1:25 PM MT, Monday March 5 th 2012

Question 1. [7 points] Consider the following scenario and assume host H s routing table is the one given below:

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Introducing Basic MPLS Concepts

OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

Transport and Network Layer

Configuring a Gateway of Last Resort Using IP Commands

Simulation of Heuristic Usage for Load Balancing In Routing Efficiency

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January

Level 2 Routing: LAN Bridges and Switches

Network layer: Overview. Network layer functions IP Routing and forwarding

Data Networks Project 2: Design Document for Intra-Domain Routing Protocols

IP Multicasting. Applications with multiple receivers

Interconnecting Cisco Networking Devices Part 2

Introduction to Dynamic Routing Protocols

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

CCNA Exploration 4.0: (II) Routing Protocols and Concepts. Chapter 1: Introduction to Routing and Packet Forwarding

CSE 473 Introduction to Computer Networks. Exam 2 Solutions. Your name: 10/31/2013

O /27 [110/129] via , 00:00:05, Serial0/0/1

A REPORT ON ANALYSIS OF OSPF ROUTING PROTOCOL NORTH CAROLINA STATE UNIVERSITY

Network Layer: Network Layer and IP Protocol

Wide Area Networks. Learning Objectives. LAN and WAN. School of Business Eastern Illinois University. (Week 11, Thursday 3/22/2007)

Routing Protocols OSPF CHAPTER. The following topics describe supported routing protocols. Topics include OSPF, page 9-1 IS-IS Protocol, page 9-3

Using the Border Gateway Protocol for Interdomain Routing

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

Routing. Static Routing. Fairness. Adaptive Routing. Shortest Path First. Flooding, Flow routing. Distance Vector

Transport Layer Protocols

Configuring RIP. Overview. Routing Update Process CHAPTER

10CS64: COMPUTER NETWORKS - II

Can Forwarding Loops Appear when Activating ibgp Multipath Load Sharing?

GregSowell.com. Mikrotik Routing

Giving life to today s media distribution services

Implementing MPLS VPN in Provider's IP Backbone Luyuan Fang AT&T

THE UNIVERSITY OF AUCKLAND

RIP: Routing Information Protocol

Internet Layer. Routing Tables. Routing in the Internet. Routing Protocols

DEMYSTIFYING ROUTING SERVICES IN SOFTWAREDEFINED NETWORKING

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

RIP: Routing Information Protocol

IP Routing Configuring RIP, OSPF, BGP, and PBR

Broadband Networks. Prof. Karandikar. Department of Electrical Engineering. Indian Institute of Technology, Bombay. Lecture - 26

CS 5480/6480: Computer Networks Spring 2012 Homework 4 Solutions Due by 1:25 PM on April 11 th 2012

IP Traffic Engineering over OMP technique

Route Optimization. rek Petr Grygarek, VSB-TU Ostrava, Routed and Switched Networks 1

WAN Topologies MPLS. 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr Cisco Systems, Inc. All rights reserved.

Agenda. Distributed System Structures. Why Distributed Systems? Motivation

Faculty of Engineering Computer Engineering Department Islamic University of Gaza Network Chapter# 19 INTERNETWORK OPERATION

Ad hoc On Demand Distance Vector (AODV) Routing Protocol

Lecture 18: Border Gateway Protocol"

Inter-domain Routing. Outline. Border Gateway Protocol

- Routing Information Protocol -

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Internetworking II: MPLS, Security, and Traffic Engineering

Analysis of QoS Routing Approach and the starvation`s evaluation in LAN

The Internet: A Remarkable Story. Inside the Net: A Different Story. Networks are Hard to Manage. Software Defined Networking Concepts

Introduction to LAN/WAN. Network Layer (part II)

Quality of Service Routing in MPLS Networks Using Delay and Bandwidth Constraints

The Internet. Internet Technologies and Applications

- IGRP - IGRP v1.22 Aaron Balchunas

Transcription:

Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm CS 640 1

Overview Forwarding vs Routing forwarding: to select an output port based on destination address and routing table routing: process by which routing table is built Network as a Graph Assume single admin. authority Assume nodes are routers Assume links have cost Problem: Find lowest cost path (sum of links) between two nodes CS 640 2

Routing Protocol Issues It may be simple to calculate least cost path if graph is static but Links and routers go down Links and routers are added Traffic can cause links to overload How are costs calculated? Algorithm must be distributed in order to scale Rich area for research due to distributed, dynamic nature of the problem Different routers can have different routes at same time CS 640 3

Distance Vector Each node constructs a one dimensional array (a vector) containing the distances (costs) to all other nodes and distributes that vector to its immediate neighbors Starting assumption is that each node knows the cost of the link to each of its directly connected neighbors

Distance Vector Initial distances stored at each node (global view)

Distance Vector Initial routing table at node A

Distance Vector Final routing table at node A

Distance Vector Final distances stored at each node (global view)

Distance Vector The distance vector routing algorithm is sometimes called as Bellman-Ford algorithm Every T seconds each router sends its table to its neighbor each each router then updates its table based on the new information Problems include fast response to good new and slow response to bad news. Also too many messages to update

Distance Vector When a node detects a link failure F detects that link to G has failed F sets distance to G to infinity and sends update to A A sets distance to G to infinity since it uses F to reach G A receives periodic update from C with 2-hop path to G A sets distance to G to 3 and sends update to F F decides it can reach G in 4 hops via A

Distance Vector Slightly different circumstances can prevent the network from stabilizing Suppose the link from A to E goes down In the next round of updates, A advertises a distance of infinity to E, but B and C advertise a distance of 2 to E Depending on the exact timing of events, the following might happen Node B, upon hearing that E can be reached in 2 hops from C, concludes that it can reach E in 3 hops and advertises this to A Node A concludes that it can reach E in 4 hops and advertises this to C Node C concludes that it can reach E in 5 hops; and so on. This cycle stops only when the distances reach some number that is large enough to be considered infinite Count-to-infinity problem

Count-to-infinity Problem Use some relatively small number as an approximation of infinity For example, the maximum number of hops to get across a certain network is never going to be more than 16 Could still take long, so need some work around to make things faster. One technique to improve the time to stabilize routing is called split horizon When a node sends a routing update to its neighbors, it does not send those routes it learned from each neighbor back to that neighbor For example, if B has the route (E, 2, A) in its table, then it knows it must have learned this route from A, and so whenever B sends a routing update to A, it does not include the route (E, 2) in that update

Count-to-infinity Problem In a stronger version of split horizon, called split horizon with poison reverse Works for routing loops involving two nodes but not for longer B actually sends that back route to A, but it puts negative information in the route to ensure that A will not eventually use B to get to E For example, B sends the route (E, ) to A

Routing Information Protocol (RIP) Example Network running RIP RIPv2 Packet Format

Link State Routing Strategy: Send to all nodes (not just neighbors) information about directly connected links (not entire routing table). Link State Packet (LSP) A. id of the node that created the LSP B. cost of link to each directly connected neighbor C. sequence number (SEQNO) D. time-to-live (TTL) for this packet A and B are used for route calculation C and D are used to make flooding reliable i.e. all nodes have recent copy Reliable Flooding A. store most recent LSP from each node B. forward LSP to all nodes but one that sent it C. generate new LSP periodically; increment SEQNO D. start SEQNO at 0 when reboot E. decrement TTL of each stored LSP; discard when TTL=0 F. Acks on every hop

Link State Reliable Flooding Flooding of link-state packets. (a) LSP arrives at node X; (b) X floods LSP to A and C; (c) A and C flood LSP to B (but not X); (d) flooding is complete

Link State LSPs are Periodic Triggered Sequence numbers help keep most recent info floating around the n/w LSPs clocked locally and then flushed out How it works? If no LSP exists then add Else if incoming seqno is greater then overwrite else discard if new info then forward LSP out

Shortest Path Routing Dijkstra s Algorithm - Assume non-negative link weights N: set of nodes in the graph l((i, j): the non-negative cost associated with the edge between nodes i, j N and l(i, j) = if no edge connects i and j Let s N be the starting node which executes the algorithm to find shortest paths to all other nodes in N Two variables used by the algorithm M: set of nodes incorporated so far by the algorithm C(n) : the cost of the path from s to each node n The algorithm M = {s} For each n in N {s} C(n) = l(s, n) while ( N M) M = M {w} such that C(w) is the minimum for all w in (N-M) For each n in (N-M) C(n) = MIN (C(n), C(w) + l(w, n))

Routing Table for Node A 5 B 3 A 10 11 C D 2 C(N) B C D M={A} 5 10 INFINITY M={A,B} 5 8 16 M={A,B,C} 5 8 10

Open Shortest Path First (OSPF) OSPF Header Format OSPF Link State Advertisement For OSPF Link State Assignment : type=1 -> info about link between routers type=2 -> info about n/w attached

Summary We have looked at some of the issues involved in building scalable and heterogeneous networks by using switches and routers to interconnect links and networks. To deal with heterogeneous networks, we have discussed in details the service model of Internetworking Protocol (IP) which forms the basis of today s routers. We have discussed in details two major classes of routing algorithms Distance Vector Link State