Persistence Methods in CSMA
Persistence Methods in CSMA
In Carrier Sense Multiple Access (CSMA), a station first senses the shared channel before transmitting. But an important question arises:
What should a station do when it finds the channel busy?
Different strategies have been developed to answer this question. These strategies are called persistence methods.
The three persistence methods are:
1-persistent CSMA
Nonpersistent CSMA
p-persistent CSMA
1. 1-persistent CSMA
In 1-persistent CSMA, a station continuously senses the channel until it becomes idle. As soon as the channel becomes idle, the station transmits immediately, with probability 1.
In simple words:
If the channel is busy, keep listening. If it becomes idle, transmit immediately.
Working
Example
Suppose Stations A and B are waiting while another station is transmitting.
A and B both sense the channel as busy.
When the current transmission ends, the channel becomes idle.
Both A and B may detect this and transmit immediately.
Their frames may collide.
Time ──────────────────────────────────────>
Channel: [Existing frame] | Idle
↑
Station A: [Frame A ──────>
Station B: [Frame B ──────>
COLLISIONAdvantage: Simple, and a station transmits immediately when the channel becomes idle.
Disadvantage: It has a high chance of collision when multiple stations are waiting for the channel to become idle.
Note that Ethernet uses this method.
2. Nonpersistent CSMA
In nonpersistent CSMA, a station does not continuously monitor a busy channel.
Instead, if the channel is busy, the station waits for a random amount of time before sensing it again.
In simple words:
If the channel is busy, wait for a random time and try again later.
Working
Example
Suppose Stations A and B both find the channel busy.
Station A randomly waits 3 ms.
Station B randomly waits 7 ms.
A senses the channel again after 3 ms.
B senses it again after 7 ms.
Because their waiting times differ, they are less likely to attempt transmission simultaneously.
Station A: Busy → Wait 3 ms → Sense → Transmit
Station B: Busy → Wait 7 ms → Sense → TransmitAdvantage: Reduces the chance of collisions because stations do not all transmit immediately when the channel becomes idle.
Disadvantage: It can increase delay because a station may wait even when the channel has already become idle. This can also reduce channel utilization.
3. p-persistent CSMA
The p-persistent method is used when the channel is divided into time slots, with each slot duration equal to or greater than the maximum propagation time.
When a station finds the channel idle, it makes a probabilistic decision.
With probability \(p\), it transmits.
With probability \(q=1-p\), it waits until the beginning of the next slot and senses the channel again.
Working
Example
Suppose:
When the channel is idle, the station:
transmits with probability 0.5 (50%), or
waits for the next slot with probability 0.5 (50%).
If it waits, it senses the channel again at the next slot boundary.
Important: The probability \(p=0.5\) does not mean the station must transmit every alternate slot. It means each decision uses the specified transmission probability.
Advantage: It balances immediate transmission against waiting, helping reduce collisions while improving efficiency.
4. Comparison of the three persistence methods
Feature | 1-persistent | Nonpersistent | p-persistent |
|---|---|---|---|
If channel is idle | Transmit immediately | Transmit immediately | Transmit with probability \(p\) |
If channel is busy | Keep sensing | Wait a random time | Follow the protocol's slot and back-off rules |
Transmission decision | Probability 1 when idle | Immediate when idle | Probabilistic |
Collision possibility | High when several stations are waiting | Reduced by random waiting | Reduced by probabilistic transmission |
Main drawback | More collisions | More delay; possible underutilization | Requires slot synchronization and a suitable choice of \(p\) |
5. Summary
1-persistent
Keep listening.
Transmit immediately when the channel becomes idle.
Nonpersistent
Wait randomly.
If busy, wait before sensing again.
p-persistent
Use probability.
Transmit with probability \(p\); otherwise defer to the next slot.
Persistence methods define how a CSMA station behaves when the channel is busy or idle. 1-persistent CSMA transmits immediately when idle, nonpersistent CSMA waits a random time when busy, and p-persistent CSMA uses a probability-based decision at slot boundaries.





Comments
Post a Comment