Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in...

40
Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 1 1 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. 2 © 1999, Cisco Systems, Inc. 301 0947_05F9_c2 Introduction to Routing Introduction to Routing Session 301 Session 301

Transcript of Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in...

Page 1: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 1

13010947_05F9_c2 © 1999, Cisco Systems, Inc.

2© 1999, Cisco Systems, Inc. 3010947_05F9_c2

Introduction to RoutingIntroduction to Routing

Session 301Session 301

Page 2: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 2

33010947_05F9_c2 © 1999, Cisco Systems, Inc.

AgendaAgenda

•• AddressingAddressing

• Concepts

• Routing Protocols

• Statics and Defaults

43010947_05F9_c2 © 1999, Cisco Systems, Inc.

Routing Information Routing Information Protocol (RIP and RIPv2)Protocol (RIP and RIPv2)

Interior Gateway RoutingInterior Gateway RoutingProtocol (IGRP)Protocol (IGRP)

Open Shortest Path First Open Shortest Path First (OSPF) Protocol(OSPF) Protocol

NetWare Link ServicesNetWare Link ServicesProtocol (NLSP)Protocol (NLSP)

Intermediate System to Intermediate System to Intermediate System (IS-IS)Intermediate System (IS-IS)

Enhanced IGRP (EIGRP)Enhanced IGRP (EIGRP)

Border Gateway Protocol (BGP)Border Gateway Protocol (BGP)

Physical LayerPhysical Layer

Network LayerNetwork Layer

TransportTransport

SessionSession

PresentationPresentation

ApplicationApplication

Data Link ControlData Link Control

L1L2L3L4L5L6L7

ISO—OSI Reference ModelISO—OSI Reference Model

Page 3: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 3

53010947_05F9_c2 © 1999, Cisco Systems, Inc.

Router FunctionsRouter Functions

• Routing = buildingmaps and givingdirections

• Switching =moving packetsbetween interfaces

• Routers are packetswitches

• Path determinationis overhead

63010947_05F9_c2 © 1999, Cisco Systems, Inc.

UNIX HostUNIX HostUNIX HostUNIX Host

Company A Company B

InternetTCP/IP

Introduction to IP AddressesIntroduction to IP Addresses

• Unique addressing allows communicationbetween end stations

• Path choice is based on location

• Location is represented by an address

Page 4: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 4

73010947_05F9_c2 © 1999, Cisco Systems, Inc.

32 Bits

NetworkNetwork HostHost

172 . 16 . 122 . 204

IP AddressingIP Addressing

8 Bits 8 Bits 8 Bits 8 Bits

83010947_05F9_c2 © 1999, Cisco Systems, Inc.

• Class A:

• Class B:

• Class C:

• Class D: for multicast

N = Network number assigned by NICH = Host number assigned by network administrator

NN HH HH HH

IP Address ClassesIP Address Classes

NN NN HH HH

NN NN NN HH

Page 5: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 5

93010947_05F9_c2 © 1999, Cisco Systems, Inc.

172.16.200.11

172.16.3.10

172.16.12.12

IP: 172.16.2.1

10.1.1.1

10.250.8.11

10.180.30.118

IP: 10.6.24.2

E0 E1

172 .16 12 12

Network Host

. . NetworkNetwork InterfaceInterface172.16.0.0172.16.0.0

10.0.0.010.0.0.0

E0E0

E1E1

Routing TableRouting Table

Host AddressesHost Addresses

103010947_05F9_c2 © 1999, Cisco Systems, Inc.

172.16.2.11

172.16.2.2

172.16.2.160

IP: 172.16.2.1

172.16.3.5

172.16.3.100

172.16.3.150

IP: 172.16.3.1

NetworkNetwork InterfaceInterface172.16.2.0172.16.2.0

172.16.3.0172.16.3.0

E0E0

E1E1

Routing TableRouting Table

Subnet AddressingSubnet Addressing

Host.160172 .16

Network Subnet.2

E0 E1

Page 6: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 6

113010947_05F9_c2 © 1999, Cisco Systems, Inc.

IPAddress

Subnet MaskSubnet Mask

172172 1616 00 00

DefaultSubnet

Mask

Network Host

255255 255255 00 00

Use Host Bits, Starting at the High Order Bit Position

8-bitSubnet

Mask

Network Subnet Host

255255 255255 255255 00

Network Host

123010947_05F9_c2 © 1999, Cisco Systems, Inc.

.6

.13

.9

.10.14

.5

A

C

B172.16172.16.40.1

255.255.255.0

172172.16.50.1255.255.255.0

172.16172.16.60.1255.255.255.0

192.168.1.8255.255.255.252

192.168.1.4255.255.255.252

192.168.1.12255.255.255.252

Where Is 172.16.0.0?

Discontiguous IP SubnetDiscontiguous IP Subnet

Page 7: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 7

133010947_05F9_c2 © 1999, Cisco Systems, Inc.

.6

.13

.9

.10.14

.5

A

C

B172.16.40.1

255.255.255.0

172.16.50.1255.255.255.0

172.16.60.1255.255.255.0

172.16.1.8255.255.255.252

172.16.1.4255.255.255.252

172.16.1.12255.255.255.252

Variable Length Subnet MaskVariable Length Subnet Mask

• Conserve IP addresses

143010947_05F9_c2 © 1999, Cisco Systems, Inc.

80 Bits

NetworkNetwork NodeNode

32 Bits 48 Bits

000C 15C0 0077.0650.2328

IPX AddressingIPX Addressing

Page 8: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 8

153010947_05F9_c2 © 1999, Cisco Systems, Inc.

• Assigns an address and subnet mask

• Starts IP processing on an interface

• Assigns a network number

• Starts IPX processing on an interface

• Must have ipx routing configured

Address ConfigurationAddress Configuration

Router (config-if) #

ip address ip-address subnet-maskip address ip-address subnet-mask

ipx network network ipx network network

163010947_05F9_c2 © 1999, Cisco Systems, Inc.

131.108.48.0 /24131.108.48.0 /24

131.108.49.0 /24131.108.49.0 /24

131.108.50.0 /24131.108.50.0 /24

131.108.51.0 /24131.108.51.0 /24

131.108.52.0 /24131.108.52.0 /24

131.108.53.0 /24131.108.53.0 /24

131.108.54.0 /24131.108.54.0 /24

131.108.55.0 /24131.108.55.0 /24

Classless Prefix NotationClassless Prefix Notation

• 131.108.0.0/16 versus 255.255.0.0

• Summarizable blocks of subnets131.108.48.0 /21131.108.48.0 /21

Page 9: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 9

173010947_05F9_c2 © 1999, Cisco Systems, Inc.

Router (config) #

IP Address ConfigurationIP Address Configuration

• Sets format of network mask as seen in showshowcommands

• bitcount 172.16.31.6/24

• decimal 172.16.31.6 255.255.255.0

• hexadecimal 172.16.31.6 0xFFFFFF00

ip netmask-format{bitcount | decimal | hexadecimal}

ip netmask-format{bitcount | decimal | hexadecimal}

183010947_05F9_c2 © 1999, Cisco Systems, Inc.

AgendaAgenda

• Addressing

•• ConceptsConcepts

• Routing Protocols

• Statics and Defaults

Page 10: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 10

193010947_05F9_c2 © 1999, Cisco Systems, Inc.

x

ConvergenceConvergence

• Time required for router to identify anduse an alternate path

• Dependent on timer values and algorithm

• Difficult to predict precisely

203010947_05F9_c2 © 1999, Cisco Systems, Inc.

Load BalancingLoad Balancing

• Equal cost paths

• Rapid failover

N1

R1 R4R3

R2T1

T1T1

T1

N2

Page 11: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 11

213010947_05F9_c2 © 1999, Cisco Systems, Inc.

Load BalancingLoad Balancing

• Unequal cost paths

N1

R1 R4R3

R2

T1

512K

N2

768K

223010947_05F9_c2 © 1999, Cisco Systems, Inc.

x

HolddownHolddown

• Sets minimum convergence time

• Prevents routing loops

I Will IgnoreI Will IgnoreRoutes to XRoutes to X

While inWhile inHolddownHolddown

Page 12: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 12

233010947_05F9_c2 © 1999, Cisco Systems, Inc.

Packets for Network X

Routing Loop:Routing Loop:A Routing DisagreementA Routing Disagreement

• Packets do not get to the destination

• Temporary traffic surge until convergence

243010947_05F9_c2 © 1999, Cisco Systems, Inc.

Do not send routing databack in the direction from

which it came

Split HorizonSplit Horizon

Page 13: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 13

253010947_05F9_c2 © 1999, Cisco Systems, Inc.

A

C

BD

PVC

PVC

PVCS0

DD 11

Split HorizonSplit Horizon

Frame Relay Network

263010947_05F9_c2 © 1999, Cisco Systems, Inc.

C

BD

PVC

PVC

PVCS0

Turn off Split HorizonTurn off Split Horizon

DD 11

CC 22

BB 22

AA 22DD 22

CC 22

BB 22

AA 1,31,3

A

Frame Relay Network

Page 14: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 14

273010947_05F9_c2 © 1999, Cisco Systems, Inc.

Split HorizonSplit Horizon

A

C

BD

PVC

PVC

PVCS0.3

S0.1

Frame Relay Network

DD 11

CC 22

BB 22

DD 11

BB 22

AA 22

283010947_05F9_c2 © 1999, Cisco Systems, Inc.

Metrics (Cost)Metrics (Cost)

• Numeric value used to chooseamong paths

• RIP/RIPv2 is hop count and ticks (IPX)

• OSPF/ISIS is interface cost (bandwidth)

• (E)IGRP is compound

• BGP can be complicated

• Path determination depends on metric

Page 15: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 15

293010947_05F9_c2 © 1999, Cisco Systems, Inc.

AgendaAgenda

• Addressing

• Concepts

•• Routing ProtocolsRouting Protocols

• Statics and Defaults

303010947_05F9_c2 © 1999, Cisco Systems, Inc.

Routing TableRouting Table

198.113.181.0198.113.181.0 [170/304793][170/304793]192.150.42.177192.150.42.177 02:03:5002:03:50 DD

198.113.178.0198.113.178.0

192.168.96.0192.168.96.0

192.168.97.0192.168.97.0

[110/9936][110/9936]192.150.42.177192.150.42.177 02:03:5002:03:50 OO

192.150.42.177192.150.42.177 00:00:2000:00:20 RR

CC

[120/3][120/3]

Ethernet0Ethernet0

Ethernet0Ethernet0

Ethernet0Ethernet0

Ethernet0Ethernet0

AgeAge SourceSourceNetwork #Network # InterfaceInterface Next HopNext Hop MetricMetric

One Forwarding Table Per Protocol (IP, IPX)

Page 16: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 16

313010947_05F9_c2 © 1999, Cisco Systems, Inc.

• Hardware state

• DynamicRoutes are learned from a protocol

• StaticRoutes are manually defined

Building the Routing TableBuilding the Routing Table

323010947_05F9_c2 © 1999, Cisco Systems, Inc.

I Know About:Network XNetwork YNetwork Z

I Know About:Network ANetwork BNetwork CA

B

C

X

Y

Z

Routing Update

Exchanges Network Knowledge

Routing ProtocolsRouting Protocols

• Routers are packet switches that forward trafficbased on layer 3 logical addresses

• Routing protocol updates are exchanged by routersto learn about paths to other logical networks

• Each routing protocol offers features that can make itdesirable as part of an internetwork design

Page 17: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 17

333010947_05F9_c2 © 1999, Cisco Systems, Inc.

Routing Protocol GoalsRouting Protocol Goals

• Optimal path selection

• Loop-free routing

• Fast convergence

• Limited designadministration

• Minimize update traffic

• Handle address limitations

• Support hierarchicaltopology

• Incorporate rapidconvergence

• Easy to configure

• Adapts to changeseasily and quickly

• Does not create a lotof traffic

• Scales to a large size

• Compatible with existinghosts and routers

• Supports variable lengthsubnet masks anddiscontiguous subnets

• Supports policy routing

343010947_05F9_c2 © 1999, Cisco Systems, Inc.

IP RIPIP RIP

• RoutingInformationProtocol

• Widely available

• Hop count metric

• Periodic update

• Easy to implement

• Usually free

• RFC 1058

• Simple = limited

• Slow convergence

• No VLSM

• No discontiguoussubnets

• Routing loops

• Count to infinity

Page 18: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 18

353010947_05F9_c2 © 1999, Cisco Systems, Inc.

Send Routing Table to Neighbors

Net A

Net B Net C

Net D

E0S0 S1 S0E0

R1 R2 R3

RIP—Distance VectorRIP—Distance Vector

AA E0E0BB S0S0

S0S0DDS0S0CC

NetworkNetwork InterfaceInterfaceBB S0S0CC S1S1

S1S1DDS0S0AA

NetworkNetwork InterfaceInterfaceCC S0S0DD E0E0

S0S0AAS0S0BB

NetworkNetwork InterfaceInterface

S0

363010947_05F9_c2 © 1999, Cisco Systems, Inc.

RIP V1

Broadcast Routing UpdatesBroadcast Routing Updates

Page 19: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 19

373010947_05F9_c2 © 1999, Cisco Systems, Inc.

R1

R2

R3

T1

56k

T1

0 Hops

1 Hop

Path A

Path B

Hops

RIP MetricRIP Metric

383010947_05F9_c2 © 1999, Cisco Systems, Inc.

When to Use RIPWhen to Use RIP

• Implementation in a few hours

• Good for stable links

• Good for small networks

• routed in host environment

• Multivendor environment

• Non-redundant network

Page 20: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 20

393010947_05F9_c2 © 1999, Cisco Systems, Inc.

RIP V2RIP V2

• RFC 1723• Cisco IOS® 11.1 support• Advertises masks• Variable length subnet masks• Route summarization• Routing updates use multicast• Authenticated updates using MD5

403010947_05F9_c2 © 1999, Cisco Systems, Inc.

Multicast Routing UpdatesMulticast Routing Updates

RIP V2

Page 21: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 21

413010947_05F9_c2 © 1999, Cisco Systems, Inc.

When to Use RIPv2When to Use RIPv2

• Same as RIP

• Subnet mask support

• Reduce broadcast load

• Validated updates

• Multivendor environment

• Non-redundant network

423010947_05F9_c2 © 1999, Cisco Systems, Inc.

IPX RIPIPX RIP

• Widely available

• Hop count metric

• Ticks (1/18 sec)

• Periodic update

• Easy to implement

• Free on servers

• Tied to SAPprotocol

• Simple = limited

• Slow convergence

• No default route

• Routing loops

• Count to infinity

Page 22: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 22

433010947_05F9_c2 © 1999, Cisco Systems, Inc.

IPX RIP—TicksIPX RIP—Ticks

• Ticks are usedto determineserver timeout

• Default for LANinterfaces is 1

• Default for WANinterfaces is 4

• IPXWANcalculates forits interfaces

• can be set viathe ipx delaynumber interfacesub command

443010947_05F9_c2 © 1999, Cisco Systems, Inc.

IGRPIGRP

• Interior GatewayRouting Protocol

• Cisco developed

• Distance vector

• Compoundmetric

• Cisco IOS 9.21

• Periodic update

• No VLSM

• Default timersproduce slowconvergence

Page 23: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 23

453010947_05F9_c2 © 1999, Cisco Systems, Inc.

• Administrativeweight

• Delay

• Bandwidth

• Reliability

• Load R1

R2

R3

T1

56k

T1

(K2 * BW) (256-load)

K5 (reliability + K4))

= ((K1 * BW + + K3* delay)) *

IGRP Compound MetricIGRP Compound Metric

463010947_05F9_c2 © 1999, Cisco Systems, Inc.

Delay Metric-Based on

D1 + D2 + D3

BandwidthMetric-Based

on 64kbps

D1 D2 D3

1.5 Mbps 64 kbps 1.5 Mbps

How the IGRP Metrics WorkHow the IGRP Metrics Work

• Bandwidth dominates short paths

• Delay dominates long paths

• Configure bandwidth on all interfaces

Page 24: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 24

473010947_05F9_c2 © 1999, Cisco Systems, Inc.

When to Use IGRPWhen to Use IGRP

• Simplicity of RIP

• Good for small and medium networks

• When metrics are important

• Reduced routing overhead

483010947_05F9_c2 © 1999, Cisco Systems, Inc.

Enhanced IGRPEnhanced IGRP

• Extremely fastconvergence

• VLSM support

• Discontiguoussubnets

• Arbitrary routesummarization

• Supports prefix andhost routing

• Best of DV and LS

• Low overhead

• Guaranteedloop-free

• Reliable, incrementalupdate-based

• Multiprotocol:IP, IPX®, AppleTalk

• Easy to configure

Page 25: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 25

493010947_05F9_c2 © 1999, Cisco Systems, Inc.

Topology Table

On Startup Routing TablesAre Exchanged; Routing

Table Built Based on BestPaths from Topology Table

X’s Table

Y’s Table

Advanced Distance VectorAdvanced Distance Vector

• Construct neighbor tables• Construct topology tables• Compute routes

AABBCC

1113132020

AABBCC

553333

AABBCC

QQZZXX

2213131313

AA 27271155

ZZQQXX

BB.... 1212.... ZZ....

AABBCC

272712123535ZZ

XX

YYQQ

503010947_05F9_c2 © 1999, Cisco Systems, Inc.

EIGRP TablesEIGRP Tables

• Topology table

• Acted upon by DUAL

• All routes advertisedby neighbors

• List of neighbors foreach route

• Routes passiveor active

• Neighbor table

• Keeps adjacentneighbor’s address

• Keeps the hold time

• Information forreliable transport

Page 26: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 26

513010947_05F9_c2 © 1999, Cisco Systems, Inc.

Diffusing UpdateDiffusing UpdateAlgorithm (DUAL)Algorithm (DUAL)

• DUAL is a loop-free routing algorithmthat performs a diffused computationof a routing table

Uses a new routing algorithm

Achieves fast convergence

Network changes propagate only to affectednodes (“bounded updates”)

• No need for route holddown

• Researched and developed by SRIInternational

523010947_05F9_c2 © 1999, Cisco Systems, Inc.

IPX EIGRPIPX EIGRP

• Automatic redistribution of routesinto RIP/SAP

• Maximum network size is 224 hopsvs 15 for RIP

• Incremental SAPs sent, reducingbandwidth usage

• All other benefits of EIGRP

Page 27: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 27

533010947_05F9_c2 © 1999, Cisco Systems, Inc.

When to Use EIGRPWhen to Use EIGRP

• Very large, complex networks

• VLSM

• For fast convergence

• Little network design

• Multiprotocol support

543010947_05F9_c2 © 1999, Cisco Systems, Inc.

Topology Information IsKept in a Database Separate

from the Routing Table

X’s Link State

Z’s Link StateQ’s Link State

Link State RoutingLink State Routing

• OSPF• IS-IS• NLSP• DECnet V

ZZ

XX

QQ

AABBCC

QQZZXX

2213131313YY

Page 28: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 28

553010947_05F9_c2 © 1999, Cisco Systems, Inc.

Link State RoutingLink State Routing

• Neighbor discovery• Constructing an LSA (Link State

Advertisement)• Distribute LSA• Compute routes using SPF

(Shortest Path First)• On network failure

New LSAs flooded

All routers recompute routing tables

563010947_05F9_c2 © 1999, Cisco Systems, Inc.

OSPFOSPF

• Open ShortestPath First

• Link state or SPFtechnology

• Developed by OSPFworking group ofIETF (RFC 1253)

• Designed expresslyfor TCP/IP Internetenvironment

• Fast convergence

• Variable-lengthsubnet masks

• Discontiguoussubnets

• No periodic updates

• Route authentication

• Delivered two yearsafter IGRP

Page 29: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 29

573010947_05F9_c2 © 1999, Cisco Systems, Inc.

BackboneBackboneRouterRouter

OSPF Areas and RulesOSPF Areas and Rules

Area 1Area 4

Area 0

Area 2 Area 3

InternalInternalRouterRouter

AreaAreaBorderBorderRouterRouter

AutonomousAutonomousSystem (AS)System (AS)

Border RouterBorder Router

Internet

• Backbone area (0)must be present

• All other areasmust haveconnectionto backbone

• Backbone mustbe contiguous

• Do not partitionarea (0)

583010947_05F9_c2 © 1999, Cisco Systems, Inc.

When to Use OSPFWhen to Use OSPF

• Large hierarchical networks

• Complex networks, except…Topology restrictive

Additional network design

• VLSM

• Fast convergence

• Multivendor

Page 30: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 30

593010947_05F9_c2 © 1999, Cisco Systems, Inc.

IS-ISIS-IS

• IS = IntermediateSystem

• Dual IS-IS

• Integrated IS-IS

• Metric is 6 bitswide (1-63)*

• All interfacesdefault to 10

• ISO 10589

• Two types of areas:Level-1 other areas

Level-2 backbone

• Default foreach level

• Much like OSPF

603010947_05F9_c2 © 1999, Cisco Systems, Inc.

NetWare Link Services ProtocolNetWare Link Services Protocol

• Derived from ISIS

• NLSP specs 3 levels of routers

• Only 2 levels are defined

• Spec is Novell NLSP version 1.1http://developer.novell.com

/devres/langrp/specs/nlspspec.exe

http://www.novell.com/documentation

/en/kayak/nw411com/ipxrtenu/docmodul/ch3.html

Page 31: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 31

613010947_05F9_c2 © 1999, Cisco Systems, Inc.

BGPBGP

• RFC 1771

• Border GatewayProtocol

• Version 4 is current

• Exterior routingprotocol (vs.interior)

• Uses TCP fortransport

• Many options forpolicy enforcement

• Classless InterDomain Routing(CIDR)

• Widely used forInternet backbone

• Autonomoussystems

623010947_05F9_c2 © 1999, Cisco Systems, Inc.

EE

AS 100 AS 101

AS 102

Peering

BGP BasicsBGP Basics

• Runs over TCP

• Path vectorprotocol

• Incremental update

CCAA

BB DD

EE

Page 32: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 32

633010947_05F9_c2 © 1999, Cisco Systems, Inc.

• BGP peer within the same AS• Not required to be directly connected• IBGP neighbors should be fully meshed• Few BGP speakers in corporate network

AS 100

Internal BGP (IBGP) PeeringInternal BGP (IBGP) Peering

BB

DD

AA

EE

643010947_05F9_c2 © 1999, Cisco Systems, Inc.

AS 100 AS 101

External BGP (EBGP) PeeringExternal BGP (EBGP) Peering

• Between BGP speakers in different AS

• Should be directly connected

• Don’t run an IGP between EBGP peers

AA

BB

CC

Page 33: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 33

653010947_05F9_c2 © 1999, Cisco Systems, Inc.

BGP

BGP

BGP

StaticRoute

AS 100

AS 200

AS 400

AS 300

Policy DrivesPolicy DrivesBGP RequirementsBGP Requirements

• Policy for AS 100: Always use AS 300path to reach AS 400

663010947_05F9_c2 © 1999, Cisco Systems, Inc.

B

Static

Advertise DefaultNetwork Via IGP Use a Static Route to

Provide Connectivity

NetworkNumber

ISP Runs BGP

When Not to Use BGPWhen Not to Use BGP

• Avoid BGP configuration by usingdefault networks and static routes

Appropriate when the local policy is thesame as the ISP policy

AA BB

CC

Page 34: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 34

673010947_05F9_c2 © 1999, Cisco Systems, Inc.

AgendaAgenda

• Addressing

• Concepts

• Routing Protocols

•• StaticsStatics and Defaults and Defaults

683010947_05F9_c2 © 1999, Cisco Systems, Inc.

Static RoutesStatic Routes

• Routes configured manually

• Useful when few or just oneroute exist

• Can be administrative burden

• Frequently used for default route

Page 35: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 35

693010947_05F9_c2 © 1999, Cisco Systems, Inc.

172.16.3.13

172.16.1.0C15C0

172.16.3.23

T1

ISDN

Floating Static RoutesFloating Static Routes

• A static route with a high distancedistance• Can be overridden by dynamic info

ip route 172.16.1.0 255.255.255.0 172.16.3.1 140140

ipx route C15C0 3.0000.0c15.3628 floating-static

703010947_05F9_c2 © 1999, Cisco Systems, Inc.

Default RoutesDefault Routes

• Route used if no match is found inrouting table

• Can be carried by routing protocols• Two models

Special network number:0.0.0.0 (IP)-2 (IPX)

Flagged in routing protocol

• Protocols support multiple models

Page 36: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 36

713010947_05F9_c2 © 1999, Cisco Systems, Inc.

Creating a Default RouteCreating a Default Route

• RIP, RIPv2: network 0.0.0.0

• IGRP, EIGRP: ip default-network

• OSPF: default originate

• IPX: ipx route default

• default gateway is for “host mode”

723010947_05F9_c2 © 1999, Cisco Systems, Inc.

172.16.1.0

172.16.0.0

s0 s1

Internet

Default IPDefault IP Subnet Subnet

• Two defaultsFor unknown networks

For unknown subnets

• Controlled by ip classless

Page 37: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 37

733010947_05F9_c2 © 1999, Cisco Systems, Inc.

Comparison of Routing ProtocolsComparison of Routing Protocols

LinkStateLinkLinkStateState

TraditionalTraditionalDistanceDistanceVectorVector

AdvancedAdvancedDistanceDistanceVectorVector

ScalabilityScalability

BandwidthBandwidth

MemoryMemory

CPUCPU

ConvergenceConvergence

ConfigurationConfiguration

GoodGood

LowLow

LowLow

HighHigh

LowLow

LowLow

HighHigh

HighHigh

ExcellentExcellent

LowLow

ModerateModerate

LowLow

FastFast

EasyEasy

FastFast

ModerateModerate

SlowSlow

EasyEasy

743010947_05F9_c2 © 1999, Cisco Systems, Inc.

NameName TypeType ProprietaryProprietary FunctionFunction UpdatesUpdates MetricMetric VLSMVLSM SummSumm

RIPRIP

RIPv2RIPv2

IGRPIGRP

EIGRPEIGRP

OSPFOSPF

IS-ISIS-IS

BGPBGP

DVDV

DVDV

DVDV

Adv DVAdv DV

LSLS

LSLS

DVDV

NoNo

NoNo

YesYes

YesYes

NoNo

NoNo

NoNo

InteriorInterior

InteriorInterior

InteriorInterior

InteriorInterior

InteriorInterior

Int/ExtInt/Ext

ExteriorExterior

30 Sec30 Sec

30 Sec30 Sec

90 Sec90 Sec

TrigTrig

TrigTrig

TrigTrig

TrigTrig

HopsHops

HopsHops

CompComp

CompComp

CostCost

CostCost

N/AN/A

NoNo

YesYes

NoNo

YesYes

YesYes

YesYes

N/AN/A

AutoAuto

AutoAuto

AutoAuto

BothBoth

ManMan

AutoAuto

ManMan

Internet Routing ProtocolsInternet Routing Protocols

• IP routing protocols arecharacterized as

Page 38: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 38

753010947_05F9_c2 © 1999, Cisco Systems, Inc.

Topology/TechnologyTopology/TechnologyConsiderationsConsiderations

• Routing and services overhead is usuallynot a big deal when you have a lot ofbandwidth (i.e. LANs)

• Protect WAN bandwidth using update-basedprotocols—more bandwidth and buffers forapplication traffic

• High densities of sub(interfaces) can cause“hot spots” and router CPU overload

• NBMA (Non-Broadcast Multi-Access)technologies always require gooddesign practices

763010947_05F9_c2 © 1999, Cisco Systems, Inc.

For Further Reference…For Further Reference…

•• Computer Networks, Third EditionComputer Networks, Third Editionby Andrew Tanenbaum (ISBN: 0-13349-945-6)

•• Interconnections : Bridges and RoutersInterconnections : Bridges and Routersby Radia Perlman (ISBN: 0-20156-332-0)

•• Internetworking with TCP / IP, Volume 1:Internetworking with TCP / IP, Volume 1:Principles, Protocols, and ArchitecturePrinciples, Protocols, and Architectureby Douglas Comer (ISBN: 0-13216-987-8)

•• IP Routing FundamentalsIP Routing Fundamentalsby Mark Sportack (ISBN: 1-57870-071-x)

•• IP Routing PrimerIP Routing Primerby Robert Wright (ISBN: 1-57870-108-2)

•• OSPF Network Design SolutionsOSPF Network Design Solutionsby Thomas, Thomas M. (ISBN: 1-57870-046-9)

Page 39: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 39

773010947_05F9_c2 © 1999, Cisco Systems, Inc.

Thank You!Thank You!

• Please fill out the survey• This was #301 Introduction

to Routing• Related sessions:

304 Intro to IP Switching307 Deploying IGRP/EIGRP308 Deploying OSPF/NLSP/IS-IS

309 Deploying BGP

Introduction to Routing

Session 301

78© 1999, Cisco Systems, Inc. 3010947_05F9_c2

Page 40: Introduction to Routing · Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. Presentation_ID.scr 2 3 301 0947_05F9_c2 © 1999, Cisco Systems, Inc. Agenda

Copyright © 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.Presentation_ID.scr 40

79© 1999, Cisco Systems, Inc. 3010947_05F9_c2