CSMA/CA: Carrier Sense Multiple Access with Collision Avoidance
Interframe Spacing: SIFS, DIFS, and the Timing Framework
Read aloud is unavailable in this browser.
The Timing Architecture of 802.11
In any wireless network where multiple stations share the same channel, coordination is essential. But wireless stations cannot rely on a centralized coordinator for every transmission decision—the overhead would be prohibitive. Instead, IEEE 802.11 implements a distributed timing architecture based on Interframe Spaces (IFS).
Interframe spaces are mandatory waiting periods between frames. They serve multiple critical functions:
- Priority differentiation — Higher-priority traffic uses shorter IFS, gaining preferential access
- Settling time — Allows the channel to clear between transmissions
- Processing time — Gives receivers time to decode and prepare responses
- Collision avoidance — Creates guard bands that reduce collision probability
The IFS system is elegant in its simplicity: by controlling when stations can transmit, it controls who transmits without requiring explicit coordination.
By the end of this page, you will understand the complete IFS hierarchy: SIFS for immediate responses, DIFS for normal contention, AIFS for QoS differentiation, PIFS for PCF access, and EIFS for error recovery. You'll see how these timing mechanisms orchestrate orderly channel access.
The Interframe Space Hierarchy
IEEE 802.11 defines multiple interframe spaces, each serving a specific purpose. The key insight is that shorter IFS means higher priority—a station waiting a shorter time will always transmit before a station waiting a longer time.
| IFS Type | Full Name | Typical Value (802.11a) | Purpose |
|---|---|---|---|
| SIFS | Short Interframe Space | 16 μs | Immediate response frames (ACK, CTS) |
| PIFS | PCF Interframe Space | 25 μs (SIFS + 1 slot) | Point Coordination Function access |
| DIFS | DCF Interframe Space | 34 μs (SIFS + 2 slots) | Normal contention-based access |
| AIFS[AC] | Arbitration Interframe Space | 34-79 μs (varies by AC) | QoS priority differentiation |
| EIFS | Extended Interframe Space | ~364 μs (variable) | Error recovery after corrupt frame |
The Timing Relationship:
The different IFS values are mathematically related:
SIFS = Minimum turnaround time (hardware-dependent)
Slot Time = Propagation delay + CCA time + MAC processing
PIFS = SIFS + 1 × Slot Time
DIFS = SIFS + 2 × Slot Time
AIFS[AC] = SIFS + AIFSN[AC] × Slot Time
EIFS = SIFS + DIFS + ACKtime
This relationship ensures that:
- SIFS is always shorter than PIFS (by 1 slot)
- PIFS is always shorter than DIFS (by 1 slot)
- DIFS is the baseline for normal contention
- EIFS provides extended protection after errors
The genius of IFS-based priority is that it requires no message exchange. Every station independently implements the same rules, and priority emerges naturally from timing. A station waiting SIFS will always beat a station waiting DIFS, without any explicit priority negotiation.
SIFS: Short Interframe Space
The Short Interframe Space (SIFS) is the shortest IFS and provides the highest priority. It's used for frames that are direct responses to previous frames—situations where the sender is expecting an immediate reply.
SIFS Values by PHY:
| PHY Standard | SIFS Value |
|---|---|
| 802.11b (2.4 GHz DSSS) | 10 μs |
| 802.11a (5 GHz OFDM) | 16 μs |
| 802.11g (2.4 GHz OFDM) | 10 μs |
| 802.11n (HT) | 10/16 μs (band dependent) |
| 802.11ac (VHT) | 16 μs |
| 802.11ax (HE) | 16 μs |
The SIFS duration is determined by hardware constraints—specifically, the time required for:
- Receiving the last bit of the previous frame
- Decoding the frame to determine if response is needed
- Switching the transceiver from receive to transmit mode
- Beginning transmission of the response
- •ACK (Acknowledgment) — Sent by receiver after successful unicast frame reception. The sender expects ACK within SIFS; no other station should transmit.
- •CTS (Clear to Send) — Sent in response to RTS. The CTS must arrive within SIFS of the RTS end, reserving the channel.
- •Data following CTS — After receiving CTS, the original sender transmits data after SIFS, maintaining channel ownership.
- •Block ACK — Response to Block ACK Request in frame aggregation.
- •Second or subsequent fragments — When a large frame is fragmented, each fragment after the first is sent after SIFS following the previous fragment's ACK.
- •Response frames in frame bursting — 802.11e/n/ac TXOP frame bursting uses SIFS between frames.
When a station sends a data frame, it effectively 'owns' the channel for the duration of the Data + SIFS + ACK exchange. Because no other station will transmit before DIFS (which is longer than SIFS + ACK time), the exchange completes without interference. The frame-ACK pair is an atomic transaction.
The SIFS Timing Window:
The receiver must begin transmitting the response within a tight window after SIFS:
[Data Frame Ends] ---(SIFS)---> [Response Must Begin]
10-16 μs
If the response begins too early, it may collide with the end of the previous frame or the receiver may not be ready. If it begins too late, other stations may sense the channel as idle and begin their own DIFS countdown.
Practical implementations provide a ±4 μs tolerance window for SIFS timing. Hardware manufacturers carefully tune their radio timing to meet this requirement.
DIFS: DCF Interframe Space
The DCF Interframe Space (DIFS) is used by stations operating in Distributed Coordination Function (DCF) mode—the standard contention-based access method for 802.11. Any station with data to send must wait for DIFS after sensing the channel idle before beginning the backoff procedure.
DIFS Calculation:
DIFS = SIFS + (2 × Slot Time)
| PHY Standard | SIFS | Slot Time | DIFS |
|---|---|---|---|
| 802.11b | 10 μs | 20 μs | 50 μs |
| 802.11a | 16 μs | 9 μs | 34 μs |
| 802.11g (ERP-OFDM) | 10 μs | 9 μs | 28 μs |
| 802.11g (with 802.11b present) | 10 μs | 20 μs | 50 μs |
| 802.11n (5 GHz) | 16 μs | 9 μs | 34 μs |
| 802.11ac | 16 μs | 9 μs | 34 μs |
Why Two Slot Times?
DIFS includes two slot times above SIFS to provide:
- One slot for propagation and detection — Ensures all stations detect any ongoing transmission before their DIFS expires
- One slot as priority separation — Guarantees DIFS traffic never interferes with SIFS-priority traffic (like ACKs)
- •Station has new frame to send — Station checks if medium has been idle for at least DIFS.
- •If medium idle ≥ DIFS — Station may begin transmission (if backoff counter is zero) or begin backoff countdown.
- •If medium becomes busy during DIFS — Station must wait until medium is idle again, then restart DIFS countdown.
- •After medium becomes idle following transmission — All stations must wait DIFS before contention begins.
- •DIFS protects SIFS transactions — Because DIFS > SIFS + ACK time, normal contention cannot interrupt frame-ACK exchanges.
The DIFS/Backoff Dance:
Consider a typical scenario where the channel becomes idle after a transmission:
Time: 0 16μs 25μs 34μs 43μs 52μs 61μs
↓ ↓ ↓ ↓ ↓ ↓ ↓
Channel: [IDLE]-[SIFS]-[PIFS]-[DIFS]--[Slot 1]--[Slot 2]--[Slot 3]
↑
DIFS completed - Backoff can begin
After DIFS:
- Station A has backoff = 2 slots: Will transmit at 52 μs (34 + 18)
- Station B has backoff = 5 slots: Will transmit at 79 μs (34 + 45)
- Station A wins; B freezes at 52 μs with 3 slots remaining
If the channel becomes busy at any point during the DIFS countdown, the station must abort and wait for the channel to become idle again. The full DIFS must then be observed—partial DIFS time does not carry over. This ensures clean slot boundaries.
AIFS: Arbitration Interframe Space
The Arbitration Interframe Space (AIFS) was introduced in IEEE 802.11e to enable Quality of Service (QoS) differentiation. Instead of all traffic using the same DIFS, different traffic categories use different AIFS values, providing priority-based access.
AIFS Calculation:
AIFS[AC] = SIFS + (AIFSN[AC] × Slot Time)
Where AIFSN (AIFS Number) is the number of slot times for each Access Category:
| Access Category | Traffic Type | AIFSN (default) | AIFS (802.11a) |
|---|---|---|---|
| AC_VO (Voice) | Voice, Video calling | 2 | 34 μs |
| AC_VI (Video) | Streaming video | 2 | 34 μs |
| AC_BE (Best Effort) | Normal data, web | 3 | 43 μs |
| AC_BK (Background) | Bulk transfers, backups | 7 | 79 μs |
The beauty of AIFS is that QoS differentiation requires no negotiation or marking inspection by other stations. A voice packet simply waits 34 μs; a background transfer waits 79 μs. The voice packet always wins contention against the background transfer—guaranteed by physics.
- •AIFSN = 2 (same as DIFS slot count)
- •AIFS = 34 μs (802.11a)
- •Smaller contention window (CWmin=3)
- •Wins contention in mixed traffic
- •Used for voice, video conferencing
- •AIFSN = 7 (5 extra slots)
- •AIFS = 79 μs (802.11a)
- •Larger contention window (CWmin=15)
- •Defers to all higher priority traffic
- •Used for backups, bulk downloads
AIFS Priority Visualization:
Time after channel becomes idle:
0 16μs 34μs 43μs 79μs
|-------|-------------|-------------|-------------|
SIFS ends VO/VI Best Effort Background
can start can start can start
backoff backoff backoff
If VO has backoff=0 and BE has backoff=0:
- VO transmits at 34 μs
- BE cannot transmit until after VO completes
Same-Priority Contention:
When two stations have frames in the same Access Category, they use the same AIFS. The random backoff then determines which transmits first. The combination of AIFS differentiation and random backoff provides both priority and fairness within priority classes.
PIFS: PCF Interframe Space
The PCF Interframe Space (PIFS) is used by the Point Coordination Function (PCF), an optional centralized access mode in 802.11. PIFS provides priority between SIFS and DIFS, allowing the Point Coordinator (typically the Access Point) to seize the channel before normal DCF contention begins.
PIFS Calculation:
PIFS = SIFS + (1 × Slot Time)
| PHY Standard | SIFS | Slot Time | PIFS |
|---|---|---|---|
| 802.11b | 10 μs | 20 μs | 30 μs |
| 802.11a | 16 μs | 9 μs | 25 μs |
| 802.11g (ERP-OFDM) | 10 μs | 9 μs | 19 μs |
| 802.11n/ac | 16 μs | 9 μs | 25 μs |
PCF Operation:
In PCF mode, the network alternates between contention periods (CP) and contention-free periods (CFP):
- Access Point sends Beacon — Contains information about CFP schedule
- CFP begins — AP waits PIFS after channel idle, then sends CF-Poll to stations
- Polled station responds — After SIFS with data or null frame
- AP continues polling — Each poll-response uses SIFS/PIFS timing
- CFP ends — AP sends CF-End, returning to normal DCF operation
Despite being defined in the original 802.11 standard, PCF is rarely implemented in consumer access points. The complexity of managing contention-free periods, the overhead of polling, and the success of EDCA (which uses AIFS instead) has made PCF largely obsolete. However, understanding PIFS remains important for complete protocol knowledge.
PIFS for Channel Access Priority:
Beyond PCF, PIFS is also used in some special scenarios:
- Beacon transmission — Access Points may use PIFS before beacons to ensure timely delivery
- Channel switching — Some implementations use PIFS during channel switch announcements
- HCCA (HCF Controlled Channel Access) — The 802.11e hybrid coordinator uses PIFS timing
Why One Slot Less Than DIFS?
PIFS provides exactly one slot time of priority over DCF stations. This is sufficient because:
- DCF stations must wait DIFS before backoff begins
- A station waiting only PIFS will always transmit before any DCF backoff counter reaches zero
- But PIFS doesn't interfere with SIFS-priority traffic (ACKs, CTS) which uses even shorter timing
EIFS: Extended Interframe Space
The Extended Interframe Space (EIFS) is used when a station receives a frame that it cannot properly decode—indicated by a failed Frame Check Sequence (FCS). EIFS provides extra time to allow the intended communication to complete before the station attempts its own transmission.
EIFS Calculation:
EIFS = SIFS + DIFS + ACK_Tx_Time
Where ACK_Tx_Time is the time to transmit an ACK frame at the lowest mandatory rate:
| Scenario (802.11a) | Component | Value |
|---|---|---|
| SIFS | Base timing | 16 μs |
| DIFS | Normal contention space | 34 μs |
| ACK at 6 Mbps | Preamble + Header + ACK | ~44 μs |
| EIFS | Total | ~94 μs |
For 802.11b, EIFS can exceed 300 μs because ACK at 1 Mbps takes much longer.
- •FCS Error Detected — Station receives a frame but CRC check fails. Frame content is corrupted.
- •Invalid PLCP Header — Physical layer header doesn't decode correctly.
- •Unsupported Rate — Frame uses a modulation scheme the station doesn't support (shouldn't happen in practice).
- •Partial Frame Reception — Station detects preamble but loses signal before frame completes.
Why EIFS Exists:
Consider this scenario:
- Station A transmits to the AP
- Station B is too far from A to hear the transmission clearly (receives with errors)
- Station B's received frame has FCS errors—it knows something was transmitted but not what
- The AP successfully receives A's frame and will send ACK after SIFS
- If B started normal DIFS countdown immediately, B might transmit and corrupt the ACK
EIFS solves this by making B wait longer:
[A's Frame ends]--SIFS--[AP's ACK]--DIFS--[Normal Contention]
↑ ↑
B receives errors B can finally
B starts EIFS contend
The EIFS duration is long enough to cover the worst-case ACK transmission, ensuring B doesn't corrupt the response it couldn't decode.
EIFS isn't a penalty for receiving errors—it's protection for the ongoing communication. The station with errors is essentially saying 'I heard something, but I don't know what. I'll wait extra time to make sure I don't interfere with any response.'
EIFS Recovery:
Once a station properly receives any valid frame (even if not addressed to it), EIFS mode ends and the station returns to normal DIFS operation. This prevents a single error from causing prolonged channel access delays.
Station state:
1. Receive frame with FCS error → Enter EIFS mode
2. Wait EIFS duration
3. Either:
a. Receive valid frame → Exit EIFS, use normal DIFS
b. EIFS expires → Can begin contention
4. Subsequent frames use normal IFS unless another error occurs
IFS Timing in Real Scenarios
Let's examine how IFS values work together in typical 802.11 communication scenarios. Understanding these timing diagrams is essential for protocol analysis and troubleshooting.
Scenario 1: Simple Data-ACK Exchange (802.11a)
Station A Access Point Station B
| | |
|------ DATA --------->| |
| (500 μs) | |
|<----- SIFS (16μs) ---| |
|<------ ACK ----------| |
| (44 μs) | |
| | |
|<---- DIFS (34μs) --->|<---- DIFS (34μs) -->|
| | |
|<- Backoff countdown begins for both -> |
Key Observations:
- ACK follows DATA after exactly SIFS (16 μs)
- After ACK ends, all stations wait DIFS before can contend
- During SIFS, no other station will transmit (SIFS < DIFS)
- The DATA-ACK is an atomic transaction
Scenario 2: RTS/CTS Exchange
Time (μs): 0 20 36 80 96 240 256 700 716 760
| | | | | | | | | |
RTS SIFS CTS SIFS DATA ... ... SIFS ACK DIFS
(20μs) (20μs) (DATA frame transmission)
Station A: [RTS]----[wait]-------[DATA]---------------[wait]-[done]
↓ ↑ ↓ ↑
AP: [receive]-[CTS]------[receive]------------[ACK]--[ready]
↓ ↓ ↓ ↓
Stations [NAV ====================================NAV expires]
B, C, D: (Cannot transmit - NAV is set from RTS Duration field)
RTS/CTS Benefits:
- Protects long DATA frame from collision
- Hidden terminals hear CTS and set NAV
- Channel reserved for entire exchange
The Duration field in RTS is set to: (3 × SIFS) + CTS + DATA + ACK. Every station that hears the RTS sets its NAV for this duration, preventing transmission even if they can't hear the sender. The CTS also carries duration information, helping hidden terminals.
Scenario 3: QoS Priority with AIFS
Channel becomes idle at time T:
T T+34μs T+43μs T+52μs T+79μs
|-------------------|-------------|-------------|-------------|
AC_VO backoff AC_BE could AC_BK could
can begin begin begin
Assume:
- Voice station has backoff = 1 slot (waits until T+43μs)
- Best Effort has backoff = 0 slots (would transmit at T+43μs)
- Background has backoff = 0 slots (would transmit at T+79μs)
Result: Voice and BE reach transmission time together at T+43μs
This is an internal collision - handled by EDCA rules
(typically lower AC backs off)
Better case:
- Voice has backoff = 0 → transmits at T+34μs
- All other stations freeze backoff
- Voice wins cleanly
AIFS ensures voice gets priority access even with identical backoff values to lower priority traffic.
KEEP LEARNING
Keep learning for free.
Read the complete lesson, save your notes and pick up where you left off with a free account. No card needed.