IP Routing Principles

38
IP Routing Principles

description

IP Routing Principles. Application. Application. Presentation. Presentation. Session. Session. Transport. Transport. Network. Network. Network. Network. Network. Data Link. Data Link. Data Link. Data Link. Data Link. Physical. Physical. Physical. Physical. Physical. - PowerPoint PPT Presentation

Transcript of IP Routing Principles

Page 1: IP Routing Principles

IP Routing Principles

Page 2: IP Routing Principles

Network-Layer Protocol Operations

• Each router provides network layer (routing) services

XY

AA

BB

CC

ApplicationPresentationSessionTransportNetworkData LinkPhysical

ApplicationPresentationSessionTransportNetworkData LinkPhysical

A B C

X Y

NetworkData LinkPhysical

NetworkData LinkPhysical

NetworkData LinkPhysical

Page 3: IP Routing Principles

Static versus Dynamic Routes

• Static route

Uses a protocol route that a network administrator enters into the router

• Dynamic route

Uses a route that a network routing protocol adjusts automatically for topology or traffic changes

Page 4: IP Routing Principles

Static Route Example

• Fixed route to address reflects administrator’s knowledge

Point-to-point orcircuit-switched

connection

“Stub” Network

Only a single network connection with no need

for routing updates BB

AA

Page 5: IP Routing Principles

Default (static) Route Example

• Use if next hop is not explicitly listed in the routing table

Company X Internet

10.0.0.0

172.34.56.0

Routing TableRouting Table

No entry for destination netTry router B default route

No entry for destination netTry router B default route

CCBB

AA

Page 6: IP Routing Principles

Dynamic routing

Page 7: IP Routing Principles

Adapting to Topology Change

AA BB

CCDD

Page 8: IP Routing Principles

Adapting to Topology Change

• Can an alternate route substitute for a failed route?

XXAA BB

CCDD

Page 9: IP Routing Principles

Adapting to Topology Change

• Can an alternate route substitute for a failed route?

XXAA BB

CCDD

Page 10: IP Routing Principles

Dynamic Routing Operations

• Routing protocol maintains and distributes routing information

A router passes routing information to its neighbors

RoutingTable

RoutingTable

NetworkNetwork Routing ProtocolRouting Protocol

Page 11: IP Routing Principles

Dynamic Routing Operations

• Routing protocol maintains and distributes routing information

A router passes routing information to its neighbors

RoutingTable

RoutingTable

RoutingTable

RoutingTable

NetworkNetwork Routing ProtocolRouting Protocol Routing ProtocolRouting Protocol

Page 12: IP Routing Principles

Representing Distance with Metrics

• Information used to select the best path for routing

56T1

A

B

56

T1

Hop count

Ticks

Cost

Hop count

Ticks

Cost

Page 13: IP Routing Principles

Representing Distance with Metrics

• Information used to select the best path for routing

56T1

A

B

56

T1

Bandwidth

Delay

Load

Reliability

MTU

Bandwidth

Delay

Load

Reliability

MTU

Hop count

Ticks

Cost

Hop count

Ticks

Cost

Page 14: IP Routing Principles

Classes of Routing Protocols

Distance VectorDistance Vector

Hybrid RoutingHybrid Routing

Link StateLink StateCC

DD

BB

AA

CC

DD

BB

AA

Page 15: IP Routing Principles

• Convergence occurs when all routers use a consistent perspective of network topology

• After a topology changes, routers must recompute routes, which disrupts routing

• The process and time required for router reconvergence varies in routing protocols

One Issue: Time to Convergence

Page 16: IP Routing Principles

Distance Vector Concept

• Pass periodic copies of routing table to neighbor routers and accumulate distance vectors

CC

DD

BB

AA

CC BB AADD

RoutingTable

RoutingTable

RoutingTable

RoutingTable

RoutingTable

RoutingTable

RoutingTable

RoutingTable

Page 17: IP Routing Principles

Link-State Concept

• After initial flood, pass small event-triggered link-state updates to all other routers

Link-State Packets

SPFAlgorithm

TopologicalDatabase

Shortest Path First Tree

RoutingTable

RoutingTable

CC AA

DD

BB

Page 18: IP Routing Principles

Comparing Distance Vector Routing to Link-State Routing

Link-State

Gets common view of entire network topology

Calculates the shortest path to other routers

Event-triggered updates: faster convergence

Passes link-state routing updates to other routers

Distance Vector

Views net topology from neighbor’s perspective

Adds hops from router to router

Frequent, periodic updates: slow convergence

Passes copies of routing table to neighbor routers

Page 19: IP Routing Principles

• Share attributes of both distance-vector and link-state routing

Hybrid Routing

Choose arouting path based on distance vectors

Converge rapidly using change-based

updates

Choose arouting path based on distance vectors

Converge rapidly using change-based

updates

Balanced Hybrid RoutingBalanced Hybrid Routing

Page 20: IP Routing Principles

Static Routing

• Advantages:predictable

no additional CPU overhead

no additional network overhead

easy to configure

• Disadvantages:does not scale

hard to maintain

does not adapt to network changes

Page 21: IP Routing Principles

Dynamic Routing

• Advantages:scalability

adaptability

• Disadvantages:increased complexity

increased bandwidth overhead

increased resource usage

Page 22: IP Routing Principles

Dynamic Routing

• Moral of the story:

Use static routing where you can,use dynamic routing only where you must

Page 23: IP Routing Principles

Autonomous Systems

• Internetwork

• The big “I” Internet

• AS = a group of routers and their networks (administered by the same owner)

• AS peering

Page 24: IP Routing Principles

Routing Protocols

• Where is it used?

Interior Gateway Protocols (IGP)

RIP

OSPF

EIGRP

(IS-IS)

Exterior Gateway Protocols (EGP)

BGP

Page 25: IP Routing Principles

Routing Protocols

• How does it work?

Distance-Vector Protocols

RIP

EIGRP

BGP

Link State

OSPF

Page 26: IP Routing Principles

Protocol Features

• RIPv2

hop count metric

unreliable transport

passive RIP

simple

Page 27: IP Routing Principles

Protocol Features

• OSPF

full CIDR support

trust

route injection

hierarchical routing

a smarter protocol

Page 28: IP Routing Principles

Protocol Features

• EIGRP

more information in advertisements

improved convergence properties

partial and incremental updates

no support for areas

Page 29: IP Routing Principles

Protocol Features

• BGP

BGP-4: RFC 1771

created to support CIDR

even more information

Policy routing

Reliable transport

can also be used as an IGP (IBGP)

high overhead

Page 30: IP Routing Principles

Real World Routing

• multiple routing protocols are generally necessary

• interior routing is a LOT different than exterior routing

• multi-protocol issues

Page 31: IP Routing Principles

Implementation Considerations

172.16

RIP

172.16

EIGRP

RIP

172.16.0.0

AS 300EIGRP

ASBR

ASBR

172.16

RIP

172.16

EIGRP

Routing feedbackSuboptimal path selectionRouting loops

Incompatible routing informationInconsistent convergence time

Page 32: IP Routing Principles

Controlling Routing Update Traffic

How can we preventrouting update traffic from crossing some of these links?

172.16.7.1

172.16.7.2

172.16.6.1172.16.6.2

172.16.5.2

172.16.5.1172.16.4.1

172.16.4.2

172.16.1.1 172.16.1.2

172.16.3.1

172.16.3.2172.16.2.2

172.16.2.1

172.16.9.1 172.16.10.1

172.16.11.1

TransTrans

R200R200 CenCen

R300R300 R100R100

RemRem

172.16.12.1

64Kb

64Kb

T-1

T-1Frame Relay

Page 33: IP Routing Principles

•Different protocols use different metrics

•Metrics are difficult to compare algorithmically

Defining Distance

Page 34: IP Routing Principles

•Different protocols use different metrics

•Metrics are difficult to compare algorithmically

•Therefore, need a selection process:

1—Which protocol do you believe the most?

2—Then decide which metric is the best

Defining Distance

Page 35: IP Routing Principles

What Protocol to Believe?

Connected Interface Connected Interface 00

Static RouteStatic Route 11

Enhanced IGRP Summary RouteEnhanced IGRP Summary Route 55

External BGPExternal BGP 2020

Internal Enhanced IGRPInternal Enhanced IGRP 9090

IGRPIGRP 100100

OSPFOSPF 110110

IS-IS IS-IS 115115

RIP RIP 120120

EGPEGP 140140

External Enhanced IGRPExternal Enhanced IGRP 170170

Internal BGPInternal BGP 200200

UnknownUnknown 255255

Route SourceRoute Source Default DistanceDefault Distance

Page 36: IP Routing Principles

Routers!

• Cisco CRS-1 IP/MPLS Router92 Tbps total switching capacity

1152 x OC-768c/STM-256c (40Gbps) Line cards

707 Kg, 15 KW per chassis

IPv4, IPv6, MPLS

Page 37: IP Routing Principles

Routers!

• Juniper T640 Internet Routing Node640 Gbps total switching capacity

770 Million packet per second forwarding

40 Gbps per slot (4 * OC-192c, 1 * OC-768c)

8 slots per rack

Page 38: IP Routing Principles

Routers!

• Foundry NetIron 1500 Internet Router

480 Gbps total switching capacity

178 Million packet per second forwarding

10 Gbps per slot (1 * 10G Ethernet)

15 slots per rack