Mobile Wireless Networking Medium Access Control

Similar documents
MAC; Mobile and Wireless Networks Outline

ITTC Introduction to Communication Networks The University of Kansas EECS 563 MAC; Mobile and Wireless Networks

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

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

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

Data Link Layer: Multi Access Protocols

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

CSE 461 Multiple Access. David Wetherall

MULTIPLE ACCESS PROTOCOLS 2. 1

Medium Access Control

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

The Link Layer and LANs. Chapter 6: Link layer and LANs

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

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

Chapter 5 Link Layer and LANs

Wireless Communications

Multiple Access Links and Protocols

Chapter 12 Multiple Access 12.1

CSE 461: Multiple Access Networks. This Lecture

ECE 4450:427/527 - Computer Networks Spring 2017

CCM 4300 Lecture 5 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

Chapter 5: Link layer

CS 455/555 Intro to Networks and Communications. Link Layer

CMPE 257: Wireless and Mobile Networking

Physical Layer. Medium Access Links and Protocols. Point-to-Point protocols. Modems: Signaling. Modems Signaling. Srinidhi Varadarajan

Lecture 8 Link Layer: functionality, error detection, media access algorithm

CSC 4900 Computer Networks: The Link Layer

Outline. Introduction to Networked Embedded Systems - Embedded systems Networked embedded systems Embedded Internet - Network properties

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

Link layer, LANs: outline. Chapter 5-1 Link Layer. Link layer: introduction. Link layer services

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

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

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

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

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 6 Wireless and Mobile Networks

Mobile Communications Chapter 3 : Media Access

Computer Networks Medium Access Control. Mostafa Salehi Fall 2008

Local Area Networks (LANs) SMU CSE 5344 /

Lecture 9: Bridging. CSE 123: Computer Networks Alex C. Snoeren

Redes de Computadores. Medium Access Control

CMPE 257: Wireless and Mobile Networking

Data Link Layer Technologies

CC451 Computer Networks

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

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Lecture 5 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Chapter 6 Medium Access Control Protocols and Local Area Networks

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

Lecture 19. Principles behind data link layer services Framing Multiple access protocols

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

CSE/EE 461 Wireless and Contention-Free Protocols

1-1. Switching Networks (Fall 2010) EE 586 Communication and. November 8, Lecture 30

Multiple-access protocols

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

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

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

Aloha and slotted aloha

CSE 461: Multiple Access. Homework: Chapter 2, problems 1, 8, 12, 18, 23, 24, 35, 43, 46, and 58

Data Link Layer: Collisions

EE 122: Ethernet and

Medium Access Control Sublayer Chapter 4

CSC 4900 Computer Networks: Wireless Networks

Chapter 6 Local Area Networks and Media Access Control. School of Info. Sci. & Eng. Shandong Univ.

Links. CS125 - mylinks 1 1/22/14

ECE 4450:427/527 - Computer Networks Spring 2017

Multiple Access Protocols

Lecture 8 The Data Link Layer part I. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

COS 140: Foundations of Computer Science

Multiple Access in Cellular and Systems

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

Goals. Fundamentals of Network Media. More topics. Topics. Multiple access communication. Multiple access solutions

Media Access Control. Networked Systems (H) Lecture 5

Chapter 5 Link Layer and LANs

LANs Local Area Networks LANs provide an efficient network solution : To support a large number of stations Over moderately high speed

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

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

CCNA Exploration1 Chapter 7: OSI Data Link Layer

Chapter 6 The Link Layer and LANs

Link Layer: Retransmissions

15-441: Computer Networking. Wireless Networking

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

Adaptors Communicating. Link Layer: Introduction. Parity Checking. Error Detection. Multiple Access Links and Protocols

Adaptors Communicating. Link Layer: Introduction. Parity Checking. Error Detection. Multiple Access Links and Protocols

Mobile and Sensor Systems

Computer Networking The Link Layer: Basics& Medium Access Control Silvia Santini

SC250 Computer Networking I. Link Layer. Prof. Matthias Grossglauser LCA/I&C.

Master Course Computer Networks IN2097

CSC 401 Data and Computer Communications Networks

EITF25 Internet Techniques and Applications L4: Network Access. Stefan Höst

Ad Hoc Networks: Introduction

ECSE-4670: Computer Communication Networks (CCN) Informal Quiz 3

COMPUTER NETWORK Model Test Paper

Goals of Today s Lecture. Adaptors Communicating

Module 10 Data Link Layer CS655! 10-1!

Reminder: Datalink Functions Computer Networking. Datalink Architectures

Chapter 4. The Medium Access Control Sublayer

COS 140: Foundations of Computer Science

Strengthening Unlicensed Band Wireless Backhaul

Data and Computer Communications

Transcription:

Mobile Wireless Networking The University of Kansas EECS 882 Medium Access Control James P.G. Sterbenz Department of Electrical Engineering & Computer Science Information Technology & Telecommunications Research Center The University of Kansas jpgs@eecs.ku.edu http://www.ittc.ku.edu/~jpgs/courses/mwnets 29 August 2011 rev. 11.0 2004 2011 James P.G. Sterbenz Mobile Wireless Networking Medium Access Control ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.3 Contention-based MAC algorithms ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-2 1

L8 L7 L5 L4 L3 L2.5 L2 L1.5 L1 Medium Access and Link Layers Layer/Plane Cube Model management data plane control plane social application session transport network virtual link link MAC physical link layer in data plane with error control MAC layer: arbitration to shared medium in control plane 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-3 p l a n e Medium Access and Link Layers MAC Definition CPU network CPU M app end system M app end system Medium access control arbitrates a channel in shared medium (free space, guided wire, or fiber) among nodes (or terminals or stations ) 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-4 2

Medium Access and Link Layers Link Definition CPU intermediate system network CPU M app M app end system end system Link is the interconnection between nodes intermediate systems (IS switches or routers) end systems (ES or terminals, stations, hosts) uses MAC to access channel note: in ad hoc wireless networks nodes are both IS and ES 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-5 Medium Access and Link Layers MAC and Link Protocol application application session session transport transport network network network network link/mac link/mac link/mac link/mac end system Link protocol intermediate system network link/mac intermediate system intermediate system network is responsible for per hop transfer of data frame using a MAC algorithm to arbitrate channel access end system 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-6 3

Wireless Networks Network Elements: Base Station Base station Access point (BS) or (AP) fixed wireless node one or more antennæ may be small (e.g. home hub) may have huge tower range is frequently called a cell typically connected to Internet via wired link in which case it is an intermediate system BS cell Internet 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-7 Wireless Networks Network Elements: Base Station Base station Access point (BS) or (AP) fixed wireless node BS one or more antennæ may be small (e.g. home hub) may have huge tower range is frequently called a cell typically connected to Internet via wired link in which case it is an intermediate system may wireless mulithop through other BSs BS cell Internet 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-8 4

Wireless Networks Network Elements: Wireless Node Base station (BS) Wireless node (WN) or Mobile terminal (MT) or Access terminal (AT) untethered with no wired connectivity fixed or stationary node doesn t move wireless does not imply mobility typical example: laptop computer mobile node (MN) if typical example: mobile phone or PDA Lecture LM BS WN BS cell WN Internet 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-9 Wireless Networks Network Elements: Wireless Link Base station (BS) Wireless node (WN) Wireless link MAC needed to arbitrate BS BS cell WN Internet WN 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-10 5

Wireless Networks Network Elements: Wireless Link Base station (BS) Wireless node (WN) Wireless link MAC needed to arbitrate BS BS cell interconnects BSs Internet WN WN 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-11 Wireless Networks Network Elements: Wireless Link Base station Wireless node (BS) (WN) cell Wireless link MAC needed to arbitrate interconnects BSs interconnects WNs to BSs BS WN BS Internet WN 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-12 6

Wireless Networks Network Elements: Wireless Link Base station Wireless node (BS) (WN) cell Wireless link MAC needed to arbitrate interconnects BSs interconnects WNs to BSs interconnects WNs peer-to-peer multihop WNs are both ES and IS BS WN BS WN Internet 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-13 Mobile Wireless Networking ML.1 MAC and Link Layer Functions & Services ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.3 Contention-based MAC algorithms ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-14 7

MAC Layer Service and Interfaces MAC is in-between physical layer 1 and link layer 2 lower link sublayer in IEEE 802 model 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-15 MAC Layer Service and Interfaces MAC is in-between physical layer 1 and link layer 2 lower link sublayer in IEEE 802 model MAC layer is mostly in control plane control over when to transmit a L2 frame but may have its own encapsulation (e.g. IEEE 802 legacy) 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-16 8

MAC Layer Service and Interfaces MAC is in-between physical layer 1 and link layer 2 lower link sublayer in IEEE 802 model MAC layer is mostly in control plane control over when to transmit a L2 frame but may have its own encapsulation node address to determine receiver MAC layer service to link layer (L2) MAC layer encapsulate/decapsulate if appropriate initiate transfer of frame into the medium 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-17 MAC Layer Service and Interfaces MAC layer frame may encapsulate link layer frame done for link layer / MAC protocol independence IEEE 802: 802.2 LLC (logical link control) over 802.N MAC link layer link layer H NPDU T H NPDU T MAC layer MAC layer H H NPDU T H H NPDU T physical layer 10111001010 physical layer 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-18 9

Medium Access Control Taxonomy Distributed or centralised Duplexing in time or frequency Contention-based or contention-free Random access or reservation-based Sender- or receiver-driven In-band or out-of-band explicit or implicit signalling notes: not all combinations practical or possible no standard taxonomy e.g. [GL2000] vs. [KRD2006] 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-19 Medium Access Control Distributed Distributed MAC each node operates on its own: ad hoc mode nodes transmit when they have data subject to MAC mechanisms limit when a node may transmit generally implies random access Centralised MAC 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-20 10

Medium Access Control Centralised Distributed MAC Centralised MAC arbitration handled by central controller: infrastructure mode infrastructure mode typically base station or cell tower 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-21 Medium Access Control Duplexing Duplexing to determine sharing of bidirectional data TDD: time division duplexing FDD: frequency division duplexing 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-22 11

Medium Access Control Duplexing: TDD Duplexing to determine sharing of bidirectional data TDD: time division duplexing forward and reverse transmissions are multiplexed in time within same frequency (and code) generally necessary for distributed (random) MAC otherwise partitioning is needed by central controller adds complexity to MAC FDD: frequency division duplexing 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-23 Medium Access Control Duplexing: FDD Duplexing to determine sharing of bidirectional data TDD: time division duplexing FDD: frequency division duplexing forward and reverse transmissions partitioned in frequency generally requires centralised controller unless well-known or standard frequencies used eliminates timer duplexing complexity within transmit band 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-24 12

Medium Access Control Contention Based Contention-based MAC nodes transmit when they have data subject to MAC per frame decision analogue to connectionless service implications? Contention-free MAC 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-25 Medium Access Control Contention Based Contention-based MAC nodes transmit when they have data subject to MAC per frame decision analogue to connectionless service collisions possible efficient channel utilisation in the absence of collisions collision avoidance techniques mitigate Contention-free MAC 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-26 13

Medium Access Control Contention Free Contention-based MAC Contention-free MAC reserves or schedules part of the channel partitions or coördinates access per link or flow decision analogue to connection-oriented service collisions not possible implications? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-27 Medium Access Control Contention Contention-based MAC Contention-free MAC reserves or schedules part of the channel partitions or coördinates access per link or flow decision analogue to connection-oriented service collisions not possible inefficient channel use for non-cbr traffic resource allocation for QoS possible Note: [Manoj & Murthy] call this contention based with reservations or scheduling 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-28 14

Medium Access Control Random Access Random-access MAC nodes transmit when they have data subject to MAC to resolve contention per frame decision pure random vs. carrier sense Reservation-based MAC 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-29 Medium Access Control Reservation Based Random-access MAC Reservation-based MAC nodes transmit when they have data subject to MAC reservation typically based on control mechanism RTS/CTS floor acquisition 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-30 15

Medium Access Control Sender Driven Sender-driven MAC sender initiates MAC and transmission when frame to send most MAC algorithms are sender driven Receiver-driven MAC 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-31 Medium Access Control Receiver Driven Sender-driven MAC Receiver-driven receiver initiates MAC when it is ready to receive example later 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-32 16

Medium Access Control In-Band vs. Out-of-Band Control In-band MAC control is in same frequency band as data 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-33 Medium Access Control In-Band vs. Out-of-Band Control In-band MAC control is in same frequency band as data explicit signalling messages (e.g. RTS/CTS) 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-34 17

Medium Access Control In-Band Control In-band MAC control is in same frequency band as data explicit signalling messages (e.g. RTS/CTS) or implicit signalling (e.g. CSMA/CD): no signalling messages Out-of-band MAC 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-35 Medium Access Control Out-of-Band Control In-band MAC Out-of-band MAC control in dedicated signalling channel 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-36 18

Link Layer Service and Interfaces Link layer is HBH analog of E2E transport layer transport layer (L4) transfers packets E2E 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-37 Link Layer Service and Interfaces Link layer is HBH analog of E2E transport layer transport layer (L4) transfers packets E2E Link layer (L2) service to network layer (L3) transfer frame HBH (hop-by-hop) sender: encapsulate packet into frame and transmit receiver: receive frame and decapsulate into packet 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-38 19

Link Layer Service and Interfaces Link layer is HBH analog of E2E transport layer transport layer (L4) transfers packets E2E Link layer (L2) service to network layer (L3) transfer frame HBH (hop-by-hop) sender: encapsulate packet into frame and transmit receiver: receive frame and decapsulate into packet error checking / optional correction or retransmission recall end-to-end arguments: E2E reliability with HBH error control only for performance 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-39 Link Layer Service and Interfaces Link layer is HBH analog of E2E transport layer transport layer (L4) transfers packets E2E Link layer (L2) service to network layer (L3) transfer frame HBH (hop-by-hop) sender: encapsulate packet into frame and transmit receiver: receive frame and decapsulate into packet error checking / optional correction or retransmission recall end-to-end arguments: E2E reliability with HBH error control only for performance flow control possible but not generally needed at link layer parameter negotiation typical (e.g. data rate) 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-40 20

Link Layer Service and Interfaces Link layer is HBH analog of E2E transport layer transport layer (L4) transfers packets E2E Link layer (L2) service to network layer (L3) transfer frame HBH (hop-by-hop) sender: encapsulate packet into frame and transmit receiver: receive frame and decapsulate into packet error checking / optional correction or retransmission recall end-to-end arguments: E2E reliability with HBH error control only for performance flow control possible but not generally needed at link layer parameter negotiation typical (e.g. data rate) Link layer multiplexing and switching 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-41 Link Layer Service and Interfaces Link layer frame encapsulates network layer packet packet (NPDU network layer protocol data unit) frame (LPDU link layer protocol data unit) frame = header + packet + (trailer) network layer network layer link layer NPDU NPDU link layer H NPDU T H NPDU T MAC/phy layer 10111001010 MAC/phy layer 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-42 21

MAC and Link Layer Comparison Link layer transfers frame hop-by-hop function? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-43 MAC and Link Layer Comparison Link layer transfers frame hop-by-hop encapsulates in frame node address not needed for point-to-point link 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-44 22

MAC and Link Layer Comparison Link layer transfers frame hop-by-hop encapsulates in frame node address not needed for point-to-point link MAC layer arbitrates access to channel function? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-45 MAC and Link Layer Comparison Link layer transfers frame hop-by-hop encapsulates in frame station address not needed for point-to-point link MAC layer arbitrates access to channel control-plane function header fields may be necessary: node address link and MAC 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-46 23

MAC and Link Layer Comparison Link layer transfers frame hop-by-hop encapsulates in frame station address not needed for point-to-point link MAC layer arbitrates access to channel control-plane function header fields may be necessary: node address link and MAC Physical layer transfers bits through medium coded as electromagentic wave, photons, or electrons 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-47 MAC and Link Layer Comparison Link layer transfers frame hop-by-hop encapsulates in frame node address not needed for point-to-point link MAC layer arbitrates access to channel control-plane function header fields may be necessary: node address link and MAC Physical layer transfers bits through medium coded as electromagentic wave, photons, or electrons Link, MAC, and physical layers frequently blurred 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-48 24

MAC and Link Protocols IEEE 802 Protocol Stack IEEE 802 LAN/MAN standards [IEEE 802.1] www.ieee802.org Definition of LAN/MAN protocols for L1 L2 802.2 : logical link control 802.n : MAC and physical media dependent 802.2 802.n PMD 1 PMD 2 PMD k LLC sublayer logical link control MAC sublayer medium access control MI sublayer media independent PMD sublayer physical media dependent link layer MAC layer physical layer 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-49 Link Protocol and MAC Multiplexing vs. Multiple Access Multiplexing vs. multiple access Link multiplexing single transmitter dedicated point-to-point link 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-50 25

Link Protocol and MAC Multiplexing vs. Multiple Access Multiplexing vs. multiple access Link multiplexing single transmitter dedicated point-to-point link Multiple access multiple transmitters shared medium essentially physical layer multiplexing MAC algorithm needed to arbitrate Lecture WM 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-51 Link Protocol and MAC Functional Placement switch line card forwarding routing line card end system mem CPU line card line card network interface frames packets frames MAC and Link layer functionality per line interface end system: network interface (NIC) switch/router: line card 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-52 26

Wireless MAC Algorithms Design Goals Scalable to large networks Efficient bandwidth utilisation low control traffic overhead Fair among users subject to QoS differentiation Resilience minimise impact of hidden and exposed nodes robust against lost control messages, fading, jamming Power/energy awareness optimised for energy constrained nodes 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-53 Mobile Wireless Networking ML.2 Contention-Free MAC Algorithms ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.2.1 Channel partitioning MAC ML.2.2 Coördinated access MAC ML.2.3 Spread spectrum MAC ML.3 Contention-based MAC algorithms ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-54 27

Medium Access Control Contention-Free MAC Contention-free MAC ensures that channel is divided in time or frequency reserved or scheduled per link or flow decision analogue to connection-oriented service generally centralised control from base station collisions not possible inefficient channel use for non-cbr traffic resource allocation for QoS possible 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-55 Medium Access Control Contention-Free MAC Contention-free MAC taxonomy following EECS 780, [Kurose and Ross], [KRD2006] Channel partitioning reserve chunk of channel e.g. TDMA Coördinated access take turns e.g. polling using tokens Spread spectrum share same spectrum among users without collisions 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-56 28

Mobile Wireless Networking ML.2.1 Channel Partitioning MAC Algorithms ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.2.1 Channel partitioning MAC ML.2.2 Coördinated access MAC ML.2.3 Spread spectrum MAC ML.3 Contention-based MAC algorithms ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-57 Contention-Free MAC Algorithms Types Channel partitioning TDMA, FDMA, WDMA (optical) best under high deterministic load Coördinated access (taking turns) polling, token passing performs well in wired networks combines benefits of both partitioning and random access difficult to implement in wireless networks Spread spectrum CDMA resistant to interference and jamming 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-58 29

Channel Partitioning MAC Introduction and Assumptions Channel has sufficient capacity individual inter-node date rates less than channel capacity Multiple nodes share a channel Channel partitioned into pieces pieces assigned to individual inter-node communication MAC arbitrates 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-59 Channel Partitioning MAC Alternatives TDMA: time division multiple access FDMA: frequency division multiple access typically refers to RF WDMA: wavelength division multiple access (light) CDMA: code division multiple access spread spectrum (later) Note similarity to multiplexing schemes TDMA ~ TDM, FDMA ~ FDM essentially distributed physical layer versions of link muxing 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-60 30

Channel Partitioning MAC TDMA TDMA: time division multiple access Channel divided into n time slots served cyclically generally equal size within a frequency band channel 0 channel 1 channel n 1 channel 0 t f 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-61 Channel Partitioning MAC TDMA TDMA: time division multiple access Channel divided into n time slots served cyclically generally equal size within a frequency band MAC arbitrates how nodes assigned to slots static TDMA: slots reserved for particular links dynamic TDMA: slots scheduled based on traffic demand 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-62 31

Channel Partitioning MAC FDMA FDMA: frequency division multiple access Channel divided into n frequency bands generally of equal bandwidth over period of time channel 0 channel 1 channel 2 f channel n 1 t 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-63 Channel Partitioning MAC FDMA FDMA: frequency division multiple access Channel divided into n frequency bands generally of equal bandwidth over period of time MAC arbitrates how nodes assigned to frequencies static TDMA: slots reserved for particular links dynamic TDMA: slots scheduled based on traffic demand 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-64 32

Channel Partitioning MAC Link Duplexing Link types half duplex: unidirectional hop-by-hop transfer full duplex: bidirectional hop-by-hop transfer Most communication requires full duplex link even unidirectional data transfer why? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-65 Channel Partitioning MAC Link Duplexing Link types half duplex: unidirectional hop-by-hop transfer full duplex: bidirectional hop-by-hop transfer Most communication requires full duplex link even unidirectional data transfer control messages such as ACKs for ARQ may be highly asymmetric 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-66 33

Channel Partitioning MAC Link Duplexing Link types half duplex: unidirectional hop-by-hop transfer full duplex: bidirectional hop-by-hop transfer Most communication requires full duplex link even unidirectional data transfer control messages such as ACKs for ARQ may be highly asymmetric Alternative strategies for duplexing separate end-to-end paths problem? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-67 Channel Partitioning MAC Link Duplexing Link types half duplex: unidirectional hop-by-hop transfer full duplex: bidirectional hop-by-hop transfer Most communication requires full duplex link even unidirectional data transfer control messages such as ACKs for ARQ may be highly asymmetric Alternative strategies for duplexing separate distinct end-to-end paths through network may have different loss & delay properties may be necessary in some cases (e.g. satellite) 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-68 34

Channel Partitioning MAC Link Duplexing Link types half duplex: unidirectional hop-by-hop transfer full duplex: bidirectional hop-by-hop transfer Most communication requires full duplex link even unidirectional data transfer control messages such as ACKs for ARQ may be highly asymmetric Alternative strategies for duplexing separate distinct end-to-end paths through network paired unidirectional links in same guided media e.g. 2 twisted-pair, 2 fiber 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-69 Channel Partitioning MAC Link Duplexing Link types half duplex: unidirectional hop-by-hop transfer full duplex: bidirectional hop-by-hop transfer Most communication requires full duplex link even unidirectional data transfer control messages such as ACKs for ARQ may be highly asymmetric Alternative strategies for duplexing separate distinct end-to-end paths through network paired unidirectional links in same guided media sharing same media (e.g. fiber or free space) 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-70 35

Channel Partitioning MAC Frequency Division Duplexing Duplexing : bidirectional transmission sharing media FDD: frequency division duplexing forward and reverse traffic assigned to different freq. bands advantages and disadvantages? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-71 Channel Partitioning MAC Frequency Division Duplexing Duplexing : bidirectional transmission sharing media FDD: frequency division duplexing forward and reverse traffic assigned to different freq. bands simple scheme no possibility of collisions between forward & revere packets less efficient use of spectrum under light load 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-72 36

Channel Partitioning MAC Time Division Duplexing Multiplexing in time and space for full duplex bidirectional data transmission FDD: frequency division duplexing TDD: time division duplexing forward and reverse traffic assigned to same freq. bands advantages and disadvantages? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-73 Channel Partitioning MAC Time Division Duplexing Multiplexing in time and space for full duplex bidirectional data transmission FDD: frequency division duplexing TDD: time division duplexing forward and reverse traffic assigned to same freq. bands slots divided between upstream and downstream traffic dynamic bandwidth adjustment needed for assymetric traffic operates in conjunction with various channel multiplexing eg. TDD within FDMA examples in Lecture WN 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-74 37

Channel Partitioning MAC Advantages and Disadvantages Channel partitioning TDMA, FDMA, WDMA (optical) best under high deterministic load Coördinated access (taking turns) polling, token passing performs well in wired networks combines benefits of both partitioning and random access difficult to implement in wireless networks Spread spectrum CDMA resistant to interference and jamming 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-75 Channel Partitioning MAC Characteristics Characteristic Channel Partitioning Cöordinated Access Random Access Spread Spectrum Types TDMA FDMA WDMA SDMA Complexity low Load Tolerance Consequence of Contention high deterministic Resilience Examples poor 802.16 mesh 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-76 38

Mobile Wireless Networking ML.2.2 Coördinated Access MAC ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.2.1 Channel partitioning MAC ML.2.2 Coördinated access MAC ML.2.3 Spread spectrum MAC ML.3 Contention-based MAC algorithms ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-77 Coördinated Access MAC Introduction and Assumptions Channel has sufficient capacity individual inter-node date rates less than channel capacity Multiple nodes share a channel Nodes use channel for a period of time in a fully highly coordinated manner central controller (e.g. polling) algorithmic turn taking (e.g. token passing) MAC arbitrates 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-78 39

Coördinated Access MAC Polling Controller grants channel access to node each node polled to determine if it needs to transmit 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-79 Coördinated Access MAC Token Passing Token grants channel access to station token passed between nodes generally round robin 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-80 40

Coördinated Access MAC Token Passing Token grants channel access to station token passed between nodes generally round robin Topologies wired bus IEEE 802.4 never successful wired ring interconnection IEEE 802.5 Problem for wireless? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-81 Coördinated Access MAC Token Passing Token grants channel access to station token passed between nodes generally round robin Topologies wired bus IEEE 802.4 never successful wired ring interconnection IEEE 802.5 Problem for wireless how to order nodes sequential nodes must be in range 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-82 41

Coördinated Access MAC Advantages and Disadvantages Channel partitioning TDMA, FDMA, WDMA (optical) best under high deterministic load Coördinated access (taking turns) polling, token passing performs well in wired networks combines benefits of both partitioning and random access difficult to implement in wireless networks Spread spectrum CDMA resistant to interference and jamming 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-83 Coördinated Access MAC Characteristics Characteristic Channel Partitioning Cöordinated Access Random Access Spread Spectrum Types TDMA FDMA WDMA SDMA token ring polling Complexity low high Load Tolerance Consequence of Contention Resilience high deterministic poor higher degradation wired: moderate wireless: poor Examples 802.16 mesh 802.5 TR 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-84 42

Mobile Wireless Networking ML.2.3 Spread Spectrum MAC ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.2.1 Channel partitioning MAC ML.2.2 Coordinated access MAC ML.2.3 Spread spectrum MAC ML.3 Contention-based MAC algorithms ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-85 Spread Spectrum MAC Introduction and Assumptions Channel has sufficient capacity individual inter-node date rates less than channel capacity Multiple nodes share a channel Nodes use channel for a period of time Transmission spread in frequency spectrum coding techniques avoid interference CDMA: code division multiple access DSSS: direct sequence spread spectrum FHSS: frequency hopping spread spectrum 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-86 43

Spread Spectrum MAC CDMA CDMA: code division multiple access Channel use different codes in a given frequency band over period of time Analogy: speaking English, German, Chinese, Hindi in the same room at the same time easier to converse in a given language (code) if interference is in different languages (codes) c code n 1 code 1 code 0 f t 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-87 Spread Spectrum MAC CDMA Types Direct sequence (DS) symbols multiplied by higher frequency chipping sequence Frequency hopping (FH) transmissions rapidly hop among different frequency carriers pseudorandom sequence negotiated between tranceivers 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-88 44

Spread Spectrum MAC DS CDMA Concepts All stations share same frequency band unique code assigned to each station Each station has its own chipping sequence unique code at chipping rate encoded signal = (original data) (chipping sequence) decoding: inner-product of encoded signal and chipping seq. Multiple stations transmit simultaneously minimal interference if codes are orthogonal analogy : [suggested by D. Broyles] conversations at the same time in different languages 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-89 data bits code sender received input Spread Spectrum MAC CDMA Encode/Decode Example d 1 = -1 d 0 = 1 1 1 1 1 1 1 1 1-1 -1-1 -1-1 -1-1 -1 slot 1 slot 0 Z i,m = d i. cm 1 1 1 1 1 1 1 1-1 -1-1 -1-1 -1-1 -1 1 1 1 1 1 1 1 1-1 -1-1 -1-1 -1-1 -1 slot 1 channel output slot 0 channel output channel output Z i,m M D i = Σ Z. i,m cm m=1 M d 1 = -1 d 0 = 1 1 1 1 1 1 1 1 1 slot 1 slot 0 code -1-1 -1-1 -1-1 -1-1 channel channel receiver output output slot 1 slot 0 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-90 45

Spread Spectrum MAC FHSS Concepts All nodes share set of frequency bands Each node has its own channel sequence transmitters and receivers hop through channel sequence Multiple nodes transmit simultaneously Advantages and disadvantages? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-91 Spread Spectrum MAC FHSS Advantages All nodes share set of frequency bands Each node has its own channel sequence transmitters and receivers hop thorugh channel sequence Multiple nodes transmit simultaneously Advantages resistant to interception unless receiver has channel sequence resistant to jamming difficult to jam over wide frequency ranges 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-92 46

Spread Spectrum MAC FHSS Disadvantages All nodes share set of frequency bands Each node has its own channel sequence transmitters and receivers hop through channel sequence Multiple nodes transmit simultaneously Advantages resistant to interception and jamming Disadvantages interferes with FDM and DSSS in same frequency bands 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-93 Spread Spectrum MAC Advantages and Disadvantages Channel partitioning TDMA, FDMA, WDMA (optical) best under high deterministic load Coördinated access (taking turns) polling, token passing performs well in wired networks combines benefits of both partitioning and random access difficult to implement in wireless networks Spread spectrum CDMA resistant to interference and jamming 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-94 47

Characteristic Types Complexity Load Tolerance Consequence of Contention Resilience Examples Spread Spectrum MAC Characteristics Channel Partitioning TDMA FDMA WDMA SDMA low high deterministic poor 802.11 802.16 Cöordinated Access token ring polling high higher degradation wired: moderate wireless: poor 802.5 TR Random Access ALOHA, slot CSMA CD, CA high 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-95 low lower collisions poor Ethernet 802.11 Spread Spectrum CDMA FH, DS varies degradation resistant to interference 802.11 Mobile Wireless Networking ML.3 Contention-Based MAC Algorithms ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.3 Contention-based MAC algorithms ML.3.1 Random access and slotted time ML.3.2 Contention, collisions, and CSMA ML.3.3 Hidden and exposed nodes ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-96 48

Contention-Based MAC Introduction and Assumptions Channel has sufficient capacity individual inter-node date rates less than channel capacity Multiple nodes share a channel Nodes use channel for a period of time generally entire channel baseband for wired network share a frequency band for wireless (random access in FDMA) in a fully distributed (random ) manner similar to statistical TDM MAC arbitrates 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-97 Mobile Wireless Networking ML.3.1 Random Access and Slotted Time ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.3 Contention-based MAC algorithms ML.3.1 Random access and slotted time ML.3.2 Contention, collisions, and CSMA ML.3.3 Hidden and exposed nodes ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-98 49

Random Access MAC ALOHA ALOHA: 1970s radio network among Hawaiian islands Senders transmit whenever they have data (no MAC) A B C Performance metrics channel efficiency what fraction of transmission attempts are successful channel throughput what is the maximum carried load of the channel? t 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-99 Random Access MAC ALOHA ALOHA: 1970s radio network among Hawaiian islands Senders transmit whenever they have data (no MAC) A B C Problem collisions : transmissions interfere with one another t 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-100 50

Random Access MAC ALOHA ALOHA: 1970s radio network among Hawaiian islands Senders transmit whenever they have data (no MAC) A B C Problem collisions : transmissions interfere with one another even if only very small overlap t 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-101 Random Access MAC ALOHA ALOHA: 1970s radio network among Hawaiian islands Senders transmit whenever they have data (no MAC) A B C Problem collisions : transmissions interfere with one another even if only very small overlap can we do better? t 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-102 51

Random Access MAC Slotted ALOHA ALOHA: 1970s radio network among Hawaiian islands Senders transmit whenever they have data in slot A B C Problem collisions : transmissions interfere with one another improvement: divide time into slots t 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-103 Random Access MAC Slotted ALOHA ALOHA: 1970s radio network among Hawaiian islands Senders transmit whenever they have data in slot A B C Problem collisions : transmissions interfere with one another improvement: divide time into slots delay transmissions to next slot time t 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-104 52

Random Access MAC Slotted ALOHA ALOHA: 1970s radio network among Hawaiian islands Senders transmit whenever they have data in slot A B C Problem collisions : transmissions interfere with one another improvement: divide time into slots delay transmissions to next slot time slotted time reduces probability of collisions t 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-105 Random Access MAC Unslotted vs. Slotted Performance [throughput / packet time] 0.40 [adapted from Tannenbaum] 0.30 slotted 0.20 0.10 unslotted 0.0 0.5 1.0 1.5 2.0 2.5 3.0 G [attempts / packet time] Slotting approximately doubles performance slotted: Throughput = Ge G unslotted: Throughput = Ge 2G 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-106 53

Random Access MAC Challenges Multiple nodes must be able to share channel When 2 or more nodes simultaneously transmit signals garbled in a collision : none of them are successful How to arbitrate among them? MAC algorithm How can we do better than random transmission? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-107 Mobile Wireless Networking ML.3.2 Contention, Collisions, and CSMA ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.3 Contention-based MAC algorithms ML.3.1 Random access and slotted time ML.3.2 Contention, collisions, and CSMA ML.3.3 Hidden and exposed nodes ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-108 54

Medium Access Control Contention Contention-based or random-access MAC nodes transmit when they have data subject to MAC per frame decision analogue to connectionless service collisions possible efficient channel utilisation in the absence of collisions 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-109 Random Access MAC Contention and Collisions What is the simplest way to reduce collisions? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-110 55

Random Access MAC CSMA (1-persistant) CSMA carrier sense multiple access nodes can sense if channel is in use by another station wait to transmit to avoid collision human analogy: don t interrupt others already speaking 1-persistant CSMA wait until channel free, then transmit (transmit with probability 1) Problem? How can we do better? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-111 Random Access MAC CSMA (non- and p - persistent) Problem: synchronisation of collisions waiting nodes will all transmit as soon as channel free Two options: Non-persistent CSMA if carrier sensed wait random period before trying again (rather than continuously sensing until channel free) better utilisation, but delayed even when unnecessary p -persistent CSMA (for slotted time) continuously sense carrier until channel is available but with only with probability p transmit on next slot 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-112 56

Random Access MAC CSMA Collisions Collisions still occur due to propagation delay sender may not know channel already in use 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-113 Random Access MAC CSMA Collisions Collisions still occur due to propagation delay sender may not know channel already in use Pr[collision] incr. w/ length B & D don t know other xmit A B C D 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-114 57

Random Access MAC CSMA Collisions Collisions still occur due to propagation delay sender may not know channel already in use Pr[collision] incr. w/ length B & D don t know other xmit until signals meet near C and return Inefficient channel used by garbage Can we do better? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-115 A B C D Random Access MAC CSMA/CD CSMA/CD: CSMA with collision detection station detecting a collision immediately ceases transmission human analogy: polite conservationist Worst case CD takes twice media propagation delay A transmits packet 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-116 58

Random Access MAC CSMA/CD CSMA/CD: CSMA with collision detection station detecting a collision immediately ceases transmission human analogy: polite conservationist Worst case CD takes twice media propagation delay A transmits packet 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-117 Random Access MAC CSMA/CD CSMA/CD: CSMA with collision detection station detecting a collision immediately ceases transmission human analogy: polite conservationist Worst case CD takes twice media propagation delay A transmits packet B transmits packet just before A reaches B 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-118 59

Random Access MAC CSMA/CD CSMA/CD: CSMA with collision detection station detecting a collision immediately ceases transmission human analogy: polite conservationist Worst case CD takes twice media propagation delay A transmits packet B transmits packet just before A reaches B A+B interference travels back to A 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-119 Random Access MAC Collision Detection Efficiency CD frees channel earlier =1 / [1+5t prop /t trans ] t prop max prop between nodes t trans time to transmit max frame Efficiency 1 as t prop 0 1 as t trans A B C D CD and abort 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-120 60

Random Access MAC Collision Detection Efficiency CD frees channel earlier =1 / [1+5t prop /t trans ] t prop max prop between nodes t trans time to transmit max frame Efficiency 1 as t prop 0 1 as t trans Much better than CSMA still decentralized, simple, and cheap problem? A B C CD and abort D 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-121 CSMA/CD Backoff If stations all transmit after backoff, same problem need some way of un-synchronising retransmissions How? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-122 61

CSMA/CD Exponential Backoff If stations all transmit after backoff, same problem need some way of un-synchronising transmissions Exponential backoff: stations wait a random number of slot times before retrying binary exponential distribution: nth collision wait randomly among {0 2 n 1 } slots 1st collision: wait 0 or 1 slots 2nd collision: wait 0, 1, 2, or 3 slots low load: minimise delay moderate load: spread retries 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-123 CSMA/CD Problems Problems? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-124 62

CSMA/CD Problems: Collision Detection and Carrier Sense Problem with collision detection? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-125 CSMA/CD Problem with Collision Detection Problems with collision detection station must be able to simultaneously transmit and receive requires full duplex not possible for single wireless tranceiver at given frequency CSMA/CD not appropriate for wireless networks Ethernet evolution eliminated vast majority of CSMA/CD 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-126 63

CSMA Problem with Carrier Sense CSMA/CD not appropriate for wireless networks Problem with carrier sense? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-127 CSMA Problem with Carrier Sense CSMA/CD not appropriate for wireless networks Problem with carrier sense only appropriate when all nodes within range typically not the case for wireless networks problem? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-128 64

CSMA Problem with Carrier Sense CSMA/CD not appropriate for wireless networks Problem with carrier sense only appropriate when all nodes within range typically not the case for wireless networks problem: hidden nodes 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-129 Mobile Wireless Networking ML.3.3 Hidden and Exposed Nodes ML.1 MAC and link layer functions and services ML.2 Contention-free MAC algorithms ML.3 Contention-based MAC algorithms ML.3.1 Random access and slotted time ML.3.2 Contention, collisions, and CSMA ML.3.3 Hidden and exposed nodes ML.4 MAC algorithms for directional antennæ ML.5 Wireless link protocols 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-130 65

Hidden and Exposed Nodes Hidden Nodes Hidden nodes (terminals) some nodes are hidden from one another out of transmission range unaware that they are causing collisions with hidden node 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-131 Random Access Wireless MAC Hidden Nodes Hidden node problem A C B 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-132 66

Random Access Wireless MAC Hidden Nodes Hidden node problem A can communicate with B A C B 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-133 Random Access Wireless MAC Hidden Nodes Hidden node problem A can communicate with B C can communicate with B A A C B 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-134 67

Random Access Wireless MAC Hidden Nodes Hidden node problem A can communicate with B C can communicate with B A can not communicate with C C A B 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-135 Random Access Wireless MAC Hidden Nodes Hidden node problem A can communicate with B C can communicate with B A can not communicate with C unaware of interference C A B 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-136 68

Random Access Wireless MAC Hidden Nodes Hidden node problem A can communicate with B C can communicate with B A can not communicate with C unaware of interference Causes of hidden nodess line-of-sight obstructions C A B 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-137 Random Access Wireless MAC Hidden Nodes Hidden node problem A can communicate with B C can communicate with B A can not communicate with C unaware of interference Causes of hidden nodes line-of-sight obstructions signal attenuation limited transmission range 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-138 C A A B C B 69

Hidden and Exposed Nodes Exposed Nodes Exposed nodes (terminals) some nodes are in range of one another prevent transmission because collision assumed 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-139 Hidden and Exposed Nodes Exposed Nodes Exposed nodes (terminals) some nodes are in range of one another prevent transmission because collision assumed Example: B transmitting to C B C 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-140 70

Hidden and Exposed Nodes Exposed Nodes Exposed nodes (terminals) some nodes are in range of one another prevent transmission because collision assumed Example: B transmitting to C but A hears B: won t transmit for CA A B C 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-141 Hidden and Exposed Nodes Exposed Nodes Exposed nodes (terminals) some nodes are in range of one another prevent transmission because collision assumed Example: B transmitting to C but A hears B: won t transmit for CA even though it could to D without jamming B C D A B C 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-142 71

Hidden and Exposed Nodes Exposed Nodes Exposed nodes (terminals) some nodes are in range of one another prevent transmission because collision assumed Solution? D A B C 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-143 Hidden and Exposed Nodes Exposed Nodes Exposed nodes (terminals) some nodes are in range of one another prevent transmission because collision assumed Spatial reuse necessary directional antennæ one strategy D A B C 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-144 72

Random Access Wireless MAC CSMA CSMA/CD not practical for wireless networks full duplex problem hidden terminal problem Alternatives that are still better than (pure) CSMA? 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-145 Random Access Wireless MAC Collision Avoidance Collision avoidance (CA) attempt to avoid collision (but don t detect once occurs) 29 August 2011 KU EECS 882 Mobile Wireless Nets MAC & Link MWN-ML-146 73