Professional Documents
Culture Documents
Lecture 03 MAC
Lecture 03 MAC
Wireless Networks and Mobile Systems ● Discuss how access to the wireless medium is
decided in IEEE 802.11 and Bluetooth networks
● Identify the hidden node and exposed node problems
and how the exchange of control messages can be
Lecture 3 used to mitigate them
● Describe the frame formats for IEEE 802.11 and
Medium Access in WLAN Bluetooth
environment
Agenda
IEEE 802.11 Medium Access
● IEEE 802.11
■ MAC frame format
■ CSMA/CA
■ RTS/CTS ● MAC frame format
■ IEEE 802.11e
● CSMA/CA
● Bluetooth
■ Packet format ● RTS/CTS
■ Links and connection establishment ● IEEE 802.11e
Bytes: 2 2 6 6 6 2 6 0-2312 4
Frm Dur/ Adr Adr Adr Seq Adr Frame
FCS
Data Link Medium Access Control MAC sublayer Cntl ID 1 2 3 Cntl 4 Body
Layer (MAC) sublayer management
Physical Layer
station 2 bits 2 bits 4 bits
convergence procedure
Physical management
(PLCP) sublayer PHY sublayer Protocol
Layer Byte 1 Type Subtype
Physical medium management Version
Dependent (PMD)
sublayer 1 1 1 1 1 1 1 1
To From More Power More
Byte 2 Retry WEP Order
DS DS Frags Mgmt Data
1
Frame Control Field (1) Frame Control Field (2)
● Protocol Version (2 bits) – current version of the ● To/from DS (1 bit each) – flags set when the frame is
standard sent to/from the distribution system
● Type (2 bits) – differentiates among a management ● More Fragment (1 bit) – flag set when more fragments
frame (00), control frame (01), or data frame (10) belonging to the same frame are to follow
● Retry (1 bit) – indicates that this frame is a
● Subtype (4 bits) – further defines the type of frame
retransmission
■ Type 00, subtype 0000 – association request
● Power Management (1 bit) – indicates power
■ Type 00, subtype 0001 – association response
management mode (active, power saving)
■ Type 01, subtype 1011 – RTS
● More data (1 bit) – more frames buffered by station
■ Type 01, subtype 1100 – CTS
for the same destination
■ Type 01, subtype 1101 – ACK
● WEP (1 bit) – payload encrypted with WEP
■ Type 10, subtype 0000 – data
● Order (1 bit) –strictly-ordered service
■ Many others…
2
802.11b Long Preamble PLCP PDU 802.11b Short Preamble PLCP PDU
PLCP PDU (PPDU)
PLCP PDU (PPDU)
128 16 8 8 16 8 58 16 8 8 16 8
SYNC SFD Signal Service Length CRC MPDU
SYNC SFD Signal Service Length CRC MPDU
PLCP PLCP
PLCP PLCP
Preamble Header
Preamble Header
● Compatible with legacy IEEE 802.11 systems
● Preamble (SYNC + Start of Frame Delimiter) allows receiver to ● Not compatible with legacy IEEE 802.11 systems
acquire the signal and synchronize itself with the transmitter
● Signal identifies the modulation scheme, transmission rate
● Length specifies the length of the MPDU (expressed in time to
transmit it)
● No explicit collision detection ● Each station calculates how long it will take to
■ Retransmissions are triggered if ACK is not received transmit its frame (based on data rate and frame
■ Exponential backoff similar to IEEE 802.3 length); this information is included in the Duration
● Optionally, transmitting and receiving nodes can
field of the frame header
■ This information is used by all other stations to set their NAV
exchange control frames to “reserve” the channel
3
Timeline Timeline Discussed
Starts sensing the Cwin = contention window
● DCF = Distributed Coordinated Function
medium (idle)
time ■ Basic access method for 802.11 (uses CSMA/CA)
Source Data
● DIFS = DCF Inter Frame Space
SIFS ■ Stations must listen to an idle medium for at least that
DIFS
amount of time before transmitting
Destination ACK ● SIFS = Short Inter Frame Space
■ Period between reception of the data frame and transmission
DIFS of the ACK
■ SIFS < DIFS
Another Data
station ● What happens if another station starts listening to
the medium exactly during the idle period between
Defers access Pick random backoff
time in [0, Cwin] data transmission and acknowledgment?
Node A Node C
4
IEEE 802.11e Service Differentiation
● MAC enhancements to support quality of service
(QoS) in IEEE 802.11a/b/g
● Defines different categories of traffic
● Each QoS-enabled station marks its traffic according
to its performance requirements
● Stations still contend for the medium, but different
traffic types are associated with different inter frame
spacing and contention window
● Qualitative, comparative QoS (no “guarantees”)
Source: Xtreme Spectrum, “Tradeoff Analysis (802.11e versus 802.15.3
QoS mechanism),” white paper, July 2002.
Packet Format
Bluetooth
● Packet format
● Links and connection establishment ● Packets may consist of
■ Access code only (in which case the access code is 68 bits,
not 72)
■ Access code + header
■ Access code + header + payload
● Note: discussion of BT MAC follows v.1.1 core
specifications
5
Header (2) Header (3)
● TYPE:
● SEQN:
■ Distinguishes between synchronous and
■ Sequence number
asynchronous links, indicates how many slots the
packet will occupy ■ 1 bit is sufficient for very simple ARQ
● FLOW: ● HEC:
■ Asynchronous flow control in asynchronous links ■ Header error check
● ARQN:
■ ACK (ARQN = 1) or NAK (ARQN = 0)
Forming a Scatternet
● A master or slave in one
piconet can become the
slave in another piconet
by being paged by the
master in that piconet
● Example: the master of
piconet 2 is a slave in
piconet 3
● Details not yet defined in
BT specifications