Spring 2005UCSC CMPE2571 CMPE 257: Wireless Networking SET 3: Medium Access Control Protocols.

Slides:



Advertisements
Similar presentations
Contents IEEE MAC layer operation Basic CSMA/CA operation
Advertisements

Lecture 5: IEEE Wireless LANs (Cont.). Mobile Communication Technology according to IEEE (examples) Local wireless networks WLAN a.
Session: IT 601: Mobile Computing IEEE e Prof. Anirudha Sahoo IIT Bombay.
Wireless LAN (not assessed) Dr Sandra I. Woolley.
– Wireless PHY and MAC Stallings Types of Infrared FHSS (frequency hopping spread spectrum) DSSS (direct sequence.
© Kemal AkkayaWireless & Network Security 1 Department of Computer Science Southern Illinois University Carbondale CS591 – Wireless & Network Security.
Comp 361, Spring 20056:Basic Wireless 1 Chapter 6: Basic Wireless (last updated 02/05/05) r A quick intro to CDMA r Basic
1 Medium Access Control Enhancements for Quality of Service IEEE Std e TM November 2005.
14.1 Chapter 14 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Power Management in IEEE Yu-Chee 1. Possible Access Sequences for a STA in PS Mode 2. PS in Infrastructure Network 3. PS in Ad.
Network Technology CSE Network Technology CSE3020 Week 9.
P. Bhagwat Specification overview. P. Bhagwat Specifications PLCP Sublayer PHY layer Management PMD Sublayer MAC sublayer MAC Layer Management.
1 CSE401n:Computer Networks Lecture 16 Wireless Link & LANs WS: ch-14 KR: 5.7.
1 Power Management in IEEE Yu-Chee 1. Possible Access Sequences for a STA in PS Mode 2. PS in Infrastructure Network 3. PS in Ad.
Introduction to Wireless LANs: Supports both Asynchronous data transfer and time bound services Asynchronous: traffic insensitive to time.
20 – Collision Avoidance, : Wireless and Mobile Networks6-1.
Spring 2006UCSC CMPE2571 CMPE 257: Wireless Networking SET MAC-1: Medium Access Control Protocols.
specifications overview Specifications MAC  Specification of layers below LLC  Associated management/control interfaces MIB Control Applications.
1 Introduction to Wireless Networks Michalis Faloutsos.
Power Management in Presented by Sweta Sarkar June 17 th, 2002.
110/15/2003CS211 IEEE Standard Why we study this standard: overall architecture physical layer spec. –direct sequence –frequency hopping MAC layer.
802.11g & e Presenter : Milk. Outline g  Overview of g  g & b co-exist QoS Limitations of e  Overview of.
1 WiFi MAC Protocol. 2 History WiFi is used to “describe the underlying technology of wireless local area networks (WLAN) based on the IEEE specifications.
protocol continued. DCF The basic idea is non-persistent. Can do an optimization: For a new packet (Q len = 0), the sender needs only wait for.
Lecture #2 Chapter 14 Wireless LANs.
Wireless LAN Advantages 1. Flexibility 2. Planning 3. Design
MAC layer Taekyoung Kwon. Media access in wireless - start with IEEE In wired link, –Carrier Sense Multiple Access with Collision Detection –send.
IEEE Project started by IEEE for setting standard for LAN. This project started in (1980, February), Name given to project is year and month.
IEEE Wireless LAN Part II Access Point, Power Management, Polling, and Frame Format 14-1.
IEEE Wireless LAN Standard. Medium Access Control-CSMA/CA IEEE defines two MAC sublayers Distributed coordination function (DCF) Point coordination.
1 Chapter 8 Power Management in IEEE Yu-Chee 1. Possible Access Sequences for a STA in PS Mode 2. PS in Infrastructure Network 3.
Wireless LANs Prof. F. Tobagi MAC Management 1.
1 Medium Access Control Enhancements for Quality of Service IEEE Std e TM November 2005.
CSC 581 Communication Networks II Chapter 6c: Local Area Network (Wireless LAN – ) Dr. Cheer-Sun Yang.
Copyright © 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties. Quality of Service(QoS) in IEEE Wireless LANs: Evaluation.
IEEE WLAN.
Chapter 6 Medium Access Control Protocols and Local Area Networks Wireless LAN.
An Introduction to Wireless LANs
Universität Karlsruhe Institut für Telematik ECE 591
Chapter 14 Wireless LANs.
MAC Sublayer MAC layer tasks: – Control medium access – Roaming, authentication, power conservation Traffic services – DCF (Distributed Coordination.
1/49 Power Management in IEEE Yu-Chee Tseng.
1/23 Power Management in IEEE Yu-Chee Tseng.
MAC for WLAN Doug Young Suh Last update : Aug 1, 2009 WLAN DCF PCF.
Wireless LANs Abhishek Karnik, Dr. Ratan Guha University Of Central Florida.
Distributed-Queue Access for Wireless Ad Hoc Networks Authors: V. Baiamonte, C. Casetti, C.-F. Chiasserini Dipartimento di Elettronica, Politecnico di.
ECEN 489, Prof. Xi Zhang Medium Access Control Protocols, Local Area Networks, and Wireless Local Area Networks Lecture Note 11.
DSSS PHY packet format Synchronization SFD (Start Frame Delimiter)
Copyright © 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties. Wireless LANs Session
Wireless LAN Requirements (1) Same as any LAN – High capacity, short distances, full connectivity, broadcast capability Throughput: – efficient use wireless.
IEEE Wireless LAN. Wireless LANs: Characteristics Types –Infrastructure based –Ad-hoc Advantages –Flexible deployment –Minimal wiring difficulties.
Wireless MAC.
EA C451 (Internetworking Technologies)
Computer Communication Networks
Lecture 27 WLAN Part II Dr. Ghalib A. Shah
IEEE : Wireless LANs ALOHA, Slotted ALOHA
Chapter 2 Wireless LANS and PANS
IEEE Wireless LAN wireless LANs: untethered (often mobile) networking
Power Management in IEEE
Specification overview
Chapter 6 Medium Access Control Protocols and Local Area Networks
Specification overview
Protocol Details John Bellardo UCSD.
Introduction to Wireless Networks
Specification overview
Specification overview
Performance Evaluation of an Integrated-service IEEE Network
Specification overview
Specification overview
Specification overview
Presentation transcript:

Spring 2005UCSC CMPE2571 CMPE 257: Wireless Networking SET 3: Medium Access Control Protocols

Spring 2005UCSC CMPE2572 MAC Protocol Topics n IEEE n Fairness n Directional antennas n Multiple channels n Modeling and performance analysis (very limited!) n Power efficiency and synchronization issues n Scheduled channel access

Spring 2005UCSC CMPE2573 IEEE Standard n PHY/MAC standard for wireless LANs p First standardized in 1997 p Meet great success in starting from 1999 n Several working groups p IEEE a: high speed extension to the 5GHz band p b/g: high speed extension to the 2.4 GHz band p e: Quality of service (QoS) enhancement (still active) p i: Security enhancement p s: Mesh-networking support

Spring 2005UCSC CMPE2574 Requirements n Single MAC to support multiple PHYs p Handle ``hidden terminal’’ problem p Provisions time-bounded service n PHYs: p Direct sequence p Frequency hopping p Infrared (never implemented)

Spring 2005UCSC CMPE2575 Architecture n Infrastructure mode p Basic Service Set (BSS) p Access Point (AP) and stations (STA) take different roles p Distribution system (DS) interconnect multiple BSSs to form a single network (not specified in the standard). n Ad hoc mode p Independent Basic Service Set (IBSS) p Single-hop (the standard makes this assumption either explicitly or implicitly)

Spring 2005UCSC CMPE2576 Access Points n Stations select an AP and “associate” with it n Support roaming (not part of the standard) n Provide other functions p time synchronization (beaconing) p power management support p point coordination function (PCF) n Traffic typically (but not always) flows through AP p direct communication possible (in IEEE e)

Spring 2005UCSC CMPE Protocol Entities MAC Sublayer PLCP Sublayer PMD Sublayer MAC Layer Management PHY Layer Management Station Management LLC MAC PHY

Spring 2005UCSC CMPE Protocol Architecture n MAC Entity p basic access mechanism p fragmentation p encryption n MAC Layer Management Entity p synchronization p power management p roaming p MAC MIB n Physical Layer Convergence Protocol (PLCP) p PHY-specific, supports common PHY SAP p provides Clear Channel Assessment (CCA) signal (carrier sense)

Spring 2005UCSC CMPE Protocol Architecture (cont.) n Physical Medium Dependent Sublayer (PMD) p modulation and encoding n PHY Layer Management p channel tuning p PHY MIB n Station Management p interacts with both MAC Management and PHY Management

Spring 2005UCSC CMPE25710 MAC in Detail n Channel access mechanism r Distributed Coordination Function (DCF) Carrier sense multiple access (CSMA) with immediate MAC-level ACK RTS/CTS exchange (optional) r Point Coordination Function (PCF) Polled access through AP and distributed access Contention-free period (CFP) and contention period (CP) Seldom implemented in practice n Synchronization and power management

Spring 2005UCSC CMPE25711 CSMA/CA Explained DIFS Contention Window Slot time Defer Access Backoff-Window Next Frame Select Slot and Decrement Backoff as long as medium is idle. SIFS PIFS DIFS Free access when medium is free longer than DIFS Busy Medium n Reduce collision probability where mostly needed. p Stations are waiting for medium to become free. p Select Random Backoff after a Defer, resolving contention to avoid collisions. n Efficient Backoff algorithm stable at high loads. p Exponential Backoff window increases for retransmissions. p Backoff timer elapses only when medium is idle. n Implement different fixed priority levels. p To allow immediate responses and PCF coexistence.

Spring 2005UCSC CMPE25712 CSMA/CA + ACK protocol Defer access based on Carrier Sense. –CCA from PHY and Virtual Carrier Sense state. Direct access when medium is sensed free longer then DIFS, otherwise defer and backoff. Receiver of directed frames to return an ACK immediately when CRC correct. –When no ACK received then retransmit frame after a random backoff (up to maximum limit). Ack Data Next MPDU Src Dest Other Contention Window Defer Access Backoff after Defer DIFS SIFS DIFS

Spring 2005UCSC CMPE25713 RTS/CTS Based Access Net Allocation Vector (NAV)Duration field in RTS and CTS frames distribute Medium Reservation information which is stored in a Net Allocation Vector (NAV). Medium BusyDefer on either NAV or "CCA" indicating Medium Busy. Use of RTS / CTS is optional but must be implemented. RTS_ThresholdUse is controlled by a RTS_Threshold parameter per station. –To limit overhead for short frames. RTS CTS Ack Data NAV Next MPDU Src Dest Other CW Defer AccessBackoff after Defer NAV (RTS) (CTS) DIFS

Spring 2005UCSC CMPE25714 Frame Formats n MAC Header format differs per Type: p Control Frames (several fields are omitted) p Management Frames p Data Frames n Includes Sequence Control Field for filtering of duplicate caused by ACK mechanism. Frame Control Duration ID Addr 1Addr 2Addr 3Addr 4 Sequence Control CRC Frame Body MAC Header Bytes: Protocol Version TypeSubType To DS Retry Pwr Mgt More Data WEPRsvd Frame Control Field Bits: DS FromMore Frag

Spring 2005UCSC CMPE25715 Address Field Description n Addr 1 = All stations filter on this address. n Addr 2 = Transmitter Address (TA) p Identifies transmitter to address the ACK frame to. n Addr 3 = Dependent on To and From DS bits. (Wireless Distribution System) n Addr 4 = Only needed to identify the original source of WDS (Wireless Distribution System) frames.

Spring 2005UCSC CMPE25716 Comments on CSMA/CA n IEEE cannot avoid collisions of data packets (see [FAMA97]). n CSMA/CA works fine when hidden terminals are just a few. n For most single-hop wireless LANs, RTS/CTS is not useful (turned off by default in practice) n Spatial reuse is reduced in multi-hop networks

Spring 2005UCSC CMPE25717 Synchronization and Power Management n Synchronization p finding and staying with a WLAN p Synchronization functions r TSF Timer, Beacon Generation n Power Management p sleeping without missing any messages p Power Management functions r periodic sleep, frame buffering, Traffic Indication Map

Spring 2005UCSC CMPE25718 Synchronization in n Timing Synchronization Function (TSF) n Used for Power Management p Beacons sent at well known intervals p All station timers in BSS are synchronized n Used for Point Coordination Timing p TSF Timer used to predict start of Contention Free burst n Used for Hop Timing for FH PHY p TSF Timer used to time Dwell Interval p All Stations are synchronized, so they hop at same time.

Spring 2005UCSC CMPE25719 n All stations maintain a local timer. n Timing Synchronization Function p keeps timers from all stations in synch p AP controls timing in infrastructure networks p distributed function for Independent BSS n Timing conveyed by periodic Beacon transmissions p Beacons contain Timestamp for the entire BSS p Timestamp from Beacons used to calibrate local clocks p not required to hear every Beacon to stay in synch p Beacons contain other management information r also used for Power Management, Roaming Synchronization Approach

Spring 2005UCSC CMPE25720 Infrastructure Beacon Generation APs send Beacons in infrastructure networks. Beacons scheduled at Beacon Interval. Transmission may be delayed by CSMA deferral. –subsequent transmissions at expected Beacon Interval –not relative to last Beacon transmission –next Beacon sent at Target Beacon Transmission Time Timestamp contains timer value at transmit time. Time Axis Beacon Interval XXXX "Actual time" stamp in Beacon Beacon Busy Medium

Spring 2005UCSC CMPE25721 Power Management n Mobile devices are battery powered. p Power Management is important for mobility. n Current LAN protocols assume stations are always ready to receive. p Idle receive state dominates LAN adapter power consumption over time. n How can we power off during idle periods, yet maintain an active session? n Power Management Protocol: p allows transceiver to be off as much as possible p is transparent to existing protocols p is flexible to support different applications r possible to trade off throughput for battery life

Spring 2005UCSC CMPE25722 Power Management Approach n Allow idle stations to go to sleep p station’s power save mode stored in AP n APs buffer packets for sleeping stations. p AP announces which stations have frames buffered p Traffic Indication Map (TIM) sent with every Beacon n Power Saving stations wake up periodically p listen for Beacons n TSF assures AP and Power Save stations are synchronized p stations will wake up to hear a Beacon p TSF timer keeps running when stations are sleeping p synchronization allows extreme low power operation n Independent BSS also have Power Management p similar in concept, distributed approach

Spring 2005UCSC CMPE25723 Infrastructure Power Management n Broadcast frames are also buffered in AP. p all broadcasts/multicasts are buffered p broadcasts/multicasts are only sent after DTIM p DTIM interval is a multiple of TIM interval TIM TIM-Interval Time-axis Busy Medium AP activity TIM DTIM DTIM interval Broadcast

Spring 2005UCSC CMPE25724 Infrastructure Power Management n Broadcast frames are also buffered in AP. p all broadcasts/multicasts are buffered p broadcasts/multicasts are only sent after DTIM p DTIM interval is a multiple of TIM interval n Stations wake up prior to an expected (D)TIM. TIM TIM-Interval Time-axis Busy Medium AP activity TIM DTIM DTIM interval PS Station Broadcast

Spring 2005UCSC CMPE25725 Infrastructure Power Management n Broadcast frames are also buffered in AP. p all broadcasts/multicasts are buffered p broadcasts/multicasts are only sent after DTIM p DTIM interval is a multiple of TIM interval n Stations wake up prior to an expected (D)TIM. n If TIM indicates frame buffered p station sends PS-Poll and stays awake to receive data p else station sleeps again TIM TIM-Interval Time-axis Busy Medium Tx operation AP activity TIM DTIM DTIM interval PS Station Broadcast PS-Poll Broadcast

Spring 2005UCSC CMPE25726 BSS (Basic Service Set) QBSS (Basic Service Set for QoS) ( Enhanced Station ) HCCAEDCAPCFDCF PC HC IEEE E

Spring 2005UCSC CMPE25727 IEEE E p QoS enhancements r EDCA - Enhanced Distributed Coordinated Access (a.k.a. Enhanced DCF) r HCCA - Hybrid Coordination Function (through HC, Hybrid Controller) Coordinated Access (a.k.a. Enhanced PCF) p TC – Traffic Categories p TXOP – Transmission Opportunity r Granted by EDCF-TXOP or HC- poll TXOP p AIFS – Arbitration Interframe Space p Draft only – subject to change!

Spring 2005UCSC CMPE e EDCA n Introduction of 4 Access Categories (AC) with 8 Traffic Classes (TC) n MSDU are delivered through multiple backoffs within one station using AC specific parameters. n Each AC independently starts a back off after detecting the channel being idle for AIFS n After waiting AIFS, each back off sets counter from number drawn from interval [1,CW+1] n newCW [AC] >= ((oldCW[TC] + 1 ) * PF ) - 1

Spring 2005UCSC CMPE25729 Access Category and Traffic Class n Prioritized Channel Access is realized with the QoS parameters per TC, which include : p AIFS[AC] p CWmin[AC] p PF[AC] AC_VO [0]AC_VI [1]AC_BE [2]AC_BK [3] AIFSN2237 CWmin3715 CWmax

Spring 2005UCSC CMPE25730 EDCA Virtual Collision AC1AC2AC3AC4TC

Spring 2005UCSC CMPE25731 ACK BackOff[AC0] + Frame BackOff[AC1] + Frame BackOff[AC2] + Frame AIFS[AC0] AIFS[AC1] AIFS[AC2] BackOff[AC3] + Frame AIFS[AC3 ] Access Category based Back-offs

Spring 2005UCSC CMPE25732 HCCA ( Hybrid Coordination Function Controlled Channel Access ) n Extends the EDCA access rules. n CP : TxOP p After AIFS + Back off p QoS Poll ; After PIFS n CFP : TxOP p Starting and duration specified by HC using QoS Poll.

Spring 2005UCSC CMPE25733 HCCAEDCA HC PIFS DATAA AIFSSIFSAIFS PIFS DATA Hybrid Coordinator

Spring 2005UCSC CMPE e Operation in the CFP n Guaranteed channel access on successful registration n Each node will receive a TxOP by means of polls granted to them by the HC n TxOP based on negotiated Traffic specification (TSPEC) and observed node activity n TxOP is at least the size of one Maximum sized MSDU at the PHY rate. n Access Point advertises polling list

Spring 2005UCSC CMPE25735 Food for Thought n Use your favorite network simulator, try to experiment with IEEE in multi-hop networks and see how well or bad it performs in such networks. Any interesting findings? n Simulate IEEE e in multi-hop networks and test its effectiveness for service differentiation.

Spring 2005UCSC CMPE25736 References n [IEEE99] IEEE Standard for Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications, IEEE Std n [TK84] H. Takagi and L. Kleinrock, Optimal Transmission Range for Randomly Distributed Packet Radio Terminals, IEEE Trans. on Comm., vol. 32, no. 3, pp , n [WV99] L. Wu and P. Varshney, Performance Analysis of CSMA and BTMA Protocols in Multihop Networks (I). Single Channel Case, Information Sciences, Elsevier Sciences Inc., vol. 120, pp , n [WG02] Yu Wang and JJ, Performance of Collision Avoidance Protocols in Single-Channel Ad Hoc Networks, IEEE Intl. Conf. on Network Protocols (ICNP ’02), Paris, France, Nov

Spring 2005UCSC CMPE25737 Acknowledgments n Parts of the presentation are adapted from the following sources: p Mustafa Ergen, UC Berkeley, overview.ppt overview.ppt p Greg Ennis, Symbol Technologies, p Phil Belanger, Aironet and Wim Diepstraten, Lucent Technologies, p Abhishek Karnik, Dr. Ratan Guha, University Of Central Florida,