Lecture 7 - Wireless Communications and Protocols
Internet of Things (IoT)
- Handwritten note: A key technology is "wireless communication"
- A network of physical objects (Things) embedded with sensors, actuators, and software to connect, collect, and exchange data over the internet.
- These Smart Things provide intelligent services by bridging the gap between the physical and digital worlds, often automating daily tasks.
- Application domains shown in the figure (all connected through a central Network):
- Consumer & Home
- Smart Infrastructure
- Security & Surveillance
- Healthcare
- Transportation
- Retail
- Industrial
- Others (e.g., agriculture automation, wireless sensor networks)
- Handwritten note: devices can talk via cable or via wireless communication (e.g., WiFi) → this lecture focuses on the wireless part.
Analogy: IoT is like giving everyday objects a "nervous system" — sensors are the nerves that feel, actuators are the muscles that act, and wireless communication is the signal travelling along the nerves to the brain (the cloud).

(IoT application domains diagram)
IoT Building Blocks
- Handwritten question: Where do we use wireless communications in IoT?
- An end-to-end IoT system is built from five essential components:
- Smart Devices – The sensors and actuators that interact with the physical world.
- IoT Gateway – The bridge that connects devices to the cloud.
- IoT Cloud – For scalable data storage and management.
- Data Analytics – The brain that processes data and finds insights.
- User Application – The interface that delivers value to the end-user.
- Flow in the figure: Smart Thing → IoT Gateway → Internet/Intranet → Cloud → IoT Analytics → IoT App
- Smart Thing ↔ Gateway link uses: Wi-Fi, Z-Wave, BLE, Zigbee, … ← this is where wireless comm. is mainly used
- Gateway ↔ Internet link uses: LAN, WAN
Analogy: Think of a postal system — the smart device writes the letter, the gateway is the local post office, the internet is the highway, the cloud is the central sorting warehouse, analytics reads and summarizes the letters, and the app is the report delivered to your door.

(IoT building blocks pipeline)
IoT Perspective
- Handwritten question: Where do we use wireless communications in IoT?
- 1) IoT as a simple block diagram
- Thing → Gateway → Cloud → Analytics → User Interface
- 2) IoT as a component diagram
- Sensor (input) and Actuator (output) attach to Things
- Multiple Things ↔ a Gateway (two-way)
- Multiple Gateways ↔ Cloud/Server, which contains:
- Database → Processing ↔ User Interface
- Processing can send commands back to the Gateways
- 3) IoT as a data flow diagram
- Data Creation → Data Communication → Data Aggregation → Data Analysis → Visualization/Actions

(IoT component diagram)
Outlines
- Fundamentals of Wireless Communications
- Radio Frequency Signals: Power and Propagation
- Duplexing and Multiple Access Techniques
- IoT Communication Protocols
- Handwritten note:
- Topics 1–3 → technical & theoretical details
- Topic 4 → categories (of protocols)
1. Fundamentals of Wireless Communications
1.1 Basic Tx-Rx Components
- Basic components: Transmitter → Antenna cable → Antenna (Intentional Radiator, IR) → Radio waves (EIRP) → Antenna → Antenna cable → Receiver
- Handwritten note: the radio wave is a sinusoidal wave
- Transmitter (Tx): When receiving data, the transmitter combines the data with the carrier signal by using modulation. The modulated signal is then sent to an antenna through an antenna cable.
- Antenna at the transmitter: The antenna amplifies the modulated signal and radiates (sends) it as radio waves.
- Antenna at the receiver: The antenna captures the radio wave, amplifies it, and converts it to a signal.
- Receiver (Rx): The receiver takes a signal obtained from the antenna and then recovers the original data by using demodulation.

(Basic Tx-Rx components diagram)
- Summary of the idea:
- We want to send our data (bits) from a device (transmitter – Tx) to another device (receiver – Rx) over wireless channels.
- We need a carrier signal (modeled as a sine wave).
- The technique to put our data on the carrier signal is called modulation.
- The signal sent from Tx to Rx is referred to as a radio frequency (RF) signal/wave.
- Block diagram:
- Transmitter: Message ⊗ Carrier → (Modulation) → antenna → RF Signal
- Receiver: antenna → (Demodulation) ⊗ Carrier → Message
Analogy: The Tx antenna is like a loudspeaker and the Rx antenna is like a microphone. The transmitter "speaks" your data in the language of radio waves, and the receiver "listens" and translates it back.

(Modulation / demodulation block diagram)
1.2 Radio Frequency (RF) Signals
- An RF signal is a signal that is sent between a transmitter and a receiver via antennas.
- An RF signal radiates away from the antenna in a continuous pattern that is governed by certain properties such as wavelength, frequency, amplitude, and phase.
- An RF signal is generally modeled as a sine wave:
- where:
- = amplitude
- = frequency
- = phase
- = time

(Sine wave)
1.3 Radio Frequency (RF) Characteristics
- An RF signal/wave is characterized by its wavelength, frequency, amplitude, and phase.
Wavelength ()
- The distance between two successive peaks or two successive valleys of a wave pattern.
- Unit: cm, m
Amplitude ()
- The height of the RF signal (measured from 0 to peak).
- It refers to the signal strength/power.
Analogy: Picture ocean waves — wavelength is the distance from one crest to the next; amplitude is how tall each wave is (a taller wave = a "louder"/stronger signal).

(Wavelength and amplitude diagram)
Frequency ()
- Frequency is equal to the number of cycles in one second. Its unit is hertz (Hz).
- A cycle refers to a segment of the RF wave between a point and the next similar point on the RF wave.
- Handwritten example: 6 cycles in 1 second → Hz
- Examples:
- 1 hertz (Hz) = 1 cycle per second
- 1 kilohertz (kHz) = 1000 cycles per second
- 2.4 gigahertz (GHz) = cycles per second
Analogy: Frequency is like how many times per second you clap. Clapping 6 times in a second = 6 Hz. Wi-Fi "claps" 2.4 billion times per second!

(High frequency radio wave (cycles in 1 second))
Phase ()
- Phase is a relationship between two or more signals that share the same frequency.
- Phase is generally measured in degrees.
- If the peaks of two signals with the same frequency are in exact alignment at the same time → in phase.
- If the peaks of two signals with the same frequency are not in exact alignment at the same time → out of phase.
- If the peak of one signal is in exact alignment with the valley of the other → 180 degrees out of phase.
- Figure shows: Main signal (reference signal), In-phase signal, 90° out-of-phase signal, 180° out-of-phase signal.
Analogy: Two people walking side by side. If they step with the left foot at the same time, they're "in phase". If one is half a step behind, they're out of phase. If one steps left exactly when the other steps right, they're 180° out of phase.

(Phase comparison diagram)
Relationship between Frequency and Wavelength
-
= speed of light m/s m/s
-
= frequency (Hz)
-
= wavelength (meter)
-
Higher frequency → shorter wavelength (inversely proportional)
-
Example 1 (Radio tower, WSB-AM): kHz Hz
- Example 2 (Satellite): GHz Hz
Analogy: Imagine people walking at a fixed speed (speed of light). If they take more steps per second (higher frequency), each step must be shorter (smaller wavelength).

(Radio tower vs satellite wavelength)
1.4 Electromagnetic (EM) Spectrum
- Handwritten: — the determines where the wave sits on the spectrum.
- An RF signal is an electromagnetic wave occurring at a frequency.
- Handwritten note: different frequency → different name
- Electromagnetic (EM) spectrum is the range of all possible electromagnetic radiation (radio frequencies).
- From longer wavelength / lower frequency → shorter wavelength / higher frequency:
- Radio waves → Microwaves → Infrared → Visible → Ultraviolet → "Soft" X-rays → "Hard" X-rays → Gamma rays
- Size of a wavelength comparison: soccer field → house → baseball → the period → cell → bacteria → virus → protein → water molecule
- Sources: AM radio, RF cavity, FM radio, microwave oven, radar, people, light bulb, X-ray machines, radioactive elements
- Frequency table (from the slide):
| Frequency (Hz) | Notation | Name |
|---|---|---|
| – | Cosmic Rays | |
| – | Gamma Rays | |
| – | X-Rays | |
| – | Ultraviolet Light | |
| Visible Light / Infrared Light | ||
| 100 GHz | Infrared Light | |
| 10 GHz | (5 GHz Wireless) | |
| 1 GHz | Microwave and Radar (2.4 GHz Wireless) | |
| 100 MHz | Television and FM Radio | |
| 10 MHz | Shortwave Radio | |
| 1 MHz | AM Radio | |
| 100 kHz | Low Frequency Radio | |
| 10 kHz | Low Frequency Radio | |
| – | 1 kHz – 100 Hz | Sound |
| – | 10 Hz – 0 Hz | Subsonic |
- The band from about to + Hz is Radio Frequencies (RF) → handwritten: frequency bands used in wireless communication
Analogy: The EM spectrum is like a piano keyboard. Every key is the same "type" of thing (a vibration), but low keys and high keys have different names and uses. Wireless communication only plays on the "radio" section of the keyboard.

(EM spectrum chart)
1.5 Modulation and Demodulation
- Handwritten question: How could we send data by using RF signals?
- Modulation is a technique (working at the transmitter) to **put our data (bits) on the carrier signal (RF signal)**and then send it to the receiver.
- Demodulation is a technique (working at the receiver) to recover the data (bits) from the received signal.
- Diagram: Message → Modulation (× Carrier) → RF Signal → Demodulation (× Carrier) → Message
Analogy (from the handwritten drawing): The message is a passenger 🧍 and the carrier is a car 🚗. Modulation = the passenger gets into the car. The car drives across (RF signal). Demodulation = the passenger gets out of the car at the destination.

(Modulation/demodulation with car analogy)
1.6 Types of Modulation
- Broadly speaking, there are three types of modulation:
Amplitude-Shift Keying (ASK)
- ASK varies the amplitude (height) of a signal to represent the binary data.
- e.g., bit
1→ tall wave, bit0→ short wave

(ASK waveform (0 1 0 0 1 0 1 1))
Frequency-Shift Keying (FSK)
- FSK varies the frequency of the signal to represent the binary data.
- e.g., bit
1→ tightly packed (high-frequency) wave, bit0→ spread-out (low-frequency) wave

(FSK waveform (0 1 0 0 1 0 1 1))
Phase-Shift Keying (PSK)
- PSK varies the phase of the signal to represent the binary data.
- e.g., a phase flip at the bit boundary indicates a change of bit value

(PSK waveform (0 1 0 0 1 0 1 1))
Analogy: Sending Morse code with a flashlight:
- ASK = bright vs dim light
- FSK = fast blinking vs slow blinking
- PSK = same blinking speed, but you "skip a beat" (shift the timing) to signal a change
| Type | What changes | Kept constant |
|---|---|---|
| ASK | Amplitude | , |
| FSK | Frequency | , |
| PSK | Phase | , |
2. Radio Frequency Signals: Power and Propagation
2.1 Units of Power and Units of Comparison
- Quality of a radio frequency (RF) signal/wave can be measured as power (watt).
- Handwritten note: In wireless communication, the distance between Tx and Rx matters (e.g., 1 m, 100 m, 1000 m) — power drops with distance.
Absolute vs Relative Units
- Units of power (absolute units): used to measure transmission amplitude and received amplitude.
- Units of transmit or received power measurements are absolute power measurements.
- Examples: watt (W), milliwatt (mW)
- Units of comparison (relative units): used to measure how much gain or loss occurs because of the introduction of cabling or an antenna.
- Also used to represent a difference in power from point A to point B.
- Units of comparison are measurements of change in power.
- Examples: decibel (dB), decibels relative to an isotropic radiator (dBi), and decibels relative to a half-wave dipole antenna (dBd).
Analogy (from the handwritten drawing): A person's height of 170 cm is an absolute unit. Saying "the taller person (190 cm) is 20 cm taller" than the other (170 cm) is a relative unit — it only describes the difference.

(Absolute vs relative height drawing)
Decibel (dB)
- The dB can be used as both a unit of power and a unit of comparison.
- As a unit of power (compared to 1 watt):
-
where is the power of A in watts.
-
As a unit of comparison: represents a difference between two values (a relative expression / measurement of change in power).
-
To express how much the power is larger than in dB — 2 approaches:
-
where , are in watts and , are in dB.
- Positive →
- Negative →
- Zero →
-
Converting back from dB to W:
Analogy: dB is a "compressed ruler" for power. Instead of writing 1, 10, 100, 1000, 10000 W, you write 0, 10, 20, 30, 40 dB. Multiplication of power turns into simple addition of dB.
Example (Slide 23)
- a) If W, find in dB.
- b) If dB, find in watts.
- c) If W and W, how much is larger than in dB?
- or: dB ✅
dBm
- dBm means decibels relative to 1 milliwatt. So 0 dBm = 1 mW.
-
where is the power of A in watts and is the power of A in milliwatts.
-
Converting back from dBm to mW:
- Relationship between dB and dBm — 2 approaches:
- The difference between two powers in dBm is in the unit of dB:
- Handwritten note: these two differences are equivalent.
Analogy: dB vs dBm is like measuring height from the floor vs from a 30 cm step. The absolute numbers differ by 30, but the difference between two people is the same either way.
Example (Slide 25)
-
a) If W, find in dBm.
- dB →
-
b) If dBm, how much is in dB and watts?
- ( mW)
-
c) If mW and mW, how much is larger than in dB?
- or: dB ✅
-
Handwritten note: Power of a signal → absolute unit: W, mW, dB, dBm
Power Gain and Loss
- ⭐ Handwritten note: Power gain/loss is always in the unit of dB.
- We use these two terms to generally describe a power characteristic of a device/cable/medium.
- Power gain (in dB): the output power (in dB or dBm) of that device will increase by adding this power gain. It is a positive number.
- Power loss (in dB): the output power (in dB or dBm) of that device will decrease by subtracting this power loss. It is a negative number.
- Rules of thumb (3s and 10s):
- Every +3 dB of gain → double the absolute power (mW)
- Every −3 dB of loss → halve the absolute power (mW)
- Every +10 dB of gain → multiply absolute power (mW) by 10
- Every −10 dB of loss → divide absolute power (mW) by 10
Analogy: Gain is like an amplifier boosting your voice; loss is like a thick wall muffling it. In dB world, you just add the boost and subtract the muffling.
Example (Slide 27)
- Handwritten helper formulas:
- a) Cable with power loss 3 dB, W. Find in W.
- dB
- dB
- (≈ half of 10 W ✅ rule of 3 dB)
- b) Antenna with power gain 10 dB, mW. Find in mW.
- dBm
- dBm
- (= 10 × 100 mW ✅ rule of 10 dB)
2.3 Wave Propagation and Its Behaviors
- The way in which RF waves move from one place to another (wave propagation) can vary drastically depending on the materials.
- RF propagation behaviors include: absorption, reflection, scattering, refraction, diffraction, free space path loss, multipath, attenuation, and gain.
- Figure: Transmitter tower (height ) → Receiver car (height ) at distance , with:
- Direct signal (straight line)
- Scattered signal (off a STOP sign)
- Reflected signal (off a building)
- Diffracted signal (around a building corner)

(Wave propagation behaviors diagram)
Absorption
- The most common RF behavior. Most materials will absorb some amount of an RF signal to varying degrees(signal strength is lowered when passing through a material).
- Brick and concrete walls absorb significantly; drywall absorbs to a lesser degree.
- A 2.4 GHz signal will be 1/16 the original power after propagating through a brick wall.
- Figure: RF signal 20 dBm → Wall → 5 dBm (i.e., a 15 dB loss)
Analogy: Like a sponge soaking up water — thick concrete is a big sponge, drywall is a thin one.

(Absorption through wall)
Reflection
- When a wave hits a smooth object that is larger than the wave itself (wavelength), depending on the media, the wave may bounce in another direction.
- Microwave reflection: Microwave signals exist between 1 GHz and 300 GHz. Being higher frequency, they have much smaller wavelengths (hence "micro"wave). Microwaves can bounce off smaller objects like a metal door.
Analogy: Like a ball bouncing off a flat wall, or light bouncing off a mirror.
Scattering
- Can most easily be described as multiple reflections.
- These multiple reflections occur when the signal hits an uneven/non-smooth surface object.
Analogy: Throwing a handful of marbles onto a rocky surface — they bounce in all directions.
Diffraction
- The bending of an RF signal around an object (for example, at its corner).
Analogy: Like hearing someone talk from around a corner — the sound "bends" around the edge.
Refraction
- The bending of an RF signal as it passes through a medium with a different density, causing the direction of the wave to change.
- RF refraction most commonly occurs as a result of atmospheric conditions (e.g., a cool pool of air bends the signal).
Analogy: Like a straw looking "bent" in a glass of water — light changes direction when moving from air into water.

(Refraction through cool air)
Loss / Attenuation
- Described as the decrease of amplitude or signal strength.
- A signal will lose strength when propagating through a medium (wire, air) or an object.
- Loss is generally specified as a negative value in dB (refers to the signal power).
- Figure: 20 dBm → Wall → 5 dBm
- Typical attenuation at 2.4 GHz:
| Material | 2.4 GHz |
|---|---|
| Foundation wall | −15 dB |
| Brick, concrete, concrete blocks | −12 dB |
| Elevator or metal obstacle | −10 dB |
| Metal rack | −6 dB |
| Drywall or sheetrock | −3 dB |
| Nontinted glass windows | −3 dB |
| Wood door | −3 dB |
| Cubicle wall | −2 dB |
- 💡 Link to the rule of 3s & 10s: −12 dB ≈ of the power → matches "brick wall = 1/16 power".
Free Space Path Loss (FSPL)
- Handwritten note: a simple model
- FSPL is the loss of signal strength because of the signal travelling from one point to another in a free space.
- A large travelling distance and/or a high frequency cause a large loss:
- where:
- = path loss in dB ⭐
- = frequency in MHz ⭐
- = travelling distance (between Tx and Rx) in km ⭐
- ⚠️ FSPL computed here is the magnitude of the loss. When using it, add a negative sign (−) in front of it.
Analogy: Like the ripple from a stone dropped in a pond — as it spreads out further, each part of the ripple gets weaker, even with nothing blocking it.
Example (Slide 35)
- Compute the FSPL of 2.4 GHz WiFi where the Tx–Rx distance is 100 meters.
- Convert units: MHz, km
- As a loss:
2.4 Received Signal Strength and Sensitivity
Received Signal Strength
- Measured at the receiver, in dBm. A high received signal strength is preferred.
| Signal Strength | TL;DR | Description | Required for |
|---|---|---|---|
| −30 dBm | Amazing | Max achievable signal strength. Client can only be a few feet from the AP. Not typical or desirable in the real world. | N/A |
| −67 dBm | Very Good | Minimum signal strength for applications that require very reliable, timely delivery of data packets. | VoIP/VoWiFi, streaming video |
| −70 dBm | Okay | Minimum signal strength for reliable packet delivery. | Email, web |
| −80 dBm | Not Good | Minimum signal strength for basic connectivity. Packet delivery may be unreliable. | N/A |
| −90 dBm | Unusable | Approaching or drowning in the noise floor. Any functionality is highly unlikely. | N/A |
- 💡 Remember: closer to 0 = stronger (−30 dBm > −90 dBm)
Receive Sensitivity
- Handwritten note: = minimum acceptable received power
- The power level of an RF signal required to be successfully received by the receiver.
- The lower the power level that the receiver can successfully process, the better the receive sensitivity.
- WiFi vendors usually specify receive sensitivity thresholds at various data rates (example for a 2.4 GHz radio):
| Data rate | Received signal amplitude |
|---|---|
| 54 Mbps | −79 dBm |
| 48 Mbps | −80 dBm |
| 36 Mbps | −85 dBm |
| 24 Mbps | −87 dBm |
| 18 Mbps | −90 dBm |
- Handwritten note: Higher data rate requires higher received signal amplitude (higher received power).
Analogy: Receive sensitivity is like how quietly someone can whisper and you still understand them. Good ears (good sensitivity) can hear very quiet whispers. But if they talk fast (high data rate), you need them to speak louder to catch every word.
Noise Floor
- The ambient or background level of radio energy on a specific channel (a range of frequencies).
- This background noise is created from many devices/equipment radiating signals on the same frequency band.
- For the 2.4 GHz band (WiFi), it comes from microwave ovens, portable telephones, and WiFi signals from other devices.
- e.g., the noise floor of a 2.4 GHz ISM (industrial, scientific, and medical) channel might be about −100 dBmin a typical environment.
Analogy: The noise floor is the background chatter in a busy café.
Signal-to-Noise Ratio (SNR)
- The difference in decibels between the received signal and the background noise level (noise floor). (SNR indicates how good the signal quality is.)
- Example: received signal = −85 dBm, noise floor = −100 dBm →
- A higher SNR is preferred:
- SNR ≥ 25 dB → good signal quality
- SNR ≤ 10 dB → very poor signal quality
Analogy: SNR is how much louder your friend's voice is than the café chatter. If they're much louder (high SNR), you understand easily; if they're barely above the chatter (low SNR), you miss words.

(SNR vs noise floor diagram)
3. Duplexing and Multiple Access Techniques
3.1 Duplexing
- We consider a star topology: a base station (or access point) and user devices (or mobile stations, MS). The base station acts as a middleman relaying user data via two types of links:
- A user device sends data to the base station via the uplink or reverse link.
- A user device receives data from the base station via the downlink or forward link.

(Base station with MS1 and MS2)
- Handwritten scenario: One pair of communication
- ESP32 or phone → Access Point = uplink / reverse link
- Access Point → ESP32 or phone = downlink / forward link

(One-pair communication sketch (ESP32 ↔ Access Point))
- Duplexing is a technique to manage uplink and downlink. Two basic types:
- Frequency Division Duplexing (FDD): gives one frequency band to the uplink and another frequency band to the downlink.
- A user device can send and receive data at the same time → ⭐ full duplexing
- Time Division Duplexing (TDD): gives one time slot to the uplink and another time slot to the downlink.
- A user device cannot send and receive at the same time → ⭐ half duplexing
- However, TDD is bandwidth-efficient (uplink and downlink share one frequency band).
- Frequency Division Duplexing (FDD): gives one frequency band to the uplink and another frequency band to the downlink.
- Figure: (a) Reverse vs forward channel separated in frequency; (b) separated in time
| FDD | TDD | |
|---|---|---|
| Separates up/down by | Frequency | Time |
| Send & receive simultaneously? | ✅ Yes (full duplex) | ❌ No (half duplex) |
| Bandwidth efficiency | Uses two bands | More efficient (one shared band) |
Analogy: FDD is a two-lane road — cars go both ways at once. TDD is a one-lane bridge with a traffic light — cars take turns going each way, but you only need to build one lane.

(FDD vs TDD diagram)
3.2 Multiple Access
- Multiple access concerns how user devices and stations could share a channel link to send or receive data.
- ⭐ Rule: Two or more users cannot send data/signal on both the same time slot and the same frequency.
- Two or more users can send on the same time slots but different frequencies.
- Two or more users can send on different time slots but the same frequency.
- ⭐ If parts of two or more data packets collide in both the time and frequency domain → packet collisions happen and the user(s) will not receive the data.
- Handwritten note: Packet collision = unsuccessful transmission → try to send the data again.
- Figure: MS 1, MS 2, MS 3, MS 4, …, MS n all sharing one shared multiple access channel
Analogy: A classroom discussion. If two students speak at the same time (same time slot) in the same room (same frequency), nobody understands either — that's a collision. They can either take turns (different time) or go to different rooms (different frequency).

(Shared multiple access channel)
- Handwritten scenario: Multiple Access — several users/phones/end devices connecting to one Access Point (and another group to another Access Point).

(Multiple access sketch)
Two Types of Multiple Access Techniques
- Contention-free protocols (centralized access): The base station knows in advance which user devices will send/receive data and plans ahead to avoid packet collisions. Mainly applied in mobile phone systems.
- Contention-based protocols (random access): The base station is not aware of which user devices are going to send/receive data. The user devices themselves take care of how to send/receive data successfully. Mainly applied in Wi-Fi systems.
Analogy: Contention-free = a restaurant with reservations (the host plans every table in advance). Contention-based = a food court (everyone grabs a free seat themselves, and sometimes two people go for the same seat).
Classification Tree
- Multiple-access protocols
- Contention-based
- Random access: ALOHA, CSMA, BTMA, ISMA, etc.
- Collision resolution: TREE, WINDOW, etc.
- Conflict-free
- FDMA, TDMA, CDMA, Token bus, DQDB, etc.
- Contention-based

(Multiple-access protocols tree)
3.3 Contention-free Protocols
- Two basic contention-free protocols:
a) Frequency Division Multiple Access (FDMA)
- Each user sends his/her data (signal) on an exclusive frequency.
- Uplink (reverse channels): MS #1 → , MS #2 → , …, MS #n →
- Downlink (forward channels): BS →
- BS = Base Station (handwritten: also an access point)
- Reverse channels and forward channels are separated by a protecting bandwidth (guard band).
Analogy: Radio stations — each one has its own frequency (e.g., 95.5, 101.0), so they all broadcast at the same time without interfering.

(FDMA diagram)
b) Time Division Multiple Access (TDMA)
- Each user sends his/her data (signal) on an exclusive time slot.
- Time is divided into frames; each frame has slots #1, #2, …, #n — one per MS.
- Uplink uses frequency ; downlink uses frequency .
Analogy: Taking turns on a single microphone — everyone gets their own few seconds in each round.

(TDMA diagram)
3.4 Contention-based Protocols
- Two basic contention-based protocols:
a) Pure ALOHA
- When a sender has a packet to transmit, it transmits the packet right away.
- The sender then waits to see whether the transmission is acknowledged by the receiver.
- i. If the sender receives an acknowledgment → transmission successful.
- ii. If no acknowledgment → transmission failed (a packet collision happens). The sender will retransmit the packet after some random waiting time.
- Successful rate = 18.4% (no packet collision)
- Figure: MS 2 and MS 3 packets partially overlap → collision → each waits a random time → retransmission. Vulnerable window spans from to (packet length ).
Analogy: People in a group chat shouting whenever they want. If two shout at once, both stop, wait a random moment, and try again.

(Pure ALOHA timing diagram)
b) Slotted ALOHA
- Time is divided into time slots equal to the packet length.
- When a sender has a packet, it waits until the beginning of the next slot before sending.
- Then the sender waits to see whether the transmission is acknowledged.
- i. Acknowledgment received → successful.
- ii. No acknowledgment → failed (packet collision). The sender retransmits after some random waiting time (must send at the beginning of a slot).
- Successful rate = 36.8% (no packet collision) → double that of Pure ALOHA
- Figure: MS 2 & 3 packets start in the same slot → full collision → each waits a random number of slots → retransmit.
Analogy: Same group chat, but you're only allowed to start talking when a bell rings. Collisions still happen if two people start at the same bell, but there are no more "half-overlapping" collisions — so success roughly doubles.
| Pure ALOHA | Slotted ALOHA | |
|---|---|---|
| When to send | Immediately | At the start of the next slot |
| Collision type | Full or partial overlap | Full overlap only |
| Max success rate | 18.4% | 36.8% |

(Slotted ALOHA timing diagram)
4. IoT Communication Protocols
- Pipeline: Smart Thing → IoT Gateway → Internet/Intranet → Cloud → IoT Analytics → IoT App
- Smart Thing ↔ Gateway: Wi-Fi, Z-Wave, BLE, Zigbee, …
- Gateway ↔ Internet: LAN, WAN

(IoT pipeline)
4.1 Physical-Layer Protocols
- Physical-layer protocols are the lowest layer in the OSI (Open Systems Interconnection) model.
- They define how raw bits of data (0s and 1s) are physically transmitted over a communication channel, such as a cable, fiber, or radio wave.
- List:
- Bluetooth
- Z-wave
- IEEE 802.15.4
- ZigBee
- 6LoWPAN
- WiFi (IEEE 802.11) ⭐
- IEEE 802.11ah
- LoRa
- NB-IoT
- Cellular
- Handwritten notes:
- Their technical details are out of scope of this course.
- ⭐ We would like to classify them into categories.
4.2 Choosing the Right Physical-Layer Protocols
| No | Topic | Detail |
|---|---|---|
| 1 | The Challenge | There is no single "best" communication protocol for IoT. The right choice depends entirely on the specific needs of the application. |
| 2 | A Multi-Faceted Decision | We must evaluate several key factors to select the right technology. |
| 3 | Key Selection Criteria(categories) | 1) Communication Range 2) Frequency Bands (Licensed vs. Unlicensed) 3) Power Consumption 4) Data Rate |
Analogy: Choosing a protocol is like choosing a vehicle. A bicycle (BLE) is cheap and efficient for short trips; a car (Wi-Fi) is fast but uses more fuel; a cargo ship (LoRa/NB-IoT) goes very far slowly with little fuel. There's no "best" vehicle — only the best one for the trip.
4.2.1 Selection Criteria 1: Communication Range
- This layer is about the physical radio technologies that connect our devices. We can categorize them by their communication range (handwritten: = the distance between Tx and Rx):
| Category | Common Range | Typical Example |
|---|---|---|
| WPAN (Wireless Personal Area Network) | Short Range (< 10 m) | RFID, Bluetooth LE, Zigbee, Z-Wave, 6LoWPAN |
| WLAN (Wireless Local Area Network) | Medium Range (~100 m) | Wi-Fi (802.11) |
| WWAN (Wireless Wide Area Network) | Long Range (> 1 km) | Cellular IoT (LTE-M, NB-IoT), LPWAN (LoRaWAN, Sigfox) |
Analogy: WPAN = talking to someone in the same room; WLAN = shouting across a building; WWAN = making a phone call across the city.
4.2.2 Selection Criteria 2: Frequency Bands
| Topic | Description |
|---|---|
| What is the Radio Spectrum/Frequency Band? | The entire range of radio frequencies used for communication. Think of it as a set of invisible highways in the air. |
| Why is it Regulated? | To prevent chaos and interference, the radio spectrum is a highly regulated public resource. International and national bodies allocate specific frequency bands (or "lanes") for different purposes. |
| Key Regulatory Bodies ⭐ | ITU (International Telecommunication Union): a global agency that coordinates spectrum use. FCC (Federal Communications Commission): manages the spectrum within the United States. NBTC (National Broadcasting and Telecommunications Commission): manages the spectrum in Thailand. |
Frequency Band Table
| Band (Acronym) | Frequency | Common Uses |
|---|---|---|
| Very low frequency (VLF) | 10 kHz to 30 kHz | Maritime ship-to-shore |
| Low frequency (LF) | 30 kHz to 300 kHz | Radio location such as LORAN (Long Range Navigation); time signals for clock synchronization (WWVB) |
| Medium frequency (MF) | 300 kHz to 3 MHz | AM radio |
| High frequency (HF) | 3 MHz to 30 MHz | Short wave radio, CB radio |
| Very high frequency (VHF) | 30–144 MHz / 144–174 MHz / 174–328.6 MHz | TV channels 2–6, FM radio / Taxi radios / TV channels 7–13 |
| Ultra high frequency (UHF) | 328.6–806 MHz / 806–960 MHz / 960 MHz–2.3 GHz / 2.3–2.9 GHz | Public safety (fire, police, etc.) / Cellular telephones / Air traffic control radar / WLANs (802.11b/g/n) |
| Super high frequency (SHF) | 2.9 GHz to 30 GHz | WLANs (802.11a/n) |
| Extremely high frequency (EHF) | 30 GHz and above | Radio astronomy |
- Handwritten note: the circled ones (UHF & SHF) are used by mobile phones & WiFi.
Protocol Frequencies
| Protocol | Frequency |
|---|---|
| Bluetooth | 2.400–2.4835 GHz (unlicensed ISM band) |
| Z-wave | 868.42 MHz, 908.42 MHz (unlicensed ISM band) |
| IEEE 802.15.4 | 868 MHz, 915 MHz, and 2400 MHz (unlicensed ISM band) |
| ZigBee | 868 MHz, 915 MHz, and 2400 MHz (unlicensed ISM band) |
| 6LoWPAN | 868 MHz, 915 MHz, and 2400 MHz (unlicensed ISM band) |
| ⭐ IEEE 802.11 (WiFi) | 2.4 GHz and 5 GHz (unlicensed ISM band) |
| IEEE 802.11ah | 315, 433, 470, 868, 915, 928 and 960 MHz (Sub-1 GHz, unlicensed ISM band) |
| LoRa | 433 MHz, 779–787 MHz, 863–870 MHz, and 902–928 MHz (Sub-1 GHz, unlicensed ISM band) |
| NB-IoT | 700 MHz, 800 MHz (licensed band) |
Licensed vs Unlicensed ⭐
- The most important distinction for IoT is whether a technology uses a licensed or unlicensed frequency band.
| Band Type | Analogy | Description | Pros / Cons |
|---|---|---|---|
| Licensed | A Private Toll Road | Frequencies are owned and regulated (e.g., Cellular). Users pay a subscription fee. | ✅ Pro: High reliability, less interference. ❌ Con: Higher cost, dependent on a service provider. |
| Unlicensed | A Public Highway | Frequencies are free to use by anyone, within certain power regulations (e.g., Wi-Fi, Bluetooth). | ✅ Pro: Free to use, easy to deploy. ❌ Con: Prone to interference from other devices. |
Unlicensed Bands ⭐
| Unlicensed Band | Frequency | Total Bandwidth | Common Uses |
|---|---|---|---|
| Industrial, Scientific and Medical (ISM) — WiFi | 902–928 MHz (Americas only); 2.4–2.4835 GHz; 5.725–5.875 GHz | 259.5 MHz | Cordless phones, WLANs, wireless public branch exchanges |
| Unlicensed Personal Communications Systems | 1910–1930 MHz | 20 MHz | WLANs, wireless public branch exchanges |
| Unlicensed National Information Infrastructure (U-NII) | 5.15–5.25 GHz; 5.15–5.25 (Low); 5.25–5.35 GHz (Mid); 5.47–5.725 (Worldwide); 5.725–5.825 GHz (Upper) | 555 MHz | WLANs, wireless public branch exchanges, campus applications, long outdoor links |
| Millimeter Wave | 59–64 GHz | 5 GHz | In-home networking applications |
4.2.3 Selection Criteria 3: Power Consumption
| Topic | Detail |
|---|---|
| Issue | Based on the power source available, there are 2 types of smart devices/gateways (handwritten: IoT end devices): Wired Power – unlimited energy but the device is stationary. Battery Power – enables mobility but requires highly efficient, low-power protocols to maximize battery life (often lasting 5–10 years). |
| Solution | Selecting a wireless protocol suitable for the power consumption is necessary. Standard Wi-Fi consumes a lot of power. LPWAN (Low-Power Wide-Area) technologies were specifically designed for low power consumption. |
Analogy: A wired device is like a house plugged into the grid — use as much power as you want, but it can't move. A battery device is like a hiker with a small water bottle — it must sip carefully to last the whole journey (years!).
4.2.4 Selection Criteria 4: Data Rate
- Data Rate & Throughput: How much data can be sent per second? This must match the application's needs (e.g., a high-definition camera needs a high data rate; a temperature sensor does not).
- Handwritten: 2 keys ⭐
- A characteristic of IoT devices is that a majority of them initiate the communication. Upstream traffic toward an application server is usually more common than downstream traffic from the application server.
- Some nodes might send only one message a day. However, we might have thousands of nodes in that area.
- Handwritten sketch: IoT end device → Access Point = mostly (uplink); Access Point → device = rarely(downlink)
- Sending rate = few messages per day
Analogy: IoT sensors are like thousands of weather stations each mailing one postcard a day to headquarters — each one sends very little, but the total volume is big, and headquarters rarely writes back.

(Uplink-mostly sketch)
Protocol Data Rates
| Protocol | Data rate |
|---|---|
| Bluetooth | 125 kbit/s – 500 kbit/s – 1 Mbit/s – 2 Mbit/s |
| Z-wave | < 100 kbit/s |
| IEEE 802.15.4 | < 250 kbit/s |
| ZigBee | < 250 kbit/s |
| 6LoWPAN | < 250 kbit/s |
| IEEE 802.11 | 1 – 100 Mb/s (or higher) |
| IEEE 802.11ah | 50 kb/s to 15 Mb/s |
| LoRa | 250 b/s – 50 kb/s (for 868 MHz) and 980 b/s – 21.9 kb/s (for 915 MHz) |
| NB-IoT | 200 kb/s |
📌 Quick Formula Summary
- Rules of thumb: +3 dB = ×2, −3 dB = ÷2, +10 dB = ×10, −10 dB = ÷10
- Pure ALOHA = 18.4%, Slotted ALOHA = 36.8%
- FDD = full duplex, TDD = half duplex
- SNR ≥ 25 dB = good, SNR ≤ 10 dB = very poor