Intradomain Routing Protocols By Behzad Akbari These slides are based in part upon slides of Prof. Shivkumar (Rpi university) and Sanjay Rao (Purdue university.

Slides:



Advertisements
Similar presentations
 Two types  Distance Vector ◦ Examples:  RIP v1 and RIPv2 (Routing Information Protocol)  IGRP (Interior Gateway Routing Protocol)  Link State ◦
Advertisements

Introduction to OSPF.
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.
EIGRP routing protocol Omer ben-shalom Omer Ben-Shalom: Must show how EIGRP is dealing with count to infinity problem Omer Ben-Shalom: Must.
Shivkumar Kalyanaraman 1 Reference: IS-IS vs OSPF Shivkumar Kalyanaraman Rensselaer Polytechnic Institute Abstracted from NANOG talks.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
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.
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.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Objectives After completing this chapter you will be able to: Describe hierarchical routing in OSPF Describe the 3 protocols in OSPF, the Hello, Exchange.
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
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.
Fundamentals of Networking Discovery 2, Chapter 6 Routing.
Switching and Routing Technique
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.
Chapter 12 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Read a routing table  Configure a static route 
Interior Gateway Protocols: RIP & OSPF
6: Routing Working at a Small to Medium Business.
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.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 10 - Intra-Domain Routing.
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.
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.
Collected By: Mehdi Daneshvar Supervisor: E.M.Kosari.
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.
© 1999, Cisco Systems, Inc OSPF Overview RFC 2328, 2178, 1583.
© Synergon Informatika Rt., 1999 Chapter 9 Configuring Open Shortest Path First.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
Routing/Routed Protocols Part I. Routed Protocol Definition: Routed Protocol – used to transmit user data (packets) through an internetwork. Routed protocols.
RIP2 (Routing Information Protocol) Team Agile. Routing Protocols Link State – OSPF – ISIS Distance vector – RIP (version 1 and 2) – IGRP (Cisco Proprietary)
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
1 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
© 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—4-1 The IS-IS Protocol Introducing IS-IS and Integrated IS-IS Routing.
Networks and Protocols CE Week 8b. Link state Routing.
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.
6: Routing Working at a Small to Medium Business.
Routing and Routing Protocols
Cisco Systems Networking Academy S2 C 11 Routing Basics.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
Chapter 5 IP Routing Routing Protocol vs. Routed Protocol.
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
Click to edit Master subtitle style Chapter 10: Routing Protocols.
Computer Networks Routing Algorithms.
Link State Routing protocol
Routing Protocols (RIP, OSPF, BGP)
OSPF (Open Shortest Path First)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Routing/Routed Protocols
Routing.
Chapter 5: Dynamic Routing
Dynamic Routing Protocols part2
Dynamic Routing and OSPF
Computer Networks Protocols
Routing.
Presentation transcript:

Intradomain Routing Protocols By Behzad Akbari These slides are based in part upon slides of Prof. Shivkumar (Rpi university) and Sanjay Rao (Purdue university )

 Intradomain routing protocols  Distance Vector  RIP, RIPv2, EIGRP  Link State  OSPF, IS-IS  Intradomain Traffic Engineering Outline

RIP: Routing Information Protocol  Uses hop count as metric (max: 16 is infinity)  Tables (vectors) “advertised” to neighbors every 30 s.  Each advertisement: up to 25 entries  No advertisement for 180 sec: neighbor/link declared dead  routes via neighbor invalidated  new advertisements sent to neighbors (Triggered updates)  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) If Z routes through Y to get to X :  Z tells Y its (Z’s) distance to X is infinite (so Y won’t route to X via Z) will this completely solve count to infinity problem? x z y 60

RIPv1 Problems (Continued) Split horizon/poison reverse does not guarantee to solve count-to-infinity problem  16 = infinity => RIP for small networks only!  Slow convergence Broadcasts consume non-router resources  It sends updates as broadcasts on RIPv1 does not support subnet masks (VLSMs)  It does not send subnet mask information in its updates. It does not support authentication

RIPv2 Why ? Installed base of RIP routers Provides:  VLSM support  Authentication  Multicasting Uses reserved fields in RIPv1 header. First route entry replaced by authentication info.

EIGRP (Interior Gateway Routing Protocol)  CISCO proprietary; successor of RIP (late 80s)  Several metrics (delay, bandwidth, reliability, load etc)  Uses TCP to exchange routing updates  Loop-free routing via Distributed Updating Alg. (DUAL) based on diffused computation  Freeze entry to particular destination  Diffuse a request for updates  Other nodes may freeze/propagate the diffusing computation (tree formation)  Unfreeze when updates received.  Tradeoff: temporary un-reachability for some destinations

Link State vs. Distance Vector  Link State (LS) advantages:  More stable (aka fewer routing loops)  Faster convergence than distance vector  Easier to discover network topology, troubleshoot network.  Can do better source-routing with link-state  Type & Quality-of-service routing (multiple route tables) possible

Link State Protocols Key: Create a network “map” at each node. 1. Node collects the state of its connected links and forms a “Link State Packet” (LSP) 2. Flood LSP => reaches every other node in the network and everyone now has a network map. 3. Given map, run Dijkstra’s shortest path algorithm (SPF) => get paths to all destinations 4. Routing table = next-hops of these paths. 5. Hierarchical routing: organization of areas, and filtered control plane information flooded.

Link State Issues Reliable Flooding: sequence #s, age LSA types, Neighbor discovery and maintenance (hello)  Efficiency in Broadcast LANs, NBMA, Pt-Mpt subnets: designated router (DR) concept Areas and Hierarchy  Area types: Normal, Stub, NSSA: filtering  External Routes (from other ASs), interaction with inter- domain routing.

Sending Link States by Flooding X Wants to Send Information  Sends on all outgoing links When Node Y Receives Information from Z  Send on all links other than Z Naïve Approach:  Floods indefinitely.  Prevent through sequence numbers XA CBD (a) XA CBD (b) XA CBD (c) XA CBD (d)

OSPF Reliable Flooding Transmit Link State Advertisements  Originating Router  List of directly connected neighbors of that node with the cost of the link to each one  Sequence Number Incremented each time sending new link information  Link State Age Packet expires when a threshold is reached,

OSPF Flooding Operation Node X Receives LSA from Node Y  With Sequence Number q  Looks for entry with same origin/link ID Cases  No entry present Add entry, propagate to all neighbors other than Y  Entry present with sequence number p < q Update entry, propagate to all neighbors other than Y  Entry present with sequence number p > q Send entry back to Y To tell Y that it has out-of-date information  Entry present with sequence number p = q Ignore it

Flooding Issues When Should it be Performed  Periodically  When status of link changes Detected by connected node What Happens when Router Goes Down & Back Up  Sequence number reset to 0 Other routers may have entries with higher sequence numbers  Router will send out LSAs with number 0  Will get back LSAs with last valid sequence number p  Router sets sequence number to p+1 & resends

Flooding Issues (Cont.) What if Sequence Number Wraps Around  Use circular comparison OSPF v1  Force sequence number back to 0 OSPF v2 With 32-bit counter, doesn’t happen very often 0Max a b a < b 0Max a b a < b

OSPF Load Balancing Modification to Dijkstra’s algorithm  Keep track of all links giving optimum cost d(v)  Only get multiple routes when exactly same cost Routing  Alternate link used  Tends to cause packets to arrive out of order A E F C D B Table for B DstCstHop A3A B0B C2F D3D E4F F1F Table for B DstCstHop A3A B0B C2F D3D,F E4A,F F1F

Type of Service (TOS) Metrics Link Characteristic Vary in Multiple Dimensions  Latency  Throughput  Cost  Reliability Example  Satellite link High throughput, long latency  Fiber optic link High throughput, low latency Routing Requirements Vary  Typing at terminal: minimize latency for short packet  Sending video data: maximize throughput

Proposed OSPF Support for TOS Support up to Five Different Routing Metrics  Normal service Don’t do anything extreme  Minimize cost For networks that charge for traffic  Maximize reliability  Maximize throughput  Minimize delay Link Can Have Different LSA for each TOS  Expressed in units where lower value is better  Path cost either sum or maximum of link costs

Designated Router (DR)  New Question: Who creates the network-LSA? Dijkstra algo view Encoding of LSAs, Flooding/DB sync model

Designated Router (…) One router elected as a designated router (DR) on LAN  Each router maintains flooding adjacency with the DR, I.e., sends acks of LSAs to DR  DR informs each router of other routers on LAN  DR generates the network-LSA on subnet’s behalf after synchronizing with all routers

Primary/Backup: DR, BDR (…)  Backup DR (BDR) also syncs with all routers, and takes over if DR dies (typically 5 s wait)  Total: 2N – 1 adjacencies  DR election: First router on net = DR, second = BDR RouterPriority: [0, 127] indicated in Hello packet=> highest priority router becomes DR If network is partitioned and healed, the two DRs are reduced to one by looking at RouterPriority

Hierarchical Routing

Why Hierarchy? Information hiding (filtered) => computation, bandwidth, storage saved => efficiency => scalability  But filtering in control plane, not data plane Address abstraction vs. Topology Abstraction  Multiple paths possible between two adj. areas 

Area Configured area ID A set of address prefixes  Do not have to be contiguous  So a prefix can be in only one area A set of router IDs  Router functions may be interior, inter-area, or external

Hierarchical OSPF  Two-level hierarchy: local area, backbone.  Link-state advertisements only in area  each nodes has detailed area topology; only know direction (shortest path) to nets in other areas.  Two-level restriction avoids count-to-infinity issues in backbone routing.  Area border routers (ABR): “summarize” distances to nets in own area, advertise to other Area Border routers.  Backbone routers: uses a DV-style routing between backbone routers  Boundary routers (AS-BRs): connect to other ASs (generate “external” records)

Hierarchical OSPF

Sample Area Configuration /24

IS-IS Overview The Intermediate Systems to Intermediate System Routing Protocol ( IS-IS) was originally designed to route the ISO Connectionless Network Protocol (CLNP). (ISO10589 or RFC 1142) Adapted for routing IP in addition to CLNP (RFC1195) as Integrated or Dual IS-IS (1990) IS-IS is a Link State Protocol similar to the Open Shortest Path First (OSPF). OSPF supports only IP IS-IS competed neck-to-neck with OSPF.  OSPF deployed in large enterprise networks  IS-IS deployed in several large ISPs

IS-IS Terminology Intermediate system (IS) - Router Designated Intermediate System (DIS) - Designated Router Pseudonode - Broadcast link emulated as virtual node by DIS End System (ES) - Network Host or workstation Network Service Access Point (NSAP) - Network Layer Address Subnetwork Point of attachment (SNPA) - Datalink interface Packet data Unit (PDU) - Analogous to IP Packet Link State PDU (LSP) - Routing information packet Level 1 and Level 2 – Area 0 and lower areas

Functional Comparison Protocols are recognizably similar in function and mechanism (common heritage)  Link state algorithms  Two level hierarchies  Designated Router on LANs Widely deployed (ISPs vs. enterprises) Multiple interoperable implementations OSPF more “optimized” by design (and therefore significantly more complex)

Sample comparison points Encapsulation  OSPF runs on top of IP=> Relies on IP fragmentation for large LSAs  IS-IS runs directly over L2 (next to IP) => fragmentation done by IS-IS Media support  Both protocols support LANs and point-to-point links in similar ways  IS-IS supports NBMA in a manner similar to OSPF pt-mpt model: as a set of point-to-point links  OSPF NBMA mode is configuration-heavy and risky (all routers must be able to reach DR; bad news if VC fails)

Packet Encoding OSPF is “efficiently” encoded  Positional fields, 32-bit alignment  Only LSAs are extensible (not Hellos, etc.)  Unrecognized types not flooded. Opaque-LSAs recently introduced. IS-IS is mostly Type-Length-Value (TLV) encoded  No particular alignment  Extensible from the start (unknown types ignored but still flooded)  All packet types are extensible  Nested TLVs provide structure for more granular extension

IS-IS LS Database: Generic Packet Format Intra-domain Routing Protocol Discriminator Length Indicator TLV Fields Version/Protocol ID Extension ID Length RRR PDU Type Version Reserved Maximum Area Addresses Packet-Specific Header Fields No. of Octets

Traffic Engineering: Motivation TE: “…that aspect of Internet network engineering dealing with the issue of performance evaluation and performance optimization of operational IP networks …’’ 90’s approach to TE was by changing link weights in IGP (OSPF, IS-IS) or EGP (BGP-4)  Performance limited by the shortest/policy path nature  Assumptions: Quasi-static traffic, knowledge of demand matrix A B C D E 2 Can not do this with OSPF A B C D E 2 Links AB and BD are overloaded A B C D E 2 Links AC and CD are overloaded

Traffic Engineering What is traffic engineering?  Control and optimization of routing, to steer traffic through the network in the most effective way Two fundamental approaches to adaptation  Adaptive routing protocols Distribute traffic and performance measurements Compute paths based on load, and requirements  Adaptive network-management system Collect measurements of traffic and topology Optimize the setting of the “static” parameters Big debates still today about the right answer QoS routing = optimization of user QoS objectives TE = optimization of user AND network QoS objectives

Outline: Three Alternatives Load-sensitive routing at packet level  Routers receive feedback on load and delay  Routers re-compute their forwarding tables  Fundamental problems with oscillation Load-sensitive routing at circuit (or aggregate) level  Routers receive feedback on load and delay  Router compute a path for the next circuit  Less oscillation, as long as circuits last for a while Traffic engineering as a management problem  Routers compute paths based on “static” values  Network management system sets the parameters to influence the mapping of traffic to paths  Acting on network-wide view of traffic and topology