44
1 Chapter 13-14 Wide Area Networks (WANs), Routing, and Shortest Paths

Chapter 13-14

Embed Size (px)

DESCRIPTION

Chapter 13-14. Wide Area Networks (WANs), Routing, and Shortest Paths. Motivation. Connect multiple computers Span large geographic distance Cross public right-of-way Streets Buildings Railroads. Building Blocks. Point-to-point long-distance connections Packet switches (nodes) - PowerPoint PPT Presentation

Citation preview

Page 1: Chapter 13-14

1

Chapter 13-14

Wide Area Networks (WANs),

Routing, and Shortest Paths

Page 2: Chapter 13-14

2

MotivationMotivation

Connect multiple computersSpan large geographic distanceCross public right-of-way

StreetsBuildingsRailroads

Page 3: Chapter 13-14

3

Building BlocksBuilding Blocks

Point-to-point long-distance connectionsPacket switches (nodes)

Forms a mesh network

Page 4: Chapter 13-14

4

Packet SwitchPacket Switch

Hardware deviceConnects to

Other packet switchesComputers

Forwards packetsUses addresses

Page 5: Chapter 13-14

5

Illustration of a Packet Switch

Illustration of a Packet Switch

Special-purpose computer systemCPUMemory I/O interfacesFirmware

Page 6: Chapter 13-14

6

Building a WANBuilding a WAN

Place one or more packet switches at each site

Interconnect switchesLAN technology for local connectionsLeased digital circuits for long-distance

connections

Page 7: Chapter 13-14

7

Illustration of a WANIllustration of a WAN

Interconnections depend onEstimated trafficReliability needed

Page 8: Chapter 13-14

8

Store and ForwardStore and Forward

Basic paradigm used in packet switched networkPacket

Sent from source computerTravels switch-to-switchDelivered to destination

Switch“Stores” packet in memoryExamines packet’s destination address“Forwards” packet toward destination

Page 9: Chapter 13-14

9

Addressing in a WANAddressing in a WAN

NeedUnique address for each computerEfficient forwarding

Two-part addressPacket switch number Computer on that switch

Page 10: Chapter 13-14

10

Illustration of WAN Addressing

Illustration of WAN Addressing

Two part address encoded as integerHigher-order bits for switch numberLow-order bits for computer number

Page 11: Chapter 13-14

11

Next-Hop ForwardingNext-Hop Forwarding

Performed by packet switchUses table of routesTable gives next hop

Page 12: Chapter 13-14

12

Forwarding Table Abbreviations

Forwarding Table Abbreviations

Many entries point to same next hopCan be condensed (default)Improves lookup efficiency

Page 13: Chapter 13-14

13

Source of Routing Table Information

Source of Routing Table Information

ManualTable created by handUseful in small networksUseful if routes never change

Automatic routingSoftware creates/updates tableNeeded in large networksChanges routes when failures occur

Page 14: Chapter 13-14

14

Relationship of Routing To Graph Theory

Relationship of Routing To Graph Theory

GraphNode models switchEdge models connection

Page 15: Chapter 13-14

15

Shortest Path ComputationShortest Path Computation

Algorithms from graph theoryNo central authority (distributed

computation)A switch

Must learn route to each destinationOnly communicates with directly attached

neighbors

Page 16: Chapter 13-14

16

Illustration of Minimum Weight Path

Illustration of Minimum Weight Path

Label on edge represents “distance”Possible distance metric

Geographic distanceEconomic costInverse of capacity

Darkened path is minimum 4 to 5

Page 17: Chapter 13-14

17

Algorithms for Computing Shortest Paths

Algorithms for Computing Shortest Paths

Distance Vector (DV)Switches exchange information in their routing

tablesLink-state

Switches exchange link status informationBoth used in practice

Page 18: Chapter 13-14

18

Distance VectorDistance Vector

Periodic, two-way exchange between neighbors

During exchange, switch sendsList of pairsEach pair gives (destination, distance)

ReceiverCompares each item in list to local routesChanges routes if better path exists

Page 19: Chapter 13-14

19

Distance Vector AlgorithmDistance Vector Algorithm

Page 20: Chapter 13-14

20

Distance Vector IntuitionDistance Vector Intuition

LetN be neighbor that sent the routing messageV be destination in a pairD be distance in a pairC be D plus the cost to reach the sender

If no local route to V or local routed has cost greater than C, install a route with next hop N and cost C

Else ignore pair

Page 21: Chapter 13-14

21

Example of Distance Vector Routing

Example of Distance Vector Routing

Consider transmission of one DV messageNode 2 send to 3, 5, and 6Node 6 installs cost 8 route to 2Later 3 sends update to 66 changes route to make 3 the next hop for

destination 2

Page 22: Chapter 13-14

22

Link-State RoutingLink-State Routing

Overcomes instabilities in DVPair of switches periodically

Test link between themBroadcast link status message

SwitchReceives status messageComputes new routesUses Dijkstra’s algorithm

Page 23: Chapter 13-14

23

Example of Link-State Information

Example of Link-State Information

Assume nodes 2 and 3Test link between themBroadcast information

Each node Receives informationRecomputes routes as needed

Page 24: Chapter 13-14

24

Dijkstra’s Shortest Path Algorithm

Dijkstra’s Shortest Path Algorithm

InputGraph with weighted edgesNode, n

OutputSet of shortest paths from n to each nodeCost of each path

Called Shortest Path First (SPF) algorithm

Page 25: Chapter 13-14

25

Dijkstra’s AlgorithmDijkstra’s Algorithm

Page 26: Chapter 13-14

26

Algorithm IntuitionAlgorithm Intuition

Start with self as source nodeMove outwardAt each step

Find node u such that itHas not been consideredIs “closest” to source

Compute Distance from u to each neighbor vIf distance shorter, make path from u go through v

Page 27: Chapter 13-14

27

Result of Dijkstra’s Algorithm

Result of Dijkstra’s Algorithm

Example routes from node 6To 3, next hop = 3, cost = 2To 2, next hop = 3, cost = 5To 7, next hop = 7, cost = 5To 4, next hop = 7, cost = 8To 5, next hop = 3, cost = 11To 1, next hop = 3, cost = 20

Page 28: Chapter 13-14

28

Early WAN TechnologiesEarly WAN Technologies

ARPANETHistorically important in packet switchingFast when invented, slow by current standards

X.25Early commercial serviceStill UsedMore popular in Europe

Page 29: Chapter 13-14

29

Recent WAN TechnologiesRecent WAN Technologies

SMDSOffered by phone companiesNot as popular as Frame Relay

Frame RelayWidely used commercial serviceOffered by phone companies

ATM

Page 30: Chapter 13-14

30

Asynchronous Transfer Mode ( ATM )

Asynchronous Transfer Mode ( ATM )

Designed by phone companiesSingle technology meant to handle

VoiceVideoData

Intended as LAN or WANGoal: replacement for Internet

Page 31: Chapter 13-14

31

ATM CharacteristicsATM Characteristics

End-to-end (application to application)Connection-oriented interface:

Establish “connection”Send dataClose connection

Performance guarantees (statistical)Uses cell switching

Page 32: Chapter 13-14

32

ATM CellATM Cell

Fixed size packet (for highest speed electronics)

Size chosen as compromise between voice (small) and data (large)

5 octet header48 octet payload

Note: size not optimal for any application

Page 33: Chapter 13-14

33

ATM Cell HeaderATM Cell Header

Page 34: Chapter 13-14

34

ATM SwitchATM Switch

Building block of ATM networkConnections to

ComputersOther ATM switchesAccepts and forwards cells

Page 35: Chapter 13-14

35

Cell ForwardingCell Forwarding

Performed directly by hardwareIncoming cell sent to an outgoing interfaceUses label in cellMotivation: highest speed

Page 36: Chapter 13-14

36

Label SwitchingLabel Switching

ATM connection identified with 24-bit binary value

Known as Virtual Path Identifier / Virtual Channel Identifier (VPI / VCI)

Generically called labelVPI / VCI rewritten at each switch

Page 37: Chapter 13-14

37

Example of VPI/VCI Rewriting

Example of VPI/VCI Rewriting

Page 38: Chapter 13-14

38

ATM Quality of ServiceATM Quality of Service

Fine-grained (per connection)Specified when connection establishedEndpoint specifies

Type of data transferThroughput desiredMaximum packet burst sizeMaximum delay tolerated

Page 39: Chapter 13-14

39

Type of Data TransferType of Data Transfer

Constant Bit Rate (CBR)Example: audio

Variable Bit Rate (VBR)Example: video with adaptive encoding

Available Bit Rate (ABR)Example: data

Unspecified Bit Rate (UBR)Each type has detailed parameters (e.g., mean, max,

burst duration)

Page 40: Chapter 13-14

40

Sending Data Over ATMSending Data Over ATM

Uses ATM Adaptation Layer (AAL5)Accepts and delivers large, variable-size

packetsAAL5 divides into cells for transmission

Called segmentation and reassembly

Page 41: Chapter 13-14

41

Assessment of ATMAssessment of ATM

Failed to deliver on promiseSwitches too expensive for LANQoS impossible to implement

Page 42: Chapter 13-14

42

SummarySummary

Wide Area Networks (WANs)Span long distancesConnect many computersBuilt from packet switchesUse store-and-forward

WAN addressingTwo-part addressSwitch/computer

Page 43: Chapter 13-14

43

Summary (continued)Summary (continued)

RoutingEach switch contains routing tableTable gives next-hop for destination

Routing tables createdManuallyAutomatically

Two basic routing algorithmsDistance vectorLink state

Page 44: Chapter 13-14

44

Summary (continued)Summary (continued)

Example WAN technologiesARPANETX.25SMDSFrame RelayATM