• 검색 결과가 없습니다.

Throughput (Mbps) 101003005007009001100130015001700190021002300

N/A
N/A
Protected

Academic year: 2022

Share "Throughput (Mbps) 101003005007009001100130015001700190021002300"

Copied!
35
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

IEEE 802.11 MAC Sublayer

(Based on IEEE 802.11-1999)

Wireless Networking

Sunghyun Choi, Associate Professor Multimedia & Wireless Networking Lab.

(MWNL)

School of Electrical Engineering Seoul National University

(2)

IEEE 802.11 WLAN Key Features

„ Popular for enterprise, home, “hot-spot”

„ Enables (indoor) wireless and mobile high- speed networking

„ “Wireless Ethernet” with comparable speed

„ Supports up to 54 Mbps within ~100 m range

„ Runs at unlicensed bands at 2.4GHz and 5GHz

„ Connectionless MAC and multiple PHYs

(3)

2.4 GHz 2.4 GHz MAC

DS FH IR

1 & 2 Mbps 1 & 2 Mbps

Available since

’2002

IEEE 802.11 Standard

„

Layers 1 and 2

„

One MAC and multiple PHYs

Application

TCP

IP

LLC

MAC

1 PHY 2 3 4 7 Layer

802.11 802.2

.11a OFDM

.11b CCK

5 GHz

5.5 & 11 Mbps

6~54 Mbps

.11g OFDM

Took Off

Taking off

beginning ’2003

(4)

IEEE 802.11a PHY

„

Operates in 5GHz bands

„

Based on Orthogonal Frequency Division

Multiplexing (OFDM)

„

20MHz channel

PHY Mode

Modulatio n

Conv.

Code Rate

Data Rate (Mbps)

1 BPSK 1/2

3/4 1/2 3/4 1/2 3/4 2/3 3/4

6

2 BPSK 9

3 QPSK 12

4 QPSK 18

5 16-QAM 24

6 16-QAM 36

7 64-QAM 48

8 64-QAM 54

(5)

.11a PHY Protocol Data Unit (PPDU)

„

RATE specifies the rate used for PSDU (=MPDU)

„

LENGTH specifies the frame length

(6)

IEEE 802.11b PHY

„

Runs in 2.4GHz ISM bands

‰ 22MHz channel

„

4 different transmission rates:

‰ Complementary Code Keying (CCK) for 5.5 & 11 Mbps

‰ Direct-Sequence Spread Spectrum (DSSS) for 1 & 2 Mbps

Channel 1 Channel 6 Channel 11

(7)

802.11 Reference Model

(8)

Two Modes

„

Infrastructure mode

‰ Infrastructure Basic Service Set Æ BSS

‰ An access point (AP) and multiple stations (STAs)

‰ Every transmission is with AP; no peer-to-peer communication

‰ Multiple BSSs form an Extended Service Set (ESS)

„

Ad hoc mode

‰ Independent Basic Service Set Æ IBSS

‰ Multiple stations (STAs), and no AP

‰ Peer-to-peer communication only

(9)

Two Coordination Functions

„

Mandatory Distributed Coordination Function (DCF)

‰ For distributed contention-based channel access

‰ For both Infrastructure BSS and IBSS

„

Optional Point Coordination Function (PCF)

‰ For centralized contention-free channel access

‰ For Infrastructure BSS only

(10)

MAC Architecture

(11)

Distributed Coordination Function (DCF)

„

Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA)

‰ similar to IEEE 802.3 Ethernet CSMA/CD

(12)

Two Special Cases

„

Immediate access

‰ When no on-going backoff and over DIFS idle time, a frame can be transmitted immediately

„

Post backoff

‰ A backoff after a successful frame

transmission even when no frame to transmit next

„

Main differences in terms of statistical performance from p-persistent CSMA

‰ Both differences no exist when the transmitters have always a frame to transmit

(13)

Interframe Spaces (IFSs) (1)

„

To give priority to different frame transmissions

„

Short IFS (SIFS)

‰ Between a frame and an immediate response

„ ACK, CTS, …

„

PCF IFS (PIFS)

‰ Before sending beacon under PCF; when no response after a polling frame

„

DCF IFS (DIFS)

‰ Before a backoff countdown

(14)

Interframe Spaces (IFSs) (2)

„

Extended IFS (EIFS)

‰ SIFS + ACK_Transmission_Time + DIFS

‰ Used instead of DIFS after an erroneous frame reception

„ To protect the subsequent ACK transmission

„

IFS values depends on the underlying PHY

SIFS PIFS=

SIFS+Slot

DIFS=

SIFS+2*Slot

11a 16 usec 25 usec 34 usec

11b 10 usec 30 usec 50 usec

(15)

Carrier-Sense Mechanisms

„

Physical carrier-sense

‰ Provided by PHY, and depends on PHY

‰ Clear Channel Assessment (CCA) by PHY

„

Virtual carrier-sense

‰ Provided by MAC via Network Allocation Vector (NAV) counter

‰ Each frame carries Duration value in the header

‰ Any correctly received frame updates NAV if the new NAV is larger

‰ Assumes busy channel if non-zero NAV irrespective of CCA!

(16)

Stop-and-Wait ARQ

„

Receiver of a directed frame returns an ACK

„

If ACK not received, sender retransmits after

another backoff

(17)

Exponential Backoff

„

Backoff Counter is randomly selected from [0,CW], where CW is contention window

„

For each unsuccessful frame transmission, CW doubles (from CWmin to CWmax)

„

CW Å 2 (CW+1)-1

„

Reduces the

collision probability

CWmin

=15 31

63

127

CWmax=255 255

0 50 100 150 200 250 300

Example

(18)

DCF State Diagram

BC=0 & !TxPend

TxSuccess TxFail Access

Control Back-off

Access Control Tx Idle

Access Control Tx & Wait Ack

TxPend & CCA>DIFS

CCA>DIFS &

BC=0 & TxPend TxPend & CCA.busy

BC=BC-1 Slot & CCA>DIFS

GetBC

GetBC

CW=CWmin DoubleCW

Wait DIFS

CCA>DIFS

!(CCA>DIFS)

(19)

Hidden Terminal

„

STA 1 and STA 2 can see STA 3, but they do not see each other

„

May result in more collisions due to the

failure of carrier-sensing!

(20)

RTS/CTS Exchange

„

A way to handle hidden terminals!

‰

Request-To-Send / Clear-To-Send (RTS/CTS) to reserve medium

‰

Works with virtual carrier-sense

(21)

Fragmentation

„

One MSDU can be fragmented into multiple MPDUs

‰ All the fragments have virtually the same MAC header (except for the fragment number)

‰ Theoretically up to 10 fragments from one MSDU

(22)

Fragmentation Burst

„

Fragments are transmitted with SIFS intervals

„

Backoff if a fragment transmission fails

(23)

RTS & Fragment Thresholds

„

RTS Threshold

‰ Use RTS/CTS if MPDU_size >= threshold

‰ Depending on the size of MPUD relative to RTS threshold, the max retransmission limit is

determined differently!

„ LongRetryLimit (short) = 4 (7) by default

„

Fragment Threshold

‰ Use fragmentation if MPDU_size > threshold

„

Default values of both are large enough such that none of them is used!

‰ The max MSDU size = 2304 bytes in 802.11

(24)

RTS & Fragmentation in Combi

„

Each frame protects up to the end of the

subsequent frame exchange!

(25)

DCF Timing Relationship

(26)

Point Coordination Function (PCF)

„

Poll-and-response MAC for nearly Isochronous service

„

In infrastructure BSS only – Point Coordinator (PC) resides in AP

„

Alternating Contention-Free Period (CFP) and

Contention Period (CP)

(27)

Contention Free Operation

„

Two consecutive frames are separated by SIFS

„

CFP lengths depend on traffic amount

‰ Maximum length announced by AP; used for NAV set

Beacon D1+Poll

NAV

SIFS

SIFS

U1+Ack

D2+Ack+Poll

SIFS

U2+Ack

SIFS

SIFS

CF-End

Uplink Downlink

Contentio Free Period (CFP) for PCF

Contention Period (CP)

for DCF Contention Free Period Repetition Interval (CFPRI) or Superframe

Reset NAV

CF_MAX_Duration Dx - downlink frame to STA x

PIFS

(28)

MAC Frame Format

„ Address 4 exists only for Wireless Distribution System (WDS)

„ Usually 28-octet overhead (24 for header + 4 for FCS)

(29)

Address Field Contents

To DS From DS

Addr 1 Addr 2 Addr 3 Addr 4 Dir.

0 0 DA SA BSSID N/A

N/A N/A SA

DiL

0 1 DA BSSID SA DL

1 0 BSSID SA DA UL

1 1 RA TA DA WDS

„

Addr 1 specifies the receiving station

„

Addr 2 specifies the transmitting station

Used for ACK transmission

(30)

Frame Types

„

Data frames

‰ Data, CF-Poll, CF-ACK, …

‰ Follows the general format

„

Management frames

‰ Probe Req/Resp, Authentication Req/Resp, Association Req/Resp, …

‰ Follows the general format (w/o Address 4)

„

Control frames

‰ ACK, RTS, CTS, PS-Poll, …

‰ Frame-dependent formats

(31)

802.11 Frame for IP Datagram

(32)

Theoretical Throughput Analysis

„

Assumptions:

‰ One sender and one receiver

‰ Infinite amount of traffic from sender

‰ No channel error

‰ Fixed frame size

„

Maximum theoretical throughput measured

at MAC SAP

(33)

Theoretical Throughput Analysis

„

Transmission cycle

‰ DIFS

‰ Backoff

‰ Data transmission

‰ SIFS

‰ ACK

„

Throughput

= Data Size /

(DIFS+Backoff+Data_Tx_Time+SIFS+ACK)

(34)

Max. Theoretical Throughput

0 5 10 15 20 25 30 35 40

10 100 300 500 700 900 1100 1300 1500 1700 1900 2100 2300

MPDU size L (bytes)

Throughput (Mbps) .11b Theorical

.11a Theorical .11b simulation .11a simulation

Practical Max Throughput

(35)

DCF vs. PCF – Throughput Perspective

0.00E+00 2.00E+06 4.00E+06 6.00E+06 8.00E+06 1.00E+07 1.20E+07

1 2 3 4 5 6 7

# of Sources

Throughput (bps)

DCF

PCF (uplink only) PCF (up/downlink) After header overhead PHY rate

Source: S. Choi, “PCF vs DCF: trends and limitations,” IEEE

참조

관련 문서

The internal energy can be changed even when no energy is transferred by heat, but just

 if error can be distributed more equally over the range 0     , we may achieve a better overall compromise between ripple levels,. transition bandwidth

• Time stamps that are used to stamp documents with the time, and a turret clock used in a clock tower. • "program clock" is a timer that can be programmed with

No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means — electronic, mechanical, photocopying, recording,

A frame size error in a frame that could alter the state of the entire connection MUST be treated as a connection error (Section 5.4.1); this includes any frame carrying a

W You’re going to have back and neck pain, if you sit like that for a long time4. When you’re sitting, it’s very important to keep the back straight, knees bent, and head

In a dense scenario, the number of events may be huge, so the time points when events happen may be extremely close to one another (i.e., quite successive on the time

A technology transfer agent can be qualified with finishing its registration education course over 40 hours on the basis of the article 14 of law on the Promotion of