Wireless LAN <ul><li>Characteristics </li></ul><ul><li>IEEE 802.11 </li></ul><ul><ul><li>PHY </li></ul></ul><ul><ul><li>MA...
Wireless LAN Components <ul><li>The WLAN has the following configuration: </li></ul><ul><li>Access Point : </li></ul><ul><...
Software and HW Access Point HW Access Point
SW Access Point - Advantages <ul><li>does not limit the type or number of network interfaces you use.  </li></ul><ul><li>a...
Range of Access Point <ul><li>Typical indoor ranges are 150-300 feet, but can be shorter if the building construction inte...
No. of users on an Access Point   <ul><li>This depends upon the manufacturer. Some hardware access points have a recommend...
Multiple Access Points <ul><li>multiple access points can be connected to a wired LAN, or sometimes even to a second wirel...
Extension Point
Roaming
Roaming <ul><li>A wireless computer can &quot;roam&quot; from one access point to another, with the software and hardware ...
LAN to LAN Wireless Communication Each Access  Point acts as a Router or Bridge to connect  its own LAN to the wireless ne...
Mobile Communication Technology according to IEEE Local wireless  networks WLAN  802.11 802.11a 802.11b 802.11i/e/…/w 802....
Characteristics of wireless LANs <ul><li>Advantages </li></ul><ul><ul><li>very flexible within the reception area  </li></...
Design goals for wireless LANs <ul><ul><li>global, seamless operation </li></ul></ul><ul><ul><li>low power for battery use...
Comparison: infrared vs. radio transmission <ul><li>Infrared </li></ul><ul><ul><li>uses IR diodes, diffuse light, multiple...
Paper : An Adhoc Network system based on Infra Red Communication <ul><li>The network should solve the following problems: ...
Comparison: infrared vs. radio transmission <ul><li>Radio </li></ul><ul><ul><li>typically using the license free ISM band ...
Comparison: infrastructure vs. ad-hoc networks Infrastructure  network ad-hoc network AP AP AP wired network AP: Access Po...
Comparison: infrastructure vs. ad-hoc networks <ul><li>A very good coordination is required between the medium access of w...
Complexity with Adhoc Networks <ul><li>Each node has to implement : </li></ul><ul><ul><li>Medium Access </li></ul></ul><ul...
802.11 - Architecture of an infrastructure network <ul><li>Station (STA) </li></ul><ul><ul><li>terminal with access mechan...
802.11 - Architecture of an infrastructure network <ul><li>ESS has its own ESSID  </li></ul><ul><li>ESSID distinguishes di...
802.11 - Architecture of an ad-hoc network <ul><li>Direct communication within a limited range </li></ul><ul><ul><li>Stati...
IEEE standard 802.11 mobile terminal access point fixed terminal application TCP 802.11 PHY 802.11 MAC IP 802.3 MAC 802.3 ...
802.11 - Layers and functions <ul><li>PLCP  Physical Layer Convergence Protocol </li></ul><ul><ul><li>clear channel assess...
802.11 – Physical Layer <ul><li>Physical Layer  </li></ul><ul><li>PLCP : Physical Layer Convergence Protocol </li></ul><ul...
802.11 Management Layer <ul><li>MAC Management Provides: </li></ul><ul><li>Association and re-associaltion of a station to...
802.11 - Physical layer (classical) <ul><li>3 versions: 2 radio (typ. 2.4 GHz), 1 IR </li></ul><ul><ul><li>data rates 1 or...
FHSS PHY packet format synchronization SFD PLW PSF HEC payload PLCP preamble PLCP header 80 16 12 4 16 variable bits <ul><...
DSSS PHY packet format <ul><li>Synchronization </li></ul><ul><ul><li>synch., gain setting, energy detection, frequency off...
PHY : DSSS Sync  SFD  signal  service  length  HEC  Payload 128  16  8  8  16  16  Variable Uses 11-chip Barker Code : +1 ...
802.11 - MAC layer I – DFWMAC (Distributed Foundation Wireless Medium Access) <ul><li>Traffic services </li></ul><ul><ul><...
Medium Access Medium Busy  Contention  next frame Time DIFS Direct Access if “Medium is Free” >= DIFS DIFS PIFS SIFS Short...
Medium Access <ul><li>Priorities </li></ul><ul><ul><li>defined through different inter frame spaces </li></ul></ul><ul><ul...
Basic DFWMAC-DFC using CSMA/CA Medium Busy Next Frame DIFS Slot time Contention window <ul><li>A mobile device waits for D...
Basic DFWMAC-DFC using CSMA/CA <ul><li>ISSUE WITH THE ABOVE SCHEME: </li></ul><ul><li>A node will not have a priority once...
Medium Access Priorities <ul><li>Short Interframe Spacing (SIFS)  : Highest priority, acks, polling responses </li></ul><u...
802.11 - competing stations - simple version(for broadcast) t busy bo e station 1 station 2 station 3 station 4 station 5 ...
802.11 - competing stations - simple version <ul><li>St-3 has the first request and sends the packet. St-3 senses the medi...
802.11 - competing stations - simple version <ul><li>Stn-2 gets an access since its backoff time is the least. </li></ul><...
802.11 - competing stations - simple version <ul><li>Problem with this scheme: </li></ul><ul><li>If the contention window ...
802.11 - CSMA/CA access method II (for unicast) t SIFS DIFS data ACK waiting time other stations receiver sender data DIFS...
802.11 – DFWMAC Hidden Terminal Avoidance using  RTS & CTS) t SIFS DIFS data ACK defer access other stations receiver send...
Fragmentation <ul><li>If frames of larger sizes are transported, any bit error will corrupt the entire frame and so, frame...
Fragmentation t SIFS DIFS data ACK 1 other stations receiver sender frag 1 DIFS contention RTS CTS SIFS SIFS NAV (RTS) NAV...
Fragmentation <ul><li>While transmitting frag1, one more duration is also transmitted corresponding to the duration of the...
DFWMAC-PCF I PIFS stations‘ NAV wireless stations point  coordinator D 1 U 1 SIFS NAV SIFS D 2 U 2 SIFS SIFS SuperFrame t ...
DFWMAC-PCF I (Point Coordination Function -Polling) <ul><li>To achieve a time bounded service, the PCF  is used on top of ...
DFWMAC-PCF I (Point Coordination Function -Polling) <ul><li>The Process of polling with PCF is exactly like TDMA where all...
DFWMAC-PCF II t stations‘ NAV wireless stations point  coordinator D 3 NAV PIFS D 4 U 4 SIFS SIFS CF end contention period...
802.11 - Frame format Frame Control Duration/ ID Address 1 Address 2 Address 3 Sequence Control Address 4 Data CRC 2 2 6 6...
802.11 - Frame format <ul><li>Frame control : 2 bytes </li></ul><ul><li>Protocol ver : 2 bits, starts from zero </li></ul>...
802.11 - Frame format <ul><li>Sequence Control : 2 Bytes </li></ul><ul><li>Used to filter duplicates </li></ul><ul><li>Dat...
802.11 - Frame format <ul><li>Address 1: Physical receiver of the frame </li></ul><ul><li>Address 2: Physical transmitter ...
802.11 - Frame format <ul><li>Power Management   </li></ul><ul><li>0 : Stn is in stand-by mode </li></ul><ul><li>1 : stn s...
MAC address format DS: Distribution System AP: Access Point DA: Destination Address SA: Source Address BSSID: Basic Servic...
Special Frames: ACK, RTS, CTS <ul><li>Acknowledgement </li></ul><ul><li>Request To Send </li></ul><ul><li>Clear To Send </...
802.11 - MAC management <ul><li>Synchronization </li></ul><ul><ul><li>try to find a LAN, try to stay within a LAN </li></u...
Synchronization using a Beacon (infrastructure) beacon interval t medium access point busy B busy busy busy B B B value of...
Synchronization using a Beacon (infrastructure) <ul><li>802.11 specifies a Timing and Synchronization Function (TSF). It i...
Synchronization using a Beacon (ad-hoc) t medium station 1 busy B 1 beacon interval busy busy busy B 1 value of the timest...
Synchronization using a Beacon (ad-hoc) <ul><li>No Access Point </li></ul><ul><li>Each node maintains a sync timer and sta...
Power management <ul><li>Idea: switch the transceiver off if not needed </li></ul><ul><li>States of a station: sleep and a...
Power saving with wake-up patterns (infrastructure) .........Only One Station Shown........... TIM interval t medium acces...
Power saving with wake-up patterns (infrastructure) <ul><li>All stations wake up prior to TIM/DTIM. </li></ul><ul><li>CASE...
Power saving with wake-up patterns (ad-hoc) awake D transmit data t station 1 B 1 B 1 B beacon frame station 2 B 2 B 2 ran...
Power saving with wake-up patterns (ad-hoc) <ul><li>Each participating station has to buffer the data since access points ...
Upcoming SlideShare
Loading in...5
×

Lecture 13

4,679

Published on

mobile communication

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
4,679
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
249
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lecture 13

  1. 1. Wireless LAN <ul><li>Characteristics </li></ul><ul><li>IEEE 802.11 </li></ul><ul><ul><li>PHY </li></ul></ul><ul><ul><li>MAC </li></ul></ul><ul><ul><li>Roaming </li></ul></ul><ul><ul><li>.11a, b, g, h, i … </li></ul></ul><ul><li>HIPERLAN </li></ul><ul><li>Bluetooth / IEEE 802.15.x </li></ul><ul><li>IEEE 802.16/.20/.21/.22 </li></ul><ul><li>RFID </li></ul><ul><li>Comparison </li></ul>
  2. 2. Wireless LAN Components <ul><li>The WLAN has the following configuration: </li></ul><ul><li>Access Point : </li></ul><ul><ul><li>Connects to the wired network from a fixed location via an Ethernet cable </li></ul></ul><ul><ul><li>Receives, transmits information from mobile devices such as laptops, PDAs etc and the wired infrastructure network. </li></ul></ul><ul><ul><li>A single access point can function anywhere in the range of 30 metres to several hundred feet. </li></ul></ul><ul><ul><li>WLAN Adapters: </li></ul></ul><ul><ul><li>The mobile devices communicate with the operating system via the WLAN Adapters(radio Network Interface Cards NIC), ISA or PCA adapters for desk top computers. </li></ul></ul>
  3. 3. Software and HW Access Point HW Access Point
  4. 4. SW Access Point - Advantages <ul><li>does not limit the type or number of network interfaces you use. </li></ul><ul><li>allows considerable flexibility in providing access to different network types, such as different types of Ethernet, Wireless and Token Ring networks. </li></ul>
  5. 5. Range of Access Point <ul><li>Typical indoor ranges are 150-300 feet, but can be shorter if the building construction interferes with radio transmissions. Longer ranges are possible, but performance will degrade with distance. </li></ul><ul><li>Outdoor ranges are quoted up to 1000 feet, but again this depends upon the environment. </li></ul><ul><li>There are ways to extend the basic operating range of Wireless communications, by using more than a single access point or using a wireless relay /extension point </li></ul>
  6. 6. No. of users on an Access Point <ul><li>This depends upon the manufacturer. Some hardware access points have a recommended limit of 10, with other more expensive access points supporting up to 100 wireless connections. Using more computers than recommended will cause performance and reliability to suffer. </li></ul><ul><li>Software access points may also impose user limitations, but this depends upon the specific software, and the host computer's ability to process the required information. </li></ul>
  7. 7. Multiple Access Points <ul><li>multiple access points can be connected to a wired LAN, or sometimes even to a second wireless LAN if the access point supports this. </li></ul><ul><li>In most cases, separate access points are interconnected via a wired LAN, providing wireless connectivity in specific areas such as offices or classrooms, but connected to a main wired LAN for access to network resources, such as file servers. </li></ul>
  8. 8. Extension Point
  9. 9. Roaming
  10. 10. Roaming <ul><li>A wireless computer can &quot;roam&quot; from one access point to another, with the software and hardware maintaining a steady network connection by monitoring the signal strength from in-range access points and locking on to the one with the best quality. Usually this is completely transparent to the user; they are not aware that a different access point is being used from area to area. Some access point configurations require security authentication when swapping access points, usually in the form of a password dialog box. </li></ul><ul><li>Access points are required to have overlapping wireless areas to achieve this </li></ul><ul><li>*** NOT ALL ACCESS POINTS SUPPORT ROAMING </li></ul>
  11. 11. LAN to LAN Wireless Communication Each Access Point acts as a Router or Bridge to connect its own LAN to the wireless network
  12. 12. Mobile Communication Technology according to IEEE Local wireless networks WLAN 802.11 802.11a 802.11b 802.11i/e/…/w 802.11g WiFi 802.11h 802.15.4 802.15.1 802.15.2 Bluetooth 802.15.4a/b ZigBee 802.15.3 802.20 (Mobile Broadband Wireless Access) + Mobility WiMAX 802.15.3a/b 802.15.5
  13. 13. Characteristics of wireless LANs <ul><li>Advantages </li></ul><ul><ul><li>very flexible within the reception area </li></ul></ul><ul><ul><li>Ad-hoc networks without previous planning possible </li></ul></ul><ul><ul><li>(almost) no wiring difficulties (e.g. historic buildings, firewalls) </li></ul></ul><ul><ul><li>more robust against disasters like, e.g., earthquakes, fire - or users pulling a plug... </li></ul></ul><ul><li>Disadvantages </li></ul><ul><ul><li>typically very low bandwidth compared to wired networks (1-10 Mbit/s) due to shared medium </li></ul></ul><ul><ul><li>many proprietary solutions, especially for higher bit-rates, standards take their time (e.g. IEEE 802.11) </li></ul></ul><ul><ul><li>products have to follow many national restrictions if working wireless, it takes a vary long time to establish global solutions like, e.g., IMT-2000 </li></ul></ul>
  14. 14. Design goals for wireless LANs <ul><ul><li>global, seamless operation </li></ul></ul><ul><ul><li>low power for battery use </li></ul></ul><ul><ul><li>no special permissions or licenses needed to use the LAN </li></ul></ul><ul><ul><li>robust transmission technology </li></ul></ul><ul><ul><li>simplified spontaneous cooperation at meetings </li></ul></ul><ul><ul><li>easy to use for everyone, simple management </li></ul></ul><ul><ul><li>protection of investment in wired networks </li></ul></ul><ul><ul><li>security (no one should be able to read my data), privacy (no one should be able to collect user profiles), safety (low radiation) </li></ul></ul><ul><ul><li>transparency concerning applications and higher layer protocols, but also location awareness if necessary </li></ul></ul>
  15. 15. Comparison: infrared vs. radio transmission <ul><li>Infrared </li></ul><ul><ul><li>uses IR diodes, diffuse light, multiple reflections (walls, furniture etc.). Photo diodes act as receivers. </li></ul></ul><ul><li>Advantages </li></ul><ul><ul><li>simple, cheap, available in many mobile devices </li></ul></ul><ul><ul><li>no licenses needed </li></ul></ul><ul><ul><li>simple shielding possible </li></ul></ul><ul><li>Disadvantages </li></ul><ul><ul><li>interference by sunlight, heat sources etc. </li></ul></ul><ul><ul><li>many things shield or absorb IR light </li></ul></ul><ul><ul><li>low bandwidth </li></ul></ul><ul><li>Example </li></ul><ul><ul><li>IrDA (Infrared Data Association) interface available everywhere </li></ul></ul>
  16. 16. Paper : An Adhoc Network system based on Infra Red Communication <ul><li>The network should solve the following problems: </li></ul><ul><li>Route maintenance </li></ul><ul><li>How to maintain routes between the mobile hosts. </li></ul><ul><li>Host enumeration </li></ul><ul><li>How to count up (and identify) the partici- </li></ul><ul><li>pants(mobile hosts) of the network. </li></ul>
  17. 17. Comparison: infrared vs. radio transmission <ul><li>Radio </li></ul><ul><ul><li>typically using the license free ISM band at 2.4 GHz </li></ul></ul><ul><li>Advantages </li></ul><ul><ul><li>experience from wireless WAN and mobile phones can be used </li></ul></ul><ul><ul><li>coverage of larger areas possible (radio can penetrate walls, furniture etc.) </li></ul></ul><ul><li>Disadvantages </li></ul><ul><ul><li>very limited license free frequency bands </li></ul></ul><ul><ul><li>shielding more difficult, interference with other electrical devices </li></ul></ul><ul><li>Example </li></ul><ul><ul><li>Many different products </li></ul></ul>
  18. 18. Comparison: infrastructure vs. ad-hoc networks Infrastructure network ad-hoc network AP AP AP wired network AP: Access Point
  19. 19. Comparison: infrastructure vs. ad-hoc networks <ul><li>A very good coordination is required between the medium access of wireless nodes and access points. Else, collisions can occur (infrastructure networks) </li></ul><ul><li>If the access points control the medium access of individual terminals, collisions can be largely minimized. </li></ul>
  20. 20. Complexity with Adhoc Networks <ul><li>Each node has to implement : </li></ul><ul><ul><li>Medium Access </li></ul></ul><ul><ul><li>Mechanisms to handle hidden and exposed problems </li></ul></ul><ul><ul><li>Priority Mechanisms </li></ul></ul><ul><ul><li>Greatest Advantage : Flexibility in installation and configuration </li></ul></ul>
  21. 21. 802.11 - Architecture of an infrastructure network <ul><li>Station (STA) </li></ul><ul><ul><li>terminal with access mechanisms to the wireless medium and radio contact to the access point </li></ul></ul><ul><li>Basic Service Set (BSS) </li></ul><ul><ul><li>group of stations using the same radio frequency </li></ul></ul><ul><li>Access Point </li></ul><ul><ul><li>station integrated into the wireless LAN and the distribution system </li></ul></ul><ul><li>Portal </li></ul><ul><ul><li>bridge to other (wired) networks </li></ul></ul><ul><li>Distribution System </li></ul><ul><ul><li>interconnection network to form one logical network (EES: Extended Service Set) based on several BSS </li></ul></ul>802.x LAN Access Point 802.11 LAN BSS 2 802.11 LAN BSS 1 Access Point STA 1 STA 2 STA 3 ESS Distribution System Portal
  22. 22. 802.11 - Architecture of an infrastructure network <ul><li>ESS has its own ESSID </li></ul><ul><li>ESSID distinguishes different networks </li></ul><ul><li>If a node wants to participate in the network, it has to know the ESSID for WLAN communication. </li></ul><ul><li>The access points get connected to the network via </li></ul><ul><li>a portal. </li></ul><ul><li>IEEE 802.11f specifies the inter-Access Point communication protocols. </li></ul>
  23. 23. 802.11 - Architecture of an ad-hoc network <ul><li>Direct communication within a limited range </li></ul><ul><ul><li>Station (STA): terminal with access mechanisms to the wireless medium </li></ul></ul><ul><ul><li>Independent Basic Service Set (IBSS): group of stations using the same radio frequency </li></ul></ul>802.11 LAN IBSS 2 802.11 LAN IBSS 1 STA 1 STA 4 STA 5 STA 2 STA 3
  24. 24. IEEE standard 802.11 mobile terminal access point fixed terminal application TCP 802.11 PHY 802.11 MAC IP 802.3 MAC 802.3 PHY application TCP 802.3 PHY 802.3 MAC IP 802.11 MAC 802.11 PHY LLC infrastructure network LLC LLC
  25. 25. 802.11 - Layers and functions <ul><li>PLCP Physical Layer Convergence Protocol </li></ul><ul><ul><li>clear channel assessment signal (carrier sense) </li></ul></ul><ul><li>PMD Physical Medium Dependent </li></ul><ul><ul><li>modulation, coding </li></ul></ul><ul><li>PHY Management </li></ul><ul><ul><li>channel selection, MIB </li></ul></ul><ul><li>Station Management </li></ul><ul><ul><li>coordination of all management functions </li></ul></ul>PMD PLCP MAC LLC MAC Management PHY Management <ul><li>MAC </li></ul><ul><ul><li>access mechanisms, fragmentation, encryption </li></ul></ul><ul><li>MAC Management </li></ul><ul><ul><li>synchronization, roaming, MIB, power management </li></ul></ul>PHY DLC Station Management MIB : Management Information Base
  26. 26. 802.11 – Physical Layer <ul><li>Physical Layer </li></ul><ul><li>PLCP : Physical Layer Convergence Protocol </li></ul><ul><li>Provides carrier sense signal </li></ul><ul><li>Provides a common physical service access point(PSAP) independent of transmission technology </li></ul><ul><li>PMD (Physical Medium Dependent Sublayer) </li></ul><ul><li>Modulation </li></ul><ul><li>Encoding-Decoding </li></ul>
  27. 27. 802.11 Management Layer <ul><li>MAC Management Provides: </li></ul><ul><li>Association and re-associaltion of a station to an access point. </li></ul><ul><li>Roaming (handover) between access points. </li></ul><ul><li>Authentication </li></ul><ul><li>Encryption </li></ul><ul><li>Synchronization </li></ul><ul><li>Power Management </li></ul>
  28. 28. 802.11 - Physical layer (classical) <ul><li>3 versions: 2 radio (typ. 2.4 GHz), 1 IR </li></ul><ul><ul><li>data rates 1 or 2 Mbit/s </li></ul></ul><ul><li>FHSS (Frequency Hopping Spread Spectrum) </li></ul><ul><ul><li>spreading, despreading, signal strength, typ. 1 Mbit/s </li></ul></ul><ul><ul><li>min. 2.5 frequency hops/s (USA), two-level GFSK modulation </li></ul></ul><ul><li>DSSS (Direct Sequence Spread Spectrum) </li></ul><ul><ul><li>DBPSK modulation for 1 Mbit/s (Differential Binary Phase Shift Keying), DQPSK for 2 Mbit/s (Differential Quadrature PSK) </li></ul></ul><ul><ul><li>preamble and header of a frame is always transmitted with 1 Mbit/s, rest of transmission 1 or 2 Mbit/s </li></ul></ul><ul><ul><li>chipping sequence: +1, -1, +1, +1, -1, +1, +1, +1, -1, -1, -1 (Barker code) </li></ul></ul><ul><ul><li>max. radiated power 1 W (USA), 100 mW (EU), min. 1mW </li></ul></ul><ul><li>Infrared </li></ul><ul><ul><li>850-950 nm, diffuse light, typ. 10 m range </li></ul></ul><ul><ul><li>carrier detection, energy detection, synchronization </li></ul></ul>
  29. 29. FHSS PHY packet format synchronization SFD PLW PSF HEC payload PLCP preamble PLCP header 80 16 12 4 16 variable bits <ul><li>Synchronization </li></ul><ul><ul><li>synch with 010101... pattern </li></ul></ul><ul><li>SFD (Start Frame Delimiter) </li></ul><ul><ul><li>0000110010111101 start pattern </li></ul></ul><ul><li>PLW (PLCP_PDU Length Word) </li></ul><ul><ul><li>length of payload incl. 32 bit CRC of payload, PLW < 4096 </li></ul></ul><ul><li>PSF (PLCP Signaling Field) </li></ul><ul><ul><li>data rates of payload (1 or 2 Mbit/s) 0000 : 1 Mbps. </li></ul></ul><ul><ul><li>0010 : 1.5 Mbps (500 kbps granularity) </li></ul></ul><ul><li>HEC (Header Error Check) </li></ul><ul><ul><li>CRC with x 16 +x 12 +x 5 +1 </li></ul></ul>
  30. 30. DSSS PHY packet format <ul><li>Synchronization </li></ul><ul><ul><li>synch., gain setting, energy detection, frequency offset compensation </li></ul></ul><ul><li>SFD (Start Frame Delimiter) </li></ul><ul><ul><li>1111001110100000 </li></ul></ul><ul><li>Signal </li></ul><ul><ul><li>data rate of the payload (0A: 1 Mbit/s DBPSK; 14: 2 Mbit/s DQPSK) </li></ul></ul><ul><li>Service Length </li></ul><ul><ul><li>future use, 00: 802.11 compliant  length of the payload </li></ul></ul><ul><li>HEC (Header Error Check) </li></ul><ul><ul><li>protection of signal, service and length, x 16 +x 12 +x 5 +1 </li></ul></ul>synchronization SFD signal service HEC payload PLCP preamble PLCP header 128 16 8 8 16 variable bits length 16
  31. 31. PHY : DSSS Sync SFD signal service length HEC Payload 128 16 8 8 16 16 Variable Uses 11-chip Barker Code : +1 -1 +1 +1 -1 +1 +1 +1 -1 -1 -1 Start Frame Delimiter(SFD) : 1111001110100000 Signal : Data Rate of Payload 0x0A : 1Mbps; 0x14 : 2Mbps Service : Future use; 0x00 : indicates IEEE 802.11 compliant Length(16 bits) : Length of payload HEC; Header error check : CRC 16 polynomial for signal, service and length fields Payload
  32. 32. 802.11 - MAC layer I – DFWMAC (Distributed Foundation Wireless Medium Access) <ul><li>Traffic services </li></ul><ul><ul><li>Asynchronous Data Service (mandatory) </li></ul></ul><ul><ul><ul><li>exchange of data packets based on “best-effort” </li></ul></ul></ul><ul><ul><ul><li>support of broadcast and multicast </li></ul></ul></ul><ul><ul><li>Time-Bounded Service (optional) </li></ul></ul><ul><ul><ul><li>implemented using PCF (Point Coordination Function) </li></ul></ul></ul><ul><li>Access methods </li></ul><ul><ul><li>DFWMAC-DCF CSMA/CA (mandatory){Distributed Coordination Function} </li></ul></ul><ul><ul><ul><li>collision avoidance via randomized „back-off“ mechanism </li></ul></ul></ul><ul><ul><ul><li>minimum distance between consecutive packets </li></ul></ul></ul><ul><ul><ul><li>ACK packet for acknowledgements (not for broadcasts) </li></ul></ul></ul><ul><ul><li>DFWMAC-DCF w/ RTS/CTS (optional) </li></ul></ul><ul><ul><ul><li>Distributed Foundation Wireless MAC </li></ul></ul></ul><ul><ul><ul><li>avoids hidden terminal problem </li></ul></ul></ul><ul><ul><li>DFWMAC- PCF (Point Coordination Function-optional) </li></ul></ul><ul><ul><ul><li>access point polls terminals according to a list </li></ul></ul></ul>
  33. 33. Medium Access Medium Busy Contention next frame Time DIFS Direct Access if “Medium is Free” >= DIFS DIFS PIFS SIFS Short Interframe Spacing (SIFS) : Highest priority, acks, polling responses PCF Inter-frame spacing (PIFS): medium priority, time bounded service DCF Inter-frame Spacing (DIFS) : Asynchronous data service within a contention period – lowest priority
  34. 34. Medium Access <ul><li>Priorities </li></ul><ul><ul><li>defined through different inter frame spaces </li></ul></ul><ul><ul><li>no guaranteed, hard priorities </li></ul></ul><ul><ul><li>SIFS (Short Inter Frame Spacing) </li></ul></ul><ul><ul><ul><li>highest priority, for ACK, CTS, polling response </li></ul></ul></ul><ul><ul><li>PIFS (PCF IFS) </li></ul></ul><ul><ul><ul><li>medium priority, for time-bounded service using PCF </li></ul></ul></ul><ul><ul><li>DIFS (DCF, Distributed Coordination Function IFS) </li></ul></ul><ul><ul><ul><li>lowest priority, for asynchronous data service </li></ul></ul></ul>t medium busy SIFS PIFS DIFS DIFS next frame contention direct access if medium is free  DIFS
  35. 35. Basic DFWMAC-DFC using CSMA/CA Medium Busy Next Frame DIFS Slot time Contention window <ul><li>A mobile device waits for DIFS and if the medium is free after DIFS, it accesses the medium. So, the medium is busy. </li></ul><ul><li>Once the above device releases the resources in the medium, it waits for DIFS. The contention period starts. A few devices start their random back off timer and the countdown of the timers start. </li></ul><ul><li>whichever device that completes the timer back off time first will get access to the medium. </li></ul><ul><li>As soon as the device senses that the medium is busy, it loses the chance for this cycle and has to try after DIFS duration. </li></ul><ul><li>Now, the backoff time is initialized for the rest of the devices and they start all over again after DIFS. </li></ul>DIFS
  36. 36. Basic DFWMAC-DFC using CSMA/CA <ul><li>ISSUE WITH THE ABOVE SCHEME: </li></ul><ul><li>A node will not have a priority once it has lost the chance. Irrespective of the amount of wait in the last cycle, it has to start all over again. </li></ul>
  37. 37. Medium Access Priorities <ul><li>Short Interframe Spacing (SIFS) : Highest priority, acks, polling responses </li></ul><ul><li>PCF Inter-frame spacing (PIFS): medium priority, time bounded service </li></ul><ul><li>DCF Inter-frame Spacing (DIFS) : Asynchronous data service within a contention period – lowest priority </li></ul>
  38. 38. 802.11 - competing stations - simple version(for broadcast) t busy bo e station 1 station 2 station 3 station 4 station 5 packet arrival at MAC DIFS bo e bo e bo e busy elapsed backoff time bo r residual backoff time busy medium not idle (frame, ack etc.) bo r bo r DIFS bo e bo e bo e bo r DIFS busy busy DIFS bo e busy bo e bo e bo r bo r
  39. 39. 802.11 - competing stations - simple version <ul><li>St-3 has the first request and sends the packet. St-3 senses the medium, waits for DIFS and accesses the medium. </li></ul><ul><li>Stns 1,2 & 5 have to wait for at least DIFS after Stn-3 stops sending the data. </li></ul><ul><li>All three stations now start off a back off timer and start counting down their back off timers. </li></ul><ul><li>Back off time = Elapsed back off time </li></ul><ul><li>+ residual back off time. </li></ul><ul><li>@@ It is to be noted that if the residual time of device-1 is more than that of device-2, it means that device-1 had waited for a lesser time as compared to device-2 and so, device-2 gets a priority to access the medium. </li></ul>
  40. 40. 802.11 - competing stations - simple version <ul><li>Stn-2 gets an access since its backoff time is the least. </li></ul><ul><li>The back off timers for Stns 1 & 5 stop and stns store residual backoff times. </li></ul><ul><li>Now Stn 4 wants to access the medium. In all, three stans are trying to acess the medium. </li></ul><ul><li>Since 4 & 5 have the same backoff time, they result in collision. Transmitted Frames are destroyed </li></ul><ul><li>Stn-1 finally gets access to the medium. </li></ul><ul><li>Stns 4 & 5 still have to contend in the next cycle. </li></ul>
  41. 41. 802.11 - competing stations - simple version <ul><li>Problem with this scheme: </li></ul><ul><li>If the contention window is small, too many stns will contend and so, collisions will be substantial. </li></ul><ul><li>If the contention window is larger, there will be noticeable delays. </li></ul>
  42. 42. 802.11 - CSMA/CA access method II (for unicast) t SIFS DIFS data ACK waiting time other stations receiver sender data DIFS contention <ul><li>Sending unicast packets </li></ul><ul><ul><li>station has to wait for DIFS before sending data </li></ul></ul><ul><ul><li>receivers acknowledge at once (after waiting for SIFS) if the packet was received correctly (CRC) </li></ul></ul><ul><ul><li>automatic retransmission of data packets in case of transmission errors (No ACK is sent) </li></ul></ul><ul><ul><li>But sender has to wait for the medium access. No special privileges for retransmitted data. </li></ul></ul><ul><ul><li>No. of retransmissions are limited. </li></ul></ul>
  43. 43. 802.11 – DFWMAC Hidden Terminal Avoidance using RTS & CTS) t SIFS DIFS data ACK defer access other stations receiver sender data DIFS contention RTS CTS SIFS SIFS NAV (RTS) NAV (CTS) <ul><li>Sending unicast packets </li></ul><ul><ul><li>station can send RTS with reservation parameter after waiting for DIFS (RTS specifies receiver’s Id, amount of time needed for transmission of data and also time for ACK ) </li></ul></ul><ul><ul><li>acknowledgement via CTS after SIFS by receiver (if ready to receive) (all stns receive this) </li></ul></ul><ul><ul><li>sender can now send data at once, acknowledgement via ACK </li></ul></ul><ul><ul><li>other stations store medium reservations distributed via RTS and CTS. Other stns have to set ‘Net allocation Vector(NAV)’ (contained in CTS) that specifies how long they need to wait before trying again for transmission. </li></ul></ul>
  44. 44. Fragmentation <ul><li>If frames of larger sizes are transported, any bit error will corrupt the entire frame and so, frame errors increase. </li></ul><ul><li>Hence, it is advantageous to consider shorter frame lengths so as to minimize frame errors. </li></ul>
  45. 45. Fragmentation t SIFS DIFS data ACK 1 other stations receiver sender frag 1 DIFS contention RTS CTS SIFS SIFS NAV (RTS) NAV (CTS) NAV (frag 1 ) NAV (ACK 1 ) SIFS ACK 2 frag 2 SIFS
  46. 46. Fragmentation <ul><li>While transmitting frag1, one more duration is also transmitted corresponding to the duration of the following fragment and the acknowledgement. </li></ul><ul><li>Thus the medium is reserved for the following fragment(frag-2) </li></ul><ul><li>Other nodes which receive this will adjust their NAV </li></ul><ul><li>If there is no network change (static network), the set of nodes receiving this duration is the same as that indicated in the original RTS control packet. </li></ul><ul><li>Because of mobility, this is not the case in most situations. </li></ul><ul><li>The receiver will receive frag1 and send an ACK1 that contains duration of the net fragment transmission. </li></ul><ul><li>The other set of nodes will adjust their NAV </li></ul><ul><li>Thus, the current fragments would contain info about the following ones. </li></ul>
  47. 47. DFWMAC-PCF I PIFS stations‘ NAV wireless stations point coordinator D 1 U 1 SIFS NAV SIFS D 2 U 2 SIFS SIFS SuperFrame t 0 medium busy t 1
  48. 48. DFWMAC-PCF I (Point Coordination Function -Polling) <ul><li>To achieve a time bounded service, the PCF is used on top of the DCF. It requires an access point. The access point splits time into super frame periods. </li></ul><ul><li>Super Frame : contention-free period </li></ul><ul><li>+ contention period. </li></ul><ul><li>In the scheme above, contention-free period should ideally start at to. But the medium is busy till t1. </li></ul><ul><li>Actually, PCF has to wait for PIFS before accessing the medium. As PIFS is less than DIFS, no other stn can send the data earlier than PCF. </li></ul><ul><li>PCF sends data to stn-1(polling starts) </li></ul><ul><li>Stn-1 responds after SIFS. </li></ul><ul><li>After waiting for SIFS, the PCF sends data to Stn-2. Stn-2 answers with U2. </li></ul><ul><li>Polling continues for D3 but D3 has no data. </li></ul><ul><li>Finally, after polling all stns, the PCF can send a ‘End Marker (CFend) indicating that the contention period can start all over. </li></ul><ul><li>Using PCF automatically sets NAV and prevents other stns from sending data. </li></ul>
  49. 49. DFWMAC-PCF I (Point Coordination Function -Polling) <ul><li>The Process of polling with PCF is exactly like TDMA where all users get a fair and equal chance to send data. </li></ul><ul><li>If a node does not send data, it is an overhead. </li></ul>
  50. 50. DFWMAC-PCF II t stations‘ NAV wireless stations point coordinator D 3 NAV PIFS D 4 U 4 SIFS SIFS CF end contention period contention free period t 2 t 3 t 4
  51. 51. 802.11 - Frame format Frame Control Duration/ ID Address 1 Address 2 Address 3 Sequence Control Address 4 Data CRC 2 2 6 6 6 6 2 4 0-2312 bytes Protocol version Type Subtype To DS More Frag Retry Power Mgmt More Data WEP 2 2 4 1 From DS 1 Order bits 1 1 1 1 1 1 <ul><li>Types </li></ul><ul><ul><li>control frames, management frames, data frames </li></ul></ul><ul><li>Sequence numbers </li></ul><ul><ul><li>important against duplicated frames due to lost ACKs </li></ul></ul><ul><li>Addresses </li></ul><ul><ul><li>receiver, transmitter (physical), BSS identifier, sender (logical) </li></ul></ul><ul><li>Miscellaneous </li></ul><ul><ul><li>sending time, checksum, frame control, data </li></ul></ul>
  52. 52. 802.11 - Frame format <ul><li>Frame control : 2 bytes </li></ul><ul><li>Protocol ver : 2 bits, starts from zero </li></ul><ul><li>Type : 2 bits (00: Management, 01: control, 10: Data, 11: Reserved) </li></ul><ul><li>Sub types: Ex., management functions </li></ul><ul><li>0000 : Association request </li></ul><ul><li>1000 : Beacon </li></ul><ul><li>1011 : RTS </li></ul><ul><li>1100 : CTS </li></ul><ul><li>Duration ID : 2 Bytes </li></ul><ul><li>period for which the medium is occupied(used for setting NAV) </li></ul><ul><li>Addresses 1 to 4:contain MAC addresses (to address later) </li></ul>
  53. 53. 802.11 - Frame format <ul><li>Sequence Control : 2 Bytes </li></ul><ul><li>Used to filter duplicates </li></ul><ul><li>Data : 0 to 2312 bytes </li></ul><ul><li>Checksum(CRC) : 32 bits </li></ul><ul><li>To protect from frame errors </li></ul><ul><li>To DS/From DS </li></ul><ul><li>Shows How MAC frames are being transmitted. </li></ul>- DA Transmitter Address(TA) Receiver Address(RA) 1 1 - DA SA BSSID 0 1 - SA BSSID DA 1 0 - Basic Service Set Id (BSSID) Source Address (SA) Distribution address (DA) 0 0 Address 4 Address 3 Address 2 Address1 From DS To DS
  54. 54. 802.11 - Frame format <ul><li>Address 1: Physical receiver of the frame </li></ul><ul><li>Address 2: Physical transmitter of a frame </li></ul><ul><li>Addresses 3 & 4 : Logical assignment of frames. </li></ul><ul><li>More Fragments : </li></ul><ul><li>Set to 1 if more fragments are to follow. </li></ul><ul><li>RETRY </li></ul><ul><li>If the current frame is a duplicate because of retransmissions, this field is set to 1. </li></ul>
  55. 55. 802.11 - Frame format <ul><li>Power Management </li></ul><ul><li>0 : Stn is in stand-by mode </li></ul><ul><li>1 : stn stays active </li></ul><ul><li>More Data : </li></ul><ul><li>To indicate to the receiver that more data is to follow. </li></ul><ul><li>To indicate to the stns that are in sleep mode that more data is to follow. </li></ul><ul><li>To indicate to an access point that more polling is required. </li></ul><ul><li>Wired Equivalent Privacy (WEP) : </li></ul><ul><li>To indicate that standard 802.11 security algorithm is used. </li></ul><ul><li>Order : </li></ul><ul><li>If set to 1, frames have to be taken strictly in the same order that they are received. </li></ul>
  56. 56. MAC address format DS: Distribution System AP: Access Point DA: Destination Address SA: Source Address BSSID: Basic Service Set Identifier RA: Receiver Address TA: Transmitter Address
  57. 57. Special Frames: ACK, RTS, CTS <ul><li>Acknowledgement </li></ul><ul><li>Request To Send </li></ul><ul><li>Clear To Send </li></ul>Frame Control Duration Receiver Address Transmitter Address CRC 2 2 6 6 4 bytes Frame Control Duration Receiver Address CRC 2 2 6 4 bytes Frame Control Duration Receiver Address CRC 2 2 6 4 bytes ACK RTS CTS
  58. 58. 802.11 - MAC management <ul><li>Synchronization </li></ul><ul><ul><li>try to find a LAN, try to stay within a LAN </li></ul></ul><ul><ul><li>timer etc. </li></ul></ul><ul><li>Power management </li></ul><ul><ul><li>sleep-mode without missing a message </li></ul></ul><ul><ul><li>periodic sleep, frame buffering, traffic measurements </li></ul></ul><ul><li>Association/Reassociation </li></ul><ul><ul><li>integration into a LAN </li></ul></ul><ul><ul><li>roaming, i.e. change networks by changing access points </li></ul></ul><ul><ul><li>scanning, i.e. active search for a network </li></ul></ul><ul><li>MIB - Management Information Base </li></ul><ul><ul><li>All parameters concerning the present state of the wireless stn and access point are stored in MIB. These can be accessed via a protocol line SNMP. </li></ul></ul>
  59. 59. Synchronization using a Beacon (infrastructure) beacon interval t medium access point busy B busy busy busy B B B value of the timestamp B beacon frame
  60. 60. Synchronization using a Beacon (infrastructure) <ul><li>802.11 specifies a Timing and Synchronization Function (TSF). It is needed for PCF and for power management. </li></ul><ul><li>Needed for Synchronization of hopping sequence for all nodes etc. </li></ul><ul><li>Within a BSS, timing is conveyed by (quasi) periodic transmission of timing frame called “Beacon (contains time stamp and other management functions”. </li></ul><ul><li>Nodes need to hear the beacons and adjust the timing. But nodes need not adjust to every beacon. </li></ul><ul><li>If the medium is busy, access point may not be able to send the beacons on certain occasions. Beacon intervals are not shifted if a beacon is missed. </li></ul>
  61. 61. Synchronization using a Beacon (ad-hoc) t medium station 1 busy B 1 beacon interval busy busy busy B 1 value of the timestamp B beacon frame station 2 B 2 B 2 random delay
  62. 62. Synchronization using a Beacon (ad-hoc) <ul><li>No Access Point </li></ul><ul><li>Each node maintains a sync timer and starts sending to the rest of the nodes. </li></ul><ul><li>It uses a standard back-off algorithm and and only one beacon wins. </li></ul><ul><li>All other stns adjust their internal clock as per the received beacon. They suppress their beacons for this cycle. </li></ul><ul><li>If there is a collision, the beacon is lost. In this situation, beacon intervals can be slightly shifted and the following cycles synchronizes all stns. </li></ul>
  63. 63. Power management <ul><li>Idea: switch the transceiver off if not needed </li></ul><ul><li>States of a station: sleep and awake </li></ul><ul><li>Timing Synchronization Function (TSF) </li></ul><ul><ul><li>For sender, it is not an issue as the transmitter knows when it is ready for sending frames. </li></ul></ul><ul><ul><li>Transmitter has to buffer the frame to make sure that it will transmit when the receiver is ready to receive. </li></ul></ul><ul><ul><li>stations wake up at the same time periodically and listen to the transmitter. </li></ul></ul><ul><ul><li>Waking up at the right time needs the TSF. </li></ul></ul><ul><ul><li>Along with beacon, a Traffic Indication Map(TIM- containing the list of stns </li></ul></ul><ul><ul><li>for which buffering has been done in the AP.) is also sent. </li></ul></ul><ul><li>Infrastructure </li></ul><ul><ul><li>Traffic Indication Map (TIM) </li></ul></ul><ul><ul><ul><li>list of unicast receivers transmitted by AP </li></ul></ul></ul><ul><ul><li>Delivery Traffic Indication Map (DTIM) </li></ul></ul><ul><ul><ul><li>list of broadcast/multicast receivers transmitted by AP </li></ul></ul></ul><ul><li>Ad-hoc </li></ul><ul><ul><li>Ad-hoc Traffic Indication Map (ATIM) </li></ul></ul><ul><ul><ul><li>announcement of receivers by stations buffering frames </li></ul></ul></ul><ul><ul><ul><li>more complicated - no central AP </li></ul></ul></ul><ul><ul><ul><li>collision of ATIMs possible (scalability?) </li></ul></ul></ul>
  64. 64. Power saving with wake-up patterns (infrastructure) .........Only One Station Shown........... TIM interval t medium access point busy D busy busy busy T T D DTIM interval B B station p d d T TIM D DTIM B broadcast/multicast awake p PS poll d data transmission to/from the station
  65. 65. Power saving with wake-up patterns (infrastructure) <ul><li>All stations wake up prior to TIM/DTIM. </li></ul><ul><li>CASE WITH TIM : </li></ul><ul><ul><li>Access Point buffers frames when the receiver is in the sleep mode. </li></ul></ul><ul><ul><li>With every beacon, a Traffic Information Map (TIM-containing the list of stations for which uni-cast buffers are stored in AP) is sent. </li></ul></ul><ul><ul><li>AP sends a broadcast frame and the receiver stays awake to receive it. </li></ul></ul><ul><ul><li>Receiver then sleeps and wakes up just before the next TIM. </li></ul></ul><ul><ul><li>TIM is delayed since the medium is busy. So, the receiver stays awake. </li></ul></ul><ul><ul><li>AP has nothing to send and so, the receiver goes to sleep. </li></ul></ul><ul><ul><li>In the next TIM interval, the AP indicates that the stn is the destination for a buffered frame. </li></ul></ul><ul><ul><li>Stn answers with a PS poll and stays awake to receive data. </li></ul></ul><ul><ul><li>In the next DTIM interval, the AP has more broadcast data to send. </li></ul></ul><ul><ul><ul><li>This is deferred since medium is busy. </li></ul></ul></ul>
  66. 66. Power saving with wake-up patterns (ad-hoc) awake D transmit data t station 1 B 1 B 1 B beacon frame station 2 B 2 B 2 random delay A a D d ATIM window beacon interval a acknowledge ATIM d acknowledge data A transmit ATIM
  67. 67. Power saving with wake-up patterns (ad-hoc) <ul><li>Each participating station has to buffer the data since access points do not exist. </li></ul><ul><li>In the period that all stations are awake, all the participating station send a list of buffered frames and the stations that are targeted to receive these. These are sent through “Adhoc Traffic Information Map(ATIM)” </li></ul><ul><li>All stations stay awake during this ATIM period and listen to the ATIM. </li></ul><ul><li>In the example, ATIM of station-1 contains the address of station-2. </li></ul><ul><li>Stn-2 acknowledges the ATIM, waits for the data and later acknowledges the data. </li></ul><ul><li>With more stations wanting to send their frames, collisions can be substantial. </li></ul><ul><li>Access delay is not easy to predict and so, QoS can’t be guaranteed. </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×