Shared Media Flashcards
What is CSMA?
Carrier Sense Multiple Access (CSMA) checks whether the medium is active before sending a packet. Unlike polling/probing, a node with something to send doesn’t have to wait for a master, or for its turn in a schedule. This works well under low contention.
Describe CSMA/CD
1) Is my frame ready for transmission? If yes, it goes on to the next point.
2) Is medium idle? If not, wait until it becomes ready
3) Start transmitting.
4) Did a collision occur? If so, go to collision detected procedure.
5) End Transmission
Collision detection usually involves exponential backoff.
What is p-persistant CSMA/CD
When the channel is idle send with probability p.
What is CSMA/CA
- First check if the medium is busy.
- If so, wait for the medium to become idle.
- Set a contention timer, randomly chosen in the range [1,CW].
- On timeout, send packet and wait for ACK.
- If no ACK, assume packet it lost and try again, after doubling CW.
- If another station transmits whilst counting down, freeze CW and unfreeze when packet completes transmission.
What is the hidden terminal problem?
See notes for diagram.
What is the exposed terminal problem?
See notes for diagram.
What are CTS and RTS
Before sending to a node, a RTS is sent. Transmission only proceeds when a CTS is sent back. This avoids the hidden terminal problem.
What is ALOHA? What is the optimisation that the slotted version makes?
• ALOHA is one of the earliest multiple access schemes. Data is simply sent. If no ACK is received, try again after a random time. Slotted ALOHA introduces discrete time intervals, allowing nodes to send only at the start of one of these intervals.