Medium access: deterministic protocols, ALOHA and CSMA

Wireless Technologies · · medium access control, aloha, csma

Contents

This typeset version was assembled by AI from my notes. The scanned PDF is the original source.

1. Deterministic vs non-deterministic MAC

Topic 1 · Wireless Technologies exam topics

Medium access control protocols – deterministic vs non-deterministic (random) – purpose, key differences, pros and cons

MAC (Medium Access Control): defines the mechanism by which devices can access the shared wireless channel to communicate with other nodes on the network.

Purpose: Some level of control is required so that nodes on the network can access the network within reasonable period of time, thereby ensuring acceptable access and response times.

Deterministic: it is a rule-based access mechanism. Each node is guaranteed to gain access to the wireless channel within a certain time frame. Outcome is predictable, therefore, reproducible.

Non-deterministic: it encompasses the type of access that’s driven by randomness. Control responsibility shifts to individual nodes. Not reproducible because the outcome (granting access) depends on the values of random variables. Hence, it is unpredictable.

ProsCons
DeterministicGuaranteed access
No collisions ⇓\Downarrow
Good for heavily loaded systems
Almost entire bandwidth can be utilized
High overhead
Complex management
Non-deterministicGood for low-traffic environments
Little to no management
Collisions happen

2. Deterministic protocols: polling, token passing, reservation

Topic 2 · Wireless Technologies exam topics

Deterministic protocols for medium access (Polling, Token passing, Reservation-based protocols) – principle, efficiency, pros and cons

Polling

A controller sends poll arrows to nodes A, B, C, D in turn; each node transmits into the wireless channel; green arrows marked T show the order in time from A down to D

Source: polling.tex

Dedicated controller polls nodes (A, B, C, D) in sequence and gives them a chance to transmit.

  • If ready to transmit, they transmit.
  • If not, poll next node.

Representation in time:

Time line: Poll A, a short propagation gap, Data A, then Poll B, Data B, and so on. T_poll spans Poll A, T_prop the gap, T_tx Data A, and T_total all three

Source: polling-time.tex

Ttotal=Tpoll+Tprop+TtxT_\mathrm{total} = T_\mathrm{poll} + T_\mathrm{prop} + T_\mathrm{tx}
  • TpollT_\mathrm{poll}: time it takes to poll a node
  • TpropT_\mathrm{prop}: time it takes for signals to move in air and process
  • TtxT_\mathrm{tx}: time it takes for each node to transmit
Efficiency=TtxTpoll+Tprop+Ttx\text{Efficiency} = \frac{T_\mathrm{tx}}{T_\mathrm{poll} + T_\mathrm{prop} + T_\mathrm{tx}}

The numerator is the portion that does useful work; the denominator is the total time for a transaction.

Pros: very simple to implement; easily testable; no collisions.
Cons: controller dies ⇒\Rightarrow everything dies; inefficient.

Token passing

Nodes A, B, C, D in a column; a black dot (the token) on A; curved arrows pass the token A to B to C to D; each node transmits into the wireless channel; a green arrow T shows the order in time

Source: token.tex

Token passing is a channel access method whereby a packet called a token is passed between nodes to authorize that node to communicate. There is no controller. The order of token passing is called token ring.

Efficiency: similar to that of polling method.

Pros: no controller required; no collisions; bandwidth fully utilized under heavy loads.
Cons: problem if a device fails; increased latency even under light loads; low efficiency.

Reservation-based bit map protocol

Time split into two segments:

  • Reservation
    • Devices book transmission times (slots) (comm. resources).
      • ‘1’ is set in reservation part (slot) belonging to that device. Order of devices, i.e. where they should set this ‘1’ is known a priori.
      • There are as many transmission slots as there were reservations.
  • Communication
    • Devices who booked their transmission slots, transmit.

All devices “hear” other devices’ reservations, so everyone knows what/when other device is going to transmit. This way, they all know their order of transmission.

Reservation slots A B C D with 1 in A and D, followed by Data A and Data D; next reservation has 1 in A, B, C, followed by Data A, Data B, Data C. T_r is one reservation slot, T_prop the gap before the data, T_tx one data frame

Source: bitmap.tex

Efficiency=TtxTr+Tprop+Ttx\text{Efficiency} = \frac{T_\mathrm{tx}}{T_\mathrm{r} + T_\mathrm{prop} + T_\mathrm{tx}}

3. ALOHA: pure vs slotted

Topic 3 · Wireless Technologies exam topics

ALOHA protocol – Pure vs Slotted ALOHA – principle, pros and cons, collision probability, derivation of maximum throughput

Pure ALOHA

  • Device sends data whenever it has some.
  • If a device starts transmitting while another is in the process of transmission, there is a collision.
  • In case of collision, the device reattempts transmission after a random back-off interval.
  • Extremely simple, but low efficiency.
  • Visually:
Four stations transmitting frames at arbitrary times; frames 2.1, 3.1 and 4.1 overlap each other, and 1.2, 2.2 and 4.2 overlap

Source: pure-aloha.tex

Pros: very simple; no synch required; low power implementation.
Cons: inefficient; collisions.

Pure ALOHA analysis

Diagram of colliding frames:

A shaded frame from t0 to t0+T. A frame that starts after t0-T overlaps its beginning; a frame that starts before t0+T overlaps its end. The vulnerable period runs from t0-T to t0+T, length 2T

Source: pure-aloha-vulnerable.tex

Assumptions:

  • Frame duration is same for all devices ≡T\equiv T.
  • Satisfies Poisson distribution: Pr(k frames generated)=Gke−Gk!P_\mathrm{r}(k \text{ frames generated}) = \dfrac{G^k e^{-G}}{k!}

Definitions:

  • Offered load (rate) GG = # of old & new msges that are attempted to transmit per unit time (TT).
  • Throughput SS = # of msges that are successfully transmitted per unit time (TT).

Analysis:

  • Pr(k=0 frames generated per T)=e−GP_\mathrm{r}(k = 0 \text{ frames generated per } T) = e^{-G} →\rightarrow 0 frames generated in TT.
  • However, in pure ALOHA, vulnerable period is 2T2T. In other words, no frames should be generated in this 2T2T period, not to have any collision. So, Pr(k=0 frames generated per 2T)=e−2GP_\mathrm{r}(k = 0 \text{ frames generated per } 2T) = e^{-2G} (k=0k = 0 generated frames in 2T2T).
  • Throughput = (# transmission attempts) ×\times (fraction that are successful): S=G×e−2GS = G \times e^{-2G}

Maximum throughput:

dSdG=1×e−2G−2Ge−2G=0  ⇒  e−2G=2Ge−2G  ⇒  G=12\frac{dS}{dG} = 1\times e^{-2G} - 2Ge^{-2G} = 0 \;\Rightarrow\; e^{-2G} = 2Ge^{-2G} \;\Rightarrow\; \boxed{G = \tfrac{1}{2}}Maximum S=S(0.5)=0.5×e−1=0.1818 %\text{Maximum } S = S(0.5) = 0.5 \times e^{-1} = 0.18 \qquad \boxed{18\,\%}

Slotted ALOHA

  • Time axis is discretized
    • Discretized frame duration is TT
  • Transmission is only allowed at the beginning of the time slots
    • Hence, devices must be time-synched.
Four stations with slot boundaries at 0, T, 2T, 3T, 4T; frames start only at slot boundaries; frames 1.2 and 2.1 both use the slot from 2T to 3T and collide

Source: slotted-aloha.tex

Pros: higher efficiency.
Cons: more power; requires time synch.

Slotted ALOHA analysis

  • Same assumptions & definitions as before.
  • Vulnerable period is TT.
  • Pr(k=0 frames generated per T)=e−GP_\mathrm{r}(k = 0 \text{ frames generated per } T) = e^{-G}
  • Throughput: S=Ge−GS = Ge^{-G}
  • Maximum throughput:
dSdG=1×e−G−Ge−G=0  ⇒  e−G=Ge−G  ⇒  G=1\frac{dS}{dG} = 1\times e^{-G} - Ge^{-G} = 0 \;\Rightarrow\; e^{-G} = Ge^{-G} \;\Rightarrow\; \boxed{G = 1}Maximum S=S(1)=1×e−1=0.36836.8 %\text{Maximum } S = S(1) = 1 \times e^{-1} = 0.368 \qquad \boxed{36.8\,\%}
Throughput S versus offered load G from 0 to 3: slotted ALOHA S = G e^-G peaks at 0.368 at G = 1; pure ALOHA S = G e^-2G peaks at 0.184 at G = 0.5

Source: aloha-throughput.tex

4. CSMA

Topic 4 · Wireless Technologies exam topics

CSMA (1-Persistent, Non-persistent, p-persistent, CA, CD) – principle, problems (Hidden node, exposed node)

Carrier sensing

General principle:

  • Device senses (listens) to the traffic before transmitting:
A sends frame A.1 while B senses: red arrows during the frame (busy channel, B cannot transmit), green arrows after it (idle channel, B can transmit)

Source: carrier-sensing.tex

  • In case of ALOHA, now a device is aware when the channel is busy, hence collisions are avoided (more of reduces probability rather than eliminate):
    • Collisions still occur because of propagation delay.
    • Vulnerable period becomes just the propagation delay!

1-persistent CSMA (aggressive tx)

Principle:

  • If the channel is busy, keep sensing continuously and wait until it becomes idle.
  • Once idle, transmit with probability 1.
B senses continuously while frame A.1 is on the air (busy); the moment A.1 ends, B senses the channel idle and sends frame B.1

Source: csma-1-persistent.tex

  • All waiting devices transmit at the same time when the channel becomes idle:
    • collision
      • Anytime a device transmits when channel is busy
      • Channel looks idle, BUT another waiting device already transmitted without you realizing it yet due to propagation delay.
      • If collision, wait random time & try again!
B and C both sense the channel busy during frame A.1; both see it idle at the same instant and send frames B.1 and C.1 together: collision

Source: csma-1-persistent-collision.tex

Non-persistent CSMA (non-aggressive tx)

Principle:

  • If channel is busy, sense again after a random back-off interval.
  • If idle, transmit.
B senses the channel busy during frame A.1, waits a random time, senses again, and transmits frame B.1 when it finds the channel idle

Source: csma-non-persistent.tex

  • Most likely, waiting devices sense at different times
    • Lower collision probability (more throughput)
    • BUT delay can be longer (channel becomes idle but not immediately getting busy)
      • Channel may remain idle even if data is ready.

Example of 2 devices tryin’ to gain access:

Lecture slide: A transmits; B and C sense it busy and back off by different random times. C senses idle first and transmits; B senses busy again and waits; after C finishes, B senses idle and transmits

Redrawn from a lecture slide in my notes. Source: csma-non-persistent-example.tex

p-persistent CSMA (adjustable aggressivity)

Principle:

  • Slotted time
  • Channel busy →\rightarrow wait until idle
  • Channel idle →\rightarrow transmit with probability pp
    • Defer transmission to the next slot with prob. q=1−pq = 1 - p
Lecture slide: B senses continuously while A transmits; when the channel goes idle, B transmits with probability p in each slot or defers to the next slot with probability q

Redrawn from a lecture slide in my notes. Source: csma-p-persistent.tex

  • All waiting devices sense if channel is idle
    • If idle, transmit with pp prob. →\rightarrow lower collision rate than 1-persistent!
    • Low pp →\rightarrow low prob. of collision, BUT longer waiting periods (like in non-persistent)
    • High pp →\rightarrow high prob. of collision, shorter waiting.
    • If p=1p = 1, it is identical to 1-persistent (except for slotted time).

Example of 2 devices tryin’ to gain access:

Lecture slide: B and C sense A busy. In the first idle slot neither transmits; in the next, B transmits and C does not. C senses B busy, then defers one more slot and transmits

Redrawn from a lecture slide in my notes. Source: csma-p-persistent-example.tex

CSMA/Collision Detection (CD)

  • CSMA extension (sense before transmit)
  • Collision:
    • Detect collision while transmitting (e.g. by sig. level measurement)
    • If detected, send out jam signal and all stations must abort transmission to avoid wasting resources.
  • Problem in wireless
    • Only half-duplex operation (only one antenna, cannot listen while transmitting)
    • tx power ≫\gg receive power

CSMA/Collision Avoidance (CA)

Particularly useful because in half-duplex operation, which is common in wireless networks, sensing medium is not possible with just one antenna to detect collisions. ↓\downarrow

  • Sense before transmit
  • If channel is busy, wait
  • If channel is idle, wait Inter Frame Space (IFS)
    • Mitigate signal propagation issue
  • If channel is still idle, wait for Contention Window
    • Random duration (in slots) to reduce collision probability
  • Send frame
  • Wait for ACK
    • If not received within time out, then repeat the procedure
Lecture slide: the station senses continuously while the channel is busy, finds it idle, waits IFS, then a contention window of random slots, sends the frame, then waits for the time-out

Redrawn from a lecture slide in my notes. Source: csma-ca.tex

Limitations of CSMA in wireless

  • Hidden node problem (increase amount of collisions for all CSMAs)
  • Exposed node problem (reduces bandwidth utilization for all CSMAs)

Hidden node

  • Node close to communicating pair, within range of destination node, but out of range of source node, willing to communicate with the destination node
  • Cannot hear ongoing communication →\rightarrow collision
  • Example:
    • AA and CC in communication range of BB
      • AA and CC can communicate with BB
    • AA and CC out of communication range of each other
      • AA and CC cannot communicate with each other
    • AA transmits to BB, but CC does not hear it (too far from AA)
    • CC sees the channel idle and transmits to BB →\rightarrow collision
Two overlapping ranges: A's range covers A and B, C's range covers B and C. A is transmitting to B; C wants to transmit to B and cannot hear A

Redrawn from a lecture slide in my notes. Source: hidden-node.tex

Exposed node

  • Node close to communicating pair within range of source node, but out of range of destination node, willing to communicate with another node
  • Hear ongoing communication →\rightarrow do not transmit even if it could →\rightarrow wasting bandwidth
  • Example:
    • AA and CC in communication range of BB
    • AA and CC out of communication range of each other
    • BB transmits to AA; and CC wants to transmit to DD
    • CC hears B→AB \rightarrow A communication, and thus stays idle
    • CC cannot reach AA (it is too far) so CC could transmit to DD →\rightarrow wasting bandwidth
Two overlapping ranges: B's range covers A, B and C; C's range covers B, C and D. B is transmitting to A; C wants to transmit to D but hears B and stays silent

Redrawn from a lecture slide in my notes. Source: exposed-node.tex

© 2026 Giorgi Aptsiauri. All rights reserved. Do not copy or republish this text or its figures without permission. Online version: https://giorgiaptsiauri.com/notes/wireless-technologies/01-medium-access/