Routing Protocols Classification

Similar documents
TDC 363 Introduction to LANs

RIP Version 2. The Classless Brother

RIP Configuration. RIP Overview. Operation of RIP. Introduction. RIP routing table. RIP timers

Distance Vector Routing Protocols

Routing Information Protocol

Routing Information Protocol. RIP application. RIP version 1

Routing Information Protocol. A simple distance vector scheme

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

Introduction to Local and Wide Area Networks

Routing Information Protocol. RIP application. RIP version 1

Routing Information Protocol

Configuring RIP. RIP Configuration Task List

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

Chapter 7 Routing Protocols

Basic Idea. Routing. Example. Routing by the Network

Routing by the Network

Routing, Routing Algorithms & Protocols

Chapter 5 RIP version 1

Distance vector and RIP

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

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Allows IGRP or Enhanced IGRP exterior routes to be advertised in updates.

Part II. Chapter 3. Determining IP Routes

9.1. Routing Protocols

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

RFC Compliance Test Report. Release 3.0

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

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

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

ICS 351: Today's plan. netmask exercises network and subnetwork design dynamic routing RIP distance-vector routing

Chapter 7: Routing Dynamically. Routing & Switching

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

RIP version 1. Routing Protocols and Concepts Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

CS118 Discussion Week 7. Taqi

Objectives. Review: Classful addresses. RIPv1 Characteristics. RIP Operation. RIP version 1

Configuring RIP. Information About RIP CHAPTER

Unit 3: Dynamic Routing

Section 6. Implementing EIGRP ICND2

Internet Routing Protocols Tuba Saltürk

Introduction to Routing

Claim desired outcome

Configuring EIGRP. Finding Feature Information

Exam : : Building Scalable Cisco Internetworks (BSCI) Title. Ver :

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

FiberstoreOS IP Routing Configuration Guide

FSOS IP Routing Configuration Guide

IP Routing: RIP Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)

Network Protocols. Routing. TDC375 Autumn 03/04 John Kristoff - DePaul University 1

Routing Architecture. Objectives. Module 2 Routing Fundamentals. Author: Rolf Augstein January 2006

FiberstoreOS IP Routing Configuration Guide

Planning for Information Network

CCNA EXPLORATION V4.0 ROUTING PROTOCOLS AND CONCEPTS

Chapter 5. RIP Version 1 (RIPv1)

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

CCNA EXPLORATION V4.0 ROUTING PROTOCOLS AND CONCEPTS ACCESSIBLE INSTRUCTOR MATERIALS POWERPOINT OBJECTIVES

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

IP Routing Volume Organization

Draft Manuscript Draft M. Manuscript Draft Ma. t Manuscript Draft Manu. ipt Draft Manuscript Dra. anuscript Draft Manuscri

Routing Protocol comparison

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

Keywords RIP, OSPF, IGP, EGP, AS, LSA

4421.book Page 1 Tuesday, February 1, :52 PM. Building Scalable Cisco Internetworks (BSCI) PART I COPYRIGHTED MATERIAL

2008 NDP Lectures 7 th Semester

Top-Down Network Design

Introduction to IP Routing

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

HP FlexFabric 5700 Switch Series

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

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

Configuring IGRP. The Cisco IGRP Implementation

Antonio Cianfrani. Routing Protocols

Configuring Routing Information Protocol

CSc 450/550 Computer Networks Internet Routing

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

CSCE 463/612 Networks and Distributed Processing Spring 2018

Routing Protocols. Autonomous System (AS)

8. Refer to the exhibit. The ORL router is unable to form a neighbor relationship with the JAX router. What is a possible cause of this problem?

IP Routing: RIP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3650 Switches)

Configuring IP Routing Protocols

RIP Commands. output-delay, page 32 passive-interface (RIP), page 33 poison-reverse, page 35 receive version, page 37 redistribute (RIP), page 39

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

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

IP Enhanced IGRP Commands

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

CompSci 356: Computer Network Architectures. Lecture 12: Dynamic routing protocols: Link State Chapter Xiaowei Yang

Configuring Networking Protocols

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

A study of WAN design, routing protocols and connectivity between Head office to Branch office

COMPARATIVE ANALYSIS OF ROUTING PROTOCOLS

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

Routing & Protocols 1

Chapter 4: outline. Network Layer 4-1

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

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

EXAM TOPICS COVERED IN THIS CHAPTER INCLUDE:

FSOS IP Routing Command Line Reference

Routing with a distance vector protocol - EIGRP

Routing Configuration Commands

Routing in the Internet

Transcription:

Routing Protocols Classification Petr Grygárek rek 1

Classification criteria Internal (IGP) / External (EGP) number of handled routes possibilities of routing politics specification Convergence Time Distance-vector / Link-state Classfull/Classless Metric used Support for load balancing (equal or nonequal cost) 2

Classfull/Classless Routing Protocols Classful routing protocol does not send subnet masks in updates, presumes all networks are of A/B/C class Classless routing protocol can carry subnet mask information in route advertisements VLSM (RFC 1009) Various prefix lengths (subnet masks) for individual subnets of the same network But resulting addresses need to be unique Subnets can be further subnetted for more efficient IP address allocation Control of Route Summarization Smaller routing tables 3

VLSM Addressing 4

Distance-vector Routing Algorithms and Protocols 5

Distance vector algorithms Why distance vector? 1. Routes are advertised as vectors ( vector has length (=metric) and direction (=next-hop)) 2. Neighboring routers exchange their vectors of distances to known networks (i.e. routing tables) 6

DV Algoritms Common Characteristics Principle: Distributed Bellman-For Ford d (Ford-Fulkerson Fulkerson) algorithm Routing tables constructed only based on information from neighboring routers routing by rumor Hop-by by-hop updates Periodic updates (10-90 secs typically, need to balance convergence time vs. load) Broadcast (sometime multicast) updates identity of neighbors not known Full routing table updates (except applying Split horizon rule) 7

DV Algorithms - Timers Update timer Invalid (expiration) timer maintained separately for every route typically 3-77 update timer periods.. Reset every time a route is heard about. if expired, route is marked and propagated as unaccessible (but still used by router itself). Flush (garbage collection) timer after expiration route marked as invalid (by invalid timer) are removed from routing table Holddown timer (will be discussed next) Timers have to be set consistently across whole routing domain 8

Convergence Time (without triggered updates) R1 R2 R3 R4 a b c d Network a just goes up, assume routing update period 30s R2 learns about network a after 30s (max) R3 learns about network a after 60s (max) R4 learns about network a after 90s = 1.5 min (max) 9

Holddown timer Defined as follows: When a previously failed route is received again (with worse metric), ignore that new information for a time equal to the holddown timer. Commonly, routes from the router that was a next-hop before route failed are accepted if propagated with original metric Stated another way: if the route s s metrics gets worse, do not accept other routes for a while Prevents routes to failed networks being re-introduced by routers that have not noticed the failure yet. Helps to combat against count-to to-infinity problem Example topology: triangle with a just failing stub network in one vertex 10

Holddown timer R1 R2 usage example a Holddown timer applied on R4: R3 reports network a as unreachable (using update) Holddown timer started (using triggered R1 offers route to a via 3 hops - do not belive R1 if holddown timer in progress! R4 (maybe R1 is still not informed about network a unreachability) R3 11

Triggered updates (Flash updates) If a metric of a route changes (up or down), information is sent immediately without waiting for the next update period Greatly reduces Counting-to to-infinity problem (but does not eliminate it completely) Possibility to transmit only changed information (not whole routing table) 1-5s pause between triggered updates (reduces broadcast storms and flapping) Implemented in both RIP versions (RFC 2091), IGRP, 12

Split Horizon Solves problem of routing loops occuring due to updates passing each other over a single link Count to infinity problem Poisson reverse information not only filtered by Split horizon, but intentionally sent with infinite metric larger updates safety against corrupted information 13

Counting to infinity problem (even with Split Horizon applied) Example topology: rectangle of 4 routers and one additional in the corner which fails. Counting to infinity solves a problem of routing loops occuring due to updates passing each other over alternate paths See http://websrv.cs.fsu.edu/reference/itl/labs/countin f/countinf.htm 14

Route Poissoning Little mess in terminology Cisco definition: When a distance vector routing protocol notices that a particular route is no longer valid, it has two choices. One is simply to quit advertising about that subnet; the other is to advertise that route, but with an infinite metric, signifying that the route is bad. Route poisoning calls for the second of these options, which removes any ambiguity about whether the route is still valid 15

DVA Advanced issues Passive Interfaces Active and Passive participants Problem of update synchronization periodic network congestion. Possible solution: timing jitter of update periods Unicast updates: if neighbor s s IP address configured explicitly. Reduction of broadcasts, but requires to maintain list of valid neighbors Router may consume more than 1 hop (offset lists define consumed hops on interface for incoming/outgoing going RIP updates) Unnumbered interfaces DV algorithms on dial-on on-demand circuits 16

Advantages of DV routing algoritms Simple implementation (good interoparability) Simple configuration,, no complicated planning Ease of route filtering (incoming or propagated) 17

Routing Information Protocol (RIP) 18

RIP Overview A long history - since ARPANET (1969), implemented in various network architectures (IP,( IPX, AppleTalk, ) Simple metric (hop count) suitable for equal-bandwidth lines and small networks (hop count 16 = infinity) Simple implementation and configuration, widespread usage, interoperable implementations RIPv1: RFC 1058 (Hedrick, 1988 (!) ) RIPv2: RFC 2453 (+ RFC 1723) RIP versions can be different on different interfaces UDP, port 520 (both source and destination) Support for equal-cost load balancing (some implementations) 19

RIP version 1 Classful routing protocol Does not include subnet mask information. Automatic summarization at major network boundaries. Updates sent as broadcasts by default. Next-hop is the sender IP address (source of IP/UDP packet) Max 25 entries (update length max. 512B) Entry has 5x4B: Address Family Identifier, IP address, metric, unused (inefficient) 20

RIPv1 Packet Format 0 1 2 3 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ command (1) version (1) must be zero (2) ---------------+---------------+-------------------------------+ address family identifier (2) must be zero (2) -------------------------------+------------------------------- IP address (4) +---------------------------------------------------------------+ must be zero (4) +---------------------------------------------------------------+ must be zero (4) +---------------------------------------------------------------+ metric (4) +---------------------------------------------------------------+ 21

RIP v1 and subnet masks RIP is classfull no masks in routing updates Assumes consistent (constant) subnet mask for all subnets of one major (i.e. class-level) level) network If some router s s interface is connected to the subnet of a major network and receives a routing update, router will use receiving interface s s mask for the advertised subnet. Othewise the class default mask is used 22

Handling of constant subnet mask in classful routing protocols 172.16.2.0, but with what mask? I will count with mask placed on the receiving interface! 172.16.2.0 R1 R2 R3 172.16.3.0/24 172.16.4.0/24 172.16.1.0/24 172.16.2.0/24 23

Aggregation and subnet continuity requirement Subnets are advertised only on interface belonging to the same major network as those subnets Subnet summarization (subnet hiding) at the boundary of classful networks The previous implies a need of contiguous subnets 24

Discontiguous subnets problem 172.16.0.0? 172.16.0.0 R1 R2 R3 10.0.0.0/30 10.0.0.4/30 172.16.1.0/24 172.16.2.0/24 25

RIPv1 Commands Update Request (on router bootup) Full table request/specific route request Update (solicitated( or unsolicitated) 26

RIP version 2 Classless routing protocol-includes subnet masks in updates Allows disabling of automatic summarization at major network boundaries (do it for discontinuous subnets!). Allows updates as multicasts (224.0.0.9) Support for route tags (marking of external routes) Support for authentication Explicitly defined next-hop for each propagated route 0.0.0.0 if matches the update sender s s IP address Useful for route redistribution between routers on the shared network 27

RIP v2 Packet Format 0 1 2 3 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ command (1) version (1) must be zero (2) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Address Family Identifier (2) Route Tag (2) -------------------------------+------------------------------- IP Address (4) +---------------------------------------------------------------+ Subnet Mask (4) +--------------------------------------------------------------+ Next Hop (4) +---------------------------------------------------------------+ Metric (4) +---------------------------------------------------------------+ 28

RIP v2 Authentication Cleartext password (RFC standard) MD5 hash (Cisco proprietary) (RFC 2082 RIP-2 2 MD5 Authentication) Authentication info appended right behind RIP header as route entry with AFI=FFFFh FFFFh and Route Tag acting as Authentication Type. Then 16 octets of Authentication Data (password/hash) follows. 29

RIP Timers Update timer 30 s Invalid timer: : 6x30s=180 s (starts when no info about route for 180s) Flush Timer: 240s: After Invalid timer expires, route metric is set to 16; after 240s it is flushed out of routing table completely Hold down timer (if Holddown feature implemented) 30

Default route in RIP propagated normally as 0.0.0.0 network If a router receives multiple defaults, it chooses the best based on smaller metric (or load balances) 31

Interior Gateway Routing Protocol (IGRP) Cisco proprietary Hop limit 255 Unequal-cost load balancing Composite metric Slower timing 32

Labs Discontiguous subnets RIP1 chain of 3 routers, side routers have ethernets addressed with subnets of class C networks, connecting lines are class A. Migration to RIP2 router rip version 2 no auto-summary Propagation of default route (from one of side routers) router rip default-information originate (redistribute static // on some IOS versions) RIPv2 authentication Key chain jméno Key 1 Key-string heslo interface s1 ip rip authentication key-chain jméno ip rip authentication mode md5 (Connect into triangle), look at multiple routes in routing table. Set hop-offset offset on some interface router rip offset-list <route-prefix prefix-acl#> in out <hopcount< hopcount-offset> offset> <interface> route filtering router rip distribute-list <ACL#> in out <interface> 33