1. Trang chủ
  2. » Giáo Dục - Đào Tạo

Distributed System - Chapter 2 potx

46 284 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 46
Dung lượng 365,79 KB

Nội dung

Communication Chapter 2 Layered Protocols (1) Layers, interfaces, and protocols in the OSI model. 2-1 Layered Protocols (2) A typical message as it appears on the network. 2-2 Data Link Layer Discussion between a receiver and a sender in the data link layer. 2-3 Client-Server TCP a) Normal operation of TCP. b) Transactional TCP. 2-4 Middleware Protocols An adapted reference model for networked communication. 2-5 Conventional Procedure Call a) Parameter passing in a local procedure call: the stack before the call to read b) The stack while the called procedure is active Client and Server Stubs Principle of RPC between a client and server program. Steps of a Remote Procedure Call 1. Client procedure calls client stub in normal way 2. Client stub builds message, calls local OS 3. Client's OS sends message to remote OS 4. Remote OS gives message to server stub 5. Server stub unpacks parameters, calls server 6. Server does work, returns result to the stub 7. Server stub packs it in message, calls local OS 8. Server's OS sends message to client's OS 9. Client's OS gives message to client stub 10. Stub unpacks result, returns to client Passing Value Parameters (1) Steps involved in doing remote computation through RPC 2-8 [...]... message-queuing system General Architecture of a Message-Queuing System (1) The relationship between queue-level addressing and network-level addressing General Architecture of a Message-Queuing System (2) 2- 2 9 The general organization of a message-queuing system with routers Message Brokers 2- 3 0 The general organization of a message broker in a message-queuing system Example: IBM MQSeries 2- 3 1 General... Asynchronous RPC (2) 2- 1 3 A client and server interacting through two asynchronous RPCs Writing a Client and a Server 2- 1 4 The steps in writing a client and a server in DCE RPC Binding a Client to a Server 2- 1 5 Client-to-server binding in DCE Distributed Objects 2- 1 6 Common organization of a remote object with client-side proxy Binding a Client to an Object Distr_object* obj_ref; obj_ref = …; obj_ref-> do_something();... Parameter Passing 2- 1 8 The situation when passing an object by reference or by value The DCE Distributed- Object Model 2- 1 9 a) b) Distributed dynamic objects in DCE Distributed named objects Persistence and Synchronicity in Communication (1) 2- 2 0 General organization of a communication system in which hosts are connected through a network Persistence and Synchronicity in Communication (2) Persistent communication... Communication (3) 2- 2 2. 1 a) b) Persistent asynchronous communication Persistent synchronous communication Persistence and Synchronicity in Communication (4) 2- 2 2. 2 c) d) Transient asynchronous communication Receipt-based transient synchronous communication Persistence and Synchronicity in Communication (5) e) f) Delivery-based transient synchronous communication at message delivery Response-based transient... message; block if there are none MPI_irecv Check if there is an incoming message, but do not block Some of the most intuitive message-passing primitives of MPI Message-Queuing Model (1) 2- 2 6 Four combinations for loosely-coupled communications using queues Message-Queuing Model (2) Primitive Meaning Put Append a message to a specified queue Get Block until the specified queue is nonempty, and remove the... obj_ref-> do_something(); //Declare a systemwide object reference // Initialize the reference to a distributed object // Implicitly bind and invoke a method (a) Distr_object objPref; Local_object* obj_ptr; obj_ref = …; obj_ptr = bind(obj_ref); obj_ptr -> do_something(); //Declare a systemwide object reference //Declare a pointer to local objects //Initialize the reference to a distributed object //Explicitly...Passing Value Parameters (2) a) b) c) Original message on the Pentium The message after receipt on the SPARC The message after being inverted The little numbers in boxes indicate the address of each byte Parameter Specification and Stub Generation a) A procedure b) The corresponding message Doors The principle of using doors as IPC mechanism Asynchronous RPC (1) 2- 1 2 a) b) The interconnection between... connection Send Send some data over the connection Receive Receive some data over the connection Close Release the connection Socket primitives for TCP/IP Berkeley Sockets (2) Connection-oriented communication pattern using sockets The Message-Passing Interface (MPI) Primitive Meaning MPI_bsend Append outgoing message to a local send buffer MPI_send Send a message and wait until copied to local or remote... message-queuing system with routers Message Brokers 2- 3 0 The general organization of a message broker in a message-queuing system Example: IBM MQSeries 2- 3 1 General organization of IBM's MQSeries message-queuing system Channels Attribute Description Transport type Determines the transport protocol to be used FIFO delivery Indicates that messages are to be delivered in the order they are sent Message length . Communication Chapter 2 Layered Protocols (1) Layers, interfaces, and protocols in the OSI model. 2- 1 Layered Protocols (2) A typical message as it appears on the network. 2- 2 Data Link Layer Discussion. asynchronous RPC 2- 1 2 Asynchronous RPC (2) A client and server interacting through two asynchronous RPCs 2- 1 3 Writing a Client and a Server The steps in writing a client and a server in DCE RPC. 2- 1 4 Binding. RPC. 2- 1 4 Binding a Client to a Server Client-to-server binding in DCE. 2- 1 5 Distributed Objects Common organization of a remote object with client-side proxy. 2- 1 6 Binding a Client to an Object a) (a)

Ngày đăng: 09/08/2014, 11:21

TỪ KHÓA LIÊN QUAN