Piggybacking in Computer Networks
In this article, we will cover the overview of networking communication and mainly focus on the concept of piggybacking in networks. And we will also discuss the advantages and disadvantages of using piggybacking in networks. Finally, we will see the conclusion. Let’s discuss it one by one.
Networking Communication :
Sliding window algorithms are methods of flow control for network data transfer. The data link layer uses a sender to have more than one acknowledgment packet at a time, which improves network throughput. Both the sender and receiver maintain a finite-size buffer to hold outgoing and incoming packets from the other side. Every packet sends by the sender must be acknowledged by the receiver. The sender maintains a timer for every packet sent, and any packet unacknowledged at a certain time is resent. The sender may send a whole window of packets before receiving an acknowledgment for the first packet in the window. This results in higher transfer rates, as the sender may send multiple packets without waiting for each packet’s acknowledgment. The receiver advertises a window size that tells the sender not to fill up the receiver buffers.
Efficiency can also be improved by making use of full-duplex transmission. Full Duplex transmission is a two-way directional communication simultaneously. It provides better performance than simple and half-duplex transmission modes.
Solution 1 –
One way to achieve full-duplex transmission is to have two separate channels with one for forwarding data transmission and the other for reverse data transfer (to accept). But this will almost completely waste the bandwidth of the reverse channel.
Solution 2(Piggybacking) –
A preferable solution would be to use each channel to transmit the frame (front and back) both ways, with both channels having the same capacity. Assume that A and B are users. Then the data frames from A to B are interconnected with the acknowledgment from A to B. and can be identified as a data frame or acknowledgment by checking the sort field in the header of the received frame.
One more improvement can be made. When a data frame arrives, the receiver waits does not send the control frame (acknowledgment) back immediately. The receiver waits until its network layer moves to the next data packet.
Acknowledgment is associated with this outgoing data frame. Thus the acknowledgment travels along with the next data frame.
Definition of Piggybacking :
This technique in which the outgoing acknowledgment is delayed temporarily is called piggybacking.
As we can see in the figure, we can see with piggybacking, a single message (ACK + DATA) over the wire in place of two separate messages. Piggybacking improves the efficiency of the bidirectional protocols.
Advantages of piggybacking :
- The major advantage of piggybacking is the better use of available channel bandwidth. This happens because an acknowledgment frame needs not to be sent separately.
- Usage cost reduction
- Improves latency of data transfer
Disadvantages of piggybacking :
- The disadvantage of piggybacking is the additional complexity.
- If the data link layer waits long before transmitting the acknowledgment (block the ACK for some time), the frame will rebroadcast.
NOTE – To avoid the delay and rebroadcast of frame transmission, piggybacking uses a very short duration timer.
There is a dispute as to whether this is a legal or illegal activity, but piggybacking is still a dark side of Wi-Fi. Cyber-terrorist attacks in India are a clear reminder that we cannot control incidents occurring anywhere in the world or control unsecured Wi-Fi networks. So it is the responsibility of the owner and administrator to secure their wireless connection.
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.