+ All Categories
Home > Documents > Routing II: Protocols (RIP, EIGRP, OSPF, PNNI,...

Routing II: Protocols (RIP, EIGRP, OSPF, PNNI,...

Date post: 26-May-2020
Category:
Upload: others
View: 9 times
Download: 0 times
Share this document with a friend
67
Shivkumar Kalyanaraman 1 Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute [email protected] Based in part upon slides of Prof. Raj Jain (OSU), S. Keshav (Cornell), J. Kurose (U Mass)
Transcript
Page 1: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman1

Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)

Shivkumar KalyanaramanRensselaer Polytechnic Institute

[email protected]

Based in part upon slides of Prof. Raj Jain (OSU), S. Keshav (Cornell), J. Kurose (U Mass)

Page 2: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman2

Overview

RIP, RIPv2, EIGRPOSPF, PNNI, IS-IS: LS efficiency & robustness

Link state distribution, DB synchronization, NBMAs etcRefs: Chap 16,14 Books: “Interconnections” by Perlman, “OSPF” by John Moy, “Routing in Internet” by Huitema.Reference: RFC 2328: OSPF Version 2: In HTML Reading: Notes for Protocol Design, E2e Principle, IP and Routing: In PDF Reading: Routing 101: Notes on Routing: In PDF | In MS Word Reference: Tsuchiya, "The Landmark Hierarchy: A New Hierarchy for Routing in Very Large Networks"

Page 3: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman3

RIP: Routing Information ProtocolUses hop count as metric (max: 16 is infinity) Tables (vectors) “advertised” to neighbors every 30 s.

Each advertisement: upto 25 entriesNo advertisement for 180 sec: neighbor/link declared dead

routes via neighbor invalidatednew advertisements sent to neighbors (Triggered updates)neighbors in turn send out new advertisements (if tables changed)link failure info quickly propagates to entire netpoison reverse used to prevent ping-pong loops (infinite distance = 16 hops)

Page 4: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman4

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 RIPv1 does not support subnet masks (VLSMs)

No authentication

Page 5: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman5

RIPv2Why ? Installed base of RIP routersProvides:

VLSM supportAuthenticationMulticasting“Wire-sharing” by multiple routing domains,Tags to support EGP/BGP routes.

Uses reserved fields in RIPv1 header. First route entry replaced by authentication info.

Page 6: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman6

E-IGRP (Interior Gateway Routing Protocol)

CISCO proprietary; successor of RIP (late 80s)Several metrics (delay, bandwidth, reliability, load etc)Uses TCP to exchange routing updatesLoop-free routing via Distributed Updating Alg. (DUAL) based on diffused computation

Freeze entry to particular destinationDiffuse a request for updatesOther nodes may freeze/propagate the diffusing computation (tree formation)Unfreeze when updates received.Tradeoff: temporary un-reachability for some destinations

Page 7: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman7

Link State vs. Distance VectorLink State (LS) advantages:

More stable (aka fewer routing loops) Faster convergence than distance vectorEasier to discover network topology, troubleshoot network.Can do better source-routing with link-stateType & Quality-of-service routing (multiple route tables) possible

Caveat: With path-vector-type (paths instead of distances) DV routing, these differences blur…

Page 8: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman8

Link State ProtocolsKey: 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 destinations4. Routing table = next-hops of these paths.5. Hierarchical routing: organization of areas, and filtered control plane information flooded.

Page 9: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman9

Link State IssuesReliable Flooding: sequence #s, age LSA types, Neighbor discovery and maintainence (hello)

Efficiency in Broadcast LANs, NBMA, Pt-Mptsubnets: designated router (DR) concept

Areas and HierarchyArea types: Normal, Stub, NSSA: filteringExternal Routes (from other ASs), interaction with inter-domain routing.

Advanced topics: incremental SPF algorithms

Page 10: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman10

Reliable Flooding…

Page 11: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman11

Topology DisseminationA.k.a LSP distribution 1. Flood LSPs on links except incoming link

Require at most 2E transfers for n/w with E edges

2. Sequence numbers to detect duplicatesWhy? Routers/links may go down/upIssue: wrap-around, larger sequence number is not the most recent!

Page 12: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman12

Sequence Number Space OrganizationCircular space: S1 > S2 > S3 > S1

Accidental bit errors in switch memory caused this problem in ARPANET

Lollipop sequence: Start with S0, increment till you reach circle and then view it as a circular space

No ambiguity in lollipop handleLinear space: OSPFv2.

If Smax reached, expicitly delete Smax LSA before wrapping around

Page 13: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman13

Topology Dissemination (Continued)Checksum field:

Drop packet if in error, get retransmission from neighbor

Age field (similar to TTL)Number of seconds since LSA originatedPeriodically incremented after acceptanceOriginating router refreshes LSA after 30 minDelete if Age = MaxAgeLow age field + large seq # => that LSA is flapping or frequently changing …

Page 14: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman14

Recovering from a partitionOn partition, LSP databases can get out of synch

Databases described by database descriptor recordsRouters on each side of a newly restored link talk to each other to update databases (determine missing and out-of-date LSPs) => selective synchronization

Page 15: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman15

LSA-types, Neighbor & flooding Adjacencies in Different Subnets

Page 16: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman16

OSPF Router-LSA: Scenario

Page 17: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman17

Neighbor Discovery & RelationshipEvery OSPF router sends out 'hello' packetsHello packets used to determine if neighbor is upHello packets sent periodically (short intervals)

HelloInterval = 10s (in example)Assumes neighbor dead if no response within

RouterDeadInterval = 40s (in example)This is also called an “adjacency”

Note that adjacency is a logical routing relationshipand is more than physical connection.It consumes bandwidth and computation resourcesBecomes an issue if large number of adj need to be maintained

Page 18: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman18

Neighbor …Once an adjacency is established, trade information

Neighbor relationship is bi-directional as a result of OSPF hello packets

Local topology information is packaged in a "link state announcement“ (LSA)

Multiple types of LSAs: (detail later) Initial DB synchronizationNew announcements are sent ONCE, and only updated if there's a changeOr every 45mins...

Page 19: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman19

Hello: Packet Format

Page 20: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman20

Router-LSA:

Page 21: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman21

Database Synchronization LS Database (LSDB): collection of the Link State Advertisements (LSAs) accepted at a node.

This is the “map” for Dijkstra algorithmWhen the connection between two neighbors comes up, the routers must wait for their LS DBs to be synchronized.

Else routing loops and black holes due to inconsistencyOSPF technique:

Source sends only LSA headers, thenNeighbor requests LSAs that are more recent.Those LSAs are sent overAfter sync, the neighbors are said to be “fully adjacent”

Page 22: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman22

Recap: IP Subnet ModelEach subnet assigned one or more address prefixes. Each address prefix is called an IP subnetIP routes to subnets, not to individual hostsTwo hosts on different IP subnets have to go through one or more routers.

Even if they are on the same “physical” network

Page 23: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman23

IP Subnet Model (Contd)Two hosts or routers on a common subnet can send packets “directly”to one anotherTwo routers cannot exchange routing information directly unless they have one or more IP subnets in commonAll these issues will be strained as we study OSPF adjacency operation over different subnets

Page 24: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman24

Broadcast Media IssuesMultiple (N) OSPF routers attached to a common subnet

Problems: One “physical link” vs N*(N-1) “adjacencies”How many “links” to be counted for Dijkstra algo?

Page 25: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman25

Broadcast net: # links for DIjkstraEach router is assumed to be “linked” to every other router for the purposes of Dijkstra.Hello protocol optimization:

Each node multicasts Hello to 224.0.0.5 (multicast address “AllSPFRouters”)The Hello multicast message also indicates acks for other routers’ Hellos by listing their RouterIDs“Link” relationship for purposes of Dijkstra maintained by each node sending a single Hello packet, instead of N packets.

What about “flooding adjacencies”, I.e., Whom to send (flood) LSAs when a router generates or learns a new LSA?Does it need to synchronize DBs with all nodes ?

Page 26: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman26

Flooding Adjacencies : option 1Using Router-LSAs …

O(N) Router-LSAs, with O(N2) adjacency infoMulticast of Router-LSAs does not solve O(N2) DB synchronization issue

Page 27: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman27

Flooding Adjacencies: option 2New LSA-type: Network-LSA …

O(N) Router-LSAs + 1 network-LSA+ O(N) adjacenciesConverted O(N2) adjacency problem into O(N) problem

Page 28: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman28

Recap: O(N2) model ⇒ O(N) model

Question: Who creates the network-LSA?

Page 29: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman29

Designated Router (DR)One router elected as a designated router (DR)

Each router maintains flooding adjacency with the DR, I.e., sends acks of LSAs to DRDR informs each router of other routers on LANDR generates the network-LSA on subnet’s behalf after synchronizing with all routers

Page 30: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman30

DR, BDR … continuedBackup DR (BDR) also syncs with all routers, and takes over if DR dies (typically 5 s wait)Total: 2N – 1 adjacenciesMulticast-based optimization:

New LSAs, Hellos sent to AllSPFRouters avoids DR re-advertising new informationLSA acks sent to AllDRRouters avoids separate copies to be sent to DR and BDR

DR election:First router on net = DR, second = BDRRouterPriority: [0, 127] indicated in Hello packet=> highest priority router becomes DRIf network is partitioned and healed, the two DRs are reduced to one by looking at RouterPriority

Page 31: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman31

Network-LSA Example: Summary

DR

Page 32: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman32

What if subnet does not support broadcast?

Non-Broadcast Multiple Access (NBMA) mediaNBMA segments may support more than 2 routers, and allow any two routers to communicate directly, but do not support data-link broadcast/mcast capability

Eg:X.25, SMDS, Frame-Relay, ATM etc Connection-oriented (VC-based) communicationEach VC is costly => setting up full mesh for Hellos is prohibitively expensive

Two flooding adjacency models in OSPF:Non-Broadcast Multiple Access (NBMA) modelPoint-to-Multipoint (pt-mpt) Model

Different tradeoffs…

Page 33: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman33

NBMA Subnet ModelNeighbor discovery: manually configuredDijkstra SPF views NBMA as a full mesh!Most routers assigned a RouterPriority = 0Other routers: eligible to become DRs =>

ID of all routers in the NBMA configuredMaintains VCs and Hellos with all routers eligible to become DRs (RouterPriority > 0)Enables election of new DR if current one fails

DR and BDR only maintain VCs and Hellos with allrouters on NBMA

DB synchronization works same as broadcast subnetFlooding in NBMA always goes through DRMulticast not available to optimize LSA flooding.

DR generates network-LSA just like broadcast subnet

Page 34: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman34

NBMA vs Pt-Mpt Subnet ModelKey assumption in NBMA model:

Each router on the subnet can communicate with every other (same as IP model)But this requires a “full mesh” of expensive PVCs at the lower layer!Many organizations have a hub-and-spoke PVC setup, a.k.a. “partial mesh”Conversion into NBMA model requires multiple IP subnets, and complex configuration (see fig on next slide)

OSPF’s pt-mpt subnet model breaks the rule that two routers on the same network must be able to talk directly

Can turn partial PVC mesh into a single IP subnet

Page 35: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman35

Partial Mesh F-Relay: NBMA model

Page 36: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman36

Partial Mesh F-Relay: pt-mpt model

Page 37: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman37

Pt-Mpt Subnet ModelEach router: single OSPF interface, but multiple neighbor relationshipsNote that neighbor relationships not formed to nodes to which direct PVC does not exist.Key differences:

No DRs or BDRs! Just hellos over the PVCs. Make sure that the communication is bi-directional. I.e. Partial mesh is viewed in Dijkstra as a partial mesh. Full mesh view not forced like in NBMA model.

Sometimes auto-configuration is possible.Loss in efficiency because the DB synchronization has to be done between every peer. O(n^2) if full mesh. So, in true full PVC mesh situations, it is better to operate subnet as an NBMA

Page 38: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman38

Hierarchical Routing

Page 39: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman39

Why Hierarchy?Information hiding (filtered) => computation, bandwidth, storage saved => efficiency => scalabilityAddress abstraction vs Topology Abstraction

Multiple paths possible between two areas

Page 40: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman40

Hierarchical OSPF

Page 41: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman41

AreaConfigured area IDA set of address prefixes

Do not have to be contiguousSo a prefix can be in only one area

A set of router IDsRouter functions may be interior, inter-area, or external

Page 42: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman42

Hierarchical OSPFTwo-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)

Page 43: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman43

Sample Area Configuration

10.2.0.0/24

Page 44: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman44

Summary-LSA Example

Page 45: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman45

Externals and Aggregation 1A full ISP routing table has approximately 100K routes!

But will you do anything differently if you know all of them and have a single ISP?Multiple ISP situations call for complex OSPF and BGP design

Never redistribute IGPs into BGP! (later…)Redistribute BGP into IGPs with extreme care

Page 46: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman46

Externals & Aggregation 2

In an enterpriseLimit externals from subordinate domains(e.g., RIP) to be within area (area-scope)

Flood only in area 0 and in area with ASBR

Allow externals from Internet, peer domains to go outside Area 0…

Only when there will be significant path differencesDo things with defaults where possible

Page 47: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman47

Type 1 and Type 2 externalsType 2:

Default type for routes distributed into OSPFEGP costs very different from IGP costsExit based on external (EGP) cost only

Type 1Needs to be set explicitly: not defaultIGP costs can be compared and summedSelects exit based on internal + external costs

Page 48: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman48

Stubbiness: A Means of Controlling Externals

Page 49: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman49

Normal Areas

Flood AS-external-LSAs (type 5) across area-boundaries (AS flooding scope)ASBR-summary-LSAs (type 4) advertises location of ASBR (area flooding scope)

Page 50: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman50

Stub Areas

AS-external-LSAs (type 5) not flooded into stub areasSummary-LSA flooded only optionallyDefault route to ABR for all non-area prefixesPaths may be inefficient, cannot place an ASBR in stub areas

Page 51: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman51

Not-So-Stubby-Areas (NSSA)

A subset of external LSAs may be floodedUse Type-7 LSAs for such external routesUsed to import RIP domain routes and flood it externally, but keep default route for BGP routes

Page 52: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman52

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 IPIS-IS competed neck-to-neck with OSPF.

OSPF deployed in large enterprise networksIS-IS deployed in several large ISPs

Page 53: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman53

IS-IS Terminology

Intermediate system (IS) - RouterDesignated Intermediate System (DIS) - Designated RouterPseudonode - Broadcast link emulated as virtual node by DISEnd System (ES) - Network Host or workstationNetwork Service Access Point (NSAP) - Network Layer AddressSubnetwork Point of attachment (SNPA) - Datalink interfacePacket data Unit (PDU) - Analogous to IP PacketLink State PDU (LSP) - Routing information packetLevel 1 and Level 2 – Area 0 and lower areas

Page 54: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman54

Functional ComparisonProtocols are recognizably similar in function and mechanism (common heritage)Link state algorithms Two level hierarchiesDesignated Router on LANsWidely deployed (ISPs vs enterprises)Multiple interoperable implementationsOSPF more “optimized” by design (and therefore significantly more complex)IS-IS not designed from the start as an IP routing protocol (and is therefore a bit clunky in places)

Page 55: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman55

Sample comparison pointsEncapsulation

OSPF runs on top of IP=> Relies on IP fragmentation for large LSAsIS-IS runs directly over L2 (next to IP) => fragmentation done by IS-IS

Media supportBoth protocols support LANs and point-to-point links in similar waysIS-IS supports NBMA in a manner similar to OSPF pt-mpt model: as a set of point-to-point linksOSPF NBMA mode is configuration-heavy and risky (all routers must be able to reach DR; bad news if VC fails)

Page 56: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman56

Packet EncodingOSPF 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) encodedNo particular alignmentExtensible from the start (unknown types ignored but still flooded)All packet types are extensibleNested TLVs provide structure for more granular extension

Page 57: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman57

IS-IS LS Database: Generic Packet Format

Intra-domain Routing Protocol Discriminator

Length Indicator

TLV Fields

Version/Protocol ID Extension

ID Length

R R R PDU Type

Version

Reserved

Maximum Area Addresses

Packet-Specific Header Fields

No. of Octets

1

1

1

1

1

1

1

1

Page 58: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman58

More detailed comparison provided as a reference (not covered in

class)…

Page 59: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman59

Private Network to Node Interface (PNNI)

Link State Routing Protocol for ATM Networks

“A hierarchy mechanism ensures that this protocol scales well for large world-wide ATM networks. A key feature of the PNNI hierarchy mechanism is its ability to automatically configure itself in networks in which the address structure reflects the topology…”

Page 60: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman60

PNNI FeaturesScales to very large networks.Supports hierarchical routing.Supports QoS.Supports multiple routing metrics and attributes.Uses source routed connection setup.Operates in the presence of partitioned areas.Provides dynamic routing, responsive to changes in resource availability.Separates the routing protocol used within a peer group from that used among peer groups.Interoperates with external routing domains, not necessarily using PNNI.Supports both physical links and tunneling over VPCs.

Page 61: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman61

PNNI Terminology (partial)Peer group: A group of nodes at the same hierarchyBorder node: one link crosses the boundaryLogical group node: Representation of a group as a single pointChild node: Any node at the next lower hierarchy levelParent node: LGN at the next higher hierarchy levelLogical links: links between logical nodesPeer group leader (PGL): Represents a group at the next higher level.

Node with the highest "leadership priority" and highest ATM address is elected as a leader.PGL acts as a logical group node.Uses same ATM address with a different selector value.

Peer group ID: Address prefixes up to 13 bytes

Page 62: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman62

PNNI Terminology

Page 63: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman63

Hierarchical Routing: PNNI

Page 64: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman64

Source RoutingSource specifies route as a list of all intermediate systems in the route. Abstracts out area hops.Designated Transit List (DTL) Source route across each level of hierarchy

Entry switch of each peer group specifies complete route through that groupSet of DTLs and manipulations implemented as a stack

DTL example: next slide

Page 65: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman65

DTL Example

Page 66: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman66

Crank back and Alternate Path RoutingIf a call fails along a particular route:

It is cranked back to the originator of the top DTLThe originator finds another route orCranks back to the generator of the higher level source route

Page 67: Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS)koushik/shivkuma-teaching/sp2002/ip2002-routin… · Shivkumar Kalyanaraman 2 Overview RIP, RIPv2, EIGRP OSPF, PNNI, IS-IS: LS

Shivkumar Kalyanaraman67

Summary

DV Protocols: RIP, EIGRPLS Protocols: OSPF, IS-IS, PNNI


Recommended