IEEE MAC Sublayer (Based on IEEE )

Similar documents
Data and Computer Communications. Chapter 13 Wireless LANs

Chapter 6 Wireless and Mobile Networks. Csci 4211 David H.C. Du

Chapter 6 Medium Access Control Protocols and Local Area Networks

Topics for Today. More on Ethernet. Wireless LANs Readings. Topology and Wiring Switched Ethernet Fast Ethernet Gigabit Ethernet. 4.3 to 4.

ECE442 Communications Lecture 3. Wireless Local Area Networks

4.3 IEEE Physical Layer IEEE IEEE b IEEE a IEEE g IEEE n IEEE 802.

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

ICE 1332/0715 Mobile Computing (Summer, 2008)

04/11/2011. Wireless LANs. CSE 3213 Fall November Overview

Mohamed Khedr.

Wireless Local Area Networks (WLANs) Part I

Mobile & Wireless Networking. Lecture 7: Wireless LAN

CS 348: Computer Networks. - WiFi (contd.); 16 th Aug Instructor: Sridhar Iyer IIT Bombay

IEEE Wireless LANs

Analysis of IEEE e for QoS Support in Wireless LANs

Introduction to IEEE

CSC344 Wireless and Mobile Computing. Department of Computer Science COMSATS Institute of Information Technology

Unit 7 Media Access Control (MAC)

Data Communications. Data Link Layer Protocols Wireless LANs

Hands-On Exercises: IEEE Standard

Wireless LANs. ITS 413 Internet Technologies and Applications

Outline. CS5984 Mobile Computing. IEEE 802 Architecture 1/7. IEEE 802 Architecture 2/7. IEEE 802 Architecture 3/7. Dr. Ayman Abdel-Hamid, CS5984

Local Area Networks NETW 901

Lesson 2-3: The IEEE x MAC Layer

Nomadic Communications WLAN MAC Fundamentals

WLAN (802.11) Nomadic Communications. Renato Lo Cigno - Tel: Dipartimento di Ingegneria e Scienza dell Informazione

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Investigation of WLAN

Functions of physical layer:

IEEE Wireless LANs Part I: Basics

IEEE WLAN (802.11) Copyright. Nomadic Communications

Computer Networks. Wireless LANs

Local Area Networks. Lecture 17 Fall Token Ring and FDDI

MAC. Fall Data Communications II 1

original standard a transmission at 5 GHz bit rate 54 Mbit/s b support for 5.5 and 11 Mbit/s e QoS

Advanced Computer Networks WLAN

Lecture 16: QoS and "

Introduction to Wireless Networking CS 490WN/ECE 401WN Winter Lecture 4: Wireless LANs and IEEE Part II

3.1. Introduction to WLAN IEEE

MSIT 413: Wireless Technologies Week 8

IEEE WLANs (WiFi) Part II/III System Overview and MAC Layer

Laboratory of Nomadic Communication. Quick introduction to IEEE

02/21/08 TDC Branch Offices. Headquarters SOHO. Hot Spots. Home. Wireless LAN. Customer Sites. Convention Centers. Hotel

Wireless Communications

Multiple Access Links and Protocols

Mobile Communications Chapter 7: Wireless LANs

Wireless Local Area Networks. Networks: Wireless LANs 1

Optional Point Coordination Function (PCF)

Guide to Wireless Communications, Third Edition. Objectives

Wireless Communication

Wireless Networking & Mobile Computing

Data Link Layer. Today s News. Data Link Layer. Node Configuration

Internet Protocol Stack

Overview : Computer Networking. Spectrum Use Comments. Spectrum Allocation in US Link layer challenges and WiFi WiFi

Wireless Protocols. Training materials for wireless trainers

Data and Computer Communications

CSE 461: Wireless Networks

Introduction. Giuseppe Bianchi, Ilenia Tinnirello

WLAN Technology: LAN: a review WLAN: applications & key parameters. protocol architectures

Wireless Local Area Networks (WLANs)) and Wireless Sensor Networks (WSNs) Computer Networks: Wireless Networks 1

CS698T Wireless Networks: Principles and Practice

Page 1. Outline : Wireless Networks Lecture 11: MAC. Standardization of Wireless Networks. History. Frequency Bands

Wireless Networks (MAC) Kate Ching-Ju Lin ( 林靖茹 ) Academia Sinica

Overview. Wireless networks basics IEEE (Wi-Fi) a/b/g/n ad Hoc MAC protocols ad Hoc routing DSR AODV

Medium Access Control. MAC protocols: design goals, challenges, contention-based and contention-free protocols

Vehicle Networks. Wireless Local Area Network (WLAN) Univ.-Prof. Dr. Thomas Strang, Dipl.-Inform. Matthias Röckl

Wireless Local Area Network (IEEE )

CHAPTER 11 WIRELESS LAN TECHNOLOGY AND THE IEEE WIRELESS LAN STANDARD

Wireless Networks (MAC)

Mobile Communications Chapter 7: Wireless LANs

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. Fall 2018 CMSC417 Set 1 1

Mohammad Hossein Manshaei 1393

Enhanced Protection Mechanism for Wireless LAN to Reduce Protocol Overhead

Wireless# Guide to Wireless Communications. Objectives

An energy-efficient MAC protocol for infrastructure WLAN based on modified PCF/ DCF access schemes using a bidirectional data packet exchange

Wireless Networked Systems

Chapter 7: Wireless LANs

Topic 4. Wireless LAN IEEE

Master thesis 60 credits

Wireless Communication Session 4 Wi-Fi IEEE standard

Overview of Wireless LANs

WLAN 1 IEEE Basic Connectivity. Manuel Ricardo. Faculdade de Engenharia da Universidade do Porto

Wireless Local Area Networks (WLANs)

Solutions to Exercise Session 4,

Advanced Wireless. Networks

Wireless LAN -Architecture

SEN366 (SEN374) (Introduction to) Computer Networks

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

Lecture (08) Wireless Traffic Flow and AP Discovery

Chapter 7: Wireless LANs

IEEE Technical Tutorial. Introduction. IEEE Architecture

Certified Wireless Network Administrator (CWNA) PW Chapter Medium Access. Chapter 8 Overview

Mohammad Hossein Manshaei 1393

WLAN 1 IEEE Manuel Ricardo. Faculdade de Engenharia da Universidade do Porto

Multimedia Communication Services Traffic Modeling and Streaming

A Survey of QoS Techniques and Enhancements for IEEE Wireless LANs

Lecture 25: CSE 123: Computer Networks Alex C. Snoeren. HW4 due NOW

Department of Electrical and Computer Systems Engineering

Computer Communication III

WiFi / IEEE WLAN

Transcription:

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

IEEE 802.11 WLAN Key Features Popular for enterprise, home, hot-spot Enables (indoor) wireless and mobile highspeed 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

IEEE 802.11 Standard Layer Layers 1 and 2 One MAC and multiple PHYs 7 Application MAC 4 TCP 2.4 GHz 2.4 GHz 5 GHz 3 IP DS FH IR 1 & 2 Mbps1 & 2 Mbps.11a OFDM 6~54 Mbps 2 1 LLC MAC PHY 802.2 802.11.11b CCK 5.5 & 11 Mbps.11g OFDM 6~54 Mbps Took Off Available since 2002 Taking off beginning 2003

IEEE 802.11a PHY Operates in 5GHz bands Based on Orthogonal Frequency Division Multiplexing (OFDM) 20MHz channel PHY Mode Modulatio n Conv. Code Rate 1 BPSK 1/2 2 BPSK 3/4 9 3 QPSK 1/2 12 4 QPSK 3/4 18 5 16-QAM 1/2 24 6 16-QAM 3/4 36 7 64-QAM 2/3 48 8 64-QAM 3/4 54 Data Rate (Mbps) 6

.11a PHY Protocol Data Unit (PPDU) RATE specifies the rate used for PSDU (=MPDU) LENGTH specifies the frame length

IEEE 802.11b PHY Runs in 2.4GHz ISM bands 22MHz channel Channel 1 Channel 6 Channel 11 4 different transmission rates: Complementary Code Keying (CCK) for 5.5 & 11 Mbps Direct-Sequence Spread Spectrum (DSSS) for 1 & 2 Mbps

802.11 Reference Model

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

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

MAC Architecture

Distributed Coordination Function (DCF) Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) similar to IEEE 802.3 Ethernet CSMA/CD

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

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

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

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!

Stop-and-Wait ARQ Receiver of a directed frame returns an ACK If ACK not received, sender retransmits after another backoff

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 300 250 200 150 100 50 0 CWmin =15 31 Example 63 CWmax=255 255 127 1 2 3 4 5 6

DCF State Diagram BC=0 &!TxPend TxPend & CCA.busy Access Control Tx Idle TxPend & CCA>DIFS Wait DIFS CCA>DIFS GetBC!(CCA>DIFS) Slot & CCA>DIFS BC=BC-1 Access Control Back-off CCA>DIFS & BC=0 & TxPend GetBC TxSuccess CW=CWmin Access Control Tx & Wait Ack TxFail DoubleCW

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!

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

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

Fragmentation Burst Fragments are transmitted with SIFS intervals Backoff if a fragment transmission fails

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

RTS & Fragmentation in Combi Each frame protects up to the end of the subsequent frame exchange!

DCF Timing Relationship

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)

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 Contention Free Period Repetition Interval (CFPRI) or Superframe Contentio Free Period (CFP) for PCF Downlink Uplink PIFS NAV Beacon SIFS SIFS D1+Poll U1+Ack SIFS D2+Ack+Poll U2+Ack SIFS SIFS CF-End Contention Period (CP) for DCF Reset NAV Dx - downlink frame to STA x Ux - uplink frame from STA x CF_MAX_Duration

MAC Frame Format Address 4 exists only for Wireless Distribution System (WDS) Usually 28-octet overhead (24 for header + 4 for FCS)

Address Field Contents To DS From DS Addr 1 Addr 2 Addr 3 Addr 4 Dir. 0 0 DA SA BSSID N/A DiL 0 1 DA BSSID SA N/A DL 1 0 BSSID SA DA N/A UL 1 1 RA TA DA SA WDS Addr 1 specifies the receiving station Addr 2 specifies the transmitting station Used for ACK transmission

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

802.11 Frame for IP Datagram

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

Theoretical Throughput Analysis Transmission cycle DIFS Backoff Data transmission SIFS ACK Throughput = Data Size / (DIFS+Backoff+Data_Tx_Time+SIFS+ACK)

Max. Theoretical Throughput 40 35 30 Throughput (Mbps) 25 20 15 10 5 0 10 100 300 500 700 900 1100 1300 1500 1700 1900 2100 2300.11b Theorical.11a Theorical.11b simulation.11a simulation MPDU size L (bytes) Practical Max Throughput

DCF vs. PCF Throughput Perspective 1.20E+07 1.00E+07 Throughput (bps) 8.00E+06 6.00E+06 4.00E+06 2.00E+06 0.00E+00 DCF PCF (uplink only) PCF (up/downlink) After header overhead PHY rate 1 2 3 4 5 6 7 # of Sources Source: S. Choi, PCF vs DCF: trends and limitations, IEEE 802.11-01/054, January 2001.