1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.

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.
Routing Information Protocol (RIP) Routing Information Protocol (RIP) is a standards-based, distance-vector, interior gateway protocol (IGP) used by routers.
Network Layer4-1 Hierarchical Routing scale: with 200 million destinations: r can’t store all dest’s in routing tables! r routing table exchange would.
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 22 Omar Meqdadi Department of Computer Science and Software Engineering University.
Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol –Datagram format.
4a-1 CSE401: Computer Networks Hierarchical Routing & Routing in Internet S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Network Layer4-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley,
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
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
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
RFC 2453 RIP 2 (Routing Information Protocol) Daher Kaiss.
14 – Inter/Intra-AS Routing
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 Distance Vector Routing Protocols Dr. Rocky K. C. Chang 14 November 2006.
Computer Networking Intra-Domain Routing, Part I RIP (Routing Information Protocol)
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.
TCP/IP Protocol Suite1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Distance Vector Routing Protocols Distance Vector Routing.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
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.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
Distance Vector Routing Protocols
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.
1 Routing Protocols and Configuration Instructor: Te-Lung Liu Program Associate Researcher NCHC, South Region Office.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
1 3-Oct-15 Distance Vector Routing CCNA Exploration Semester 2 Chapter 4.
Introduction 1 Lecture 19 Network Layer (Routing Protocols) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
1 Network Layer Lecture 14 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)
CCNA 2 Week 7 Distance Vector Routing. Copyright © 2005 University of Bolton Topics Distance Vector Protocol Issues RIP IGRP.
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
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.
1 1-Dec-15 S Ward Abingdon and Witney College Distance Vector Routing CCNA Exploration Semester 2 Chapter 4.
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.
Objectives After completing this chapter you will be able to: Describe the Routing Information Protocol (RIP version 1 and RIP version 2) Describe Routing.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
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.
RIP.
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
Chapter 4: Network Layer
Dynamic Routing Protocols part2
Routing Information Protocol (RIP)
Chapter 4: Network Layer
Routing Information Protocol (RIP)
Routing & Enabling RIP WAN Connections.
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 4: Network Layer
Chapter 4: Network Layer
Chapter 4: Network Layer
Chapter 4: Network Layer
Distance Vector Routing
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology

2 Agenda Introduction & Network layer functions Routing principles Hierarchical routing The Internet protocol (IP) Routing in the Internet

3 RIP ( Routing Information Protocol) Distance vector algorithm. Distance metric: # of hops (max = 15 hops). Distance vectors: exchanged among neighbors every 30 sec via Response Message (also called advertisement). RIP uses UDP port 520 & the broadcast IP address ( ) to advertise every route in its table once every 30 sec. Each advertisement: list of up to 25 destination nets within AS. RIP ver1 is considered as a classful protocol. RIPv1 is specified in RFC D C BA u v w x y z destination hops u 1 v 2 w 2 x 3 y 3 z 2

4 RIP: Link Failure and Recovery If no advertisement heard after 180 sec --> neighbor/link declared dead –routes via neighbor invalidated –new advertisements sent to neighbors –neighbors in turn send out new advertisements (if tables changed) –link failure info quickly propagates to entire net –poison reverse used to prevent ping-pong loops (infinite distance = 16 hops)

5 RIP Table processing RIP routing tables managed by application-level process called route-d (daemon) Advertisements sent in UDP packets, periodically repeated physical link network forwarding (IP) table Transprt (UDP) routed physical link network (IP) Transprt (UDP) routed forwarding table

6 rtartb rtdrtc Network /24 rtd, 2 hops rta, 1 hop rtc, 3 hops rtb, 4 hops How RIP routers use the hop count

7 RIP Example In the previous slide; there are four routers A, B, C & D. (that all are running RIP) –Router A advertises its directly connected Ethernet network to router D with a hop count of 1. –Router D receives this route and realizes that from router D’s perspective, it is two hops away, then router D advertises this network to router C with a hop count of 2. –Router C in turn, advertises it to B and router B advertises it back to router A.

8 RIP Example When the route arrives back at router A, it believes that router B also has a connection to the same network. It has no way of knowing that router B is only advertising router A’s own route fourth-hand. So, router A must make a choice of which route to use. To make this choice, it compares the only metric it has, and determines that its directly connected route with a hop count of one is shorter than the route it receives from router B. At the same time, however, router A also sends an identical broadcast towards router B, which forwards it to router C, and then to router D which forwards it to router A, exactly like the first route. As routers B, C & D receive both routes, they compare the hop count and choose the shortest path.

9 RIPv1 Packet Format One RIP message can have up to 25 route entries 1: request 2: response 2: for IP Address of destination Cost (measured in hops) 1: RIPv1

10 RIP’s Implementation of DV RIP needs to deal with some of the shortcomings of Distance-Vector protocols: –Count-to-Infinity –Split Horizon & Poison Reverse –Triggered Updates –Timers

11 RIP’s Implementation of DV Count-to-Infinity: –This limits the diameter of the routing domain to 15, and also makes counting to infinity a little faster. Split Horizon: –If it is activated, a router omits sending routes back to the router it learned them from. –This helps in avoiding a process of mutual deception, where two routers tell each other that they can reach destination X via each other. Split Horizon with Poison Reverse: –If split horizon is activated with poison reverse, then a router behaves in the same way as in plain split horizon, but instead of not sending information back, it sends a route update with a metric of 16 (unreachable) to the router, it got the route from.

12 RIP’s Implementation of DV Triggered Updates: –It means that an incoming update message triggers the router to make its own update. –RIP does its updates by sending out its distance-vectors to all its neighbors. Flash Updates: –On a Cisco box, a router that cold-starts broadcasts a request packet to all its neighbors. Every neighbor responds by immediately unicasting a reply containing its distance-vector. –This functionality together with the normal triggered update functionality is called a flash update.

13 RIP’s Timers There are two sets of timers in RIP: –The RFC way –The Cisco way

14 RIP’s Timers – According to RFC Update – the time between each update (default is 30 sec.). Time-out – if no updates are received, wait this long after the last successful update before marking the route for deletion (default is 180 sec.). Garbage-collection – when a route has been marked for deletion, its metric is set to 16, and after this amount of time, it is removed from memory (default is 120 sec.).

15 RIP’s Timers – According to Cisco Update – the time between each update (default is 30 sec.). Invalid – if no updates are received, wait this long after the last successful update before marking the route invalid (default is 180 sec.). Holddown – when a route has become invalid, don’t accept updates about this route for this period of time (default is 180 sec.). Flush – if a route has been invalid for this time, flush (remove) it from memory (default is 240 sec.).

16 RIP Problems RIP takes a long time to stabilize –Even for a small network, it takes several minutes until the routing tables have settled after a change. RIP has all the problems of distance vector algorithms, e.g., routing loops etc. The maximum hop count in RIP is 15.

17 RIPv2 RIPv2 is an extends RIPv1: –Subnet masks are carried in the route information. –Authentication of routing messages. –Route information carries next-hop address. –Uses IP multicasting. Extensions of RIPv2 are carried in unused fields of RIPv1 messages.

18 RIPv2 Packet Format Used to provide a method of separating "internal" RIP routes (routes for networks within the RIP routing domain) from "external" RIP routes Identifies a better next- hop address on the same subnet than the advertising router, if one exists (otherwise 0….0) 2: RIPv2 Subnet mask for IP address

19 RIP Security Issue: Sending bogus routing updates to a router. –RIPv1: No protection. –RIPv2: Simple authentication scheme. 2: plaintext password