Distance Vector Routing Protocols

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

Chapter 4. Distance Vector Routing Protocols

Administrative Distance

Router and Routing Basics

Route Discovery Protocols

Introduction to Dynamic Routing Protocols

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

Routing Protocols (RIP, OSPF, BGP)

Configuring RIP. Overview. Routing Update Process CHAPTER

Routing with OSPF. Introduction

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

Link-State Routing Protocols

- IGRP - IGRP v1.22 Aaron Balchunas

Table of Contents. Cisco How Does Load Balancing Work?

Configuring a Gateway of Last Resort Using IP Commands

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

- Routing Information Protocol -

Chapter 10 Link-State Routing Protocols

IP Routing Configuring RIP, OSPF, BGP, and PBR

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

GregSowell.com. Mikrotik Routing

Interconnecting Cisco Networking Devices Part 2

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

Objectives. Router as a Computer. Router components and their functions. Router components and their functions

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

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

Layer 3 Routing User s Manual

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

Internet Control Message Protocol (ICMP)

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

Advanced IP Addressing

: Interconnecting Cisco Networking Devices Part 2 v1.1

ISOM3380 Advanced Network Management. Spring Course Description

CCNA 2 v5.0 Routing Protocols Final Exam Answers

Cisco Certified Network Associate Exam. Operation of IP Data Networks. LAN Switching Technologies. IP addressing (IPv4 / IPv6)

Zarząd (7 osób) F inanse (13 osób) M arketing (7 osób) S przedaż (16 osób) K adry (15 osób)

SolarWinds Technical Reference

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

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

Introduction to Routing and Packet Forwarding. Routing Protocols and Concepts Chapter 1

CompTIA Exam N CompTIA Network+ certification Version: 5.1 [ Total Questions: 1146 ]

CCNA2 Chapter 11 Practice

Textbook Required: Cisco Networking Academy Program CCNP: Building Scalable Internetworks v5.0 Lab Manual.

Using the Border Gateway Protocol for Interdomain Routing

Cisco Discovery 3: Introducing Routing and Switching in the Enterprise hours teaching time

OSPF Routing Protocol

Distance Vector Multicast Routing Protocol

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Comparison of RIP, EIGRP, OSPF, IGRP Routing Protocols in Wireless Local Area Network (WLAN) By Using OPNET Simulator Tool - A Practical Approach

Border Gateway Protocol (BGP)

How To Understand Bg

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

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

CCIE R&S Lab Workbook Volume I Version 5.0

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

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)}

- Enhanced Interior Gateway Routing Protocol -

High Availability Failover Optimization Tuning HA Timers PAN-OS 6.0.0

Cisco Router Configuration Tutorial

NETWORK LAYER/INTERNET PROTOCOLS

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

Cisco 12 CCNA Certification

Border Gateway Protocol (BGP-4)

The Advantages of Using EIGRP on an Enterprise Network

Introduction to LAN/WAN. Network Layer

04 Internet Protocol (IP)

- Hubs vs. Switches vs. Routers -

COURSE AGENDA. Lessons - CCNA. CCNA & CCNP - Online Course Agenda. Lesson 1: Internetworking. Lesson 2: Fundamentals of Networking

IP Routing Features. Contents

Behavior Analysis of TCP Traffic in Mobile Ad Hoc Network using Reactive Routing Protocols

Internet Protocol version 4 Part I

EIGRP Routing Protocol & Configuration

DEGREE THESIS. Improving Network Performance by Implementing the Path Control Tools. Derick Kolle Nduge, Augustine Chika, Mohammednur Ibrahim

Simulation of High Availability Internet Service Provider s Network

The ABCs of Spanning Tree Protocol

Switching Basics and Intermediate Routing CCNA 3 Labs and Study Guide Allan Johnson

ASA 9.x EIGRP Configuration Example

OSPF Configuring Multi-Area OSPF

Chapter 3. Enterprise Campus Network Design

- Multicast - Types of packets

Lecture 12: Link-state Routing"

Modeling and Simulation of Routing Protocols in the Cloud

Using OSPF in an MPLS VPN Environment

Table of Contents. Cisco Configuring a Basic MPLS VPN

Cisco Configuring Commonly Used IP ACLs

This chapter discusses the following advanced IP addressing topics: IP Address Planning Hierarchical Addressing Using Variable-Length Subnet Masks

Troubleshooting an Enterprise Network

Introduction to IP Multicast Routing

ccna question and answers

SSVP SIP School VoIP Professional Certification

RARP: Reverse Address Resolution Protocol

Computer Networks. Main Functions

BGP Best Path Selection Algorithm

Working knowledge of TCP/IP protocol Suite IPX/SPX protocols Suite, MCSE or CNE or experienced in supporting a LAN environment.

Packet Tracer 3 Lab VLSM 2 Solution

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

Cisco Certified Network Associate (CCNA) 120 Hours / 12 Months / Self-Paced WIA Fee: $

Introduction about cisco company and its products (network devices) Tell about cisco offered courses and its salary benefits (ccna ccnp ccie )

Transcription:

Distance Vector Routing Protocols Routing Protocols and Concepts Chapter 4 Modified by Tony Chen 02/01/2008 Chapter 1 1

Objectives Identify the characteristics of distance vector routing protocols. Describe the network discovery process of distance vector routing protocols using Routing Information Protocol (RIP). Describe the processes to maintain accurate routing tables used by distance vector routing protocols. Identify the conditions leading to a routing loop and explain the implications for router performance. Recognize that distance vector routing protocols are in use today Chapter 1 2

Distance Vector Routing Protocols Dynamic routing protocols help the network administrator overcome the timeconsuming and exacting process of configuring and maintaining static routes. Examples of Distance Vector routing protocols: Routing Information Protocol (RIP) RFC 1058. Hop count is used as the metric for path selection. If the hop count for a network is greater than 15, RIP cannot supply a route to that network. Routing updates are broadcast or multicast every 30 seconds, by default. Interior Gateway Routing Protocol (IGRP) proprietary protocol developed by Cisco. Bandwidth, delay, load and reliability are used to create a composite metric. Routing updates are broadcast every 90 seconds, by default. IGRP is the predecessor of EIGRP and is now obsolete. Enhanced Interior Gateway Routing Protocol (EIGRP) Cisco proprietary distance vector routing protocol. It can perform unequal cost load balancing. It uses Diffusing Update Algorithm (DUAL) to calculate the shortest path. There are no periodic updates as with RIP and IGRP. Routing updates are sent only when there is a change in the topology. Chapter 1 3

Distance Vector Routing Protocols The Meaning of Distance Vector: A router using distance vector routing protocols knows 2 things: Distance to final destination The distance or how far it is to the destination network Vector, or direction, traffic should be directed The direction or interface in which packets should be forwarded For example, in the figure, R1 knows that the distance to reach network 172.16.3.0/24 is 1 hop and that the direction is out the interface S0/0/0 toward R2. Chapter 1 4

Distance Vector Routing Protocols Characteristics of Distance Vector routing protocols: Periodic updates Periodic Updates sent at regular intervals (30 seconds for RIP). Even if the topology has not changed in several days, Neighbors The router is only aware of the network addresses of its own interfaces and the remote network addresses it can reach through its neighbors. It has no broader knowledge of the network topology Broadcast updates Broadcast Updates are sent to 255.255.255.255. Some distance vector routing protocols use multicast addresses instead of broadcast addresses. Entire routing table is included with routing update Entire Routing Table Updates are sent, with some exceptions to be discussed later, periodically to all neighbors. Neighbors receiving these updates must process the entire update to find pertinent information and discard the rest. Some distance vector routing protocols like EIGRP do not send periodic routing table updates. Chapter 1 5

Distance Vector Routing Protocols Routing Protocol Algorithm: The algorithm is used to calculate the best paths and then send that information to the neighbors. Different routing protocols use different algorithms to install routes in the routing table, send updates to neighbors, and make path determination decisions. Chapter 1 6

Distance Vector Routing Protocols Routing Protocol Characteristics Criteria used to compare routing protocols includes Time to convergence Time to convergence defines how quickly the routers in the network topology share routing information and reach a state of consistent knowledge. The faster the convergence, the more preferable the protocol. Scalability Scalability defines how large a network can become based on the routing protocol that is deployed. The larger the network is, the more scalable the routing protocol needs to be. Resource usage Resource usage includes the requirements of a routing protocol such as memory space, CPU utilization, and link bandwidth utilization. Higher resource requirements necessitate more powerful hardware to support the routing protocol operation Classless (Use of VLSM) or Classful Classless routing protocols include the subnet mask in the updates. This feature supports the use of Variable Length Subnet Masking (VLSM) and better route summarization. Implementation & maintenance Implementation and maintenance describes the level of knowledge that is required for a network administrator to implement and maintain the network based on the routing protocol deployed. Chapter 1 7

Distance Vector Routing Protocols Chapter 1 8

Network Discovery Router initial start up (Cold Starts) When a router cold starts or powers up, it knows nothing about the network topology. It does not even know that there are devices on the other end of its links. The only information that a router has is from its own saved configuration file stored in NVRAM. -Initial network discovery Cold Starts Directly connected networks are initially placed in routing table Chapter 1 9

Network Discovery Initial Exchange of Routing Information If a routing protocol is configured then Routers will exchange routing information Initially, these updates only include information about their directly connected networks. Routing updates received from other routers Router checks update for new information If there is new information: Metric is updated New information is stored in routing table Initial Exchange After this first round of update exchanges, each router knows about the connected networks of their directly connected neighbors. However, did you notice that R1 does not yet know about 10.4.0.0 and that R3 does not yet know about 10.1.0.0? Full knowledge and a converged network will not take place until there is another exchange of routing information. Chapter 1 10

Network Discovery Next Update of Routing Information At this point the routers have knowledge about their own directly connected networks and about the connected networks of their immediate neighbors. Continuing the journey toward convergence, the routers exchange the next round of periodic updates. Each router again checks the updates for new information. Routing updates received from other routers Router checks update for new information If there is new information: Metric is updated New information is stored in routing table Next Update Chapter 1 11

Network Discovery Distance vector routing protocols typically implement a technique known as split horizon. Split horizon prevents information from being sent out the same interface from which it was received. For example, R2 would not send an update out Serial 0/0/0 containing the network 10.1.0.0 because R2 learned about that network through Serial 0/0/0. Split horizon Chapter 1 12

Network Discovery Exchange of Routing Information Router convergence is reached when Next Update All routing tables in the network contain the same network information, [Tony]: Because when you read the above statement, the routing tables contains the same network information, BUT, each router has it s own variation of the routing table. Routers continue to exchange routing information -If no new information is found then Convergence is reached Chapter 1 13

Network Discovery and convergence The amount of time it takes for a network to converge is directly proportional to the size of that network. Convergence must be reached before a network is considered completely operable Speed of achieving convergence consists of 2 interdependent categories How quickly the routers propagate a change in the topology in a routing update to its neighbors The speed of calculating best path routes using the new routing information collected For example: It takes five rounds of periodic update intervals before most of the branch routers in Regions 1, 2, and 3 learn about the new routes advertised by B2-R4. Chapter 1 14 1 2 3 4 5

Routing Table Maintenance Periodic Updates: RIPv1 & RIPv2 These are time intervals in which a router sends out its entire routing table. RIPv1: updates are sent every 30 seconds as a broadcast (255.255.255.255) whether or not there has been a topology change RIPv2: updates are sent every 30 seconds as a multicast (224.0.0.9) whether or not there has been a topology change Chapter 1 15

Routing Table Maintenance Periodic Updates: distance vector protocols employ periodic updates to exchange routing information with their neighbors and to maintain up-to-date routing information in the routing table. Failure of a link Introduction of a new link Failure of a router Change of link parameters Chapter 1 16

Routing Table Maintenance RIP uses 4 timers Update timer interval is a route sends an update Invalid timer If an update has not been received after 180 seconds (the default), the route is marked as invalid by setting the metric to 16. The route is retained in the routing table until the flush timer expires. Holddown timer This timer stabilizes routing information and helps prevent routing loops during periods when the topology is converging on new information. By default, the holddown timer is set for 180 seconds. Flush timer By default, the flush timer is set for 240 seconds, which is 60 seconds longer than the invalid timer. When the flush timer expires, the route is removed from the routing table. Chapter 1 17

Routing Table Maintenance EIGRP Unlike other distance vector routing protocols, EIGRP does not send periodic updates. Instead, EIGRP sends bounded updates about a route when a path changes or the metric for that route changes. EIGRP routing updates are Partial updates Updates sent only when there is a change in topology that influences routing information Triggered by topology changes Bounded Propagation of partial updates are automatically bounded so that only those routers that need the information are updated Non periodic Updates are not sent out on a regular basis. More details on how EIGRP operates will be presented in Chapter 9. Chapter 1 18

Routing Table Maintenance RIP Triggered Updates Routing table update that is sent immediately to adjacent routers in response to a routing change The receiving routers, in turn, generate triggered updates that notify their neighbors of the change. Conditions in which triggered updates are sent Interface changes state Route becomes unreachable Route is placed in routing table Chapter 1 19

Routing Table Maintenance problems RIP Triggered Updates (problems) Using only triggered updates would be sufficient if there were a guarantee that the wave of updates would reach every appropriate router immediately. However, there are two problems with triggered updates: Packets containing the update message can be dropped or corrupted by some link in the network. The triggered updates do not happen instantaneously. It is possible that a router that has not yet received the triggered update will issue a regular update at just the wrong time, causing the bad route to be reinserted in a neighbor that had already received the triggered update. Chapter 1 20

Triggered Extensions to RIP Problems and Prerequisites Prerequisites RIP must be enabled for this feature to function. This feature runs on a point-to-point, serial interface only Triggered extensions to IP RIP increase efficiency of RIP on point-topoint, serial interfaces. interface serial 0 ip rip triggered http://cisco.com/en/us/docs/ios/12_0t/12_0t1/feature/guide/trigrip.html Chapter 1 21

Routing Table Maintenance Random Jitter Synchronized updates A condition where multiple routers on multi access LAN segments transmit routing updates at the same time. Problems with synchronized updates -Bandwidth consumption -Packet collisions (with hubs and not with switches) Solution to problems with synchronized updates - Used of random variable called RIP_JITTER A good reference is : Routing TCP/IP (Jeff Doyle) page 193-196. Update timers : timer for periodic update (default 30s) - RIP_JITTER (random to prevent colision - 15% of the update timers) Chapter 1 22

Routing Table Maintenance Random Jitter Figure 5.1. RIP adds a small random variable to the update timer at each reset to help avoid routing table synchronization. The RIP updates from Cisco routers vary from 25.5 to 30 seconds, as shown in the delta times of these updates. Routing TCP/IP, Volume I (CCIE Professional Development) http://www.ubookcase.com/book/cisco/routing.tcp.ip.volume.i.ccie.professional.development/source/1578700418/ch05lev1sec1.html#ch05fig1 Chapter 1 23

Routing Loops Routing loops are A condition in which a packet is continuously transmitted within a series of routers without ever reaching its destination. Chapter 1 24

Routing Loops Routing loops may be caused by: -Incorrectly configured static routes -Incorrectly configured route redistribution -Slow convergence -Incorrectly configured discard routes Routing loops can create the following issues -Excess use of bandwidth -CPU resources may be strained -Network convergence is degraded -Routing updates may be lost or not processed in a timely manner Chapter 1 25

Routing Loops Routing loops can eliminate Defining a maximum metric to prevent count to infinity Holddown timers Split horizon Route poisoning or poison reverse Triggered updates Note: The IP protocol has its own mechanism to prevent the possibility of a packet traversing the network endlessly. IP has a Time-to-Live (TTL) field and its value is decremented by 1 at each router. If the TTL is zero, the router drops the packet. Chapter 1 26

Preventing loops with Count to Infinity Count to Infinity It is a condition that exists when inaccurate routing updates increase the metric value to "infinity" for a network that is no longer reachable. This is a routing loop whereby packets bounce infinitely around a network. Chapter 1 27

Preventing loops by Setting a maximum Setting a maximum Distance Vector routing protocols set a specified metric value to indicate infinity Once a router counts to infinity it marks the route as unreachable RIP defines infinity as 16 hops - an "unreachable" metric. Chapter 1 28

Preventing loops with holddown timers Holddown timers are used to prevent regular update messages from inappropriately reinstating a route that may have gone bad. -Holddown timers allow a router to not accept any changes to a route for a specified period of time. - Do not appept the update when the route is flapping -Point of using holddown timers Allows routing updates to propagate through network with the most current information. Chapter 1 29

Holddown timers work in the following way 1. A router receives an update from a neighbor indicating that a network that previously was accessible is now no longer accessible. 2. The router marks the network as possibly down and starts the holddown timer. 3. If an update with a better metric for that network is received from any neighboring router during the holddown period, the network is reinstated and the holddown timer is removed. 4. If an update from any other neighbor is received during the holddown period with the same or worse metric for that network, that update is ignored. Thus, more time is allowed for the information about the change to be propagated. 5. Routers still forward packets to destination networks that are marked as possibly down. This allows the router to overcome any issues associated with intermittent connectivity. If the destination network truly is unavailable and the packets are forwarded, black hole routing is created and lasts until the holddown timer expires. Chapter 1 30

Preventing loops with holddown timers Chapter 1 31

Preventing loops with Split Horizon The Split Horizon Rule is used to prevent routing loops Split Horizon rule: A router should not advertise a network through the interface from which the update came. Because of split horizon, R1 also does not advertise the information about network 10.4.0.0 back to R2 Chapter 1 32

Preventing loops with Route Poisoning Split horizon with Route poisoning Route poisoning is used to mark the route as unreachable in a routing update that is sent to other routers. Unreachable is interpreted as a metric that is set to the maximum. For RIP, a poisoned route has a metric of 16. 16 16 Chapter 1 33

Preventing loops with poison reverse Split horizon with poison reverse The rule states that once a router learns of an unreachable route through an interface, advertise it as unreachable back through the same interface Poison reverse is a specific circumstance that overrides split horizon. It occurs to ensure that R3 is not susceptible to incorrect updates about network 10.4.0.0. Chapter 1 34

Preventing loops with TTL IP & TTL Purpose of the TTL field The TTL field is found in an IP header and is used to prevent packets from endlessly traveling on a network How the TTL field works -TTL field contains a numeric value The numeric value is decreased by one by every router on the route to the destination. If numeric value reaches 0 then Packet is discarded. Chapter 1 35

Preventing loops with TTL Chapter 1 36

Routing Protocols Today Factors used to determine whether to use RIP or EIGRP include -Network size -Compatibility between models of routers -Administrative knowledge Chapter 1 37

Routing Protocols Today RIP Features of RIP: -Supports split horizon & split horizon with poison reverse -Capable of load balancing -Easy to configure -Works in a multi vendor router environment Chapter 1 38

Routing Protocols Today RIP V2 Features of RIP: Includes the subnet mask in the routing updates, making it a classless routing protocol. Has authentication mechanism to secure routing table updates. Supports variable length subnet mask (VLSM). Uses multicast addresses instead of broadcast. Supports manual route summarization. Chapter 1 39

Routing Protocols Today EIGRP Features of EIGRP: -Triggered updates -EIGRP hello protocol used to establish neighbor adjacencies -Supports VLSM & route summarization -Use of topology table to maintain all routes -Classless distance vector routing protocol -Cisco proprietary protocol Chapter 1 40

Summary Characteristics of Distance Vector routing protocols Periodic updates RIP routing updates include the entire routing table Neighbors are defined as routers that share a link and are configured to use the same protocol The network discovery process for D.V. routing protocol Directly connected routes are placed in routing table 1 st If a routing protocol is configured then Routers will exchange routing information Convergence is reached when all network routers have the same network information Chapter 1 41

Summary D.V. routing protocols maintains routing tables by RIP sending out periodic updates RIP using 4 different timers to ensure information is accurate and convergence is achieved in a timely manner EIGRP sending out triggered updates D.V. routing protocols may be prone to routing loops routing loops are a condition in which packets continuously traverse a network Mechanisms used to minimize routing loops include defining maximum hop count, holddown timers, split horizon, route poisoning and triggered updates Chapter 1 42

Summary Conditions that can lead to routing loops include Incorrectly configured static routes Incorrectly configured route redistribution Slow convergence Incorrectly configured discard routes How routing loops can impact network performance includes: Excess use of bandwidth CPU resources may be strained Network convergence is degraded Routing updates may be lost or not processed Chapter 1 43

Summary Routing Information Protocol (RIP) A distance vector protocol that has 2 versions RIPv1 a classful routing protocol RIPv2 - a classless routing protocol Enhanced Interior Gateway Routing Protocol (EIGRP) A distance vector routing protocols that has some features of link state routing protocols A Cisco proprietary routing protocol Chapter 1 44