Internet of Things (IoT) - Universitetet i...

47
Internet of Things (IoT) 1 INF5050 February 19, 2016

Transcript of Internet of Things (IoT) - Universitetet i...

Page 1: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Internet of Things (IoT)

1

INF5050

February 19, 2016

Page 2: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Outline

• Internet of Things (IoT)

• Key Technologies

– RFID

– Mobile Cloud Computing

Page 3: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Things

• A real/physical or digital/virtual entity that exists and moves in space and time

3

Examples

• computers, sensors, people, actuators, refrigerators, TVs, vehicles, mobile phones, clothes, food, medicines, books, passports, luggage,…..

Page 4: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Explosion of connected things (devices/terminals/phones/sensors)

4

Page 5: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Internet of Things (IoT) Visions

• IoT allows people and things to be connected

5

Anyone can use anything to access

any service and any network at

anytime any place

Q: is it challenging to make one sentence to include all these Any* words?

Page 6: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

1995 2004 2005 2008 2009-6 future

IoTconcept U-Korea

IBM: Smart Planet

Sensing China

2009-8

Internet of Things –action plan for EU

《ITU Internet Report 2005:The Internet of Things》

U-Japan

IoT development

Page 7: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

IoT Application: Connected Vehicles for driving safety

View for the driver in the 2nd yellow car

“road slippery” message can be transmitted from the first car to the last white car

Page 8: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Connected Road: addressable sensors on the road and can be networked

• Increase safety

– Road surfacetemperature

– Road condition

• ice/snow/rain/dry/wet

– Tyre pressure monitoring

• Estimate traffic

– Number of vehicles passed in 15 minutes

8

Sensors on the road

Page 9: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Outline

• Internet of Things (IoT)

• Key Technologies

– RFID

– Mobile Cloud Computing

Page 10: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

KEY TECHNOLOGY: RFID

10

Page 11: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

RFID (Radio Frequency Identification)

• In IoT, normally the first question is to identify whom you are. RFID can answer this question.

11

• RFID principle: devices are wireless microchips used for tagging objects for automatic identification

• RFID can identify objects wirelessly line-of-sight or non line of sight

Line-of-Sight (LoS)

Non Line-of-Sight (NLoS)

transmitter receiver

Page 12: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

RFID systems

• RFID systems consist of

– Readers: read and write tag data

– Tags: carry object identification data

– Back-end database: to manage and deal with data

12

Reader

Tag

Page 13: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

RFID Frequency

13

Source: centrenational-rfid

LF (low frequency): • Reading range is

limited• Can penetrate thin

metal• Work well with

high-water content (e.g., fruit)

• Application: animal tagging

HF (High frequency): • work well on

metal • Application:

tracking library books, patient flow tracking

UHF (Ultra-high Frequency): • Long range, high

data rate• Cannot penetrate

metal or water • Application:

electronic toll collection; parking access control.

Page 14: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Tags

14

Passive tags Semi-passive tags Active tags

Energy resource No Battery Battery

Communicationrange

Short, 10meters Long, 100m+ Long, 100+

Communication mode

Response only Response only Response or Initiate

Price Low Medium high

Communication mode: ResponseTag waits for reader’s signal and sends feedback

Communication mode: InitiateTag sends signal to reader instead of waiting

Page 15: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Which tags are used in the applications?Applications Active, Semi-passive or Passive Tags

Reisekort

Shipping containers

Large assets tracking

15

Passive

Active

Active

Page 16: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Which tags are used in the applications?Applications Active, Semi-passive or Passive

Tags

Electronic toll

Tracking componentslike automobile partsduring manufacture

electronic product code

16

Semi-Passive

Semi-Passive

Passive

Page 17: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Tag 1

reader

Tag 2

Tag 3

Reading range

Reader’s reading range

17Q: what can affect the reading range?

Page 18: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Reading range

Tag

Reader

Tags collision problem

18

• Collision occurs when multiple tags respond to the same reader at the same time. The reader is unable to differentiate these signals.

• Tag collision results in wastage of energy, increases identification delays.

• Readers must use an anti-collision protocol to minimizecollisions and help reduce identification delays

Page 19: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

RFID anti-collision protocols: Alohabased protocols

• Pure Aloha

• Slotted Aloha

• Framed Slotted Aloha

19

Page 20: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

An example of ALOHA

RFID anti-collision: Pure Aloha

• Easy to implement– If a tag has data to send, send

the data

– If the message collides with another tag, try resending "later“

– On collision, sender waits random time before trying again

• A tag responds after a random delay, and continues until identified.

• Efficiency: 18.4%

20

Tag1

Tag2

Tag3

Tag4

Tag5

Tag6

Tag7

Tag8

Tag9

Tag10

Collision

Collision

Q: have we seen ALOHA in other networks?

time

Page 21: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

S: time slotAn example of slotted ALOHA protocol

RFID anti-collision: Slotted Aloha

• S-ALOHA divides time into timeslots.

• Each tag can send out data at the beginning of a timeslot.

• A tag responds in synchronized slots after random delay

• Efficiency: 36.8%

21

S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11

Tag1

Tag2

Tag3

Tag4

Tag5

Tag6

Tag7

Tag8

Tag9

Tag10

Collision

Collision

Page 22: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

RFID anti-collision: Frame-Slotted Aloha

• A tag randomly selects a slot to respond only once in a frame. If there is a collision, tags respond in the next frame

22Frame 1 Frame 2 Frame 3

Tag 1

Tag 2

Tag 3

channel

collision

Page 23: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

• Tags collision

• Q: Readers have collision problem?

Collisions

Page 24: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

RFID readers collision (I)

• Reader-to-Tag

– When a tag enters an overlapping area of two readers, transmitted signals will collide and tags will be unable to answer readers queries

A B

Reader A’s reading range

Reader B’s reading range

Tag

Page 25: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

RFID readers collision (II)

• Reader-to-Reader

A B

Reader A’s reading range

Reader B’s reading range 𝑅𝑟

Reader B’s interference range 𝑅𝑖 = (1 + 𝛼)𝑅𝑟

Tag

Page 26: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Coverage based approach for Readers Anti-collision

• The reading ranges of readers are adapted dynamically to reduce the overlapped areas between adjacent readers

• Advantage: increases the space re-used ratio• Disadvantage: needs a central node to calculate the

distance between two readers and adjust their reading ranges, which will increase the complexity of realization and cost of the system

26

A B

Reader A’s reading range

Reader B’s reading range Rr

Tag

Page 27: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Scheduling based Readers Anti-collision

• Resources (e.g., frequencies and time) are allocated properly among readers to prevent readers from transmitting simultaneously

• Advantage: reduce readers collision effectively • Disadvantage: requires the system to maintain information

over the network, which will be time and energy consuming

27

A BTag

-Reader A transmits-after some time, e.g., 1sec-Reader B transmits

Page 28: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

KEY TECHNOLOGY: MOBILE CLOUD COMPUTING

28

Page 29: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

MCC = Mobile + Cloud Computing

Cloud

Mobile network

Cloud computing

4G/wifi

Q: can you name some MCC services that we use everyday?

Page 30: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Motivations for MCC

• Internet traffic explosion; while smart phones generate more than half of mobile data traffic

• Internet-of-Things Vision of anything connected

• Mobile devices still lack in resources compared to a conventional device such as laptops or powerful servers in cloud– battery lifetime

– network bandwidth

– storage capacity

– processor performance

Page 31: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Mobile Devices/Terminals/Machines

• Smart phones• Laptops• Tablet (e.g., Apple iPad, Samsung Galaxy Tab, Sony

Xperia)• Sensors, actuators, robots• Embedded systems (e.g., RFID readers and tags)• Vehicles• Glasses• Satellites

• and many more…

Page 32: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

MCC definition

• According to Mobile Cloud Computing Forum

• In plain language– MCC moves data processing and storage from mobile

phones to cloud

Mobile Cloud Computing at its simplest refers to an infrastructure where both the data storage and the data processing happen outside of the mobile device. Mobile cloud applications move the computing power and data storage away from mobile phones and into the cloud, bringing applications and mobile computing to not just smart phone users but a much broader range of mobile subscribers

Page 33: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

MCC 1st Perspective: using mobile devices to access cloud

• Infrastructure mode

• Example: using your mobile phone to access gmail, dropbox, facebook etc.

Mobile Device

Mobile Clone

Execution Engine

ApplicationServer

ApplicationOffloading

TaskDelegation

Data Storage

Page 34: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

MCC 2nd Perspective: mobile devices are cloud

• Ad hoc mode: use mobile devices for a self-organized cloud

• Share resources (computation, storage) among devices

• Run cloud services by mobile devices

• Q: any example?

Online Services

Mobile Media

Urgent Tasks

Page 35: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Vehicular Cloud: example

• Hundreds cars unused for hours on a typical workday– Vehicles can share

computation/storage resources

• Storage resource sharing (e.g., Storage as a Service)

– Computers in cars have on-board storage

– Data center in airport parking lot

Page 36: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

MCC advantages

• Extending battery lifetime

– Voice recognition, e.g., Siri, is computation intensive

• Improving data storage capacity and computation capability

• Improving data reliability and security

Page 37: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

MCC challenges

• Wireless Communication side– Limited radio bandwidth– Network latency– Availability

• Device side– Limited energy

• Computation side– Computation offloading– Data access efficiency– Context-aware cloud services

Page 38: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

OFFLOADING FOR MOBILE CLOUD

Page 39: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Computation Offloading

• Offloading: sending heavy computation to resourceful servers and receiving the results from these servers.

• Q: do you believe: using WiFi in IFI instead of 4G is offloading?

Cloud

Computation request

Result: 6

Computation in cloud

Page 40: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Offloading schemes for energy-saving in mobile phones

Energy usage when computing is done in mobile phones

• Pc: the energy cost when the mobile phone is doing computing

• C: the computation needs C instructions • M: the speed of mobile device to compute

Energy usage when computing is done in cloud

• Pi: energy cost when the mobile phone is idle.• Ptr: energy cost when the mobile transmits the data• S: the speed of cloud to compute• D: the data need to transmit• B: the wireless bandwidth

Saved energy by using offloading

Page 41: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Energy-efficiency in offloading schemes

• Suppose the cloud is F times faster—i.e., S = F ×M. Then, saved energy is

• Energy is saved when this formula produces a positive number.

• The formula is positive if

Page 42: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Observations

• Offloading is beneficial when a task needs

– large computation C

– relatively small communication D

K. Kumar and Y. Lu: Cloud Computing for Mobile Users: CanOffloading Computation Save Energy?. IEEE Computer 43(4): 51-56 (2010)

Large C Small D

Page 43: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

But, offloading does not help when wireless channel has low quality

• Service areas in – Tunnel

– Subway

– Q: other examples?

• In these scenarios, – the bandwidth B is very small,

D/B approaches infinite.

– cloud computing does not save energy.

B0; then, D/B ∞

Page 44: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Application may benefit from offloading: photo retrieval as an example

• Search and retrieve images in photo sharing databases

• D is large since considerable data must be sent; hence D/B might be too large

Condition• Only if the bandwidth B is

very large, offloading saves energy (Q: why?)

Page 45: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Real-time Navigation

• When D is very large, offloading may not save energy

Q: what should be considered to use partitioning computation?

• Partitioning computation between the mobile phone and the cloud may reduce energy consumption.

Page 46: Internet of Things (IoT) - Universitetet i osloheim.ifi.uio.no/~infpri/Presentasjoner/InternetOfThings2016.pdf2nd yellow car “road slippery ... parking access control. ... •Internet-of-Things

Partitioning Computation

• We need to determine– whether to offload – which units of computation

should be moved to the cloud

• We need to consider– Computation cost– Communication cost– Energy consumption– Communications quality: data

between devices and cloud may be lost

Cloud

70% tasks moved to cloud

30% tasks donein mobile phone