Routing Information Protocol

Similar documents
Routing Information Protocol. RIP application. RIP version 1

Routing Information Protocol. RIP application. RIP version 1

Routing Information Protocol

Routing Information Protocol. A simple distance vector scheme

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

TDC 363 Introduction to LANs

Basic Idea. Routing. Example. Routing by the Network

Distance vector and RIP

Routing by the Network

Routing Protocols Classification

RIP Version 2. The Classless Brother

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Distance Vector Routing Protocols

Internet Routing Protocols Tuba Saltürk

Chapter 7: Routing Dynamically. Routing & Switching

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

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

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

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

Introduction to Local and Wide Area Networks

Configuring RIP. RIP Configuration Task List

Chapter 5 RIP version 1

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

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

Chapter 7 Routing Protocols

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

9.1. Routing Protocols

IP Routing Volume Organization

Introduction to Dynamic Routing Protocols

Part II. Chapter 3. Determining IP Routes

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

Configuring RIP. Information About RIP CHAPTER

BTEC Level 3 Extended Diploma

Top-Down Network Design

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

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

Section 6. Implementing EIGRP ICND2

Unit 3: Dynamic Routing

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

Routing Protocols and

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

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

COMPARATIVE ANALYSIS OF ROUTING PROTOCOLS

Routing. Basic principles. Karst Koymans. Informatics Institute University of Amsterdam. (version 16.4, 2017/02/23 10:58:58)

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

Configuring EIGRP. Finding Feature Information

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

RFC Compliance Test Report. Release 3.0

Configuring EIGRP. Overview CHAPTER

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

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

Table of Contents. Cisco Introduction to EIGRP

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

Claim desired outcome

Routing in the Internet

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

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

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

CIS 83 Midterm Spring 2004 Answer Sheet Name Score Grade Question Answer Question Answer

HP FlexFabric 5700 Switch Series

Redesde Computadores(RCOMP)

IP Enhanced IGRP Commands

Link State Routing. Link State Packets. Link State Protocol. Link State Protocols Basic ideas Problems and pitfalls

CS118 Discussion Week 7. Taqi

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

CCNA EXPLORATION V4.0 ROUTING PROTOCOLS AND CONCEPTS

Introduction to Routing

Configuring IGRP. The Cisco IGRP Implementation

Routing with a distance vector protocol - EIGRP

2008 NDP Lectures 7 th Semester

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

Configuring Networking Protocols

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

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

Routing Protocols. Autonomous System (AS)

Comparative Study of Routing Protocols Convergence using OPNET Chapter Three: Simulation & Configuration

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

FiberstoreOS IP Routing Configuration Guide

Network Working Group Request for Comments: 2080 Category: Standards Track Ipsilon Networks January 1997

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

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

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

IP Protocols. ALTTC/Oct

Link State Routing. Link State Packets. Link State Protocol. Link State Protocols Basic ideas Problems and pitfalls

Chapter 5. RIP Version 1 (RIPv1)

(Refer Slide Time: 01:08 to 01:25min)

EIGRP. Finding Feature Information

Chapter 4: VLSM and Classless Inter Domain Routing. ITE PC v4.0 Chapter Cisco Systems, Inc. All rights reserved.

Why dynamic route? (1)

Routing, Routing Algorithms & Protocols

Chapter 6 Reading Organizer

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?

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

Network Working Group. Obsoletes: 1723, 1388 November 1998 STD: 56 Category: Standards Track

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

Antonio Cianfrani. Routing Protocols

Chapter 9. Enhanced Interior Gateway Routing Protocol (EIGRP) Part I

Chapter 4: Manipulating Routing

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

FiberstoreOS IP Routing Configuration Guide

Transcription:

Routing Information Protocol A simple distance vector scheme Karst Koymans Informatics Institute University of Amsterdam (version 18.2, 2018/11/21 13:11:09) Friday, November 23, 2018 Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 1 / 40

1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 2 / 40

RIP version 1 Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 3 / 40

RIP version 1 Origin and application Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 4 / 40

RIP version 1 Origin and application RIP version 1 RFC 1058 Charles Hedrick, Rutgers University, 1988 Based on the (distributed) Bellman-Ford distance vector algorithm Also used as the first ARPANET routing protocol Many implementations were already present differing in details (timers, ) available before the specification itself GWINFO from Xerox PARC routed from BSD 4.2 Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 5 / 40

RIP version 1 Origin and application RIP application Inside homogeneous networks with a moderate size An interior routing protocol (IGP) Maximum diameter is 15 hops Based on a uniform cost (weight) of 1 Hence in this case = 16 Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 6 / 40

RIP version 1 Basic RIPv1 operation Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 7 / 40

RIP version 1 Basic RIPv1 operation Basic operation Keep a table of routes to destination networks with distance (metric), gateway (next hop) Periodically send out a complete table to all neighbours Send all destination networks with distances Do not send the gateways Update your table with newly collected information The distance can only decrease (become better) unless the information comes from the gateway itself, thereby overriding the old information which only occurs if the topology changes or links fail or come up Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 8 / 40

RIP version 1 Basic RIPv1 operation Split horizon (with poisoned reverse) Split horizon Do not advertize back routes you learned from your neighbour to the network you both are on Poisoned reverse Do advertise routes back but with distance which indicates unreachability explicitly Advantage is the faster convergence in case topology changes for instance when routers point to each other Disadvantage is the larger routing update packets Therefore implementation is optional or configurable Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 9 / 40

RIP version 1 Basic RIPv1 operation Timers Update timer: updates are sent every 30 seconds (default) Invalid timer: routes time out after 180 seconds (default) Called timeout in RFC 1058 Flush timer: routes disappear after 240 seconds (default) Called garbage-collection timer in RFC 1058 with a default value of 120 seconds after timeout Unreachable networks are included in updates until the flush timer expires them and they are eliminated from the routing table Infinity = = 16 Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 10 / 40

RIP version 1 Basic RIPv1 operation Timers (later additions) Triggered updates An update is being sent as soon as a route changes Hold-down timer (default 180 seconds) This is a later (Cisco) addition, not present in RFCs It exists to prevent incorporating possibly bad routing information which might be present in a network that didn t converge yet The semantics is not completely clear (not standardized) Essentially do not accept updates during hold-down on routes that have been marked unreachable Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 11 / 40

RIP version 1 RIPv1 packets Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 12 / 40

RIP version 1 RIPv1 packets RIP version 1 packets Packets are broadcast to 255.255.255.255 or to a directed broadcast address or to an individual host or router as a response to a request Works on top of UDP and uses 520 as its well-known port The maximum size of this UDP packet is 512 bytes, including the 8 bytes long UDP header There is room for 25 route updates Each update needs 20 bytes Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 13 / 40

RIP version 1 RIPv1 packets RIPv1 packet format 0 7 8 15 16 23 24 31 Command Version Reserved (must be 0) Address Family Identifier Reserved (must be 0) IP Address (network) Reserved (must be 0) Metric Repeated maximally 25 times Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 14 / 40

RIP version 1 RIPv1 packets RIPv1 packet fields RIPv1 fields Command Request(1) or Response(2) Version 1 AFI IP(2) IP Address Destination Network Metric Distance (max 16= ) Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 15 / 40

RIP version 1 RIP version 1 and subnetting Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 16 / 40

RIP version 1 RIP version 1 and subnetting Subnets RIPv1 supports fixed length, one level deep, subnet masks RIPv1 uses heuristics to derive the uniform subnet mask in use throughout the whole subnetted network from its own directly connected subnets RIPv1 differentiates between neighbours for updates about subnets being part of that same subnetted network being part of another network Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 17 / 40

Protocol extensions Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 18 / 40

Protocol extensions IGRP Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 19 / 40

Protocol extensions IGRP IGRP (1) IGRP stands for Interior Gateway Routing Protocol IGRP is a Cisco proprietary protocol IGRP is just like RIP a distance vector protocol The basics are the same as with RIP It runs directly on top of IP (protocol 9) It has a larger notion of, typically 100, maximum 255 It accepts up to four parallel paths which Cisco also used in its RIP implementation, deviating from the official specification Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 20 / 40

Protocol extensions IGRP IGRP (2) Division into independent domains is possible which are called (confusingly) autonomous systems connected together with static (or redistributed) routes Uses three types of network routes Interior route (with implicit subnet information, like in RIPv1) System route (which is possibly summarized) Exterior route (acting as a configured candidate default) Support for multiple default routes using fictitious network numbers contrary to RIP that only (optionally) includes 0.0.0.0 Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 21 / 40

Protocol extensions IGRP IGRP (3) RIP The only metric is the hop count IGRP The metric is composite, based on Delay, Bandwidth, Reliability and Load The hop count is still communicated as a separate field to see when has been reached MTU information about the path is also communicated Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 22 / 40

Protocol extensions EIGRP Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 23 / 40

Protocol extensions EIGRP EIGRP (1) EIGRP stands for Enhanced Interior Gateway Routing Protocol EIGRP is still a Cisco proprietary protocol but also specified in RFC 7868 for informational purposes It runs directly on top of IP (protocol 88) Remembers all paths, not only the best path It carries explicit subnet information (VLSM) It keeps state about its neighbours It can take the MTU into account Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 24 / 40

Protocol extensions EIGRP EIGRP (2) It uses the DUAL (Diffusing Update Algorithm) algorithm for loop free routing and fast convergence It uses no regular (periodic) routing table updates Uses partial and incremental updates when the routing table changes It uses hello multicast packets (224.0.0.10) to discover neighbours It forms adjacencies with neighbours It uses ack(nowledgement)s for reliable communication It can summarize on arbitrary bit boundaries (classless) Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 25 / 40

Protocol extensions EIGRP EIGRP (3) Use of DUAL Complicated algorithm, remotely similar to the propose and agree mechanism for Rapid Spanning Tree Suppose S-M-T is a path from S to T via neighbour M Suppose the link cost for S-M is c Suppose the path cost for M-T is p When is it safe (with respect to loop avoidance) to switch to a backup path via neighbour N when the link S-M fails? Say the link cost for S-N is d and the path cost for N-T is q Answer: q c + p (feasible successor condition) Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 26 / 40

RIP version 2 Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 27 / 40

RIP version 2 Extensions with respect to version 1 Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 28 / 40

RIP version 2 Extensions with respect to version 1 RIP version 2 Specified in RFC 2453 Gary Malkin, Bay Networks, 1998 It has extensions for Subnet masks Alternate next hop Authentication Multicasting Route tags Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 29 / 40

RIP version 2 Extensions with respect to version 1 RIPv2 packet format 0 7 8 15 16 23 24 31 Command Version Reserved (must be 0) Address Family Identifier Route Tag IP Address (network) Subnet Mask Next Hop Metric Repeated maximally 25 times Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 30 / 40

RIP version 2 Extensions with respect to version 1 RIPv2 packet fields RIPv2 fields Command Request(1) or Response(2) Version 2 AFI IP(2) Route Tag Identification of route origin IP Address Destination Network Subnet Mask CIDR support Next Hop Gateway (if different from advertising router) Metric Distance (max 16= ) Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 31 / 40

RIP version 2 Extensions with respect to version 1 authentication data is added as a trailer to the RIP data Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 32 / 40 First-routing-entry-as-authentication hack 0 7 8 15 16 23 24 31 Address Family Identifier (=0xFFFF) Authentication Type Authentication Authentication type 2 means use of a plaintext password Authentication type 3 (RFC 4822) means use of Keyed-MD5 or HMAC-SHA-{1,256,384,512} where extended

RIP version 2 Summary of changes with respect to version 1 Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 33 / 40

RIP version 2 Summary of changes with respect to version 1 Summary of changes (1) Authentication fields First AFI is 0xFFFF Type 2: simple password of length 16 bytes Type 3: key id, sequence number and length and offset of a variable length authentication trailer Route tag field This is simply carried along It differentiates between internally and externally generated routes Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 34 / 40

RIP version 2 Summary of changes with respect to version 1 Summary of changes (2) Subnet mask field net/subnet/host route differentiation Next Hop field Used when best next hop does not speak RIP itself Multicast (not a field) replaces broadcast The destination of updates is 224.0.0.9 (which is not forwarded) Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 35 / 40

Next Hop scenario Network A B E F A and B speak RIP internally. E and F speak some other protocol over the external network. E can speak RIP to A and B on behalf of F, setting the Next Hop to F as appropriate.

RIP Next Generation and RIP variants Outline 1 RIP version 1 Origin and application Basic RIPv1 operation RIPv1 packets RIP version 1 and subnetting 2 Protocol extensions IGRP EIGRP 3 RIP version 2 Extensions with respect to version 1 Summary of changes with respect to version 1 4 RIP Next Generation and RIP variants Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 37 / 40

RIP Next Generation and RIP variants RIPng (for IPv6) Specified in RFC 2080 It still runs over UDP It uses port number 521 Packets can be any length that fits inside the network unfragmented Supports IPv6 prefix, route tags, next hop No authentication (which can be done at the IP level) It uses FF02::9, the all-rip-routers multicast address Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 38 / 40

RIP Next Generation and RIP variants RIPng packet format 0 7 8 15 16 23 24 31 Command Version Reserved (must be 0) IPv6 Prefix Route Tag Prefix Length Metric As many as can fit in a packet unfragmented Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 39 / 40

RIP Next Generation and RIP variants RTE-with-big-metric-as-next-hop hack 0 7 8 15 16 23 24 31 Next Hop 0x0000 0x00 Metric(=0xFF) The next hop must be a link local address Using :: as next hop means use originator as next hop Next Hop remains valid until next next-hop-rte Karst Koymans (UvA) Routing Information Protocol Friday, November 23, 2018 40 / 40