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

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

CSCI-1680 Wireless Chen Avin

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

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

CSC 4900 Computer Networks: Wireless Networks

Wireless and Mobile Networks 7-2

Chapter 6 Wireless and Mobile Networks

CS 332 Computer Networks Wireless Networks

Mohammad Hossein Manshaei 1393

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

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

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

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

Last Lecture: Data Link Layer

Module 6: Wireless Mobile Networks

COMP 3331/9331: Computer Networks and Applications

CSC 8560 Computer Networks: Wireless and Mobility

COMP 3331/9331: Computer Networks and Applications

Chapter 6 Wireless and Mobile Networks

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

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

Chapter 6 Wireless and Mobile Networks

Chapter 6 Wireless and Mobile Networks

No lecture on Thurs. Last homework will be out this week (not due, covers wireless) Extra office hours for next week and the week after.

Home Area Networks. Outline

Chapter 6 Wireless and Mobile Networks

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

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

Chapter 5 Wireless and Mobile Networks

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

Chapter 6 Wireless and Mobile Networks

Wireless and Mobile Networks

Chapter 6 Wireless and Mobile Networks (Wireless and Mobility)

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

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

Mobile devices for wireless

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

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

Wireless and Mobile Networks Reading: Sections 2.8 and 4.2.5

Mobility: vocabulary

Wireless and Mobile Networks

Wireless and Mobile Networks

Chapter 3: Wireless and Mobile Networks

Chapter 7. Wireless and Mobile Networks 7-1

MULTIPLE ACCESS PROTOCOLS 2. 1

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

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

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

Lecture 15 Wireless and Mobility

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

Mobile and Sensor Systems

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

CSC 4900 Computer Networks: Mobility

Announcements: Assignment 4 due now Lab 4 due next Tuesday Assignment 5 posted, due next Thursday

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

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

Chapter 6 Wireless and Mobile Networks

Multiple Access Links and Protocols

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

Medium Access Control

Wireless Security Background

Last time. BGP policy. Broadcast / multicast routing. Link virtualization. Spanning trees. Reverse path forwarding, pruning Tunneling

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

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

CSC 401 Data and Computer Communications Networks

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

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

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

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

Computer Networks, Andrew Tannenbaum, Chapter 5.6. Computer Networking: A Top Down Approach Featuring the

Wireless Network and Mobility

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

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

CSC 498R: Internet of Things 2

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

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

Carrier Wave! Signals! Modulation! Internet Protocol Stack!

Multiple Access Links and Protocols

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

Chapter 5 Link Layer and LANs

CMPE 257: Wireless and Mobile Networking

Chapter 6 Medium Access Control Protocols and Local Area Networks

15-441: Computer Networking. Wireless Networking

Chapter 5: The Data Link Layer

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

Wireless Local Area Networks. Networks: Wireless LANs 1

Chapter 4 roadmap. CS555, Spring /14/2005. WMU-CS, Dr. Gupta 1. Multicast Routing: Problem Statement. Approaches for building mcast trees

Mohammad Hossein Manshaei 1393

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

Wireless Protocols. Training materials for wireless trainers

MSIT 413: Wireless Technologies Week 8

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

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

CMPE 257: Wireless and Mobile Networking

Introduction to Wireless Networking. Communication without Wires

Transcription:

Data Communication & Networks G22.2262-001 Session 5 - Main Theme Wireless Networks Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences 1 Agenda Introduction Wireless Networking Elements of a Wireless Network Wireless Link Characteristics Code Division Multiple Access (CDMA) IEEE 802.11 wireless LANs ( wi-fi ) Components of a Cellular Network Architecture Mobility Principles: addressing and routing to mobile users 2

Part I Introduction 3 Wireless & Mobile Networks Background: # wireless (mobile) phone subscribers now exceeds # wired phone subscribers! Computer nets: laptops, palmtops, PDAs, Internet-enabled phone promise anytime undeterred Internet access Two important (but different) challenges Communication over wireless link Handling mobile user who changes point of attachment to 4

Part II Wireless Networking 5 Elements of a Wireless Network infrastructure wireless hosts laptop, PDA, IP phone run applications may be stationary (nonmobile) or mobile wireless does not always mean mobility 6

Elements of a Wireless Network infrastructure base station typically connected to wired relay - responsible for sending packets between wired and wireless host(s) in its area e.g., cell towers 802.11 access points 7 Elements of a Wireless Network infrastructure wireless link typically used to connect mobile(s) to base station also used as backbone link multiple access protocol coordinates link access various data rates, transmission distance 8

Characteristics of Selected Wireless Link Standards 54 Mbps 51 Mbps 1 Mbps 802.11{a,g} 802.11b 802.15.11 p-to-p link 384 Kbps 56 Kbps UMTS/WCDMA, CDMA2000 IS-95 CDMA, GSM 3G 2G Indoor Outdoor Mid range outdoor Long range outdoor 10 30m 50 200m 200m 4Km 5Km 20Km 9 Elements of a Wireless Network infrastructure infrastructure mode base station connects mobiles into wired handoff: mobile changes base station providing connection into wired 10

Elements of a Wireless Network Ad hoc mode no base stations nodes can only transmit to other nodes within link coverage nodes organize themselves into a : route among themselves 11 Wireless Link Characteristics Differences from wired link. Decreased signal strength: radio signal attenuates as it propagates through matter (path loss) Interference from other sources: standardized wireless 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 ad destination at slightly different times. make communication across (even a point to point) wireless link much more difficult 12

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 that A, C are unaware of their interfering at B space Signal fading: B, A hear each other B, C hear each other A, C can not hear each other interfering at B 13 Code Division Multiple Access (CDMA) Used in several wireless broadcast channels (cellular, satellite, etc) standards 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 Encoded signal = (original data) X (chipping sequence) Decoding: inner-product of encoded signal and chipping sequence Allows multiple users to coexist and transmit simultaneously with minimal interference (if codes are orthogonal ) 14

CDMA Encode/Decode sender data bits code d 0 = 1 d 1 = 1 1 1 1 1 1 1 1 slot 1 slot 0 Z i,m = d i. cm channel output Z i,m 1 1 1 1 1 1 1 1 slot 1 channel output slot 0 channel output received input code receiver 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 cm m=1 M d 1 = slot 1 channel output d 0 = 1 slot 0 channel output 15 CDMA: Two-Sender Interference 16

IEEE 802.11 Wireless LAN 802.11b 2.4-5 GHz unlicensed radio spectrum Up to 11 Mbps Direct sequence spread spectrum (DSSS) in physical layer All hosts use same chipping code Widely deployed, using base stations 802.11a 5-6 GHz range Up to 54 Mbps 802.11g 2.4-5 GHz range up to 54 Mbps All use CSMA/CA for multiple access All have base-station and ad-hoc versions 17 802.11 LAN Architecture BSS 1 AP Internet hub, switch or router AP 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 18

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 [Chapter 8] Will typically run DHCP to get IP address in AP s subnet 19 802.11: Multiple Access Avoid collisions: 2+ nodes transmitting at same time 802.11: CSMA - sense before transmitting 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 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) sender DIFS data ACK receiver 21 SIFS 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 RTS heard by all nodes Sender transmits data frame Other stations defer transmissions Avoid data frame collisions completely using small reservation packets! 22

Collision Avoidance: RTS-CTS Exchange A AP B RTS(A) RTS(B) reservation collision RTS(A) CTS(A) CTS(A) DATA (A) defer time ACK(A) ACK(A) 23 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 24

802.11 Frame: Addressing (more) H1 R1 router Internet AP R1 MAC addr AP MAC addr dest. address source address 802.3 frame AP MAC addr H1 MAC addr R1 MAC addr address 1 address 2 address 3 802.11 frame 25 802.11 Frame: Addressing (more) duration of reserved transmission time (RTS/CTS) frame seq # (for reliable ARQ) 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 2 2 4 1 1 1 1 1 1 1 1 Protocol To From More Power More Type Subtype Retry WEP Rsvd version AP AP frag mgt data frame type (RTS, CTS, ACK, data) 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 AP 1 router hub or switch AP 2 H1 BBS 2 27 Components of Cellular Network Architecture cell covers geographical region base station (BS) analogous to 802.11 AP mobile users attach to through BS air-interface: physical and link layer protocol between mobile and BS MSC connects cells to wide area net manages call setup (more later!) handles mobility (more later!) Mobile Switching Center Mobile Switching Center Public telephone, and Internet wired 28

Cellular Networks: The First Hop Two techniques for sharing mobile-to-bs radio spectrum Combined FDMA/TDMA: divide spectrum in frequency channels, divide each channel into time slots CDMA: code division multiple access frequency bands time slots 29 Part III Mobility 30

What is Mobility? Spectrum of mobility, from the perspective no mobility high mobility mobile wireless user, using same access point mobile user, connecting/ disconnecting from using DHCP. mobile user, passing through multiple access point while maintaining ongoing connections (like cell phone) 31 Mobility: Vocabulary home : permanent home of mobile (e.g., 128.119.40/24) home agent: entity that will perform mobility functions on behalf of mobile, when mobile is remote Permanent address: address in home, can always be used to reach mobile e.g., 128.119.40.186 wide area correspondent 32

Mobility: Vocabulary (cont.) Permanent address: remains constant (e.g., 128.119.40.186) visited : in which mobile currently resides (e.g., 79.129.13/24) Care-of-address: address in visited. (e.g., 79,129.13.2) wide area correspondent: wants to communicate with mobile foreign agent: entity in visited that performs mobility functions on behalf of mobile. 33 How do you Contact a Mobile Friend Consider friend frequently changing addresses, how do you find her? Search all phone books? Call her parents? Expect her to let you know where he/she is? I wonder where Alice moved to? 34

Mobility: Approaches Let routing handle it: routers advertise permanent address of mobile-nodes-in-residence via usual routing table exchange Routing tables indicate where each mobile located No changes to end-systems Let end-systems handle it: Indirect routing: communication from correspondent to mobile goes through home agent, then forwarded to remote Direct routing: correspondent gets foreign address of mobile, sends directly to mobile 35 Mobility: Approaches Let routing handle it: routers advertise permanent not address of mobile-nodes-in-residence via usual scalable routing table exchange to millions of mobiles routing tables indicate where each mobile located no changes to end-systems Let end-systems handle it: Indirect routing: communication from correspondent to mobile goes through home agent, then forwarded to remote Direct routing: correspondent gets foreign address of mobile, sends directly to mobile 36

Mobility: Registration home visited 2 wide area foreign agent contacts home agent home: this mobile is resident in my 1 mobile contacts foreign agent on entering visited End result: Foreign agent knows about mobile Home agent knows location of mobile 37 Mobility via Indirect Routing home correspondent addresses packets using home address of mobile home agent intercepts packets, forwards to foreign agent 1 wide area 2 foreign agent receives packets, forwards to mobile 4 3 visited mobile replies directly to correspondent 38

Indirect Routing: Comments Mobile uses two addresses: Permanent address: used by correspondent (hence mobile location is transparent to correspondent) Care-of-address: used by home agent to forward datagrams to mobile Foreign agent functions may be done by mobile itself Triangle routing: correspondent-home-mobile Inefficient when correspondent, mobile are in same 39 Indirect Routing: Moving Between Networks Suppose mobile user moves to another Registers with new foreign agent New foreign agent registers with home agent Home agent update care-of-address for mobile Packets continue to be forwarded to mobile (but with new care-of-address) Mobility, changing foreign s transparent: on going connections can be maintained! 40

Mobility via Direct Routing home correspondent forwards to foreign agent foreign agent receives packets, forwards to mobile 4 visited correspondent requests, receives foreign address of mobile 2 1 wide area 3 4 mobile replies directly to correspondent 41 Mobility via Direct Routing: Comments Overcome triangle routing problem Non-transparent to correspondent: correspondent must get care-of-address from home agent What if mobile changes visited? 42

Accommodating Mobility with Direct Routing Anchor foreign agent: FA in first visited Data always routed first to anchor FA When mobile moves: new FA arranges to have data forwarded from old FA (chaining) correspondent wide area 1 correspondent agent anchor foreign agent 5 4 new foreign agent 3 foreign net visited at session start 2 new foreign 43 Part IV Conclusion 44

Assignment & Readings Assignment #2 Will be assigned at the completion of Session 4 Readings Chapter 6 (6.1, 6.2, 6.3, 6.4) 45 Next Session: Reliable Data Transfer Protocols 46