Interior Gateway Protocols: RIP & OSPF

Slides:



Advertisements
Similar presentations
RIP V1 W.lilakiatsakun.
Advertisements

Courtesy: Nick McKeown, Stanford
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Interior Gateway Protocols: RIP & OSPF Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
CSE331: Introduction to Networks and Security Lecture 9 Fall 2002.
Nov 04, 2004CS573: Network Protocols and Standards1 IP Routing: GGP and RIP Network Protocols and Standards Autumn
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Interior Gateway Protocols: RIP & OSPF Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Routing.
COS 420 Day 17. Agenda Finished Grading Individualized Projects Very large disparity in student grading No two students had same ranking for other students.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
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.
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.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
TCP/IP Protocol Suite1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
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.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Routing Dynamically Routing Protocols.
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
CS 4396 Computer Networks Lab
Slide /2009COMM3380 Routing Algorithms Distance Vector Routing Each node knows the distance (=cost) to its directly connected neighbors A node sends.
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
Routing and Routing Protocols Routing Protocols Overview.
Sybex CCNA Chapter 6: IP Routing Instructor & Todd Lammle.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
Routing -2 Dynamic Routing
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
1 Routing. 2 Routing is the act of deciding how each individual datagram finds its way through the multiple different paths to its destination. Routing.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
RIP2 (Routing Information Protocol) Team Agile. Routing Protocols Link State – OSPF – ISIS Distance vector – RIP (version 1 and 2) – IGRP (Cisco Proprietary)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
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.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Routing Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Routing and Routing Protocols
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
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 Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Ch 22. Routing Direct and Indirect Delivery.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
RIP Routing Protocol. 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.
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.
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.
Malathi Veeraraghavan (originals by Jörg Liebeherr) 1 Link State Routing Algorithm Use a routing protocol to collect the whole network topology Obtain.
+ Dynamic Routing Protocols 2 nd semester
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols part2
Routing Protocols (RIP, OSPF, BGP)
Routing Information Protocol (RIP)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Intra-Domain Routing Jacob Strauss September 14, 2006.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Routing.
Chapter 5: Dynamic Routing
Dynamic Routing Protocols part2
Routing.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

Interior Gateway Protocols: RIP & OSPF

Overview Routing Tables & static routing Dynamic routing (inter- and intra-domain) Distance vector vs Link state routing RIP, RIPv2 OSPF

Routing vs Forwarding Routing table used by IP forwarding. Can display routing table using command “netstat -rn” Route Table setup by: a) ‘route’ command b) routing daemon (eg: ‘routed’) c) ICMP redirect message.

Routing Table structure Fields: destination, gateway, flags Destination: can be a host address or a network address. If the ‘H’ flag is set, it is the host address. Gateway: router/next hop IP address. The ‘G’ flag says whether the destination is directly or indirectly connected. U flag: Is route up ? G flag: router (indirect vs direct) H flag: host (dest field: host or n/w address?)

Static Routing Upon booting, default routes initialized from files. Eg: /etc/rc.net in AIX, /etc/netstart in BSD, /etc/rc.local in SUN/Solaris Use ‘route’ command to add new routes eg: route add default sun 1

Dynamic routing Internet organized as “autonomous systems” (AS). Interior Gateway Protocols (IGPs) within AS. Eg: RIP, OSPF, HELLO Exterior Gateway Protocols (EGPs) for AS to AS routing. Eg: EGP, BGP-4

Dynamic routing methods Link state routing: Get map of network (in terms of link states) and calculate best route (but specify only a signpost: I.e. the next-hop) Distance vector

Distance Vector routing How to find distances ? Look in neighbors’ distance vectors, and add link cost to reach the neighbor Find which direction yields minimum distance to to particular destination. Turn signpost that way. Keep checking if neighbors change their signposts and modify local vector if necessary. Called the “Bellman-Ford algorithm”

Distance Vector routing

Distance Vector routing

Distance Vector routing

Routing Information Protocol (RIP) Active / Passive participant Use Hop count matric To simulate slow link, manager can add high hop counts. Tables (vectors) “advertised” to neighbors every 30 s. To improve performance and efficiency Hysteresis: Equal cost routes doesn’t replaced

Protocol details: Robustness: Entries invalid if no refresh for 180 s. Runs over UDP. Init: send request message asking for vectors Format can carry upto 25 routes (within 512 bytes) RIPv1 does not carry subnet masks => many networks use default of 255.255.255.0

RIP problems Counting-to-infinity problem: Slow convergence after topology change: Due to count to infinity problem Also information cannot propagate thru node until it recalculates routing info.

RIP Problems Solution Split-horizon:  Router does not propagate information back over the same interface from which route arrives  No routing loops Hold Down Timer once bad news received wait 60 sec. Triggered updates used to inform neighbors when table changes.

RIP problems (contd) Broadcasts consume non-router resources Does not support subnet masks (VLSMs) No authentication

RIPv2 Why ? Installed base of RIP routers Provides: VLSM support Authentication Multicasting “Wire-sharing” by multiple routing domains, Tags to support EGP/BGP routes. Uses reserved fields in RIPv1 header. First route entry replaced by authentication info.

Link State protocols Create a network “map” at each node. For a map, we need links and attributes (link states), not of destinations and metrics (distance vector) 1. Node collects the state of its connected links and forms a “Link State Packet” (LSP) 2. Broadcast LSP => reaches every other node in the network. 3. Given map, run Dijkstra’s shortest path algorithm => get paths to all destinations 4. Routing table = next hops of these paths.

Dijkstra’s algorithm A.k.a “Shortest Path First” (SPF) algorithm. Idea: compute shortest path from a “root” node to every other node.“Greedy method”: P is a set of nodes for which shortest path has already been found. For every node “o” outside P, find shortest one-hop path from some node in P. Add that node “o” which has the shortest of these paths to P. Record the path found. Continue till we add all nodes (&paths) to P

Topology dissemination 1. Sequence numbers to detect duplicates Why? Routers/links may go down/up Problem: wrap-around => have large seq # space 2. Age field (similar to TTL) Periodically decremented after acceptance Zero => discard LSP & request everyone to do so Router awakens => knows that all its old LSPs would have been purged and can choose a new initial sequence number

Link state vs Distance vector Advantages: More stable (asa fewer routing loops) Faster convergence than distance vector Easier to discover network topology, troubleshoot network. Can do better source-routing with link-state Type & Quality-of-service routing (multiple route tables) possible Caveat: With path-vector-type distance vector routing, these arguments don’t hold

OSPF OSPF runs directly on top of IP (not over UDP) It can calculate a separate set of routes for each IP type of service (=> multiple routing entries) Dimensionless cost (eg: based on throughput, delay) Load balancing: distributing traffic equally among routes Supports VLSMs: subnet mask field in header Supports multicasting, authentication, unnumbered networks (point-to-point).

Summary Route Tables Distance vector, RIP, RIPv2 Link state, OSPF.