Wi-Fi. Basic structure: – Stations plus an access point – Stations talk to the access point, then to outside – Access point talks to stations – Stations.

Slides:



Advertisements
Similar presentations
Nick Feamster CS 4251 Computer Networking II Spring 2008
Advertisements

Medium Access Issues David Holmer
Networks: Wireless LANs1 Wireless Local Area Networks.
Ethernet, Wireless LAN. Ethernet Frame Format (a) DIX Ethernet, (b) IEEE
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.
Multiple access What if multiple machines are sharing the same link?
– 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
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.
CS541 Advanced Networking 1 Basics of Wireless Networking Neil Tang 1/21/2009.
Wireless Networking So we talked about wired networks. What about wireless?
Networks: Wireless LANs1 Wireless Local Area Networks.
1 CSCD 439/539 Wireless Networks and Security CSDA/CA, Frames Lecture 4 Fall 2007 Some Material in these slides from J.F Kurose and K.W. Ross All material.
Copyright © 2003, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 1 Chapter 6 Multiple Radio Access.
Wireless Local Area Networks
20 – Collision Avoidance, : Wireless and Mobile Networks6-1.
Networks: Wireless LANs1 Wireless Local Area Networks.
1 Introduction to Wireless Networks Michalis Faloutsos.
5-1 Data Link Layer r Wireless Networks m Wi-Fi (Wireless LAN) Example Problems m RTS/CTS.
5-1 Data Link Layer r What is Data Link Layer? r Wireless Networks m Wi-Fi (Wireless LAN) r Comparison with Ethernet.
Semester EEE449 Computer Networks The Data Link Layer Part 2: Media Access Control En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex,
8/7/20151 Mobile Computing COE 446 Wireless Multiple Access Tarek Sheltami KFUPM CCSE COE hthttp://faculty.kfupm.edu.sa/coe/tarek/coe446.htm Principles.
6: Wireless and Mobile Networks6-1 Elements of a wireless network network infrastructure wireless hosts r laptop, PDA, IP phone r run applications r may.
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.
Wireless LAN Simulation - IEEE MAC Protocol
CS640: Introduction to Computer Networks Aditya Akella Lecture 22 - Wireless Networking.
Lecture #2 Chapter 14 Wireless LANs.
Opersating Mode DCF: distributed coordination function
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.
Wireless Medium Access. Multi-transmitter Interference Problem  Similar to multi-path or noise  Two transmitting stations will constructively/destructively.
Ethernet. Problem In an Ethernet, suppose there are three stations very close to each other, A, B and C. Suppose at time 0, all of them have a frame to.
Lecture 4 Wireless Medium Access Control
Computer and Data Communications Semester Mohd Nazri Mahmud Session 4a-12 March 2012.
IEEE Wireless LAN Standard. Medium Access Control-CSMA/CA IEEE defines two MAC sublayers Distributed coordination function (DCF) Point coordination.
F ACULTY OF C OMPUTER S CIENCE & E NGINEERING Chapter 05. MAC and Physical Layers.
Wireless and Mobility The term wireless is normally used to refer to any type of electrical or electronic operation which is accomplished without the use.
Chapter 6 Multiple Radio Access
Fundamentals of Computer Networks ECE 478/578
IEEE WLAN.
Introduction to Wireless Networks Dina Katabi & Sam Madden MIT – – Spring 2014.
5: DataLink Layer 5a-1 Multiple Access protocol. 5: DataLink Layer 5a-2 Multiple Access Links and Protocols Three types of “links”: r point-to-point (single.
Background of Ad hoc Wireless Networks Student Presentations Wireless Communication Technology and Research Ad hoc Routing and Mobile IP and Mobility Wireless.
WIRELESS COMMUNICATION Husnain Sherazi Lecture 1.
Universität Karlsruhe Institut für Telematik ECE 591
WLAN. Networks: Wireless LANs2 Distribute Coordination Function (DCF) Distributed access protocol Contention-Based Uses CSMA/ CA – Uses both physical.
SMAC: An Energy-efficient MAC Protocol for Wireless Networks
Midterm Review. Physical Layer Physical layer design goal: send out bits as fast as possible with acceptable low error ratio C=B*log(1+S/N) – C is the.
WLAN.
Chapter 14 Wireless LANs.
MAC Sublayer MAC layer tasks: – Control medium access – Roaming, authentication, power conservation Traffic services – DCF (Distributed Coordination.
Medium Access Control in Wireless networks
Wireless Protocols. 2 Outline MACA 3 ISM: Industry, Science, Medicine unlicensed frequency spectrum: 900Mhz, 2.4Ghz, 5.1Ghz, 5.7Ghz.
CS541 Advanced Networking 1 Contention-based MAC Protocol for Wireless Sensor Networks Neil Tang 4/20/2009.
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.
Network and Systems Laboratory nslab.ee.ntu.edu.tw Copyright © Wireless Sensor Networks: Zigbee Stack Polly Huang Department of Electrical.
Distributed-Queue Access for Wireless Ad Hoc Networks Authors: V. Baiamonte, C. Casetti, C.-F. Chiasserini Dipartimento di Elettronica, Politecnico di.
DSSS PHY packet format Synchronization SFD (Start Frame Delimiter)
Copyright © 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties. Wireless LANs Session
Midterm Review. Physical Layer Physical layer design goal: send out bits as fast as possible with acceptable low error ratio C=B*log(1+S/N) – C is the.
IEEE Wireless LAN. Wireless LANs: Characteristics Types –Infrastructure based –Ad-hoc Advantages –Flexible deployment –Minimal wiring difficulties.
Wireless MAC.
EA C451 (Internetworking Technologies)
Medium Access Control MAC protocols: design goals, challenges,
Multiple Access Mahesh Jangid Assistant Professor JVW University.
MAC continued.
Chapter 6 Multiple Radio Access.
Presentation transcript:

Wi-Fi

Basic structure: – Stations plus an access point – Stations talk to the access point, then to outside – Access point talks to stations – Stations talk to stations Design goal: – A MAC protocol to determine who talks next

Wireless communications Signal decays according to a power law with the distance, at least to the power of -2 with distance Comparing to Ethernet, what is the difference (as far as MAC is concerned)? When a station is sending, not all stations can hear. No real 100% carrier sense. – In Ethernet, everybody can hear everybody

Wireless communications When a station is sending, it cannot hear other stations – cannot decide if there is a collision. No CD in wireless LAN. – In Ethernet, the sender can determine if there is collision and abort immediately.

Wireless communications Being able to sense the carrier does not mean that you can decode the data If received signal having power P means that you can decode the data, it may be true that at power P/2 you can realize that there is something going on

Wireless communication The received signal can be decoded if the signal to noise ratio is larger than a certain threshold. Whether there is a collision depends on the signal to noise ratio at the receiver. You may allow two transmissions at the same time without collision. – In Ethernet, two simultaneous transmission means collision ADCB ADCB A->B, C->D A->B, D->C

Wireless communications Hidden terminal, A->B, C->D. C did not hear A. ADCB Exposed terminal. A->B, C->D. C hears A. A D C B

Medium Access Control (MAC) Layer Asynchronous Data Service – DCF (Distributed Coordination Function) Contention-Based Medium Access Control CSMA/CA: Carrier Sense Multiple Access/Collision Avoidance For elastic applications like , file transfer Time-Bounded Service – PCF (Point Coordination Function) Contention Free Medium Access Control Optional access method works like polling For time-sensitive voice/video applications

Problems What problems will occur if apply Ethernet MAC? – No CD, does not know whether there is a collision – No CD, channel waste could be large using 1- persistent – Cannot hear all other people means the sender cannot be sure that he can reserve the whole channel.

Fixes No CD, use ACK. If there is no ACK, assume there is collision No CD, has to use non-persistent to reduce collision by AVOIDING COLLISION, CA Cannot hear other people, so devise some channel reservation technique

DCF’s Main Idea When get a packet to send, sense the channel. If channel is busy, wait until the channel is free for DIFS. Start to backoff for a random time. If busy before reaching zero, freeze bo counter, and reactivate when idle for DIFS again. If counted to 0 and channel is still idle, send. After receives a packet, send ACK. If no ACK received, double the window and retry.

Difference with Ethernet In Ethernet, a station will pick a backoff timer, sleep for that amount of time, then wake up. – When waking up, two cases: Medium is free: send Medium is busy: wait until free and send In Wi-Fi DCF, a station will pick a backoff timer backoff, while still monitor the medium – If the medium is busy during the backoff, will freeze the timer. Someone who waited longer will have a larger chance to send

Simplified DCF operation for unicast in implementation (Automating Cross-Layer Diagnosis of Enterprise Wireless Networks, Sigcomm 2007 ) The first packet does not have to experience the backoff before it is sent; backoff after a successful packet transmission. So if there is a packet following the first packet, it will go through the backoff process before transmission.

DCF Do you want the ACK to have the same priority as data packets? How do you make sure that ACK has higher priority? Use time. You have to wait for a certain amount time before you can send. High priority packets wait shorter.

DCF The SIFS, DIFS. SIFS is for control packets. DIFS is for data packets. When a station wants to send, if it is a control packet, sense the channel for SIFS, then send. If it is a data packet, sense the channel for DIFS, then send.

Rate supports multiple rates g has 6,9,12,18,24,36,48,54 Mbps. Lower rates have lower loss probabilities.

Research Challenge Any problem do you see in the design of MAC? Hint: wireless packets are subject to random loss, e.g., if you just walk by and blocked the line-of-sight path, the packet may be lost. In this case, what will MAC do? What should be done?

Further improvement Further improvement by improving carrier sense The problem is other people cannot hear me sending, so they will send. So, how to make sure that they will know I am sending?

RTS/CTS RTS/CTS in the place for carrier sense – RTS – reserves channel for a bit of time, if sender hasn’t heard other CTSes – CTS – sender replies if it hasn’t heard any other RTSes – Both messages include time. Network Allocation Vector (NAV) – If no CTS, exponential backoff – “RTS-CTS-DATA”

RTS/CTS standardized both CSMA/CA and RTS/CTS In practice, most operators disable RTS/CTS – Very high overhead! RTS/CTS packets sent at “base rate” (6Mbps for g) – Avoid collisions regardless of transmission rate – Most deployments are celluar (base stations), not ad hoc. Neighboring cells are often configured to use non-overlapping channels, so hidden terminals on downlink are rare Hidden terminal on uplink possible, but if clients mostly d/l, then uplink packets are small. THIS MAY CHANGE. And is likely not true in your neighborhood! – When CS range >> reception range, hidden terminal less important

PCF The AP acts as the master and sends out beacon signals for polling stations and stations can sign up for certain amount of bandwidth use Co-exists with DCF. How to make sure that beacon signals have higher priority? – PIFS