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

Similar documents
Data Communications. Data Link Layer Protocols Wireless LANs

Computer Networks. Wireless LANs

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

Unit 7 Media Access Control (MAC)

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

Mohamed Khedr.

MAC. Fall Data Communications II 1

Mobile & Wireless Networking. Lecture 7: Wireless LAN

MAC in /20/06

Mobile Communications Chapter 7: Wireless LANs

Mobile Communications Chapter 7: Wireless LANs

ICE 1332/0715 Mobile Computing (Summer, 2008)

Lecture 16: QoS and "

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

Local Area Networks NETW 901

Wireless Local Area Networks (WLANs) Part I

Computer Communication III

Logical Link Control (LLC) Medium Access Control (MAC)

CSE 461: Wireless Networks

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

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

IEEE MAC Sublayer (Based on IEEE )

Wireless LANs. ITS 413 Internet Technologies and Applications

Rahman 1. Application

Data and Computer Communications. Chapter 13 Wireless LANs

Lesson 2-3: The IEEE x MAC Layer

ECE442 Communications Lecture 3. Wireless Local Area Networks

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

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

Advanced Computer Networks WLAN

Wireless Communication Session 4 Wi-Fi IEEE standard

IEEE Medium Access Control. Medium Access Control

Chapter 6 Medium Access Control Protocols and Local Area Networks

Wireless Local Area Network (IEEE )

3.1. Introduction to WLAN IEEE

Chapter 7: Wireless LANs

Wireless Networking & Mobile Computing

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

CSE 6811 Ashikur Rahman

Nomadic Communications WLAN MAC Fundamentals

CMPE 257: Wireless and Mobile Networking

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

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

Mohammad Hossein Manshaei 1393

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

Chapter 7: Wireless LANs

Multiple Access Links and Protocols

Introduction to IEEE

IEEE WLAN (802.11) Copyright. Nomadic Communications

CMPE 257: Wireless and Mobile Networking

Wireless Protocols. Training materials for wireless trainers

Topic 4. Wireless LAN IEEE

ICE 1332/0715 Mobile Computing (Summer, 2008)

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

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

IEEE Wireless LANs Part I: Basics

Internet Protocol Stack

Figure.2. Hidden & Exposed node problem

Mobile Communications Chapter 7: Wireless LANs

CS 716: Introduction to communication networks. - 9 th class; 19 th Aug Instructor: Sridhar Iyer IIT Bombay

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

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

Performance anomaly of b

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

Wireless Network Security Spring 2014

Page 1. Wireless LANs: Design Requirements. Evolution. EEC173B/ECS152C, Winter Wireless LANs

Mobile Communications Chapter 7: Wireless LANs

Mohammad Hossein Manshaei 1393

Embedded Internet and the Internet of Things WS 12/13

Wireless Network Security Spring 2015

Efficient Power MAC Protocol in Ad-hoc Network s

Wireless Local Area Networks. Networks: Wireless LANs 1

Hands-On Exercises: IEEE Standard

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

Outline / Wireless Networks and Applications Lecture 9: Wireless LANs Aloha and 802 Wireless. Regular Ethernet CSMA/CD

IEEE , Token Rings. 10/11/06 CS/ECE UIUC, Fall

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

Mohammad Hossein Manshaei

Introduction. Giuseppe Bianchi, Ilenia Tinnirello

The MAC layer in wireless networks

IEEE Technical Tutorial. Introduction. IEEE Architecture

Solutions to Exercise Session 4,

IEEE Wireless LANs

Wireless & Mobile Networking

EVALUATION OF EDCF MECHANISM FOR QoS IN IEEE WIRELESS NETWORKS

Wireless Network and Mobility

Guide to Wireless Communications, Third Edition. Objectives

Wireless Communication

WiFi / IEEE WLAN

ISSN: International Journal of Advanced Research in Computer Engineering & Technology Volume 1, Issue 5, July 2012

Wireless Networks (MAC)

Wireless Network Security Spring 2013

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

CHAPTER 8: LAN Standards

Lecture 25: CSE 123: Computer Networks Alex C. Snoeren. HW4 due NOW

Local Area Networks. Lecture 17 Fall Token Ring and FDDI

The MAC layer in wireless networks

Lecture (08) Wireless Traffic Flow and AP Discovery

Lecture 24: CSE 123: Computer Networks Stefan Savage. HW4 due NOW

Transcription:

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

Clicker-1: Wireless v/s wired Which of the following differences between Wireless and Wired affect a CSMA-based protocol? 1. Wireless range/rtt is more than Wired. 2. Wireless losses/errors are more than Wired. 3. Wireless bandwidth is less than Wired. 4. Wireless lacks full connectivity. IIT Bombay cs 348 2

Clicker-2: RTS-CTS Which of the following statements are True? 1. RTS-CTS is always required. 2. RTS-CTS is required only when there are too many stations. 3. RTS-CTS is required only for large packets. 4. RTS-CTS can be given as an option to the user. IIT Bombay cs 348 3

Recap of previous class Topics covered: CSMA/CA, Backoff Difference between wired and wireless: Wireless PHY boundaries are not fixed. Wireless PHY may be time varying and asymmetric. Hidden terminal problem CS (carrier sense) fails at sender. CD (collision detection) fails at sender. CSMA/CA (Collision Avoidance) RTS-CTS-Data-Ack mechanism. Binary exponential backoff mechanism. IIT Bombay cs 348 4

WiFi: Infrastructure (PCF) and Adhoc Modes (DCF) PCF: infrastructure network AP AP wired network AP: Access Point AP Distribution System STA1: Station STA2 DCF: ad-hoc network BSS: Basic Service Set (Group of STA using the same channel) IIT Bombay cs 348 Source: Schiller 5

802.11- in the TCP/IP stack mobile terminal fixed terminal server infrastructure network access point application application TCP TCP IP IP LLC LLC LLC 802.11 MAC 802.11 MAC 802.3 MAC 802.3 MAC 802.11 PHY 802.11 PHY 802.3 PHY 802.3 PHY IIT Bombay cs 348 Source: Schiller 6

DIFS 802.11 - CSMA/CA DIFS contention window (randomized back-off mechanism) medium busy next frame direct access if medium is free DIFS slot time t 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) IIT Bombay cs 348 Source: Schiller 7

802.11 CSMA/CA 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, after the medium becomes free again. (collision avoidance, multiple of slot-time) if another station transmits during the back-off time of the station, the back-off timer is paused. (fairness) When back-off counter reaches 0, transmit. IIT Bombay cs 348 8

DCF Example When transmitting a packet, choose a backoff interval in the range [0,cw]; cw is contention window B1 = 25 B1 = 5 wait data B2 = 20 data B2 = 15 wait B2 = 10 cw = 31 B1 and B2 are backoff intervals at nodes 1 and 2 IIT Bombay cs 348 9

CSMA/CA Group Activity 1 DIFS DIFS bo e bo r DIFS bo e bo r DIFS bo e busy station 1 bo e busy station 2 station 3 busy bo e busy bo e bo r station 4 bo e bo r bo e busy bo e bo r station 5 t busy medium not idle (frame, ack etc.) bo e elapsed backoff time packet arrival at MAC bo r residual backoff time Choose values of the backoff counters so that the above timing diagram is valid. IIT Bombay cs 348 Source: Schiller 10

802.11 - Congestion Control Contention window (cw) in DCF: Congestion control achieved by dynamically choosing cw large cw leads to larger backoff intervals small cw leads to larger number of collisions Binary Exponential Backoff in DCF: When a node fails to receive CTS in response to its RTS, it increases the contention window cw is doubled (up to a bound CWmax) Upon successful completion data transfer, restore cw to CWmin IIT Bombay cs 348 11

802.11 RTS/CTS DIFS sender RTS data receiver SIFS CTS SIFS SIFS ACK other stations NAV (RTS) NAV (CTS) defer access contention DIFS data t IIT Bombay cs 348 Source: Schiller 12

Thresholds and Fragmentation sender DIFS RTS frag 1 frag 2 receiver SIFS CTS SIFS SIFS ACK 1 SIFS SIFS ACK2 other stations NAV (RTS) NAV (CTS) NAV (frag 1 ) NAV (ACK 1 ) IIT Bombay cs 348 13 DIFS contention RTS-Threshold: Packet Size above which RTS-CTS will be used. Fragmentation-Threshold: Packet Size above which packets will be sent as fragments. data t

SIFS/DIFS - Group Activity 2 What is the need for SIFS? What is the need for DIFS? Timings: What should be the slot time? What should be the SIFS time? What should be the DIFS time? Discuss in groups and as a class. IIT Bombay cs 348 14

Key points: SlotTime and SIFS SlotTime is: CCATime + RxTxTurnaroundTime + AirPropagationTime + MACProcessingDelay CCATime: Clear Channel Assessment ~ (14+5+1+0) = 20 μs for DSSS PHY SIFSTime is: RxRFDelay + RxPLCPDelay + MACProcessingDelay + RxTxTurnaroundTime. RxRFDelay - Time between the end of a symbol at the air interface to the notification to PHY processing module. PLCP: Physical Layer Convergence Protocol. ~ (2+1+1+5) = ~10 μs for DSSS PHY IIT Bombay cs 348 15

Key points: SIFS and DIFS SIFS (Short Inter Frame Spacing): highest priority, for ACK, CTS, polling response DIFS (DCF IFS) lowest priority, for asynchronous data service DIFSTime = SIFSTime + 2xSlotTime Question: Why 2xSlotTime? IIT Bombay cs 348 16

Practice Problem: Do it yourself Consider a 802.11 BSS with three stations (ST A1 to STA3 ), all within range of each other and operating in DCF mode. Data frames of various sizes arrive for transmission at the respective MAC layers as follows: Time MSDU (Data bytes) Source Destination t=0 500 STA1 STA3 t + 120μs 1400 STA2 STA1 t + 250μs 500 STA3 STA2 Compute the earliest time by which all the frames can be delivered to their destinations. Assume: 200 bytes may be transmitted in one SlotTime; SlotTime = 20μs; SIFSTime = 10μs; RTS Size =CTS Size = ACK Size = 100bytes; FragmentationThreshold = 2400bytes; RTSThreshold = 1200bytes; IIT Bombay cs 348 17

Frame format 2 2 6 6 6 2 6 0-2312 4 Frame Control Duration ID Address 1 Address 2 Address 3 SequenceAddress Control 4 Data CRC bytes version, type, fragmentation, security,... IIT Bombay cs 348 Source: Schiller 18

MAC address format scenario to DS from address 1 address 2 address 3 address 4 DS ad-hoc network 0 0 DA SA BSSID - infrastructure 0 1 DA BSSID SA - network, from AP infrastructure 1 0 BSSID SA DA - network, to AP infrastructure network, within DS 1 1 RA TA DA SA DS: Distribution System AP: Access Point DA: Destination Address SA: Source Address BSSID: Basic Service Set Identifier RA: Receiver Address TA: Transmitter Address IIT Bombay cs 348 Source: Schiller 19

Question: MAC addressing Consider the scenario in slide 5. Suppose STA1 wants to transmit a frame to STA2. What is the sequence of frame transmissions? What are the addresses in the various frames? IIT Bombay cs 348 20