Documente Academic
Documente Profesional
Documente Cultură
vs.
Stream - oriented
Communication
Content
1
Message - oriented
Communication
vs.
Stream - oriented
Communication
Outline
Why messaging?
2
Message - oriented communication
synchronous communication
the sender is blocked until the message is stored in a local buffer at the
receiving host or is delivered to the receiver
asynchronous communication
the sender continues after it has submitted the message for transmission
3
Message - oriented communication
persistent communication
a message is stored by the communication system as long as it takes to
deliver it – never lost or thrown away
transient communication
a message is stored by the communication system only as long as the
sending and receiving application are executing
4
Message - oriented communication
Forms of communication
Forms of communication
5
Message - oriented communication
Forms of communication
Examples
12
6
Message - oriented transient communication
Berkeley Sockets
13
Primitive Meaning
14
7
Message - oriented transient communication
15
16
8
Message - oriented transient communication
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 buffer
MPI_ssend Send a message and wait until receipt starts
MPI_sendrecv Send a message and wait for reply
MPI_isend Pass reference to outgoing message, and continue
MPI_issend Pass reference to outgoing message, and wait until receipt starts
MPI_recv Receive a message; block if there are none
MPI_irecv Check if there is an incoming message, but do not block
17
18
9
Message - oriented persistent communication
19
Primitive Meaning
Get Block until the specified queue is nonempty, and remove the first message
Poll Check a specified queue for messages, and remove the first. Never block.
Install a handler to be called when a message is put into the specified
Notify
queue.
20
10
Message - oriented persistent communication
21
Routers know about network, queue manager know the nearest router
Only routers need to be updated when queues are added or removed
22
11
Message - oriented persistent communication
Message Brokers
23
Message - oriented
Communication
vs.
Stream - oriented
Communication
Outline
12
Stream - oriented communication
25
26
13
Stream - oriented communication
27
Multiple sinks:
the data stream is multicasted (and filtered) to several receivers
Problem - different requirements with respect to the quality of the stream
28
14
Stream - oriented communication
Quality of Service
29
Setting up a Stream
RSVP
RSVP process RSVP process
Application
data
Admission Admission
Control Control
Packet Packet Packet Packet
Classifier Scheduler Classifier Scheduler
data data
30
15
Stream - oriented communication
Stream Synchronization
Synchronization of streams:
Stream Synchronization
Synchronization by multiplexing
32
16
Message - oriented vs. stream - oriented communication
Summary
33
Extra Slides
Outline
17
Message - oriented persistent communication
36
18
Message - oriented persistent communication
Attribute Description
FIFO delivery Indicates that messages are to be delivered in the order they are sent
37
38
19
Message - oriented persistent communication
Primitive Description
MQopen Open a (possibly remote) queue
MQclose Close a queue
MQput Put a message into an opened queue
MQget Get a message from a (local) queue
39
20