Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

RPC mechanism

Implementing RPC Mechanism

To achieve semantic transparency, implementation of the RPC mechanism is based on the concepts of stubs.

Stubs

  • It provides a normal/local procedure call abstraction by concealing the underlying RPC mechanism.
  • A separate stub procedure is associated with both the side on client and server processes.
  • To hide the distance and functional underlying communication network, an RPC communication package Known as RPC Runtime is used on both the sides.
  • Thus the implementation of RPC involves the five elements of the program:-
    1. The client
    2. The client stub
    3. The RPC Runtime
    4. The server stub
    5. The server
Principle between client and server program

Basic RPC Operation

The RPC Mechanism is based on the observation that a procedural call is well known for transfer of control and data with in a program running an a single machine.

On invoking a remote procedure, the calling process is suspended.

If any parameter are passed to the remote machine where the procedure will execute.

On completion, the results are passed back from server to client and resuming execution as if it had called a local procedure.

RPC mechanism is based on the concept of stub procedures.

The server writer writes the server and links it with the server-side stubs; the client writes his program and links it with the client-side stub.

The stubs are responsible for managing all details of the remote communication between client and server.

What is RPC mechanism?

They enable client to communication with server by calling procedures in a similar way to the conventional use of procedure on the local procedure call, but the call procedure is executed in a different process and usually a different computer.

Steps of RPC

The steps in making a RPC

  • Client procedure calls the client stub in a normal way.
  • Client stub builds a message and traps to the kernel.
  • Kernel sends the message to remote kernel.
  • Remote kernel gives the message to server stub.
  • Server stub unpacks parameters and calls the server.
  • Server computes results and returns it to server stub.
  • Server stub packs results in a message to client and traps to kernel.
  • Remote kernel sends message to client stub.
  • Client kernel gives message to client stub.
  • Client stub unpacks results and returns to client.

Examples of RPC

  • Distributed Computing Environment.
  • Open Software Foundation.
  • Middleware between existing network operating system and distributed application.
  • Initially design for Unix-Win NT.

Design Issues in RPC

  • RPC mechanism is based on the concept of stub procedures.
  • The server writer writes the server and links it with the server-side stubs; the client writes his program and links it with the client-side stub.
  • The stubs are responsible for managing all details of the remote communication between client and server.