Core Networking · Study deck
MAC Protocols: Sharing the Channel
Picture twenty battery sensors trying to report through one receiver after power returns.
Packet Pete is your guide for this deck.

After studying this chapter
Learning objectives
You will be able to:
- Explain: Every shared-medium MAC design answers the same question with one of three strategies: let transmissions collide and accept the loss, detect a collision while it happens and stop early, or avoid collisions before they start.
- Explain: A contender may sense the channel, choose a random backoff, reserve the medium with control frames, send a data frame, wait for an acknowledgement, expand a retry window, or sleep until a scheduled slot.
- Explain: A door sensor sending a rare alarm can tolerate a different access rule from a motor controller that must report in a bounded time window.
Major section
Start With Who Gets to Talk
A protocol is a shared set of rules for exchanging data.
- IEEE 802.15.4 is one low-power radio and channel-sharing standard.
- Its name alone does not say how the installed devices behave when they all want the channel.
- An idle channel at one sender is not proof that the receiver is free.
Major section
Start With Who Gets to Talk (continued)
The network can retry and report, but the device needs a known rule for a missed deadline.
- This opening does not say that one access method always wins.
- Practitioner compares random, listen-before-send, and scheduled choices.
- If the hard moment no longer fits the promise, change the rule or narrow the promise before release.
Major section
MAC Rules Decide Who Transmits
Medium Access Control, or MAC, is the data-link responsibility that controls access to a shared medium.
- In an IoT network the medium might be a Wi-Fi channel, an IEEE 802.15.4 channel, a sub-GHz LPWAN channel, or a wired bus.
- A good MAC choice is not simply a protocol name.

Major section
MAC Rules Decide Who Transmits (continued)
The MAC decision is local and immediate: listen, wait, transmit, acknowledge, retry, or sleep.
- CSMA/CA shares a channel by listening and backing off.
- TDMA shares a channel by assigning time.
- ALOHA-style access transmits with minimal coordination and accepts collisions when traffic is sparse enough.
- MAC evidence is local but it shapes the whole system.
Major section
MAC Rules Decide Who Transmits (continued)
Wireless radios cannot do this cheaply.
- A door sensor sending a rare alarm can tolerate a different access rule from a motor controller that must report in a bounded time window.
- A battery node that wakes for a few milliseconds cannot afford long idle listening, while a powered gateway can coordinate schedules, acknowledgements, and retries.
- That sequence keeps three ways to handle a collision tied to what is visibly labelled.
Major section
MAC Rules Decide Who Transmits (continued)
The busy-channel branch returns to bounded backoff; the success branch closes only after the selected profile's acknowledgement condition is satisfied.
- A defensible design names the local access rule, the expected traffic shape, the devices that cannot hear one another, and the field evidence that will trigger retesting.
- Every shared-medium MAC design answers the same question with one of three strategies: let transmissions collide and accept the loss, detect a collision while it happens and stop early, or avoid collisions before they start.
- Carrier sensing, random backoff, acknowledgements, and bounded retries help them share moderate traffic without a central schedule.
Major section
MAC Rules Decide Who Transmits (continued)
Carrier sensing before transmission also only proves the channel looked clear to the sender, not that it will stay clear at the receiver—the hidden-terminal problem covered below.
- Access can become predictable and idle listening can fall when synchronization and slot allocation are maintained.
- Bursty traffic with moderate contention and devices that can sense much of the local channel.
- Predictable reporting, bounded latency, or duty-cycled devices that can follow a schedule.
Major section
MAC Rules Decide Who Transmits (continued)
Very sparse, low-duty-cycle telemetry where coordination would cost more than occasional retransmission.
- Its default channel-access rule is CSMA/CA, the same family described above, but 802.15.4 offers it in two forms.
- A non-beacon-enabled network uses unslotted CSMA/CA: every device senses the channel and backs off independently, with no coordinator managing timing—pure contention.
- The lesson for MAC selection is not that 802.15.4 is the answer.
Major section
Choose MAC Rules from Evidence
Hidden terminal problem supplies one named condition;: A carrier-sense range supplies the necessary comparison for hidden terminals make carrier sensing look successful at the sender while the receiver sees a collision.
- Carry: Hidden terminal problem into choose mac rules from evidence; use: C carrier-sense range as its limiting condition.
Major section
Choose MAC Rules from Evidence (continued)
The visual's third anchor,: C carrier-sense range, completes hidden terminals make carrier sensing look successful at the sender while the receiver sees a collision.
- Periodic traffic can use schedules; irregular traffic may need contention or event slots.
- Using a fixed schedule with no event or shared capacity, which may waste slots or delay unpredictable alarms.
- Hidden terminals may need RTS/CTS, placement changes, more gateways, or scheduled access.
Major section
Choose MAC Rules from Evidence (continued)
Assuming low average utilization means collisions will be rare.
- Worst-case wait, backoff distribution, retransmission time, and queueing under bursts.
- Safety or control messages need bounded access, priority, or a separate path.
- Sleeping outside a scheduled slot can save power, but missed synchronization can be costly.
- A warehouse has periodic inventory sensors behind metal shelving.
Major section
Choose MAC Rules from Evidence (continued)
The average channel load is low, but sensors on opposite aisles cannot hear each other and both can reach the gateway.
- Basic CSMA/CA without receiver-coordinated reservation may still lose frames because each hidden sensor believes the channel is idle.
- Improve Visibility Move gateways, add gateways, or adjust antennas so more nodes can hear each other and the coordinator has cleaner reception.
- Its diagram makes RTS/CTS: reserve airtime across a hidden terminal and: Node A explicit within rts/cts helps when a receiver can warn nodes that the sender cannot hear directly.
Major section
MAC Collision and Timing Bounds · Hidden and Exposed Terminals
Under the hood, a MAC protocol is a set of timing and state rules.
- A contender may sense the channel, choose a random backoff, reserve the medium with control frames, send a data frame, wait for an acknowledgement, expand a retry window, or sleep until a scheduled slot.
Major section
Summary · Key Takeaway
MAC protocols decide when a local device may use a shared medium.
- CSMA/CA fits moderate contention when carrier sensing sees enough of the local channel.
- TDMA or scheduled access fits predictable traffic, bounded timing, and duty-cycled devices that can follow a schedule.
- Hidden terminals cause receiver-side collisions; exposed terminals waste spatial reuse.
Deck summary
Key takeaways
A protocol is a shared set of rules for exchanging data.
- The network can retry and report, but the device needs a known rule for a missed deadline.
- Medium Access Control, or MAC, is the data-link responsibility that controls access to a shared medium.
- The MAC decision is local and immediate: listen, wait, transmit, acknowledge, retry, or sleep.
- Wireless radios cannot do this cheaply.
Retrieval practice
Recall check 1 of 3

Packet Pete says: answer from memory, then check your reasoning.
Q1Which MAC choice is the strongest fit for battery-powered sensors that report on a predictable interval and need bounded delivery timing?
Show answer
Answer: A MAC selection starts with traffic timing, contention, synchronization cost, and energy behavior.
Retrieval practice
Recall check 2 of 3

Packet Pete says: answer from memory, then check your reasoning.
Q2A Zigbee warehouse network has low average channel load but loses many reports because sensors behind metal shelves cannot hear each other while both can reach the gateway. Which explanation and response are most defensible?
Show answer
Answer: A Hidden terminals are diagnosed from receiver-side collisions that carrier sensing at the senders cannot prevent.
Retrieval practice
Recall check 3 of 3

Packet Pete says: answer from memory, then check your reasoning.
Q3Which evidence best supports a claim that a MAC design is ready for a production IoT deployment?
Show answer
Answer: C MAC evidence must connect protocol mechanics to traffic, geometry, timing, energy, and field retest conditions.
Print reference
Answers
Answer key.
- A · MAC selection starts with traffic timing, contention, synchronization cost, and energy behavior.
- A · Hidden terminals are diagnosed from receiver-side collisions that carrier sensing at the senders cannot prevent.
- C · MAC evidence must connect protocol mechanics to traffic, geometry, timing, energy, and field retest conditions.