Slotted ALOHA
Slotted ALOHA
Slotted ALOHA is an improved version of Pure ALOHA. The main purpose of introducing Slotted ALOHA is to reduce the vulnerable time and thereby improve throughput.
1. Why was Slotted ALOHA introduced?
In Pure ALOHA, a station can transmit at any time.
Suppose Station B starts transmitting at time :
Pure ALOHA A can start here ↓ ──────────────|─────── B starts ──────────|──────── t-Tfr t t+Tfr [ B frame ]
Another station can start:
- just before B starts, or
- while B is transmitting.
Therefore:
This large vulnerable period results in more collisions.
2. Basic idea of Slotted ALOHA
Slotted ALOHA introduces a simple rule:
A station is allowed to transmit only at the beginning of a time slot.
The entire time is divided into equal-sized slots.
Each slot has a duration equal to the time required to transmit one frame:
For example:
A station cannot start transmitting in the middle of a slot.
3. How does it work?
Suppose a station has a frame ready.
It waits until the beginning of the next time slot.
Frame ready | ↓ Wait for beginning of slot | ↓ Transmit
For example:
Slot 1 Slot 2 Slot 3 |------------|------------|------------| ↑ Station waits and transmits here
If the station misses the beginning of Slot 2, it cannot start in the middle of Slot 2.
It must wait until Slot 3.
4. Why does this reduce collisions?
This is the key idea.
Consider Station B transmitting in Slot 2:
Slot 1 Slot 2 Slot 3 |------------|------------|------------| [==== B ====]
Another station cannot suddenly start halfway through Slot 2.
It can only start at begining of slot 3
Therefore, a frame transmitted in Slot 2 can collide only with another frame that also starts at the beginning of Slot 2.
5. Collision in Slotted ALOHA
There can still be collisions.
Suppose Stations 1 and 2 both have frames to send at the beginning of Slot 2:
Slot 1 Slot 2 Slot 3 |------------|------------|------------| ↑ | ┌────────┴────────┐ │ │ S1 S2 │ │ ↓ ↓ [ Frame 1 ] [ Frame 2 ] \ / \ / \ / COLLISION
Both frames collide because they started at the same slot boundary.
So Slotted ALOHA does not eliminate collisions.
It simply reduces the period during which a collision can occur.
6. Vulnerable Time
This is the biggest improvement over Pure ALOHA.
Pure ALOHA
Slotted ALOHA
So the vulnerable time is reduced by half.
Pure ALOHA <--------------- 2Tfr ---------------> Vulnerable period Slotted ALOHA <-------- Tfr --------> Vulnerable period
Why?
Because stations are allowed to start transmitting only at slot boundaries.
7. Simple comparison
Suppose Station B transmits for one frame time.
Pure ALOHA
Another station could start:
Before B B transmitting ↓ ↓ ───────────|──────────────[==========]──────── t-Tfr t t+Tfr <------ 2Tfr ------->
So there are many opportunities for collision.
Slotted ALOHA
B starts exactly at a slot boundary:
Slot n Slot n+1 |------------|----------------------------| [======== B ========] ↑ fixed start
Another station can collide with B only if it also starts at the same beginning of the slot.
Hence:
8. Throughput of Slotted ALOHA
The throughput equation for Slotted ALOHA is:
where:
- = average number of frames generated during one frame transmission time
- = average number of successfully transmitted frames during one frame transmission time.
Compare this with Pure ALOHA:
The difference is caused by the vulnerable time.
| Protocol | Vulnerable time | Throughput |
|---|---|---|
| Pure ALOHA | ||
| Slotted ALOHA |
9. Maximum throughput
For Slotted ALOHA, the maximum throughput occurs when:
The maximum throughput is:
which is approximately:
This is twice the maximum throughput of Pure ALOHA, which is 18.4%.
Interpretation
When:
it means:
On average, one frame is generated during one frame transmission time.
At this operating point, approximately 36.8% of the generated frames successfully reach their destination.
10. Why is the optimum?
The vulnerable time of Slotted ALOHA is only:
Therefore, if approximately one frame is generated during this vulnerable period, the system reaches its maximum throughput.
Compare:
Pure ALOHA
Vulnerable time = 2Tfr Maximum: G = 0.5 S = 18.4%
Slotted ALOHA
Vulnerable time = Tfr Maximum: G = 1 S = 36.8%
The reduction in vulnerable time allows the system to handle a higher offered load.
11. Example
(a) 1000 frames per second
Given:
- Frame size = 200 bits
- Channel bandwidth = 200 kbps
First calculate:
Therefore:
Slot duration
Vulnerable time
Now suppose the system generates 1000 frames per second.
Since one frame takes 1 ms:
Therefore:
Using:
we get:
Therefore:
So approximately:
frames per second are successfully transmitted.
(b) 500 frames per second
The system produces:
Since one frame takes 1 ms:
Therefore:
Now:
Therefore:
Successful frames per second:
≈152 successful frames/sec
c) 250 frames per second
The system produces:
Therefore:
So:
Using the formula:
Therefore:
Successful frames per second:
Final Answer
| Case | Frames/sec generated | Throughput | Successful frames/sec | ||
|---|---|---|---|---|---|
| a | 1000 | 1.0 | 0.3679 | 36.8% | 368 |
| b | 500 | 0.5 | 0.3033 | 30.33% | 152 |
| c | 250 | 0.25 | 0.1947 | 19.47% | 49 |
Important observation
The maximum throughput of Slotted ALOHA is 36.8%, which occurs at:
Therefore, case (a) operates exactly at the maximum-throughput point.
12. Pure ALOHA vs Slotted ALOHA
| Feature | Pure ALOHA | Slotted ALOHA |
|---|---|---|
| Transmission time | Any time | Only at beginning of slot |
| Slotting | No | Yes |
| Slot duration | — | |
| Vulnerable time | ||
| Collision possible? | Yes | Yes |
| Throughput formula | ||
| Maximum | ||
| Maximum throughput | 18.4% | 36.8% |
| Main improvement | — | Vulnerable time reduced by half |
13. The main idea to remember
The entire difference can be summarized in one diagram:
ALOHA PURE ALOHA ─────────── Send anytime ↓ Vulnerable time 2Tfr ↓ More collisions ↓ Maximum = 18.4% SLOTTED ALOHA ────────────── Send only at slot beginning ↓ Vulnerable time Tfr ↓ Fewer collisions ↓ Maximum = 36.8%
Summary
Slotted ALOHA is an improved version of Pure ALOHA in which time is divided into slots of seconds, and a station is allowed to transmit only at the beginning of a time slot. If a station misses the beginning of a slot, it waits for the next slot. Collisions can still occur when two or more stations transmit at the beginning of the same slot, but the vulnerable time is reduced from to . Its throughput is , with a maximum throughput of 0.368 (36.8%) when .
Comments
Post a Comment