RIP Signpost Routing, Version 1

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

Routing Protocols (RIP, OSPF, BGP)

Route Discovery Protocols

Chapter 4. Distance Vector Routing Protocols

- IGRP - IGRP v1.22 Aaron Balchunas

- Routing Information Protocol -

Administrative Distance

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

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

IP Routing Configuring RIP, OSPF, BGP, and PBR

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

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

Routing with OSPF. Introduction

Configuring RIP. Overview. Routing Update Process CHAPTER

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

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

Introduction to TCP/IP

ICS 351: Today's plan

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

CS335 Sample Questions for Exam #2

Introduction to Dynamic Routing Protocols

GregSowell.com. Mikrotik Routing

Internet Control Message Protocol (ICMP)

Router and Routing Basics

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

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

Inter-domain Routing. Outline. Border Gateway Protocol

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

Interconnecting Cisco Networking Devices Part 2

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

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

: Interconnecting Cisco Networking Devices Part 2 v1.1

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

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

- Hubs vs. Switches vs. Routers -

How To Understand Bg

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Border Gateway Protocol (BGP)

Prestige 310. Cable/xDSL Modem Sharing Router. User's Guide Supplement

IP Routing Features. Contents

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

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

Computer Networks. Main Functions

Internet Addresses (You should read Chapter 4 in Forouzan)

Using the Border Gateway Protocol for Interdomain Routing

ccna question and answers

6.263 Data Communication Networks

Distance Vector Multicast Routing Protocol

LAB FOUR Dynamic Routing Protocols

Question 1. [7 points] Consider the following scenario and assume host H s routing table is the one given below:

IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

8.2 The Internet Protocol

Computer Networks By Bahaa Q. Al-Mussawi Subnetting Basics Reduced network traffic Optimized network performance Simplified management

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

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

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

Modeling and Simulation of Routing Protocols in the Cloud

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

IP addressing and forwarding Network layer

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

IP - The Internet Protocol

Introduction to LAN/WAN. Network Layer

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

(Refer Slide Time: 02:17)

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Link-State Routing Protocols

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)

Cisco Router Configuration Tutorial

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

Talk Announcement CSC Lecture 5 Intra-Domain Routing Protocols. Administrivia. This Time

Chapter 8 Advanced Configuration

Transport Layer Protocols

Transport and Network Layer

FortiOS Handbook - Advanced Routing VERSION 5.2.2

04 Internet Protocol (IP)

basic BGP in Huawei CLI

Advanced Routing. FortiOS Handbook v3 for FortiOS 4.0 MR3

COMP 631: COMPUTER NETWORKS. Internet Routing. Jasleen Kaur. Fall Forwarding vs. Routing: Local vs. Distributed

IP Filter/Firewall Setup

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

Savera Tanwir. Internet Protocol

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

Classful IP Addressing (cont.)

How To Solve The Count To Infinity Problem In A Network (Networking) With A Loop Free Distance Vector Routing (Dns) Protocol

Internet Protocol version 4 Part I

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

Exercises TCP/IP Networking. Solution. With Solutions

2. IP Networks, IP Hosts and IP Ports

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.


Border Gateway Protocol (BGP-4)

Internet Protocols. Addressing & Services. Updated:

ACHILLES CERTIFICATION. SIS Module SLS 1508

Using IPM to Measure Network Performance

NETWORK LAYER/INTERNET PROTOCOLS

Routing Protocol - BGP

Internet Protocols. Background CHAPTER

IP Multicasting. Applications with multiple receivers

Chapter 5 Customizing Your Network Settings

Transcription:

RIP Signpost Routing, Version 1 (C) Herbert Haas 2005/03/11

Routing Information Protocol Interior Gateway Protocol (IGP) Distance-Vector Routing Protocol Bellman Ford Algorithm RFC 1058 released in 1988 Classful No subnet masks carried Distributed through BSD UNIX 4.2 in 1982 (routed) 2

RIP Basics Signpost principle Own routing table is sent periodically (every 30 seconds) Receiver of update extracts new information Known routes with worse metric are ignored What is a signpost made of? Destination network Hop Count (metric, "distance") Next Hop ("vector", given implicitly by sender's address! ) 3

"Routing By Rumour" Good news propagate quickly 30 seconds per network Bad news are ignored Except when sent by routers from which these routes had been learned initially But better news from ANY router will be preferred Unreachable messages propagate slowly 180 seconds per network 4

Without Split Horizon (1) 1.0.0.0 direct 12.0.0.0 direct 2.0.0.0 1 DA=, SA=A 1.0.0.0 1 12.0.0.0 1 2.0.0.0 2 2.0.0.0 direct 12.0.0.0 direct 1.0.0.0 1 1.0.0.0 2.0.0.0 Router A Router B 12.0.0.0 DA=, SA=B 2.0.0.0 1 12.0.0.0 1 1.0.0.0 2 5

Without Split Horizon (2) 1.0.0.0 direct 12.0.0.0 direct 2.0.0.0 1 2.0.0.0????? 12.0.0.0 direct 1.0.0.0 1 2 1 1.0.0.0 2.0.0.0 Router A Router B 12.0.0.0 6

Without Split Horizon (3) 1.0.0.0 direct 12.0.0.0 direct 2.0.0.0 1 1.0.0.0 Router A 12.0.0.0 DA=, SA=A 1.0.0.0 1 12.0.0.0 1 2.0.0.0 2 3 2.0.0.0 2 12.0.0.0 direct 1.0.0.0 1 4 Router B DA=, SA=B 2.0.0.0 3 12.0.0.0 1 1.0.0.0 2 5 7

Without Split Horizon (4) 1.0.0.0 direct 12.0.0.0 direct 2.0.0.0 3 1.0.0.0 Router A 12.0.0.0 6 DA=, SA=A 1.0.0.0 1 12.0.0.0 1 2.0.0.0 4 7 2.0.0.0 4 12.0.0.0 direct 1.0.0.0 1 8 Router B DA=, SA=B 2.0.0.0 5 12.0.0.0 1 1.0.0.0 2 9...Count to Infinity... During count to infinity packets to network 2.0.0.0 are caught in a routing loop 8

Split Horizon A router will not send information about routes through an interface over which the router has learned about those routes Exactly THIS is split horizon Idea: "Don't tell neighbor of routes that you learned from this neighbor" That's what humans (almost) always do: Don't tell me what I've told you! Cannot 100% avoid routing loops! 9

RIP At Work (A) 1.0.0.0 1.0.0.0 direct 12.0.0.0 direct 31.0.0.0 direct Router A DA=, SA=A 1.0.0.0 1 12.0.0.0 1 31.0.0.0 DA=, SA=A 1.0.0.0 1 31.0.0.0 1 12.0.0.0 23.0.0.0 2.0.0.0 direct 12.0.0.0 direct 23.0.0.0 direct 1.0.0.0 1 31.0.0.0 1 Router B 2.0.0.0 3.0.0.0 direct 31.0.0.0 direct 23.0.0.0 direct 21 1.0.0.0 1 12.0.0.0 1 Router C 3.0.0.0 10

RIP At Work (B) 1.0.0.0 1.0.0.0 direct 12.0.0.0 direct 31.0.0.0 direct 2.0.0.0 1 23.0.0.0 1 Router A 31.0.0.0 DA=, SA=B 2.0.0.0 1 23.0.0.0 1 12.0.0.0 23.0.0.0 2.0.0.0 direct 12.0.0.0 direct 23.0.0.0 direct 1.0.0.0 1 31.0.0.0 1 Router B DA=, SA=B 2.0.0.0 1 12.0.0.0 1 2.0.0.0 3.0.0.0 direct 31.0.0.0 direct 23.0.0.0 direct 21 1.0.0.0 1 12.0.0.0 1 2.0.0.0 1 Router C 3.0.0.0 11

RIP At Work (C) 1.0.0.0 direct 12.0.0.0 direct 31.0.0.0 direct 2.0.0.0 1 23.0.0.0 1 3.0.0.0 1 2.0.0.0 direct 12.0.0.0 direct 23.0.0.0 direct 1.0.0.0 1 31.0.0.0 1 3.0.0.0 1 1.0.0.0 Router A DA=, SA=C 3.0.0.0 1 23.0.0.0 1 31.0.0.0 12.0.0.0 3.0.0.0 direct 31.0.0.0 direct 23.0.0.0 direct 21 1.0.0.0 1 12.0.0.0 1 2.0.0.0 1 Router C 3.0.0.0 23.0.0.0 Router B DA=, SA=C 3.0.0.0 1 31.0.0.0 1 2.0.0.0 12

Count To Infinity Main problem with distance vector protocols Unforeseeable situations can lead to count to infinity Access lists Disconnection and connections Router malfunctions... During that time, routing loops occur! 13

Count To Infinity (1) 1.0.0.0 2.0.0.0 Router A 2.0.0.0????........ Router B Router C 3.0.0.0 s2 Router D 4.0.0.0 4.0.0.0 direct 2.0.0.0 2......... 14

Count To Infinity (2) 2.0.0.0 3 s2........ 1.0.0.0 Router A Router B s2 Router C 3.0.0.0 s2 Router D 4.0.0.0 DA=, SA=D 2.0.0.0 3....... 4.0.0.0 direct 2.0.0.0 2......... 15

Count To Infinity (3) 1.0.0.0 Router A DA=, SA=B 2.0.0.0 4....... DA=, SA=B 2.0.0.0 4....... 2.0.0.0 3 s2........ Router B s2 Router C s2 3.0.0.0 DA=, SA=C 2.0.0.0 5....... Router D 4.0.0.0 4.0.0.0 direct 2.0.0.0 5......... 16

Count To Infinity (4) Count to Infinity situations cannot be avoided in any situation (drawback of signpost principle) Basic solution: Maximum Hop Count = 16 2.0.0.0 6 s2........ 1.0.0.0 Router A Router B s2 Router C 3.0.0.0 s2 Router D 4.0.0.0 DA=, SA=D 2.0.0.0 6....... 4.0.0.0 direct 2.0.0.0 5......... 17

Maximum Hop Count = 16 Upon network failure, the route is marked as INVALID (hop count 16) and propagated. 4 2.0.0.0 16 -............... 1 1.0.0.0 2.0.0.0 Router A 3 Router B 4 2.0.0.0 16 -........ DA=, SA=B 2.0.0.0 16 Router C 3 DA=, SA=B 2.0.0.0 16....... 3.0.0.0 s2 2.0.0.0 16 -........ Router D s2 4.0.0.04 2 3 DA=, SA=B 2.0.0.0 16....... 4.0.0.0 direct 2.0.0.0 16 -......... 18

Maximum Hop Count Defining a maximum hop count of 16 provides a basic safety factor But restricts the maximum network diameter Routing loops might still exist during 480 seconds (16 30s) Therefore several other measures necessary 19

Additional Measures Split Horizon Suppressing information that the other side should know better Used during normal operation but cannot prevent routing loops!!! Split Horizon with Poison Reverse Declare learned routes as unreachable "Bad news is better than no news at all" Stops potential loops due to corrupted routing updates 20

Split Horizon With Poison Reverse 1.0.0.0 direct 12.0.0.0 direct 2.0.0.0 1 DA=, SA=A 1.0.0.0 1 12.0.0.0 1 2.0.0.0 16 2.0.0.0 direct 12.0.0.0 direct 1.0.0.0 1 1.0.0.0 2.0.0.0 Router A Router B 12.0.0.0 DA=, SA=B 2.0.0.0 1 12.0.0.0 1 1.0.0.0 16 Note: poison reverse overrides split horizon when a network is lost 21

Additional Measures Remember: good news overwrite bad news Unreachable information could be overwritten by uninformed routers (which are beyond scope of split horizon) Hold Down Guarantees propagation of bad news throughout the network Routers in hold down state ignore good news for 180 seconds 22

Hold Down (1) Router C receives unreachable message (4.0.0.0, 16) from router D Router C declares 4.0.0.0 as invalid (16) and enters hold-down state 4.0.0.0 16 -... 5..... Router A 3 4.0.0.0 16 -........ 4.0.0.0 3........ Router E Router C 4 3.0.0.0 DA=, SA=B 4.0.0.0 16....... s2 2 DA=, SA=D 4.0.0.0 16....... Router B Router D 1 4.0.0.0 4.0.0.0 16 -........ 5 23

Hold Down (2) Information about network 4.0.0.0 with better metric is ignored for 180 seconds 4.0.0.0 16 -........ Router A Router E DA=, SA=E 4.0.0.0 4....... 4.0.0.0 3........ I'll ignore that, I'm in Hold Down Router B 4.0.0.0 16 -........ 4.0.0.0 16 -........ Router C s2 Router D 3.0.0.0 24

Hold Down (3) Time enough to propagate the unreachabilty of network 4.0.0.0 4.0.0.0 16 -........ Router A DA=, SA=A 4.0.0.0 16....... Router E 4.0.0.0 16........ Router B 4.0.0.0 16 -........ 4.0.0.0 16 -........ Router C s2 Router D 3.0.0.0 25

Triggered Update To reduce convergence time, routing updates are sent immediately upon events (changes) On receiving a different routing update a router should also send immediately an update Called triggered update 26

RIP Timers Summary UPDATE (30 seconds) Period to send routing update INVALID (180 seconds) Aging time before declaring a route invalid ("16") in the routing table HOLDDOWN (180 seconds) After a route has been invalided, how long a router will wait before accepting an update with better metric FLUSH (240 seconds) Time before a non-refreshed routing table entry is removed 27

Message Format Command Version Must be zero Address Family Identifier Must be zero IP Address Must be zero Must be zero Metric Address Family Identifier Must be zero IP Address Must be zero Must be zero Metric......... Up to 25 route entries 28

RIP Messages Request (command = 1) Ask neighbor to send response containing all or part of the routing table Typically used at startup only Response (command = 2) THE Routing Update Typically sent every 30 seconds without explicit request 29

Details RIP message is sent within UDP payload UDP Port 520, both source and destination port Maximum message size is 512 bytes L2 Broadcast + IP Broadcast Because we do not know neighbor router addresses On shared media one update is sufficient Version = 1 Address family for IP is 2 30

Timer Synchronization In case of many routers on a single network Processing load might affect update timer Routers might get synchronized Collisions occur more often Therefore either use External timer Or add a small random time to the update timer (30 seconds + RIP_JITTER = 25...35 seconds) 31

RIP Disadvantages Big routing traffic overhead Contains nearly entire routing table WAN links (!) Slow convergence Small network diameter No discontiguos subnetting Only equal-cost load balancing supported (if you are lucky) 32

Summary First important distance vector implementation (not only for IP) Main problem: Count to infinity Maximum Hop Count Split Horizon Poison Reverse Hold Down Classless, Slow, Simple 33

Quiz How could slower gateways/links be considered for route calculation Wouldn't TCP be more reliable than UDP? Does maximum hop-count mean that I can only have 15 net-ids? 34