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

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

Wireless and Mobile Networks 7-2

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

Mohammad Hossein Manshaei 1393

CSC 4900 Computer Networks: Wireless Networks

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

Chapter 6 Wireless and Mobile Networks

CSCI-1680 Wireless Chen Avin

Last Lecture: Data Link Layer

CS 332 Computer Networks Wireless Networks

Chapter 6 Wireless and Mobile Networks. Chapter 6 outline. Chapter 6: Wireless and Mobile Networks. Elements of a wireless network

Multiple Access in Cellular and Systems

ECE 4450:427/527 - Computer Networks Spring 2017

COMP 3331/9331: Computer Networks and Applications

COMP 3331/9331: Computer Networks and Applications

Chapter 6 Wireless and Mobile Networks. Chapter 6 outline. Chapter 6: Wireless and Mobile Networks. Elements of a wireless network.

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

CPSC 826 Internetworking. Wireless and Mobile Networks. Wireless Networks Wireless Hosts

Wireless Networks. CSE 3461: Introduction to Computer Networking Reading: , Kurose and Ross ( 6th ed.); , Kurose and Ross (7th ed.

M06:Wireless and Mobile Networks. Corinna Schmitt

Home Area Networks. Outline

Wireless and Mobile Networks

Module 6: Wireless Mobile Networks

Elements of a wireless network. Elements of a wireless network. Characteristics of selected wireless link standards. Elements of a wireless network

MULTIPLE ACCESS PROTOCOLS 2. 1

CSC 8560 Computer Networks: Wireless and Mobility

Link Layer. 5.1 Introduction and services 5.2 Error detection and correction 5.3Multiple access protocols 5.4 Link-Layer Addressing 5.

Elements of a wireless network. Elements of a wireless network. Some wireless link standards. Elements of a wireless network

Mobile devices for wireless

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

Chapter 6 Wireless and Mobile Networks

Chapter 6 Wireless and Mobile Networks

Multiple Access Links and Protocols

Computer Networks. Wireless and Mobile Networks. László Böszörményi Computer Networks Mobile - 1

Chapter 6 Wireless and Mobile Networks

Wireless and WiFi. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Wireless Internet Routing. Review of Wireless Networking (with Routing in Mind)

CSC 498R: Internet of Things 2

(Wireless) Internet Routing. Review of Wireless Networking (with Routing in Mind)

Medium Access Control

Mobile and Sensor Systems

Last time?! MPLS! Label distribution protocols! Multi Protocol Label Switching! Layer 2.5 protocol! LDP! RSVP!

Chapter 7. Wireless and Mobile Networks. Computer Networking: A Top Down Approach

Chapter 6 Wireless and Mobile Networks

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Chapter 7. Wireless and Mobile Networks. Computer Networking: A Top Down Approach. Andrei Gurtov

Chapter 6 Wireless and Mobile Networks

Chapter 6 Wireless and Mobile Networks. Chapter 6 outline. Chapter 6: Wireless and Mobile Networks. Elements of a wireless network

Chapter 6 Wireless and Mobile Networks

Wireless and Mobile Networks

Chapter 5 Wireless and Mobile Networks

Block 3: Lecture 1! Part 3: Lecture 1! Wireless networks!

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

Wireless and Mobile Networks

Chapter 7. Wireless and Mobile Networks 7-1

Lecture 15 Wireless and Mobility

Chapter 7. Wireless and Mobile Networks. Computer Networking: A Top Down Approach

Data Link Protocols. TCP/IP Suite and OSI Reference Model. The TCP/IP protocol stack does not define the lower layers of a complete protocol stack

Announcements: ECE/CS 372 introduction to computer networks. Assignment 4 due now. Chapter 7

Chapter 3: Wireless and Mobile Networks

Chapter 6 Wireless and Mobile Networks (Wireless and Mobility)

Chapter 6 Wireless and Mobile Networks

CMPE 257: Wireless and Mobile Networking

Already finished all layers in the stack, why a separate chapter for wireless and mobile networks?

Chapter 5 Link Layer and LANs

MSIT 413: Wireless Technologies Week 8

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

Wireless Local Area Networks. Networks: Wireless LANs 1

CMPE 257: Wireless and Mobile Networking

Wireless and Mobile Networks Reading: Sections 2.8 and 4.2.5

Extending or Interconnecting LANS. Physical LAN segment. Virtual LAN. Forwarding Algorithm 11/9/15. segments. VLAN2, Port3. VLAN1, Port1.

COMP211 Chapter 6/7 Link Layer

Announcements: ECE/CS 372 introduction to computer networks. Assign 4 is due this Thursday Lab 4 is due next Tuesday Assignment 5 posted soon

Multiple Access Links and Protocols

Data and Computer Communications. Chapter 13 Wireless LANs

Chapter 5: The Data Link Layer

CSE 461: Wireless Networks

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

3/20/2012. Data Communications & Networks. Session 5 Main Theme. 2 Wireless and Mobile Networks. Dr. Jean-Claude Franchitti

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

Chapter 6 Medium Access Control Protocols and Local Area Networks

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

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

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

Mohammad Hossein Manshaei 1393

Lecture 16: QoS and "

Chapter 6 Wireless and Mobile Networks

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

Wireless Protocols. Training materials for wireless trainers

Wireless Networks. Wireless Links. Mike Freedman hap:// Interference / bit errors

Communication Networks: Wireless and Mobile Communication Networks. Prof. Amir Herzberg BIU, Dept. of CS

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

Ethernet. Lecture 6. Outline. Ethernet - Physical Properties. Ethernet - Physical Properties. Ethernet

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

Data Communications. Data Link Layer Protocols Wireless LANs

original standard a transmission at 5 GHz bit rate 54 Mbit/s b support for 5.5 and 11 Mbit/s e QoS

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

Introduction to Wireless Networking. Communication without Wires

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

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

Transcription:

Shared Access Networks Wireless 1

Wireless and Mobile Networks Background: # wireless (mobile) phone subscribers now exceeds # wired phone subscribers (5-to-1)! # wireless Internet-connected devices equals # wireline Internet-connected devices laptops, Internet-enabled phones promise anytime untethered Internet access two important (but different) challenges wireless: communication over wireless link - Now mobility: handling the mobile user who changes point of attachment to network - Later 2

Elements of a wireless network network infrastructure wireless hosts! laptop, smartphone! run applications! may be stationary (nonmobile) or mobile " wireless does not always mean mobility 3

Elements of a wireless network network infrastructure base station! typically connected to wired network! relay - responsible for sending packets between wired network and wireless host(s) in its area " e.g., cell towers, 802.11 access points(ap) 4

Elements of a wireless network network infrastructure wireless link! typically used to connect mobile(s) to base station! also used as backbone link (Ad Hoc)! multiple access protocol coordinates link access! various data rates, transmission distance 5

Characteristics of selected wireless links Data rate (Mbps) 200 54 5-11 4 1.384.056 802.11n 802.11a,g 802.11b 802.15 802.11a,g point-to-point 4G: LTWE WIMAX 3G: UMTS/WCDMA-HSPDA, CDMA2000-1xEVDO 2.5G: UMTS/WCDMA, CDMA2000 2G: IS-95, CDMA, GSM Indoor 10-30m Outdoor 50-200m Mid-range outdoor Long-range outdoor 200m 4 Km 5Km 20 Km 1/27/14 CS 125 - mywireless 6

Wireless Link Characteristics (1) important differences from wired link. decreased signal strength: radio signal attenuates as it propagates through matter (path loss) interference from other sources: standardized wireless network frequencies (e.g., 2.4 GHz) shared by other devices (e.g., phone); devices (motors) interfere as well multipath propagation: radio signal reflects off objects ground, arriving at destination at slightly different times. make communication across (even a point to point) wireless link much more difficult 7

Wireless network characteristics Multiple wireless senders and receivers create additional problems (beyond multiple access): C A B C A B A s signal strength C s signal strength Hidden terminal problem???! B, A hear each other! B, C hear each other! A, C can not hear each other means A, C unaware of their interference at B space Signal attenuation problem??! B, A hear each other! B, C hear each other! A, C can not hear each other interfering at B 8

802.11 LAN architecture BSS 1 Internet hub, switch or router! wireless host communicates with base station " base station = access point (AP)! Basic Service Set (BSS) (aka cell ) in infrastructure mode contains: " wireless hosts " access point (AP): base station " ad hoc mode: hosts only BSS 2 9

Wireless LAN Technology Physical Media spread spectrum radio (2.4GHz) diffused infrared (10m) Access Challenge Mediate access to shared medium that is not isolated (like a wire) Channel Partitioning Random Access - Ethernet Taking Turns Token Ring 10

IEEE 802.11 Wireless LAN Technology 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 versions 11

802.11: Channels, association 802.11b: 2.4GHz-2.485GHz spectrum divided into 11 channels at different frequencies AP admin chooses frequency for AP interference possible: channel can be same as that chosen by neighboring AP! host: must associate with an AP scans channels, listening for beacon frames containing AP s name (SSID) and MAC address selects AP to associate with may perform authentication will typically run DHCP to get IP address in AP s subnet 12

Code Division Multiple Access (CDMA) channel partitioning unique code assigned to each user; i.e., code set partitioning all users share same frequency, but each user has own chipping sequence (i.e., code) to encode data allows multiple users to coexist and transmit simultaneously with minimal interference (if codes are orthogonal ) encoded signal = (original data) X (chipping sequence) decoding: inner-product of encoded signal and chipping sequence 13

CDMA encode/decode channel output Z i,m sender data bits code d 0 = 1 d 1 = -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. c m - 1-1 - 1 1-1 1 1 1 slot 1 channel output 1 1 1 1-1 - 1-1 - 1 slot 0 channel output received input code receiver - 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 slot 0 M D i = Σ Z i,m. c m=1 m M d 1 = -1 slot 1 channel output d 0 = 1 slot 0 channel output 14

CDMA: two-sender interference Sender 1 channel sums together transmissions by sender 1 and 2 Sender 2 using same code as sender 1, receiver recovers sender 1 s original data from summed channel data! 15

802.11: passive/active scanning Finding an AP BBS 1 BBS 2 BBS 1 BBS 2 AP 1 1 H1 2 1 3 AP 2 passive scanning: (1) beacon frames sent from APs (2) association Request frame sent: H1 to selected AP (3) association Response frame sent from selected AP to H1 AP 1 16 2 1 H1 2 3 4 AP 2 active scanning: (1) Probe Request frame broadcast from H1 (2) Probe Response frames sent from APs (3) Association Request frame sent: H1 to selected AP (4) Association Response frame sent from selected AP to H1

IEEE 802.11: multiple access avoid collisions: 2 + nodes transmitting at same time 802.11: CSMA - sense before transmitting Carrier Sense Multiple Access don t collide with ongoing transmission by other node 802.11: no collision detection! difficult to receive (sense collisions) when transmitting due to weak received signals (fading) can t sense all collisions in any case: hidden terminal, fading goal: avoid collisions: CSMA/C(ollision)A(voidance) C A B C A B A s signal strength C s signal strength space 17

Collision Avoidance Similar to Ethernet, but all nodes cannot see all nodes Problem: hidden and exposed nodes B sending to A, can C send to D? Yes A B C D 18

Avoiding collisions (more) idea: allow sender to reserve channel rather than random access of data frames: avoid collisions of long data frames sender first transmits small request-to-send (RTS) packets to BS using CSMA RTSs may still collide with each other (but they re short) BS broadcasts clear-to-send CTS in response to RTS CTS heard by all nodes sender transmits data frame other stations defer transmissions avoid data frame collisions completely using small reservation packets! 19

CSMA/CA Multiple Access with Collision Avoidance Sender transmits RequestToSend (RTS) frame Receiver replies with ClearToSend (CTS) frame Neighbors see CTS: keep quiet see RTS but not CTS: ok to transmit Out of range of sender Receiver sends ACK when has frame neighbors silent until see ACK Collisions no collision detection known when don t receive CTS exponential backoff 20

IEEE 802.11 MAC Protocol: CSMA/CA 802.11 sender 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 - if frame received OK return ACK after SIFS (ACK needed due to hidden terminal problem) DIFS sender data ACK receiver SIFS 21

Collision Avoidance: RTS-CTS exchange A RTS(A) RTS(A) AP reservation collision B RTS(B) CTS(A) CTS(A) DATA (A) defer time ACK(A) ACK(A) 22

802.11 frame: addressing frame control 2 2 6 6 6 2 6 0-2312 4 duration address 1 address 2 address 3 seq control address 4 payload CRC Address 1: MAC address of wireless host or AP to receive this frame Address 2: MAC address of wireless host or AP transmitting this frame Address 3: MAC address of router interface to which AP is attached Address 4: used only in ad hoc mode 23

802.11 frame: addressing H1 R1 router Internet 802.3 frame AP MAC addr H1 MAC addr R1 MAC addr address 1 address 2 address 3 R1 MAC addr H1 MAC addr dest. address source address 802.11 frame 24

802.11 frame: more duration of reserved transmission time (RTS/CTS) frame seq # (for RDT) frame control 2 2 6 6 6 2 6 0-2312 4 duration address 1 address 2 address 3 seq control address 4 payload CRC Protocol version 2 2 4 1 1 1 1 1 1 1 1 Type Subtype To AP From AP More frag Retry Power mgt More data WEP Rsvd frame type (RTS, CTS, ACK, data) 25

Supporting Mobility Case 1: ad hoc networking Case 2: access points (AP) tethered each mobile node associates with an AP (base station) AP connection/routing not a 802.11 issue Distribution system A AP-1 B AP-2 H G AP-3 F C D E 26

802.11: mobility within same subnet H1 remains in same IP subnet: IP address can remain same switch: which AP is associated with H1? self-learning (Ch. 5): switch will see frame from H1 and remember which switch port can be used to reach H1 BBS 1 H1 BBS 2 27

Mobility (cont) Scanning (selecting an AP) node sends Probe frame all AP s within reach reply with ProbeResponse frame node selects one AP; sends it AssociateRequest frame AP replies with AssociationResponse frame new AP informs old AP via tethered network (so there is a base station protocol) When active: when join or move passive: AP periodically sends Beacon frame 28

C moves and using beacon frame to join AP-2 29

The End 30

What happens if A tries to send to B while C is Sending to D?? 31

32

33

Spread Spectrum Idea spread signal over wider frequency band than required originally designed to thwart jamming Frequency Hopping transmit over random sequence of frequencies sender and receiver share pseudorandom number generator seed 802.11 uses 79 x 1MHz-wide frequency bands 2.4 GHz frequency band 34

Spread Spectrum (cont) Direct Sequence for each bit, send XOR of that bit and n random bits random sequence known to both sender and receiver called n-bit chipping code 802.11 defines an 11-bit chipping code How would you chose chipping code??? 1 0 1 0 1 0 Data stream: 1010 Random sequence: 01001011010110 XOR of the two: 1011101110101001 1/27/14 Looks like noise to clueless CS 125 - mywireless 35

802.11 Frame Control: type (data, RTS,CTS) Addresses: host, destination, APs (control bits set meaning) 36