Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Introduction
2.
ALOHA
2.1.
Types of ALOHA
2.2.
Pure ALOHA
2.3.
Slotted ALOHA
2.4.
Conclusion
3.
Frequently Asked Questions
3.1.
Which one is better pure aloha or slotted aloha?
3.2.
Does collision occur in slotted aloha?
3.3.
What makes the successful collision rate doubled in slotted aloha?
3.4.
What is the success transmission rate in pure and slotted aloha?
3.5.
Does aloha detect whether the transmission channel is available or not?
4.
Conclusion
Last Updated: Mar 27, 2024

ALOHA

Author HET FADIA
2 upvotes
Computer Networks

Introduction

ALOHA is a network access management system that coordinates and arbitrates access to a shared communication channel. It was developed by Norman Abramson and his colleagues in the 1970s at the University of Hawaii. ALOHA stands for Additive Links On-Line Hawaii Area. ALOHA is a network access management system that coordinates and arbitrates access to a shared communication channel.

ALOHA

ALOHA is a network access management system that coordinates and arbitrates access to a shared communication channel.

Some of the properties of aloha are:

  • Aloha is a random access protocol.
  • Aloha is LAN-based.
  • Each station transmits without detecting whether the transmission channel is idle or not.
  • A collision occurs when two frames transmit on the same channel simultaneously. Due to this, the frames get destroyed.

Types of ALOHA

There are two types of ALOHA:

  • Pure ALOHA
  • Slotted ALOHA

Pure ALOHA

  • The stations transmit frames anytime they have data to send in pure ALOHA.
  • When two or more stations transmit simultaneously, there is a collision, and the frames are destroyed.
  • Pure ALOHA is a Random Access Protocol. It is LAN Based. There is no propagation time in Pure ALOHA.
  • When a station transmits a frame in pure ALOHA, it expects the receiver to acknowledge it. If the acknowledgment is not received from the receiver within a specified time, the station assumes that the receiver is destroyed. The station then sends a frame again after a random time so that the new transmitted frame does not collide with the same frame.
  • When two or more stations transmit simultaneously on the same channel, then a collision occurs. So when our message is transmitting, no other message should start transmitting at the same channel to prevent a collision. Similarly, there should be no message transmitting at that time when our message started transmitting. Thus no message should have started transmitting Tt time before our message started transmitting. Therefore vulnerable time = 2 x Transmission time.
Vulnerability time = 2 x Transmission time

Vulnerability time = 2 x Transmission time

Transmission overlap

In the above figure, we can see that while the first transmission1 has not ended, another transmission started, and thus, they collide.

  • Efficiency is given by n= G x e-2G, where G is the number of stations that want to transmit the data.

Differentiating the efficiency of transmission with respect to G and equating it to 0 we get e-2G(2xG-1) =0. Thus G=½. Thus, if one station transmits from every two stations, the efficiency will be maximum. 

Thus the rate of successful transmission is G x e-2G  at G=½ i.e. 1 x e-2 = 18.39%. 

Slotted ALOHA

  • The pure ALOHA has a high chance of collision. So the slotted ALOHA was made to improve the efficiency of the pure ALOHA.
  • Collisions occur in slotted aloha, but they are half compared to pure aloha.
  • Here the channel is divided into slots having fixed time intervals.
  • Efficiency is given by n= G x e-G, where G is the number of stations that transmit the data.

Differentiating the efficiency of transmission with respect to G and equating with 0, we get e-G(G-1) =0. Thus G=1. 

Thus the rate of successful transmission is G x e-G  at G=1 i.e. 1 x e-1 = 36.79%. Here we can see that the successful transmission rate is double that of Pure ALOHA

  • Slotted aloha is also a random access protocol.
  • Here, Vulnerability time = Transmission time.

Slotted Aloha

Figure showing Slotted ALOHA

Pure Alpha v/s Slotted Aloha

Figure showing difference between Pure ALOHA and Slotted ALOHA

Conclusion

From the above discussion, we can say that the slotted aloha is better than pure aloha because pure aloha has a successful transmission rate of 18.39%. In comparison, slotted aloha has a successful transmission rate of 36.79%.

Frequently Asked Questions

Which one is better pure aloha or slotted aloha?

The slotted aloha is better than pure aloha because pure aloha has a successful transmission rate of 18.39%, while slotted aloha has a successful transmission rate of 36.79%.

Does collision occur in slotted aloha?

Yes, the collision occurs in slotted aloha also. Thus the rate of successful transmission is 36.79%. So the success transmission rate is not 100%, and thus, collisions still occur.

What makes the successful collision rate doubled in slotted aloha?

In slotted aloha, any station can transmit only at the beginning of the slot. Due to this, the collision rate is reduced to half.

What is the success transmission rate in pure and slotted aloha?

The probability of successful transmission in pure aloha is G x e-2G. The max successful transmission rate occurs at G=½ and is 18.39%. Probability of successful transmission in Slotted ALOHA = G x e-G. The max probability of successful transmission in slotted aloha occurs at G=1, and the value is 1 x e-1 = 36.79%

Does aloha detect whether the transmission channel is available or not?

No, aloha does not detect whether the transmission channel is idle or not. As the channel may be busy at the transmission time and thus, the collision occurs.

Conclusion

Cheers if you reached here!! 

This article discusses the aloha protocol and its types in detail. We also discussed the difference between the two types of aloha protocol.

Recommended Readings:


Do check out The Interview guide for Product Based Companies as well as some of the Popular Interview Problems from Top companies like Amazon, Adobe, Google, etc. on Coding Ninjas Studio.

Also check out some of the Guided Paths on topics such as Data Structure and Algorithms, Competitive Programming, Operating Systems, Computer Networks, etc. as well as some Contests, Test Series, Interview Bundles, and some Interview Experiences curated by top Industry Experts only on Coding Ninjas Studio.

Happy Learning!!

Live masterclass