74
Wireless Networked Systems CS 795/895 - Spring 2013 Tamer Nadeem Dept. of Computer Science Lec #3: Medium Access Control Multirate Adaptation, Data Fragmentation, Association/ Authentication, and Roaming

Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Wireless Networked Systems� �

CS 795/895 - Spring 2013 �

Tamer Nadeem �Dept. of Computer Science�

Lec #3: Medium Access Control�Multirate Adaptation, Data Fragmentation, Association/

Authentication, and Roaming

Page 2: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 2 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance Analysis of the IEEE 802.11 Distributed Coordination Function

(Giuseppe Bianchi)

Page 3: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 3 Spring 2013 CS 795/895 - Wireless Networked Systems

802.11 DCF Throughput Analysis (Bianchi)

• Objective: •  Analytical Evaluation of Saturation Throughput

• Assumptions: •  Fixed number of stations having packet for transmission

•  Each packet collide with constant and independent probability

• Model bi-dimensional process {s(t) , b(t)} with discrete-time Markov chain

• Analysis divided into two parts: •  Study the behavior of single station with a Markov model

•  Study the events that occur within a generic slot time & expressed throughput for both Basic & RTS/CTS access method

Page 4: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 4 Spring 2013 CS 795/895 - Wireless Networked Systems

Markov Chain Model

Page 5: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 5 Spring 2013 CS 795/895 - Wireless Networked Systems

•  Closed form solution for Markov chain

Markov Chain Model

•  Stationary Probability

Page 6: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 6 Spring 2013 CS 795/895 - Wireless Networked Systems

•  In general τ depends on conditional collision probability p

Markov Chain Model

• Probability τ that a station transmits in randomly chosen slot time

• When m =0 no exponential backoff is considered probability τ results independent of p

Page 7: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 7 Spring 2013 CS 795/895 - Wireless Networked Systems

Throughput Analysis

• Normalized system throughput S

• Probability of transmission Ptr

• Probability of successful transmission Ps

Page 8: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 8 Spring 2013 CS 795/895 - Wireless Networked Systems

Normalized system throughput

Throughput Analysis

Specify Ts and Tc to compute throughput for DCF access mechanism

Page 9: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 9 Spring 2013 CS 795/895 - Wireless Networked Systems

• Considering System via Basic Access mechanism •  Packet header H = PHYhrd +MAChrd

•  Propagation delay δ

Throughput Analysis

Page 10: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 10 Spring 2013 CS 795/895 - Wireless Networked Systems

• Packet transmission via RTS/CTS Access mechanism

Throughput Analysis

Page 11: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 11 Spring 2013 CS 795/895 - Wireless Networked Systems

Model Validation

• Compared analytical results with that obtained by means of simulation

• Analytical model extremely accurate

• Analytical results (lines) coincide with simulation results (symbols) in both Basic Access & RTS/CTS cases

Saturation throughput analysis vs. simulation

Page 12: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 12 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance Evaluation

Saturation throughput vs. initial window size for Basic Access mechanism

• Greater the network size lower is the throughput for basic access

Page 13: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 13 Spring 2013 CS 795/895 - Wireless Networked Systems

• Throughput of Basic Access mechanism depends on W

• W depends on number of terminals

• High value of W gives excellent throughput performance

Performance Evaluation

Saturation throughput vs. initial window size for Basic Access mechanism

Page 14: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 14 Spring 2013 CS 795/895 - Wireless Networked Systems

• Throughput obtained with RTS/CTS mechanism

•  Independent of value of W

Performance Evaluation

Saturation throughput vs. initial window size for RTS/CTS mechanism

Page 15: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 15 Spring 2013 CS 795/895 - Wireless Networked Systems

• Number of transmissions per packet increases as W reduces & network size n increases.

Performance Evaluation

Average number of transmissions per packet

Page 16: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 16 Spring 2013 CS 795/895 - Wireless Networked Systems

IEEE 802.11 Frames

Page 17: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 17 Spring 2013 CS 795/895 - Wireless Networked Systems

802.11 Data Unit

• Data-Link layer • MAC Service Data Unit (MSDU) • MAC Protocol Data Unit (MPDU )

• Physical layer • PLCP Service Data Unit (PSDU) • PLCP Protocol Data Unit (PPDU)

Page 18: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 18 Spring 2013 CS 795/895 - Wireless Networked Systems

Data Link Layer

• MAC Service Data Unit (MSDU) •  Layer 3-7 information that is encapsulated

•  Max size of 2, 304 bytes

• MAC Protocol Data Unit •  802.11 frame

•  With 802.11 header and FCS

Page 19: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 19 Spring 2013 CS 795/895 - Wireless Networked Systems

Physical Layer

• Physical Layer Convergence Procedure sublayer (PLCP)

•  Prepares the data link frame for transmission

• Physical Medium Dependant Sublayer (PMD) •  Modulates and sends data

• PLCP Service Data Unit (PSDU) •  Same as MPDU-but on physical side

• PLCP Protocol Data Unit (PPDU) •  Includes the preamble for synchronizations and the PHY header

Page 20: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 20 Spring 2013 CS 795/895 - Wireless Networked Systems

Data Link and Physical Layer

Page 21: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 21 Spring 2013 CS 795/895 - Wireless Networked Systems

Long PLCP Frame Format

Preamble and Header always at 1Mb/s DBPSK Barker

1Mbps DBPSK Barker 2Mbps DQPSK Barker 5.5, 11Mbps DQPSK CCK

1Mbps DBPSK

192us

PPDU

SYNC 128 bits

SFD 16 bits

SIGNAL 8 bits

SERVICE 8 bits

LENGTH 16 bits

CRC 16 bits

Long PLCP Preamble 144 bits in 1 Mbps

Long PLCP Header 48 bits in 1 Mbps

PSDU/MPDU 1, 2, 5.5, 11 Mbps

•  Mandatory in 802.11b

Page 22: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 22 Spring 2013 CS 795/895 - Wireless Networked Systems

IEEE 802.11 Multi-Rate

Page 23: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 23 Spring 2013 CS 795/895 - Wireless Networked Systems

What is Data Rate ?

Number of bits that you transmit per unit time under a fixed energy budget

Too many bits/s:

Each bit has little energy -> Hi BER

Too few bits/s: Less BER but lower throughput

Page 24: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems

802.11 Data Rates

•  The data rates supported by 802.11b standard

1, 2, 5.5 and 11Mbps

•  The data rates supported by 802.11g standard

1, 2 ,5.5, 11, 6, 9, 12, 18, 24, 36, 48 and 54

•  The data rates supported by 802.11a standard

6, 12 and 24Mbps are mandatory and

9, 18, 36, 48 and 54Mbps are optional

•  AP and IBSS creators announce set of Basic rates and supported rates in the Beacons and Probe Response packets. Station announces supported rate information in Probe Request and (Re)Association packets

Page 25: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 25 Spring 2013 CS 795/895 - Wireless Networked Systems

Some Basics

Floor Noise Data Rate

Received Power

Channel Bandwidth

•  Bit error (p) for BPSK and QPSK :

SNR

•  Friss’ Equation:

Varying with time and space

How do we choose the rate of modulation

Page 26: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 26 Spring 2013 CS 795/895 - Wireless Networked Systems

Static Rates

SINR

time

# Estimate a value of SINR # Then choose a corresponding rate that would transmit packets correctly most of the times # Failure in some cases of fading à live with it

Page 27: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 27 Spring 2013 CS 795/895 - Wireless Networked Systems

Adaptive Rate-Control

SINR

time

# Observe the current value of SINR # Believe that current value is indicator of near-future value # Choose corresponding rate of modulation # Observe next value # Control rate if channel conditions have changed

Page 28: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 28 Spring 2013 CS 795/895 - Wireless Networked Systems

Impact Large-scale variation with distance (Path loss)

SNR

(dB

)

Distance (m) Distance (m)

Mea

n Th

roug

hput

(Kbp

s) Path Loss

1 Mbps

8 Mbps

Page 29: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 29 Spring 2013 CS 795/895 - Wireless Networked Systems

Answer à Rate Adaptation

•  Dynamically choose the best modulation scheme for the channel conditions

Mea

n Th

roug

hput

(Kbp

s)

Distance (m)

Desired Result

Page 30: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 30 Spring 2013 CS 795/895 - Wireless Networked Systems

Design Issues •  How frequently must rate adaptation occur?

•  Signal can vary rapidly depending on: •  carrier frequency

•  node speed

•  interference

•  etc.

•  For conventional hardware at pedestrian speeds, rate adaptation is feasible on a per-packet basis

Coherence time of channel higher than transmission time

Page 31: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 31 Spring 2013 CS 795/895 - Wireless Networked Systems

•  Cellular networks •  Adaptation at the physical layer

•  Impractical for 802.11 in WLANs

•  For WLANs, rate adaptation best handled at MAC

Adaptation à At Which Layer ?

D

C

B A CTS: 8

RTS: 10

10

8 Sender Receiver

RTS/CTS requires that the rate be known in advance�

Why?

Page 32: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 32 Spring 2013 CS 795/895 - Wireless Networked Systems

Who should select the data rate? •  Collision is at the receiver

•  Channel conditions are only known at the receiver

•  SS, interference, noise, BER, etc.

•  The receiver is best positioned to select data rate

A

B

Page 33: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 33 Spring 2013 CS 795/895 - Wireless Networked Systems

Bigger Picture

•  Rate control has variety of implications •  Any single MAC protocol solves part of the puzzle

•  Important to understand e2e implications •  Does routing protocols get affected?

•  Does TCP get affected?

•  …

•  Good to make a start at the MAC layer •  RBAR

•  OAR

•  Opportunistic Rate Control

•  …

Page 34: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 34 Spring 2013 CS 795/895 - Wireless Networked Systems

Lucent WaveLAN “Autorate Fallback” (ARF)

•  Sender decreases rate after •  N consecutive ACKS are lost

•  Sender increases rate after •  Y consecutive ACKS are received or

•  T secs have elapsed since last attempt

B A DATA 2 Mbps

2 Mbps Effective Range

1 Mbps Effective Range

Page 35: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 35 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance of ARF

Time (s) Rat

e (M

bps)

S

NR

(dB

)

Time (s)

–  Slow to adapt to channel conditions

–  Choice of N, Y, T may not be best for all situations

Attempted to Increase Rate During Fade

Dropped Packets

Failed to Increase Rate After Fade

Page 36: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 36 Spring 2013 CS 795/895 - Wireless Networked Systems

RBAR Approach

• Move the rate adaptation mechanism to the receiver

•  Better channel quality information = better rate selection

• Utilize the RTS/CTS exchange to: •  Provide the receiver with a signal to sample (RTS)

•  Carry feedback (data rate) to the sender (CTS)

Page 37: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 37 Spring 2013 CS 795/895 - Wireless Networked Systems

•  RTS carries sender’s estimate of best rate

•  CTS carries receiver’s selection of the best rate

•  Nodes that hear RTS/CTS calculate reservation

•  If rates differ, special subheader in DATA packet updates nodes that overheard RTS

Receiver-Based Autorate (RBAR) Protocol

C

B A CTS (1)

RTS (2)

2 Mbps

1 Mbps

D

1 Mbps DATA (1)

2 Mbps

1 Mbps

Page 38: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 38 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance of RBAR

Time (s)

SN

R (d

B)

Time (s)

Rat

e (M

bps)

R

ate

(Mbp

s)

Time (s)

RBAR

ARF

Page 39: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 39 Spring 2013 CS 795/895 - Wireless Networked Systems

Question to the class

•  There are two types of fading •  Short term fading

•  Long term fading

•  Under which fading is RBAR better than ARF ?

•  Under which fading is RBAR comparable to ARF ?

•  Think of some case when RBAR may be worse than ARF

Page 40: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 40 Spring 2013 CS 795/895 - Wireless Networked Systems

Implementation into 802.11

Page 41: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Performance Anomaly of 802.11 Martin Heusse, Frank Rousseau, Gilles-Berger Sabbatel,

Andrzej Duda

LSR-IMAG Laboratory Grenoble, France

Page 42: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 42 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance of DCF

Page 43: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 43 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance of DCF

Overall Transmission time (T) :

Constant Overhead (tov) :

Proportion of useful throughput (p):

Page 44: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 44 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance of DCF

Taking into account collisions and exponential backoff,

Overall Transmission Time (T(N)) becomes :

Time spent in contention (tcont(N)) :

Page 45: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 45 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance of DCF

Assuming that multiple successive collisions are negligible,

Proportion of collisions (Pc(N)) experienced for each packet acknowledged successfully :

Proportion (p) of useful throughput obtained by a host :

Page 46: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 46 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance Anomaly of 802.11b

Fast Host :

Slow Host :

R : transmission rate of ‘fast’ host (11Mbps)

r : transmission rate of ‘slow’ host (5.5, 2 or 1 Mbps)

tRov : overhead time of ‘fast’ host

trov : overhead time of ‘slow’ host

Page 47: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 47 Spring 2013 CS 795/895 - Wireless Networked Systems

Model

Page 48: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 48 Spring 2013 CS 795/895 - Wireless Networked Systems

Result :

The fast hosts transmitting at a higher rate ‘R’ obtain the same throughput as the slow host transmitting at a lower rate ‘r’.

i.e.

Performance Anomaly of 802.11b

Page 49: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 49 Spring 2013 CS 795/895 - Wireless Networked Systems

Simulation Studies

Page 50: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 50 Spring 2013 CS 795/895 - Wireless Networked Systems

Performance Measurements • Hosts with different rates, real mobility

Page 51: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 51 Spring 2013 CS 795/895 - Wireless Networked Systems

IEEE 802.11 Fragmentation/Defragmentation

Page 52: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 52 Spring 2013 CS 795/895 - Wireless Networked Systems

Fragmentation

•  Break a frame into smaller pieces •  Fragments

•  Actual amount of data is same, but causes additional overhead

•  Fragmenting can help with networks that have lots of data corruption

•  Less to retransmit if lots of errors

•  Not all cards allow you to do this

Page 53: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 53 Spring 2013 CS 795/895 - Wireless Networked Systems

802.11 Fragmentation

t

SIFS

DIFS

data

ACK1

other stations

receiver

sender frag1

DIFS

contention

RTS

CTS SIFS SIFS

NAV (RTS) NAV (CTS)

NAV (frag1) NAV (ACK1)

SIFS ACK2

frag2

SIFS

•  Burst of Fragments which are individually acknowledged. •  For Unicast frames only.

•  Random backoff and retransmission of failing fragment when no ACK is returned.

•  Duration information in data fragments and Ack frames causes NAV to be set, for medium reservation mechanism.

Page 54: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 54 Spring 2013 CS 795/895 - Wireless Networked Systems

802.11 Fragmentation

•  The length of a fragment MPDU shall be an equal number of octets for all fragments except the last, which may be smaller.

•  The length of a fragment MPDU shall always be an even number of octets, except for the last fragment.

•  The length of a fragment shall never be larger than aFragmentationThreshold unless WEP is invoked for the MPDU. Because the MPDU shall be expanded by IV and ICV.

•  The sequence number shall remain the same for all fragments of a MSDU or MMPDU.

•  The fragments shall be sent in order of lowest fragment number to highest fragment number (start at zero, and increased by one).

•  More Fragments bit is used to indicate the last (or only) fragment of the MSDU or MMPDU.

Page 55: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 55 Spring 2013 CS 795/895 - Wireless Networked Systems

IEEE 802.11 Association/Authentication

Page 56: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 56 Spring 2013 CS 795/895 - Wireless Networked Systems

Infrastructure Beacon Generation •  APs send Beacons in

infrastructure networks. •  Beacons scheduled at

Beacon Interval . •  Transmission may be

delayed by CSMA deferral. –  subsequent transmissions

at expected Beacon Interval to last Beacon transmission

Time Axis

Beacon Interval

X X X X

"Actual time" stamp in Beacon

Beacon Busy Medium

–  next Beacon sent at Target Beacon Transmission Time •  Timestamp contains timer value at transmit time to ensure

synchronization between client and AP •  Transmitted about 10 times per second

‒ Sometimes configurable •  AP sends the beacon with information about the BSS

‒ Client stations only transmit beacons when part of an IBSS

Page 57: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 57 Spring 2013 CS 795/895 - Wireless Networked Systems

Beacon Management Frame

•  Time stamp: Synchronization information •  Spread spectrum parameter sets: FHSS-, DSSS-, or ERP-specific

information •  Channel information: Channel used by the AP or IBSS •  Data rates: Basic and supported rates •  Service set capabilities: Extra BBS or IBSS parameters •  SSID: Logical WLAN name •  Traffic indication map (TIM): A field used during the Power Save

process •  QoS capabilities: Quality of service and EDCA information •  Security capabilities: TKIP or CCMP cipher information •  Vendor proprietary information: Vendor-unique or vendor-specific

information

Pg 283

Page 58: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 58 Spring 2013 CS 795/895 - Wireless Networked Systems

Authentication

• Not the traditional username and password •  Authenticating to the network

• Open Systems Authentication •  Null authentication

•  Everyone gets in

•  Now used with 802.1X/EAP to provide better security

• Shared Key Authentication •  Uses WEP key to respond to a challenge response

•  WEP key is then used for encryption as well

•  SECURITY RISK!!!!

Pg 286

Page 59: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 59 Spring 2013 CS 795/895 - Wireless Networked Systems

Association

• After Authentication, Client sends a request to associate to the BSS

•  Association means the client can send data through the AP

• AP sends association response •  Grant or deny permission

•  Includes and Association Identifier (AID)

•  Unique number for each client

•  Used with power management

Pg 288

Page 60: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 60 Spring 2013 CS 795/895 - Wireless Networked Systems

Open-System Authentication/Association

Page 61: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 61 Spring 2013 CS 795/895 - Wireless Networked Systems

IEEE 802.11 Roaming

Page 62: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 62 Spring 2013 CS 795/895 - Wireless Networked Systems

Scanning

•  Scanning required for many functions. •  finding and joining a network

•  finding a new AP while roaming

•  initializing an Independent BSS (ad hoc) network

•  Passive Scanning •  Find networks simply by listening for Beacons

•  Active Scanning •  On each channel

•  Send a Probe, Wait for a Probe Response

•  Beacon or Probe Response contains information necessary to join new network.

Page 63: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 63 Spring 2013 CS 795/895 - Wireless Networked Systems

Active Scanning Example

Steps to Association:

Station sends Probe.

APs send Probe Response.

Station selects best AP.

Station sends Association Request to selected AP.

AP sends Association Response.

Initial connection to an Access Point - Reassociation follows a similar process

Access Point C Access Point A

Page 64: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 64 Spring 2013 CS 795/895 - Wireless Networked Systems

Roaming

•  Mobile stations may move –  beyond the coverage area of their Access Point –  but within range of another Access Point

•  Reassociation allows station to continue operation

Access Point A

Access Point B

Station 4

Access Point C

Station 1

Station 2

Station 3

Station 5 Station 6

Station 7

Reassocication

Page 65: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 65 Spring 2013 CS 795/895 - Wireless Networked Systems

Roaming Approach

•  Station decides that link to its current AP is poor

•  Station uses scanning function to find another AP •  or uses information from previous scans

•  Station sends Reassociation Request to new AP

•  If Reassociation Response is successful •  then station has roamed to the new AP

•  else station scans for another AP

•  If AP accepts Reassociation Request •  AP indicates Reassociation to the Distribution System

•  Distribution System information is updated

•  normally old AP is notified through Distribution System

Page 66: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 66 Spring 2013 CS 795/895 - Wireless Networked Systems

Handoff Procedure

Page 67: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 67 Spring 2013 CS 795/895 - Wireless Networked Systems

Result and Analysis Handoff Latencies Graph for different client using Lucent AP

1. Probe delay is dominating component (90%) : Its good to use technique/heuristics that either cache or deduce AP information without having to actually perform a complete active scan stands to benefit.

Page 68: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 68 Spring 2013 CS 795/895 - Wireless Networked Systems

Result and Analysis Handoff Latencies Graph for different client using Cisco AP

2. Wireless hardware used(AP,STA) affects the handoff latency :

Keeping fixed AP it seen that client card affects the latency.

Page 69: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 69 Spring 2013 CS 795/895 - Wireless Networked Systems

Result and Analysis

3. Keeping the client card fixed, the AP also affects the latency but to a much lower extent.

4. There are large variation in the handoff latency (Fig. 13)

5. Different wireless cards follow different sequence of messages

Page 70: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 70 Spring 2013 CS 795/895 - Wireless Networked Systems

Probe Procedure

Further analysis of Probe(its contribution to delay is maximum) •  Probe is essentially a active scan, the wireless NIC do by default n  Transmit a probe request frame which contains the broadcast

address as the destination. n  Start a probe timer. n  Listen for probe response. n  If no response received by minChannelTime, scan next channel. n  If one or more responses are received by minChannelTime, stop

accepting probe responses at maxChannelTime and process all received responses.

n  Move to next channel and repeat above steps.

Page 71: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 71 Spring 2013 CS 795/895 - Wireless Networked Systems

Probe Procedure

Page 72: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 72 Spring 2013 CS 795/895 - Wireless Networked Systems

Probe Procedure

The scatter-plot shows two clusters being formed, which more-or-less correspond to the MinChannelTime and MaxChannelTime values from the above active scan procedure.

If there are two or less probe responses, wait time is between 0-20ms,otherwise its between 35 to 40ms.Number of probe response can creates difference of average of 25ms per channel.

Page 73: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 73 Spring 2013 CS 795/895 - Wireless Networked Systems

Enhancement Ideas

1. Query an external agent that provides hints on the neighboring APs and channels i.e a map of the APs based on the location.

2. Interleave scan messages with data during normal connectivity and use that information to perform a partial active scan (or no scan at all) during the handoff. Also passive scanning (listening for beacon messages) might be performed during normal connectivity to build up the list of APs.

3. Since the probe-wait time depends on the number of probe responses received, another strategy might be to create an ordering among the APs such that a single AP or a small set of APs is responsible for probe requests (i.e. the number of probe responses is a constant).

Page 74: Wireless Networked Systemsnadeem/classes/cs795-WNS-S...Page 24 Spring 2013 CS 795/895 - Wireless Networked Systems 802.11 Data Rates • The data rates supported by 802.11b standard

Page 74 Spring 2013 CS 795/895 - Wireless Networked Systems

Questions