IoTSSC - ZigBee, Wi-Fi ZigBee Low power low rate personal area - - PowerPoint PPT Presentation

β–Ά
iotssc zigbee wi fi zigbee
SMART_READER_LITE
LIVE PREVIEW

IoTSSC - ZigBee, Wi-Fi ZigBee Low power low rate personal area - - PowerPoint PPT Presentation

IoTSSC - ZigBee, Wi-Fi ZigBee Low power low rate personal area networking 10-20m range - why somewhat wider range? Zigbee operates in the 868MHz band in Europe (915MHz in the US and Australia) Multiple channels in 2.4GHz band also


slide-1
SLIDE 1

IoTSSC - ZigBee, Wi-Fi

slide-2
SLIDE 2

ZigBee

  • Low power low rate personal area networking
  • 10-20m range - why somewhat wider range?
  • Zigbee operates in the 868MHz band in Europe

(915MHz in the US and Australia)

  • Multiple channels in 2.4GHz band also allowed

worldwide

  • Path loss is frequency dependent

𝑀 𝑒𝐢 = 20 log 𝑒 + 20 log 𝑔 + 92. 45 (d expressed in km, f expressed in GHz)

slide-3
SLIDE 3

ZigBee applications

  • Data rates are very low – 20kb/s in the 868MHz band,

250kb/s in the 2.4GHz band

  • Typical applications: home/building automation,

industrial control, smart energy (Hive uses this).

  • Star or peer-to-peer network topologies
  • Two types of device:
  • Full Function Device (FFD) - Can communicate with every type
  • f device. Three modes: PAN Coordinator (Sends beacons

manages network-specific addresses), coordinator (acts as router), normal node.

  • Reduced Function Device (RFD): Can only talk to a single FFD
slide-4
SLIDE 4

ZigBee topologies

Credits: Christian TrΓΆdhandl

slide-5
SLIDE 5

Protocol stack

Credits: A. Elahi and A. Gschwender

slide-6
SLIDE 6

PHY and MAC layers

  • The ZigBee PHY and MAC layers follow the IEEE

802.15.4 standard

  • Transmission using Direct Sequence Spread

Spectrum (DSSS) – robust to noise.

  • Multiple MAC layer modes
  • CSMA/CA – wait random backoff before sensing the

channel if medium idle, transmit; otherwise repeat backoff; ACKs following data frames are optional

  • Beacon mode – time divided into 16 equal slots;

coordinator send beacon first; attached devices can contend but need to align TX to slot; up to 7 guaranteed time slots (GTS) – for low latency apps

slide-7
SLIDE 7

PHY and MAC layers

  • CAP – Contention-based Access Period
  • CFP – Contention Free Period
slide-8
SLIDE 8

Data frame structure

slide-9
SLIDE 9

Network layer (NWK)

In charge of

  • Network start up
  • Neighbour discovery, new device configuration
  • Topology specific routing
  • Security
  • AES-128 encryption on links, key assumed known by all

parties (e.g. installed at manufacturing)

  • Often this is not the case, a device not pre-configured

may be sent the key over the air (short window when this weakness can be exploited!)

slide-10
SLIDE 10

Application Support Sublayer (APS)

  • Maintain binding and groups tables
  • Discovering devices and application services
  • Provide communication endpoints for applications
  • Initiating/responding to binding requests between

endpoints

  • Filtering packets for non-registered end-points
  • Fragmentation, reassembly and reliable data

transport

slide-11
SLIDE 11

ZigBee in the IoT landscape

  • Your phone most likely does not talk Zigbee
  • A hub comprises a Zigbee Coordinator and some

Internet connectivity via a Wi-Fi/cellular/Ethernet interface

slide-12
SLIDE 12

WLANs based on 802.11

  • Wi-Fi (based on IEEE 802.11) by far the most popular WLAN

technology

  • Two modes of operation: infrastructure and ad-hoc
  • Infrastructure:
  • De facto and the most wide spread
  • Access Point (AP) man

anages access to wireless medium (synch, association, authentication, keys)

  • However actual channel access is decentralised β†’ each

station responsible for its own behaviour (within some protocol rules)

slide-13
SLIDE 13

WLANs based on 802.11 (Wi-Fi)

  • All communication is via AP
  • Network can operate at
  • 2.4GHz (802.11b/g) – 3 non-
  • verlapping 20MHz channels;

max bitrate: 54Mb/s (OFDM)

  • 5GHz (802.11a) - Depending on

country 12-28 channels; shorter range; Up to 108Mb/s (turbo: two 20MHz channels bonded)

slide-14
SLIDE 14

802.11 channel access

  • Carrier Sense Multiple Access with Collision avoidance (CSMA/CA)

and binary exponential backoff (i.e. CW doubled upon collisions)

  • Access to medium regulated by an Arbitration Interframe Space

(AIFS), Contention Windows (min and max) and optionally number

  • f transmission opportunities (packets in a burst).
  • Parameters fixed by default (irrespective of network conditions) ->
  • ften channel time wasted or too many collisions
slide-15
SLIDE 15

802.11 MAC performance

  • Example with 5 and 30 stations

(11Mb/s bitrate – 802.11b)

  • Default CWmin = 16 sub-optimal
  • The AP could potentially

compute the optimal settings if intended, and distribute these via management frames (beacons) every 100ms

slide-16
SLIDE 16

How much throughput can a station obtain?

  • Assume a network with n contenders
  • Working with CWmin= 16, maximum number of attempts K
  • Backlogged queues
  • Denote Ο„ the probability that a station transmits in a

randomly chosen slot time

  • The conditional collision probability experienced by a frame
  • Use a renewal-reward approach to compute Ο„, i.e. calculate

the expected number of slots and transmissions between the renewal the completion of packet transmissions.

π‘ž = 1 βˆ’ 1 βˆ’ 𝜐 π‘œβˆ’1

slide-17
SLIDE 17

How much throughput can a station obtain?

  • The expected number of attempts to transmit a packet is
  • The expected number of slots during back-off

where bk = 2kCWmin/2 is the mean length of back-off stage k

  • The transmission attempt rate can be expressed as

𝐹(𝑆) = 1 + π‘ž + π‘ž2 + β‹― + π‘žπΏ 𝐹(π‘Œ) = 𝑐0 + π‘žπ‘1 + π‘ž2𝑐2 + β‹― + π‘žπΏπ‘πΏ 𝜐 = 𝐹(𝑆) 𝐹(π‘Œ)

slide-18
SLIDE 18

How much throughput can a station obtain?

The throughput a station obtains is basically the average amount of data transmitted over the average slot duration A slot can be idle, or occupied with a successful transmission or a collision. The duration of an idle slot is fixed by the standard (e.g. 9ΞΌs for 802.11a/g). If packets are of the same length L and transmitted with the same PHY rate C, the duration of a slot containing a successful transmission is the same as the duration of a slot that contains a collision, i.e.

π‘ˆπ‘π‘£π‘‘π‘§ = π‘ˆπ‘„π‘€π·π‘„ + 𝑀 𝐷 + 𝑇𝐽𝐺𝑇 + π‘ˆ

𝐡𝐷𝐿 + 𝐡𝐽𝐺𝑇

𝑇 = 𝐹[𝐸𝑏𝑒𝑏] 𝐹[π‘‡π‘šπ‘π‘’]

slide-19
SLIDE 19

How much throughput can a station obtain?

Hence the average duration of a slot is The throughput obtained by a station is thus

𝑇 = 𝜐 1 βˆ’ π‘ž 𝑀 1 βˆ’ 𝜐 π‘œπ‘ˆπ‘—π‘’π‘šπ‘“ + 1 βˆ’ 1 βˆ’ 𝜐 π‘œ π‘ˆπ‘π‘£π‘‘π‘§ 𝐹 π‘‡π‘šπ‘π‘’ = π‘„π‘—π‘’π‘šπ‘“π‘ˆπ‘—π‘’π‘šπ‘“ + 1 βˆ’ π‘„π‘—π‘’π‘šπ‘“ π‘ˆπ‘π‘£π‘‘π‘§ = 1 βˆ’ 𝜐 π‘œπ‘ˆπ‘—π‘’π‘šπ‘“ + 1 βˆ’ 1 βˆ’ 𝜐 π‘œ π‘ˆπ‘π‘£π‘‘π‘§

slide-20
SLIDE 20

Hidden terminal problem

A B C D Radio Range A is transmitting to B. If C senses medium it will not hear A (out of range) and so it could transmit and destroy the frame sent from A to B. Not being able to detect (carrier-sense) a potential competitor is called the β€œhidden terminal problem”

slide-21
SLIDE 21

Exposed terminal problem

A B C D Radio Range B is transmitting to A. If C senses the channel, it will hear the activity and falsely conclude it cannot transmit to D. This is called the β€œexposed terminal problem” As you may conclude, it is all about knowing what is going on at your receiver. What the sender β€œsees” may not be what the receiver will see.

slide-22
SLIDE 22

Request to Send/Clear to Send

RTS/CTS control frames help mitigate this problem but may introduce additional overhead However, also useful to avoid collision when bursting

slide-23
SLIDE 23

802.11 frame structure

slide-24
SLIDE 24

Statistical traffic differentiation

Current hardware supports multiple queues, one for each β€œAccess Category” (AC):

  • Best Effort (BE), Background

(BK), Video (VI), Voice (VO)

  • Additional Content after

beacon queue (CABQ) typically used for multicast traffic.

  • Beacon queue (which does not

really work like a queue: always stores ONE frame that gets updated)

slide-25
SLIDE 25

802.11n enhancements

  • Channel bonding (up to 40MHz)
  • Multiple-Input Multiple Output (MIMO)

– up to 4 spatial streams

  • Superior modulation and coding schemes (with 64-

QAM - up to 65Mb/s per single stream, or 72.2Mb/s if shorter guard between packets)

  • Frame aggregation (lower overhead)
  • Selective retransmissions
slide-26
SLIDE 26

802.11n frame aggregation

Source: Cisco

slide-27
SLIDE 27

802.11ac enhancements

  • Channel bonding up to 160MHz (2x 80MHz streams)
  • Highest modulation and coding schemes supported is

256-QAM (433Mbs/s on single 80MHz channel)

  • Up to 8 spatial streams
  • 802.11ac introduces multi-user MIMO (Gb/s rates) –

the idea is to send a combination of packets to multiple clients at the same time – spatial multiplexing (good channel sounding required)

  • Question: is so much throughput needed for IoT

applications?

slide-28
SLIDE 28

Questions?