Hi,
In my understanding, SIFS is not used for media contention.
Cited from the book "802.11 the definitive guide":
"Short interframe space (SIFS)
The SIFS is used for the highest-priority transmissions, such as RTS/CTS frames and positive acknowledgments. High-priority transmissions can begin once the
SIFS has elapsed. Once these high-priority transmissions begin, the medium becomes busy, so frames transmitted after the SIFS has elapsed have priority over
frames that can be transmitted only after longer intervals."
One can only transmit immediately after SIFS if its sending a high-priority frame (normally only the ACK frame).
On the other hand, DIFS + contention window is for media contention. Cited from the same book:
"DCF interframe space (DIFS)
The DIFS is the minimum medium idle time for contention-based services. Stations may have immediate access to the medium if it has been free for a period longer than the DIFS."
"After frame transmission has completed and the DIFS has elapsed, stations may attempt to transmit congestion-based data. A period called the contention window or backoff
window follows the DIFS. This window is divided into slots. Slot length is medium dependent; higher-speed physical layers use shorter slot times. Stations pick a random
slot and wait for that slot before attempting to access the medium; all slots are equally likely selections. When several stations are attempting to transmit, the station that picks
the first slot (the station with the lowest random number) wins."
So a normal data frame can only be sent after the medium is free for at least DIFS time. Then if first attempt is failed, a random number (call it t) in terms of # slots is drawn from an exponentially increasing contention window (*2 on each attampt).
Then the node will listen the channel, if a slot is free, t is decreased by 1; otherwise t remains unchanged. When t is reduced to 0, a further DIFS is waited. If after DIFS the media is still free, then a 2nd attempt is performed; otherwise, the node doubles the contention window, draws a random number, and restarts the contention process.
As a result, there is no guarantee who will get the medium access next.
Not sure if I'm entirely correct though.
Best
Zhang Bo