Chapter 15 Interior Routing Protocols 1 Chapter 15 Interior Routing Protocols.

Slides:



Advertisements
Similar presentations
Interior Routing Protocols Chapter 11: Routing in IP
Advertisements

Data and Computer Communications
Copyright 2008 Kenneth M. Chipps Ph.D. Cisco CCNA Exploration CCNA 2 Routing Protocols and Concepts Chapter 4 Distance Vector Routing Protocols.
Routing Protocol.
Computer Networks with Internet Technology William Stallings
Computer Networks with Internet Technology William Stallings
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Data Communications Packet Switching.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
Unicast Routing Protocols: RIP, OSPF, and BGP
RFC 2453 RIP 2 (Routing Information Protocol) Daher Kaiss.
Routing and Routing Protocols
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.
Routing Protocol Pertemuan 21 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Routing.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Sirak Kaewjamnong Computer Network Tech and Security
Data Communications & Computer Networks
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 Algorithms (Ch5 of Computer Network by A. Tanenbaum)
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
University of the Western Cape Chapter 11: Routing Aleksandar Radovanovic.
Slide /2009COMM3380 Routing Algorithms Distance Vector Routing Each node knows the distance (=cost) to its directly connected neighbors A node sends.
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 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking BGP, Flooding, Multicast routing.
RIP2 (Routing Information Protocol) Team Agile. Routing Protocols Link State – OSPF – ISIS Distance vector – RIP (version 1 and 2) – IGRP (Cisco Proprietary)
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.
CIS Routing in IP. Introduction Routers forward IP datagrams from one router to another on path from source to destination Router must have idea.
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.
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
CSCI 465 D ata Communications and Networks Lecture 15 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
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.
Routing and Routing Protocols
TELE202 Lecture 6 Routing in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Packet switching in Wide Area Networks »Source: chapter 10 ¥This Lecture.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vectore Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Chapter 5 IP Routing Routing Protocol vs. Routed Protocol.
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Dynamic Routing Protocols II OSPF
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
1 Chapter 14-16a Internet Routing Review. Chapter 14-16: Internet Routing Review 2 Introduction Motivation: Router performance is critical to overall.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
William Stallings Data and Computer Communications
Dynamic Routing Protocols II OSPF
CMPT 371 Data Communications and Networking Routing in the Internet
Routing Information Protocol (RIP)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
THE NETWORK LAYER.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Routing.
Interior Routing Protocols Chapter 11&12: Routing in IP
Dynamic Routing Protocols II OSPF
Routing.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

Chapter 15 Interior Routing Protocols 1 Chapter 15 Interior Routing Protocols

Chapter 15 Interior Routing Protocols 2 Introduction Routing protocols essential to operation of an internet Routers forward IP datagrams from one router to another on path from source to destination Router must have idea of topology of internet Routing protocols provide this information

Chapter 15 Interior Routing Protocols 3 Internet Routing Principles Routers receive and forward datagrams Make routing decisions based on knowledge of topology and conditions on internet Decisions based on some least cost criterion (chapter 14)

Chapter 15 Interior Routing Protocols 4 Fixed Routing Single permanent route configured for each source-destination pair –Routes fixed –May change when topology changes –Link cost not based on dynamic data –Based on estimated traffic volumes or capacity of link

Chapter 15 Interior Routing Protocols 5 Example Configuration

Chapter 15 Interior Routing Protocols 6 Discussion of Example 5 networks, 8 routers Link cost for output side of each router for each network –Next slide shows how fixed cost routing may be implemented Each router has routing table

Chapter 15 Interior Routing Protocols 7 Routing Table One required for each router Entry for each network –Not for each destination –Routing only needs network portion Once datagram reaches router attached to destination network, that router can deliver to host IP address typically has network and host portion Each entry shows next node on route –Not whole route

Chapter 15 Interior Routing Protocols 8 Routing Tables in Hosts May also exist in hosts –If attached to single network with single router then not needed All traffic must go through that router (called the gateway) –If multiple routers attached to network, host needs table saying which to use

Chapter 15 Interior Routing Protocols 9 Example Routing Tables

Chapter 15 Interior Routing Protocols 10 Adaptive Routing As conditions on internet changes, routes may change –Failure Can route round problems –Congestion Can route round congestion Avoid, or at least not add to further congestion

Chapter 15 Interior Routing Protocols 11 Drawbacks of Adaptive Routing More complex routing decisions –Router processing increases Depends on information collected in one place but used in another –More information exchanged improves routing decisions but increases overhead May react two fast causing congestion through oscillation May react to slow, being irrelevant Can produce pathologies –Fluttering –Looping

Chapter 15 Interior Routing Protocols 12 Fluttering Rapid oscillation in routing Due to router attempting load balancing or splitting –Splitting traffic among a number of routes –May result in successive packets bound for same destination taking very different routes (see next slide)

Chapter 15 Interior Routing Protocols 13 Example of Fluttering

Chapter 15 Interior Routing Protocols 14 Problems with Fluttering If in one direction only, route characteristics may differ in the two directions –Including timing and error characteristics Confuses management and troubleshooting applications that measure these Difficulty estimating round trip times TCP packets arrive out of order –Spurious retransmission –Duplicate acknowledgements

Chapter 15 Interior Routing Protocols 15 Looping Packet forwarded by router eventually returns to that router Algorithms designed to prevent looping May occur when changes in connectivity not propagated fast enough to all other routers

Chapter 15 Interior Routing Protocols 16 Adaptive Routing Advantages Improve performance as seen by user Can aid congestion control Benefits depend on soundness of design Adaptive routing very complex –Continual evolution of protocols

Chapter 15 Interior Routing Protocols 17 Classification of Adaptive Routing Strategies Based on information sources –Local E.g. route each datagram to network with shortest queue Balance loads on networks May not be heading in correct direction –Include preferred direction Rarely used –Adjacent nodes Distance vector algorithms –All nodes Link-state algorithms Both need routing protocol to exchange information

Chapter 15 Interior Routing Protocols 18 Autonomous Systems (AS) Group of routers exchanging information via common routing protocol Set of routers and networks managed by single organization Connected –Except in time of failure

Chapter 15 Interior Routing Protocols 19 Interior Routing Protocol (IRP) Passes routing information between routers within AS Does not need to be implemented outside AS –Allows IRP to be tailored May be different algorithms and routing information in different connected AS Need minimum information from other connected AS –At least one router in each AS must talk –Use Exterior Routing Protocol (ERP)

Chapter 15 Interior Routing Protocols 20 Exterior Routing Protocol (ERP) Pass less information than IRP Router in first system determines route to target AS Routers in target AS then co-operate to deliver datagram ERP does not deal with details within target AS

Chapter 15 Interior Routing Protocols 21 IRP and ERP

Chapter 15 Interior Routing Protocols 22 Routing Information Protocol (RIP) Simple Suitable for small internets Widely used Uses Distance vector routing

Chapter 15 Interior Routing Protocols 23 Distance Vector Routing Each node exchange information with neighbors –Directly connected by same network Each node maintains three vectors –Link cost –Distance vector –Next hop vector Every 30 seconds, exchange distance vector with neighbors Use this to update distance and next hop vector

Chapter 15 Interior Routing Protocols 24 Distance Vector Example

Chapter 15 Interior Routing Protocols 25 Distributed Bellman-Ford RIP is a distributed version of Bellman-Ford Original routing algorithm in ARPANET Each simultaneous exchange of vectors between routers is equivalent to one iteration of step 2 In fact, asynchronous exchange used –At start-up, get vectors from neighbors Gives initial routing –By own timer, update every 30 seconds –Changes are propagated across network –Routing converges within finite time Proportional to number of routers

Chapter 15 Interior Routing Protocols 26 RIP Details – Incremental Update Updates do not arrive from neighbors within small time window RIP packets use UDP Tables updated after receipt of individual distance vector –Add any new destination network –Replace existing routes with small delay ones –If update from router R, update all routes using R as next hop

Chapter 15 Interior Routing Protocols 27 RIP Details – Topology Change If no updates received from a router within 180 seconds, mark route invalid –Assumes router crash or network connection unstable –Set distance value to infinity Actually 16

Chapter 15 Interior Routing Protocols 28 Counting to Infinity Problem (1) Slow convergence may cause: All link costs 1 B has distance to network 5 as 2, next hop D A & C have distance 3 and next hop B

Chapter 15 Interior Routing Protocols 29 Counting to Infinity Problem (2) Suppose router D fails: –B determines network 5 no longer reachable via D Sets distance to 4 based on report from A or C –At next update, B tells A and C this –A and C receive this and increment their network 5 distance to 5 4 from B plus 1 to reach B –B receives distance count 5 and assumes network 5 is 6 away –Repeat until reach infinity (16) –Takes 8 to 16 minutes to resolve

Chapter 15 Interior Routing Protocols 30 Counting to Infinity Diagram

Chapter 15 Interior Routing Protocols 31 Split Horizon Counting to infinity problem caused by misunderstanding between B and A, and B and C –Each thinks it can reach network 5 via the other Split Horizon rule says do not send information about a route back in the direction it came from –Router sending information is nearer destination than you –Erroneous route now eliminated within time out period (180 seconds)

Chapter 15 Interior Routing Protocols 32 Poisoned Reverse Send updates with hop count of 16 to neighbors for route learned from those neighbors –If two routers have routes pointing at each other advertising reverse route with metric 16 breaks loop immediately

Chapter 15 Interior Routing Protocols 33 RIP Packet Format

Chapter 15 Interior Routing Protocols 34 RIP Packet Format Notes Command: 1=request 2=reply –Updates are replies whether asked for or not –Initializing node broadcasts request –Requests are replied to immediately Version: 1 or 2 Address family: 2 for IP IP address: non-zero network portion, zero host portion –Identifies particular network Metric –Path distance from this router to network –Typically 1, so metric is hop count

Chapter 15 Interior Routing Protocols 35 RIP Limitations Destinations with metric more than 15 are unreachable –If larger metric allowed, convergence becomes lengthy Simple metric leads to sub-optimal routing tables –Packets sent over slower links Accept RIP updates from any device –Misconfigured device can disrupt entire configuration

Chapter 15 Interior Routing Protocols 36 Open Shortest Path First (OSPF) RIP limited in large internets OSPF preferred interior routing protocol for TCP/IP based internets Link state routing used

Chapter 15 Interior Routing Protocols 37 Link State Routing When initialized, router determines link cost on each interface Router advertises these costs to all other routers in topology Router monitors its costs –When changes occurs, costs are re-advertised Each router constructs topology and calculates shortest path to each destination network Not distributed version of routing algorithm Can use any algorithm –Dijkstra

Chapter 15 Interior Routing Protocols 38 Flooding Packet sent by source router to every neighbor Incoming packet resent to all outgoing links except source link Duplicate packets already transmitted are discarded –Prevent incessant retransmission All possible routes tried so packet will get through if route exists –Highly robust At least one packet follows minimum delay route –Reach all routers quickly All nodes connected to source are visited –All routers get information to build routing table High traffic load

Chapter 15 Interior Routing Protocols 39 Flooding Example

Chapter 15 Interior Routing Protocols 40 OSPF Overview Router maintains descriptions of state of local links Transmits updated state information to all routers it knows about Router receiving update must acknowledge –Lots of traffic generated Each router maintains database –Directed graph

Chapter 15 Interior Routing Protocols 41 Router Database Graph Vertices –Router –Network Transit Stub Edges –Connecting two routers –Connecting router to network Built using link state information from other routers

Chapter 15 Interior Routing Protocols 42 Sample Autonomous System

Chapter 15 Interior Routing Protocols 43 Resultant Directed Graph

Chapter 15 Interior Routing Protocols 44 Link Costs Cost of each hop in each direction is called routing metric OSPF provides flexible metric scheme based on type of service (TOS) –Normal (TOS) 0 –Minimize monetary cost (TOS 2) –Maximize reliability (TOS 4) –Maximize throughput (TOS 8) –Minimize delay (TOS 16) Each router generates 5 spanning trees (and 5 routing tables)

Chapter 15 Interior Routing Protocols 45 SPF Tree for Router 6

Chapter 15 Interior Routing Protocols 46 Areas Make large internets more manageable Configure as backbone and multiple areas Area – Collection of contiguous networks and hosts plus routers connected to any included network Backbone – contiguous collection of networks not contained in any area, their attached routers and routers belonging to multiple areas

Chapter 15 Interior Routing Protocols 47 Operation of Areas Each are runs a separate copy of the link state algorithm –Topological database and graph of just that area –Link state information broadcast to other routers in area –Reduces traffic –Intra-area routing relies solely on local link state information

Chapter 15 Interior Routing Protocols 48 Inter-Area Routing Path consists of three legs –Within source area Intra-area –Through backbone Has properties of an area Uses link state routing algorithm for inter-area routing –Within destination area Intra-area

Chapter 15 Interior Routing Protocols 49 OSPF Packet Format

Chapter 15 Interior Routing Protocols 50 Packet Format Notes Version number: 2 is current Type: one of 5, see next slide Packet length: in octets including header Router id: this packet’s source, 32 bit Area id: Area to which source router belongs Authentication type: null, simple password or encryption Authentication data: used by authentication procedure

Chapter 15 Interior Routing Protocols 51 OSPF Packet Types Hello: used in neighbor discovery Database description: Defines set of link state information present in each router’s database Link state request Link state update Link state acknowledgement