1 csci 233 internet protocols class 6 dave roberts

54
1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Upload: jonathan-byrd

Post on 27-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

1

CSCI 233Internet Protocols

Class 6

Dave Roberts

Page 2: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Agenda

2

Routing ArchitectureCores, peers and algorithms

Autonomous SystemsRouting between autonomous systems

Page 3: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Origin of Routing Tables

3

Routers interconnect networksDatagram travels from router to router until it

reaches a router attached to the same network as the final destination—then it gets delivered using the local network

Routing table has network id, address of next machine for that network id

How does the routing table get its information?

How is the routing table maintained?Does the routing table have the MAC address or the IP address of the next

machine?

Page 4: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Routers and Hosts

4

Host may have only 2 routesRoute for local networkDefault route to local router

Interstate road sign analogy—successive signs on 270 headed south toward Potomac Right to GaithersburgRight to Rockville Right to Potomac

Interstate road signs don’t list all destinationsStill give complete directionsSigns analogous to routing tables

Page 5: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Road Analogy

5

Possible configurations:Star configuration of roads, single central

intersection—say, at town square. Signs at square must show routes to all destinations.

Roads a richly connected network, signs at every intersection to all destinations.

Two towns, separated by bridge over river. Neither trusts the other, so signs on West for destinations on Western side, signs on East for destinations on Eastern side of river

Page 6: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Cores

6

Original Internet architectureUse central core routers with complete

information, outer routers with partial information

Job of local administrators is simplifiedPotential for inconsistency, which can make

some outlying destinations unreachable

Page 7: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Core Routers

7

Early Internet used Arpanet as backbone. Every site had to advertise Internet addresses

All nonlocal traffic was passed to the closest core router.

Page 8: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Core Router Problem

8

This approach doesn’t work if core routers have incomplete information. If destination is unknown, default route is to core router. Then core router default path can pass through all other routers if core router doesn’t know the route to it .

Potential for large number of router hops for a datagram that takes the default path.

Page 9: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Core Router Problem…Solved

9

Core routers exchanged routing information so that each had complete information about optimal routes to all destinations

What’s wrong with this picture:Internet outgrew any possible central backboneNot every site had could have a core routerCore router interaction limits ultimate scalability

Page 10: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Peer Backbones—More Complexity

10

NFSNet backbone, when it became a peer backbone, introduced more complexity.

Very complex for core routers to know optimal routes to all hosts. Easy for illegal address to cause router loop.

Page 11: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Today’s Internet

11

Each ISP operates as an autonomous system

ISPs meet at Internet Exchange Points, where they have peering agreements, connect directly

Traffic is exchanged without fee at IXPIXPs have switches, ISPs run BGP through

switches and through direct connectionsMore about autonomous systems later

Page 12: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Today’s Internet

12

ISP ISP

ISP

IXPIXP

Page 13: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Now on to routing…

13

Page 14: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Automatic Route Propagation

14

Two separate protocols operate in routersForwarding protocols—IP datagrams arrive,

are forwardedRouting protocols—route information is

shared with other routersRouting protocols

Compute shortest pathsRespond to topology changes by updating

shortest pathsRouting protocol software

Runs independently of IP software, maintains FIB

Occasionally updates forwarding tables used by IP

Page 15: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Routing Algorithms

15

There are many (many many) variations on routing algorithms

They all fall into two categories:Distance-vectorLink-State

Distance-vectorEach router builds a list of destination networks and

the next hop to reach destination in shortest number of hops

Router know nothing about network topologyLink-State

Each router builds a map of the network topologyEach router computes shortest path to each network

Why do you think each class of algorithm has the name that it does?

Page 16: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Exchanging Route Information

16

How can routers exchange route information to keep routes up-to-date?Distance-vector (aka Bellman-Ford): routes

are selected based on the distance between networks. Distance metric is something simple such as number of hops (routers) between them. Each router maintains a table of all networks in the internetwork and the number of hops to each.

Shortest path first (aka link-state): selects routes based on a dynamic assessment of the shortest path between them. Each router maintains a map of the current topology of the network.

Page 17: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Bellman-Ford Routing (Distance Vector)

17

• Router keeps a list of destination networks, distance to each

• Router sends copy of its router table to each router it reaches directly

• The router table is a vector of distances

Page 18: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Updates

18

Marked entries cause changes to router table.

Router Table in Router K Router J Update Message

Page 19: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Disadvantages of Distance-Vector

19

Propagates slowlyCan take multiple cycles for changes to

propagateMessages exchanged tend to be large

Distributed computation of routes may not converge in presence of frequent changes

Doesn’t scale well

Page 20: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Link-State (SPF) Routing

20

Called Shortest Path First—SPFEach router table shows full network topology

All routersNetworks they connect to

Each router tests its neighborsSends test messagePropagates status of its neighbors

Router receiving message adjusts its topology table, uses Dijkstra shortest path algorithm to compute shortest path to each network

Page 21: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Advantages of Link-State

21

Much less information is propagatedScales better than distance-vectorEasy to identify and solve problems

because of simplicity of information exchange

Each router computes its own routes, not dependent on possibly incomplete propagation of change information

Page 22: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Link-State Example

22

Page 23: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Heuristic Guideline

23

Up to 12 routers can participate in a single routing information protocol across a WAN

Up to 60 routers can participate in a single routing information protocol across a set of local LANs

Page 24: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Autonomous Systems

24

Page 25: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Autonomous Systems

25

Each organization’s networks are considered an autonomous system

Organization is required to keep router tables consistent, correct, in any way they please

One router from the AS is chosen as the router that will inform the outside world of routing within the AS

Page 26: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Independent Autonomous Systems

26

Page 27: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Border Gateway Protocol

27

ASs that exchange router information designate a router that will exchange information through BGP.

BGP machine is generally near the “edge” of the AS, called a border gateway or border router.

Page 28: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

BGP

28

BGP shares next-hop information about the path from itself to another network

BGP does not share information about interior of other ASes

Page 29: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

BGP

29

Coordinates among multiple BGP speakersAllows autonomous systems to communicatePropagation of reachability informationSupplies next hop for each destinationImplements local policy decisionsReliable transport (i.e., uses TCP)Advertises path information to destinationsIncremental updatesCIDR address supportAuthentication

Page 30: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

BGP Message Types

30

Page 31: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

BGP Message Header

31

Why does the header have a marker? What is its content?

Page 32: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

BGP Open

32

Page 33: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

BGP Update Message

33

Page 34: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Path Information

34

Page 35: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

BGP Reporting

35

R2 gives next-hop information to peers on behalf of the network

Page 36: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

BGP Notification Message

36

BGP sends notification message, then closes TCP/IP connection

Page 37: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

BGP Restriction

37

BGP does not advertise path lengthsBecause of this, BGP cannot choose

shortest pathBGP must be used to advertise only

destinations that traffic should follow.

Page 38: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Internet Routing Registry

38

Many registries existShows which ISPs own which addressesAllows validation that ISP advertising

connectivity actually has that IP addressNo centralized, authenticated registryRouting problems exist

Page 39: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Summary

39

Must partition routers into groups, or information exchange would be burdensome

BGP is most used External Gateway ProtocolEach ISP is a separate AS, boundary at NAPs,

where multiple ISPs interconnect

Page 40: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Routing Within an AS

40

RIPOSPFHELLO

Page 41: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

IGP—Interior Gateway Protocol

41

Two ASs using their own IGPs internally, BGP between one another

Page 42: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

RIP—Routing Information Protocol

42

Routed—program that implements RIPParticipants are active and passive

Active: advertise their routes to othersPassive: listen to RIP messages, update router

tables, but do not advertiseUpdate broadcast every 30 secondsUpdate is pairs—network address, number of

hops to itExisting routes are kept until new route has

lower costRIP routes time out in 180 seconds, are

deleted

Page 43: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Slow Convergence Problem

43

Page 44: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Solving the Slow Convergence Problem

44

Split horizon update—router does not propagate information about a route back over the same interface from which the route arrived

In example, R2 would not advertise a route to net 1 back to R1.

Hold down—routers ignore all information about a network for some hold down period after sending a destination unreachable message

Poison reverse—router immediately advertises infinite cost to reach removed connection

Page 45: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

RIP1 Message Format

45

Page 46: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Disadvantage of RIP Hop Counts

46

Low value for infinity restricts size of any internet using RIP

Restricts routing to hop-count metric; hop count may be poor predictor of delivery time

Routing becomes relatively static, unable to respond to changes in load

Page 47: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

HELLO

47

An IGP using a routing metric other than hop count (now obsolete)

HELLOSynchronizes clocksAllows each machine to compute shortest

delay paths to destinationAllows machines to compute routes based

on time

Page 48: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Problems with Hello

48

Instability—protocols that change routes quickly can be unstable

Hold down is commonly used to increase stability

Time measurements are rounded

Page 49: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Open SPF Routing

49

Interior gateway protocol using link state algorithm

Open, can be implemented at no costIncludes type of service routingProvides load balancingNetwork partitioned into areas, separate

from each otherAuthentication for all router info exchanges

Page 50: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

OSPF Message Format

50

Page 51: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

OSPF Database Description Message

51

Page 52: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

OSPF Link-Status Request Message

52

Page 53: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

OSPF Link-Status Update Message

53

Page 54: 1 CSCI 233 Internet Protocols Class 6 Dave Roberts

Summary

54

Manual maintenance of router tables is not practical for larger networks

An IGP (Interior Gateway Protocol) allows routers to exchange information

IGP implements either distance-vector or link state algorithm (SPF)