The Wayback Machine - https://web.archive.org/web/20240918210727/https://www.geeksforgeeks.org/communication-protocols-for-rpcs/
Open In App

Communication Protocols For RPCs

Last Updated : 17 Mar, 2022
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

This article will go through the concept of Communication protocols for Remote Procedure Calls (RPCs) in Distributed Systems in detail.

Communication Protocols for Remote Procedure Calls:

The following are the communication protocols that are used:

  • Request Protocol
  • Request/Reply Protocol
  • The Request/Reply/Acknowledgement-Reply Protocol

Request Protocol:

  • The Request Protocol is also known as the R protocol.
  • It is used in Remote Procedure Call (RPC) when a request is made from the calling procedure to the called procedure. After execution of the request, a called procedure has nothing to return and there is no confirmation required of the execution of a procedure.
  • Because there is no acknowledgement or reply message, only one message is sent from client to server.
  • A reply is not required so after sending the request message the client can further proceed with the next request.
  • May-be call semantics are provided by this protocol, which eliminates the requirement for retransmission of request packets.
  • Asynchronous Remote Procedure Call (RPC) employs the R protocol for enhancing the combined performance of the client and server. By using this protocol, the client need not wait for a reply from the server and the server does not need to send that.
  • In an Asynchronous Remote Procedure Call (RPC) in case communication fails, the RPC Runtime does not retry the request. TCP is a better option than UDP since it does not require retransmission and is connection-oriented.
  • In most cases, asynchronous RPC with an unstable transport protocol is utilized to implement periodic update services. One of its applications is the Distributed System Window.

Request Protocol

Request/Reply Protocol:

  • The Request-Reply Protocol is also known as the RR protocol.
  • It works well for systems that involve simple RPCs.
  • The parameters and result values are enclosed in a single packet buffer in simple RPCs. The duration of the call and the time between calls are both briefs.
  • This protocol has a concept base of using implicit acknowledgements instead of explicit acknowledgements.
  • Here, a reply from the server is treated as the acknowledgement (ACK) for the client’s request message, and a client’s following call is considered as an acknowledgement (ACK) of the server’s reply message to the previous call made by the client.
  • To deal with failure handling e.g. lost messages, the timeout transmission technique is used with RR protocol.
  • If a client does not get a response message within the predetermined timeout period, it retransmits the request message.
  • Exactly-once semantics is provided by servers as responses get held in reply cache that helps in filtering the duplicated request messages and reply messages are retransmitted without processing the request again.
  • If there is no mechanism for filtering duplicate messages then at least-call semantics is used by RR protocol in combination with timeout transmission.

Request/Reply Protocol

The Request/Reply/Acknowledgement-Reply Protocol:

  • This protocol is also known as the RRA protocol (request/reply/acknowledge-reply).
  • Exactly-once semantics is provided by RR protocol which refers to the responses getting held in reply cache of servers resulting in loss of replies that have not been delivered.
  • The RRA (Request/Reply/Acknowledgement-Reply ) Protocol is used to get rid of the drawbacks of the RR (Request/Reply) Protocol.
  • In this protocol, the client acknowledges the receiving of reply messages and when the server gets back the acknowledgement from the client then only deletes the information from its cache.
  • Because the reply acknowledgement message may be lost at times, the RRA protocol requires unique ordered message identities. This keeps track of the acknowledgement series that has been sent.

The Request/Reply/Acknowledgement-Reply Protocol

Complicated RPCs

  • RPCs that involve long-duration calls or large gaps between calls.
  • RPCs that involve parameters(arguments) and/or result in values that are too large to fit in a single datagram packet.
  • RPCs that involve long-duration calls or large gaps between calls:
    • The client probes the server regularly: After the submission of a request message from a client to the server, the client continuously sends a probe packet which a server needs to acknowledge.The exception status is communicated to the corresponding user if a communication failure occurs. Each probe packet contains the message identifier from the initial request message.
    • The server generates an acknowledgement regularly: If the generation of the next packet by the server gets delayed then the predicted retransmission time interval, then it generates an acknowledgement on its own. Hence, during a long-duration call, many acknowledgements may be generated from the server as several acknowledgements directly correspond to the call duration. If within the set interval of time the response or acknowledgement from the server has not been received by the client then it comes to the conclusion that either server has crashed or the failure occurs on the client-side or in case of communication failure user is alerted about the exception condition.
  • RPCs that involve parameters/arguments and/or result in values that are too large to fit in a single datagram packet:
    • RPCs with Long Messages: To handle such an RPC, employ many physical RPCs for a single logical RPC. The sending of data in each physical RPC is made in the size of a single datagram packet. This technique is inefficient since each RPC incurs a set amount of overhead regardless of the quantity of data transmitted.
    • Multidatagram Messages: Multidatagram messages are another approach for dealing with sophisticated RPCs in this category. It involves the division of long RPC parameters(arguments) or result into many packets and then sent in multiples. All the packets in a multi datagram message utilize a single acknowledgement packet for enhancing communication performance.

Previous Article
Next Article

Similar Reads

Difference Between Network Layer Protocols and Application Layer Protocols
Prerequisite: Basics of Computer Network In the world of computer networking, protocols are the set of rules that govern communication between devices. These rules dictate how devices should send and receive data over a network. Protocols are typically organized into layers, with each layer serving a specific purpose and working in conjunction with
6 min read
Data Link Layer Communication Protocols in IoT
Several Communication Protocols are used in Internet of Things (IoT) to provide service to the network layer. As we know IoT is based on networking of things where smart devices communicate with each other by sending and receiving data. So for that several network protocols (Communication protocols) are used to connect the IoT enabled devices and t
5 min read
Difference between data communication and digital communication
The terms Data Communication and Digital Communication share a common word, i.e. Communication between them. Communication that natively means to share something; makes these terms look similar, but they are quite different from each other. While one term relates more to what is being communicated other is closer to what is the type and process of
7 min read
Difference between Satellite Communication and Optical Communication
Satellite Communication: In satellite communication, geostationary communication satellites are used for the purpose of communication. A satellite works as a relay station in space through which communication takes place anywhere in the world. It takes the signal from one earth station, amplifies it, enhances the quality of signals, and transmits i
3 min read
Difference between Analog Communication and Digital Communication
Technology in imparting the communication systems has moved a long way from analog to digital technology. It is important for students, engineers and everybody interested in digital communications to know the differences between analog and digital communications. In this article, authors are going to explain what are primary differences between inf
5 min read
Sliding Window protocols Summary With Questions
Prerequisites - Stop & Wait, Go Back N, Selective Repeat Summary of all the protocols - Before starting with the questions a quick recap for all the protocols. Stop and wait - Sender window size (Ws) = 1Receiver window size (Wr) = 1Sequence Number â‰Ĩ 1 + 1Uses independent acknowledgementDiscards out of order packetsPacket Loss ? Retransmit packe
4 min read
Securing Routing Protocols
Prerequisite - Routing Information Protocol (RIP), EIGRP fundamentals, OSPF protocol fundamentals Routing is a process in which a layer 3 device (either router or layer 3 switch) finds the best path between the source and destination network. Dynamic routing protocols are used to decrease administrator overhead, i.e., administrator have to configur
5 min read
Collision-Free Protocols in Computer Network
Almost all collisions can be avoided in CSMA/CD but they can still occur during the contention period. The collision during the contention period adversely affects the system performance, this happens when the cable is long and length of packet are short. This problem becomes serious as fiber optics network came into use. Here we shall discuss some
4 min read
Types of Virtual Private Network (VPN) and its Protocols
VPN stands for Virtual Private Network (VPN), that allows a user to connect to a private network over the Internet securely and privately. VPN creates an encrypted connection that is called VPN tunnel, and all Internet traffic and communication is passed through this secure tunnel. Virtual Private Network (VPN) is basically of 2 types: 1. Remote Ac
7 min read
MANET Routing Protocols
In Mobile Ad hoc Network (MANET), nodes do not know the topology of their network, instead they have to discover it by their own as the topology in the ad-hoc network is dynamic topology. The basic rules is that a new node whenever enters into an ad-hoc network, must announce its arrival and presence and should also listen to similar announcement b
5 min read
Network Protocols
Network Protocols are a set of guidelines governing the exchange of information in a simple, dependable and secure way. Network protocols are formal standards and policies comprised of rules, methodology, and configurations that define communication between two or more devices over a network. To effectively send and receive information, devices on
3 min read
Video Conferencing Protocols
Internet communication simply means communication between two or many users over the Internet or the WWW (World Wide Web). The communication can be in the form of texting, sharing information, videos, audios, ideas, video chatting, etc. Video conferencing : Videophone/Video chatting/Video conferencing is a type of Internet Communication. Video mean
3 min read
Chat Conferencing Protocols
Communication is one of the most important things for today's generation. It is the best way to connect with people, to understand people, to pass information, etc. Effective communication is very important for our life. Chat conferencing is a type of Internet communication. Chatting : Chatting, as the name suggest i.e. to chat is one of the most e
1 min read
Trust Based Energy-Efficient and Secure Routing Protocols for IoT
There are many network designs and Internet of Things (IoT) models (devices) that are at work presently, but these lack either in terms of energy efficiency or aren’t optimized. To send information from source to destination node is most important task to be carried out in large scale and dynamic IoT environment. Thus, node may be repeated many tim
4 min read
Difference between MQTT and HTTP protocols
1. Message Queuing Telemetry Transport (MQTT) : It was created by Andy Standford-Clark and Arlen Nipper. It is an IoT interaction protocol based on the Publish/Subscribe model. This model is a simple model that provides support for QoS (Quality of Service). Due to its abilities, it can be found in every second IoT based device. This protocol has ma
2 min read
Critique of OSI Model and Protocols
Open System Interconnection (OSI) model is reference model that is used to describe and explain how does information from software application in one of computers moves freely through physical medium to software application on another computer. This model consists of total of seven layers and each of layers performs specific task or particular netw
4 min read
Network Protocols and Communications
Data communication are the exchange of data between two nodes via some form of link (transmission medium) such as cable. Now these Data are exchanged in three ways : Simplex Half Duplex Full Duplex Now let us understand them one by one : Simplex : Communication is always unidirectional, i.e., one device will transmit and other will receive. E.g., K
2 min read
Derivative Protocols used in SDLC
Even though subset of High-Level Data Link control (HDLC), Synchronous Data Link Control (SDLC) was initially created by IBM before HDLC. SDLC was first link-layer protocol that is totally based upon synchronous, bit-oriented operation. SDLC is basically precursor to HDLC. SDLC basically performs various functions such as : It is used to transfer d
3 min read
Examples of Data Link Layer Protocols
Data Link Layer protocols are generally responsible to simply ensure and confirm that the bits and bytes that are received are identical to the bits and bytes being transferred. It is basically a set of specifications that are used for implementation of data link layer just above the physical layer of the Open System Interconnections (OSI) Model. S
4 min read
Link Access Procedure (LAP) Protocols
Link Access Procedure (LAP) is basically considered as an ITU family of Data Link Layer (DLL) protocols that are subsets of High-Level Data Link Control (HDLC). LAP is particularly derived from IBM’s System Development Life Cycle (SDLC). There are several LAP protocols. Each of these protocols is usually a subset of HDLC tailored for a particular p
2 min read
14 Most Common Network Protocols And Their Vulnerabilities
Network Protocols are a set of established rules which control and govern the interchange of information by following a secure, reliable, and easy method. These sets of rules are present for various applications. Some well-known examples of protocols include wired networking (like Ethernet), wireless networking (like WLANs), and Internet communicat
8 min read
Difference between Routable and Non-routable Protocols
1. Routable Protocol : A Routable protocol is a network protocol which carry data from one network and it go through the router to succeed in another network and be delivered to a computer in that remote network. 2. Non-Routable Protocol : A non-routable protocol’s data cannot be passed through a router. This is mainly due to lack of capability of
2 min read
Types of Authentication Protocols
User authentication is the first most priority while responding to the request made by the user to the software application. There are several mechanisms made which are required to authenticate the access while providing access to the data. In this blog, we will explore the most common authentication protocols and will try to explore their merits a
3 min read
Types of Internet Security Protocols
In today’s world, we transfer the data in bulk, and the security of this data is very important, so Internet security provides that feature i.e., protection of data. There are different types of protocol exist like routing, mail transfer, and remote communication protocol. But the Internet security protocol helps in the security and integrity of da
3 min read
HSRP vs VRRP vs GLBP Protocols
HSRP, VRRP, and GLBP all are First Hop Redundancy Protocols and network-layer protocols which are used to provide redundancy in the network. The main purpose of them is to provide redundancy to the default gateway in a LAN environment. Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol, that provides a mechanism that is designed to
4 min read
IPsec Protocols
IPsec (Internet Protocol Security) is a large set of protocols and algorithms. IPsec is majorly used for securing data transmitted all over the internet. The Internet Engineering Task Force, or IETF, which was solely developed the IPsec protocols for the purpose of providing security at the IP layer through authentication and encryption of IP netwo
5 min read
Noisy Channels Protocols
Noisy channel protocols are commonly known as communication protocols. These protocols are designed to ensure a reliable data transmission over a channel in which there is a high probability of errors or data loss. In computer networks, these protocols are typically used to overcome the effects of channel noise during data transmission which can re
5 min read
Difference Between TCP, UDP and SCTP Protocols
In the realm of computer networking, different protocols play a vital role in facilitating the transmission of data across the internet. Three prominent protocols, TCP (Transmission Control Protocol), UDP (User Datagram Protocol), and SCTP (Stream Control Transmission Protocol), serve as the building blocks of modern network communication. Each of
6 min read
Mobile IP and Network Mobility Protocols
Mobile Internet Protocol and Network Mobility are both network concepts that are related to each other which enables the devices and networks in the Internet Protocol environments. Both these protocols are used for mobile devices and network connection even when the network is in a different location and even if they move in a different network. Th
9 min read
Routing v/s Routed Protocols in Computer Network
The Network Layer of the OSI Model is responsible for providing logical addressing, which routers use to select best path for routing packets. There are two types of packets used at this layer : Data Packets - The user data is transferred in the inter-network by these data packets. Routed protocols are those protocols which support such data traffi
6 min read