TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Network Protocols Routing.

Slides:



Advertisements
Similar presentations
Karlston D'Emanuele Distance Vector Routing Protocols Notes courtesy of Mr. Joe Cordina Password Removed
Advertisements

RIP V2 W.lilakiatsakun.  RFC 2453 (obsoletes –RFC 1723 /1388)  Extension of RIP v1 (Classful routing protocol)  Classless routing protocol –VLSM is.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
Computer Networks with Internet Technology William Stallings
Courtesy: Nick McKeown, Stanford
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.
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.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
CCNA 2 v3.1 Module 6.
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
TDC375 Winter 2002John Kristoff - DePaul University1 Network Protocols Routing.
Unicast Routing Protocols: RIP, OSPF, and BGP
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.
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.
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
Switching and Routing Technique
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.
Interior Gateway Protocols: RIP & OSPF
Chapter 7: Routing Dynamically
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
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.
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
Guide to TCP/IP, Second Edition1 Guide To TCP/IP, Second Edition Chapter 10 Routing In The IP Environment.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 14 Routing Protocols RIP, OSPF, BGP.
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.
Routing and Routing Protocols Routing Protocols Overview.
Routing -2 Dynamic Routing
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
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.
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:
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
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.
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.
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.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
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.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
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.
1 Chapter 14-16a Internet Routing Review. Chapter 14-16: Internet Routing Review 2 Introduction Motivation: Router performance is critical to overall.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
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 Protocols 2 nd semester
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
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
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:

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Network Protocols Routing

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 IPv4 unicast routing All Internet hosts perform basic routing for local net destinations, forward to local host for non-local nets, forward to default router Dedicated routers often used between networks Routing tables maintain next hop information Forwarding decision based on destination address routers can use other info to influence decision Routers forward to next-hop if not locally attached

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Basic IPv4 forwarding process For an IP datagram received on an interface... remove layer 2 information, extract destination IP address (D), find best match for (D) in routing table, extract forwarding address (F) for next hop, create layer 2 info on outgoing interface, send datagram to (F).

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 IP routing tables Since each row in a routing table represents an entry associated with one IP network, the size of the routing table is directly proportional to the number of IP networks known throughout the entire internetwork.

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 IP routing table illustrated

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Populating the routing table Statically (through manual configuration) Simple for small sites with few links/routers Lacks scalability and flexibility Useful for permanent route entries Automatically (with distributed routing protocols) Allows quick re-route around failures/changes Useful for large networks with redundant paths Failures in protocol can be catastrophic

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 IP routing illustrated

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 IP routing illustrated (continued)

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Routing metrics Shortest/longest hop path Lowest/highest cost path Lowest/highest reliable path Best/worst latency/delay Site specific path policy decision

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Some routing terminology Autonomous system (AS) Network(s) set administered by a single entity Interior gateway protocol (IGP) distributed routing protocol used within an AS Exterior gateway protocol (EGP) distributed routing protocol used between ASes

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Distance vector routing Each node maintains a distance to destination e.g. 4 hops to network XYZ, 2 hops to ABC Periodically advertise attached nets out each link Learn other nets from other router advertisements Advertise learned routes (add 1 to hop count) Also known as Bellman-Ford after the inventors

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Distance vector illustrated

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Distance vector illustrated [cont]

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Distance vector illustrated [cont] coverged

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Problems with distance vector Convergence time can be slow Also known as the count to infinity problem What happens when link to A fails?

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Solving count to infinity Hold down advertise infinity for a route and wait before switching paths. hope that news of the change propagates before timer expires. Kludge. Report the entire path guarantees no loops, but resource expensive Split horizon Do not advertise route to neighbor if it was received from that neighbor. Not foolpoof.

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Other distance vector tricks Triggered updates advertise changes immediately, may cause route flapping, but generally a good thing to do Poison reverse this is used with split horizon, advertise infinity rather than nothing at all DUAL like hold down, but can switch paths if a new distance is lower, sufficiently complex

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Routing information protocol (RIP) RFC 1058 (RIPv1) and RFC 2453 (RIPv2) Very simple distance vector protocol Slow convergence time UDP broadcast every 30 seconds (by default) Route times out after 180 seconds (by default) Widely used as an IGP (RIPv2 in particular) 15 hop limit (anything greater equals infinity)

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 RIPv2 Mainly updated to support subnet masks Supports simple authentication Uses IP multicast group for destination address Route tag option for interaction with EGPs Next-hop option to associated with advertisement

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 RIPv1 packet format Packet format: | command (1) | version (1) | must be zero (2) | | ~ RIP Entry (20) ~ | A RIPv1 entry has the following format: | address family identifier (2) | must be zero (2) | | IPv4 address (4) | | must be zero (4) | | must be zero (4) | | metric (4) |

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 RIPv2 packet format Packet format is the same, RIPv2 entry format is: | Address Family Identifier (2) | Route Tag (2) | | IP Address (4) | | Subnet Mask (4) | | Next Hop (4) | | Metric (4) | Authentication uses one entry of the format: | Command (1) | Version (1) | unused | | 0xFFFF | Authentication Type (2) | ~ Authentication (16) ~

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Link state routing All routes have complete network topology information (database within their area) link state packets are flooded to all area routers Each router computes its own optimal path Convergence time is very short Protocol complexity is higher than distance vector Ensures a loop free environment

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Link state routing illustrated

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Link state routing databases Link state database contains latest link state packet from each router PATH (permanent) database (router id / path cost / forwarding direction) tuple TENT (tenative) database same format as PATH, candidate PATH entries Forwarding database (aka FIB) contains ID and forwarding direction

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Dijkstra's algorithm Start with self as root of the tree (my ID / cost 0 / forwarding direction 0) in PATH For each node in PATH, examine its LSP and place those neighbors in TENT if not already in PATH or TENT (with lower cost) If TENT is empty, exit, otherwise find ID with lowest cost in TENT and move it to PATH

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Dijkstra's algorithm illustrated 1. Start with A, put A in PATH, examine A's LSP, add B and D to TENT 2. B is lowest path cost in TENT, place B in PATH, examine B's LSP, put C,E in TENT 3. D is lowest path cost in TENT, place D in PATH, examine D's LSP, found better E path 4. C is lowest path cost in TENT, place C in PATH, exame C's LSP, found better E path again 5. E is lowest path cost in TENT, place E in PATH, examine E's LSP (no better paths) 6. TENT is empty, terminate

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Open shortest path first (OSPF) Standardized as RFC 2328 (OSPFv2) Relatively complex Supports multiple route metrics (no one does this) Allows 2-tier area hierarchy for scaling Relatively efficient Good convergence properties Runs directly over IP Recommended IGP by the IETF

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 OSPF packets Hello link maintenance Exchange initial exchange of routing tables Flooding incremental routing updates

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 OSPF database records Router links summarizes links from advertising router Network links transit networks (broadcast and non-broadcast) Summary links summary info advertised by area border routers External links imported routes, typically from EGP

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Common OSPF header | Version # | Type | Packet length | | Router ID | | Area ID | | Checksum | AuType | | Authentication | | Authentication |

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Interdomain routing Routing domains are independently funded Routing domains do not trust each other Different routing domains have different policies Static routing EGP – first interdomain routing protocol BGP – current path vector routing protocol

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Border gateway protocol (BGP) Current version 4 standardized in RFC 1771 Runs over TCP List of AS numbers comprise a full path to network Announcements can be edited (paths padded) Can selectively filter or preference received routes Route can be selected on path or a preference external BGP versus internal BGP

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 BGP attributes Describes routes in BGP updates Confusing descriptions of attributes e.g. well known must be supported e.g. mandatory must be present in updates Examples AS path community unreachable

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Confederations Group of ASes that appear as a single AS A form of aggregation May simplify routing policies “Don't route through confed X” as opposed to “don't go through AS A, AS B, AS C, etc...” Sub-optimal routing may result multiple ASes in path vector appear as a loop

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 BGP message types Open first message when neighbors come up Update contains routing information Notification final message before session is disconnected Keepalive reassures reachability in absence of updates

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Route dampening Routes that oscillate ripple through the Internet consumes CPU and causes instability (churn) Unstable (flapping) routes are penalized for some period of time, the flap is suppressed suppression time can increase to a maximum suppression of routes results in lost connectivity Dampen big/important netblocks more cautiously Dampening may introduce stabilities of its own

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Sample Cisco config Router bgp bgp log-neighbor-changes network mask neighbor remote-as neighbor description E-BGP peer with XYZ corp. neighbor password as54321password neighbor version 4 neighbor prefix-list invalid in neighbor prefix-list announce out ip prefix-list invalid seq 10 deny /8 le 32 ip prefix-list invalid seq 20 deny /8 le 32 ip prefix-list invalid seq 30 deny /8 le ip prefix-list announce seq 10 permit /16 ip prefix-list announce seq 20 deny /0 le 32

TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Final thoughts Routing protocols tend to work 99.99% of the time But when failures occur, they tend to be catastrphic This is probably the most network intelligence needed for basic Internet operation Internet peering Route filtering, protection and policy issues