























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























Interprocess CommunicationParadigms within a Single Machine z
Pipes
z
Shared memory
z
Message Queues
Connection-Oriented CommunicationParadigm for Client-Server Interaction
Network
ProgramLogic forServer Process
Program Logic for Client Process
Connection-less CommunicationParadigm between Two DifferentMachines
u_openudp(p)
u_openudp(p)
u_sendtohost()
close
u_recvfrom()
UICI UDP Server
UICI UDP Client
create UDP endpointbound to port p
Create unbound UDPendpoint
Wait for request
send request
process requestresume waiting
close endpoint
request message
u_sendto()
send response
reply message
u_recvfrom()
wait for response
UDP Protocol
Network
rogram ogic or Server rocess
ProgramLogicFor ClientProcess
Connection-less CommunicationParadigms between Two DifferentMachines z
No connection setup
z
Datagram messages are being exchanged
z
Since no connection exists, each message musthave in its send/recv message the source anddestination information.
z
Underlying UDP protocol provides only a forwardingmechanism, nothing else
z
If the application processes want more reliability, butwant to run on top of the UDP protocol, they mustprovide this capability themselves via ‘request-reply’protocol or ‘request-reply-acknowledgement’protocols
z
z
z
z
Application of RPC
Thin Client Machine
Server Machine TCP
Network
Disk
Display
RPC ClientProcess
RPC ServerProcess
User I/OProcess
Client Stub
Server Stub
Performance Issues when ExchangingMessages between Clients and Servers
Synchronous or asynchronous
Loss, Timeouts, Acknowledgments,Sequence numbers
Congestion
z
z
z
z
z
z
z
z