Layer: Networking
Layer: Networking
Model
Basic Networking
Drawbacks .
E
Focus
message passing only
·
on -
.
·
Often unneeded or unwanted
Functionality
-
violates
-
access
transparency
·
Low-Level
Layers
Cit S 13333)
,
,
.
·
Transport layer : Is crucial for communication in most distributed systems . .
It encompasses standard Internet
protocols :
·
Transmission Control Protocol (TCP) : Offers reliable ,
connection-oriented , steam-oriented .
communication.
·
User
Datagram Protocol CVDP) : Provides unreliable (best-effort) datagram
communication
Middleware
Layer
.
· Middleware developed to offer common services and protocols usable across various applications:
is
E
Diverse communication protocols.
(Un)marshaling of data for integrated systems. What's left are specialized application highly protocols .
HTTP ITP
Distinguish
.
.
TCP/IP
T
Asynchronous Communication: messages are sent and received
Transient Persistent
·
Vs
. .
in the chain. This mode prioritizes real-time delivery. ensuring that communication occurs in lockstep This ensures that both parties
are synchronked In their communication but it
.
messages
.
server communication
.
a a ,
.
, .
>
-
Failures must be addressed immediately as clients wait for responses.
> The model not suit certain applications like email systems.
may
-
or news
Messaging.
Message - oriented middleware .
IEEERID .
FX .
#
Message-oriented middleware (MOM) enables high-level, persistent, asynchronous communication between processes:
Processes send messages to each other, which are queued. AX3h3] ,
Observation :
⑨
Application developers typically work with a simple procedure model where well-engineered procedures operate independently (black box).
There's inherent limitation to
executing procedures separate machines .
·
no on
process .
RPC :
ParameterPassing
&
Parameter passing in RPC involves more than simply wrapping parameters into a message.
>
-
Client and server machines
may have diffrent data representations (think of byte ordering).
>
-
Wrapping a
parameter means
transforming a value into a
sequence of bytes.
>
- Client and Server have to
agree on same encoding E. :
&
How are basic data values represented (integers, floats, characters).
↓
How are complex data values represented (arrays, unions).
Conclusion . i
Client and server must properly interpret messages by transforming them into machine-dependent representations..
Assumptions : ·
Copy in/copy out semantics: During procedure execution, no assumptions can be made about parameter values.
&
All data to be operated on is passed by parameters, excluding passing references to global data.
Conclusion :
Full access
transparency cannot be achieved
.
D) CE'RPC stands for Distributed Computing Environment Remote Procedure Call developed by Open Software Foundation COSF)
make it easier .
1 Developer could focus on .
If insted of IEEE
·
Unidgen :
generates universally unique identifiers (UUIDs) for identifying interfaces
·
Interface Definition Language (IDL) :
defines the interface between the client and server . IDL
Issues ,
i Client must locate (1) server machine and (2) locate the server.
Es
Transient Messaging :
Sockets
. >
-
Operation .
Description .
Socket Create a new communication end point
bind Attach a local address to a socket
listen .
Tell OS what the maximum number of pending connections request should be
accept Block caller until a connection request arrives
.
connect Actively attempt to establish a connection
send .
close
. Release the connection .
to work with
Making Sockets Easier
Observation .
a
Sockets, while versatile, are prone to programming errors due to their low-level nature. Yet, their usage patterns
remain consistent, particularly in client-server setups.
Alternative
: Zero MQ
·
offers a higher-level approach by pairing sockets
.
Each pair consists of socket for sending Lat and another for receiving them (at process Q)
messages. p)
·
one process
Publish-subscribe.
·
Pipeline. Sockets .
deemed insufficient ·
BARE
&
They were at wrong level of abstraction by supporting only simple send
and receive operations.
&
They were not considered suitable for proprietary protocols developed
for high-speed interconnection networks.
So z E ..
Message -
#
A standard for message passing that is hardware and platform independent.
&
Is deigned for parallel applications and tailored to transient communication.
&
Makes direct use of the underlying network.
Message -
Orented Middleware.
:
Essence : ·
Operations .
opv
.
Description .
Queue managers :
Queues are
managed by queue managers .
· An application can put messages only into a
local queue
.
Getting a
message is
possible by extracting it from a local quee only ->
Queue managers need : to route
messages.
Routing :
Message Broker :
Broker .
Observation :
&
Handles application heterogeneity in a message queuing (MQ) system.
Message queuing systems assume a common messaging protocol: all
6
Transforms incoming messages to the target format.
&
Very often acts as an application gateway.
applications agree on message format (i.e., structure and data *
May provide subject-based routing capabilities (i.e., public-subscribe capabilities).
representation).