MAC layer Taekyoung Kwon. Media access in wireless - start with IEEE 802.11 In wired link, –Carrier Sense Multiple Access with Collision Detection –send.

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.
– 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
Module C- Part 1 WLAN Performance Aspects
Prof. Dr.-Ing Jochen H. Schiller Inst. of Computer Science Freie Universität Berlin Germany 3.1 Motivation SDMA, FDMA, TDMA, CDMA Aloha, reservation schemes.
Lectured By: Vivek Dimri Assistant Professor, CSE Dept. SET, Sharda University, Gr. Noida.
Mobile Communications: Wireless LANs Mobile Communications Chapter 7: Wireless LANs  Characteristics  IEEE  PHY  MAC  Roaming  HIPERLAN.
Network Technology CSE Network Technology CSE3020 Week 9.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 15 Wireless LANs.
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.
CS541 Advanced Networking 1 Basics of Wireless Networking Neil Tang 1/21/2009.
Mobile Communications Chapter 3 : Media Access  Motivation  SDMA, FDMA, TDMA  Aloha  Reservation schemes  Collision avoidance, MACA  Polling  CDMA.
Copyright © 2003, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 1 Chapter 6 Multiple Radio Access.
20 – Collision Avoidance, : Wireless and Mobile Networks6-1.
110/15/2003CS211 IEEE Standard Why we study this standard: overall architecture physical layer spec. –direct sequence –frequency hopping MAC layer.
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.
Mobile Communications Chapter 3 : Media Access Motivation SDMA, FDMA, TDMA Aloha, reservation schemes Collision avoidance, MACA Polling CDMA, SAMA Comparison.
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.
Wireless LAN Simulation - IEEE MAC Protocol
Overview of Wireless LANs Use wireless transmission medium Issues of high prices, low data rates, occupational safety concerns, & licensing requirements.
Opersating Mode DCF: distributed coordination function
Ch. 3: Media Access SDMA, FDMA, TDMA Aloha, reservation schemes
Wireless Communications
IEEE Project started by IEEE for setting standard for LAN. This project started in (1980, February), Name given to project is year and month.
Mobile Communications
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
IEEE Wireless LAN Standard. Medium Access Control-CSMA/CA IEEE defines two MAC sublayers Distributed coordination function (DCF) Point coordination.
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
Mobile Communications Chapter 3 : Media Access
Chapter 6 Medium Access Control Protocols and Local Area Networks Wireless LAN.
An Introduction to Wireless LANs
Wi-Fi. Basic structure: – Stations plus an access point – Stations talk to the access point, then to outside – Access point talks to stations – Stations.
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.
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.
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.
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
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.
Wireless MAC.
EA C451 (Internetworking Technologies)
Mobile and Ad hoc Networks
IT351: Mobile & Wireless Computing
CSE 4215/5431: Mobile Communications Winter 2011
Mobile Communications Chapter 3 : Media Access
Mobile Communications Chapter 3 : Media Access
Mobile Communications Media Access Chapter 3
Mobile Communications Chapter 3: Media Access
Chapter 6 Medium Access Control Protocols and Local Area Networks
Mobile Communications Chapter 3: Media Access
Mobile Communications Chapter 3 : Media Access
Mobile Communications Chapter 3: Media Access
Unit 2 Medium Access control
Mobile Communications Chapter 3 : Media Access
Wireless LAN Simulation IEEE MAC Protocol
Mobile Communications Chapter 3 : Media Access
Chapter 6 Multiple Radio Access.
Presentation transcript:

MAC layer Taekyoung Kwon

Media access in wireless - start with IEEE In wired link, –Carrier Sense Multiple Access with Collision Detection –send as soon as the medium is free, listen into the medium if a collision occurs (original method in IEEE 802.3) In wireless –Signal strength decreases in proportional to at least square of the distance –Collision detection only at receiver –Half-duplex mode –Furthermore, CS is not possible after propagation range

Hidden terminal problem Hidden terminals –A sends to B, C cannot receive A –C wants to send to B, C senses a “ free ” medium (CS fails) –collision at B, A cannot receive the collision (CD fails) –A is “ hidden ” for C ABC

Exposed terminal problem Exposed terminals –B sends to A, C wants to send to D –C has to wait, CS signals a medium in use –but A is outside the radio range of C, thus waiting is not necessary –C is “ exposed ” to B ABCD

Multiple access methods FDMA TDMA CDMA SDMA

ALOHA, Slotted-ALOHA Mechanism –random, distributed (no central arbiter), time-multiplex –Slotted Aloha additionally uses time-slots, sending must always start at slot boundaries Aloha Slotted Aloha sender A sender B sender C collision sender A sender B sender C collision t t

MACA (multiple access collision avoidance) MACA (Multiple Access with Collision Avoidance) uses short signaling packets for collision avoidance –RTS (request to send): a sender request the right to send from a receiver with a short RTS packet before it sends a data packet –CTS (clear to send): the receiver grants the right to send as soon as it is ready to receive aka, virtual carrier sense

MACA operation MACA avoids the problem of hidden terminals –A and C want to send to B –A sends RTS first –C waits after receiving CTS from B MACA avoids the problem of exposed terminals –B wants to send to A, C to another terminal –now C does not have to wait for it cannot receive CTS from A A B C RTS CTS A B C RTS CTS RTS CTS

PRMA Implicit reservation (PRMA - Packet Reservation MA) –a certain number of slots form a frame, frames are repeated –stations compete for empty slots according to the slotted aloha principle –once a station reserves a slot successfully, this slot is automatically assigned to this station in all following frames as long as the station has data to send –competition for this slots starts again as soon as the slot was empty in the last frame frame 1 frame 2 frame 3 frame 4 frame time-slot collision at reservation attempts ACDABA F AC ABA A BAF A BAF D ACEEBAFD t ACDABA-F AC-ABAF- A---BAFD ACEEBAFD reservation

IEEE wireless LAN infrastructure network ad-hoc network AP wired network AP: Access Point

infrastructure mode Station (STA) –terminal with access mechanisms to the wireless medium and radio contact to the access point Basic Service Set (BSS) –group of stations using the same radio frequency Access Point –station integrated into the wireless LAN and the distribution system Portal –bridge to other (wired) networks Distribution System –interconnection network to form one logical network (ESS: Extended Service Set) based on several BSS Distribution System Portal 802.x LAN Access Point LAN BSS LAN BSS 1 Access Point STA 1 STA 2 STA 3 ESS

MAC requirements

MAC Traffic services –Asynchronous Data Service (mandatory) exchange of data packets based on “ best-effort ” support of broadcast and multicast –Time-Bounded Service (optional) implemented using PCF (Point Coordination Function) Access methods –DFWMAC-DCF CSMA/CA (mandatory) collision avoidance via randomized back-off mechanism minimum distance between consecutive packets ACK packet for acknowledgements (not for broadcasts) –DFWMAC-DCF w/ RTS/CTS (optional) Distributed Foundation Wireless MAC avoids hidden terminal problem –DFWMAC- PCF (optional) access point polls terminals according to a list

layers PLCP Physical Layer Convergence Protocol –clear channel assessment signal (carrier sense) PMD Physical Medium Dependent –modulation, coding PHY Management –channel selection, MIB Station Management –coordination of all management functions MAC –access mechanisms, fragmentation, encryption MAC Management –synchronization, roaming, MIB, power management

Infrastructure mode mobile terminal access point fixed terminal application TCP PHY MAC IP MAC PHY application TCP PHY MAC IP MAC PHY LLC infrastructure network LLC

MAC Priorities –defined through different inter frame spaces –no guaranteed, hard priorities –SIFS (Short Inter Frame Spacing) highest priority, for ACK, CTS, polling response –PIFS (PCF IFS) medium priority, for time-bounded service using PCF –DIFS (DCF, Distributed Coordination Function IFS) lowest priority, for asynchronous data service t medium busy SIFS PIFS DIFS next framecontention direct access if medium is free  DIFS

CSMA/CA t medium busy DIFS next frame contention window (randomized back-off mechanism) –station ready to send starts sensing the medium (Carrier Sense based on CCA, Clear Channel Assessment) –if the medium is free for the duration of an Inter-Frame Space (IFS), the station can start sending (IFS depends on service type) –if the medium is busy, the station has to wait for a free IFS, then the station must additionally wait a random back-off time (collision avoidance, multiple of slot-time) –if another station occupies the medium during the back-off time of the station, the back-off timer stops (fairness) slot time direct access if medium is free  DIFS

CSMA/CA: contention resolution t busy bo e station 1 station 2 station 3 station 4 station 5 packet arrival at MAC DIFS bo e busy elapsed backoff time bo r residual backoff time busy medium not idle (frame, ack etc.) bo r DIFS bo e bo r DIFS busy DIFS bo e busy bo e bo r

CSMA/CA: detailed Sending unicast packets –station has to wait for DIFS before sending data –receivers acknowledge at once (after waiting for SIFS) if the packet was received correctly (CRC) –automatic retransmission of data packets in case of transmission errors t SIFS DIFS data ACK waiting time other stations receiver sender data DIFS contention

802.11: RTS & CTS Sending unicast packets –station can send RTS with reservation parameter after waiting for DIFS (reservation determines amount of time the data packet needs the medium) –acknowledgement via CTS after SIFS by receiver (if ready to receive) –sender can now send data at once, acknowledgement via ACK –other stations store medium reservations distributed via RTS and CTS t SIFS DIFS data ACK defer access other stations receiver sender data DIFS contention RTS CTS SIFS NAV (RTS) NAV (CTS)

beaconing (infrastructure mode) beacon interval t medium access point busy B BBB value of the timestamp B beacon frame

beaconing (ad hoc mode) t medium station 1 busy B1B1 beacon interval busy B1B1 value of the timestamp B beacon frame station 2 B2B2 B2B2 random delay