chapter 4 - internetworking

45
Chapter 4 - Internetworking Networks are built with different technology We want to be able to connect these differing networks This chapter is about the problems of interconnecting different networks. Basically layer 3 – the Network layer Routers are the main network device

Upload: veda-delgado

Post on 30-Dec-2015

34 views

Category:

Documents


4 download

DESCRIPTION

Chapter 4 - Internetworking. Networks are built with different technology We want to be able to connect these differing networks This chapter is about the problems of interconnecting different networks. Basically layer 3 – the Network layer Routers are the main network device. Main Issues. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Chapter 4 - Internetworking

Chapter 4 - Internetworking

Networks are built with different technology We want to be able to connect these differing

networks This chapter is about the problems of

interconnecting different networks. Basically layer 3 – the Network layer Routers are the main network device

Page 2: Chapter 4 - Internetworking

Main Issues

IP or Internet protocol Finding efficient, loop-free paths through the

constituent networks Internet problems: address space, large

routing tables, scaleable networks Multicast

Page 3: Chapter 4 - Internetworking

What is an Internetwork?

Look over figures 4.1and 4.2 They are graphically describing the issue of

interconnecting differing networks and a simple way of looking at the overall changing of protocols

IP service model: best effort

Page 4: Chapter 4 - Internetworking

R2

R1

H4

H5

H3H2H1

Network 2 (Ethernet)

Network 1 (Ethernet)

H6

Network 3 (FDDI)

Network 4(point-to-point)

H7 R3 H8

Page 5: Chapter 4 - Internetworking

R1

ETH FDDI

IPIP

ETH

TCP R2

FDDI PPP

IP

R3

PPP ETH

IP

H1

IP

ETH

TCP

H8

Page 6: Chapter 4 - Internetworking

IP Packet Structure

Note in particular: source address destination address TTL (time-to-live) Protocol (higher level-TCP, UDP etc.)

Page 7: Chapter 4 - Internetworking

Version HLen TOS Length

Ident Flags Offset

TTL Protocol Checksum

SourceAddr

DestinationAddr

Options (variable) Pad(variable)

0 4 8 16 19 31

Data

Page 8: Chapter 4 - Internetworking

H1 R1 R2 R3 H8

ETH IP (1400) FDDI IP (1400) PPP IP (512)

PPP IP (376)

PPP IP (512)

ETH IP (512)

ETH IP (376)

ETH IP (512)

Page 9: Chapter 4 - Internetworking

IP Addresses

Examples: www.cnn.com 64.236.16.20

Registered to billionaire Ted Turner, one big site!! www.nvc.cs.vt.edu 208.22.18.79

CS department site, a small to medium site www.somuchdata.com hosted at 216.40.247.57

Registered to me, William May (used to advertise a book I wrote three years ago), a very small site!

Page 10: Chapter 4 - Internetworking

IP Addresses and Classes

Class A, B and C addresses Shown in figure 4.6 For most medium to large organizations like

companies, universities, government offices etc. Class A is way too big and Class C is too small

Class B is where the crunch came

Page 11: Chapter 4 - Internetworking

Network Host

7 24

0(a)

Network Host

14 16

1 0(b)

Network Host

21 8

1 1 0(c)

Page 12: Chapter 4 - Internetworking

Datagram forwarding in IP

Every IP datagram contains the destination IP address

The “network” part of the address uniquely identifies a single physical network

All hosts that share the same network part of the address, are connected to the same physical network and can communicate with each other by sending frames over that network

Page 13: Chapter 4 - Internetworking

So just how does the datagram get forwarded?

Two parts Routers forward the datagram based on the

network part of the address At the end there has to be a (local) table of

address pairs – that is a table that maps IP addresses into physical addresses ARP (Address Resolution Protocol)

Page 14: Chapter 4 - Internetworking

And how does a sender determine where to send the datagram?

A host needs the address of the first router to send a datagram on its way

Called the default router DHCP is one common way of learning which

is your default router

Page 15: Chapter 4 - Internetworking

DHCPrelay

DHCPserver

Other networks

Unicast to server

Broadcast

Host

Page 16: Chapter 4 - Internetworking

Virtual Networks and Tunnels

Figure 4.12 explains it best, another level of encapsulation

Page 17: Chapter 4 - Internetworking

IP header ,Destination = 2.x

IP payload

IP header ,Destination = 10.0.0.1

IP header ,Destination = 2.x

IP payload

IP header ,Destination = 2.x

IP payload

Network 1 R1 Internetwork Network 2R2

10.0.0.1

Page 18: Chapter 4 - Internetworking

Routing

Routing table – generally contains mappings from network numbers to next hops (which are labeled as output ports on the router)

“Routing is the process by which forwarding tables are built.” (page 281)

Page 19: Chapter 4 - Internetworking

Routing Protocols

Routers talking to other routers (very roughly-experts would shoot me for this

analogy!) the router analog of the spanning tree procedure for switches

Page 20: Chapter 4 - Internetworking

Routing Protocols

We will look at several: Static routes (work fine for small internetworks) RIP (most widely used, simple but can be used on

reasonably large internetworks) OSPF (scaleable, good for campus-sized

internetworks) BGP (used by ISPs, very complicated, we will

only discuss in passing)

Page 21: Chapter 4 - Internetworking

RIP

The ICND book has a great presentation of this protocol

I recommend going over that presentation, it is mainly pictures of how the routing table changes

Distance vector – RIP counts “hops”

Page 22: Chapter 4 - Internetworking

4

3

6

21

9

1

1D

A

FE

B

C

Page 23: Chapter 4 - Internetworking

D

G

A

F

E

B

C

Page 24: Chapter 4 - Internetworking

A

C

1

2

3

B

D

4

5

6

Page 25: Chapter 4 - Internetworking

Address of net 2

Distance to net 2

Command Must be zero

Family of net 2 Address of net 2

Family of net 1 Address of net 1

Address of net 1

Distance to net 1

Version

0 8 16 31

Page 26: Chapter 4 - Internetworking

OSPF

Link State Figure 4.17 (next slide) show the basics of

how the routers talk to each other

Page 27: Chapter 4 - Internetworking

X A

C B D

(a)

X A

C B D

(b)

X A

C B D

(c)

X A

C B D

(d)

Page 28: Chapter 4 - Internetworking

D

A

B

C

5 3

211

10

Page 29: Chapter 4 - Internetworking

OSPF Hierarchy

Hierarchy is one of the main tools to make systems more scaleable

OSPF allows more hierarchy to be imposed by partitioning a domain into areas

This means: a router within a domain does not necessarily need to know how to reach every network within that domain – cuts down on the information that has to be stored and processed

Page 30: Chapter 4 - Internetworking

R9 R7R8

R5R6

R4

Area 1Area 0

Area 3

Area 2

R1 R3

R2

Page 31: Chapter 4 - Internetworking

Authentication

Version Type Message length

Checksum Authentication type

SourceAddr

AreaId

0 8 16 31

Page 32: Chapter 4 - Internetworking

LS Age Options Type=1

0 Flags 0 Number of links

Link type Num_TOS Metric

Link state ID

Advertising router

LS sequence number

Link ID

Link data

Optional TOS information

More links

LS checksum Length

Page 33: Chapter 4 - Internetworking

The Internet

1990 form in figure 4.23 Today’s is shown next

Page 34: Chapter 4 - Internetworking

Backbone service provider

Peeringpoint

Peeringpoint

Large corporation

Large corporation

Smallcorporation

“Consumer ” ISP

“Consumer ” ISP

“ Consumer ” ISP

Page 35: Chapter 4 - Internetworking

Exhaustion of IP Addresses

~4,000,000,000 (232 addresses) are not enough!

Class B particularly bad off Subnetting and CIDR (Classless InterDomain

Routing) are a temporary solution

Page 36: Chapter 4 - Internetworking

Network number Host number

Class B address

Subnet mask (255.255.255.0)

Subnetted address

111111111111111111111111 00000000

Network number Host IDSubnet ID

Page 37: Chapter 4 - Internetworking

Subnet mask: 255.255.255.128Subnet number: 128.96.34.0

128.96.34.15128.96.34.1

H1

R1

128.96.34.130 Subnet mask: 255.255.255.128Subnet number: 128.96.34.128

128.96.34.129128.96.34.139

R2H2

128.96.33.1128.96.33.14

Subnet mask: 255.255.255.0Subnet number: 128.96.33.0

H3

Page 38: Chapter 4 - Internetworking

BGP

Additional level of hierarchy: AS or Autonomous Systems

Page 322 explains three major problems with interdomain routing and the Internet. BGP is designed to help with these

A very hard protocol, the book only skims over it

Page 39: Chapter 4 - Internetworking

Border gateway(advertises path to

11000000000001)

Regional network

Corporation X(11000000000001000001)

Corporation Y(11000000000001000000)

Page 40: Chapter 4 - Internetworking

R1

Autonomous system 1R2

R3

Autonomous system 2R4

R5 R6

Page 41: Chapter 4 - Internetworking

Backbone network(AS 1)

Regional provider A(AS 2)

Regional provider B(AS 3)

Customer P(AS 4)

Customer Q(AS 5)

Customer R(AS 6)

Customer S(AS 7)

128.96192.4.153

192.4.32192.4.3

192.12.69

192.4.54192.4.23

Page 42: Chapter 4 - Internetworking

IPv6

Aimed at solving several of the problems that we have seen

The book describes the packet at a high level but doesn’t focus on what IPv6 will do for the Internet of the future

Page 43: Chapter 4 - Internetworking

Multicast

Motivation: there are applications that want to send a packet to more than one destination host

Forcing the source to send a separate packet to each destination host wastes resources big time!

Multicast (a work still in progress) is aimed at making this procedure more efficient by not forcing separate packets on the sender

Page 44: Chapter 4 - Internetworking

AR1 R2

B

R3 R4 R5

CR6 R7

Page 45: Chapter 4 - Internetworking

Source

AR1 R2

B

R3 R4 R5

CR6 R7

Source

AR1

R2

B

R3 R4 R5

CR6 R7

Source

AR1 R2

B

R3 R4 R5

CR6 R7