Routing Protocol comparison

Similar documents
Chapter 3. Introduction to Dynamic Routing Protocols. CCNA2-1 Chapter 3

Planning for Information Network

Unit 6 Routing and Layers 3 and 4 Protocols. Chapter 6: Layers 3 and 4 Protocols

Chapter 7 Routing Protocols

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Routing, Routing Algorithms & Protocols

Chapter 7: Routing Dynamically. Routing & Switching

BTEC Level 3 Extended Diploma

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Top-Down Network Design

Which of the following describe the process identifier that is used to run OSPF on a router? (Choose two)

shortcut Tap into learning NOW! Visit for a complete list of Short Cuts. Your Short Cut to Knowledge

Internet Routing Protocols Tuba Saltürk

Unit 3: Dynamic Routing

Two types of routing protocols are used in internetworks: interior gateway protocols (IGPs) and exterior gateway protocols (EGPs).

SEMESTER 2 Chapter 3 Introduction to Dynamic Routing Protocols V 4.0

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

Distance Vector Routing Protocols

Chapter 5 RIP version 1

Introduction to Dynamic Routing Protocols

9.1. Routing Protocols

TDC 363 Introduction to LANs

Enhanced IGRP. Chapter Goals. Enhanced IGRP Capabilities and Attributes CHAPTER

Building the Routing Table. Introducing the Routing Table Directly Connected Networks Static Routing Dynamic Routing Routing Table Principles

Why dynamic route? (1)

Table of Contents. Cisco Introduction to EIGRP

Distance vector and RIP

Basic Idea. Routing. Example. Routing by the Network

Routing by the Network

This chapter covers the following subjects:

Routing Protocols and

EIGRP 04/01/2008. Routing Protocols and Concepts Chapter 9 Modified by Tony Chen

2008 NDP Lectures 7 th Semester

EECS 122, Lecture 16. Link Costs and Metrics. Traffic-Sensitive Metrics. Traffic-Sensitive Metrics. Static Cost Metrics.

Determining IP Routes. 2000, Cisco Systems, Inc. 9-1

Introduction to Routing

INTERNET PROTOCOLS NETWORK ASSIGNEMENT. Alexander Havbo Steen ITT 2015 ERHVERVSAKADEMI DANIA

RIP Version 2. The Classless Brother

EIGRP. Routing Protocols and Concepts Chapter 9. Video Frank Schneemann, MS EdTech

SEMESTER 2 Chapter 4 Distance Vector Routing Protocols V 4.0 RIP, IGRP, EIGRP

Routing Protocols Classification

IP Routing Tecnologie e Protocolli per Internet II rev 1

Draft Manuscript Draft M. uscript Draft Manuscript. aft Manuscript Draft Ma. cript Draft Manuscript D. ipt Draft Manuscript Dra

Section 6. Implementing EIGRP ICND2

CCNA EXPLORATION V4.0 ROUTING PROTOCOLS AND CONCEPTS

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery

COMPARATIVE ANALYSIS OF ROUTING PROTOCOLS

Chapter 5. RIP Version 1 (RIPv1) CCNA2-1 Chapter 5

Part II. Chapter 3. Determining IP Routes

ICS 351: Today's plan. OSPF BGP Routing in general

Routing Protocol. RIPv1

Open Shortest Path First (OSPF)

Lecture 9. Reminder: Homework 3, Programming Project 2 due today. Questions? Thursday, September 22 CS 475 Networks - Lecture 9 1

ITE PC v4.0. Chapter Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Information Protocol. A simple distance vector scheme

CCNA 3 (v v6.0) Chapter 5 Exam Answers % Full

Introduction to Local and Wide Area Networks

Routing Protocol Type Primarily IGP or EGP RIP Distance-Vector IGP EIGRP OSPF IS-IS BGP

IP Routing. Bharat S. Chaudhari International Institute of Information Technology Pune, India

Lecture (03) RIP. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Fall 2016, Practical App. Networks II

Configuring IGRP. The Cisco IGRP Implementation

ICS 351: Today's plan. distance-vector routing game link-state routing OSPF

CCNA 3 (v v6.0) Chapter 7 Exam Answers % Full

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

Advanced Networking: Routing & Switching 2 Chapter 7

REDDIG II Computer Networking Training

Chapter 5. RIP Version 1 (RIPv1)

The most simple way to accelerate a Router is at 9.8 m/sec/sec.

CCNA 3 (v v6.0) Chapter 8 Exam Answers % Full

Routing Protocols. Autonomous System (AS)

CCNA IP ROUTING. Revision no.: PPT/2K605/03

Redesde Computadores(RCOMP)

Configuring RIP. Information About RIP CHAPTER

Introduction to Local and Wide Area Networks

Why EIGRP Is Considered As the Best Routing Protocol

Basic IP Routing. Finding Feature Information. Information About Basic IP Routing. Variable-Length Subnet Masks

Routing Information Protocol

RIPv2. Routing Protocols and Concepts Chapter 7. ITE PC v4.0 Chapter Cisco Systems, Inc. All rights reserved. Cisco Public

Configuring EIGRP. Overview CHAPTER

EIGRP. About EIGRP. CLI Book 1: Cisco ASA Series General Operations CLI Configuration Guide, 9.7 1

Lecture 12. Introduction to IP Routing. Why introduction? Routing

Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load

Network Protocols. Routing. TDC375 Winter 2002 John Kristoff - DePaul University 1

Claim desired outcome

Routing. Jens A Andersson Communication Systems

CSCE 463/612 Networks and Distributed Processing Spring 2018

Youki Kadobayashi NAIST

Small additions by Dr. Enis Karaarslan, Purdue - Aaron Jarvis (Network Engineer)

IP Enhanced IGRP Commands

Configuring RIP. RIP Configuration Task List

Routing Protocol. Seiya Tsubone. Apr The University of Tokyo. Seiya Tsubone (The University of Tokyo) Routing Protocol Apr. 25.

Routing. Advanced Computer Networks: Routing 1

Routing Information Protocol. RIP application. RIP version 1

Routing in a network

Routing Dynamically. 3.0 Routing Dynamically. Chapter Introduction Class Activity How Much Does This Cost?

Basic IP Routing. Finding Feature Information. Information About Basic IP Routing. Variable-Length Subnet Masks

Chapter 4: Advanced Internetworking. Networking CS 3470, Section 1

Default & Static Routes and Routing Information Protocol. Presented by : Mohammed Hamad

ICMP, ARP, RARP, IGMP

Configuring IP Routing Protocols

Transcription:

Routing Protocol comparison Introduction to routing Networks allow people to communicate, collaborate, and interact in many ways. Networks are used to access web pages, talk using IP telephones, participate in video conferences, compete in interactive gaming, shop using the Internet, complete online coursework, and more. At the core of the network is the router. A router connects one network to another network. The router is responsible for the delivery of packets across different networks. The destination of the IP packet might be a web server in another country or an email server on the local-area network. The router uses its routing table to determine the best path to use to forward a packet. It is the responsibility of the routers to deliver those packets in a timely manner. The effectiveness of internetwork communications depends, to a large degree, on the ability of routers to forward packets in the most efficient way possible. When a host sends a packet to a device on a different IP network, the packet is forwarded to the default gateway because a host device cannot communicate directly with devices outside of the local network. The default gateway is the destination that routes traffic from the local network to devices on remote networks. It is often used to connect a local network to the Internet. A router is essentially a special-purpose computer with an internetwork operating system optimized for the purpose of routing and securing networks. This section will examine the functions of a router and how a router determines the best path. It will also review the command-line interface (CLI) commands required to configure the base settings of a router. Introduction to routing protocols Routers and Layer 3 switches add IP routes to their routing tables using three methods: connected routes, static routes, and routes learned by using dynamic routing protocols. The routing process forwards IP packets, but if a router does not have any routes in its IP routing table that match a packet s destination address, the router discards the packet. Routers need routing protocols so that the routers can learn all the possible routes and add them to the routing table, so that the routing process can forward (route) routable protocols such as IP. IPv4 supports several different routing protocols, some of which are primarily used inside one company, while one is meant primarily for use between companies to create the Internet. Many IP routing protocols exist, in part due to the long history of IP; however, if you compare all the IP routing protocols, they all have some core features in common. Each routing protocol causes routers (and Layer 3 switches) to 1. Learn routing information about IP subnets from other neighboring routers

2. Advertise routing information about IP subnets to other neighboring routers 3. Choose the best route among multiple possible routes to reach one subnet, based on that routing protocol s concept of a metric 4. React and converge to use a new choice of best route for each destination subnet when the network topology changes for example, when a link fails All the routing protocols mentioned so far happen to be categorized as Interior Gateway Protocols (IGPs) rather than as Exterior Gateway Protocols (EGPs). First, the term gateway was used instead of router in the early days of IP routing, so the terms IGP and EGP really do refer to routing protocols. The designers of some routing protocols intended the routing protocol for use inside one company or organization (IGP), with other routing protocols intended for use between companies and between Internet service providers (ISPs) in the Internet (EGPs). When deploying a new network, the network engineer can choose between a variety of IGPs. Today, most enterprises use EIGRP and OSPFv2. RIPv2 has fallen away as a serious competitor, in part due to its less robust hop-count metric, and in part due to its slower (worse) convergence time. A few key comparison points are as follows: The underlying routing protocol algorithm: Specifically, whether the routing protocol used logic referenced as distance vector (DV) or link state (LS). The usefulness of the metric: The routing protocol chooses which route is best based on its metric; so the better the metric, the better the choices made by that routing protocol. The speed of convergence: How long does it take all the routers to learn about a change in the network and update their IPv4 routing tables? That concept, called convergence time, varies depending on the routing protocol. Whether the protocol is a public standard or a vendor-proprietary function:rip and OSPF happen to be standards, defined by RFCs. EIGRP happens to be defined by Cisco, and until 2013, was kept private. For example, RIP uses a basic metric of hop count. Hop count treats each router as a hop, so the hop count is the number of other routers between a router and some remote subnet. RIP s hop-count metric means that RIP picks the route with the smallest number of links and routers. However, that shortest route may have the slowest links; a routing protocol that uses a metric based in part on link speed (called bandwidth) might make a better choice. In contrast, EIGRP s metric calculation uses a math formula that gives routes with slow links a worse metric, and routes with fast links a lower metric, so EIGRP prefers faster routes. On another comparison point, the biggest negative about EIGRP has traditionally been that it required Cisco routers. That is, using EIGRP locked you into using Cisco products, because Cisco kept EIGRP as a Cisco proprietary protocol. In an interesting change, Cisco published EIGRP as an informational RFC in 2013, meaning that now other vendors can choose to implement EIGRP as well. In the past, many companies chose to use OSPF rather than EIGRP to give themselves options for what router vendor to use for future router hardware purchases. In the future, it might be that you can buy some routers from Cisco, some from other vendors, and still run EIGRP on all routers.

Routing Information Protocol version 2 The Routing Information Protocol (RIP) was the first commonly used IGP in the history of TCP/IP. Organizations used RIP inside their networks commonly in the 1980s, and into the 1990s. RIPv2, created in the mid-1990s, improved RIPv2, giving engineers an option for easy migration and co-existence to move from RIPv1 to the better RIPv2. Like all IGPs, both RIPv1 and RIPv2 perform the same core features. That is, when using either RIPv1 or RIPv2, a router advertises information to help other routers learn routes; a router learns routes by listening to messages from other routers; a router chooses the best route to each subnet by looking at the metric of the competing routes; and the routing protocol converges to use new routes when something changes about the network. RIPv1 and RIPv2 use the same logic to achieve most of those core functions. The similarities include the following: Both send regular full periodic routing updates on a 30-second timer, with fullmeaning that the update messages include all known routes. Both use split-horizon rules. Both use hop count as the metric. Both allow a maximum hop count of 15. Both use route poisoning as a loop-prevention mechanism with hop count 16 used to imply an unusable route with an infinite metric. Although you might be puzzled why the creators of RIPv2 made it so much like RIPv1, the goal was simple: interoperability. A network that used RIPv1 could slowly migrate to RIPv2, enabling RIPv2 on some routers on one weekend, some more on the next, and so on. Done correctly, the network could migrate over time. The fact that both RIPv1 and RIPv2 used the same metric, and same loop-prevention mechanisms, allowed for a smooth migration. Of course, RIPv2 needed to be better than RIPv1 in some ways, otherwise, what is the point of having a new version of RIP? RIPv2 made many changes to RIPv1: solutions to known problems, improved security, and new features as well. However, while RIPv2 improved RIP beyond RIPv1, it did not compete well with OSPF and EIGRP, particularly due to somewhat slow convergence compared to OSPF and EIGRP. RIPv1 had one protocol feature that prevented it from using variable-length subnet masks (VLSMs). To review, VLSM means that inside one classful network (one Class A, B, or C network), that more than one subnet mask is used. RIPv1 could not support a network that uses VLSM because RIPv1 did not send mask information in the RIPv1 update message. Basically, RIPv1 routers had to guess what mask applied to each advertised subnet, and a design with VLSM made routers guess wrong. RIPv2 solved that problem by using an improved update message, which includes the subnet mask with each route, removing any need to guess what mask to use, so RIPv2 correctly supports VLSM. RIPv2 fixed a couple of other perceived RIPv1 shortcomings as well. RIPv2 added authentication which can avoid cases in which an attacker introduces incorrect routes into a router s routing table. RIPv2 changed from using IP broadcasts sent to the 255.255.255.255 broadcast address by instead sending updates to the 224.0.0.9 IPv4 multicast address.

Enhanced Interior Gateway Routing Protocol Enhanced Interior Gateway Routing Protocol (EIGRP) went through a similar creation process as compared to RIP, but with the work happening inside Cisco. Cisco has already created the Interior Gateway Routing Protocol (IGRP) in the 1980s, and the same needs that drove people to create RIPv2 and OSPF drove Cisco to improve IGRP as well. Instead of naming the original IGRP Version 1, and the new one IGRP Version 2, Cisco named the new version Enhanced IGRP (EIGRP). EIGRP acts a little like a DV protocol, and a little like no other routing protocol. Frankly, over the years, different Cisco documents and different books (mine included) have characterized EIGRP as either its own category, called a balanced hybrid routing protocol, or as some kind of advanced DV protocol. Regardless of what label you put on EIGRP, the protocol uses several features that work either like basic DV protocols such as RIP, or they work similarly enough. Routers that use EIGRP send messages so that other routers learn routes, they listen for messages to learn routes, they choose the best route among multiple routes to the same subnet based on a metric, and they react and converge when the network topology changes. Of course, EIGRP works differently in several ways as compared to RIPv2. Unlike RIP, EIGRP does not send full or partial update messages based on a periodic timer. When a router first comes up, it advertises known routing information. Then, over time, as facts change, the router simply reacts, sending partial updates with the new information. The fact that EIGRP does not send routing information on a short periodic timed basis greatly reduces EIGRP overhead traffic, but it also means that EIGRP cannot rely on these updates to monitor the state of neighboring routers. Instead, EIGRP defines the concept of a neighbor relationship, using EIGRP hello messages to monitor that relationship. The EIGRP hello message and protocol defines that each router should send a periodic hello message on each interface, so that all EIGRP routers know that the router is still working. One of the most compelling reasons to consider using EIGRP instead of other IGPs is the strength of the EIGRP metric. EIGRP uses a math function to calculate the metric. More importantly, that function uses two input variables by default: The slowest link in the end-to-end route The cumulative delay for all links in the route As a result, EIGRP defines the concept of the best route based on the constraining bandwidth (speed) of the links in the route, plus the total delay in the route. The words bandwidth and delay have specific meaning with EIGRP. Bandwidth refers to the perceived speed of each link. Delay refers to the router s perception of the time it takes to send a frame over the link. Both bandwidth and delay are settings on router interfaces; although routers do have default values for both bandwidth and delay on each interface, the settings can be configured as well.

EIGRP calls the calculated metric value the composite metric, with the individual inputs into the formula being the metric components. The formula itself is not as important as the effect of the metric components on the calculation: A smaller bandwidth yields a larger composite metric because less bandwidth is worse than more bandwidth. A smaller delay yields a smaller composite metric because less delay is better than more delay. Using these two inputs gives EIGRP a much better metric than RIP. Basically, EIGRP prefers routes with faster links, avoiding routes with slower links. Slow links, besides the obvious negative of being slow, also may experience more congestion, with packets waiting longer to get a turn to cross the link. For example, EIGRP could prefer a route with multiple 10-Gbps links rather than a single-hop route over a 1-Gbps or 100-Mbps link. Another compelling reason to choose EIGRP as an IGP has to do with EIGRP s much better convergence time as compared with RIP. EIGRP converges more quickly than RIP in all cases, and in some cases, EIGRP converges much more quickly. For perspective, with RIPv2 in normal operation, convergence could take several minutes. During those minutes, some user traffic was not delivered to the correct destination, even though a physical path existed. With EIGRP, those same worst cases typically experience convergence of less than a minute, often less than 20 seconds, with some cases taking a second or two. EIGRP does loop avoidance completely differently than RIP by keeping some basic topological information. The EIGRP topology database on each router holds some information about the local router, plus some information about the next-hop router in each possible route for each known subnet. That extra topology information lets EIGRP on each router take the following approach for all the possible routes to reach one subnet: Similar to how other routing protocols work, a local router calculates the metric for each possible route to reach a subnet, and chooses the best route based on the best metric. Unlike other routing protocols, the local router uses that extra topology information to look at the routes that were not chosen as the best route, to find all alternate routes that, if the best route fails, could be immediately used without causing a loop. As you can see, EIGRP provides many advantages over both RIPv1 and RIPv2. Most significantly, it uses a much better metric, and it converges much more quickly than does RIP. The biggest downside to EIGRP has traditionally been that EIGRP was a Cisco proprietary protocol. That is, to run EIGRP, you had to use Cisco products only. Interestingly, Cisco has published EIGRP as an informational RFC in 2013, so now other vendors could choose to add EIGRP support to their products. Over time, maybe this one negative about EIGRP will fade away.

Open Shortest Path First Protocol Like EIGRP, OSPF converges quickly. Like EIGRP, OSPF bases its metric by default on link bandwidth, so that OSPF makes a better choice than simply relying on the router hop-count metric used by RIP. But OSPF uses much different internal logic, being a link-state routing protocol rather than a distance vector protocol. OSPF causes routers to learn routes, choose the best route to each subnet based on a metric, and to converge to choose new best routes when the network changes. Although EIGRP uses DV logic, and OSPF uses LS logic, OSPF and EIGRP have three major activities that, from a general perspective, appear to be the same: 1. Both OSPF and EIGRP use a hello protocol to find neighboring routers, maintain a list of working neighbors, monitor ongoing hello messages to make sure the neighbor is still reachable, and to notice when the path to a neighbor has failed. 2. Both OSPF and EIGRP exchange topology data, which each router stores locally in a topology database. The topology database describes facts about the network, but is a different entity than the router s IPv4 routing table. 3. Both OSPF and EIGRP cause each router to process its topology database, from which the router can choose the currently best route (lowest metric route) to reach each subnet, adding those best routes to the IPv4 routing table. However, if you dig a little deeper, OSPF and EIGRP clearly use different conventions and logic. The protocols, of course, are different, with EIGRP being created inside Cisco and OSPF developed as an RFC. The topology databases differ significantly, with OSPF collecting much more detail about the topology, and with EIGRP collecting just enough to make choices about successor and feasible successor routes. The method of processing the database, which then determines the best route for each subnet, differs significantly as well. Most of the similarities end here, with OSPF, as an LS protocol, simply using an entirely different approach to choosing the currently best route for each subnet. Link-state protocols build IP routes with a couple of major steps. First, the routers build a detailed database of information about the network and flood that so that all routers have a copy of the same information. (The information is much more detailed than the topology data collected by EIGRP.) That database, called the link-state database (LSDB), gives each router the equivalent of a roadmap for the network, showing all routers, all router interfaces, all links between routers, and all subnets connected to routers. Second, each router runs a complex mathematical formula (the details of which we can all ignore) to calculate the best route to reach each subnet. Routers using LS routing protocols need to collectively advertise practically every detail about the internetwork to all the other routers. At the end of the process of flooding the information to all routers, every router in the internetwork has the exact same information about the internetwork. Flooding a lot of detailed information to every router sounds like a lot of work, and relative to DV routing protocols, it is. OSPF, the most popular LS IP routing protocol, organizes topology information using linkstate advertisements (LSAs) and the link-state database (LSDB). The LSDB holds the

collection of all the LSAs known to a router. Think of the LSDB as having one LSA for every router, one for every link, with several other types as well. LSA protocols rely on having all routers knowing the same view of the network topology and link status (link state) by all having a copy of the LSDB. The idea is like giving all routers a copy of the same updated road map. If all routers have the exact same road map, and they base their choices of best routes on that same road map, then the routers, using the same algorithm, will never create any routing loops. To create the LSDB, each router will create some of the LSAs needed. Each router floods both the LSAs it creates, plus others learned from neighboring routers, so that all the routers have a copy of each LSA. The sum of the OSPF interface costs for all outgoing interfaces in the route. The OSPF metric for a route is the sum of the interface costs for all outgoing interfaces in the route. By default, a router s OSPF interface cost is actually derived from the interface bandwidth: The faster the bandwidth, the lower the cost. So, a lower OSPF cost means that the interface is better than an interface with a higher OSPF cost. References: http://www.ciscopress.com/articles/article.asp?p=2180208 http://www.ciscopress.com/articles/article.asp?p=2262897&seqnum=2 http://www.ciscopress.com/articles/article.asp?p=2262897&seqnum=3 http://www.ciscopress.com/articles/article.asp?p=2262897&seqnum=4 http://www.ciscopress.com/articles/article.asp?p=2262897&seqnum=5