Lec09 - Last Class: RPCs and RMI Case Study: Sun RPC...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Science Lecture 9, page CS677: Distributed OS Last Class: RPCs and RMI Case Study: Sun RPC Lightweight RPCs Remote Method Invocation (RMI) Design issues 1 Computer Science Lecture 9, page CS677: Distributed OS Today: Communication Issues Message-oriented communication Persistence and synchronicity Stream-oriented communication 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Science Lecture 9, page CS677: Distributed OS Persistence and Synchronicity in Communication General organization of a communication system in which hosts are connected through a network 2-20 3 Computer Science Lecture 9, page CS677: Distributed OS Persistence Persistent communication Messages are stored until (next) receiver is ready Examples: email, pony express 4
Background image of page 2
Computer Science Lecture 9, page CS677: Distributed OS Transient Communication Transient communication Message is stored only so long as sending/receiving application are executing Discard message if it can’t be delivered to next server/receiver Example: transport-level communication services offer transient communication Example: Typical network router – discard message if it can’t be delivered next router or destination 5 Computer Science Lecture 9, page CS677: Distributed OS Synchronicity Asynchronous communication Sender continues immediately after it has submitted the message Need a local buffer at the sending host Synchronous communication Sender blocks until message is stored in a local buffer at the receiving host or actually delivered to sending Variant: block until receiver processes the message Six combinations of persistence and synchronicity 6
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Science Lecture 9, page CS677: Distributed OS Persistence and Synchronicity Combinations a) Persistent asynchronous communication (e.g., email) b) Persistent synchronous communication 2-22.1 7 Computer Science Lecture 9, page CS677: Distributed OS Persistence and Synchronicity Combinations c) Transient asynchronous communication (e.g., UDP) d) Receipt-based transient synchronous communication 2-22.2 8
Background image of page 4
Computer Science Lecture 9, page CS677: Distributed OS Persistence and Synchronicity Combinations e) Delivery-based transient synchronous communication at message delivery (e.g., asynchronous RPC) f) Response-based transient synchronous communication (RPC) 9 Computer Science Lecture 9, page CS677: Distributed OS Message-oriented Transient Communication Many distributed systems built on top of simple message-oriented model Example: Berkeley sockets 10
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Science Lecture 9, page CS677: Distributed OS Berkeley Socket Primitives Primitive Meaning Socket Create a new communication endpoint Bind Attach a local address to a socket Listen Announce willingness to accept connections Accept Block caller until a connection request arrives Connect Actively attempt to establish a connection Send Send some data over the connection Receive Receive some data over the connection Close Release the connection
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/22/2011 for the course COMPSCI 677 taught by Professor Shenoy during the Spring '08 term at UMass (Amherst).

Page1 / 19

Lec09 - Last Class: RPCs and RMI Case Study: Sun RPC...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online