Chapter 6 Medium Access Control Protocols and Local Area Networks

Similar documents
Local Area Networks. Lecture 17 Fall Token Ring and FDDI

Data and Computer Communications. Chapter 13 Wireless LANs

Functions of physical layer:

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

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

ICE 1332/0715 Mobile Computing (Summer, 2008)

IEEE MAC Sublayer (Based on IEEE )

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

Data and Computer Communications

IEEE Wireless LANs

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

Lecture 16: QoS and "

Lesson 2-3: The IEEE x MAC Layer

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

Wireless LANs. ITS 413 Internet Technologies and Applications

Local Area Networks NETW 901

Multiple Access Links and Protocols

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

Mobile & Wireless Networking. Lecture 7: Wireless LAN

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

Nomadic Communications WLAN MAC Fundamentals

Wireless Local Area Networks (WLANs) Part I

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

Mohamed Khedr.

Computer Networks. Wireless LANs

CS4/MSc Computer Networking. Lecture 12: Wireless Local Area Networks

IEEE WLAN (802.11) Copyright. Nomadic Communications

IEEE Technical Tutorial. Introduction. IEEE Architecture

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

Optional Point Coordination Function (PCF)

Unit 7 Media Access Control (MAC)

Data Communications. Data Link Layer Protocols Wireless LANs

Introduction to IEEE

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

IEEE Wireless LANs Part I: Basics

Guide to Wireless Communications, Third Edition. Objectives

Wireless Protocols. Training materials for wireless trainers

Wireless and Mobile Networks

Overview of Wireless LANs

MAC in /20/06

Wireless LAN -Architecture

MSIT 413: Wireless Technologies Week 8

Wireless Local Area Networks. Networks: Wireless LANs 1

CHAPTER 11 WIRELESS LAN TECHNOLOGY AND THE IEEE WIRELESS LAN STANDARD

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

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

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

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

ECE442 Communications Lecture 3. Wireless Local Area Networks

Wireless# Guide to Wireless Communications. Objectives

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

Investigation of WLAN

Mobile Communications Chapter 7: Wireless LANs

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

SEN366 (SEN374) (Introduction to) Computer Networks

Analysis of IEEE e for QoS Support in Wireless LANs

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

Mobile Communications Chapter 7: Wireless LANs

Wireless Communication and Networking CMPT 371

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

Introduction to Wireless LAN

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

Wireless LANs. Outline. Outline II. Benefits Applications Technologies Issues Configurations Overview of Standard

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

Wireless Communication and Networking CMPT 371

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

CHAPTER 8: LAN Standards

MAC. Fall Data Communications II 1

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

Advanced Computer Networks WLAN

Overview Computer Networks. Single Cell Wireless LAN Configuration. Applications - LAN Extension. Applications Cross-Building Interconnect

CSE 461: Wireless Networks

Chapter 6 Medium Access Control Protocols and Local Area

Wireless Communications

Internet Protocol Stack

Wireless Networking & Mobile Computing

Shared Access Networks Wireless. 1/27/14 CS mywireless 1

Master thesis 60 credits

Laboratory of Nomadic Communication. Quick introduction to IEEE

Chapter 6 Wireless and Mobile Networks

Wireless Communication Session 4 Wi-Fi IEEE standard

Wireless Local Area Network (IEEE )

Computer Communication III

Wireless Local Area Networks (WLANs) and Wireless Sensor Networks (WSNs) Primer. Computer Networks: Wireless LANs

Transmission Control Protocol over Wireless LAN

Introduction. Giuseppe Bianchi, Ilenia Tinnirello

Lecture (08) Wireless Traffic Flow and AP Discovery

CMPE 257: Wireless and Mobile Networking

Topic 4. Wireless LAN IEEE

3.1. Introduction to WLAN IEEE

Last Lecture: Data Link Layer

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

Data Communication & Networks G Session 5 - Main Theme Wireless Networks. Dr. Jean-Claude Franchitti

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

Mobile Communications Chapter 7: Wireless LANs

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

IEEE Medium Access Control. Medium Access Control

Basic processes in IEEE networks

Chapter 7: Wireless LANs

Mohammad Hossein Manshaei 1393

Transcription:

Chapter 6 Medium Access Control Protocols and Local Area Networks 802.11 Wireless LAN CSE 3213, Winter 2010 Instructor: Foroohar Foroozan

Wireless Data Communications Wireless communications compelling Easy, low-cost deployment Mobility & roaming: Access information anywhere Supports personal devices PDAs, laptops, data-cell-phones Supports communicating devices Cameras, location devices, wireless identification Signal strength varies in space & time Signal can be captured by snoopers Spectrum is limited & usually regulated

Ad Hoc Communications A C B D Temporary association of group of stations Within range of each other Need to exchange information E.g. Presentation in meeting, or distributed computer game, or both

Infrastructure Network Server Portal Distribution System Portal Gateway to the Internet AP1 AP2 A1 B1 BSS A A2 B2 BSS B Permanent Access Points provide access to Internet

Hidden Terminal Problem (a) A Data Frame C A transmits data frame B C senses medium, station A is hidden from C (b) Data Frame B Data Frame C A C transmits data frame & collides with A at B New MAC: CSMA with Collision Avoidance

CSMA with Collision Avoidance (a) RTS B A requests to send C (b) CTS B CTS A C B announces A ok to send (c) Data Frame B A sends C remains quiet

IEEE 802.11 Wireless LAN Stimulated by availability of unlicensed spectrum U.S. Industrial, Scientific, Medical (ISM) bands 902-928 MHz, 2.400-2.4835 GHz, 5.725-5.850 GHz Targeted wireless LANs @ 20 Mbps MAC for high speed wireless LAN Ad Hoc & Infrastructure networks Variety of physical layers

802.11 Definitions Basic Service Set (BSS) Group of stations that coordinate their access using a given instance of MAC Located in a Basic Service Area (BSA) Stations in BSS can communicate with each other Distinct collocated BSS s can coexist Extended Service Set (ESS) Multiple BSSs interconnected by Distribution System (DS) Each BSS is like a cell and stations in BSS communicate with an Access Point (AP) Portals attached to DS provide access to Internet

Infrastructure Network Server Portal Distribution System Portal Gateway to the Internet AP1 AP2 A1 B1 BSS A A2 BSS B B2

Distribution Services Stations within BSS can communicate directly with each other DS provides distribution services: Transfer MAC SDUs between APs in ESS Transfer MSDUs between portals & BSSs in ESS Transfer MSDUs between stations in same BSS Multicast, broadcast, or stations s preference ESS looks like single BSS to LLC layer

Infrastructure Services Select AP and establish association with AP Then can send/receive frames via AP & DS Reassociation service to move from one AP to another AP Dissociation service to terminate association Authentication service to establish identity of other stations Privacy service to keep contents secret

IEEE 802.11 MAC MAC sublayer responsibilities Channel access PDU addressing, formatting, error checking Fragmentation & reassembly of MAC SDUs MAC security service options Authentication & privacy MAC management services Roaming within ESS Power management

MAC Services Contention Service: Best effort Contention-Free Service: time-bounded transfer MAC can alternate between Contention Periods (CPs) & Contention-Free Periods (CFPs) Contentionfree service MSDUs MSDUs Contention service Point coordination function Distribution coordination function (CSMA-CA) MAC Physical

Distributed Coordination Function (DCF) DIFS Contention window DIFS Busy medium PIFS SIFS Next frame Defer access Wait for reattempt time Time DCF provides basic access service Asynchronous best-effort data transfer All stations contend for access to medium CSMA-CA Ready stations wait for completion of transmission All stations must wait Interframe Space (IFS)

Priorities through Interframe Spacing DIFS Contention window DIFS Busy medium PIFS SIFS Next frame Defer access Wait for reattempt time Time High-Priority frames wait Short IFS (SIFS) Typically to complete exchange in progress ACKs, CTS, data frames of segmented MSDU, etc. PCF IFS (PIFS) to initiate Contention-Free Periods DCF IFS (DIFS) to transmit data & MPDUs

Contention & Backoff Behavior If channel is still idle after DIFS period, ready station can transmit an initial MPDU If channel becomes busy before DIFS, then station must schedule backoff time for reattempt Backoff period is integer # of idle contention time slots Waiting station monitors medium & decrements backoff timer each time an idle contention slot transpires Station can contend when backoff timer expires A station that completes a frame transmission is not allowed to transmit immediately Must first perform a backoff procedure

(a) RTS A requests to send B C (b) CTS B CTS A C B announces A ok to send (c) Data Frame B A sends C remains quiet (d) ACK B ACK B sends ACK

Carrier Sensing in 802.11 Physical Carrier Sensing Analyze all detected frames Monitor relative signal strength from other sources Virtual Carrier Sensing at MAC sublayer Source stations informs other stations of transmission time (in μsec) for an MPDU Carried in Duration field of RTS & CTS Stations adjust Network Allocation Vector to indicate when channel will become idle Channel busy if either sensing is busy

Transmission of MPDU without RTS/CTS DIFS Data Source SIFS ACK Destination DIFS Other NAV Defer Access Wait for Reattempt Time

Transmission of MPDU with RTS/CTS DIFS Source RTS Data SIFS CTS SIFS SIFS Ack Destination NAV (RTS) DIFS Other NAV (CTS) NAV (Data) Defer access

Collisions, Losses & Errors Collision Avoidance When station senses channel busy, it waits until channel becomes idle for DIFS period & then begins random backoff time (in units of idle slots) Station transmits frame when backoff timer expires If collision occurs, recompute backoff over interval that is twice as long Receiving stations of error-free frames send ACK Sending station interprets non-arrival of ACK as loss Executes backoff and then retransmits Receiving stations use sequence numbers to identify duplicate frames

Point Coordination Function PCF provides connection-oriented, contention-free service through polling Point coordinator (PC) in AP performs PCF Polling table up to implementor CFP repetition interval Determines frequency with which CFP occurs Initiated by beacon frame transmitted by PC in AP Contains CFP and CP During CFP stations may only transmit to respond to a poll from PC or to send ACK

PCF Frame Transfer TBTT Contention-free repetition interval PIFS B SIFS D1 + Poll SIFS U 1 + ACK SIFS D2+Ack+ Poll SIFS U 2 + ACK SIFS CF End Contention period Reset NAV NAV CF_Max_duration D1, D2 = frame sent by point coordinator U1, U2 = frame sent by polled station TBTT = target beacon transmission time B = beacon frame

Frame Types Management frames Station association & disassociation with AP Timing & synchronization Authentication & deauthentication Control frames Handshaking ACKs during data transfer Data frames Data transfer

Frame Structure MAC header (bytes) 2 2 6 6 6 2 6 0-2312 4 Frame Control Duration/ ID 1 2 3 Sequence control 4 Frame body CRC MAC Header: 30 bytes Frame Body: 0-2312 bytes CRC: CCITT-32 4 bytes CRC over MAC header & frame body

Frame Control (1) MAC header (bytes) 2 2 6 6 6 2 6 0-2312 4 Frame Control Duration/ ID 1 2 3 Sequence control 4 Frame body CRC 2 2 Protocol version Type 4 1 1 1 1 1 1 1 1 Subtype To DS From DS More frag Retry Pwr mgt More data WEP Rsvd Protocol version = 0 Type: Management (00), Control (01), Data (10) Subtype within frame type Type=00, subtype=association; Type=01, subtype=ack MoreFrag=1 if another fragment of MSDU to follow

Frame Control (2) 2 2 6 6 6 2 6 0-2312 4 Frame Control Duration/ ID 1 2 3 Sequence control 4 Frame body CRC 2 2 4 1 1 1 1 1 1 1 1 Protocol version Type Subtype To DS From DS More frag Retry Pwr mgt More data WEP Rsvd To DS From DS 0 0 0 1 1 Destination address Destination address 1 0 BSSID 1 1 Receiver address 2 Source address BSSID Source address Transmitter address 3 BSSID Source address Destination address Destination address 4 N/A N/A N/A Source address Meaning Data frame from station to station within a BSS Data frame exiting the DS Data frame destined for the DS WDS frame being distributed from AP to AP To DS = 1 if frame goes to DS; From DS = 1 if frame exiting DS

Frame Control (3) MAC header (bytes) 2 2 6 6 6 2 6 0-2312 4 Frame Control Duration/ ID 1 2 3 Sequence control 4 Frame body CRC 2 2 Protocol version Type 4 1 1 1 1 1 1 1 1 Subtype To DS From DS More frag Retry Pwr mgt More data WEP Rsvd Retry=1 if mgmt/control frame is a retransmission Power Management used to put station in/out of sleep mode More Data =1 to tell station in power-save mode more data buffered for it at AP WEP=1 if frame body encrypted

Physical Layers LLC PDU LLC PLCP PLCP preamble header MAC header MAC SDU PLCP PDU CRC MAC layer Physical layer convergence procedure Physical medium dependent Physica layer 802.11 designed to Support LLC Operate over many physical layers

IEEE 802.11 Physical Layer Options Frequency Bit Rate Band 802.11 2.4 GHz 1-2 Mbps Modulation Scheme Frequency-Hopping Spread Spectrum, Direct Sequence Spread Spectrum 802.11b 2.4 GHz 11 Mbps Complementary Code Keying & QPSK 802.11g 2.4 GHz 54 Mbps Orthogonal Frequency Division Multiplexing & CCK for backward compatibility with 802.11b 802.11a 5-6 GHz 54 Mbps Orthogonal Frequency Division Multiplexing