Introduction to Dynamic Routing Protocols Last Update 2008.05.02 1.0.0 1Copyright 2008 Kenneth M. Chipps Ph.D. www.chipps.com.

Slides:



Advertisements
Similar presentations
Dynamic Routing Overview 1.
Advertisements

Cisco S3 C5 Routing Protocols. Network Design Characteristics Reliable – provides mechanisms for error detection and correction Connectivity – incorporate.
Routing and Routing Protocols Last Update
Routing Protocol.
Dynamic Routing Scalable Infrastructure Workshop, AfNOG2008.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination Network layer must.
CCNA 2 v3.1 Module 6.
Routing and Routing Protocols
Routing.
Chapter 5 – Routing Protocols: IGRP. Building a Network To Be Reliable – provide error detection and ability to correct errors To Provide Connectivity.
Copyright 2009 Kenneth M. Chipps Ph.D. Routing Protocols Last Update
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
Fundamentals of Networking Discovery 2, Chapter 6 Routing.
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)
Link State Routing Protocol W.lilakiatsakun. Introduction (1) Link-state routing protocols are also known as shortest path first protocols and built around.
Routing and Routing Protocols Dynamic Routing Overview.
M. Menelaou CCNA2 DYNAMIC ROUTING. M. Menelaou DYNAMIC ROUTING Dynamic routing protocols can help simplify the life of a network administrator Routing.
Saeed Darvish Pazoki – MCSE, CCNA Abstracted From: Cisco Press – ICND 2 – 8 Routing Protocol Theory 1.
University of the Western Cape Chapter 11: Routing Aleksandar Radovanovic.
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Routing and Routing Protocols Routing Protocols Overview.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
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.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 6 Routing and Routing Protocols.
Introduction to Dynamic Routing Protocol
Routing -2 Dynamic Routing
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
1. 2 Anatomy of an IP Packet IP packets consist of the data from upper layers plus an IP header. The IP header consists of the following:
CCNA 1 Module 10 Routing Fundamentals and Subnets.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
Routing/Routed Protocols Part I. Routed Protocol Definition: Routed Protocol – used to transmit user data (packets) through an internetwork. Routed protocols.
Routing Principles Raghunath M D JTO(NSS),BSNL Mobile Services, Ernakulam 1.
Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.
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.
Switching and Routing Technique W.lilakiatsakun. Assessment Final 40 % Final 40 % Midterm 30% Midterm 30% LAB + Assignment 30% LAB + Assignment 30%
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols 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
Cisco Systems Networking Academy S2 C 11 Routing Basics.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
IP Routing Principles. Network-Layer Protocol Operations Each router provides network layer (routing) services X Y A B C Application Presentation Session.
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. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
© 2002, Cisco Systems, Inc. All rights reserved..
Routing Protocols Brandon Wagner.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Cisco 2 - Routers Perrine modified by Brierley Page 13/21/2016 Chapter 4 Module 6 Routing & Routing Protocols.
Prof. Alfred J Bird, Ph.D., NBCT Office – Science 3rd floor – S Office Hours – Monday and Thursday.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Prof. Alfred J Bird, Ph.D., NBCT Office – McCormick 3rd floor 607 Office Hours – Monday 3:00 to 4:00 and.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
+ Dynamic Routing Protocols 2 nd semester
Network Layer Routing Networks: Routing.
Working at a Small-to-Medium Business or ISP – Chapter 6
Routing/Routed Protocols
Routing.
Chapter 5: Dynamic Routing
Dynamic Routing and OSPF
Network Layer Routing Networks: Routing.
Working at a Small-to-Medium Business or ISP – Chapter 6
Routing.
Presentation transcript:

Introduction to Dynamic Routing Protocols Last Update Copyright 2008 Kenneth M. Chipps Ph.D.

Objectives Learn about routing protocols Copyright 2008 Kenneth M. Chipps Ph.D. 2

Copyright Kenneth M. Chipps PhD 3 Two Ways to Look at Protocols Protocols are used in various ways Two of those ways relate to moving information from one network to another In this case we are interested in –Routed Protocols –Routing Protocols

Copyright Kenneth M. Chipps PhD 4 What is a Routed Protocol These protocols are routed by the routing protocols They are concerned with the construction and transport of the data itself regardless of how it arrives at its destination When the OSI model talks about encapsulation, this is what it is referring to

Copyright Kenneth M. Chipps PhD 5 What is a Routed Protocol These cover all 7 layers of the OSI model These protocols contain enough information in the fields in their headers that allow the packet to be routed from one network to another by the routing protocol In other words it is the box we need to get from one place to another

Copyright Kenneth M. Chipps PhD 6 What is a Routed Protocol

Copyright Kenneth M. Chipps PhD 7 What is a Routing Protocol These are network layer protocols that are responsible for path determination and switching These have to do with the actual routes the packets take and how that path is calculated This is the truck that takes the box from one place to another

Copyright Kenneth M. Chipps PhD 8 What is a Routing Protocol

Copyright Kenneth M. Chipps PhD 9 Static v Dynamic Routing Static routes, as we have seen, are entered from the keyboard and do not require routing protocols Dynamic routes are created by routing protocols Static routing consists of entries made into the routing table in the router by the network administrator prior to the beginning of routing

Copyright Kenneth M. Chipps PhD 10 Static v Dynamic Routing These entries do not change unless the network administrator alters them This method works well in environments where network traffic is relatively predictable and where network design is relatively simple

Copyright Kenneth M. Chipps PhD 11 Static v Dynamic Routing Because static routing systems cannot react to network changes, they generally are considered unsuitable for today's large, changing networks

Copyright Kenneth M. Chipps PhD 12 Static v Dynamic Routing Whereas dynamic routing protocols can adjust to changing network circumstances by analyzing incoming routing update messages If the message indicates that a network change has occurred, the routing software recalculates routes and sends out new routing update messages

Copyright Kenneth M. Chipps PhD 13 Static v Dynamic Routing These messages permeate the network, stimulating routers to rerun their algorithms and change their routing tables accordingly

Copyright Kenneth M. Chipps PhD 14 Static v Dynamic Routing

Copyright Kenneth M. Chipps PhD 15

Copyright Kenneth M. Chipps PhD 16 Dynamic Routing Protocols Dynamic routing protocols usually have one or more of the following design goals –Optimality –Low overhead –Robustness –Flexibility –Rapid convergence

Copyright Kenneth M. Chipps PhD 17 Routing Protocol Optimality Optimality refers to the capability of the routing protocol to select the best route, which depends on the metrics and metric weightings used to make the calculation

Copyright Kenneth M. Chipps PhD 18 Routing Protocol Overhead Low overhead refers to simple and efficient overhead

Copyright Kenneth M. Chipps PhD 19 Routing Protocol Robustness Routing protocols must be robust, which means that they should perform correctly in the face of unusual or unforeseen circumstances, such as hardware failures, high load conditions, and incorrect implementations

Copyright Kenneth M. Chipps PhD 20 Routing Protocol Flexibility Routing protocols should also be flexible, which means that they should quickly and accurately adapt to a variety of network circumstances –Assume, for example, that a network segment has gone down –As they become aware of the problem, many routing protocols will quickly select the next- best path for all routes normally using that segment

Copyright Kenneth M. Chipps PhD 21 Routing Protocol Convergence Routing protocols must converge rapidly, which is a process of agreement, by all routers, on optimal routes When a network event causes routes either to go down or become available, routers distribute routing update messages that permeate networks, stimulating recalculation of optimal routes and eventually causing all routers to agree

Copyright Kenneth M. Chipps PhD 22 Routing Protocol Convergence Routing protocols that converge slowly can cause routing loops or network outages An example of the need for rapid convergence is seen in the use of distance vector protocols Routers using routing protocols based on the distance vector method receive their neighbor’s routing table

Copyright Kenneth M. Chipps PhD 23 Routing Protocol Convergence Using this they build a network map This approach to learning can cause problems such as routing loops and counts to infinity Routing loops can occur if the internetwork is slow to converge on a new configuration after a route fails This situation will produce inconsistent entries in the router tables

Lab Start Packet Tracer Do Packet Tracer Activity pka Copyright 2008 Kenneth M. Chipps Ph.D. 24

Copyright Kenneth M. Chipps PhD 25 Dynamic Routing Protocols Let’s organize the different types of routing protocols and then discuss each one

Copyright Kenneth M. Chipps PhD 26 Dynamic Routing Protocols Intradomain or Interior Interdomain or Exterior Distance VectorLink StatePath Vector StandardProprietaryStandardProprietaryStandard HELLO 1 IGRP 1 OSPFNLSP 1 EGP 1 RIP V1 1 EIGRPIS-ISBGP RIP V2 1 No Longer Used

Copyright Kenneth M. Chipps PhD 27 No Longer Used HELLO –The original NSFnet backbone consisted of six Digital Equipment Corporation LSI-11 computers located across the United States –These computers ran special software colloquially called fuzzball that enabled them to function as routers –These fuzzball routers connected various networks to the NSFnet and the ARPAnet

Copyright Kenneth M. Chipps PhD 28 No Longer Used –The six NSFnet routers worked as an autonomous system and like any AS, used an interior routing protocol to exchange routing information –The routing protocol used in these early routers was called the HELLO protocol –It was developed in the early 1980s and documented in RFC 891 published December 1983

Copyright Kenneth M. Chipps PhD 29 No Longer Used –The name HELLO is capitalized, but is not an acronym; it simply refers to the word hello, since the protocol uses messages that are sort of analogous to the routers talking to each other –The HELLO protocol uses a distance-vector algorithm, like the RIP –Unlike RIP, HELLO does not use hop count as a metric

Copyright Kenneth M. Chipps PhD 30 No Longer Used –Instead, it attempts to select the best route by assessing network delays and choosing the path with the shortest delay –One of the key jobs of routers using HELLO is to compute the time delay to send and receive datagrams to and from its neighbors –On a regular basis, routers exchange HELLO messages that contain clock and timestamp information

Copyright Kenneth M. Chipps PhD 31 No Longer Used –By comparing the clock value and timestamp in the message to its own clock using a special algorithm, a receiving device can compute an estimate for the amount of time it takes to send a datagram over the link –HELLO messages also contain routing information in the form of a set of destinations that the sending router is able to reach and a metric for each

Copyright Kenneth M. Chipps PhD 32 No Longer Used –However in this case, the metric is an estimate of the round-trip delay cost for each destination –This information is added to the computed round-trip delay time for the link over which the message was received, and used to update the receiving router's own routing table

Copyright Kenneth M. Chipps PhD 33 No Longer Used RIP Version1 –This version of RIP only supports FLSM based on address classes –As address classes no longer exist version 1 is useless

Copyright Kenneth M. Chipps PhD 34 No Longer Used IGRP –With the deployment of EIGRP and OSPF there is no longer any need for IGRP –Therefore, no one uses it any longer

Copyright Kenneth M. Chipps PhD 35 No Longer Used NLSP –NLSP - NetWare Link Services Protocol is a link-state routing protocol in the Novell NetWare architecture –NLSP is based on the OSI IS-IS or Intermediate System-to-Intermediate System protocol and was designed to replace IPX RIP and SAP, Novell's original routing protocols that were designed for small scale internetworks

Copyright Kenneth M. Chipps PhD 36 No Longer Used –Compared to RIP and SAP, NLSP provides improved routing, better efficiency, and scalability –As no one uses NetWare anymore, no one uses NLSP any longer

Copyright Kenneth M. Chipps PhD 37 No Longer Used EGP –EGP – Exterior Gateway Protocol was the first routing protocol used to allow autonomous systems to talk to each other –It was developed in 1982 by Eric C. Rosen and David L. Mills –It was first formally described in RFC 827 and formally specified in RFC 904 in 1984 –EGP is no longer used

No Longer Used –BGP - Border Gateway Protocol is now the accepted standard for Internet routing and has essentially replaced the more limited EGP Copyright Kenneth M. Chipps PhD 38

Interior and Exterior Protocols What is the difference between the various classes of routing protocols Where are exterior and interior protocols used Copyright Kenneth M. Chipps PhD 39

Copyright Kenneth M. Chipps PhD 40 Interior and Exterior Protocols

Copyright Kenneth M. Chipps PhD 41 Intradomain v Interdomain Some routing protocols work only within domains Others work between domains A domain in these terms is an autonomous system, which is a group of routers under a single administrative control

Copyright Kenneth M. Chipps PhD 42 Intradomain v Interdomain The nature of these two types of routing protocols is different In that the intradomain routing protocols are concerned with talking to only their close relatives Whereas interdomain routing protocols are concerned with talking to strangers

Copyright Kenneth M. Chipps PhD 43 Intradomain v Interdomain Using these two types enables the organization to control the type and amount of outside traffic that comes in and goes out of its network The terms are also expressed as interior – intradomain and exterior – interdomain

Background The first routing protocol was developed in the 1960s RIP released in 1982 was the first mainstream routing protocol Copyright 2008 Kenneth M. Chipps Ph.D. 44

Background Copyright 2008 Kenneth M. Chipps Ph.D. 45

Copyright Kenneth M. Chipps PhD 46 Distance Vector Protocols A distance vector protocol is so named because its routes are advertised as vectors - distance and direction - where distance is defined in terms of a metric and direction is defined in terms of the next hop router These, known as Bellman-Ford protocols, call for each router to send all or some its routing table, but only to its neighbors

Copyright Kenneth M. Chipps PhD 47 Distance Vector Protocols In this arrangement each router depends on its neighbors for information, which its neighbors may have learned from their neighbors, and so on An individual router has no way of knowing if the information in the routing table it receives is accurate These routers just believe everything they hear

Copyright Kenneth M. Chipps PhD 48 Distance Vector Protocols As such distance vector routing protocols are sometimes referred to as routing by rumor A typical distance vector routing protocol uses a routing algorithm in which routers periodically send routing updates to all neighbors by broadcasting their entire routing table

Copyright Kenneth M. Chipps PhD 49 Distance Vector Protocols In this case periodically means to transmit on a regular schedule Neighbors are those routers at the other end of a data line The originating router sends its update to this neighbor It expects the neighbor to send the information on to that router's neighbors, and so on

Copyright Kenneth M. Chipps PhD 50 Distance Vector Protocols This update includes everything the router knows In other words its entire routing table with a few exceptions is sent out

Copyright Kenneth M. Chipps PhD 51 Link State Protocols The information that a distance vector protocol has available has been likened to a road sign That is it is just one more step on the journey Whereas the information available to a link state protocol is more like a road map

Copyright Kenneth M. Chipps PhD 52 Link State Protocols A link state routing protocol cannot be easily fooled into making a bad routing decision because - with the map - it has a complete picture of the network This is because link state routers have first hand information from all of their peer routers, those that speak the same routing protocol

Copyright Kenneth M. Chipps PhD 53 Link State Protocols Each of these routers originates information about itself, its directly connected links, and the state of those links This information is passed around from router to router, each router making a copy, but no router changing the information How does this all work

Copyright Kenneth M. Chipps PhD 54 Link State Concepts

Copyright Kenneth M. Chipps PhD 55 Link State Protocols Like this –Each router establishes a relationship - an adjacency - with each of its neighbors –Each router sends link state advertisements to each neighbor –One link state advertisement is created for each of the router's links, identifying the link, the state of the link, the metric cost of the link, and the neighbors that are connected to the link

Copyright Kenneth M. Chipps PhD 56 Link State Protocols –Each router receiving this information in turns forwards it to its neighbors –Each router stores the link state advertisements it has received in a database –Since all routers receive all link state advertisements, all routers have the same information –The algorithm for the routing protocol is then applied to the information in the link state database to create a routing table

Dijkstra Algorithm Link-state protocols use the Dijkstra SPF - Shortest Path First algorithm to calculate and add routes to the IP routing table The SPF algorithm calculates all the possible routes to each destination network, and the cumulative metric for the entire path 57 Copyright Kenneth M. Chipps PhD

Dijkstra Algorithm Each router views itself as the starting point, and each subnet as the destination, and use the SPF algorithm to look at the LSDB - Link State Database to create a roadmap and pick the best route to each subnet Copyright Kenneth M. Chipps PhD 58

Characteristics of Link State The main features of link-state routing protocols –All routers learn the same detailed information about the states of all the router links in the internetwork –The individual pieces of topology information are called LSAs, with all LSAs stored in RAM in the LSDB Copyright Kenneth M. Chipps PhD 59

Characteristics of Link State –Routers flood LSAs when they are created, on a regular but long time interval if the LSAs do not change over time, and immediately when an LSA changes –The LSDB does not contain routes, but it does contain information that can be processed by the Dijkstra SPF algorithm to find a router’s best routes Copyright Kenneth M. Chipps PhD 60

Characteristics of Link State –Each router runs the SPF algorithm, with the LSDB as input, resulting in the best - lowest cost - routes being added to the IP routing table –Link-state protocols converge quickly by immediately reflooding LSAs and rerunning the SPF algorithm Copyright Kenneth M. Chipps PhD 61

Characteristics of Link State –Link-state protocols consume much more RAM and CPU than do distance vector routing protocols –If the internetwork changes a lot, link-state protocols can also consume much more bandwidth due to the relative to distance vector protocols large number of bytes of information in each LSA Copyright Kenneth M. Chipps PhD 62

Copyright Kenneth M. Chipps PhD 63 Routing Metrics Routing protocols use metrics to determine the best or optimal route The following metrics are often used –Path Length –Reliability –Delay –Bandwidth –Load –Cost

Example Routing Metrics Copyright Kenneth M. Chipps PhD 64

Administrative Distance A single router may learn routes from many different sources For example, from static routes and from running multiple routing protocols When a router learns more than one route to the same subnet, from different sources, the router needs to decide which route is best and then add that route to the IP routing table Copyright Kenneth M. Chipps PhD 65

Administrative Distance Because each routing protocol uses a different metric, a router cannot use the metric to determine which route is the best route When choosing between multiple routes to the same destination but learned from different sources, the router picks the route with the lowest administrative distance Copyright Kenneth M. Chipps PhD 66

Administrative Distance The administrative distance is a number assigned to all the possible sources of routing information, routing protocols and static routes included Copyright Kenneth M. Chipps PhD 67

Default Distance Values Copyright Kenneth M. Chipps PhD 68

Administrative Distance The administrative distance is shown by issuing the show ip route command The show ip route command output lists the administrative distance for most routes, with the notable exception of connected routes, which default to an administrative distance of 0 The example shown next shows the output of the show ip route rip command Copyright Kenneth M. Chipps PhD 69

Administrative Distance The output highlights the administrative distance for the one RIP route known on router R1, which defaults to RIP’s setting of 120 Copyright Kenneth M. Chipps PhD 70

Administrative Distance Copyright Kenneth M. Chipps PhD 71

Copyright Kenneth M. Chipps PhD 72 Which One to Use In the real world the two main interior routing protocols are –OSPF OSPF is used by both Cisco only and mixed vendor shops –EIGRP EIGRP is used by Cisco only operations

Copyright Kenneth M. Chipps PhD 73 Which One to Use There is a reasonable amount of RIP in use still IGRP should be replaced if it is still being used IS-IS is used by some ISPs and the like

Lab Copyright 2008 Kenneth M. Chipps Ph.D Start Packet Tracer Do activity pka