Routing Information Protocol (RIP) Sungsu Kim Sungsu Kim March 25, 2008.

Slides:



Advertisements
Similar presentations
RIP V2 W.lilakiatsakun.  RFC 2453 (obsoletes –RFC 1723 /1388)  Extension of RIP v1 (Classful routing protocol)  Classless routing protocol –VLSM is.
Advertisements

RIP V2 CCNP S1(5), Chapter 4.
Computer Networks with Internet Technology William Stallings
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Nov 04, 2004CS573: Network Protocols and Standards1 IP Routing: GGP and RIP Network Protocols and Standards Autumn
RIP – Routing Information Protocol Syeda Momina Tabish MIT - 7.
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
Unicast Routing Protocols: RIP, OSPF, and BGP
RFC 2453 RIP 2 (Routing Information Protocol) Daher Kaiss.
Routing.
COS 420 Day 17. Agenda Finished Grading Individualized Projects Very large disparity in student grading No two students had same ranking for other students.
1 Dynamic Routing Protocols I RIP Relates to Lab 4. The first module on dynamic routing protocols. This module provides an overview of routing, introduces.
RIP. A PPROACHES TO S HORTEST P ATH R OUTING There are two basic routing algorithms found on the Internet. 1. Distance Vector Routing Each node knows.
Switching and Routing Technique
INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is.
TCP/IP Protocol Suite1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
ROUTING BASICS. Why are Routers Necessary? One of the key components of the technical infrastructure of the network One of the key components of the technical.
Interior Gateway Protocols: RIP & OSPF
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
Distance Vector Routing Protocols W.lilakiatsakun.
Routing Information Protocol 2 (RIP2)
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
CS 4396 Computer Networks Lab
M. Menelaou CCNA2 DYNAMIC ROUTING. M. Menelaou DYNAMIC ROUTING Dynamic routing protocols can help simplify the life of a network administrator Routing.
Slide /2009COMM3380 Routing Algorithms Distance Vector Routing Each node knows the distance (=cost) to its directly connected neighbors A node sends.
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
1 CMPT 471 Networking II RIP. © Janice Regan, Dynamic Routing  In very simple small and stable networks static routing may be adequate.  As networks.
1 Chapter Overview Routing Principles Building Routing Tables.
Sybex CCNA Chapter 6: IP Routing Instructor & Todd Lammle.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
RIP2 (Routing Information Protocol) Team Agile. Routing Protocols Link State – OSPF – ISIS Distance vector – RIP (version 1 and 2) – IGRP (Cisco Proprietary)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vectore Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Chapter 14 1 Unicast Routing Protocols There isn’t a person anywhere that isn’t capable of doing more than he thinks he can. - Henry Ford.
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
RIP Routing Information Protocol 指導老師:梁德昭 老師 簡報者:方佳娣.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
RIP Routing Protocol. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
1 Dynamic Routing Protocols I RIP Relates to Lab 4. The first module on dynamic routing protocols. This module provides an overview of routing, introduces.
1. 2  An autonomous system is a region of the Internet that is administered by a single entity.  Examples of autonomous regions are:  UVA’s campus.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols part2
Chapter 14 Routing Protocols (RIP, OSPF, and BGP)
Routing Protocols (RIP, OSPF, BGP)
Routing Information Protocol (RIP)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Distance Vector and Link State RIP OSPF
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Routing.
Chapter 5: Dynamic Routing
Dynamic Routing Protocols part2
Computer Networks Protocols
Routing.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

Routing Information Protocol (RIP) Sungsu Kim Sungsu Kim March 25, 2008

Contents  Autonomous systems  Interdomain and intradomain routing  RIP Overview, history  Distance vector algorithm  Protocol Specification and Message Format  Potential problems of RIP  Timers  Security considerations in RIP2  What is RIPng advantages and usage  Disadvantages of RIP2 and proposed solutions  Conclusion

Autonomous Systems  An autonomous system (AS) is a region of the Internet that is administered by a single entity and that has a unified routing policy  Each autonomous system is assigned an Autonomous System Number (ASN).  Examples of autonomous regions are:  UofT ’ s campus network  MCI ’ s backbone network  Regional Internet Service Provider  Routing is done differently –within an autonomous system (intradomain routing) and –between autonomous systems (interdomain routing).

Interdomain and Intradomain Routing  Routing protocols for intradomain routing are called interior gateway protocols (IGP)  Routing protocols for interdomain routing are called exterior gateway protocols (EGP)

Interdomain and Intradomain Routing Intradomain Routing  Routing within an AS  Ignores the Internet outside the autonomous system  Protocols for Intradomain routing are also called Interior Gateway Protocols or IGP ’ s.  Popular protocols are –RIP (simple, old) –OSPF (better) Interdomain Routing  Routing between AS ’ s  Assumes that the Internet consists of a collection of interconnected AS ’ s  Protocols for interdomain routing are also called Exterior Gateway Protocols or EGP ’ s.  Routing protocol: –BGP

RIP - History  Late 1960s : Distance Vector protocols were used in the ARPANET  Mid-1970s: XNS (Xerox Network system) routing protocol is the precursor of RIP in IP (and Novell ’ s IPX RIP and Apple ’ s routing protocol)  1982Release of routed for BSD Unix  1988RIPv1 (RFC 1058) - classful routing  1993RIPv2 (RFC 1388) - adds subnet masks with each route entry - allows classless routing  1998Current version of RIPv2 (RFC 2453)

Components of a Routing Algorithm  A procedure for sending and receiving reachability information between neighboring routers  A procedure for calculating optimal routes –Routes are calculated using a shortest path algorithm:  Goal: Given a network were each link is assigned a cost. Find the path with the least cost between two networks.  A procedures for reacting to and advertising topology changes

Approaches to Shortest Path Routing  There are two basic routing algorithms found on the Internet. 1. Distance Vector Routing  Each node knows the distance (=cost) to its directly connected neighbors  A node sends periodically a list of routing updates to its neighbors.  If all nodes update their distances, the routing tables eventually converge  New nodes advertise themselves to their neighbors 2. Link State Routing  Each node knows the distance to its neighbors  The distance information (=link state) is broadcast to all nodes in the network  Each node calculates the routing tables independently

RIP updating algorithm 1.Add on 1 hop to the hop count for each advertised destination 2.Repeat the following steps for each advertised destination 1.If (destination no in the routing table) 1.Add the advertised information to the table 2.Else 1.If (next-hop field is the same) 1.Replace entry in the table with the advertised one 2.Else 1.If (advertised hop count smaller than one in the table) 2.Replace entry in the routing table 3.return

13.2 RIP (routing table)  update periodically by updating algorithm Destination Hop Count Next Hop

N2 N3 N4 N5 N6 N1 A B C N11- N21- N31- ① N21- N41- N51- ① N31- N61- ① N21- N41- N51- ② RIP N11- N21- N31- N42B N52B ③ Hop count Next hop Updating routing table by RIP

RIPv1 Packet Format One RIP message can have up to 25 route entries 1: request 2: response 2: for IP 0…0: request full rou- ting table Address of destination Cost (measured in hops) 1: RIPv1

Operations - Input Processing  Handles the datagram received on RIP port (520).  Do validation ( such as version number etc) – If validation fails log the error  Check command field (Request or Response)  Handling Input Request Message– –Initialization Request -- Send entire routing table. –Specific request -- Send only entries requested. –Send response immediately  Handling Input Response Message- A response can be received for one of several following reasons. –Response to a specific query (direct UDP connection for the router). –Regular update (Unsolicited response). –Triggered update caused by a route change.

RIP Request  When a router is powered on  Used for diagnostic purposes

Operations – Output Processing  Describes the processing used to create response and request messages.  The out put processing is triggered by the following ways. –By input processing –By regular routing update ( broadcast/multi cast at every 30 secs) –By the triggered updates ( When a route changes)  Generating Request Message –Can send one Request –Request for entire routing table.  Generating Response Messages –Response to Request  Sent to only one destination –Regular updates  Send the entire routing table –Triggered Updates  Create Response messages to neighbors.

RIP Response  Response to request, deliver routing information every 30 seconds

Example of RIP massage

Timer RIP message  periodic timer : controlling the sending of messages  expiration timer : governing the validity of a route  garbage collection : advertising the failure of a route

Potential Problems and Solutions Potential Problems: –Count to infinity problem –Routing loops SOLUTION: Triggered Updates/Split Horizon for Preventing Two-hop Loops Split Horizon: "Split horizon" is a scheme for avoiding problems caused by including routes in updates sent to the router from which they were learned. –Simple - The information about destination routed on the link is omitted –With poisonous reverse -The corresponding distance is set to infinity if the destination is routed on the link Triggered updates: –Split horizon with poisoned reverse will prevent any routing loops that involve only two routers. However, it is possible to end up with patterns in which three routers are engaged in mutual deception. –A timer is associated with each entry in the routing table - much longer than the period of transmission of information –Triggered updates request nodes to send messages as soon as they notice a change in the routing table

Count to infinity problem  Limit hop count as 16  If hop count is 16, then destination is unreachable

Disadvantages of RIP  Slow convergence – –meaning that a change somewhere in the Internet propagates very slowly through the rest of the internet. – –For example, suppose there is a change in network 1.   since each router sends its periodic update every 30 seconds, it means an average of 15 seconds (range of 0 to 30 sec)

Instability  Happening when a packet could go from one router to another in a loop

For the stability of RIP  Triggered update  If there are no changes, updates are sent at 30sec interval  If there is change, router immediately sends out the its new table-update in less time than 15sec  Spilt horizons –Utilizes selectivity in sending of routing message –Router must distinguish between different interfaces –If a router has received route updating info from an interface, then this same updated info must not be sent back through this interface

Poison Reverse  Variation of split horizons  Information received by the router is used to update the RT and then passed out to all interfaces  But, a table entry that has come through one interface is set to a metric of 16 as it goes out throughout the same

Advantages of RIP and Disadvantages of RIP1  Advantages of RIP: –RIP is very useful in a small network, where it has very little overhead in terms of bandwidth used and configuration and management time. –Easy to implement than newer IGP’s –Many implementations are available in the RIP field.  Disadvantages of RIP1: –minimal amount of information for router to route the packet and also very large amount of unused space. –Subnet support : Supports subnet routes only within the subnet network –Not secure; anyone can act as a router just by sending RIP-1 messages –RIP1 was developed for an AS that originally included less than a 100 routers

RIP2  Latest version of RIP, RFC: 2453,Build in 1990  Advantages: –An AS can include several hundred routers with RIP-2 protocol. –Compatible upgrade of RIPv1 including subnet routing, authentication, CIDR aggregation, route tags and multicast transmission –Subnet Support : uses more convenient partitioning using variable-length subnets – –An end system can run RIP in passive mode to listen for routing information without supplying any. – –Low requirement in memory and processing at the node  RIP and RIP2 are for the IPv4 network while the RIPng is designed for the IPv6 network. RIPng

Practical use in Yahoo Chat IM  Routing information protocol: gives command, version ip domain and address information.

Distance Vector Protocol  Compatible upgrade of RIPv1 including subnet routing, authentication, CIDR aggregation, route tags and multicast transmission  Subnet support: RIPv1 supports subnet routes only within the subnet network while RIPv2 includes subnet mask in the messages. This allows for subnet knowledge outside subnet. More convenient partitioning using variable length subnet.  RIPv2 is a distance vector based routing protocol. RIP2 supports variable-length subnet masks (VLSM).  Distance vector routing protocols: Distance-based vector routing protocols base the optimal route on the number of hops (i.e., devices) a packet must pass through to reach a destination.  Neighboring nodes send information in regular time intervals  Install routes directly in tables, lowest cost wins  The information sent (the distance vectors) are all routes from the table  The shortest path tree is contained in the routing table  Calculations are based on the Bellman-Ford algorithm

RIP 2 Packet Format  Command -- The command field is used to specify the purpose of the datagram.  Version -- The RIP version number. The current version is 2.  Address family identifier -- Indicates what type of address is specified in this particular entry.  Route tag -- Attribute assigned to a route which must be preserved and readvertised with a route. The route tag provides a method of separating internal RIP routes from external RIP routes, which may have been imported from an EGP or another IGP.  IP address -- The destination IP address.  Subnet mask -- Value applied to the IP address to yield the non-host portion of the address. If zero, then no subnet mask has been included for this entry.  Next hop -- Immediate next hop IP address to which packets to the destination specified by this route entry should be forwarded.  Metric -- Represents the total cost of getting a datagram from the host to that destination. Protocol Structure - RIP & and RIP2: Routing Information Protocol Max pkt size 512

RIPv2 Packet Format (With/Without Authentication Header)  RIPv2 packet with no Authentication  RIPv2 packet with Authentication header  Authentication type (2) is password

Example and Routing Table Structure  IP Routing table for Router R1 Included in RIP routing table -Address of (net/subnet/host) destination -Metric associated with destination -Address of next hop router -Recently updated flag -Several timers

RIP2 Extensions  authentication  routing per subnet  support of multiple metrics  routing domains  multicasting

Addressing Consideration  IP address field in RIP2 message (Request/ Response ) format can be networks, hosts, or a special code used to indicate a default address - example –128.6 Network Address – Host address – Default address  Subnet addresses must not be sent outside the network of which the subnet is a part.  is used to describe a default route.

Initialization  Initialization –This is done when host first comes online. –Determine who the neighbors are. –Set command field to 1 –Send request for entire routing table from neighbors.

Interaction between RIPV1 and RIPV2  Limiting Networks  Disable Auto-Summarization  Single Subnetmask

Security Considerations  Authentication 1. Plaintext Authentication Algorithm 2.Cryptographic Authentication 1.Keyed Message Digest 5 2.HMAC-SHA1  Peer Security  Router Filters

RIPng  IPv6 compatible version of RIP  complete new protocol  Uses distance vector algorithm  Uses standard port nuber 521 and runs over UDP  Installs the best route in the RIPng routing table

RIPng v/s RIP-2 RIPng RIPng RIP-2 RIP-2 Learns IPv6 route information Learns IPv4 route information Uses port number 521. Uses port number 520 Requires no authentication for RIPng protocol packets. Requires authentication for RIP protocol packets No support for multiple instances of RIPng. Support for multiple instances of RIP-2

RIP2 - Disadvantages   RIP-2 supports generic notion of authentication, but only “password” is defined so far. Still not very secure.   RIP2 packet size increases as the number of networks increases hence it is not suitable for large networks.   RIP2 generates more protocol traffic than OSPF, because it propagates routing information by periodically transmitting the entire routing table to neighbor routers   RIP2 may be slow to adjust for link failures.

Solution:OSPF within an AS  Can support fine-grained metrics (vs. RIP)  Multiple metrics –Throughput, Delay, Cost, Reliability  Can compute a different routing table for each metric.  OSPFv2 supports an extension that allows the metric to be used specified in the packet.

Conclusion   RIP2 offers many substantial features used to increase the efficiency of RIP1   RIP2 have one negative feature of RIP1 - the path between two subnets is based on the fewest number of router hops   RIPng is a complete new protocol designed for Ipv6. It uses the same operations as that of RIP1 and RIP2

References               troductionToRIP2.pdfhttp:// troductionToRIP2.pdf  SID=c2a79111d168faf SID=c2a79111d168faf SID=c2a79111d168faf  rdsandVersions.htm rdsandVersions.htm rdsandVersions.htm  os121/121cgcr/ip_c/ipcprt2/1cdrip.htm os121/121cgcr/ip_c/ipcprt2/1cdrip.htm os121/121cgcr/ip_c/ipcprt2/1cdrip.htm 

Questions???