Wireless Communication

Similar documents
Wireless Networks (MAC)

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

Mohamed Khedr.

Local Area Networks NETW 901

ECE442 Communications Lecture 3. Wireless Local Area Networks

Mobile & Wireless Networking. Lecture 7: Wireless LAN

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

Unit 7 Media Access Control (MAC)

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

IEEE MAC Sublayer (Based on IEEE )

IEEE Wireless LANs

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

Lesson 2-3: The IEEE x MAC Layer

Mohammad Hossein Manshaei 1393

Data and Computer Communications. Chapter 13 Wireless LANs

Lecture 16: QoS and "

Chapter 6 Medium Access Control Protocols and Local Area Networks

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

Data Communications. Data Link Layer Protocols Wireless LANs

Nomadic Communications WLAN MAC Fundamentals

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

Wireless Local Area Networks (WLANs) Part I

Introduction to IEEE

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

ICE 1332/0715 Mobile Computing (Summer, 2008)

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

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

Wireless Networked Systems

Wireless LANs. ITS 413 Internet Technologies and Applications

Wireless Protocols. Training materials for wireless trainers

Fairness and Transmission Opportunity Limit in IEEE802.11e Enhanced Distributed Channel Access

MAC. Fall Data Communications II 1

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

IEEE WLAN (802.11) Copyright. Nomadic Communications

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

Computer Networks. Wireless LANs

3.1. Introduction to WLAN IEEE

CSE 461: Wireless Networks

Analysis of IEEE e for QoS Support in Wireless LANs

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

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

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

CMPE 257: Wireless and Mobile Networking

Mobile Communications Chapter 7: Wireless LANs

Announcements : Wireless Networks Lecture 11: * Outline. Power Management. Page 1

Wireless Networking & Mobile Computing

High-Throughput and Enhanced-QoS Technologies in Wireless LAN

Advanced Computer Networks WLAN

Wireless LAN -Architecture

EVALUATION OF EDCF MECHANISM FOR QoS IN IEEE WIRELESS NETWORKS

MSIT 413: Wireless Technologies Week 8

Wireless Communications

Analysis of Throughput and Energy Efficiency in the IEEE Wireless Local Area Networks using Constant backoff Window Algorithm

Table of Contents 1 WLAN QoS Configuration 1-1

IEEE Technical Tutorial. Introduction. IEEE Architecture

IEEE Wireless LANs Part I: Basics

MAC in /20/06

MAC. OSI Layer 2 (Data Link) OSI Layer 1 (Physical)

Wireless Local Area Network (IEEE )

IEEE e Enhanced QoS

Multiple Access Links and Protocols

Wireless Communication and Networking CMPT 371

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

Master thesis 60 credits

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

Lecture 23 Overview. Last Lecture. This Lecture. Next Lecture ADSL, ATM. Wireless Technologies (1) Source: chapters 6.2, 15

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

Wireless MACs: MACAW/802.11

B. Bellalta Mobile Communication Networks

CMPE 257: Wireless and Mobile Networking

Mohammad Hossein Manshaei 1393

Department of Electrical and Computer Systems Engineering

WLAN Performance Aspects

Internet Protocol Stack

Samsung Smart WLAN Solution

INTRODUCTION TO WIRELESS LAN, MAC PROTOCOLS and INTERFERENCE. Choong Seon Hong, KHU

Performance Comparison of IEEE e EDCA and b DCF Under Non- Saturation Condition using Network Simulator

Computer Communication III

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

WiFi Networks: IEEE b Wireless LANs. Carey Williamson Department of Computer Science University of Calgary Winter 2018

Lecture 24: CSE 123: Computer Networks Stefan Savage. HW4 due NOW

802.11MAC Fundamentals

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

Mobile Communications Chapter 7: Wireless LANs

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

Outline / Wireless Networks and Applications Lecture 9: Wireless LANs Aloha and 802 Wireless. Regular Ethernet CSMA/CD

An Efficient Scheduling Scheme for High Speed IEEE WLANs

Logical Link Control (LLC) Medium Access Control (MAC)

Investigation of WLAN

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

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

Modeling of Partially Overlapping Wireless Personal Area Networks

IEEE Medium Access Control. Medium Access Control

EDCA LIMITATION WITH HIGH TRAFFIC REAL TIME APPLICATIONS

Introduction. Giuseppe Bianchi, Ilenia Tinnirello

IEEE P Wireless Local Area Networks

Transmission Control Protocol over Wireless LAN

. 14 Byte for Acks. Due to this fact, the overhead is more relevant if the data contained in packets is sent to high rates:

A Tool for Simulating IEEE e Contention-based Access

Wireless Network Security Spring 2014

Transcription:

Wireless Communication Systems @CS.NCTU Lecture 9: MAC Protocols for WLANs Instructor: Kate Ching-Ju Lin ( 林靖茹 ) 1

Reference 1. A Technical Tutorial on the IEEE 802.11 Protocol By Pablo Brenner online: http://www.sss-mag.com/pdf/802_11tut.pdf 2. IEEE 802.11 Tutorial By Mustafa Ergen online: http://wow.eecs.berkeley.edu/ergen/docs/ieee.pdf 3. 802.11 Wireless Networks: The Definitive Guide By Matthew Gast 4. 802.11ac: A Survival Guide By Matthew Gast online: http://chimera.labs.oreilly.com/books/1234000001739

Agenda Basic 802.11 Operation Collision Avoidance (CSMA/CA) Performance Analysis Hidden Terminal QoS guarantee Other Issues 3

Why MAC for WLANs is Challenging? Wireless medium is prone to errors One station cannot hear all other stations Local view!= global view Channel quality, and thereby the achievable data rate, is closely related to link distance, and could change with time due to mobility Again, because of mobility, need management mechanisms to (de)associating with APs as location changes Need efficient handoff to ensure seamless access 4

What is MAC? Medium access control Layer 2 (link layer) Allowing multiple stations in a network to share the spectrum resources and communicate (1-hop) Type of communications Unicast: one-to-one Multicast: one-to-many Broadcast: one-to-all LLC LLC MAC PHY MSDU MSDU PSDU MPDU PPDU MAC PHY STA 1 STA 2 PSDU 5

Basic Service Set (BSS) BSS Basic building block Infrastructure mode IBSS (independent BSS) Ad-hoc network ESS (extended service set) Formed by interconnected BSSs 6

Infrastructure Mode AP BSS (Basic Service Set) STA Each station (STA) associates with a central station Access point (AP) An AP and its stations form a basic service set (BSS) AP announces beacons periodically 7

Infrastructure Mode ESS (Extended Service Set) AP AP STA Several BSSs could form an ESS A roaming user can move from one BSS to another within the ESS by re-association 8

Infrastructure Mode ESS (Extended Service Set) AP AP STA Issues Inter-BSS interference: via proper channel assignment Load balancing: via user management 9

Ad-Hoc Networks IBSS (independent BSS) Clients form a peer-to-peer network without a centralized coordinator Clients communicate with each other via multi-hop routing Will introduce ad-hoc routing 10

Beacon and Association 100 ms Beacon Interval TBTT TBTT TBTT TBTT Medium busy Beacon Beacon Beacon Beacon The AP in each BSS broadcasts beacon frames periodically (every 100ms by default) Each beacons includes information such as SSID and AP s address A STA discovers a BSS by switching channels and scanning to look for beacons à Associate 11

Two Operational Modes Distributed coordination function (DCF) Stations contend for transmission opportunities in a distributed way Rely on CSMA/CA Point coordination function (PCF) AP sends poll frames to trigger transmissions in a centralized manner Less used

same CSMA/CA Carrier sense multiple access with collision avoidance Similarity and difference between CSMA/CD and CSMA/CA Both allow a STA to send if the medium is sensed to be idle Both defer transmission if the medium is sensed to be busy diff CD: immediately stop the transmission if a collision is detected CA: apply random backoff to avoid collisions! à a half-duplex STA cannot detect collisions during transmission Why? 13

DCF Start contention after the channel keeps idle for DIFS Avoid collisions via random backoff AP responds ACK if the frame is delivered correctly (i.e., passing the CRC check) à No NACK Retransmit the frame until the retry limit is reached 14

Prioritized Interframe Spacing Find specific timing in the Spec. or Wiki Latency: Priority: SIFS < PIFS < DIFS SIFS > PIFS > DIFS SIFS (Short interframe space): control frames, e.g., ACK and CTS PIFS (PCF interframe space): CF-Poll DIFS (DCF interframe space): data frame 15

Frame Format The following figu part of the frames a Data ACK How to estimate protocol overhead without considering backoff 1 - T Data / (T DIFS + T PLCP + T MAC + T Data + T SIFS + T ACK ) Control frames are sent at the base rate (lowest bit-rate) Check other frame format in Spec. 16

Overhead vs. Throughput Effective throughput number of successfully delivered bits total occupied time Packet size vs. Effective throughput? header 1500-byte data tail header 1-byte data tail Effective throughput ~ 0 Bit-rate vs. Effective throughput header 1500-byte data sent at 24 mb/s tail header 1500-byte data tail Sent at 48 mb/s (halve the tx time) Throughput(48)!= 2 x Throughput (24) 17

Fragmentation and Aggregation Success probability v.s. frame size Large frame reduces overhead, but is less reliable Discard the frame even if only one bit is in error Packet delivery ratio of an N-bit packet: (1-BER) N Fragmentation Break a frame into into small pieces All are of the same size, except for the last one Interference only affects small fragments Aggregation Aggregate multiple small frames in order to reduce the overhead Supported in 802.11e and 802.11n

Agenda Basic 802.11 Operation Collision Avoidance Performance Analysis Hidden Terminal QoS guarantee Other Issues 19

Random Backoff STAs listen to the channel before transmission after DIFS Avoid collision by random backoff 20

Exponential Random Backoff 1. Each STA maintains a contention window Initialized to CW min = 32 2. Randomly pick a number, say k, between [0,CW-1] 3. Count down from k when the channel becomes idle 4. Start transmission when k = 0 if the channel is still idle 5. Double CW for every unsuccessful transmission, up to CW max (1024) 6. CW is reset to CW min after every successful transmission When will collisions occur? What s the probability a collision occurs? 21

Agenda Basic 802.11 Operation Collision Avoidance Performance Analysis Hidden Terminal QoS guarantee Other Issues 22

Performance Analysis for CSMA/CA G. Bianchi, "Performance analysis of the IEEE 802.11 distributed coordination function," Selected Areas in Communications, IEEE Journal on 18, no. 3 (2000): 535-547 Model to compute the 802.11 DCF throughput Assumptions Finite number of stations Ideal channel, i.e., no packet errors and no hidden terminals Consider saturation throughput, i.e., the maximal load a system can achieve Core ideas: At each transmission attempt (either first transmission or retransmissions), each packet collides with constant and independent probability p p: conditional probability related to contention window W and number of stations N

Performance Analysis for CSMA/CA Model as a bi-dimensional discrete-time Markov chain {s(t), b(t)} s(t): backoff stage at time t, b(t): backoff time counter at time t Random backoff Stage 0 succeed Stage 1 fail count down Stage m

Performance Analysis for CSMA/CA Model as a bi-dimensional discrete-time Markov chain {s(t), b(t)} s(t): backoff stage at time t, b(t): backoff time counter at time t Random backoff Stage 0 succeed Stage 1 fail count down Stage m Find the stationary distribution of the chain: b i,k = lim tà P{s(t)=i, s(t)=k}

Performance Analysis for CSMA/CA Find the stationary distribution of the chain b i,k = lim P {s(t) =i, s(t) =k} t!1 The probability that a station transmits in a randomly chosen slot time mx = b i,0 = b 0,0 1 p = 2 W +1 i=0 The probability that there is at least one transmission P tr =1 (1 ) n The success probability of a transmission P S = P (exactly one transmission at least one transmission) = n (1 )(n 1) P tr

Agenda Basic 802.11 Operation Collision Avoidance Performance Analysis Hidden Terminal QoS guarantee Other Issues 27

Hidden Terminal Problem Two nodes hidden to each other transmit at the same time, leading to collision

802.11 s Solution: RTS/CTS AP STA1 STA2 STA1 sends RTS whenever it wins contention AP broadcasts CTS Other STAs that receive CTS defer their transmissions

802.11 s Solution: RTS/CTS NAV (Network allocation vector): STA performs virtual carrier sense for the specified time interval Usually disabled in practice due to its expensive overhead

Recent Solutions to Hidden Terminals Embrace collisions and try to decode collisions ZigZag decoding S. Gollakota and D. Katabi, ZigZag decoding: combating hidden terminals in wireless networks, ACM SIGCOMM, 2008 Rateless code Continuously aggregate frames and stop until decoding succeeds A. Gudipati and S. Katti, Strider: automatic rate adaptation and collision handling, ACM SIGCOMM, 2011 31

Agenda Basic 802.11 Operation Collision Avoidance Performance Analysis Hidden Terminal QoS guarantee Other Issues 32

802.11 Family 802.11a/b/g: conventional DCF 802.11e: support quality of service (QoS) enhancements for wireless LANs 802.11n: support single-user MIMO (lecture 4) 802.11ac: support multi-user MIMO (lecture 5) 802.11ad: define a new physical layer in the 60GHz (mmwave, last lecture) 802.11p: for vehicular networks 33

802.11e EDCA MAC Enhance distributed channel access (EDCA) Support prioritized quality of service (QoS) Define four access categories (ACs) priority low 802.1D 802.1D User priority Designation AC Designation 1 BK 2 AC BK Background 0 BE 3 EE AC BE Best effort 4 CL 5 VI AC VI Video high 6 VO 7 NC AC VO Voice 34

802.11e EDCA MAC Priority Queues MSDU User Priority AC_BK AC_BE AC_VI AC_VO Mapping to Access Category Transmit queues for ACs Per-queue EDCA functions with internal collision resolution Manage frames using priority queues 35

How to Prioritize Frames in 802.11e? Again, by controlling the waiting time A higher-priority frame waits for shorter time Frames with the same priority contend as usual Medium Busy SIFS 16 µs Slot 9 µs... SIFS Burst and response access : e.g. ACK, BA, CTS PIFS Priority access: e.g. Beacon priority high Non-QoS STA (legacy) data access DIFS Backoff Legacy data /mgmt access AIFS [AC_VO] Backoff[AC_VO] Voice TXOP QoS STA data access (802.11e) AIFS [AC_VI] AIFS [AC_BE] Backoff[AC_VI] Backoff[AC_BE] Video TXOP Best Effort TXOP low AIFS [AC_BK] Backoff[AC_BK] Background TXOP 36

How to Prioritize Frames in 802.11e? Again, by controlling the waiting time A higher-priority frame waits for shorter time Frames with the same priority contend as usual AIFS (Arbitration Inter-Frame Spacing) AC CWmin CWmax AIFSN TXOP limit AC BK 31 1023 7 0 AC BE 31 1023 3 0 AC VI 15 31 2 3.008 ms AC VO 7 15 2 1.504 ms legacy 15 1023 2 0 probabilistic (Within an AC) guarantee (between ACs) 37

Agenda Basic 802.11 Operation Collision Avoidance Performance Analysis Hidden Terminal QoS guarantee Other Issue 38

Other Issues Performance anomaly M. Heusse, et al., "Performance anomaly of 802.11b," IEEE INFOCOM, 2003 Expensive overhead as the PHY rate increases K. Tan, et al., "Fine-grained channel access in wireless LAN," ACM SIGCOMM, 2011 S. Sen, et al., No time to countdown: migrating backoff to the frequency domain, ACM MobiCom, 2011 Unequal band-width and flexible channelization 20MHz in 802.11a/b/g/n/ac, 40MHz in 802.11n/ac, 80MHz and 160Hz in 802.11ac S. Rayanchu, et al., FLUID: improving throughputs in enterprise wireless LANs through flexible channelization, ACM MOBICOM, 2012

Performance Anomaly The throughput of a STA sending at a high rate (e.g., 54Mbps) is degraded by that sending at a low rate (e.g., 6Mbps) Root causes? 802.11 supports multiple transmission bit-rates, each of which has a different modulation and coding scheme 802.11 ensure packet fairness, instead of time fairness Packet fairness: each STA has an equal probability to win the contention à the average number of delivered packets for all STAs are roughly the same (802.11) Time fairness: each STA occupies roughly the same proportion of channel time 40

Performance Anomaly r ij =54 Mb/s r uv =6 Mb/s b 54 =36.2 Mb/s when l 54 sends alone c 54 =4.14 Mb/s as contending with l 6 b 6 =5.4 Mb/s when l 6 sends alone c 6 =4.37 Mb/s as contending with l 54 t p/b 54 p/b 6 Channel is almost occupied by low-rate links è Everyone gets a similar throughput, regardless of its bit-rate

Summary Nice properties of WiFi Unlicensed band à Free!! Distributed random access and no coordination Ensuring fairness Common issues Expensive overhead and lower spectrum efficiency Hard to avoid collisions No QoS guarantee Every protocol balances the trade-off between performance and overhead

43