SlideShare una empresa de Scribd logo
1 de 26
 RPC allows programs to call procedures located on
other machines.
 When a process on machine A calls' a procedure on
machine B, the calling process on A is suspended, and
execution of the called procedure takes place on B.
Information can be transported from the caller to the
callee in the parameters and can come back in the
procedure result.
 No message passing at all is visible to the programmer.
This method is known as Remote Procedure Call, or
often just RPC.
 It can be said as the special case of message-passing
model.
 It has become widely accepted because of the following
features:
◦ Simple call syntax and similarity to local procedure calls.
◦ Its ease of use, efficiency and generality.
◦ It can be used as an IPC mechanism between
 processes on different machines and
 also between different processes on the same machine.
 It is similar to commonly used procedure call model.
It works in the following manner:
1. For making a procedure call, the caller places arguments to
the procedure in some well specified location.
2. Control is then transferred to the sequence of instructions
that constitutes the body of the procedure.
3. The procedure body is executed in a newly created
execution environment that includes copies of the arguments
given in the calling instruction.
4. After the procedure execution is over, control returns to the
calling point, returning a result.
 The RPC enables a call to be made to a procedure that does
not reside in the address space of the calling process.
 Since the caller and the callee processes have disjoint address
space, the remote procedure has no access to data and
variables of the callers environment.
 RPC facility uses a message-passing scheme for information
exchange between the caller and the callee processes.
 On arrival of request message, the server process
◦ extracts the procedure’s parameters,
◦ computes the result,
◦ sends a reply message, and
◦ then awaits the next call message.
 Only one of the two processes is active at any given
time.
 It is not always necessary that the caller gets blocked.
 There can be RPC implementations depending on the
parallelism of the caller and the callee’s environment.
 The RPC could be asynchronous, so that the client
may do useful work while waiting for the reply from
the server.
 Server could create a thread to process an incoming
request so that server is free to receive other requests.
 Difference between remote procedure calls and local
procedure calls:
1. Unlike local procedure calls, with remote procedure calls,
 Disjoint Address Space
 Absence of shared memory.
 Meaningless making call by reference, using addresses in
arguments and pointers.
2. RPC’s are more vulnerable to failure because of:
 Possibility of processor crashes or
 communication problems of a network.
3. RPC’s are much more time consuming than LPC’s due to
the involvement of communication network.
 Implementation of RPC involves the five elements of
program:
1. Client
2. Client Stub
3. RPC Runtime
4. Server stub
5. Server
 The client, the client stub, and one instance of RPCRuntime
execute on the client machine.
 The server, the server stub, and one instance of RPCRuntime
execute on the server machine.
 As far as the client is concerned, remote services are
accessed by the user by making ordinary LPC
 Stubs
◦ Provide a normal / local procedure call abstraction by
concealing the underlying RPC mechanism.
◦ A separate stub procedure is associated with both the client and
server processes.
◦ To hide the underlying communication network, RPC
communication package known as RPC Runtime is used on
both the sides.
 It is responsible for the following two tasks:
◦ On receipt of a call request from the client,
 it packs a specifications of the target procedure and the arguments
into a message and
 asks the local RPC Runtime to send it to the server stub.
◦ On receipt of the result of procedure execution, it unpacks the
result and passes it to the client.
 It handles transmission of messages across the network
between Client and the server machine.
 It is responsible for
◦ Retransmission,
◦ Acknowledgement,
◦ Routing and
◦ Encryption.
 It is responsible for the following two tasks:
◦ On receipt of a call request message from the local
RPCRuntime, it unpacks it and makes a perfectly normal call
to invoke the appropriate procedure in the server.
◦ On receipt of the result of procedure execution from the server,
it unpacks the result into a message and then asks the local
RPCRuntime to send it to the client stub.
 The arguments and results in RPC are language-
level data structures, which are transferred in the
form of message data.
 Transfer of data between two computers requires
encoding and decoding of the message data.
 Encoding and decoding of messages in RPC is
known as marshaling & Unmarshaling.
To summarize, a remote procedure call occurs in
the following steps:
1. The client procedure calls the client stub in the
normal way.
2. The client stub builds a message and calls the
local operating system.
3. The client's as sends the message to the remote
as.
4. The remote as gives the message to the server
stub.
5. The server stub unpacks the parameters and calls
the server.
6. The server does the work and returns the
result to the stub.
7. The server stub packs it in a message and
calls its local as.
8. The server's as sends the message to the
client's as.
9. The client's as gives the message to the
client stub.
10. The stub unpacks the result and returns to
the client.
 In the call-by-value method, all parameters are
copied into a message that is transmitted from the
client to the server through the network.
 It is time consuming for passing large data types
such as trees, arrays, etc.
 Most RPC mechanisms does not use the call-by-
reference semantics for parameter passing when
client and the server exist in different address
space.
 Distributed systems having distributed shared-
memory mechanisms can allow passing of
parameters by reference.
 Callback RPC
 Broadcast RPC
 Batch-mode RPC
 It facilitates a peer-to-Peer paradigm among
participating processes.
 It allows a process to be both a client and a
server.
 Remotely processed interactive Application
 Issues
◦ Providing server with clients handle
◦ Making the client process wait for the callback RPC
◦ Handling callback deadlocks
Client Server
Process callback
request and
send reply Reply (result of callback)
Call (parameter list)
Start Procedure execution
Callback (parameter list)
Reply (result of call)
Stop Procedure execution
temporarily
Procedure execution ends
resume Procedure
execution
 A client’s request is broadcast on the network and
is processed by all servers that have the
procedure for processing that request.
 Methods for broadcasting a client’s request:
1. Use of broadcast primitive to indicate that the client’s
request message has to be broadcasted.
2. Declare broadcast ports.
 Back-off algorithm can be used to increase the
time between retransmissions.
◦ It helps in reducing the load on the physical network and
computers involved.
 Batch-mode RPC is used to queue separate RPC
requests in a transmission buffer on the client side
and then send them over the network in one batch
to the server.
◦ It reduces the overhead involved in sending requests and
waiting for a response for each request.
◦ It is efficient for applications requiring lower call rates and
client doesn’t need a reply.
◦ It requires reliable transmission protocol.
RPC Allows Programs to Call Procedures on Other Machines
RPC Allows Programs to Call Procedures on Other Machines

Más contenido relacionado

La actualidad más candente

8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating SystemsDr Sandeep Kumar Poonia
 
Naming in Distributed Systems
Naming in Distributed SystemsNaming in Distributed Systems
Naming in Distributed SystemsNandakumar P
 
Distributed file system
Distributed file systemDistributed file system
Distributed file systemAnamika Singh
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system modelHarshad Umredkar
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)Respa Peter
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed SystemsDr Sandeep Kumar Poonia
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram ProtocolPeter R. Egli
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed systemSunita Sahu
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software conceptsPrajakta Rane
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemorySHIKHA GAUTAM
 
Mobile transportlayer
Mobile transportlayerMobile transportlayer
Mobile transportlayerRahul Hada
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)k33a
 

La actualidad más candente (20)

8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems
 
Naming in Distributed Systems
Naming in Distributed SystemsNaming in Distributed Systems
Naming in Distributed Systems
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
Resource management
Resource managementResource management
Resource management
 
Domain name system
Domain name systemDomain name system
Domain name system
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed Systems
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 
Network layer tanenbaum
Network layer tanenbaumNetwork layer tanenbaum
Network layer tanenbaum
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Graph coloring using backtracking
Graph coloring using backtrackingGraph coloring using backtracking
Graph coloring using backtracking
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared Memory
 
Mobile transportlayer
Mobile transportlayerMobile transportlayer
Mobile transportlayer
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 

Destacado

Remote procedure call on client server computing
Remote procedure call on client server computingRemote procedure call on client server computing
Remote procedure call on client server computingSatya P. Joshi
 
Sun RPC (Remote Procedure Call)
Sun RPC (Remote Procedure Call)Sun RPC (Remote Procedure Call)
Sun RPC (Remote Procedure Call)Peter R. Egli
 
Rpc (Distributed computing)
Rpc (Distributed computing)Rpc (Distributed computing)
Rpc (Distributed computing)Sri Prasanna
 
Introduction to Remote Procedure Call
Introduction to Remote Procedure CallIntroduction to Remote Procedure Call
Introduction to Remote Procedure CallAbdelrahman Al-Ogail
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Ravindra Raju Kolahalam
 
Inter process communication
Inter process communicationInter process communication
Inter process communicationRJ Mehul Gadhiya
 

Destacado (8)

Remote procedure call on client server computing
Remote procedure call on client server computingRemote procedure call on client server computing
Remote procedure call on client server computing
 
Sun RPC (Remote Procedure Call)
Sun RPC (Remote Procedure Call)Sun RPC (Remote Procedure Call)
Sun RPC (Remote Procedure Call)
 
Rpc (Distributed computing)
Rpc (Distributed computing)Rpc (Distributed computing)
Rpc (Distributed computing)
 
Introduction to Remote Procedure Call
Introduction to Remote Procedure CallIntroduction to Remote Procedure Call
Introduction to Remote Procedure Call
 
RPC
RPCRPC
RPC
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 

Similar a RPC Allows Programs to Call Procedures on Other Machines

Remote procedure calls
Remote procedure callsRemote procedure calls
Remote procedure callsimnomus
 
Middleware in Distributed System-RPC,RMI
Middleware in Distributed System-RPC,RMIMiddleware in Distributed System-RPC,RMI
Middleware in Distributed System-RPC,RMIPrajakta Rane
 
Dos(rpc)avishek130650107020
Dos(rpc)avishek130650107020Dos(rpc)avishek130650107020
Dos(rpc)avishek130650107020Avishek Sarkar
 
CHP-4.pptx
CHP-4.pptxCHP-4.pptx
CHP-4.pptxFamiDan
 
Remote invocation
Remote invocationRemote invocation
Remote invocationishapadhy
 
Chapter 2B-Communication.ppt
Chapter 2B-Communication.pptChapter 2B-Communication.ppt
Chapter 2B-Communication.pptsirajmohammed35
 
Cs556 section3
Cs556 section3Cs556 section3
Cs556 section3farshad33
 
Remote Procedure Call
Remote Procedure CallRemote Procedure Call
Remote Procedure CallNadia Nahar
 
Byte Ordering - Unit 2.pptx
Byte Ordering - Unit 2.pptxByte Ordering - Unit 2.pptx
Byte Ordering - Unit 2.pptxRockyBhai46825
 
RPC communication,thread and processes
RPC communication,thread and processesRPC communication,thread and processes
RPC communication,thread and processesshraddha mane
 
Microsoft Exchange Technology Overview
Microsoft Exchange Technology OverviewMicrosoft Exchange Technology Overview
Microsoft Exchange Technology OverviewMike Pruett
 
1 messagepassing-121015032028-phpapp01
1 messagepassing-121015032028-phpapp011 messagepassing-121015032028-phpapp01
1 messagepassing-121015032028-phpapp01Zaigham Abbas
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSKathirvel Ayyaswamy
 

Similar a RPC Allows Programs to Call Procedures on Other Machines (20)

Remote procedure calls
Remote procedure callsRemote procedure calls
Remote procedure calls
 
Remote procedure call
Remote procedure callRemote procedure call
Remote procedure call
 
Middleware in Distributed System-RPC,RMI
Middleware in Distributed System-RPC,RMIMiddleware in Distributed System-RPC,RMI
Middleware in Distributed System-RPC,RMI
 
Remote Procedure Call
Remote Procedure CallRemote Procedure Call
Remote Procedure Call
 
Lecture9
Lecture9Lecture9
Lecture9
 
Dos(rpc)avishek130650107020
Dos(rpc)avishek130650107020Dos(rpc)avishek130650107020
Dos(rpc)avishek130650107020
 
CHP-4.pptx
CHP-4.pptxCHP-4.pptx
CHP-4.pptx
 
Remote invocation
Remote invocationRemote invocation
Remote invocation
 
Chapter 2B-Communication.ppt
Chapter 2B-Communication.pptChapter 2B-Communication.ppt
Chapter 2B-Communication.ppt
 
Cs556 section3
Cs556 section3Cs556 section3
Cs556 section3
 
Cs556 section3
Cs556 section3Cs556 section3
Cs556 section3
 
MSB-Remote procedure call
MSB-Remote procedure callMSB-Remote procedure call
MSB-Remote procedure call
 
Remote Procedure Call
Remote Procedure CallRemote Procedure Call
Remote Procedure Call
 
Rpc
RpcRpc
Rpc
 
Remote Procedure Call
Remote Procedure CallRemote Procedure Call
Remote Procedure Call
 
Byte Ordering - Unit 2.pptx
Byte Ordering - Unit 2.pptxByte Ordering - Unit 2.pptx
Byte Ordering - Unit 2.pptx
 
RPC communication,thread and processes
RPC communication,thread and processesRPC communication,thread and processes
RPC communication,thread and processes
 
Microsoft Exchange Technology Overview
Microsoft Exchange Technology OverviewMicrosoft Exchange Technology Overview
Microsoft Exchange Technology Overview
 
1 messagepassing-121015032028-phpapp01
1 messagepassing-121015032028-phpapp011 messagepassing-121015032028-phpapp01
1 messagepassing-121015032028-phpapp01
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 

Más de Sunita Sahu

Writing software requirement document
Writing software requirement documentWriting software requirement document
Writing software requirement documentSunita Sahu
 
Writing software requirement document
Writing software requirement documentWriting software requirement document
Writing software requirement documentSunita Sahu
 
Slowly changing dimension
Slowly changing dimension Slowly changing dimension
Slowly changing dimension Sunita Sahu
 
Fact less fact Tables & Aggregate Tables
Fact less fact Tables & Aggregate Tables Fact less fact Tables & Aggregate Tables
Fact less fact Tables & Aggregate Tables Sunita Sahu
 
Dimensional Modeling
Dimensional ModelingDimensional Modeling
Dimensional ModelingSunita Sahu
 
Attacks in MANET
Attacks in MANETAttacks in MANET
Attacks in MANETSunita Sahu
 

Más de Sunita Sahu (6)

Writing software requirement document
Writing software requirement documentWriting software requirement document
Writing software requirement document
 
Writing software requirement document
Writing software requirement documentWriting software requirement document
Writing software requirement document
 
Slowly changing dimension
Slowly changing dimension Slowly changing dimension
Slowly changing dimension
 
Fact less fact Tables & Aggregate Tables
Fact less fact Tables & Aggregate Tables Fact less fact Tables & Aggregate Tables
Fact less fact Tables & Aggregate Tables
 
Dimensional Modeling
Dimensional ModelingDimensional Modeling
Dimensional Modeling
 
Attacks in MANET
Attacks in MANETAttacks in MANET
Attacks in MANET
 

Último

MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 

Último (20)

MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 

RPC Allows Programs to Call Procedures on Other Machines

  • 1.
  • 2.  RPC allows programs to call procedures located on other machines.  When a process on machine A calls' a procedure on machine B, the calling process on A is suspended, and execution of the called procedure takes place on B. Information can be transported from the caller to the callee in the parameters and can come back in the procedure result.  No message passing at all is visible to the programmer. This method is known as Remote Procedure Call, or often just RPC.
  • 3.  It can be said as the special case of message-passing model.  It has become widely accepted because of the following features: ◦ Simple call syntax and similarity to local procedure calls. ◦ Its ease of use, efficiency and generality. ◦ It can be used as an IPC mechanism between  processes on different machines and  also between different processes on the same machine.
  • 4.  It is similar to commonly used procedure call model. It works in the following manner: 1. For making a procedure call, the caller places arguments to the procedure in some well specified location. 2. Control is then transferred to the sequence of instructions that constitutes the body of the procedure. 3. The procedure body is executed in a newly created execution environment that includes copies of the arguments given in the calling instruction. 4. After the procedure execution is over, control returns to the calling point, returning a result.
  • 5.  The RPC enables a call to be made to a procedure that does not reside in the address space of the calling process.  Since the caller and the callee processes have disjoint address space, the remote procedure has no access to data and variables of the callers environment.  RPC facility uses a message-passing scheme for information exchange between the caller and the callee processes.  On arrival of request message, the server process ◦ extracts the procedure’s parameters, ◦ computes the result, ◦ sends a reply message, and ◦ then awaits the next call message.
  • 6.
  • 7.  Only one of the two processes is active at any given time.  It is not always necessary that the caller gets blocked.  There can be RPC implementations depending on the parallelism of the caller and the callee’s environment.  The RPC could be asynchronous, so that the client may do useful work while waiting for the reply from the server.  Server could create a thread to process an incoming request so that server is free to receive other requests.
  • 8.  Difference between remote procedure calls and local procedure calls: 1. Unlike local procedure calls, with remote procedure calls,  Disjoint Address Space  Absence of shared memory.  Meaningless making call by reference, using addresses in arguments and pointers. 2. RPC’s are more vulnerable to failure because of:  Possibility of processor crashes or  communication problems of a network. 3. RPC’s are much more time consuming than LPC’s due to the involvement of communication network.
  • 9.  Implementation of RPC involves the five elements of program: 1. Client 2. Client Stub 3. RPC Runtime 4. Server stub 5. Server  The client, the client stub, and one instance of RPCRuntime execute on the client machine.  The server, the server stub, and one instance of RPCRuntime execute on the server machine.  As far as the client is concerned, remote services are accessed by the user by making ordinary LPC
  • 10.  Stubs ◦ Provide a normal / local procedure call abstraction by concealing the underlying RPC mechanism. ◦ A separate stub procedure is associated with both the client and server processes. ◦ To hide the underlying communication network, RPC communication package known as RPC Runtime is used on both the sides.
  • 11.
  • 12.  It is responsible for the following two tasks: ◦ On receipt of a call request from the client,  it packs a specifications of the target procedure and the arguments into a message and  asks the local RPC Runtime to send it to the server stub. ◦ On receipt of the result of procedure execution, it unpacks the result and passes it to the client.
  • 13.  It handles transmission of messages across the network between Client and the server machine.  It is responsible for ◦ Retransmission, ◦ Acknowledgement, ◦ Routing and ◦ Encryption.
  • 14.  It is responsible for the following two tasks: ◦ On receipt of a call request message from the local RPCRuntime, it unpacks it and makes a perfectly normal call to invoke the appropriate procedure in the server. ◦ On receipt of the result of procedure execution from the server, it unpacks the result into a message and then asks the local RPCRuntime to send it to the client stub.
  • 15.  The arguments and results in RPC are language- level data structures, which are transferred in the form of message data.  Transfer of data between two computers requires encoding and decoding of the message data.  Encoding and decoding of messages in RPC is known as marshaling & Unmarshaling.
  • 16. To summarize, a remote procedure call occurs in the following steps: 1. The client procedure calls the client stub in the normal way. 2. The client stub builds a message and calls the local operating system. 3. The client's as sends the message to the remote as. 4. The remote as gives the message to the server stub. 5. The server stub unpacks the parameters and calls the server.
  • 17. 6. The server does the work and returns the result to the stub. 7. The server stub packs it in a message and calls its local as. 8. The server's as sends the message to the client's as. 9. The client's as gives the message to the client stub. 10. The stub unpacks the result and returns to the client.
  • 18.  In the call-by-value method, all parameters are copied into a message that is transmitted from the client to the server through the network.  It is time consuming for passing large data types such as trees, arrays, etc.
  • 19.  Most RPC mechanisms does not use the call-by- reference semantics for parameter passing when client and the server exist in different address space.  Distributed systems having distributed shared- memory mechanisms can allow passing of parameters by reference.
  • 20.  Callback RPC  Broadcast RPC  Batch-mode RPC
  • 21.  It facilitates a peer-to-Peer paradigm among participating processes.  It allows a process to be both a client and a server.  Remotely processed interactive Application  Issues ◦ Providing server with clients handle ◦ Making the client process wait for the callback RPC ◦ Handling callback deadlocks
  • 22. Client Server Process callback request and send reply Reply (result of callback) Call (parameter list) Start Procedure execution Callback (parameter list) Reply (result of call) Stop Procedure execution temporarily Procedure execution ends resume Procedure execution
  • 23.  A client’s request is broadcast on the network and is processed by all servers that have the procedure for processing that request.  Methods for broadcasting a client’s request: 1. Use of broadcast primitive to indicate that the client’s request message has to be broadcasted. 2. Declare broadcast ports.  Back-off algorithm can be used to increase the time between retransmissions. ◦ It helps in reducing the load on the physical network and computers involved.
  • 24.  Batch-mode RPC is used to queue separate RPC requests in a transmission buffer on the client side and then send them over the network in one batch to the server. ◦ It reduces the overhead involved in sending requests and waiting for a response for each request. ◦ It is efficient for applications requiring lower call rates and client doesn’t need a reply. ◦ It requires reliable transmission protocol.