1. Introduction
MAC stands for Medium Access Control.
A MAC protocol defines how multiple wireless devices share the same communication channel.
In an ad hoc network, many devices may try to transmit at the same time. If two devices transmit together, their signals can interfere and the data may be lost.
So, MAC protocols answer an important question:
“Which node should get permission to use the wireless channel, and when?”
2. Why MAC Protocols Are Needed
Consider:
B
/ \
/ \
A C
Suppose A and C both want to send data to B:
A ─────→ B
C ─────→ B
If A and C transmit at exactly the same time, their signals may collide at B.
Therefore, the MAC protocol controls access to the shared wireless medium.
3. Main Types of MAC Protocols
MAC protocols in wireless/ad hoc networks can broadly be classified as:
MAC Protocols
|
------------------------------
| | |
Contention- Controlled Hybrid/
based access Adaptive
| | |
CSMA/CA Polling Combination
MACA Token
MACAW
Let’s understand them one by one.
4. Contention-Based MAC Protocols
In contention-based protocols, nodes compete for access to the wireless channel.
There is no fixed schedule.
Example:
A ── wants to transmit
B ── wants to transmit
C ── wants to transmit
↓
All compete for channel
The protocol decides who can transmit.
Examples
- CSMA/CA
- MACA
- MACAW
- FAMA
4.1 CSMA/CA
CSMA/CA = Carrier Sense Multiple Access with Collision Avoidance
It is widely used in wireless LANs such as IEEE 802.11.
Working
A node:
- Checks whether the channel is free.
- If busy → waits.
- If free → waits for the required period.
- Selects a random backoff time.
- Transmits when its backoff expires.
- Receiver sends an ACK.
- If ACK is not received, the sender assumes a problem/collision and retransmits.
Node
↓
Sense channel
↓
Is channel free?
↓
Yes
↓
Random Backoff
↓
Transmit
↓
Receive ACK
Important point
Wireless devices generally cannot reliably detect collisions while transmitting in the same way wired Ethernet historically did.
Therefore:
Wireless networks generally use collision avoidance rather than collision detection.
5. MACA
MACA = Multiple Access with Collision Avoidance
MACA uses RTS/CTS to reduce the possibility of collisions.
RTS
Request To Send
Sender tells receiver:
“I want to send data.”
CTS
Clear To Send
Receiver responds:
“You may send.”
Example:
Sender A Receiver B
RTS -------------------->
<-------------------- CTS
DATA -------------------->
<-------------------- ACK
Other nearby nodes that hear RTS/CTS remain silent for the required period.
Advantage
It helps reduce the hidden terminal problem.
6. Hidden Terminal Problem
This is an important concept in wireless networks.
Suppose:
A B C
A → B ← C
A and C cannot hear each other because they are too far apart.
But both can communicate with B.
Therefore:
A → B
C → B
may happen simultaneously.
The packets can collide at B.
This is called the Hidden Terminal Problem.
Solution
RTS/CTS can help:
A → RTS → B
A ← CTS ← B
C hears CTS
C waits
A → DATA → B
7. MACAW
MACAW = Multiple Access with Collision Avoidance for Wireless
MACAW improves upon MACA.
It uses additional control information and better coordination between nodes.
A simplified exchange can be:
RTS →
← CTS
DATA →
← ACK
MACAW also improves the handling of:
- Retransmission
- Backoff
- Fairness
- Collision recovery
Main idea
MACAW is an improved wireless MAC protocol designed to provide better fairness and efficiency than MACA.
8. Controlled-Access MAC Protocols
In controlled-access protocols, nodes do not simply compete randomly.
Access is controlled or coordinated.
Examples:
- Polling
- Token passing
- Reservation
You have already studied these under controlled access.
A. Polling
A central controller gives permission to each node.
Controller
/ | \
A B C
Controller:
A → transmit
B → transmit
C → transmit
Advantage
Very few/no collisions.
Disadvantage
Requires a controller and creates overhead.
B. Token Passing
A special control message called a token circulates among nodes.
A → B → C → D → A
TOKEN
Only the node possessing the token can transmit.
Advantage
- Collision-free
- Fair access
Disadvantage
- Token management is required
- Token loss can disrupt communication
9. Hybrid MAC Protocols
Hybrid MAC protocols combine the advantages of different approaches.
For example, they may use:
- Contention-based access for normal traffic
- Scheduled/controlled access for high-priority traffic
This can improve:
- Channel utilization
- Delay
- Fairness
- Quality of Service
10. Important Requirements of MAC Protocols in Ad Hoc Networks
A good MAC protocol should provide:
1. Collision Reduction
Reduce simultaneous transmissions.
2. Fairness
Give nodes a fair opportunity to transmit.
3. High Throughput
Transmit as much useful data as possible.
4. Low Delay
Reduce waiting time.
5. Energy Efficiency
Important because mobile nodes often use batteries.
6. Adaptability
Should work even when nodes move and network topology changes.
7. Hidden Terminal Handling
Should reduce problems caused by nodes that cannot hear one another.
8. Exposed Terminal Handling
Should avoid unnecessarily preventing a node from transmitting when its transmission would not cause interference.
11. Hidden vs Exposed Terminal
Hidden Terminal
A B C
A → B ← C
A and C cannot hear each other.
Problem: collision at B.
Exposed Terminal
A → B
C → D
C hears A transmitting and may unnecessarily remain silent even though C → D might be possible without causing harmful interference to B.
Problem: unnecessary waiting and reduced channel utilization.
12. MAC Protocols in Ad Hoc Networks
| Protocol | Type | Main Idea |
|---|---|---|
| CSMA/CA | Contention | Listen before transmitting and avoid collisions |
| MACA | Contention | Uses RTS/CTS |
| MACAW | Contention | Improved MACA with better fairness/recovery |
| Polling | Controlled | Controller gives transmission permission |
| Token Passing | Controlled | Token holder gets permission |
| Reservation | Controlled | Nodes reserve transmission opportunities |
| Hybrid MAC | Hybrid | Combines contention and controlled access |
13. CSMA/CD vs CSMA/CA
This is a common exam question.
| Feature | CSMA/CD | CSMA/CA |
|---|---|---|
| Full form | Carrier Sense Multiple Access with Collision Detection | Carrier Sense Multiple Access with Collision Avoidance |
| Mainly associated with | Traditional shared Ethernet | Wireless LAN |
| Collision handling | Detects collision | Tries to avoid collision |
| ACK | Not normally used for basic Ethernet collision handling | Commonly used |
| Backoff | Used after collision | Used before transmission/retransmission |
| Wireless suitability | Poor | Suitable |
Easy way to remember:
CD = Detect
CA = Avoid
14. Why MAC Is More Difficult in Wireless Networks
Wireless MAC is more complicated than wired MAC because of:
- Hidden terminals
- Exposed terminals
- Signal interference
- Variable signal strength
- Mobility
- Limited bandwidth
- Battery limitations
- Shared wireless medium
Therefore, wireless MAC protocols need mechanisms such as:
Carrier sensing + Backoff + RTS/CTS + ACK
⭐ Exam Summary
Definition
A MAC protocol is a set of rules that controls how multiple nodes share and access a common communication medium.
Main categories:
MAC Protocols
|
├── Contention-Based
│ ├── CSMA/CA
│ ├── MACA
│ └── MACAW
│
├── Controlled Access
│ ├── Polling
│ ├── Token Passing
│ └── Reservation
│
└── Hybrid
Remember:
MAC = Who gets the channel + When they get the channel + How collisions are controlled.
For Ad Hoc Networks, the most important MAC concepts to remember are CSMA/CA, MACA, MACAW, hidden terminal, exposed terminal, RTS/CTS, backoff, and ACK.
