ALOHA Protocol and its Types | Computer Network

What is ALOHA in Computer Network?

ALOHA in computer networks is a random access protocol used to control how multiple devices share a common communication channel.

It was developed at the University of Hawaii and is one of the earliest methods for wireless data communication.

What ALOHA Does

ALOHA allows any device to send data whenever it has data to transmit, without checking whether the channel is free.

  • If only one device transmits → data is received successfully
  • If multiple devices transmit at the same time → collision occurs and data is lost
  • After collision → devices wait for a random time and retransmit

Types of ALOHA

  • Pure ALOHA
  • Slotted ALOHA

Pure ALOHA

Pure ALOHA is a method where any station can send data whenever it has data to transmit, without checking whether the channel is free or not.

pure ALOHA Protocol

When two or more stations transmit simultaneously, there is collision and the frames are destroyed.

● In pure ALOHA, whenever any station transmits a frame, it expects the acknowledgement from the receiver.

● If acknowledgement is not received within specified time, the station assumes that the frame (or acknowledgement) has been destroyed.

● If the frame is destroyed because of collision the station waits for a random amount of time and sends it again. This waiting time must be random otherwise same frames will collide again and again.

● If the frame is destroyed because of collision the station waits for a random amount of time and sends it again. This waiting time must be random otherwise same frames will collide again and again.

● If the frame is destroyed because of collision the station waits for a random amount of time and sends it again. This waiting time must be random otherwise same frames will collide again and again.

● Therefore pure ALOHA dictates that when time-out period passes, each station must wait for a random amount of time before resending its frame. This randomness will help avoid more collisions.

🔹 Vulnerable Time

The time during which collision can occur is:Vulnerable Time=2×Tt\text{Vulnerable Time} = 2 \times T_t

Where TtT_t​ is the transmission time of one frame.

🔹 Efficiency

Maximum efficiency of Pure ALOHA is:Efficiency=18.4%  (1/2e)\text{Efficiency} = 18.4\% \; (\approx 1/2e)

Slotted ALOHA

Slotted ALOHA is an improved version of Pure ALOHA where time is divided into equal slots, and stations are allowed to transmit only at the beginning of a time slot.

Slotted ALOHA Protocol

Slotted ALOHA improves upon Pure ALOHA by introducing time synchronization across all stations. In this method, time is divided into equal slots, and each station is only allowed to transmit at the beginning of a slot, as illustrated in the diagram. This restriction ensures that frames either fully collide or do not collide at all, eliminating partial overlaps. As a result, the vulnerable time is reduced to a single frame duration, which significantly lowers the probability of collisions.

However, collisions can still occur if multiple stations choose the same time slot. While this method improves efficiency and doubles the throughput compared to Pure ALOHA, it requires precise synchronization and may lead to some idle slots when no station transmits.

🔹 Vulnerable Time

Vulnerable Time=Tt\text{Vulnerable Time} = T_t

Only one time slot is vulnerable, unlike Pure ALOHA (2Tt)

🔹 Efficiency

Efficiency=36.8%  (1/e)\text{Efficiency} = 36.8\% \; (\approx 1/e)

Which is double that of Pure ALOHA.

Comparison of Pure Aloha and Slotted Aloha

No.Pure AlohaSlotted Aloha
1Introduced by University of Hawaii in 1972Introduced by Robert in 1972
2Any station can transmit data at any timeAny station can transmit data at beginning of time slot
3Time is not synchronizedTime is globally synchronized
4Does not decrease number of collisionsIt decreases the number of collision
5Vulnerable time = 2 × TtVulnerable time = Tt
6Maximum efficiency or throughput is 18%Maximum efficiency or throughput is 37%
7Probability of successful transmission of frame is lessProbability of successful transmission of frame is high

Leave a Comment

Your email address will not be published. Required fields are marked *

Table of Contents

Categories
Scroll to Top