chapter 14-16a

22
1 Chapter 14-16a Chapter 14-16a Internet Internet Routing Routing Review Review

Upload: rahim-pennington

Post on 02-Jan-2016

30 views

Category:

Documents


3 download

DESCRIPTION

Chapter 14-16a. Internet Routing Review. Introduction. Motivation: Router performance is critical to overall performance and QoS in the Internet and private internetworks. Consider: selecting best routes (optimize delay, load) maintaining routing tables (router overhead) - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Chapter 14-16a

1

Chapter 14-16aChapter 14-16a

Internet RoutingInternet RoutingReviewReview

Page 2: Chapter 14-16a

Chapter 14-16: Internet Routing Review2

Introduction Introduction Motivation:Motivation: Router performance is Router performance is

critical to overall performance and QoS critical to overall performance and QoS in the Internet and private in the Internet and private internetworks. Consider:internetworks. Consider:– selecting selecting best routes best routes (optimize delay, load)(optimize delay, load)– maintainingmaintaining routing tables (router overhead) routing tables (router overhead)– router-generated router-generated management trafficmanagement traffic

Topics:Topics:– Overview of Graph TheoryOverview of Graph Theory– Interior Routing ProtocolsInterior Routing Protocols– Exterior Routing ProtocolsExterior Routing Protocols

Page 3: Chapter 14-16a

Chapter 14-16: Internet Routing Review3

Graph Theory and NetworksGraph Theory and Networks

Network Nodes

Network Links

Size of G: |E| = 10Order of G: |V| = 6

Page 4: Chapter 14-16a

Chapter 14-16: Internet Routing Review4

Graph Theory and NetworksGraph Theory and Networks

Weighted Digraph to Represent Link CostsWeighted Digraph to Represent Link Costs

Page 5: Chapter 14-16a

Chapter 14-16: Internet Routing Review5

Spanning TreesSpanning Trees

Page 6: Chapter 14-16a

Chapter 14-16: Internet Routing Review8

Dijkstra’s Link-State AlgorithmDijkstra’s Link-State Algorithm

Based on breadth-first searchRunning time order of |V|2

Page 7: Chapter 14-16a

Chapter 14-16: Internet Routing Review9

Bellman-Ford Distance Vector Bellman-Ford Distance Vector AlgorithmAlgorithm

Running time order of |V| x |E|

Page 8: Chapter 14-16a

Chapter 14-16: Internet Routing Review10

Ex: Dijkstra vs. Bellman-Ford Ex: Dijkstra vs. Bellman-Ford Least-cost routing algorithmsLeast-cost routing algorithms

Page 9: Chapter 14-16a

Chapter 14-16: Internet Routing Review11

Interior/Exterior Routing Interior/Exterior Routing Protocols Protocols

Hosth2

a

b

b

aaC

A

Bd c

A.a

A.c

C.bB.a

cb

Hosth1

Interior routingInterior routingwithin network within network

(AS) A(AS) A

ExteriorExterior routingroutingbetweenbetweennetworks networks A and BA and B

Interior routingInterior routingwithin network within network

(AS) B(AS) B

Page 10: Chapter 14-16a

12

Chapter 15Chapter 15

Interior Routing Interior Routing ProtocolsProtocols

Page 11: Chapter 14-16a

Chapter 14-16: Internet Routing Review13

Internet Routing ExampleInternet Routing Example

Page 12: Chapter 14-16a

Chapter 14-16: Internet Routing Review14

Routing TableRouting Table

Fixed vs. Adaptive Routing?

Page 13: Chapter 14-16a

Chapter 14-16: Internet Routing Review15

Routing Information Routing Information Protocol (RIP)Protocol (RIP)Distance Vector AlgorithmDistance Vector Algorithm

– typically uses simple link delay count typically uses simple link delay count metricmetric

Small networksSmall networks– fast and simplefast and simple– max max hop counthop count = 15 (RIPv1) = 15 (RIPv1)

Adaptive Adaptive – updates sent approximately updates sent approximately every 30 every 30

secondsseconds– links are invalidated if no update in links are invalidated if no update in

180 seconds180 secondsUses UDPUses UDP transport (port 520) transport (port 520)

Page 14: Chapter 14-16a

Chapter 14-16: Internet Routing Review16

RIP MessagesRIP Messages CommandCommand

– 1 for request1 for request– 2 for reply2 for reply

VersionVersion– 1: RIPv1, RFC 10581: RIPv1, RFC 1058– 2: RIP-2, RFC 17232: RIP-2, RFC 1723

Address Family IDAddress Family ID – always 2 for IP addressesalways 2 for IP addresses

IP addressIP address – non-zero network portionnon-zero network portion– zero host portionzero host portion

Cost MetricCost Metric – typically 1 (i.e. hop count)typically 1 (i.e. hop count)

Page 15: Chapter 14-16a

Chapter 14-16: Internet Routing Review17

Open Shortest Path First Open Shortest Path First Protocol (OSPF)Protocol (OSPF)Link-State AlgorithmLink-State Algorithm

– Dijkstra’s AlgorithmDijkstra’s Algorithm– uses floodinguses flooding to advertise, request info to advertise, request info

Preferred for TCP/IP-based Preferred for TCP/IP-based internetsinternets– scale, TOS, hierarchy of areas, etc.scale, TOS, hierarchy of areas, etc.– multiple metrics… monetary cost, multiple metrics… monetary cost,

reliability, throughput, delay, arbitraryreliability, throughput, delay, arbitraryAdaptive Adaptive

– routers flood with new data when a routers flood with new data when a significant change occurssignificant change occurs

Sent as Sent as payload in IP datagrampayload in IP datagram

Page 16: Chapter 14-16a

Chapter 14-16: Internet Routing Review18

Open Shortest Path First Open Shortest Path First Protocol (Scale, Hierarchy)Protocol (Scale, Hierarchy)

Page 17: Chapter 14-16a

Chapter 14-16: Internet Routing Review19

OSPF MessagesOSPF Messages VersionVersion

– 2: current version2: current version TypeType

– 1: “Hello”, for discovery1: “Hello”, for discovery– 2: database structure2: database structure– 3: request link-state3: request link-state– 4: update link-state4: update link-state– 5: acknowledge update5: acknowledge update

Length of messageLength of message Router IDRouter ID

– unique in a single areaunique in a single area Area IDArea ID

– unique to an ASunique to an AS Internet checksumInternet checksum Authentication InfoAuthentication Info

– Type of authenticationType of authentication– 64 bit authentication 64 bit authentication

valuevalueOSPF HeaderOSPF Header

Page 18: Chapter 14-16a

20

Chapter 16aChapter 16a

Exterior Routing Exterior Routing ProtocolsProtocols

Page 19: Chapter 14-16a

Chapter 14-16: Internet Routing Review21

Exterior RoutingExterior Routing

RIP

OSPFBGP

Page 20: Chapter 14-16a

Chapter 14-16: Internet Routing Review22

Border Gateway Protocol Border Gateway Protocol (BGP-4)(BGP-4) Path Vector AlgorithmPath Vector Algorithm

– cost metrics not used or advertisedcost metrics not used or advertised– each router specifies a complete path to all each router specifies a complete path to all

other nodes (e.g., from node other nodes (e.g., from node AA to node to node ZZ = = AADFHKXDFHKXZZ))

Facilitates routing based on Facilitates routing based on policypolicy instead instead of cost metricsof cost metrics– use preferred routes, providers (based on use preferred routes, providers (based on

policy)policy)– avoid competitors, poor performers, etc.avoid competitors, poor performers, etc.

Adaptive Adaptive – peers exchange updates peers exchange updates on demandon demand– nodes may choose not to nodes may choose not to participateparticipate

Uses TCP Uses TCP transport (port 179)transport (port 179)

Page 21: Chapter 14-16a

Chapter 14-16: Internet Routing Review23

Border Gateway Protocol Border Gateway Protocol ExampleExample

A

B

C

W X

Y

legend:

customer network (Stub AS)

provider network

W, X, Y, A, B and C are networks Paths are specified as, for example:

Path (w, y) = wACy Path (x, y) = xCy

BGP routers advertise (update) only those routes that are specified by administrative policy would A advertise …ABx… or …ACx… ?

Page 22: Chapter 14-16a

Chapter 14-16: Internet Routing Review24

BGP MessagesBGP MessagesCommon AttributesCommon Attributes MarkerMarker

– synchronization and synchronization and authentication authentication mechanismmechanism

Length of messageLength of message TypeType

– openopen: establish a : establish a neighbor relationshipneighbor relationship

– updateupdate: : send/withdraw route send/withdraw route informationinformation

– keepalivekeepalive: : acknowledge or acknowledge or confirm relationshipconfirm relationship

– notificationnotification: error : error detecteddetected