35
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing Asst. Prof. Chaiporn Jaikaeo, Ph.D. [email protected] http://www.cpe.ku.ac.th/~cpj Computer Engineering Department Kasetsart University, Bangkok, Thailand Adapted from the notes by Lami Kaya and lecture slides from Anan Phonphoem

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

Embed Size (px)

Citation preview

Page 1: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.© The McGraw-Hill Companies, Inc.

Internetworking, WANs, and Dynamic Routing

Asst. Prof. Chaiporn Jaikaeo, [email protected]

http://www.cpe.ku.ac.th/~cpjComputer Engineering Department

Kasetsart University, Bangkok, Thailand

Adapted from the notes by Lami Kaya and lecture slides from Anan Phonphoem

Page 2: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

2

Internetworks

Two or more networks connected become an internetwork, or internet

KU Network

CU Network

TU Network

Internetwork = Network of networks

Page 3: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

3

Internetworks Internetworking two LANs with a MAN or a

WAN

Obvious example The Internet

Bangkhen Kampangsaen

Page 4: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

4

The Internet (Conceptual View)

ISP: Internet Service ProviderNAP: Network access point (switching station)

Page 5: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

5

Wide Area Network (WAN)

Enterprise Network: WAN owned by a company

Page 6: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

6

Traditional WAN Architecture

Page 7: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

7

Traditional WAN Architecture

LAN WAN

Page 8: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

8

WAN Connection DCE generates clock for DTE

WANWANDTE DCE DCE DTE

DCE – Data Circuit-terminating EquipmentDTE – Data Terminal Equipment

generates clock

Page 9: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

9

WAN Devices

V.35 serial cable

CSU/DSU or Modem(DCE)

Router (DTE)

To WAN

Page 10: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

10

Example of WAN Topology These packet switches form a packet

switching network

Page 11: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

11

Store and Forward Paradigm

A packet switch stores packets in memory The forward operation occurs once a packet has

arrived and is waiting in memory. The processor examines the packet determines its destination and sends the packet over the I / O interface that leads to

the destination

Page 12: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

12

Addressing in a WAN

WANs addresses follow a key concept that is used in the Internet: hierarchical addressing Hierarchical addressing divides each

address into two parts:(site, computer at the site)

In practice, instead of a identifying a site, each packet switch is assigned a unique number

first part of an address identifies a packet switch

second part identifies a specific computer

Page 13: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

13

Addressing in WAN

Page 14: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

14

Next-Hop Forwarding

GermanyNew York

Alaska

Bangkok

Next hop keep changing

Bangkok AlaskaBangkok Germany New York Alaska

Page 15: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

15

Source Independence Next hop depends on

destination of the packet Not the source !

Source Independence

Bangkok Germany New York Alaska

Forwarding packet uses the destination address in the packet

Page 16: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

16

Next-Hop Forwarding

Source E [2,1] Destination C [3,2]

Forwarding Table in Switch 2

Page 17: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

17

Routing Tables The next-hop table is called

Routing Table Process of forwarding packet

Routing Large network

Routing table can be very large

Page 18: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

18

Dynamic Routing in a WAN

We use the term routing software to describe software that automatically reconfigures forwarding tables

Route computation in a WAN is to think of a graph that models the network Each node corresponds to a packet switch

(individual computers are not part of the graph)

An edge (link) denotes a direct connection between a pair of packet switches

Page 19: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

19

WAN Routing

WAN A Graph representation

node

Edge

Page 20: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

20

Routing Table

Edge = (u,v)

node

Page 21: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

21

Default Routes

> 1 destination with same next-hop

• One default• Lowest priority

Page 22: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

22

Routing Table Construction Static Routing

Manual configure Simple and low overhead Inflexible

Dynamic Routing Automatic changing Change according to network problems Mostly use

Page 23: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

23

Distributed Route Computation

In practice, networks need to perform distributed route computation All packet switches must participate in

distributed route computation No central entity to do computation

There are two general forms: Link-State Routing (LSR) Distance-Vector Routing (DVR)

Page 24: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

24

Link-State Routing (LSR) Also known as Shortest Path First (SPF) routing Dijkstra algorithm used it to characterize the way it

works To use LSR, packet switches periodically send

messages across the network that carry the status of a link

Every switch collects incoming status messages

and uses them to build a graph of the network

Page 25: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

25

Dijkstra's Algorithm Uses a greedy

approach to select the next node into the shortest path tree

Assumes non-negative weight edges

Page 26: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

26

Dijkstra’s Algorithm Animation

http://www-b2.is.tokushima-u.ac.jp/~ikeda/suuri/dijkstra/Dijkstra.shtml

Page 27: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

27

Distance Vector Routing (DVR)

Uses Distributed Bellman-Ford Algorithm Like LSR, DVR arranges for packet switches to

exchange messages periodically In DVR, a switch sends a complete list of

destinations and the current cost of reaching each

When it sends a DVR message a switch is sending a series of individual

statements, of the form: “I can reach destination X, and its current

distance from me is Y”

Page 28: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

28

DVR Concept

Page 29: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

29

Hop Count

1 hop

2 hops

Page 30: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

30

Routing table distribution

Page 31: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

31

Updating routing table For router A

Page 32: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

32

Final routing tables

Page 33: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

33

Updating the routing table Example

Page 34: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

34

Routing Problems In theory, either LSR or DVR will compute shortest

paths Furthermore, each approach will eventually converge

meaning that the forwarding tables in all packet switches agree

However, problems do occur For example, if LSR messages are lost, two packet switches

can disagree about the shortest path DVR problems can be more severe

because a link failure can cause two or more packet switches to create a routing loop

in which each packet switch thinks the next packet switch in the set is the shortest path to a particular destination

As a result, a packet can circulate among the switches indefinitely

Page 35: © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing

35

WAN Technologies

ARPANET X.25 Frame Relay Switched Multi-Megabit Data Service

(SMDS) Asynchronous Transfer Mode (ATM) Multi-Protocol Label Switching (MPLS) Integrated Services Digital Network

(ISDN)