TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.

Slides:



Advertisements
Similar presentations
RIP V2 CCNP S1(5), Chapter 4.
Advertisements

Cisco S3 C5 Routing Protocols. Network Design Characteristics Reliable – provides mechanisms for error detection and correction Connectivity – incorporate.
Copyright 2008 Kenneth M. Chipps Ph.D. Cisco CCNA Exploration CCNA 2 Routing Protocols and Concepts Chapter 4 Distance Vector Routing Protocols.
Routing Protocol.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
RIP – Routing Information Protocol Syeda Momina Tabish MIT - 7.
Routing and Routing Protocols
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Distance Vector Routing Protocols Routing Protocols and Concepts –
Switching and Routing Technique
Distance Vector Protocols
Chapter 12 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Read a routing table  Configure a static route 
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.
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
Distance Vector Routing Protocols
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Distance Vector Routing Protocols Routing Protocols and Concepts –
M. Menelaou CCNA2 DYNAMIC ROUTING. M. Menelaou DYNAMIC ROUTING Dynamic routing protocols can help simplify the life of a network administrator Routing.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols.
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.
1 Routing Protocols and Configuration Instructor: Te-Lung Liu Program Associate Researcher NCHC, South Region Office.
Advantages of Dynamic Routing over Static Routing : Advertise only the directly connected networks. Updates the topology changes dynamically. Administrative.
RIP, IGRP, & EIGRP Characteristics and Design. 2 Chapter Topics  RIPv1  RIPv2  IGRP  EIGRP.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
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.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
Routing -2 Dynamic Routing
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
1 3-Oct-15 Distance Vector Routing CCNA Exploration Semester 2 Chapter 4.
1. 2 Anatomy of an IP Packet IP packets consist of the data from upper layers plus an IP header. The IP header consists of the following:
1 Network Layer Lecture 14 Imran Ahmed University of Management & Technology.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
Networks and Protocols CE Week 8a. Dynamic / Distance Vector Routing.
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)
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—-5-1 WAN Connections Routing & Enabling RIP.
Distance Vector Routing Protocols Routing Protocols and Concepts Lecture Week 4.
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.
CCNA 2 Week 7 Distance Vector Routing. Copyright © 2005 University of Bolton Topics Distance Vector Protocol Issues RIP IGRP.
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.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 7 Distance Vector Routing Protocols.
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.
Routing and Routing Protocols
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vectore Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Routing Protocols and Concepts Dr. Muazzam A. Khan.
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.
Cisco 2 - Routers Perrine modified by Brierley Page 13/21/2016 Chapter 4 Module 6 Routing & Routing Protocols.
RIP.
Routing Protocols and Concepts
Distance Vector Routing Protocols
Dynamic Routing Protocols part2
Routing Loops.
Routing Information Protocol (RIP)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
CCNA 2 v3.1 Module 7 Distance Vector Routing Protocols
Routing.
Chapter 5: Dynamic Routing
Dynamic Routing Protocols part2
Distance Vector Routing Protocols
Dynamic Routing and OSPF
Distance Vector Routing Protocols
Distance Vector Routing
Routing.
Presentation transcript:

TCOM 515 Lecture 2

Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol

Routing Protocols Routing algorithm must provide for: A way to pass network reachability info to other routers A way to receive network reachability info from other routers A way to determine optimal routes from the reachability info and put the best route into the routing table A way to react, advertise and work around network topology changes Path Determination requires: Each network is connected to a router. Each router interface in the network must have an IP address of that network.

Routing Metrics Routing algorithms use metrics to determine the optimal route. Hop Count - the number of network devices in the path to the source Bandwidth - the higher the bandwidth, the lower the bandwidth network, tables or formulas to calculate the metric Load - metric based on the load of the links in the path, variable Delay - based on the amount of time the packet takes across a path Reliability - likelihood of link failure, variable or fixed, configurable or based on metrics Cost - configurable metric that allows network administrator to shift traffic as needed

Convergence Convergence is the process in which all route tables are brought to a state of consistency. Convergence time is how long it takes for all the information to be shared across the network and for all routers to calculate the best paths for each route. Convergence time dependencies: Update mechanism Size of topology table Default timers of routing algorithm Physical media type After each routing change, updates must propagate to all the routers before convergence occurs. Changes in routing caused by: New routes added Existing routes removed Existing routes changed

Routing Protocol Configuration Define the routing protocol and any area or AS information Define the networks that are to be advertised through the protocol Define the interfaces that are or are not to be advertised through Define any passwords to authenticate routing updates Define any costs or route filters to links or protocols Define any import or export to or from other routing protocols.

Distance Vector Routing Routes are advertised as vectors of distance, as a metric, and direction, next hop router. Distance Vector Protocols: RIP, IGRP, EIGRP Referred to as Routing by Rumor because of neighbor to neighbor passing of routing information. Most simple routing algorithms Known as Bellman-Ford algorithms

DV Routing Characteristics Periodic Updates - routing updates are sent on regular intervals with default timers that can be configured Neighbors - network devices that share a common data link and have the routing protocol configured on the interfaces Broadcast Updates - routing updates are sent via broadcast for simplicity and to make sure all necessary devices receive the updates, uninterested devices drop the update packets Full routing Table Updates - most often routing updates include entire routing table for simplicity, neighbors can do with the information whatever it needs to

Split Horizon Reverse Route - a route pointing back to the router from which packets were received Split Horizon - technique for preventing reverse routes between two routers, for wasting resources and preventing routing loops Simple Split Horizon - when sending updates out an interface, do not send networks that were learned from an update that came in on the same interface Split Horizon with Poisoned Reverse - when sending updates out a particular interface, mark any networks that were learned from an update that was received on the interface as unreachable - Considered safer and stronger

DV Routing Protocol Options Define Infinity - to prevent routing updates from looping through a network endlessly, you can define “infinity” as a hop count, 16 is often used in distance vector routing protocols Triggered Updates - flash updates - update is sent by a topology or metric change immediately instead of waiting for regular update Holddown Timers - if a distance hop count increases, a holddown timer is set for 180 seconds for any new updates for that same route Asynchronous Updates - beneficial for routers sharing broadcast network preventing update packet collision - each router has own time or random time offset configured

Link State Routing Protocols Examples: OSPF, IS-IS Shortest Path First (SPF) or Distributed Database Protocols All routers have same information, nothing is changed, all routers know all info about all other routers, making their own map of the network Based on Dijkstra’s algorithm to determine shortest path Routers do not change information in routing updates before passing them to other routers, only makes a copy of it for its database, increments the counter and passes it along.

Link State Functionality Each router establishes adjacency with each neighbor via a Hello mechanism. Each router sends LSAs, link state advertisements, to each neighbor. One LSA per router link, LSA includes link ID, link state, metric cost, neighbors connected to link. LSA is flooded to neighbors, which in turn floods it all its neighbors. Each routers stores copies of all LSAs received in a database. Databases should all be the same. Dijkstra algorithm is run for each destination to find optimal route, which is put into the route table.

Link State Database Link state advertisements information Router link information - router’s adjacent neighbors with Router ID, Neighbor ID, and Cost. Stub network information - router’s directly connected networks with no other neighbors with Router ID, Neighbor ID and Cost Shortest Path First Algorithm Router initializes a tree with itself as root, with cost of zero. Cost to each neighbor is calculated and the best path is added as a node with the lowest cost. Each Router ID is added to the tree with the lowest cost path. Once the tree is complete, the routing table is updated.

Link State Example

LS Database Side 1Side 2Cost AC7 AE4 BC5 CA7 CB5 CD2 DC2 DE3 EA4 ED3 EF6 FE6

Link State Example Route Map from Router A Point of View DestinationNext HopCost BC12 CC7 DE7 EE4 FE10

Link State Example 2 Route Map from Router E Point of View DestinationNext HopCost AA4 BD10 CD5 DD3 FF6

RIP Routing Information Protocol Version 1 - RFC 1058, 1388 Version 2 - RFC 1721, 1722, 1723, 1724, 2453 Designed for small networks with same speed links Uses UDP port 520 Request and Response messages - requests update and responds with update Broadcasts request out every RIP configured interface on start up of routing protocol. Upon receipt of response message, routes are checked in current routing table, if absent, routers are added, if existing, route only updated if it has a lower hop count

RIP v1 & v2 Metric of hop count only allowable of At 16, destination is considered unreachable, to prevent routing loops. This limits the depth of a network to run RIP. Update timer - Router sends gratuitous Response message out each interface every 30 seconds with full routing table. Expiration timer - initialized to 180 seconds for a new route and reset upon update of that route. If timer expires, hop count set to 16, unreachable, but still advertised. Flush timer - set to 240 seconds upon initialization, once expired, route is removed from routing table and no longer advertise. Holddown timer - Cisco only - set for 180 seconds when updated route has a higher hop count than previous advertisement.

RIP v1 Command specifies Request = 1 or Response - 2 Version Ripv1 = 1 AFI - Address-Family Identifier - specifies protocol, IP = 2 IP address of destination route Metric - hop count to destination Up to 25 routes - AFI, IP and Metric combinations Request message my specify full table or identified routes. Administrative distance of 120 for RIP routes Classful routing - only has routes for and routes packets with classful routing information - Class A, B & C. - More in book

RIP Version 2 Changes Classless routing and subnet masks in routing updates Routing update authentication - simple text and MD5 Next-hop addresses for each route External route tags Multicast route updates, instead of broadcast Same procedures, timers & functions of v1

RIPv2 Packet Command specifies Request = 1 or Response - 2 Version Ripv2 = 2 AFI - Address-Family Identifier - specifies protocol, IP = 2 Route Tag - mark external or redistributed routes into RIP Network - IP address of destination route Subnet Mask - allows for classless routing Metric - hop count to destination Up to 25 routes - AFI, IP and Metric combinations Maximum datagram size 512 octets Authentication by password in update

RIP v1 & v2 Interoperability Interfaces can be configured for: RIP-1 - only RIPv1 messages RIP-1 Compatibility - RIPv2 broadcasts instead of multicast to allow RIPv1 to receive them ( both) RIP-2 - RIPv2 multicast updates are sent to None - no updates

VSLM Variable Length Subnet Mask RIPv2 first classless routing protocol Must always carry subnet mask in addition to IP address for any route in updates between routers The ability to breakdown and aggregate up any IP subnet beyond the definitions of classful subnets of A, B, C, D & E. Please refer to: corpinfo/en_US/ pdf

RIP Operations 1.On start-up, RIP broadcast Request message out each RIP enabled interface. 2.From then on, it listens for Request and Response messages from others. 3.Neighbor routers respond to initial Request with full routing table in Response Message(s) - 25 routes per Response packet. 4.On receipt of Response message, If route entry is new, it is added to routing table with address of advertising router. If the route entry is not new and the hop count is the same, the timer is updated. If the route entry is not new and the hop count is lower, the new next hop information is entered. If the route entry if not new and the hop count is greater, the route is marked as Hold down. 5.Routers continue to send gratuitous Response message(s) out each RIP enable interface every 30 seconds

RIP Example

Given the initial routing table for Router D below, complete the routing table with RIP routes assuming RIP v2 is enable on all interfaces to send and receive and /8 is in the RIP configuration. C /30E0 C /30E1 S / /30

RIP Example C /30E0 C /30E1 S / /30 R /30via , E0 R /30via , E0 R /30via , E0 R /30via , E1

Summary Dynamic Routing Distance Vector Link State RIP Version 1 RIP Version 2