1 distribuerede systemer og sikkerhed – 21. februar 2002 from coulouris, dollimore and kindberg...

18
1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley 2001 tation based on slides for the book: modified by Jens B Jorgensen, University of Aarhus

Upload: veronica-black

Post on 19-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

1

Distribuerede systemer og sikkerhed – 21. februar 2002

From Coulouris, Dollimore and Kindberg

Distributed Systems: Concepts and Design

Edition 3, © Addison-Wesley 2001

Presentation based on slides for the book:

Slides modified by Jens B Jorgensen, University of Aarhus

Page 2: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

2

Chapter 3: Networking and Internetworking

From Coulouris, Dollimore and Kindberg

Distributed Systems: Concepts and Design

Edition 3, © Addison-Wesley 2001

Page 3: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

3

Networks – basics

A network consists of: Transmission media (wire, cable, …). Hardware devices (routers, switches, …). Software components (protocol stacks, drivers, …).

Terminology: Host: Computers and other devices that use a network. Node: Any computer or switching device attached to a network. Subnet: Set of interconnected nodes.

Design issues: Performance, scalability, reliability, security, mobility, quality of service, multicasting.

Page 4: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

4

Networks – types

Range Bandwidth (Mbps) Latency (ms)

LAN 1-2 kms 10-1000 1-10WAN worldwide 0.010-600 100-500MAN 2-50 kms 1-150 10Wireless LAN 0.15-1.5 km 2-11 5-20Wireless WAN worldwide 0.010-2 100-500Internet worldwide 0.010-2 100-500

Page 5: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

5

Networks – packet transmission

Message: Sequence of data items of arbitrary length.

Messages subdivided into packets.Switching schemes:

Broadcast. Circuit switching. Packet switching. ATM / Frame relay.

Page 6: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

6

Protocols – basics

Protocol: Set of rules and formats to be used for communication between processes in order to perform a given task.

Should include specification of: Sequence of messages that must be exchanged. Format of the data in the messages.

Implemented by a pair of software modules in the sending and receiving computers.

Page 7: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

7

Protocols – layers

Layer n

Layer 2

Layer 1

Message sent Message received

Communicationmedium

Sender Recipient

Page 8: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

8

Protocols – encapsulation and headers

Presentation header

Application-layer message

Session header

Transport header

Network header

Page 9: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

9

Protocols – the ISO Open Systems Interconnection (OSI) model

Application

Presentation

Session

Transport

Network

Data link

Physical

Message sent Message received

Sender Recipient

Layers

Communicationmedium

Page 10: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

10

Protocols – internetwork layers

Underlying network

Application

Network interface

Transport

Internetwork

Internetwork packets

Network-specific packets

MessageLayers

Internetworkprotocols

Underlyingnetworkprotocols

Page 11: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

11

Protocols – network layer routing (WAN)

Hosts Linksor local networks

A

D E

B

C

1

2

5

43

6

Routers

Routing algorithms, adaptive routing (congestion control)

Packet delivery: Datagram or virtual circuit?

Page 12: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

12

Internet protocols – Internetworking

Internetwork: Network which integrates a number of different subnets.

Needs: Unified internetwork addressing scheme (Internet: IP

addresses) Protocol defining format of internetwork packets and

specifying rules for handling (Internet: IP protocol). Interconnecting components that route packets to

their destinations (Internet: Internet routers).

Page 13: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

13

Internet protocols – the TCP/IP protocol suite

Messages (UDP) or Streams (TCP)

Application

Transport

Internet

UDP or TCP packets

IP datagrams

Network-specific frames

MessageLayers

Underlying network

Network interface

Page 14: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

14

Internet protocols – encapsulation and headers

Application message

TCP header

IP header

Ethernet header

Ethernet frame

port

TCP

IP

Page 15: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

15

Internet protocols – IP

Internet Protocol.Transmits datagrams from one host to another,

if necessary via intermediate routers.Unreliable, best-effort delivery semantics.Address resolution: Conversion of Internet

addresses to network addresses (for a given network).

Routing: Each router in the Internet implements IP-layer software to provide a routing algorithm.

Page 16: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

16

Internet protocols – IP packet layout and addressing

7 24

Class A: 0 Network ID Host ID

14 16

Class B: 1 0 Network ID Host ID

21 8

Class C: 1 1 0 Network ID Host ID

28

Class D (multicast): 1 1 1 0 Multicast address

27

Class E (reserved): 1 1 1 1 unused0

dataIP address of destinationIP address of source

header

up to 64 kilobytes

Page 17: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

17

Internet protocols – TCP and UDP

UDP features: Transport-level replica of IP. No guarantee of delivery. No setup cost, no acknowledgement messages. Message size up to 64 kbytes.

TCP features: Reliable delivery. Arbitrarily long sequences of bytes. Connection-oriented. Mechanisms: Sequencing, flow control,

retransmission, buffering, checksum.

Page 18: 1 Distribuerede systemer og sikkerhed – 21. februar 2002 From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley

18

Summary

Networks.Protocols. Internet protocols (TCP/IP).