Spring 20071 Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 06/04/2007.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Cisco S3 C5 Routing Protocols. Network Design Characteristics Reliable – provides mechanisms for error detection and correction Connectivity – incorporate.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 22 Omar Meqdadi Department of Computer Science and Software Engineering University.
Dynamic Routing Scalable Infrastructure Workshop, AfNOG2008.
© 2007 Cisco Systems, Inc. All rights reserved.ICND2 v1.0—3-1 Medium-Sized Routed Network Construction Reviewing Routing Operations.
Distance-Vector and Path-Vector Routing Sections , 4.3.2, COS 461: Computer Networks Spring 2011 Mike Freedman
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination Network layer must.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
RIP – Routing Information Protocol Syeda Momina Tabish MIT - 7.
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
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.
CSE 461: Distance Vector Routing. Next Topic  Focus  How do we calculate routes for packets?  Routing is a network layer function  Routing Algorithms.
EE 122: Intra-domain routing Ion Stoica September 30, 2002 (* this presentation is based on the on-line slides of J. Kurose & K. Rose)
1 Dynamic Routing Protocols I RIP Relates to Lab 4. The first module on dynamic routing protocols. This module provides an overview of routing, introduces.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
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.
Each computer and router interface maintains an ARP table for Layer 2 communication The ARP table is only effective for the broadcast domain (or LAN)
ROUTING BASICS. Why are Routers Necessary? One of the key components of the technical infrastructure of the network One of the key components of the technical.
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.)
CS 4396 Computer Networks Lab
M. Menelaou CCNA2 DYNAMIC ROUTING. M. Menelaou DYNAMIC ROUTING Dynamic routing protocols can help simplify the life of a network administrator Routing.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
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 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.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
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)
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.
Distance Vector Routing Protocols Dynamic Routing.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
1 Version 3.1 Module 6 Routed & Routing Protocols.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
Routing Protocols Brandon Wagner.
SEPT, 2005CSI Part 3.1 Wide Area Networks (WANs), Routing, and Shortest Paths Robert L. Probert, SITE, University of Ottawa.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
4: Network Layer4a-1 Distance Vector Routing Algorithm iterative: r continues until no nodes exchange info. r self-terminating: no “signal” to stop asynchronous:
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
1 Dynamic Routing Protocols I RIP Relates to Lab 4. The first module on dynamic routing protocols. This module provides an overview of routing, introduces.
Distance Vector Routing
1. 2  An autonomous system is a region of the Internet that is administered by a single entity.  Examples of autonomous regions are:  UVA’s campus.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
Cisco 2 - Routers Perrine modified by Brierley Page 13/21/2016 Chapter 4 Module 6 Routing & Routing Protocols.
Application Layer 2-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Network Layer Routing Networks: Routing.
CS 5565 Network Architecture and Protocols
CS 457 – Lecture 12 Routing Spring 2012.
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.
Intradomain Routing Outline Introduction to Routing
CS 640: Introduction to Computer Networks
Dynamic Routing and OSPF
Network Layer Routing Networks: Routing.
Wide Area Networks (WANs), Routing, and Shortest Paths
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.
Network Layer Routing.
Presentation transcript:

Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 06/04/2007

Spring Outline Routing –Forwarding vs Routing –Forwarding tables vs Routing tables Network structure Distance Vector Routing Routing Information Protocol

Spring Forwarding VS Routing Earlier we assumed that routers have knowledge of network structure –Virtual Circuits ~ routing is an issue for the connection request –Datagram Model ~ routing is an issue for every packet Forwarding ~ collect a packet, look at the destination, consult a table, send the packet in the right direction –Relatively simple Routing ~ The process of constructing the tables –Reasonably complex distributed algorithms

Spring Forwarding Tables VS Routing Tables Terms used interchangeably ~ incorrect! Forwarding tables ~ used when packet is being sent on the right path –Mapping of network identity to physical address (of the next hop on the path) and outgoing interface Routing tables ~ Built by the routing algorithms as a precursor to building the forwarding tables –Mapping of network identity to the next hop on the path

Spring Forwarding Tables VS Routing Tables Whether these tables are separate data structures is a consideration for implementation –Usually separate Network IdentityNext Hop Network IdentityInterfaceMAC Address 10if48:0:2b:e4:b:1:2 Routing table Forwarding table

Spring Point to ponder! Each router maintains routing tables for the Internet. Will this method scale?

Spring Network Structure Administrative domains –Intra-domain routing protocols ~ Interior gateway protocols –Inter-domain routing protocols Network as a Graph

Spring Network as a Graph Routing is a problem of graph theory. You are given a set of nodes V and a set of edges E such that e= (v i,v j ) in E for v i and v j in V. These two sets define a graph G=(V,E). You are also given a weight function w(.), which maps each e in E to some real valued weight. The problem is to find the lowest-cost path between any two nodes, where the cost of a path equals the sum of the weights of all edges in the path. This can be re-stated as the all-pairs shortest path problem.

Spring Network Structure Network as a Graph –Each edge has a cost ~ indication of the desirability of the link Basic Routing Problem ~ determine the lowest- cost path –Cost = sum of costs of all links forming the path

Spring Proposal Each node discovers its neighbors and tells one specific node (the leader) what they find. The leader runs an algorithm to solve the all-pairs shortest path problem, computing routing tables for each node. The leader communicates the routing table to each node, which stores it in non-volatile memory in each of the nodes. Question: What are the problems with this method?

Spring Limitations of static routing Routing can be done statically at the time of deployment, yet there are drawbacks –It does not deal with node or link failures –It does not consider the addition of new nodes or links –It implies that edge costs do not change Thus we require a dynamic and distributed routing algorithm –Why distributed? Centralized solutions do not scale

Distributed Approach Wins GGP - Predecessor of RIP No distinction between hosts and routers Attempts to keep track of the load in the network

Routing Algorithms - the Design Goals Optimally Simplicity/Low overhead Robustness/ Stability Rapid Convergence Flexibility

Spring Distance Vector Routing Info at node Distance to node ABCDEFG A01111 B101 C1101 D101 E10 F101 G110 DestCostNextHop B1B C1C D- E1E F1F G- Global view A’s view: vector

Spring Distance Vector Routing Every node starts by building it’s own local view of what nodes are 1 hop away. Next, every node sends its vector to its directly connected neighbors. F tells A that it can reach G at cost 1. A knows it can reach F at cost 1, so it updated its own vector to indicate that it can reach G at cost 2. If A were to discover another route to G at a cost higher than 2, it would ignore it and leave its vector as it is. After a few iterations of these exchanges, the routing table converges to a consistent state. Question: How would this method deal with link failures?

Spring Distance Vector Routing Periodic updates: Every t seconds, send your local info to your neighbors. This allows other nodes to know that you are running. Triggered updates: Every time you learn new information from a neighbor that leads you to update your local vector, you send the recomputed vector to all your neighbors. Question: How can you detect that a node has failed?

Spring The Count-to-infinity Problem Link (A,E) goes down. A periodic update kicks in and A advertises that its distance to E is infinity. At about the same time, B and C tell each other that they can reach E in 2 hops. B knows now that it can’t communicate with E via A, but concludes that it can send traffic to C which says it can reach A in 2 hops. Now, B is thinking that its distance to E is 3 hops and it lets A know about that. Argh, now A is going to think it can reach E in 4 hops and it will tell C of this “fact”… Where does this end? The routing table doesn’t converge or stabilize.

Spring “Solutions” for 2-node loops Count-to-infinity: Cap infinity at some maximum number of hops that allow a packet to go all the way across the network. Reduce time to convergence: Split-horizon – when a node sends a routing update to its neighbors, it does not send the routes it learned from a neighbor back to that neighbor. Reduce time to convergence: Split-horizon with poison reverse – communicate back to the sending neighbor but “poison” the route with negative information (infinity) so that it doesn’t end up used as intermediate node in a route.

RIP - Routing Information Protocol first used in XNS (Xerox Network Systems) designed as a component of the networking code for the BSD release of UNIX  incorporated in program “routed” (rote management daemon) documented in rfc 1058

RIP - Characteristics the metric is a hop-count  The value of 1 to 15 is used (16 denotes infinity) supports point-to-point links and broadcast networks  doesn't support CIDR used only in IP networks  at first the intention was to be used in variety of networks

RIP - Characteristics packets are sent every 30 seconds or faster when necessary route is considered down if not refreshed within 180 sec. (distance set to infinity) two kinds of messages  request  response

Spring Questions? That’s all for today!