CS 414 Indian Institute of Technology, Bombay CS 414 802.11.

Slides:



Advertisements
Similar presentations
Networks: Wireless LANs1 Wireless Local Area Networks.
Advertisements

Contents IEEE MAC layer operation Basic CSMA/CA operation
Lecture 5: IEEE Wireless LANs (Cont.). Mobile Communication Technology according to IEEE (examples) Local wireless networks WLAN a.
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.
University of Calgary – CPSC 441
IEEE b Wireless LANs Carey Williamson Department of Computer Science University of Calgary.
Studying st lecture ~Overview of IEEE ~ Tadashi YASUMOTO.
14.1 Chapter 14 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Wireless Networking So we talked about wired networks. What about wireless?
20 – Collision Avoidance, : Wireless and Mobile Networks6-1.
specifications overview Specifications MAC  Specification of layers below LLC  Associated management/control interfaces MIB Control Applications.
110/15/2003CS211 IEEE Standard Why we study this standard: overall architecture physical layer spec. –direct sequence –frequency hopping MAC layer.
IEEE b Wireless LANs Carey Williamson Department of Computer Science University of Calgary.
WLAN b a Johan Montelius
IEEE Wireless LAN Standard Chapter 14. IEEE 802 Protocol Layers.
Network Security Wireless LAN. Network Security About WLAN  IEEE standard  Use wireless transmission medium such as radio, microwave, infrared.
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.
Overview of Wireless LANs Use wireless transmission medium Issues of high prices, low data rates, occupational safety concerns, & licensing requirements.
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.
Chapter 04 IEEE Media Access Control
14.1 Chapter 14 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IEEE Wireless LAN Standard
IEEE Wireless LAN Standard. Medium Access Control-CSMA/CA IEEE defines two MAC sublayers Distributed coordination function (DCF) Point coordination.
CSC 581 Communication Networks II Chapter 6c: Local Area Network (Wireless LAN – ) Dr. Cheer-Sun Yang.
IEEE WLAN.
Chapter 6 Medium Access Control Protocols and Local Area Networks Wireless LAN.
WIRELESS COMMUNICATION Husnain Sherazi Lecture 1.
Universität Karlsruhe Institut für Telematik ECE 591
IEEE Wireless LAN Standard
WLAN. Networks: Wireless LANs2 Distribute Coordination Function (DCF) Distributed access protocol Contention-Based Uses CSMA/ CA – Uses both physical.
WLAN.
MAC Sublayer MAC layer tasks: – Control medium access – Roaming, authentication, power conservation Traffic services – DCF (Distributed Coordination.
Wireless Protocols. 2 Outline MACA 3 ISM: Industry, Science, Medicine unlicensed frequency spectrum: 900Mhz, 2.4Ghz, 5.1Ghz, 5.7Ghz.
MAC Layer Protocols for Wireless Networks. What is MAC? MAC stands for Media Access Control. A MAC layer protocol is the protocol that controls access.
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)
IEEE Wireless LAN. Wireless LANs: Characteristics Types –Infrastructure based –Ad-hoc Advantages –Flexible deployment –Minimal wiring difficulties.
CS440 Computer Networks 1 Wireless LAN (IEEE ) Neil Tang 10/01/2008.
School of Engineering NTM, WLAN, 1 IEEE WLAN: Short Introduction References [1]J. Schiller, „Mobile Communications“, 2nd Ed., Pearson, [2]M.
Chapter 15 Wireless LANs.
Wireless MAC.
Wireless MAC.
EA C451 (Internetworking Technologies)
Medium Access Control MAC protocols: design goals, challenges,
Computer Communication Networks
Lecture 27 WLAN Part II Dr. Ghalib A. Shah
Mobile and Ad hoc Networks
Chapter 2 Wireless LANS and PANS
CS 457 – Lecture 7 Wireless Networks
Wireless Local Area Networks (LANs)
WiFi Networks: IEEE b Wireless LANs
Specification overview
Chapter 6 Medium Access Control Protocols and Local Area Networks
Specification overview
Protocol Details John Bellardo UCSD.
Specification overview
Specification overview
Performance Evaluation of an Integrated-service IEEE Network
Specification overview
Specification overview
MITP 413: Wireless Technologies Week 8
Specification overview
WiFi Networks: IEEE b Wireless LANs
Presentation transcript:

CS 414 Indian Institute of Technology, Bombay CS

CS 414 Indian Institute of Technology, Bombay What is ? ● Belongs to a group of 802.x IEEE LAN standards – – – : Wireless LAN – Enhancements to original standard ● a/b/g ● MAC is same, different PHY layers ● e/n/h/i...

CS 414 Indian Institute of Technology, Bombay Operating Frequencies ● ISM band – RFs for industrial, scientific and medical – resevered internationally for free access – different regulations still exist in different countries – b/g: 2.4 to Ghz – a: 5.2 Ghz to 5.7 Ghz – Bluetooth: Ghz – : GHz

CS 414 Indian Institute of Technology, Bombay What does specifiy? ● Protocol Layering (on board) ● PHY sub-layer – a/b/g specfications ● MAC sub-layer – Independent of the PHY – Distributed Co-ordination Function (DCF) – Point Co-ordination Function (PCF) ● MAC management – syncrhonization, beacons, join, leave, handoff, power management...

CS 414 Indian Institute of Technology, Bombay PHY ● b data-rates (modulation schemes) – 1Mbps (BPSK), 2Mbps (QPSK), 5.5Mbps (CCK),11Mbps (CCK) ● a and g data-rates: – 6, 9, 12, 18, 24, 36, 48, 54 Mbps – OFDM + BPSK/QPSK/16QAM/64QAM – g is backward compatible with b ● supports b data-rates and modulations

CS 414 Indian Institute of Technology, Bombay b/g Channels ● 2400 to Mhz ● Each channel: 22 MHz wide – centre frequency + width ● 11 total channels – 3 non-overlapping channels

CS 414 Indian Institute of Technology, Bombay a Channels ● 20 Mhz spacing ● 12 non-overlapping channels – 8 in most cases

CS 414 Indian Institute of Technology, Bombay Architectures Basic Service Set/Area Independent BSS (Ad-hoc mode) Infrastructure BSS Access Point SSID: Service Set Identifier

CS 414 Indian Institute of Technology, Bombay Extended Service Set (ESS) AP1 AP2 AP3 backbone wired or wireless SSID of all APs in an ESS are same APs and Backbone act as bridges (layer-2 devices)

CS 414 Indian Institute of Technology, Bombay MAC Classification ● Multiplexing dimension – time, space, frequency, code ● Medium Control – Central ● Point Coordination Function (PCF) ● Contention-free ● Requires infrastructure networks – Distributed ● Distributed Coordination Function (DCF) ● CSMA/CA (Ethernet-like)

CS 414 Indian Institute of Technology, Bombay Ethernet CSMA/CD ● CSMA ? ● CD ?

CS 414 Indian Institute of Technology, Bombay Ethernet CSMA/CD ● Carrier Sense Multiple Access – Listen/poll medium before transmit – As soon as medium free, transmit (1-persistent) ● Sense and seize mode ● Collision Detection – Sender checks for collisions – If collision ● abort and resend ● exponential backoff

CS 414 Indian Institute of Technology, Bombay CSMA/CA ● CSMA before transmissions ● Interested in detecting collisions where – at sender ? – at receiver ?

CS 414 Indian Institute of Technology, Bombay CSMA/CA ● CSMA before transmissions ● Interested in detecting collisions where – at sender ? – at receiver ? – Cannot detect collisions at far-away receiver – Tx power at very high at transmitter ● Collision detection not possible in wireless ● Solution: Collision Avoidance

CS 414 Indian Institute of Technology, Bombay Hidden Node Problem ● A transmits – Is C able to listen? – Does C transmit? – What happens at B? A B C

CS 414 Indian Institute of Technology, Bombay Exposed Node Problem ● B transmits – A and C both receive – C wants to tranmit to D – Cannot (even if no collision with A) ● C is exposed to B A B C D

CS 414 Indian Institute of Technology, Bombay Collision Avoidance – RTS: Reserves radio link, silences users in senders vicinity – CTS: Silences stations in receivers vicinity – Primarily addresses hidden-node problem RTS: Request to Send CTS: Clear to Send

CS 414 Indian Institute of Technology, Bombay RTS-CTS Overhead ● Extra handshake for every frame to be sent ● When should RTS/CTS not be used? ● RTS threshold SenderReceiver RTS CTS Frame ACK

CS 414 Indian Institute of Technology, Bombay CA and Exposed Node Problem ● Can RTS/CTS address the problem? ● What are assumptions?

CS 414 Indian Institute of Technology, Bombay Carrier Sensing ● Physical Carrier Sensing ● Virtual Carrier Sensing ● MAC considers medium busy – If either sensing indicates medium busy

CS 414 Indian Institute of Technology, Bombay Physical Carrier Sensing ● CCA: Clear Channel Assesment ● Mode 1 – Energy detected greater than threshold ● Mode 2 – Detection of valid modulated signal ● Mode 3 – Combination of 1 and 2

CS 414 Indian Institute of Technology, Bombay Virtual Carrier Sensing ● Duration field in most frames – NAV: Network Allocation Vector ● Amount of time medium will be reserved – Nodes cound down from NAV to 0 ● if NAV > 0, medium busy access to medium deferred contention window

CS 414 Indian Institute of Technology, Bombay Interframe Spacing ● SIFS: Short Interframe Space ● PIFS: PCF Interframe Space ● DIFS: DCF Interframce Space ● EIFS: Extended Interframce Space

CS 414 Indian Institute of Technology, Bombay Interframe Spacing ● SIFS: Short Interframe Space – Highest priority (rts/cts, acks) ● PIFS: PCF Interframe Space – Medium priority – To preempt contention-based traffic ● DIFS: DCF Interframce Space – Low priority – For asynchronous data transfer ● EIFS: Extended Interframce Space – After error in transmissions

CS 414 Indian Institute of Technology, Bombay Typical Timings ● Slot time = 20 us ● SIFS = 10 us ● PIFS = SIFS + Slot time ● DIFS = SIFS + 2 * Slot time ● EIFS = not fixed ● RTS ~ 24 bytes (PHY) + 20 bytes (MAC) – 352 us (1Mbps) ● CTS ~ 24 bytes (PHY) + 16 bytes (MAC) – 304 us (1Mbps)

CS 414 Indian Institute of Technology, Bombay Contention Based Access Using DCF – If medium idle for more than DIFS ● Transmit – If previous frame received without errors or NAV expired or If channel busy ● Wait till medium free for DIFS ● Choose backoff slot within contention window – Collision (No ACK) ● Increase Contention Window ● Choose backoff slot within contention window

CS 414 Indian Institute of Technology, Bombay Backoff Procedure A DIFS Frame B C D DIFS defer CWindow DIFS Frame CWindow DIFS Frame DIFS Frame ● Immediate access when medium is free >= DIFS ● When medium is not free, defer until the end of current frame trasnsmission + DIFS period ● To beging backoff procedure – Choose a random number in ( 0, Cwindow) – Use carrier sense to determine if there is activity during each slot – Decrement backoff time by one slot if no activity is detected during that slot ● Suspend backoff procedure if medium is determined to be busy at anytime during a backoff slot ● Resume backoff precedure after the end of current frame transmission source: P. Bhagwat IITK CS698T

CS 414 Indian Institute of Technology, Bombay Contention Window Size Previous Frame DIF S Previous Frame DIF S Previous Frame DIF S Previous Frame DIF S Previous Frame DIF S Previous Frame DIF S Previous Frame DIF S 31 slots 63 slots 127 slots 255 slots 511 slots 1023 slots Initial attempt 1 st ReTx 3 rd ReTx 2 nd ReTx 4 th ReTx 5 th ReTx 6 th ReTx

CS 414 Indian Institute of Technology, Bombay Why SIFS & DIFS? access to medium deferred contention window Due to SIFS CTS and ACKS get more priority than data frames

CS 414 Indian Institute of Technology, Bombay Error Recovery ● Positive ACKs – No ACKs mean retransmit ● All unicast data must be ACKed ● No ACKs for broadcast ● Retry – When on ACK – Collisions (cannot capture medium) – Increased contention window

CS 414 Indian Institute of Technology, Bombay Fragments Transmission ● Fragmentation: – Higher-level packets may need to be broken – Improves transmission reliability under noisy environments ● Using SIFS transmitter holds channel until end of fragment transmission burst ● If no ACK, source transmits from failed fragment after backoff and contention ● Duplicate fragments: responsibility of receiver to detect and discard ● Each fragment: – Same sequence number & Ascending fragment numbers Source Fragment 0 Destination SIFS ACK 0 SIFS Fragment 1 ACK 1 SIFS Fragment 2 ACK 2 SIFS DIFS SIFS Backoff window Fragment burst SIFS

CS 414 Indian Institute of Technology, Bombay Fragmentation with RTS/CTS ● Same as before ● NAV set to include duration for transmission of next fragment and ACK

CS 414 Indian Institute of Technology, Bombay Frame Format PH Y CR C

CS 414 Indian Institute of Technology, Bombay Frame Control Field Type = 00 Management 0000 Association Request 0001 Association Response 0100 Probe request 1000 Beacon 1001 Traffic Indication Map 1010 Disassociation Type = 10 Data 0000 Data 0001 Data+CF-ACK 0010 Data+CF-Poll Type=01 Control 1011 RTS 1100 CTS 1101 ACK 1010 PS-Poll

CS 414 Indian Institute of Technology, Bombay Frame Control Fields Direction of traffic Fragments to follow indicator Frame retransmitted indicator Power save mode Buffered data ready for sleeping node Ordering of fragments Security?

CS 414 Indian Institute of Technology, Bombay Address Fields ● 48-bit addresses ● DA : Destination address (sends to upper layer) ● SA : Source address (gets data from upper layer) ● RA: Receiver address (who should process the frame?) ● TA: Transmitter address (backbone transmitter)

CS 414 Indian Institute of Technology, Bombay Beacons and Probes ● Stations need to know presence of AP other stations (BSS) ● Scanning – Passive: Switch channels and listen for beacon – Active: Send probe and wait for response on each channel AP Station beacons AP Station probe request probe response

CS 414 Indian Institute of Technology, Bombay Beacon Frame ● AP timing information (64-bit) ● Beacon period (100 ms) ● Capability information – ESS/IBSS, Privacy, Slot time... ● SSID ● PHY parameters ● Traffic Indication Map (TIM) ● Supported data rates

CS 414 Indian Institute of Technology, Bombay Authentication & Association ● Station in 3 modes (w.r.t an AP) – unauthenticated/unassociated – authenticated/unassociated – authenticated/associated ● Optimize: Pre-authenticate for speedup ● Station can be only associated to one AP

CS 414 Indian Institute of Technology, Bombay Reassociation ● For stations moving across BSSs in the same ESS or ● After temporary disconnects ● Include address of current associated AP – New AP can contact old to get association data (buffered frames)

CS 414 Indian Institute of Technology, Bombay When to switch APs?

CS 414 Indian Institute of Technology, Bombay When to switch APs? ● Signal Strength based – One-time – Periodic scan – Out-of-range ● Load on AP – # users associated already

CS 414 Indian Institute of Technology, Bombay PS-Poll ● Power-Save Poll ● After wakeup poll AP for buffer frames

CS 414 Indian Institute of Technology, Bombay RTS Frame NAV RARA TA FC S

CS 414 Indian Institute of Technology, Bombay CTS/ACK Frame NAV RARA FC S 1011 AC K

PHY MAC Protcol Data Unit (MPDU) MAC Protcol Data Unit (MPDU) PLCP header MAC Protcol Data Unit (MPDU) PLCP header MAC Protcol Data Unit (MPDU) Sender Receiver Physical Media Dependent (PMD) layer PMD layer MAC PHY High rate (DSSS) PHY 11, 5.5 Mbps b Direct Sequence Spread Spectrum (DSSS) PHY 1,2 Mbps Frequency Hopping Spread Spectrum (FHSS) PHY 1, 2 Mbps Infrared (IR) PHY 1,2 Mbps Higher rate (DSSS) PHY 20+ Mbps g 2.4 GHz Orthogonal Frequency Division Multiplexing (OFDM) PHY 6,9,12,18,24,36,48,54 Mbps a 5.7 GHz Source: IITK 2003, P Bhagwat CS698T

CS 414 Indian Institute of Technology, Bombay Physical Layer PHY (revisited) ● PLCP: Physcial Layer Convergance Procedure – Glue between MAC frames and PHY – Adds PHY headers ● PMD: Physical Medium Dependent sublayer – Transmit bits from PLCP over wireless ● CCA (Clear Channel Assesment) PLCP PMD Data Link Layer (MAC, LLC)

CS 414 Indian Institute of Technology, Bombay PHY Frame Format SYNC 128 bits SFD 16 bits Signal 8 bits Service 8 bits Length 16 bits CRC 16 bits PLCP Preamble PLCP Header MPDU PPDU ● SFD: Start Frame Delimiter ● Signal: Tx Rate (modulation type) ● Service (reserved) ● Length= Time to Tx frame ● CRC: Protection for header

CS 414 Indian Institute of Technology, Bombay Performance ● b data rates – 1, 2, 5.5 and 11 Mbps – throughput at MAC-level?

CS 414 Indian Institute of Technology, Bombay Throughput ● PLCP Preamble + Header: 24 bytes ● RTS: 20 bytes, CTS: 14 bytes ● MAC Header: bytes ● IP Header: 20 bytes ● TCP Header: 20 bytes ● UDP Header: 8 bytes ● Retransmissions, ACKs ● Large packet overhead!

CS 414 Indian Institute of Technology, Bombay Measured Throughput

CS 414 Indian Institute of Technology, Bombay

MIT RoofNet

CS 414 Indian Institute of Technology, Bombay

Measurement-based Characterization Channel 1 Channel 8 Channel 11 ● AP setting ● 5 APs ● 5 monitors