Bonsai in the Fog: an Active Learning Lab with Fog Computing - - PowerPoint PPT Presentation

bonsai in the fog an active learning lab with fog
SMART_READER_LITE
LIVE PREVIEW

Bonsai in the Fog: an Active Learning Lab with Fog Computing - - PowerPoint PPT Presentation

Bonsai in the Fog: an Active Learning Lab with Fog Computing Antonio Brogi, Stefano Fort orti, Ahmad Ibrahim and Luca Rinaldi Service-oriented, Cloud and Fog Computing Research Group Department of Computer Science University of Pisa, Italy 3rd


slide-1
SLIDE 1

Bonsai in the Fog: an Active Learning Lab with Fog Computing

Antonio Brogi, Stefano Fort

  • rti, Ahmad Ibrahim and Luca Rinaldi

Service-oriented, Cloud and Fog Computing Research Group Department of Computer Science University of Pisa, Italy

3rd IEEE International Conference on Fog and Mobile Edge Computing , Barcelona, 23rd- 26th April 2018.

slide-2
SLIDE 2
slide-3
SLIDE 3

Deployment Models

M2M/ LAN/WAN

Cloud

Internet

IoT+ T+Edge

  • Low latencies, but
  • Limited capabilities,
  • Difficulties in sharing data

IoT+Clo loud

  • Huge computing power, but
  • Mandatory connectivity,
  • High latencies,
  • Bandwidth bottleneck.
  • Not sufficient per se to

support the IoT mo momentu tum alone.

  • There is a need for filt

lterin ing and pr proc

  • cessin

ing before the Cloud.

  • Processing should occur

wherever it is best-pla laced ed for any given IoT application

slide-4
SLIDE 4

Deployment Models

M2M/ LAN/WAN

Cloud

Internet

IoT+ T+Edge

  • Low latencies, but
  • Limited capabilities,
  • Difficulties in sharing data.

IoT+Clo loud

  • Huge computing power, but
  • Mandatory connectivity,
  • High latencies,
  • Bandwidth bottleneck.

Fog

Cloud

Fog computing is a system-level horizontal

architecture that distributes resources and services

  • f computing, storage, control and

networking anywhere along the continuum from Cloud to Things, thereby accelerating the

velocity of decision making.

Fog-centric architecture serves a specific subset of business problems that cannot be successfully implemented using only traditional cloud based architectures or solely intelligent edge devices.

[OpenFog Reference Architecture, 2016.]

slide-5
SLIDE 5

Fog Characteristics

Context- & location-awareness Low latency & bandwidth savings Pervasiveness & geo-distribution Fog & Things Mobility Heterogeneity

  • f devices
slide-6
SLIDE 6

Fog Computing in Education?

  • is calling for design
  • f courses that include Fog

computing in higher education programs.

  • We introduced Fog computing

in

  • ur

Advanced Software Engineering course (2 hours lec lectu ture and 2 hours activ tive learnin ing lab ab).

slide-7
SLIDE 7

Our goals

  • Design an active learning lab that had to:

First hand hands-on

  • n expe

xperience and act active lear arning Qui Quick lear arning cur curve ve and two-hours time Limi Limited cos

  • sts and

cro cross-platform

slide-8
SLIDE 8

Use Case

slide-9
SLIDE 9

Multi(functional)Lab

BYOD Wi-fi Projector

slide-10
SLIDE 10

micro:bits

  • Programmable

with an online editor either with blocks or in Ja JavaScri ript.

  • Cr

Cross ss-platform rm.

  • Cost around €20

☺…

slide-11
SLIDE 11

The ingredients

*

slide-12
SLIDE 12

Activity Plan

Set-up of an IoT

  • T te

testb tbed and simple Edge application (IoT

  • T+Edge )

Coding of a gate gateway mod module to stream/visualise data to the Cloud (IoT+Cloud) Ex Extensions to the gateway module to perform more computation (Fog

  • g)
slide-13
SLIDE 13

Active Learning

Tutorial Teamwork Checkpoint Discussion

slide-14
SLIDE 14

App

Collector Gateway Collector Collector Collector Radio Dashboard

https://github.com/di-unipi-socc/bonsaifog radio serial Internet (serial)

slide-15
SLIDE 15

Collector v1

  • Measure mois
  • isture of one bonsai.
  • Plots the his

histogram to the micro:bit LEDs.

  • When A pressed: shows

mea easurement.

slide-16
SLIDE 16

IoT+Edge

slide-17
SLIDE 17

Collector v2

  • Measure moisture of one bonsai.
  • Plots the histogram to the micro:bit

LEDs.

  • When A pressed: shows measurement.
  • Streams data to the radio

dashboard at the instructor’s laptop every second.

  • (Streams data to serial port at

students’ laptop.)

slide-18
SLIDE 18

Radio Dashboard

  • Every time a client connects, a

LED is turned on.

  • Brightness of the LEDs depends
  • n soil moisture of the

associated bonsai.

  • Receives data from Collector

clients.

  • Streams data to the serial port of

the instructor’s laptop.

slide-19
SLIDE 19

Gateway v1

  • Receives and parse data from serial.
  • Streams data to ThingSpeak.
slide-20
SLIDE 20

ThingSpeak

  • A Cloud service featuring MATLAB analytics and data visualisation for

IoT data.

  • Playtime ☺
slide-21
SLIDE 21
slide-22
SLIDE 22

Problem or opportunity?

slide-23
SLIDE 23

Where is the Fog?

slide-24
SLIDE 24

What can we make foggy?

25

slide-25
SLIDE 25

Idea #1

Aggregate data and send an average every 10 seconds.

26

slide-26
SLIDE 26

Idea #2

Send data only if the difference between previous average is greater than a threshold.

27

slide-27
SLIDE 27

Idea #3

Send data only if the difference between previous average is greater than a threshold. Send it anyhow, if no data hasn’t been sent for 1 hour.

28

slide-28
SLIDE 28

Related Work

  • Literature focus either on
  • Iot
  • t+Edge
  • IoT
  • T+Cloud

Our goal was to showcase Fog computing and highlight the differences with respect to other deployment models for the IoT. e.g., (Shultz et al., 2015), (Abraham, 2016), (Wu and Zeng, 2016), (Jang et al., 2017) e.g., (Kortuem et al., 2013), (Patil et al., 2016).

Arduino, Raspberry Pi, IoT as a platform, simulated environments IoT-based Cloud apps

slide-29
SLIDE 29

Concluding Remarks

  • Practically understand

Fog computing.

  • Show differences with

alternative deployment models. First han hands-on

  • n expe

xperience and act active lear arning

✓ ✓ ✓ ✓ ✓

slide-30
SLIDE 30

Concluding Remarks

  • Use of high-level language.
  • JavaScript everywhere.
  • Very good online docs.

Qui Quick lear arning cur curve ve and two-hours time

slide-31
SLIDE 31

Concluding Remarks

  • Cost is around €30 euro per

table.

  • All platforms supported.
  • We borrowed micro:bits from

Limi Limited cos

  • sts and

cro cross-platform

pisa.coderdojo.it

slide-32
SLIDE 32

Future Work

Extend the testbed, increase heterogeneity of devices and protocols. Test scalability and measure effec ectiveness

  • f the lab session.

Perform quantitative measu easurements

  • f bandwidth savings.
slide-33
SLIDE 33

Bonsai in the Fog: an Active Learning Lab with Fog Computing

Antonio Brogi, Stefano Fort

  • rti, Ahmad Ibrahim and Luca Rinaldi

Service-oriented, Cloud and Fog Computing Research Group Department of Computer Science University of Pisa, Italy

3rd IEEE International Conference on Fog and Mobile Edge Computing , Barcelona, 23rd- 26th April 2018.