RPC mechanism

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


Fig 1:- 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.


Fig 2:- 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.


Example: 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.
Python Programming ↓ 👆
Java Programming ↓ 👆
JAVA EasyExamNotes.com covered following topics in these notes.
JAVA Programs
Principles of Programming Languages ↓ 👆
Principles of Programming Languages
EasyExamNotes.com covered following topics in these notes.

Practicals:
Previous years solved papers:
A list of Video lectures References:
  1. Sebesta,”Concept of programming Language”, Pearson Edu 
  2. Louden, “Programming Languages: Principles & Practices” , Cengage Learning 
  3. Tucker, “Programming Languages: Principles and paradigms “, Tata McGraw –Hill. 
  4. E Horowitz, "Programming Languages", 2nd Edition, Addison Wesley

    Computer Organization and Architecture ↓ 👆

    Computer Organization and Architecture 

    EasyExamNotes.com covered following topics in these notes.

    1. Structure of desktop computers
    2. Logic gates
    3. Register organization
    4. Bus structure
    5. Addressing modes
    6. Register transfer language
    7. Direct mapping numericals
    8. Register in Assembly Language Programming
    9. Arrays in Assembly Language Programming

    References:

    1. William stalling ,“Computer Architecture and Organization” PHI
    2. Morris Mano , “Computer System Organization ”PHI

    Computer Network ↓ 👆
    Computer Network

    EasyExamNotes.com covered following topics in these notes.
    1. Data Link Layer
    2. Framing
    3. Byte count framing method
    4. Flag bytes with byte stuffing framing method
    5. Flag bits with bit stuffing framing method
    6. Physical layer coding violations framing method
    7. Error control in data link layer
    8. Stop and Wait scheme
    9. Sliding Window Protocol
    10. One bit sliding window protocol
    11. A protocol Using Go-Back-N
    12. Selective repeat protocol
    13. Application layer
    References:
    1. Andrew S. Tanenbaum, David J. Wetherall, “Computer Networks” Pearson Education.
    2. Douglas E Comer, “Internetworking with TCP/IP Principles, Protocols, And Architecture",Pearson Education
    3. KavehPahlavan, Prashant Krishnamurthy, “Networking Fundamentals”, Wiley Publication.
    4. Ying-Dar Lin, Ren-Hung Hwang, Fred Baker, “Computer Networks: An Open Source Approach”, McGraw Hill.