Professional Documents
Culture Documents
Chapter 4 Communication Part II: Distributed System
Chapter 4 Communication Part II: Distributed System
Objectives
• Socket communication.
• Message Passing properties.
• Data Streaming
• Multicasting - Gossiping
Berkeley Sockets
Socket is a
communication end
point to which an
application can
write data that are
sent out over the
network.
Standardized
Interface of
transport layer to
allow programmers
to make use of the
entire suite.
Sync.
Comm.
Message-Queuing Model
Queue manager
– interact
directly with the
application that
is sending/
receiving a
message.
Local node
should maintain
a possibly
distributed db of
queue names to
network location.
Figure 4-19. The relationship between queue-level addressing and
network-level addressing.
Integration in MPI
• Integration of new and existing application into a single, coherent Distributed
Information System.
• In Mesg-queuing Sys. – Conversion is handled by special nodes in queuing network.
Message Brokers
• A query expanding several db may need to be split into several sub queries that are
forwarded to individual databases.
Channels
Data Stream
• A sequence of data unit being transferred e.g. Playing an audio file requires setting
up a continuous data stream between the file and the audio device.
Data Stream
Figure 4-26. A general architecture for streaming stored multimedia data over a network .
• The maximum delay until a session has been set up (e.g. when application can start sending
data)
• The maximum end-to-end delay (how long will it take until a data unit reach the
destination).
• The maximum delay variance, or jitter(n voice over IP (VoIP), jitter is the variation in the
time between packets arriving, caused by network congestion, timing drift, or route
changes. A jitter buffer can be used to handle jitter. ).
• The maximum round-trip delay.
A single packet
contains multiple
audio and video
frames as a
consequences
when a packet is lost,
the receiver
may actually
perceive a large
gap when playing the
frames
Figure above shows when a burst error of size 4 corrupts the frame, only one bit from each
codeword is corrupted. The corrupted bit in each codeword can then easily be corrected at
the receiver.
E.g.
Slide show on the web
enhanced with audio
Synchronization
between a discrete data
stream and a continuous
data stream
Ensuring - the specific
timing and
synchronization
constraints.
Multicast Communication
• Sending data to multiple receivers.
• A major issue – Setting up the communication paths for information dissemination.
References
These slides are taken from Tanenbaum & Van Steen, Distributed Systems:
Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved.
0-13-239227-5
Sub Point #1
Socket Programming
Sub Point #3
Data Streaming
End of Lecture