CMPE 257: Wireless and Mobile Networking

Similar documents
CMPE 257: Wireless and Mobile Networking

CMPE 257: Wireless and Mobile Networking

Multiple Access Links and Protocols

Unit 7 Media Access Control (MAC)

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

ECE 4450:427/527 - Computer Networks Spring 2017

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

Lecture 23 Overview. Last Lecture. This Lecture. Next Lecture ADSL, ATM. Wireless Technologies (1) Source: chapters 6.2, 15

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

CSE 461: Wireless Networks

CS 43: Computer Networks Media Access. Kevin Webb Swarthmore College November 30, 2017

EE 122: Ethernet and

CSE 461: Multiple Access Networks. This Lecture

Mohamed Khedr.

CS 43: Computer Networks. 27: Media Access Contd. December 3, 2018

Getting Connected (Chapter 2 Part 4) Networking CS 3470, Section 1 Sarah Diesburg

Lecture 6. Data Link Layer (cont d) Data Link Layer 1-1

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Shared Access Networks Wireless. 1/27/14 CS mywireless 1

Chapter 12 Multiple Access 12.1

Aloha and slotted aloha

Wireless Local Area Networks. Networks: Wireless LANs 1

MULTIPLE ACCESS PROTOCOLS 2. 1

Chapter 4. The Medium Access Control Sublayer. Points and Questions to Consider. Multiple Access Protocols. The Channel Allocation Problem.

Computer Communication III

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

Lecture 4: Wireless MAC Overview. Hung-Yu Wei National Taiwan University

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

Last Lecture: Data Link Layer

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

Data Communications. Data Link Layer Protocols Wireless LANs

Lecture 16: QoS and "

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

Multiple Access in Cellular and Systems

The MAC layer in wireless networks

Rahman 1. Application

MAC. Fall Data Communications II 1

Wireless Communication and Networking CMPT 371

CMPE 257: Wireless and Mobile Networking

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

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

Data Link Layer -2- Network Access

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

ICE 1332/0715 Mobile Computing (Summer, 2008)

Wireless LAN. Access Point. Provides network connectivity over wireless media

Wireless LAN -Architecture

Local Area Networks NETW 901

CSE 6811 Ashikur Rahman

Data and Computer Communications. Chapter 13 Wireless LANs

CS118 Discussion 1A, Week 9. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 16

Wireless MACs: MACAW/802.11

MAC Sublayer(1) Principal service of the Medium Access Control Sublayer: Allocating a single broadcast channel (mostly a LAN) among competing users

Data Link Layer -2- Network Access

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

Link Layer: Retransmissions

Wireless Local Area Networks (WLANs) and Wireless Sensor Networks (WSNs) Primer. Computer Networks: Wireless LANs

Wireless Communication and Networking CMPT 371

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

Medium Access Control

Wireless and Mobile Networks 7-2

6.9 Summary. 11/20/2013 Wireless and Mobile Networks (SSL) 6-1. Characteristics of selected wireless link standards a, g point-to-point

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

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 25: Wireless Networking

Wireless & Mobile Networking

Redes de Computadores. Medium Access Control

IEEE Medium Access Control. Medium Access Control

CSE/EE 461 Wireless and Contention-Free Protocols

ECEN 5032 Data Networks Medium Access Control Sublayer

The MAC layer in wireless networks

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

Multiple Access Technique. Media Access Control (Intro.) Outline. Multiple Access Technique. Designing Issues of MAC protocols. Protocols examples

Medium Access Control (MAC) Protocols for Ad hoc Wireless Networks -IV

Wireless Protocols. Training materials for wireless trainers

Topic 2b Wireless MAC. Chapter 7. Wireless and Mobile Networks. Computer Networking: A Top Down Approach

Wireless LANs. ITS 413 Internet Technologies and Applications

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

Wireless Networks. CSE 3461: Introduction to Computer Networking Reading: , Kurose and Ross

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

MSIT 413: Wireless Technologies Week 8

Computer Networks. Today. Principles of datalink layer services Multiple access links Adresavimas, ARP LANs Wireless LANs VU MIF CS 1/48 2/48

CC451 Computer Networks

Outline. EEC-484/584 Computer Networks. Multiple Access Protocols. Wireless LAN Protocols. Lecture 9. Wenbing Zhao

EEC-484/584 Computer Networks

Computer Networks. Wireless LANs

Chapter 6 Medium Access Control Protocols and Local Area Networks

Wireless Communications

Chapter 6 Wireless and Mobile Networks

Mobile and Sensor Systems

Introduction to Wireless Networking CS 490WN/ECE 401WN Winter Lecture 4: Wireless LANs and IEEE Part II

Medium Access Control. CSCI370 Lecture 5 Michael Hutt New York Institute of Technology

CS263: Wireless Communications and Sensor Networks

CHAPTER 7 MAC LAYER PROTOCOLS. Dr. Bhargavi Goswami Associate Professor & Head Department of Computer Science Garden City College

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

Data Communication & Networks G Session 5 - Main Theme Wireless Networks. Dr. Jean-Claude Franchitti

ECE 4450:427/527 - Computer Networks Spring 2017

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

Wireless and Mobile Networks

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

CSC 4900 Computer Networks: Wireless Networks

Transcription:

CMPE 257: Wireless and Mobile Networking Katia Obraczka Computer Engineering UCSC Baskin Engineering Lecture 3 CMPE 257 Spring'15 1

Next week Announcements April 14: ICN (Spencer Sevilla) April 16: DTN (Aloizio Silva) Projects Project ideas Project proposal Student presentations Class calendar updated CMPE 257 Spring'15 2

Today Medium access control (MAC). CMPE 257 Spring'15 3

Medium Access Control MAC protocols. Aka, multiple access protocols. CMPE 257 Spring'15 4

When do we need MAC? 2 types of links: Point-to-point. Shared. shared wire (e.g., cabled Ethernet) shared RF (e.g., 802.11 WiFi) shared RF (satellite) humans at a cocktail party (shared air, acoustical) CMPE 257 Spring'15 5

Shared Links If more than 1 node transmits at the same time: Collision at receiver! MAC protocol: Arbitrate access to medium. Determine who can transmit when. CMPE 257 Spring'15 6

Expanded Data Link Layer Sublayers of data link layer: Logical Link Control (LLC): framing, flow and error control. Medium Access Control (MAC): multiple access resolution. CMPE 257 Spring'15 7

Types of MAC Who makes decision? Centralized versus distributed MACs. Channel access policy. CMPE 257 Spring'15 8

Types of MAC Channel Access Policy Random access (or contention-based) No scheduled time for transmissions. No order for transmissions. Controlled access Stations coordinate access to channel. Station only transmits when it has right to send. Channelization (channel partitioning) Bandwidth of channel is statically partitioned. CMPE 257 Spring'15 9

Another way to look at it Control: Distributed. Centralized. How they coordinate access to medium: Round-robin. Scheduled-access. Contention-based. A-priori channel partitioning. CMPE 257 Spring'15 10

Contention-Based Protocols Aka, Random-Access MAC: ALOHA Slotted Aloha CSMA CSMA/CD (Ethernet IEEE 802.3) CSMA/CA (WiFi IEEE 802.11) CMPE 257 Spring'15 11

CSMA Carrier sense: Stations listen first whether another transmission is in progress. If medium in use, wait. If not, transmit. Can collisions still occur? CMPE 257 Spring'15 12

CSMA Variants 1-persistent (IEEE 802.3): If medium idle, transmit. If medium busy, keep listening; when medium idle, transmit with probability 1. p-persistent: Same as above but with probability p. Non-presistent: If medium idle, transmit. If medium busy, wait a random period before retrying. CMPE 257 Spring'15 13

CSMA/CD CSMA + collision detection. Performance improvement over CSMA. How? Listen while transmitting. If collision, transmit brief jamming signal and abort transmission. How does this improve performance? Wait random time and try again. CMPE 257 Spring'15 14

Collision Avoidance (CA) CSMA/CD assumes stations can detect collision. Not valid in all contexts (e.g., wireless): Attenuation too great to detect collision at all stations. Hard for transmitter to distinguish its own transmission from incoming weak signals and noise. Radios are usually half-duplex ($$$). CSMA/CA tries to avoid collisions. CMPE 257 Spring'15 15

CSMA/CA Tries to avoid collisions by avoiding the hidden terminal problem. CMPE 257 Spring'15 16

Hidden-Terminal Problem CMPE 257 Spring'15 17

Hidden- and Exposed Terminals Hidden Terminals Exposed Terminals CMPE 257 Spring'15 18

CSMA/CA: RTS-CTS Solution Channel reservation With collision avoidance, stations exchange small control packets to determine which sender can transmit to a receiver. CMPE 257 Spring'15 19

CSMA-CA CSMA/CA means both physical- and virtual carrier sensing. Physical: CS. Virtual: CA. CMPE 257 Spring'15 20

How does CSMA-CA work? CMPE 257 Spring'15 21

IEEE 802.11 Provides 2 types of medium access: DCF: distributed coordination function. PCF: point coordination function. DCF is contention-based. PCF is polling-based. Collision free. PCF Implemented atop DCF. DCF CMPE 257 Spring 15 22

IEEE 802.11 DCF Physical carrier sensing: Stations listen to channel before transmitting (CS of CSMA/CA). Virtual carrier sensing: CA OF CSMA/CA. Reserve channel for transmission. Use RTS/CTS handshake. CMPE 257 Spring'15 Spring'12 23

IEEE 802.11 MAC Protocol: CSMA (no 802.11 sender CA) 1 if sense channel idle for DIFS then transmit entire frame (no CD) 2 if sense channel busy then start random backoff time timer counts down while channel idle transmit when timer expires if no ACK, increase random backoff interval, repeat 2 802.11 receiver DIFS sender data ACK receiver SIFS - if frame received OK return ACK after SIFS (ACK needed due to hidden terminal problem) CMPE 257 Spring'15 24

IEEE 802.11 MAC Protocol: CSMA/CA Physical CS + virtual CS. Sense channel for DIFS. RTS/CTS handshake before sending data. RTS is 20 bytes and CTS is 16 bytes. Maximum data frame is 2,346 bytes. Note: This is only for unicast transmissions. Broadcast transmissions do not use virtual carrier sensing. CMPE 257 Spring'15 Spring'12 25

CSMA-CA Examples D A C B Scenario: A wants to transmit to C.. A sends RTS.. D defers.. C sends CTS.. B defers. CMPE 257 Spring'15 26

IEEE 802.11 Wireless LAN 802.11b 2.4-5 GHz unlicensed spectrum up to 11 Mbps direct sequence spread spectrum (DSSS) in physical layer all hosts use same chipping code 802.11a 5-6 GHz range up to 54 Mbps 802.11g 2.4-5 GHz range up to 54 Mbps 802.11n: multiple antennae 2.4-5 GHz range up to 200 Mbps all use CSMA/CA for multiple access all have base-station and ad-hoc network modes. CMPE 257 Spring'15 27

MAC: A Bird s Eye View CMPE 257 Spring'15 28

Solutions to Hidden/Exposed Nodes in CSMA Use control packets: RTS/CTS (Request-To-Send/Clear-To-Send) Used by MACA (Multiple Access Control Avoidance) and MACAW (MACA for Wireless LANs). Use both control packets and carrier sense: CSMA/CA, IEEE 802.11 CMPE 257 Spring'15 29

Dynamic Reservation Approaches: Sender- vs. Receiver-initiated Sender-initiated: A node wanting to send data takes the initiative of setting up the reservation. Most existing schemes. Receiver-initiated: A receiving node polls a potential transmitting node for data. A node can send data after being polled. E.g., MACA-By Invitation. CMPE 257 Spring'15 30

Single vs. Multiple Channel Protocols Single channel protocols: control and data use the same channel. Multiple channel protocols: separate channels for control & data transmission; data transmission on separate channels. CMPE 257 Spring'15 31

Other criteria for classification Power-aware. E.g., PAMAS. Directional or omnidirectional antennas. QoS-aware End-to-end (E2E) delay Packet loss rate (or the probability) Available bandwidth Challenges: lack of centralized control, limited bandwidth, node mobility, power/computational constraints, error-prone nature of wireless media. CMPE 257 Spring'15 32