17
1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

Embed Size (px)

Citation preview

Page 1: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

1

Multiple Processors, A Network, An OS, and Middleware

Chapter 8

8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

Page 2: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 2

Multicomputers

• Definition:Tightly-coupled CPUs that do not share memory

• Also known as – cluster computers

– clusters of workstations (COWs)

Page 3: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 3

Multicomputer Hardware (1)

• Interconnection topologies(a) single switch(b) ring(c) grid

(d) double torus(e) cube(f) hypercube

Page 4: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 4

Remote Procedure Call (1)

• Steps in making a remote procedure call– the stubs are shaded gray

Page 5: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 5

Remote Procedure Call (2)

Implementation Issues• Cannot pass pointers

– call by reference becomes copy-restore (but might fail)

• Weakly typed languages– client stub cannot determine size

• Not always possible to determine parameter types• Cannot use global variables

– may get moved to remote machine

Page 6: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 6

Distributed Systems (1)

Comparison of three kinds of multiple CPU systems

Page 7: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 7

Distributed Systems (2)

Achieving uniformity with middleware

Page 8: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 8

Network Hardware (1)

• Ethernet(a) classic Ethernet(b) switched Ethernet

Computer

(a) (b)

Page 9: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 9

Network Hardware (2)

The Internet

Page 10: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 10

Network Services and Protocols (1)

Network Services

Page 11: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 11

Network Services and Protocols (2)

• Internet Protocol

• Transmission Control Protocol

• Interaction of protocols

Page 12: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 12

Document-Based Middleware (1)

• The Web– a big directed graph of documents

Page 13: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 13

Document-Based Middleware (2)How the browser gets a page

1. Asks DNS for IP address

2. DNS replies with IP address

3. Browser makes connection

4. Sends request for specified page

5. Server sends file

6. TCP connection released

7. Browser displays text

8. Browser fetches, displays images

Page 14: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 14

File System-Based Middleware (1)

• Transfer Models(a) upload/download model

(b) remote access model

(a)(b)

Page 15: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 15

File System-Based Middleware (2)

Naming Transparency

(b) Clients have same view of file system

(c) Alternatively, clients with different view

Location Transparencyvs.Location Independence?

Page 16: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 16

File System-Based Middleware (3)

• Semantics of File sharing– (a) single processor gives sequential consistency– (b) distributed system may return obsolete value

Page 17: 1 Multiple Processors, A Network, An OS, and Middleware Chapter 8 8.1 Multiprocessors 8.2 Multicomputers 8.3 Distributed systems

CS 1550, cs.pitt.edu (originaly modified from MOS2 slides by A. Tanenbaum) 17

File System-Based Middleware (4)

• AFS – Andrew File System– workstations grouped into cells– note position of venus and vice

Client's view