802.11 Wireless LAN Protocol CS 571 Fall 2006. 2006 Kenneth L. Calvert All rights reserved



Similar documents
Wiereless LAN

Markku Renfors. Partly based on student presentation by: Lukasz Kondrad Tomasz Augustynowicz Jaroslaw Lacki Jakub Jakubiak

IEEE 802 Protocol Layers. IEEE Wireless LAN Standard. Protocol Architecture. Protocol Architecture. Separation of LLC and MAC.

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

CSMA/CA. Information Networks p. 1

Basic processes in IEEE networks

A Technical Tutorial on the IEEE Protocol

Medium Access Control (MAC) Protocols for Ad hoc Wireless Networks - III

... neither PCF nor CA used in practice

IEEE Technical Tutorial. Introduction. IEEE Architecture

WiFi. Is for Wireless Fidelity Or IEEE Standard By Greg Goldman. WiFi 1

ECE 358: Computer Networks. Homework #3. Chapter 5 and 6 Review Questions 1

An Overview of Wireless LAN Standards IEEE and IEEE e

IEEE Wireless LAN Standard. Updated: 5/10/2011

IEEE Wireless LAN

LAN Switching Computer Networking. Switched Network Advantages. Hubs (more) Hubs. Bridges/Switches, , PPP. Interconnecting LANs

CSE331: Introduction to Networks and Security. Lecture 6 Fall 2006

Lecture 17: Wireless Networking"

IEEE WIRELESS LAN STANDARD

IEEE WLAN (802.11) ...Copyright. Renato Lo Cigno

CS6956: Wireless and Mobile Networks Lecture Notes: 2/11/2015. IEEE Wireless Local Area Networks (WLANs)

TCP in Wireless Networks

COMP 3331/9331: Computer Networks and Applications

ECE 428 Computer Networks and Security

Chapter 7 Low-Speed Wireless Local Area Networks

IEEE frame format

10. Wireless Networks

Video Transmission over Wireless LAN. Hang Liu

Lab Exercise Objective. Requirements. Step 1: Fetch a Trace

IEEE Wireless Local Area Networks

Attenuation (amplitude of the wave loses strength thereby the signal power) Refraction Reflection Shadowing Scattering Diffraction

WI-FI TECHNOLOGY: SECURITY ISSUES

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 5, September

Collision of wireless signals. The MAC layer in wireless networks. Wireless MAC protocols classification. Evolutionary perspective of distributed MAC

Networks. Master of Science (Computer Science and Engineering), December 2004, 45 pp.,

LANs. Local Area Networks. via the Media Access Control (MAC) SubLayer. Networks: Local Area Networks

Philippe Klein. avb-phkl qos-overview

CS263: Wireless Communications and Sensor Networks

Lecture 7 Multiple Access Protocols and Wireless

Performance Analysis of the IEEE Wireless LAN Standard 1

Adaptive DCF of MAC for VoIP services using IEEE networks

Express Forwarding : A Distributed QoS MAC Protocol for Wireless Mesh

Measuring the service level in the 2.4 GHz ISM band

Lecture 6.1 Introduction. Giuseppe Bianchi, Ilenia Tinnirello

Improving Throughput Performance of the IEEE MAC Layer Using Congestion Control Methods

IEEE e WLANs / WMM. S.Rajesh (rajeshsweb@gmail.com) AU-KBC Research Centre, BroVis Wireless Networks, smartbridges Pte Ltd.

A Short Look on Power Saving Mechanisms in the Wireless LAN Standard Draft IEEE

EECS 122: Introduction to Computer Networks Multiaccess Protocols. ISO OSI Reference Model for Layers

MAC Algorithms in Wireless Networks

CSE 123A Computer Networks

Wireless LAN advantages. Wireless LAN. Wireless LAN disadvantages. Wireless LAN disadvantages WLAN:

Department of Computer Science Columbia University

Data Link Protocols. Link Layer Services. Framing, Addressing, link access: Error Detection:

The Wireless Network Road Trip

How To Make A Multi-User Communication Efficient

Chapter 6: Wireless and Mobile Networks

Overview of Networks and Standards

Wireless Networks. Reading: Sec5on 2.8. COS 461: Computer Networks Spring Mike Freedman

Local Area Networks transmission system private speedy and secure kilometres shared transmission medium hardware & software

TCOM 370 NOTES LOCAL AREA NETWORKS AND THE ALOHA PROTOCOL

Wireless Personal Area Networks (WPANs)

Medium Access Control (MAC) and Wireless LANs

Wireless LAN Concepts

EPL 657 Wireless Networks

Data Center Networks, Link Layer Wireless (802.11)

Ph.D. Thesis. Resources optimization in multimedia communications. Luca Sanna Randaccio. Advisor: Prof. Luigi Atzori

Arbitration. White Paper. September 2009 Version Author: Marcus Burton, CWNE #78 CWNP, Inc.

EETS 8316 Wireless Networks Fall 2013

Rolf Leutert. Network Expert & Trainer Leutert NetServices Switzerland. Analyzing WLAN Roaming Problems Leutert NetServices

How To Understand The Power Of A Network On A Microsoft Ipa 2.5 (Ipa) (Ipam) (Networking) 2 (Ipom) 2(2

Wireless LAN Pen-Testing. Part I

Wireless Local Area Networks and the Standard

PERFORMANCE ANALYSIS OF LOW RATE WIRELESS TECHNOLOGIES FOR MEDICAL APPLICATIONS. N. Golmie, D. Cypher, O. Rebala

How To Configure the WLAN with QoS

Enhanced TXOP scheme for efficiency improvement of WLAN IEEE e

An Investigation of the Impact of Signal Strength on Wi-Fi Link Throughput through Propagation Measurement. Eric Cheng-Chung LO

ECE/CS 372 introduction to computer networks. Lecture 13

A TCP-like Adaptive Contention Window Scheme for WLAN

Algorithms for Interference Sensing in Optical CDMA Networks

Random Access Protocols

RTT 60.5 msec receiver window size: 32 KB

a. CSMA/CD is a random-access protocol. b. Polling is a controlled-access protocol. c. TDMA is a channelization protocol.

This tutorial has been prepared for readers to help them understand the concepts related to WiFi.

WPAN. Contents. S Wireless Personal, Local, Metropolitan, and Wide Area Networks 1

CS 5480/6480: Computer Networks Spring 2012 Homework 4 Solutions Due by 1:25 PM on April 11 th 2012

Protocolo IEEE Sergio Scaglia SASE Agosto 2012

Virtual PCF: Improving VoIP over WLAN performance with legacy clients

In this Lecture" Access method CDMA" Mobile and Sensor Systems Lecture 2: Mobile Medium Access Control Layer and Telecommunications

Mobile Communications Exercise: Satellite Systems and Wireless LANs. Georg von Zengen, IBR, TU Braunschweig,

Chapter 6: Medium Access Control Layer

The IEEE standard

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

Efficient MAC Protocol for Heterogeneous Cellular Networks (HC-MAC)

Mobile Ad Hoc Networks

Fast Retransmission Mechanism for VoIP in IEEE e wireless LANs

How To Determine The Capacity Of An B Network

SSPC and Data Transfer

Transcription:

802.11 Wireless LAN Protocol CS 571 Fall 2006 2006 Kenneth L. Calvert All rights reserved

Wireless Channel Considerations Stations may move Changing propagation delays, signal strengths, etc. "Non-transitive" reception A can hear B, B can hear C, but A cannot hear C No "collision detection"! Detect unsuccessful transmission by absence of acknowledgement B A C

Wireless Channel Considerations, cont. Range of network limited by transmission power If equipment obeys transmit power limits, no way to exceed maximum diameter Therefore max end-to-end propagation delay is limited Radio Frequency (RF) spectrum usage is restricted by law/treaty! 802.11 uses 2.4 GHz band, sometimes called ISM (Industrial, Scientific, Medicine) Applications using this range of frequencies must use Spread Spectrum technology to minimize interference This band subject to interference by microwave ovens (2.43 MHz), cellular phones, Bluetooth, wireless microphones,...

Pieces of the 802.11 Standard Medium Access Control divided into two parts Distributed Coordination Function (DCF) Symmetric, all stations (including APs) behave the same way Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) Stations contend for access to medium Optional Point Coordination Function (PCF) Built on DCF Allows periods of contention-free operation interleaved with periods of contention One station (typically AP) polls others to control who transmits Note: importance of association function Permits more efficient operation under heavy loads

Pieces of the 802.11 Standard Multiple PHYs: Original 802.11 (1999): 2.4 GHz frequency-hopping spread spectrum @ 1, 2 Mbps 2.4 GHz direct-sequence spread spectrum @ 1, 2 Mbps 802.11a (1999): 5 GHz orthogonal FDM @ 6, 9, 12, 18, 24, 36, 48, 54 Mbps 802.11b (1999): 2.4 GHz direct-sequence spread spectrum @ 5.5, 11 Mbps 802.11g (2003): 2.4 GHz orthogonal FDM @ 54 Mbps

Architecture: Components BSS stations access points (APs) Distribution System (DS) How this works is not part of IEEE 802.11! BSS = "Basic Service Set" A group of stations communicating BSS

MAC Protocol Design Different stations perceive events differently Include explicit information about MAC state in transmitted frames E.g., duration of the next frame to be transmitted Beacon frames inform stations about operational parameters Collision avoidance: Stations choose a random backoff interval before colliding! (Compare to CSMA/CD: backoff only after colliding) Each station's backoff continues after other transmitted frames (Helps with fairness) No collision detection: waste whole frames in collisions Try to ensure collisions don't happen long frames Exchange (short) control frames to clear the channel (RTS-CTS) Include immediate ACKs as part of MAC protocol retransmit if no ACK received

802.11 MAC Protocol Services Contention-based Channel Access Some collisions may occur (but "collision avoidance") Contention-free Channel Access (optional) No collisions (requires AP) Authentication of stations joining a network "Open System" = any station can be authenticated Confidentiality of data Using WEP or WPA encryption Association with a particular network ("BSS") MAC-level Acknowledgements Fragmentation and Reassembly

MAC Protocol Design Wireless MAC Protocol Building Blocks: Clear Channel Assessment function (CCA): determines whether/when medium is busy/idle Virtual Carrier Sense: use "Duration" fields in frames to infer that medium should be busy, regardless of whether it is sensed busy Inter-Frame Spacing(IFS) parameters Variable defer times allow coordination of management functions with data transfer Slot time: basic unit of timing for the protocol Equal to RxTx Turnaround Time + Channel Sensing Time + Propagation Delay + MAC processing time Backoff timer: counts slots until station's turn to transmit

Basic DCF MAC Protocol Basic Time Parameters Slot Time: basic unit of backoff algorithm = Time required for station to sense end of frame, start transmitting, and beginning of frame to propagate to others : Short Inter-Frame Space = Time required for station to sense end of frame and start transmitting DIFS: DCF Inter-Frame Space = Time to wait before starting backoff interval ("contending") = + 2 slot times busy medium slot DIFS

Basic DCF MAC Protocol If medium is free for DIFS transmit else back off: Wait for medium to be free for DIFS Choose a random r in [0,CW] While r > 0: sense medium for one slot time if medium free throughout slot r := r 1 transmit frame Immediate access when medium is free for at least DIFS Contention Window DIFS Busy medium DIFS Frame Defer Slot time

Backoff Operation Assume CW = 32 r A = 10 r A = 7 r A = 2 Station A DIFS 9 8 7 C's frame DIFS 6 5 4 3 B's frame DIFS 2 1 A's frame Frame arrival r B = 8 r B = 5 Station B DIFS 7 6 5 4 3 2 1 C's frame DIFS B's frame A's frame Frame arrival Station C DIFS C's frame B's frame A's frame Frame arrival

General Frame Format 2 2 6 6 6 2 6 0-2312 2 bytes FC Dur Addr1 Addr2 Addr3 Seq Control Addr 4 Payload FCS 2 2 4 1 1 1 1 1 1 1 1 Version Type Subtype To DS FromMore DS Frag Retry Pwr Mgt More Data WEP Ordr bits 0 = last fragment of packet 00 Management = Association, Authentication, Probe, Beacon 1 = another frame follows immediately 01 Control = RTS, CTS, ACK, Powersave-Poll Rest of frame 10 Data = Data, Data + CF-Poll, is... Encrypted

General Frame Format 2 2 6 6 6 2 6 0-2312 2 bytes FC Dur Addr1 Addr2 Addr3 Seq Control Addr 4 Payload FCS Meaning/Presence determined by To/From DS bits To DS From DS Addr 1 Addr 2 Addr 3 Addr 4 0 0 Dest Source BSSID N/A 0 1 Dest AP Addr Source N/A 1 0 AP Addr Source Dest N/A 1 1 Receiver Xmitter Dest Source

X transmits: To DS: 1 From DS: 1 Addr 1: Y Addr 2: X Addr 3: B Addr 4: A Example of Address Usage sta A AP X BSS X Distribution System (DS) Wireless LAN used as Distribution System A transmits: sta B AP Y BSS Y To DS: 1 From DS: 0 Addr 1: X Addr 2: A Addr 3: B Y transmits: To DS: 0 From DS: 1 Addr 1: B Addr 2: Y Addr 3: A

General Frame Format 2 2 6 6 6 2 6 0-2312 2 bytes FC Dur Addr1 Addr2 Addr3 Seq Control Addr 4 Payload FCS Sequence # Frag # 12 4 bits Used for fragmentation & reassembly: Sequence number assigned to each packet; Sequence Fragments # is are also sent used in order; to filter duplicate retransmissions: Each Each station fragment maintains is retransmitted a "tuple cache" until ACKed! of triples: (Addr2, seq#, frag#) and drops (but still ACKs) frames whose tuples are in the cache. (Addr2 = transmitting sta)

MAC-level ACKs Upon receiving a frame addressed to it with a correct FCS, a station immediately transmits an ACK frame A B A Data B ACK A If a station fails to receive a correct ACK frame within a timeout, it retransmits (setting retry flag)

Request to Send Clear to Send Before sending a long frame, send RTS "long" = length greater than RTSThreshold parameter RTSThreshold configurable per-station, range 0-2344+ Recipient responds immediately with CTS Upon receiving CTS, immediately transmit Data FC Dur Rcvr Addr Sender Addr FCS Request to Send CTS + data frame + ACK + 3 data frame + ACK + 2 FC Dur Rcvr Addr FCS Clear to Send

RTS-CTS Operation Note: is shorter than DIFS, so stations contending for access do not decrement their backoff counters during these exchanges A RTS B A Data B A B CTS A ACK A

Network Allocation Vector (NAV) Each station maintains a countdown timer that tells how far into the future the medium has been "reserved" by RTS/CTS exchanges Stations set NAV counter based on the value in the duration field of frames Even if a station only hears one side of the RTS-CTS exchange, it knows how long the medium will be "busy" CCA function combines NAV and physical sensing Medium considered busy if NAV value > 0

General Frame Format 2 2 6 6 6 2 6 0-2312 2 bytes FC Dur Addr1 Addr2 Addr3 Seq Control Addr 4 Payload FCS Duration of next frame, in microsecs (max 32,767) RTS: duration of CTS + data frame + ACK + 3 CTS: RTS duration CTS Data w/ More Frags = 1: duration of next frag Data w/ More Frags = 0: duration of ACK +

Fragment Bursts Duration Duration RTS F:0 MF:1 X F:1 MF:0 X CTS ACK ACK Duration Duration

Management: Who's Playing? MAC layer must provide stations a way to: Learn what SS's are available Associate with a particular SS (and authentication) Disassociate from a SS Beacon Frames are broadcast periodically by the Access Point Contains: SS ID, Access Point address (if any), Beacon frame interval, supported data rates Stations may also send Probe frames to solicit information from APs (sent in Probe response msgs) Management frames are transmitted with higher priority Implemented by using a smaller Priority Inter-frame Space

Point Coordination Function Idea: allow for explicit allocation of the channel AP acts as Controller, polls stations During a contention-free period, all stations see the medium as busy (for purposes of contention) Frame types: Beacon (indicates start, duration of contention-free period) CF-Poll, CF-Ack Data+CF-Poll, Data+CF-Ack, Data+CF-Poll+CF-Ack When polled, station may transmit 1 (data) frame to any station

PCF Operation PIFS PC Beacon* A:CFPoll B: Data +CF-Poll A B A Data B ACK C B Data+ CF-Ack Special beacon marks beginning of CF period Sent after sensing medium idle for PIFS (< DIFS) Prevents other stations from contending for medium Indicates duration of CF period Non-PCF-capable stations set NAV to that value