Last Lecture: Data Link Layer

Similar documents
Wireless and Mobile Networks 7-2

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

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

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

ECE 4450:427/527 - Computer Networks Spring 2017

Mohammad Hossein Manshaei 1393

CSC 4900 Computer Networks: Wireless Networks

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

Multiple Access in Cellular and Systems

CS 332 Computer Networks Wireless Networks

Wireless and Mobile Networks Reading: Sections 2.8 and 4.2.5

COMP 3331/9331: Computer Networks and Applications

CSCI-1680 Wireless Chen Avin

Chapter 6 Wireless and Mobile Networks

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

Home Area Networks. Outline

COMP 3331/9331: Computer Networks and Applications

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

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

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

Mobile devices for wireless

M06:Wireless and Mobile Networks. Corinna Schmitt

Wireless and Mobile Networks

Module 6: Wireless Mobile Networks

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

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

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

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

CSC 8560 Computer Networks: Wireless and Mobility

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

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

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

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

Medium Access Control

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

Multiple Access Links and Protocols

Chapter 6 Wireless and Mobile Networks

Chapter 6 Wireless and Mobile Networks

Chapter 6 Wireless and Mobile Networks

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

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

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

MULTIPLE ACCESS PROTOCOLS 2. 1

Chapter 5 Wireless and Mobile Networks

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

Mobile and Sensor Systems

CSC 498R: Internet of Things 2

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 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

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

Wireless and Mobile Networks

Wireless and Mobile Networks

Chapter 7. Wireless and Mobile Networks 7-1

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

Lecture 15 Wireless and Mobility

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

Chapter 6 Wireless and Mobile Networks

Wireless Security Background

Chapter 3: Wireless and Mobile Networks

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

CMPE 257: Wireless and Mobile Networking

Chapter 5 Link Layer and LANs

MSIT 413: Wireless Technologies Week 8

Chapter 6 Wireless and Mobile Networks (Wireless and Mobility)

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

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

Chapter 6 Wireless and Mobile Networks

Multiple Access Links and Protocols

CMPE 257: Wireless and Mobile Networking

Wireless LANs. ITS 413 Internet Technologies and Applications

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

Mohammad Hossein Manshaei 1393

Lecture 16: QoS and "

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

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

Chapter 5: The Data Link Layer

Wireless Local Area Networks. Networks: Wireless LANs 1

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

Chapter 6 Medium Access Control Protocols and Local Area Networks

Overview : Computer Networking. Spectrum Use Comments. Spectrum Allocation in US Link layer challenges and WiFi WiFi

Mobile & Wireless Networking. Lecture 7: Wireless LAN

Data Communications. Data Link Layer Protocols Wireless LANs

Wireless Protocols. Training materials for wireless trainers

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

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

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

Computer Networks. Wireless LANs

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

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. Fall 2018 CMSC417 Set 1 1

Data and Computer Communications. Chapter 13 Wireless LANs

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

Introduction to Wireless Networking. Communication without Wires

15-441: Computer Networking. Wireless Networking

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

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

Local Area Networks NETW 901

Transcription:

Last Lecture: Data Link Layer 1. Design goals and issues 2. (More on) Error Control and Detection 3. Multiple Access Control (MAC) 4. Ethernet, LAN Addresses and ARP 5. Hubs, Bridges, Switches 6. Wireless LANs 7. WLAN Security 8. Mobile Networking SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 1

This Lecture: Data Link Layer 1. Design goals and issues 2. (More on) Error Control and Detection 3. Multiple Access Control (MAC) 4. Ethernet, LAN Addresses and ARP 5. Hubs, Bridges, Switches 6. Wireless LANs 7. WLAN Security 8. Mobile Networking SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 2

Brief Introduction to Wireless Networks network infrastructure wireless hosts laptop, PDA, IP phone run applications may be stationary (nonmobile) or mobile wireless does not always mean mobility SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 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 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 4

Elements of a wireless network 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 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 5

Characteristics of selected wireless link standards 200 802.11n Data rate (Mbps) 54 5-11 4 1.384 802.15 802.11a,g 802.11b 802.11a,g point-to-point 802.16 (WiMAX) UMTS/WCDMA-HSPDA, CDMA2000-1xEVDO UMTS/WCDMA, CDMA2000 3G data 3G cellular enhanced.056 IS-95, CDMA, GSM 2G Indoor 10-30m Outdoor 50-200m Mid-range outdoor 200m 4 Km Long-range outdoor 5Km 20 Km SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 6

Elements of a wireless network network infrastructure infrastructure mode base station connects mobiles into wired network handoff: mobile changes base station providing connection into wired network SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 7

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 network: route among themselves SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 8

Wireless Networks Taxonomy Infrastructure-based Single hop Base station connected to larger wired network (e.g., WiFi wireless LAN, and cellular telephony networks) Multi-hop Base station exists, but some nodes must relay through other nodes (e.g., wireless sensor networks, and wireless mesh networks) Infrastructure-less No wired network; one node coordinates the transmissions of the others (e.g., Bluetooth, and ad hoc 802.11) No base station exists, and some nodes must relay through others (e.g., mobile ad hoc networks, like vehicular ad hoc networks) SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 9

Going Wireless: Widespread Deployment Worldwide cellular subscribers 1993: 34 million 2005: more than 2 billion 2009: more than 4 billion More than landline subscribers Wireless LANs Wireless adapters built in to most laptops, and even PDAs > 286,000 known WiFi locations in > 134 countries Probably many, many more (e.g., home networks, corporate networks, ) http://www.economist.com/daily/chartgallery/displaystory.cfm?story_id=14896700 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 10

Everyone on earth has a cell phone? In 10 years or so http://www.economist.com/specialreports/displaystory.cfm?story_id=14483856 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 11

Wifi Hotspots Everywhere http://www.economist.com/daily/chartgallery/displaystory.cfm?story_id=14896700 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 12

Wireless Networking: Challenges Wireless links: unique link characteristics High, time-varying bit-error rate Broadcast where some nodes can t hear each other Mobility: addressing and routing challenges Keeping track of the host s changing attachment point Maintaining a data transfer as the host moves We only have time for one specific example: Wireless: 802.11 wireless LAN (aka WiFi ) SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 13

Wireless Links: High Bit Error Rate (BER) Decreasing signal strength Disperses as it travels greater distance Attenuates as it passes through matter SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 14

Wireless Links: High Bit Error Rate Interference from other sources Radio sources in same frequency band E.g., 2.4 GHz wireless phone interferes with 802.11b wireless LAN Electromagnetic noise (e.g., microwave oven) SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 15

Wireless Links: High Bit Error Rate Multi-path propagation Electromagnetic waves reflect off objects Taking many paths of different lengths Causing blurring of signal at the receiver receiver transmitter SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 16

Dealing With Bit Errors Wireless vs. wired links Wired: most loss is due to congestion Wireless: higher, time-varying bit-error rate Dealing with high bit-error rates Sender could increase transmission power Requires more energy (bad for battery-powered hosts) Creates more interference with other senders Stronger error detection and recovery More powerful error detection codes Link-layer retransmission of corrupted frames SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 17

Wireless Links: Broadcast Limitations Wired broadcast links E.g., Ethernet bridging, in wired LANs All nodes receive transmissions from all other nodes Wireless broadcast: hidden terminal problem C o A and B hear each other o B and C hear each other o But, A and C do not A B So, A and C are unaware of their interference at B. SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 18

Wireless Links: Broadcast Limitations Wired broadcast links E.g., Ethernet bridging, in wired LANs All nodes receive transmissions from all other nodes Wireless broadcast: fading over distance A B C A s signal strength C s signal strength o A and B hear each other o B and C hear each other o But, A and C do not So, A and C are unaware of their interference at B. space SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 19

IEEE 802.11 Wireless LAN 802.11b 2.4-5 GHz unlicensed spectrum up to 11 Mbps direct sequence spread spectrum (DSSS) in physical layer all hosts use same chipping code 802.11a 802.11g 5-6 GHz range up to 54 Mbps 2.4-5 GHz range up to 54 Mbps 802.11n: multiple antennae 2.4-5 GHz range up to 200 Mbps o o all use CSMA/CA for multiple access all have base-station and ad-hoc network versions SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 20

802.11 WLAN Architecture AP Internet hub, switch or router Access Point (AP) Base station that communicates with the wireless hosts Basic Service Set (BSS) Coverage of one AP AP acts as the master Identified by a network name known as an SSID BSS 1 AP BSS 2 SSID: Service Set Identifier SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 21

Channels and Association 802.11b: 2.4GHz-2.485GHz spectrum divided into 11 channels at different frequencies Network administrator chooses frequency for AP Interference if channel is same as neighboring AP Access points send periodic beacon frames Containing AP s name (SSID) and MAC address Host scans channels, listening for beacon frames Host selects an access point to associate with o Beacon frames from APs o Associate request from host o Association response from AP SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 22

802.11: Passive/Active scanning BBS 1 BBS 2 BBS 1 BBS 2 AP 1 1 2 1 3 AP 2 AP 1 2 1 2 3 4 AP 2 H1 H1 Passive Scanning: (1) beacon frames sent from APs (2) association Request frame sent: H1 to selected AP (3) association Response frame sent: H1 to selected AP Active Scanning: (1) Probe Request frame broadcast from H1 (2) Probes response frame sent from APs (3) Association Request frame sent: H1 to selected AP (4) Association Response frame sent: H1 to selected AP SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 23

IEEE 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 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 24

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 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 25

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! SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 26

Collision Avoidance: RTS-CTS exchange A AP B RTS(A) RTS(A) reservation collision RTS(B) CTS(A) CTS(A) DATA (A) defer time ACK(A) ACK(A) SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 27

Wireless Router in Your Home www.yahoo.com Cable modem Internet Wireless router portal Your neighbor channel 6 ESS2/BSS2 ESS1/BSS1 AP channel 1 NAT Router SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 28

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 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 29

802.11 frame: addressing H1 R1 router Internet AP R1 MAC addr H1 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 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 30

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 Type Subtype To AP From AP More frag 1 1 Power Retry mgt More data WEP Rsvd frame type (RTS, CTS, ACK, data) SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 31

Mobility Within the Same Subnet H1 remains in same IP subnet IP address of the host can remain same Ongoing data transfers can continue uninterrupted H1 recognizes the need to change H1 detects a weakening signal Starts scanning for stronger one Changes APs with same SSID router hub or switch H1 disassociates from one And associates with other Switch learns new location BBS 1 AP 1 AP 2 Self-learning mechanism H1 BBS 2 SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 32

Conclusions Wireless Already a major way people connect to the Internet Gradually becoming more than just an access network Mobility Today s users tolerate disruptions as they move and applications try to hide the effects Tomorrow s users expect seamless mobility Challenges the design of network protocols Wireless breaks the abstraction of a link, and the assumption that packet loss implies congestion Mobility breaks association of address and location Higher-layer protocols don t perform as well SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 33