SlideShare a Scribd company logo
4
Most read
5
Most read
8
Most read
REMOTE
PROCEDURE
CALL
REMOTE PROCEDURE
CALL (RPC)
 Is a protocol that one program can use to request a
service from a program located in another computer in
a network without having to understand network details.
 A procedure call is also sometimes known as a function
call or a subroutine call.
 The requesting program is a client and the service-
providing program is the server.
 When program statements that use RPC are compiled
into an executable program, a stub is included in the
compiled code that acts as the representative of the
remote procedure code.
 the server includes a runtime program and stub that
interface with the remote procedure itself.
RPC
STUBS
 When the calling process calls a procedure, the action
performed by that procedure will not be the actual
code as written, but code that begins network
communication.
 It has to connect to the remote machine, send all the
parameters down to it, wait for replies, do the right
thing to the stack and return. This is the client side stub.
 The server side stub has to wait for messages asking for
a procedure to run.
 It has to read the parameters, and present them in a
suitable form to execute the procedure locally. After
execution, it has to send the results back to the calling
process.
HOW RPC WORKS?
 An RPC is analogous to a function call. Like a function
call, when an RPC is made, the calling arguments are
passed to the remote procedure and the caller waits
for a response to be returned from the remote
procedure.
 The client makes a procedure call that sends a request
to the server and waits.
 When the request arrives, the server calls a dispatch
routine that performs the requested service, and sends
the reply to the client.
 After the RPC call is completed, the client program
continues. RPC specifically supports network
applications.
Remote procedure call on client server computing
RPC APPLICATION
DEVELOPMENT
 To develop an RPC application the following steps are
needed:
• 1) Specify the protocol for client server
communication
• 2) Develop the client program
• 3) Develop the server program
 The programs will be compiled separately.
 The communication protocol is achieved by
generated stubs and these stubs and rpc (and other
libraries) will need to be linked in.
STUB
STUB
 The client calls the local stub procedure. The stub packages up
the parameters into a network message. This is called marshaling.
 Networking functions in the O/S kernel are called by the stub to
send the message.
 The kernel sends the message(s) to the remote system. This may
be connection-oriented or connectionless.
 A server stub unmarshals the arguments from the network
message.
 The server stub executes a local procedure call.
 The procedure completes, returning execution to the server stub.
 The server stub marshals the return values into a network
message.
 The return messages are sent back.
 The client stub reads the messages using the network functions.
 The message is unmarshalled. And the return values are set on
the stack for the local process.

More Related Content

PPTX
Virtualization in cloud computing
PPTX
Peer to peer system
PPTX
Service Oriented Architecture (SOA)
PDF
Api presentation
PPTX
Context model
PPTX
object oriented methodologies
PPTX
Virtualization in cloud computing
Peer to peer system
Service Oriented Architecture (SOA)
Api presentation
Context model
object oriented methodologies

What's hot (20)

ODP
OAuth2 - Introduction
PPTX
Hypertext transfer protocol (http)
PDF
SOAP-based Web Services
PDF
Remote Method Invocation in JAVA
PPTX
DHCP & DNS
PDF
Service-Oriented Architecture (SOA)
PPT
Designing Distributed Systems: Google Cas Study
PPTX
Service Oriented Architecture (SOA)
PPT
OS Database Security Chapter 6
PPTX
CLIENT SERVER IN OS.ppt
PPTX
Software Cost Estimation Techniques
PPTX
API Security Fundamentals
PPTX
Virus and its CounterMeasures -- Pruthvi Monarch
PPT
PPTX
Data security in cloud computing
PPTX
Cloud Computing Environment using Cluster as a service
PPTX
Cloud computing ppt
PPTX
Software requirements specification
PDF
Computer Network notes (handwritten) UNIT 1
PPTX
Architecture business cycle
OAuth2 - Introduction
Hypertext transfer protocol (http)
SOAP-based Web Services
Remote Method Invocation in JAVA
DHCP & DNS
Service-Oriented Architecture (SOA)
Designing Distributed Systems: Google Cas Study
Service Oriented Architecture (SOA)
OS Database Security Chapter 6
CLIENT SERVER IN OS.ppt
Software Cost Estimation Techniques
API Security Fundamentals
Virus and its CounterMeasures -- Pruthvi Monarch
Data security in cloud computing
Cloud Computing Environment using Cluster as a service
Cloud computing ppt
Software requirements specification
Computer Network notes (handwritten) UNIT 1
Architecture business cycle
Ad

Viewers also liked (8)

PPTX
RPC: Remote procedure call
PPT
Rpc (Distributed computing)
PDF
Sun RPC (Remote Procedure Call)
PPTX
Introduction to Remote Procedure Call
PPTX
PPT
remote procedure calls
PDF
Inter process communication
PDF
Inter Process Communication
RPC: Remote procedure call
Rpc (Distributed computing)
Sun RPC (Remote Procedure Call)
Introduction to Remote Procedure Call
remote procedure calls
Inter process communication
Inter Process Communication
Ad

Similar to Remote procedure call on client server computing (20)

PPTX
Remote procedure call
PPTX
Dos(rpc)avishek130650107020
PPT
Remote Procedure Call
PPTX
Middleware in Distributed System-RPC,RMI
PPTX
CN_U3P2_RPC_design_issues.pptx,CN unit1pr1.pdf where it is useful for the thi...
DOCX
Remote Procedure Call
DOC
Remote procedure calls
PDF
5. Distributed Operating Systems
PDF
Cs556 section3
PDF
Cs556 section3
PPT
Communication primitives
PPTX
Distributed Systems Distributed Systems- COMMUNICATION.pptx
PPT
DS-Chapter DDEFR2-Communication_105220.ppt
PPT
Remote Procedure Call related to computer newtork.ppt
PPT
Chapter 2B-Communication.ppt
PDF
Task communication
DOCX
Rpc mechanism
Remote procedure call
Dos(rpc)avishek130650107020
Remote Procedure Call
Middleware in Distributed System-RPC,RMI
CN_U3P2_RPC_design_issues.pptx,CN unit1pr1.pdf where it is useful for the thi...
Remote Procedure Call
Remote procedure calls
5. Distributed Operating Systems
Cs556 section3
Cs556 section3
Communication primitives
Distributed Systems Distributed Systems- COMMUNICATION.pptx
DS-Chapter DDEFR2-Communication_105220.ppt
Remote Procedure Call related to computer newtork.ppt
Chapter 2B-Communication.ppt
Task communication
Rpc mechanism

More from Satya P. Joshi (20)

PPTX
Intergroup Conflict Management.pptx
PPTX
Training methods in human resource managment
PPTX
Selection tests in human resource management
PPTX
Interview and it’s types - human resource managmenet
PPTX
Motivation, achievement theory, goal setting theory
PPTX
Characteristics, objectives & challenges of human resource manager
PPTX
Human Resource Planning
PPTX
Nested queries in database
PPTX
Technology and work design in Organizational Relation
PPTX
Techniques of achieving google quality of service
PPTX
Overview of digital communication in HSN and Multimedia
PPTX
Introduction to human resource management
PPTX
Security and control in Management Information System
PPTX
Designing the supply chain network
PPTX
Introduction to Organizational Behavior and Organizational Relation
PPTX
Selection tests and Reliability and Validity in HRM
PPTX
Analog and digital signal system : digital logic
PPTX
Transmission media on Client server and high speed network
PPTX
Physical and logical topologies in computer network and client server
PPTX
Performance tuning and optimization on client server
Intergroup Conflict Management.pptx
Training methods in human resource managment
Selection tests in human resource management
Interview and it’s types - human resource managmenet
Motivation, achievement theory, goal setting theory
Characteristics, objectives & challenges of human resource manager
Human Resource Planning
Nested queries in database
Technology and work design in Organizational Relation
Techniques of achieving google quality of service
Overview of digital communication in HSN and Multimedia
Introduction to human resource management
Security and control in Management Information System
Designing the supply chain network
Introduction to Organizational Behavior and Organizational Relation
Selection tests and Reliability and Validity in HRM
Analog and digital signal system : digital logic
Transmission media on Client server and high speed network
Physical and logical topologies in computer network and client server
Performance tuning and optimization on client server

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Programs and apps: productivity, graphics, security and other tools
Diabetes mellitus diagnosis method based random forest with bat algorithm
NewMind AI Weekly Chronicles - August'25 Week I
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Network Security Unit 5.pdf for BCA BBA.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation theory and applications.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Big Data Technologies - Introduction.pptx
MYSQL Presentation for SQL database connectivity
The Rise and Fall of 3GPP – Time for a Sabbatical?
Digital-Transformation-Roadmap-for-Companies.pptx

Remote procedure call on client server computing

  • 2. REMOTE PROCEDURE CALL (RPC)  Is a protocol that one program can use to request a service from a program located in another computer in a network without having to understand network details.  A procedure call is also sometimes known as a function call or a subroutine call.  The requesting program is a client and the service- providing program is the server.  When program statements that use RPC are compiled into an executable program, a stub is included in the compiled code that acts as the representative of the remote procedure code.  the server includes a runtime program and stub that interface with the remote procedure itself.
  • 3. RPC
  • 4. STUBS  When the calling process calls a procedure, the action performed by that procedure will not be the actual code as written, but code that begins network communication.  It has to connect to the remote machine, send all the parameters down to it, wait for replies, do the right thing to the stack and return. This is the client side stub.  The server side stub has to wait for messages asking for a procedure to run.  It has to read the parameters, and present them in a suitable form to execute the procedure locally. After execution, it has to send the results back to the calling process.
  • 5. HOW RPC WORKS?  An RPC is analogous to a function call. Like a function call, when an RPC is made, the calling arguments are passed to the remote procedure and the caller waits for a response to be returned from the remote procedure.  The client makes a procedure call that sends a request to the server and waits.  When the request arrives, the server calls a dispatch routine that performs the requested service, and sends the reply to the client.  After the RPC call is completed, the client program continues. RPC specifically supports network applications.
  • 7. RPC APPLICATION DEVELOPMENT  To develop an RPC application the following steps are needed: • 1) Specify the protocol for client server communication • 2) Develop the client program • 3) Develop the server program  The programs will be compiled separately.  The communication protocol is achieved by generated stubs and these stubs and rpc (and other libraries) will need to be linked in.
  • 9. STUB  The client calls the local stub procedure. The stub packages up the parameters into a network message. This is called marshaling.  Networking functions in the O/S kernel are called by the stub to send the message.  The kernel sends the message(s) to the remote system. This may be connection-oriented or connectionless.  A server stub unmarshals the arguments from the network message.  The server stub executes a local procedure call.  The procedure completes, returning execution to the server stub.  The server stub marshals the return values into a network message.  The return messages are sent back.  The client stub reads the messages using the network functions.  The message is unmarshalled. And the return values are set on the stack for the local process.