Past exam question: Assignment 3, Q17
Open in the Padhaiko appQuestion
Describe Bluetooth & Wi-Fi in detail with frame structure & protocol stack.
Solution
Bluetooth (IEEE 802.15.1) — Architecture, Protocol Stack & Frame Structure:
- Overview: Short-range Wireless Personal Area Network (WPAN) operating in the ISM band using Frequency-Hopping Spread Spectrum (FHSS) ( across 79 channels of ). Nodes form a piconet ( Master + up to active Slaves; overlapping piconets form a scatternet).
- Protocol Stack:
- Radio Layer: RF modulation (GFSK) and FHSS transmission.
- Baseband & Link Manager Protocol (LMP): Piconet synchronization, packet framing, error correction, link setup, authentication, and encryption.
- Host Controller Interface (HCI): Standardized command/data interface between baseband controller and host CPU.
- L2CAP (Logical Link Control and Adaptation Protocol): Protocol multiplexing, packet segmentation/reassembly, and QoS.
- RFCOMM / SDP / Profiles: Serial port emulation (
RFCOMM), Service Discovery (SDP), and application profiles.
Protocol Stack: Baseband Packet Frame:
+--------------------------------+ +------------+--------+---------+
| Application / Profiles | | Access Code| Header | Payload |
+--------------------------------+ | (72 bits) |(54 bit)|(0-2745b)|
| RFCOMM | SDP | Audio / Control | +------------+--------+---------+
+--------------------------------+
| L2CAP (Multiplexing / SAR) | Header (18 bits x 3 FEC):
+--------------------------------+ [AM_ADDR(3)|TYPE(4)|FLOW(1)|ARQN(1)|SEQN(1)|HEC(8)]
| HCI (Host Controller Interface)|
+--------------------------------+
| LMP & Baseband | Radio (2.4GHz)|
+--------------------------------+Wi-Fi (IEEE 802.11) — Architecture, Protocol Stack & MAC Frame Structure:
- Overview: Wireless Local Area Network (WLAN) operating in the (
802.11b/g/n) and (802.11a/n/ac) bands using DSSS / OFDM / MIMO-OFDM modulation with data rates from (802.11b) up to (802.11a/g) and (802.11n). Medium access uses CSMA/CA (Collision Avoidance with RTS/CTS and ACKs). Stations connect through an Access Point (AP) in a Basic Service Set (BSS) or peer-to-peer (IBSS). - Protocol Stack:
- Physical Layer (PHY): Split into PLCP (Physical Layer Convergence Protocol — adds preamble/header) and PMD (Physical Medium Dependent — modulation/RF).
- MAC Sublayer (Data Link): CSMA/CA channel access, addressing, fragmentation, beacon/association management, and WEP/WPA security.
- LLC (IEEE 802.2): Interfaces MAC to upper TCP/IP network layers and applications.
Protocol Stack:
+--------------------------------------+
| Applications / TCP / IP |
+--------------------------------------+
| Logical Link Control (IEEE 802.2) |
+--------------------------------------+
| IEEE 802.11 MAC (CSMA/CA, Security) |
+--------------------------------------+
| PLCP | PMD (IEEE 802.11 PHY Layer) |
+--------------------------------------+
IEEE 802.11 MAC Frame Format (bytes):
| Frame Ctrl(2) | Dur/ID(2) | Addr1(6) | Addr2(6) | Addr3(6) | SeqCtrl(2) | Addr4(6) | Body(0-2312) | FCS/CRC(4) |- Key Frame Fields: Frame Control (version, Type
00/01/10Management/Control/Data, Subtype,To DS/From DS, Retry, Power Mgmt, WEP), Duration/ID (NAV channel reservation), Addr1–4 (48-bit MAC addresses), Sequence Control (duplicate/fragment tracking), Data Body, and 32-bit CRC (FCS).
Answer:
Bluetooth (IEEE 802.15.1) is a FHSS WPAN forming master–slave piconets, with a stack of Radio Baseband/LMP HCI L2CAP RFCOMM/SDP/Profiles and packets composed of Access Code (72 b) + Header (54 b) + Payload. Wi-Fi (IEEE 802.11) is a CSMA/CA WLAN using a stack of PHY (PMD/PLCP) MAC LLC (802.2) TCP/IP and MAC frames containing Frame Control, Duration/ID, Addresses 1–4, Sequence Control, Data Payload, and 32-bit CRC.